Convert static_kind into loc_kind enum.
[external/binutils.git] / gdb / ChangeLog
1 2008-10-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         Convert static_kind into loc_kind enum.
4         * gdbtypes.h (enum field_loc_kind): New.
5         (union field_location): New field dwarf_block.
6         (struct field): Rename static_kind as loc_kind.
7         (FIELD_STATIC_KIND): Rename to ...
8         (FIELD_LOC_KIND): ... here.
9         (TYPE_FIELD_STATIC_KIND): Rename to ...
10         (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
11         (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
12         (TYPE_FIELD_STATIC): Remove.
13         (TYPE_FIELD_BITPOS): Reformat.
14         (SET_FIELD_BITPOS): New.
15         (FIELD_PHYSADDR): Rename to ...
16         (FIELD_STATIC_PHYSADDR): ... here.
17         (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
18         (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
19         (FIELD_PHYSNAME): Rename to ...
20         (FIELD_STATIC_PHYSNAME): ... here.
21         (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
22         (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
23         (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
24         (field_is_static): New declaration.
25         * gdbtypes.c (field_is_static): New function.
26         (copy_type_recursive): Update throughout.
27         * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
28         eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
29         p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
30
31 2008-10-07  Thomas Schwinge  <tschwinge@gnu.org>
32             Pedro Alves  <pedro@codesourcery.com>
33
34         * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
35         avoid a name collision.
36         * gnu-nat.c: Likewise.
37         * i386gnu-nat.c: Likewise.
38
39 2008-10-07  Joel Brobecker  <brobecker@adacore.com>
40
41         * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
42         of arguments that are references.
43
44 2008-10-06  Doug Evans  <dje@google.com>
45
46         * dwarf2read.c (dwarf2_die_debug): New static global.
47         (dump_die_shallow): Renamed from dump_die, New args f, indent.
48         Print to specified file, indented by the specified amount.
49         (dump_die_for_error): New fn.  Point all existing callers of
50         dump_die here.
51         (dump_die_die_1,dump_die): New fns, replaces ...
52         (dump_die_list): ... deleted.
53         (read_die_and_children_1): Old contents of read_die_and_children
54         moved here.
55         (read_die_and_children): Rewrite.
56         (read_die_and_siblings): Call read_die_and_children_1 instead of
57         read_die_and_children.
58         (_initialize_dwarf2_read): New option "debug dwarf2-die".
59         * gdbinit.in (pdie): New macro.
60
61         * dwarf2read.c (offset_in_cu_p): New function.
62         (find_partial_die,follow_die_ref): Use it.
63
64         * symmisc.c (maintenance_info_symtabs): Watch for ^c.
65         (maintenance_info_psymtabs): Ditto.
66
67 2008-10-05  Michael Snyder  <msnyder@vmware.com>
68
69         * infrun.c (handle_inferior_event): Fix typo in comment.
70
71 2008-10-04  Vladimir Prus  <vladimir@codesourcery.com>
72
73         * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
74
75 2008-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
76
77         PR gdb/2384:
78         * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
79         different lifetimes.
80         
81 2008-10-03  Joel Brobecker  <brobecker@adacore.com>
82
83         * solib-osf.c: Include "solib.h".
84
85 2008-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
86         
87         * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
88         and check for out-of-memory condition.
89         * exec.c (exec_file_command): Call it.
90         * infrun.c (handle_command, xdb_handle_command): Likewise.
91         * interps.c (interpreter_exec_cmd): Likewise.
92         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
93         * procfs.c (info_proc_cmd): Likewise.
94         * remote-mips.c (common_open): Likewise.
95         * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
96         (gdbsim_open): Likewise.
97         * remote.c (extended_remote_run, remote_put_command)
98         (remote_get_command, remote_delete_command): Likewise.
99         * ser-mingw.c (pipe_windows_open): Likesise.
100         * source.c (add_path, show_substitute_path_command)
101         (unset_substitute_path_command, set_substitute_path_command):
102         Likewise.
103         * stack.c (backtrace_command): Likewise.
104         * symfile.c (symbol_file_command, generic_load)
105         (add_symbol_file_command): Likesise.
106         * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
107         (maintenance_print_msymbols): Likewise.
108
109 2008-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
110
111         Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
112         * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
113         (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
114         valops.c (value_cast), varobj.c (c_number_of_children): Replace
115         TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
116         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
117         * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
118         * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
119         (f77_get_upperbound): ... this function handling now only
120         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
121         (f77_get_dynamic_lowerbound): Replace with ...
122         (f77_get_lowerbound): ... this function handling now only
123         TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
124         (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
125         Update their callers.
126         * eval.c (evaluate_subexp_standard): Update their callers.
127         * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
128         (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
129         prototypes.
130         (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
131         * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
132         the lower_bound_was_default variable.  Update the
133         f77_get_dynamic_upperbound, f77_get_upperbound and
134         TYPE_ARRAY_UPPER_BOUND_TYPE calls.
135         * gdbtypes.c (print_bound_type): Remove the function.
136         (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
137         LOWER_BOUND_TYPE.
138         * gdbtypes.h (enum array_bound_type): Remove.
139         (struct main_type): Remove the fields upper_bound_type and
140         lower_bound_type.  Comment the new overload of the field artificial.
141         (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
142         (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
143         (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
144         (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
145
146 2008-10-02  Tom Tromey  <tromey@redhat.com>
147
148         * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
149
150 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
151
152         * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
153         comments.
154         (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
155         (mips_linux_init_abi): Do not override skip_trampoline_code.
156         * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
157         * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
158         (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
159         (mips_skip_mips16_trampoline_code): Rename from
160         mips_skip_trampoline_code.
161         (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
162         * infrun.c (handle_inferior_event): Do not pass zero to
163         in_solib_dynsym_resolve_code.
164
165 2008-10-02  Pierre Muller  <muller@ics.u-strasbg.fr>
166             Pedro Alves  <pedro@codesourcery.com>
167
168         * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
169
170
171 2008-10-01  Tom Tromey  <tromey@redhat.com>
172
173         * symtab.c (search_symbols): Update.
174         * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
175
176 2008-10-01  Tom Tromey  <tromey@redhat.com>
177
178         * symfile.c (syms_from_objfile): Update.
179         (reread_symbols): Update.
180         * objfiles.h (OBJF_SYMS): Remove.
181         (OBJF_REORDERED): Renumber.
182         (OBJF_SHARED): Likewise.
183         (OBJF_READNOW): Likewise.
184         (OBJF_USERLOADED): Likewise.
185
186 2008-10-01  Tom Tromey  <tromey@redhat.com>
187
188         * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
189         (find_pc_sect_symtab): Likewise.
190         * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
191         * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
192         MSYMBOL_TYPE, not SYMBOL_TYPE.
193         * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
194         * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
195         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
196         MSYMBOL_TYPE.
197         * m2-exp.y (yylex): Use SYMBOL_CLASS.
198
199 2008-10-01  Tom Tromey  <tromey@redhat.com>
200
201         * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
202         (scan_xcoff_symtab): Update.
203         * mdebugread.c (record_minimal_symbol): Update.
204         (parse_partial_symbols): Update.
205         * elfread.c (record_minimal_symbol): Update.
206         * dbxread.c (record_minimal_symbol): Update.
207         * coffread.c (record_minimal_symbol): Update.
208         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
209         (sh64_elf_make_msymbol_special): Update.
210         * mips-tdep.c (mips_elf_make_msymbol_special): Use
211         MSYMBOL_TARGET_FLAG_1.
212         (mips_elf_make_msymbol_special): Likewise.
213         (msymbol_is_special): Likewise.
214         * minsyms.c (prim_record_minimal_symbol_and_info): Update.
215         (install_minimal_symbols): Likewise.
216         (prim_record_minimal_symbol): Update.
217         (prim_record_minimal_symbol_and_info): Remove 'info' argument.
218         * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
219         (MSYMBOL_SET_RTI): Redefine.
220         (MSYMBOL_IS_RTC): Redefine.
221         (MSYMBOL_IS_RTI): Redefine.
222         * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
223         (MSYMBOL_IS_SPECIAL): Redefine.
224         * symtab.h (struct minimal_symbol) <info>: Remove.
225         <target_flag_1, target_flag_2>: New fields.
226         (MSYMBOL_INFO): Remove.
227         (MSYMBOL_TARGET_FLAG_1): New macro.
228         (MSYMBOL_TARGET_FLAG_2): Likewise.
229         (prim_record_minimal_symbol_and_info): Update.
230
231 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
232
233         * ada-lang.c (is_digits_suffix): Delete unused function.
234
235 2008-09-30  Paul Hilfinger  <hilfinger@adacore.com>
236
237         * ada-lang.c (ada_modulus): Correct to avoid sign problem with
238         moduli >= 2**31.
239
240 2008-09-30  Paul Hilfinger  <hilfinger@adacore.com>
241
242         * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
243         variant branch.
244         (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
245         supposed to be null.  Fixes debugger segfaults.
246         (is_unchecked_variant): New function.
247         (to_fixed_variant_branch_type): Modify to leave unchecked unions
248         untouched.
249         (ada_template_to_fixed_record_type_1): Fix comment.
250
251 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
252
253         * ada-lang.c (standard_exc): New static constant.
254         (ada_exception_catchpoint_cond_string): Add special handling
255         for the predefined exceptions.
256
257 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
258
259         * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro.  Update
260         the code accordingly.
261
262 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
263
264         * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
265         treatment of expect_type. Return the correct type when dereferencing
266         an integer.
267
268 2008-09-30  Tom Tromey  <tromey@redhat.com>
269
270         PR gdb/2484:
271         * symtab.c (struct add_macro_name_data): New struct.
272         (add_macro_name): New function.
273         (default_make_symbol_completion_list): Complete macro names.
274         * scm-lang.c (scm_language_defn): Update.
275         * p-lang.c (pascal_language_defn): Update.
276         * objc-lang.c (objc_language_defn): Update.
277         * macrotab.h (macro_callback_fn): Add user_data argument.
278         (macro_for_each): Likewise.
279         (macro_for_each_in_scope): Declare.
280         * macrotab.c: (struct macro_for_each_data): New struct.
281         (foreach_macro): Use it.
282         (macro_for_each): Likewise.
283         (foreach_macro_in_scope): New function.
284         (macro_for_each_in_scope): Likewise.
285         * macrocmd.c (print_one_macro): Add argument.
286         (macro_list_command): Pass NULL to macro_for_each.
287         * m2-lang.c (m2_language_defn): Update.
288         * language.h (struct language_defn) <la_macro_expansion>: New
289         field.
290         (macro_expansion): New enum.
291         * language.c (unknown_language_defn): Update.  Fix order of
292         initializers.
293         (auto_language_defn): Likewise.
294         (local_language_defn): Update.
295         * jv-lang.c (java_language_defn): Update.
296         * f-lang.c (f_language_defn): Update.
297         * c-lang.c (c_language_defn): Update.
298         (cplus_language_defn): Likewise.
299         (asm_language_defn): Likewise.
300         (minimal_language_defn): Likewise.
301         * ada-lang.c (ada_language_defn): Update.
302
303 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
304
305         * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
306         (get_scope_pc_bounds): Use it.
307
308 2008-09-27  Tom Tromey  <tromey@redhat.com>
309
310         * NEWS: Update.
311         * macrocmd.c (extract_identifier): Add is_parameter argument.
312         (macro_define_command): Update.
313         (macro_undef_command): Likewise.
314         * macroexp.c (stringify): New function.
315         (find_parameter): Likewise.
316         (gather_arguments): Add nargs argument.  Handle varargs.
317         (substitute_args): Add is_varargs and va_arg_name arguments.
318         Handle varargs, splicing, stringification.  Use find_parameter.
319         (expand): Handle varargs.
320
321 2008-09-27  Tom Tromey  <tromey@redhat.com>
322
323         * scm-lang.c (scm_language_defn): Update.
324         * p-typeprint.c (pascal_print_typedef): New function.
325         * p-lang.h: (pascal_print_typedef): Declare.
326         * p-lang.c (pascal_language_defn): Update.
327         * objc-lang.c (objc_language_defn): Update.
328         * m2-typeprint.c (m2_print_typedef): New function.
329         * m2-lang.h (m2_print_typedef): Declare.
330         * m2-lang.c (m2_language_defn): Update.
331         * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
332         Remove.
333         (struct language_defn) <la_print_typedef>: New field.
334         (default_print_typedef): Declare.
335         (LA_PRINT_TYPEDEF): New define.
336         * language.c (unknown_language_defn): Update.
337         (auto_language_defn): Update.
338         (local_language_defn): Update.
339         * jv-lang.c (java_language_defn): Update.
340         * f-lang.c (f_language_defn): Update.
341         * c-typeprint.c (c_print_typedef): New function.
342         * c-lang.h (c_print_typedef): Declare.
343         * c-lang.c (c_language_defn): Update.
344         (cplus_language_defn): Update.
345         (asm_language_defn): Update.
346         (minimal_language_defn): Update.
347         * ada-lang.c (ada_language_defn): Update.
348         * typeprint.c (default_print_typedef): New function.
349
350 2008-09-27  Tom Tromey  <tromey@redhat.com>
351
352         * jv-exp.y (insert_exp): Define using ISO syntax.
353         (copy_exp): Likewise.
354         (push_expression_name): Likewise.
355         (push_fieldnames): Likewise.
356         (java_type_from_name): Likewise.
357         (yyerror): Likewise.
358         (yylex): Likewise.
359         (parse_number): Likewise.
360
361 2008-09-26  Joel Brobecker  <brobecker@adacore.com>
362
363         * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
364
365 2008-09-25  Stephan Springl  <springl-gdb@bfw-online.de> (tiny change)
366
367         * stack.c (print_frame_args): Fix typos in comments.
368
369 2008-09-25  Sérgio Durigan Júnior  <sergiodj@linux.vnet.ibm.com>
370
371         * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
372
373 2008-09-24  Vladimir Prus  <vladimir@codesourcery.com>
374
375         * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
376         
377 2008-09-24  Andreas Schwab  <schwab@suse.de>
378
379         * frame.c (get_frame_register_bytes): Take pseudo registers into
380         account.  Avoid excessive function calls.
381
382 2008-09-23  Doug Evans  <dje@google.com>
383
384         * dcache.c (state_chars): New static global.
385         (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
386         All uses updated.
387         (dcache_info): Print cache state as mnemonically useful letters instead
388         of magic numbers.
389
390         * dwarf2read.c (comp_unit_head): Reorganize for better packing.
391
392 2008-09-22  Tom Tromey  <tromey@redhat.com>
393
394         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
395         printf_filtered.
396
397 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
398
399         * infrun.c (follow_exec): Don't do a generic mourn.  Instead
400         inline the required bits.
401         * breakpoint.h (enum inf_context): Add inf_execd.
402
403 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
404
405         * infrun.c (handle_inferior_event): In the follow exec case,
406         context-switch before doing anything else.
407
408 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
409
410         * top.c (any_thread_of, kill_or_detach): New functions.
411         (quit_target): Iterate over all inferiors, killing or detaching
412         accordingly.
413
414 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
415
416         Remove the attach_flag global, and make it per-inferior.
417
418         * inferior.h (attach_flag): Delete.
419         (inferior_process): Declare.
420         * solib.c (update_solib_list): Adjust.
421         * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
422         * inf-ptrace.c (inf_ptrace_detach): Adjust.
423         (inf_ptrace_files_info): Get it from the current inferior.
424         * inf-ttrace.c (inf_ttrace_attach): Adjust.
425         (inf_ttrace_files_info): Get it from the current
426         inferior.
427         * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
428         (clear_sigint_trap): Get it from the current process.
429         * remote.c (extended_remote_attach_1)
430         (extended_remote_create_inferior_1): Adjust.
431         * top.c (quit_confirm, quit_target): Get it from the current inferior.
432         * procfs.c (do_detach): Adjust.
433         (procfs_wait): Get it from the event inferior.
434         (procfs_files_info): Get it from the current inferior.
435         * nto-procfs.c (procfs_files_info): Likewise.
436         (procfs_attach): Adjust.  Set the attach_flag here.
437         (do_attach): Don't set it here.
438         (procfs_detach): Don't clear it.
439         (procfs_mourn_inferior): Don't clear it.
440         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
441         * target.c (attach_flag): Delete.
442         (generic_mourn_inferior): Don't clear it.
443         * win32-nat.c (get_win32_debug_event): Get it from the event
444         process.
445         (do_initial_win32_stuff): Add attaching argument.  Set attach_flag
446         in the inferior accordingly.
447         (win32_attach): Don't set the attach_flag here.  Pass 1 to
448         do_intial_win32_stuff.
449         (win32_files_info): Get it from the current inferior.
450         (win32_create_inferior): Dont clear attach_flag here.  Pass 0 to
451         do_intial_win32_stuff.
452
453 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
454
455         Make the stop_soon global be per-inferior instead.
456
457         * infcmd.c (attach_command_post_wait): Adjust.
458         (attach_command): Likewise.
459
460         * inferior.h (stop_soon): Delete.
461         (struct inferior): Add stop_soon member.
462
463         * infrun.c (stop_soon): Delete.
464         (clear_proceed_status, start_remote)
465         (fetch_inferior_event, handle_inferior_event): Adjust.
466         (signal_stop_state): Don't check stop_soon here.  Check in callers
467         instead.
468         (save_inferior_status, restore_inferior_status): Adjust.
469
470         * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
471         signals to common code if starting up the inferior.
472         
473         * inferior.h (struct inferior_info): Added stop_soon member.
474         * inferior.c (add_inferior) Clear stop_soon.
475
476         * mips-tdep.c (heuristic_proc_start): Adjust.
477         * nto-procfs.c (procfs_create_inferior): Adjust.
478         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
479         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
480         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
481         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
482
483         * win32-nat.c (do_initial_win32_stuff): Adjust.
484
485         * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
486
487 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
488
489         Implement remote multi-process extensions.
490
491         * remote.c (struct remote_state): Add extended and
492         multi_process_aware fields.
493         (remote_multi_process_p): New.
494         (PACKET_vKill): New.
495         (record_currthread): Use thread_change_ptid.  Notice new
496         inferiors.
497         (set_thread, remote_thread_alive): Use write_ptid.
498         (write_ptid, read_ptid): New.
499         (remote_current_thread, remote_threads_extra_info): Use them.
500         (remote_threads_info): Likewise.  Detect new inferiors.
501         (remote_start_remote): Add inferior to inferior list.
502         (remote_multi_process_feature): New.
503         (remote_protocol_features): Add "multiprocess" feature.
504         (remote_query_supported): Pass "multiprocess+" as supported
505         features.
506         (remote_open_1): Clear multi_process_aware.  Set extended
507         accordingly.
508         (remote_detach_1): Detach current process.  Use extended packet
509         format for extended-remote multi-process.  Detach process from the
510         inferior list.  Only mourn after printing output.
511         (extended_remote_attach_1): Add process to the inferior list.
512         (remote_vcont_resume): Use write_ptid to pass the thread ids.
513         (remote_wait): Use read_ptid.  Implement the extended
514         multi-process extension format of the 'W' and 'X' reply packets.
515         Remove exited inferiors from inferior list.
516         (remote_xfer_memory): Set general thread.
517         (remote_vkill): New.
518         (extended_remote_kill): New.
519         (remote_mourn_1): Discard all inferiors.
520         (select_new_thread_callback): New.
521         (extended_remote_mourn_1): If there are more processes to debug,
522         switch to a thread in another process, and don't pop the target.
523         (extended_remote_create_inferior_1): Add the new process to the
524         inferior list.
525         (remote_stopped_by_watchpoint): Indenting.
526         (remote_xfer_partial): Set the general thread.
527         (remote_pid_to_str): If the remote is multi-process aware, print
528         the process id as well as the thread id.
529         (remote_get_thread_local_address): Use write_ptid.
530         (init_extended_remote_ops): Register extended_remote_kill.
531         (_initialize_remote): Register new packets.  Change
532         magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
533         member to 42000.
534
535         * thread.c (thread_change_ptid): Also account for the inferior pid
536         changing.
537
538         * inferior.h (discard_all_inferiors): Declare.
539         * inferior.c (discard_all_inferiors): New.
540
541 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
542
543         * gnu-nat.c (gnu_attach): Add process to inferiors table.
544         (gnu_detach): Remove it.
545         * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
546         table.
547         * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
548         to inferior table accordingly.
549         (inf_ptrace_attach): Add new process to inferior table.
550         (inf_ptrace_detach): Remove it.
551         * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
552         to inferior table accordingly.
553         (inf_ttrace_attach): Add process to inferior table.
554         (inf_ttrace_detach): Remove it.
555         * linux-fork.c (init_fork_list): Delete any left over inferior.
556         (linux_fork_mourn_inferior, detach_fork_command): Also delete
557         processes from inferior list.
558         * monitor.c (monitor_open): Add process to inferior list.
559         (monitor_close): Remove it.
560         * nto-procfs.c (procfs_attach): Add process to inferior list.
561         Find threads after pushing the target.
562         (procfs_detach): Remove process from inferior list.
563         (procfs_create_inferior): Add process to inferior list.
564         * procfs.c (procfs_detach): Remove process from inferior list.
565         (do_attach): Add process to inferior list.
566         * remote-sim.c (sim_create_inferior): Add process to inferior list.
567         (gdbsim_close): Remove it.
568         * target.c (generic_mourn_inferior): If inferior_ptid is not
569         null_ptid, remove the corresponding inferior from inferior list.
570         * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
571         (win32_detach): Remove it.
572         * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
573         to inferior list accordingly.
574         * fork-child.c (fork_inferior): Add process to inferior list.
575         * corelow.c (CORELOW_PID): Define.
576         (core_close): Remove core from inferior list.
577         (core_open): Add it.
578
579 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
580
581         * inferior.h: Forward declare struct ui_out.
582         Forward declare struct private_inferior.
583         (struct inferior): New.
584         (init_inferior_list, add_inferior, add_inferior_silent)
585         (delete_inferior, delete_inferior_silent, detach_inferior)
586         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
587         (valid_inferior_id, find_inferior_pid): New functions.
588         (inferior_callback_func): New typedef.
589         (iterate_over_inferiors, print_inferior, have_inferiors)
590         (current_inferior): New functions.
591         * inferior.c: New file.
592
593         * Makefile.in (SFILES): Add inferior.c.
594         (COMMON_OBS): Add inferior.o.
595
596 2008-09-22  Jonathan Larmour  <jifl@eCosCentric.com>
597
598         * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
599         instead of determining symbol and line info directly.
600         * MAINTAINERS: Update my email address.
601
602 2008-09-22  Daniel Jacobowitz  <dan@codesourcery.com>
603
604         * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
605         at the same address as a prologue marker.  Do not skip an entire
606         function.
607
608 2008-09-22  Andrew Stubbs  <ams@codesourcery.com>
609
610         * frame.c (get_frame_register_bytes): Comment improvments.
611
612 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
613
614         * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
615         all-stop mode.
616
617 2008-09-19  Andrew Stubbs  <ams@codesourcery.com>
618
619         * MAINTAINERS: Update my email address.
620
621 2008-09-19  Andrew Stubbs  <ams@codesourcery.com>
622
623         * frame.c (get_frame_register_bytes): Detect bad debug info.
624
625 2008-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
626
627         Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
628         * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
629         initialization ...
630         (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
631         ...
632         (handle_inferior_event): ... here after the add_thread call together
633         with the local adjust_pc_after_break and reinit_frame_cache calls.
634
635 2008-09-16  David Daney  <ddaney@avtrex.com>
636
637         * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
638         all hardware bpstats.
639
640 2008-09-16  Joel Brobecker  <brobecker@adacore.com>
641
642         * gstdint.h: Delete.
643
644 2008-09-15  Mark Kettenis  <kettenis@gnu.org>
645
646         * infcall.c (generic_push_dummy_code): Remove.
647         (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
648
649 2008-09-15  Doug Evans  <dje@google.com>
650
651         * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
652         (struct attribute): Ditto.
653
654 2008-09-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
655
656         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
657         HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
658
659         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
660         "#if 0" "#endif".  Fix mapping of DWARF DBX registers to GDB registers.
661         Correct arguments and improve comments.
662         (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum.  Delete
663         disabled code.
664         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
665         point DBX register, change error to warning, and improve comments.
666
667 2008-09-14  Doug Evans  <dje@google.com>
668
669         * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
670
671 2008-09-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
672
673         * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
674
675 2008-09-13  Joel Brobecker  <brobecker@adacore.com>
676
677         * defs.h (GCC_GENERATED_STDINT_H): Define.
678
679 2008-09-13  Tom Tromey  <tromey@redhat.com>
680
681         * varobj.c (varobj_set_display_format): Use xfree.
682         * tracepoint.c (stringify_collection_list): Use xfree.
683         * remote-fileio.c (remote_fileio_reset): Use xfree.
684         * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
685         * dfp.c (decimal_from_floating): Use xfree, xstrprintf.  Don't use
686         asprintf.
687         * cp-support.c (mangled_name_to_comp): Use xfree.
688
689 2008-09-13  Joel Brobecker  <brobecker@adacore.com>
690
691         * ada-lang.c (remove_extra_symbols): Remove stub symbols if
692         the associated complete symbol is also in the list.
693         (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
694         extracted out from ada_lookup_symbol_list.
695         (ada_lookup_symbol_list): Use them.  Remove the search through
696         the minimal symbols.
697
698 2008-09-13  Joel Brobecker  <brobecker@adacore.com>
699
700         * dwarf2read.c (add_partial_subprogram): New procedure.
701         (scan_partial_symbols): Use it.
702         (load_partial_dies): Read in children of subprogram and lexical
703         blocks for Ada compilation units.
704
705 2008-09-13  Tom Tromey  <tromey@redhat.com>
706
707         * symfile.c (build_id_verify): Free 'found'.
708         (find_separate_debug_file): Use xfree, not free.
709
710 2008-09-12  Doug Evans  <dje@google.com>
711
712         * corefile.c (write_memory): Remove unnecessary copying.
713
714         * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
715         order of _initialize_* fns.
716
717         * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
718         first_die_offset.  All uses updated.
719         Delete unused members cu_head_ptr, next.
720         Move members base_known, base_address to ...
721         (dwarf2_cu) ... here.  All uses updated.
722
723 2008-09-12  Pedro Alves  <pedro@codesourcery.com>
724
725         * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
726         * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
727
728 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
729
730         * fork-child.c (startup_inferior): Use target_wait and target_resume
731         directly instead of calling wait_for_inferior / resume.
732
733         * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
734         or init_wait_for_inferior.
735         (run_command_1): Call init_wait_for_inferior.
736
737 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
738
739         * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
740         builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
741         builtin_type_int, builtin_type_long, builtin_type_signed_char,
742         builtin_type_unsigned_char, builtin_type_unsigned_short,
743         builtin_type_unsigned_int, builtin_type_unsigned_long,
744         builtin_type_float, builtin_type_double, builtin_type_long_double,
745         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
746         builtin_type_bool, builtin_type_long_long,
747         builtin_type_unsigned_long_long): Remove macros.
748
749         (builtin_type_f_character, builtin_type_f_integer,
750         builtin_type_f_integer_s2, builtin_type_f_logical,
751         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
752         builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
753         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
754         builtin_type_f_complex_s32): Likewise.
755
756         (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
757         builtin_type_m2_real, builtin_type_m2_bool): Likewise.
758
759         (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
760         (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
761
762         * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
763         * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
764
765 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
766
767         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
768         target_gdbarch instead of builtin_type_void_data_ptr.
769         (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
770         IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
771         solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
772         open_symbol_file_object): Likewise.
773         * nto-tdep.c (LM_ADDR): Likewise.
774
775 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
776
777         * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
778         (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
779         bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
780
781 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
782
783         * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
784         and its associated types to perform pointer conversion.
785         (procfs_can_use_hw_breakpoint): Likewise.
786         (procfs_auxv_parse): Remove unused variable.
787
788 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
789
790         * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
791         instead of builtin_type_void_data_ptr.
792         * target.c (default_region_ok_for_hw_watchpoint): Likewise.
793
794 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
795
796         * expprint.c (print_subexp_standard): Compare against builtin type
797         associated with exp->gdbarch instead of builtin_type_char.
798
799         * f-valprint.c (f_val_print): Use extract_unsigned_integer to
800         extract values of arbitrary logical type.  Handle arbitrary
801         complex types.
802
803         * printcmd.c (float_type_from_length): New function.
804         (print_scalar_formatted, printf_command): Use it.
805
806 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
807
808         * valops.c: Include "objfiles.h" and "symtab.h".
809         (find_function_in_inferior): New argument OBJF_P.  Use it to return
810         objfile where function is defined.  Use per-objfile arch types
811         instead of builtin_type_ to define default return type.
812
813         * linux-fork.c (checkpoint_command): Update calls.  Use per-objfile
814         architecture to define inferior call argument types.
815         * gcore.c (derive_heap_segment): Likewise.
816         * objc-lang.c (value_nsstring): Likewise.
817         * scm-lang.c (scm_lookup_name): Likewise.
818         * scm-valprint.c (scm_inferior_print): Likewise.
819         * valops.c (value_allocate_space_in_inferior): Likewise.
820
821         * eval.c (evaluate_subexp_standard): Update calls.
822         * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
823
824         * linux-fork.c: Include "objfiles.h".
825         * scm-lang.c: Include "objfiles.h".
826         * scm-valprint.c: Include "objfiles.h".
827
828 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
829
830         * gdbarch.sh (name_of_malloc): Remove.
831         * gdbarch.c, gdbarch.h: Re-generate.
832         * valops.c (value_allocate_space_in_inferior): Do not call
833         gdbarch_name_of_malloc.
834
835 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
836
837         * valarith.c (value_x_unop): Use builtin_type_int8 as type for
838         UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
839         (value_bit_index): Use extract_unsigned_integer
840         instead of unpack_long to read single byte.
841
842 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
843
844         * infcall.c (value_arg_coerce): Add GDBARCH parameter.  Use its
845         associates types instead of builtin_type_ macros.
846         (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
847         (call_function_by_hand): Use per-architecture "int" type as
848         fall-back if find_function_addr returns NULL VALUE_TYPE.
849         Update call to value_arg_coerce.
850
851 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
852
853         * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
854         (cplus_make_method_ptr): Add TYPE parameter.
855         * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter.  Pass it
856         on to current_cp_abi.method_ptr_size callback.
857         (cplus_make_method_ptr): Add TYPE parameter.  Pass it on to
858         current_cp_abi.make_method_ptr callback.
859
860         * gdbtypes.c (lookup_methodptr_type): Pass target type
861         argument to cplus_method_ptr_size.
862         * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
863         (value_struct_elt_for_reference): Likewise.
864
865         * gnu-v3-abi.c (get_class_arch): New function.
866         (vtable_address_point_offset): Add GDBARCH parameter.  Use it
867         instead of current_gdbarch.  Update all callers.
868         (gnuv3_get_vtable): Likewise.
869         (gnuv3_get_virtual_fn): Likewise.
870         (gnuv3_decode_method_ptr): Likewise.
871         (gnuv3_rtti_type): Call get_class_arch to determine architecture.
872         Use it instead of current_gdbarch.
873         (gnuv3_virtual_fn_field): Likewise.
874         (gnuv3_baseclass_offset): Likewise.
875         (gnuv3_print_method_ptr): Likewise.
876         (gnuv3_method_ptr_to_value): Likewise.
877         (gnuv3_method_ptr_size): Add TYPE parameter.  Use it to determine
878         class architecture.  Use architecture types instead of builtin types.
879         (gnuv3_make_method_ptr): Likewise.
880
881         * cp-valprint.c (cp_print_class_member): Expect pointer type
882         instead of class type.  Use its length when extracting value.
883         * c-valprint.c (c_val_print): Update call to cp_print_class_member.
884
885 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
886
887         * stack.c (return_command): Use frame architecture to determine
888         default integer return type.
889
890         * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
891         to determine pointer types.
892         (f77_get_dynamic_upperbound): Likewise.
893
894         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
895         (resolve_msgsend): Use architecture of current frame to determine
896         pointer types.  Inline OBJC_FETCH_POINTER_ARGUMENT.
897         (resolve_msgsend_stret, resolve_msgsend_super,
898         resolve_msgsend_super_stret): Likewise.
899
900 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
901
902         * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
903         instead of builtin_type_ macros.
904         * amd64-tdep.c (amd64_register_type): Likewise.
905         (amd64_get_longjmp_target): Likewise.
906         * arm-tdep.c (arm_register_type): Likewise.
907         * avr-tdep.c (avr_register_type): Likewise.
908         * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
909         * frv-tdep.c (frv_register_type): Likewise.
910         * h8300-tdep.c (h8300_register_type): Likewise.
911         * hppa-tdep.c (hppa32_convert_from_func_ptr_addr, 
912         hppa_skip_trampoline_code): Likewise.
913         * i386-tdep.c (i386_register_type): Likewise.
914         (i386_unwind_pc, i386_sse_type): Likewise.
915         * ia64-tdep.c (ia64_register_type): Likewise.
916         * m32r-tdep.c (m32r_register_type): Likewise.
917         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
918         * m88k-tdep.c (m88k_register_type): Likewise.
919         * mep-tdep.c (mep_register_type): Likewise.
920         * mips-tdep.c (mips_pseudo_register_type): Likewise.
921         * mn10300-tdep.c (mn10300_register_type): Likewise.
922         * mt-tdep.c (mt_copro_register_type): Likewise.
923         * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
924         (rs6000_convert_register_p, rs6000_register_to_value,
925         rs6000_value_to_register): Likewise.
926         * s390-tdep.c (s390_register_type): Likewise.
927         * sh64-tdep.c (sh64_register_type): Likewise.
928         (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
929         * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
930         sh_sh4_build_float_register_type, sh_sh4_register_type,
931         sh_default_register_type): Likewise.
932         * sparc64-tdep.c (sparc64_register_type): Likewise.
933         * sparc-tdep.c (sparc32_register_type): Likewise.
934         * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
935         * v850-tdep.c (v850_register_type): Likewise.
936         * vax-tdep.c (vax_register_type): Likewise.
937         * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
938         xtensa_push_dummy_call): Likewise.
939
940         * std-regs.c (value_of_builtin_frame_fp_reg,
941         value_of_builtin_frame_pc_reg): Likewise.
942         * target-descriptions.c (tdesc_register_type): Likewise.
943
944 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
945
946         * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
947         instead of builtin_type_int as default unspecified integral type.
948         (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
949         assign_component, to_fixed_range_type): Likewise.
950         * ada-typeprint.c (print_range, print_range_bound,
951         print_range_type_named): Likewise.
952         * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
953         * eval.c (evaluate_subexp_standard): Likewise.
954         * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
955         * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
956         build_gdb_vtable_type): Likewise.
957         * jv-lang.c (java_array_type): Likewise.
958         * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
959         * m2-valprint.c (m2_print_long_set): Likewise.
960         * parse.c (follow_types): Likewise.
961         * p-typeprint.c (pascal_type_print_base): Likewise.
962         * valops.c (value_one, value_array, value_string,
963         value_bitstring): Likewise.
964         * value.c (allocate_repeat_value, value_from_string): Likewise.
965         * varobj.c (c_describe_child): Likewise.
966         * mt-tdep.c (mt_register_type): Likewise.
967         * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
968         * sh64-tdep.c (sh64_build_float_register_type): Likewise.
969
970 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
971
972         * defs.h (struct gdbarch): Add forward declaration.
973         (set_next_address): Add GDBARCH argument.
974         * printcmd.c (set_next_address): Use it to find pointer type.
975         * breakpoint.c (breakpoint_1): Update call.
976         * source.c (line_info): Likewise.
977         * findcmd.c (find_command): Use current_gdbarch to find pointer type.
978
979         * breakpoint.c (set_breakpoint_count): Use platform-neutral
980         types for internal variable values.
981         * infrun.c (handle_inferior_event): Likewise.
982         * source.c (forward_search_command, reverse_search_command): Likewise.
983         * tracepoint.c (set_tracepoint_count, set_traceframe_num,
984         set_tracepoint_num, set_traceframe_context): Likewise.
985
986 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
987
988         * gdbtypes.h (struct builtin_type): Remove builtin_true_char
989         and builtin_true_unsigned_char.
990         (builtin_type_true_char): Remove macro, add extern declaration.
991         (builtin_type_true_unsigned_char): Add extern declaration.
992         * gdbtypes.c (builtin_type_true_char): New global variable.
993         (builtin_type_true_unsigned_char): Likewise.
994         (_initialize_gdbtypes): Initialize them.
995         (gdbtypes_post_init): Do not initialize builtin_true_char
996         and builtin_true_unsigned_char members of struct builtin_type.
997
998         * printcmd.c (print_scalar_formatted): Do not use builtin_type;
999         use builtin_type_true_unsigned_char instead.
1000
1001         * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
1002         instead of builtin_type_char for internal string.
1003
1004 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1005
1006         * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
1007         (builtin_type_f_void): Remove macro.
1008         * gdbtypes.c (builtin_type_void): New global variable.
1009         (_initialize_gdbtypes): Initialize it.
1010
1011         * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
1012         lookup_pointer_type or lookup_function_type on builtin_type_void.
1013         * printcmd.c (set_next_address): Likewise.
1014         * objc-lang.c (value_nsstring): Likewise.
1015         * mt-tdep.c (mt_copro_register_type): Likewise.
1016         * xtensa-tdep.c (xtensa_register_type): Likewise.
1017
1018         * symfile.c (syms_from_objfile): Remove special handling
1019         of builtin_type_void and builtin_type_char.
1020
1021 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1022
1023         * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
1024         of builtin_type_ macros when handling OP_OBJC_ operations.
1025         * objc-lang.c (print_object_command): Likewise.
1026
1027 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1028
1029         * ada-valprint.c: Include "objfiles.h".
1030         (ada_val_print_1): Use the gdbarch associated with the objfile whether
1031         a System.Address type is defined to retrieve the proper pointer type
1032         to use to print it.
1033
1034 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1035
1036         * ada-lang.c (value_pos_atr): Add TYPE argument.  Use it as
1037         result type instead of builtin_type_int.
1038         (value_subscript_packed): Use pos_atr instead of value_pos_atr.
1039         (ada_value_subscript): Update call to value_pos_atr.
1040         (ada_value_ptr_subscript): Likewise.
1041         (ada_evaluate_subexp): Likewise.
1042
1043 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1044
1045         * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
1046         (cast_from_fixed_to_double): Rename to ...
1047         (cast_from_fixed): ... this.  Add TYPE parameter.  Use it instead
1048         of builtin_type_double.
1049         (ada_value_cast): Use cast_from_fixed instead of casting result
1050         of cast_from_fixed_to_double.
1051         (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double. 
1052
1053 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1054
1055         * valops.c (value_ind): No longer allow dereferencing an
1056         integer type.
1057         * eval.c (evaluate_subexp_standard): Handle deferencing an
1058         integer type here.
1059         * ada-lang.c (ada_evaluate_subexp): Likewise.
1060
1061 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1062
1063         * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
1064         a reference type, pass the reference type directly to unpack_pointer.
1065         * c-valprint.c (c_val_print): Likewise.
1066         * f-valprint.c (f_val_print): Likewise.
1067         * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
1068         * p-valprint.c (pascal_val_print): Likewise.
1069
1070 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1071
1072         * eval.c (evaluate_subexp_standard): Use builtin_type_int8
1073         to construct the EVAL_SKIP dummy return value.
1074         * ada-lang.c (ada_evaluate_subexp): Likewise.
1075         * jv-lang.c (evaluate_subexp_java): Likewise.
1076         * m2-lang.c (evaluate_subexp_modula2): Likewise.
1077         * scm-lang.c (evaluate_exp): Likewise.
1078
1079 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1080
1081         * value.h (coerce_enum, coerce_number): Remove prototypes.
1082         * value.c (coerce_enum, coerce_number): Remove.
1083         * valarith.c (value_x_binop): Do not call coerce_enum.
1084         (value_x_unop): Likewise.
1085         (value_logical_not): Call coerce_array instead of coerce_number.
1086
1087 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1088
1089         * ax-gdb.c: Include "language.h".
1090         (gen_frame_args_address): Add GDBARCH parameter; use it
1091         instead of current_gdbarch.
1092         (gen_frame_locals_address): Likewise.
1093         (gen_var_ref): Add GDBARCH parameter.  Update calls to
1094         gen_frame_args_address and gen_frame_locals_address.  Use
1095         pointer type from gdbarch.
1096         (gen_usual_unary): Add EXP parameter.  Use integer type
1097         from exp->gdbarch.
1098         (gen_usual_arithmetic): Likewise.
1099         (gen_integral_promotions): Likewise.
1100         (gen_add, gen_sub): Remove.
1101         (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
1102         (gen_logical_not): Use passed-in boolean result type
1103         instead of builtin_type_int.
1104         (gen_complement): Do not call gen_usual_unary or
1105         gen_integral_promotions.
1106         (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
1107         (gen_repeat): Add EXP parameter.  Update call to gen_expr.
1108         Use builtin_type_int32 as internal range type.
1109         (gen_sizeof): Add EXP and SIZE_TYPE parameters.  Use SIZE_TYPE
1110         as result type.  Update call to gen_expr.
1111         (gen_expr): Add EXP parameter.  Update calls to gen_expr,
1112         gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
1113         and gen_integral_promotions.  Call gen_ptradd, gen_ptrsub,
1114         gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
1115         Use exp->gdbarch instead of current_gdbarch.
1116         Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
1117
1118 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1119
1120         * eval.c (evaluate_subexp_standard): Add calls to binop_promote
1121         and unop_promote before calling value_binop et. al.
1122         * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
1123         and unop_promote before calling value_binop et. al.
1124
1125         * valarith.c (value_binop): Do not call binop_promote or unop_promote.
1126         (value_pos): Do not call unop_promote.
1127         (value_neg, value_complement): Likewise.
1128
1129 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1130
1131         * value.h (unop_promote, binop_promote): Add prototypes.
1132         * eval.c (unop_promote, binop_promote): New functions.
1133         * valarith.c (unop_result_type, binop_result_type): Remove.
1134         (value_binop): Call binop_promote or unop_promote.
1135         Inline remaining parts of binop_result_type.  Remove special
1136         code to truncate integer values for unsigned operations.
1137         (value_pos): Call unop_promote.  Inline remaining parts of
1138         unop_result_type.
1139         (value_neg, value_complement): Likewise.
1140
1141 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1142
1143         * value.h (value_add, value_sub): Remove.
1144         (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
1145         * valarith.c (value_add, value_sub): Remove.
1146         (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
1147         (find_size_for_pointer_math): Add assertion.  Update comment.
1148         (value_binop): Update comment.
1149
1150         * eval.c (ptrmath_type_p): New function.
1151         (evaluate_subexp_standard): Replace value_add and value_sub
1152         by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
1153         Use builtin_type_uint8 instead of builtin_type_char to hold
1154         the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
1155         * valarith.c (value_subscript): Replace value_add by
1156         value_ptradd.  Replace value_sub by value_binop.
1157         * ada-lang.c (ada_value_ptr_subscript): Likewise.
1158         (ada_tag_name_2): Replace value_add by value_ptradd.
1159         (ada_evaluate_subexp): Replace value_add and value_sub by
1160         value_binop.
1161         * m2-lang.c (evaluate_subexp_modula2): Replace value_add
1162         by value_ptradd.
1163         * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1164         * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
1165
1166 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1167
1168         * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
1169         the expression architecture instead of builtin_type_int as the
1170         sizeof return type.
1171
1172 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1173
1174         * expression.h (enum exp_opcode): Document OP_COMPLEX to take
1175         a type parameter as expression element.
1176         * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
1177         type as expression element.
1178         * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
1179         * parse.c (operator_length_standard): Update length of OP_COMPLEX.
1180
1181 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1182
1183         * language.h (struct language_arch_info): New members
1184         bool_type_default and bool_type_symbol.
1185         (lang_bool_type): Remove prototype.
1186         (LA_BOOL_TYPE): Remove macro.
1187         (language_bool_type): Add prototype.
1188         * language.c (lang_bool_type): Remove.
1189         (language_bool_type): New function.
1190
1191         * value.h (value_in): Change return value to int.
1192         * value.c (value_in): Return int instead of struct value *.
1193
1194         * eval.c (evaluate_subexp_standard): Call language_bool_type instead
1195         of using LA_BOOL_TYPE.  Update call to value_in.
1196         * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
1197         of using LA_BOOL_TYPE or builtin_type_int for boolean values.
1198
1199         * language.c (unknown_language_arch_info): Set bool_type_default member
1200         of struct language_arch_info.
1201         * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
1202         bool_type_default members of struct language_arch_info.
1203         * c-lang.c (c_language_arch_info): Set bool_type_default member
1204         of struct language_arch_info.
1205         (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
1206         members of struct language_arch_info.
1207         * f-lang.c (f_language_arch_info): Set bool_type_symbol and
1208         bool_type_default members of struct language_arch_info.
1209         * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
1210         bool_type_default members of struct language_arch_info.
1211         * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
1212         bool_type_default members of struct language_arch_info.
1213         * p-lang.c (p_language_arch_info): Set bool_type_symbol and
1214         bool_type_default members of struct language_arch_info.
1215
1216 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1217
1218         * jv-lang.c (enum java_primitive_types): New type.
1219         (java_language_arch_info): New function.
1220         (java_language): Use it instead of c_language_arch_info.
1221
1222 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1223
1224         * value.h (value_bitstring_subscript): New prototype.
1225         * valarith.h (value_bitstring_subscript): New function.
1226         (value_subscript): No longer handle TYPE_CODE_BITSTRING.
1227         * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
1228         instead of value_subscript to handle TYPE_CODE_BITSTRING.
1229
1230 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1231
1232         * expression.h (struct expression): New member GDBARCH.
1233         * parse.c (parse_exp_in_context): Initialize it.
1234         * parser-def.h (parse_gdbarch, parse_language): New macros.
1235
1236         * ada-exp.y (parse_type): New macro.
1237         Replace builtin_type_ macros by using parse_type.
1238         Replace current_language by parse_language.
1239         * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
1240         Replace builtin_type_ macros.
1241
1242         * c-exp.y (parse_type): New macro.
1243         Replace builtin_type_ macros by using parse_type.
1244         (parse_number): Replace current_gdbarch by parse_gdbarch.
1245         (yylex): Replace current_language by parse_language.
1246
1247         * f-exp.y (parse_type, parse_f_type): New macros.
1248         Replace builtin_type_ macros by using parse_{f_,}type.
1249         (parse_number): Replace current_gdbarch by parse_gdbarch.
1250         (yylex): Replace current_language by parse_language.
1251
1252         * jv-exp.y (parse_type): New macro.
1253         (parse_number): Replace builtin_type_ macros by using parse_type.
1254
1255         * m2-exp.y (parse_type, parse_m2_type): New macros.
1256         Replace builtin_type_ macros by using parse_{m2_,}type.
1257
1258         * objc-exp.y (parse_type): New macro.
1259         Replace builtin_type_ macros by using parse_type.
1260         (parse_number): Replace current_gdbarch by parse_gdbarch.
1261         (yylex): Replace current_language by parse_language.
1262
1263         * p-exp.y (parse_type): New macro.
1264         Replace builtin_type_ macros by using parse_type.
1265         (parse_number): Replace current_gdbarch by parse_gdbarch.
1266         (yylex): Replace current_language by parse_language.
1267
1268 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1269
1270         * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
1271         and DATA_SYMBOL_TYPE arguments.
1272         * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
1273         DATA_SYMBOL_TYPE arguments.  Replace use of builtin_type_CORE_ADDR.
1274         (write_dollar_variable): Update call.
1275
1276         * ada-exp.y (write_var_or_type): Update call.
1277         * c-exp.y: Likewise.
1278         * f-exp.y: Likewise.
1279         * jv-exp.y: Likewise.
1280         * m2-exp.y: Likewise.
1281         * objc-exp.y: Likewise.
1282         * p-exp.y: Likewise.
1283
1284 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
1285
1286         * ada-lang.c (ada_parent_type): Add handling of the case where
1287         the _parent field is a pointer and/or has a parallel XVS type.
1288         (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
1289         EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
1290         the type of the tag instead of doing forcing an EVAL_NORMAL
1291         expression evaluation.
1292
1293 2008-09-10  Paul N. Hilfinger  <hilfinger@adacore.com> 
1294             Joel Brobecker  <brobecker@adacore.com>
1295
1296         * ada-lang.c (is_digits_suffix): New function.
1297         (is_dot_digits_suffix): Remove.
1298         (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
1299         before looking up in symbol table, and do not use wild matches on them.
1300         (wild_match): Reimplement for speed and to allow matching of operator
1301         symbols.
1302         (is_valid_name_for_wild_match): Return zero for names that do not
1303         follow the GNAT encoding.
1304
1305         (is_name_suffix): Fix typo in comment.
1306         (to_record_with_fixed_variant_part): Ditto.
1307
1308 2008-09-10  Pedro Alves  <pedro@codesourcery.com>
1309
1310         * Makefile.in (gnu-nat.o): New rule.
1311
1312 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
1313
1314         * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
1315         archecture-neutral builtin_type_int32 instead of builtin_type_int.
1316
1317 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
1318
1319         * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
1320         Add special handling for pointer types.
1321
1322 2008-09-10  Pedro Alves  <pedro@codesourcery.com>
1323
1324         * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
1325         right scope level.
1326         (inf_ttrace_resume, inf_ttrace_wait): Typos.
1327
1328 2008-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1329
1330         * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
1331         of builtin_type_int.
1332         (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
1333         instead of builtin_type_int.
1334
1335 2008-09-09  Pedro Alves  <pedro@codesourcery.com>
1336
1337         * infrun.c (normal_stop): Run hook-stop last.
1338
1339 2008-09-09  Pedro Alves  <pedro@codesourcery.com>
1340
1341         * gnu-nat.c (gnu_pid_to_exec_file): Delete.
1342         (init_gnu_ops): Don't register it.
1343
1344 2008-09-09  Pedro Alves  <pedro@codesourcery.com>
1345
1346         * gnu-nat.c (gnu_attach): Push target before fetching the list of
1347         threads.
1348
1349 2008-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1350
1351         * valops.c (value_cast_structs): Return NULL for failure.
1352         (value_cast): Handle NULL from value_cast_structs.
1353         (value_fetch_lazy): Call check_typedef.  Remove unused variable.
1354
1355 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1356
1357         * inferior.h (context_switch_to): Delete.
1358         * infrun.c (context_switch): Don't save and load infrun state.
1359         (context_switch_to): Delete.
1360
1361         * infcmd.c (proceed_thread_callback): Replace context_switch_to
1362         calls by switch_to_thread calls.
1363
1364         * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
1365         * thread.c (main_thread_state, main_thread_executing): Delete.
1366         (inferior_thread): Delete references to them.
1367         (add_thread_silent): Fix case where we're adding a thread with the
1368         same ptid as an exited thread.  Remove references to
1369         context-switching.
1370         (load_infrun_state, save_infrun_state): Delete.
1371         (thread_alive, is_thread_state, any_running, is_executing)
1372         (set_executing): Remove the special handling for targets that
1373         don't register any thread.
1374         (restore_current_thread, thread_apply_all_command)
1375         (do_captured_thread_select): Unconditionally call
1376         switch_to_thread.
1377
1378         * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
1379         Call switch_to_thread instead of context_switch_to.
1380
1381 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1382
1383         Remove global continuations in favour of a per-thread
1384         continuations.
1385
1386         * gdbthread.h (struct thread_info): Add comments around
1387         continuations and intermediate_continuations.
1388         (save_infrun_state, load_infrun_state): Delete continuations and
1389         intermediate_continuations arguments.
1390         * infrun.c (context_switch): Don't context-switch the continuations.
1391         * thread.c (clear_thread_inferior_resources): Discard all
1392         continuations of the thread we're clearing.
1393         (save_infrun_state, load_infrun_state): Delete continuations and
1394         intermediate_continuations arguments, and the code referencing
1395         them.
1396         * utils.c: Include "gdbthread.h".
1397         (cmd_continuation, intermediate_continuation): Delete.
1398         (add_continuation): Add thread_info* argument.  Install the
1399         continuation on it.
1400         (restore_thread_cleanup): New.
1401         (do_all_continuations_ptid, do_all_continuations_thread_callback):
1402         New.
1403         (do_all_continuations): Reimplement.
1404         (discard_all_continuations_thread_callback,
1405         discard_all_continuations_thread): New.
1406         (discard_all_continuations): Reimplement.
1407         (add_intermediate_continuation): Add thread_info* argument.
1408         Install the continuation on it.
1409         (do_all_intermediate_continuations_thread_callback)
1410         (do_all_intermediate_continuations_thread): New.
1411         (do_all_intermediate_continuations): Reimplement.
1412         (discard_all_intermediate_continuations_thread_callback): New.
1413         (discard_all_intermediate_continuations_thread): New.
1414         (discard_all_intermediate_continuations): Reimplement.
1415
1416         * breakpoint.c (until_break_command): Install the continuation on
1417         the current thread.
1418
1419         * defs.h (cmd_continuation, intermediate_continuation): Delete.
1420         (struct thread_info): Forward declare.
1421         (add_continuation, add_intermediate_continuation): Add
1422         thread_info* argument.
1423         (do_all_continuations_thread, discard_all_continuations_thread)
1424         (do_all_intermediate_continuations_thread)
1425         (discard_all_intermediate_continuations_thread): Declare.
1426         * inf-loop.c (inferior_event_handler): In non-stop only run
1427         continuations on the thread that stopped.  In all-stop, run
1428         continuations on all threads.
1429         * infcmd.c (step_once, finish_command): Adjust.
1430
1431 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1432
1433         Remove the global stop_step in favour of a per-thread
1434         stop_step.
1435
1436         * inferior.h (stop_step): Delete.
1437
1438         * gdbthread.h (struct thread_info): Add comments to stop_step.
1439         (save_infrun_state, load_infrun_state): Remove stop_step argument.
1440         * thread.c (load_infrun_state, save_infrun_state): Remove
1441         stop_step argument, and references to it.
1442
1443         * infrun.c (clear_proceed_status): Clear stop_step.
1444         (fetch_inferior_event): Adjust.
1445         (context_switch): Don't context-switch stop_step.
1446         (handle_inferior_event): Adjust.
1447         (normal_stop): Adjust.
1448         (save_inferior_status, restore_inferior_status): Adjust.
1449
1450         * infcmd.c (stop_step): Delete.
1451         (step_1, step_1_continuation, step_once, until_next_command):
1452         Adjust.
1453
1454 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1455
1456         Remove the global step_multi in favour of a per-thread
1457         step_multi.
1458
1459         * inferior.h (step_multi): Delete.
1460         * gdbthread.h (struct thread_info): Add comments around
1461         step_multi.
1462         (save_infrun_state, load_infrun_state): Remove step_multi
1463         parameter.
1464         * thread.c (load_infrun_state, save_infrun_state): Remove
1465         step_multi argument, and references to it.
1466         * infcmd.c (step_multi): Delete.
1467         (step_1): Adjust.
1468         (step_1_continuation, until_next_command): Adjust.
1469         * infrun.c (fetch_inferior_event): Adjust.
1470         (context_switch): Don't context-switch step_multi.
1471         (print_stop_reason, normal_stop): Adjust.
1472
1473 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1474
1475         Remove the global stop_signal in favour of a per-thread
1476         stop_signal.
1477
1478         * inferior.h (stop_signal): Delete.
1479         * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1480         stop_signal argument.
1481         * thread.c (load_infrun_state, save_infrun_state): Remove
1482         stop_signal argument.  Don't reference it.
1483
1484         * infcmd.c (stop_signal): Delete.
1485         (program_info): Adjust.
1486         * infrun.c (resume): Clear stop_signal.
1487         (proceed): Adjust.  Pass the last stop_signal to the thread we're
1488         resuming.
1489         (context_switch): Don't context-switch stop_signal.
1490         (handle_inferior_event, keep_going): Adjust.
1491         (save_inferior_status, restore_inferior_status): Adjust.
1492
1493         * fbsd-nat.c: Include "gdbthread.h".
1494         (find_signalled_thread, find_stop_signal): New.
1495         (fbsd_make_corefile_notes): Use it.
1496         * fork-child.c (startup_inferior): Adjust.
1497
1498         * linux-nat.c (get_pending_status): Adjust.
1499         (linux_nat_do_thread_registers): Adjust.
1500         (find_signalled_thread, find_stop_signal): New.
1501         (linux_nat_do_thread_registers): Add stop_signal parameter.
1502         (struct linux_nat_corefile_thread_data): Add stop_signal member.
1503         (linux_nat_corefile_thread_callback): Pass stop_signal.
1504         (linux_nat_do_registers): Delete.
1505         (linux_nat_make_corefile_notes): Use find_stop_signal.  Assume
1506         there's always a thread.
1507
1508         * procfs.c (find_signalled_thread, find_stop_signal): New.
1509         (find_stop_signal): New.
1510         (procfs_do_thread_registers): Add stop_signal parameter.
1511         (struct procfs_corefile_thread_data): Add stop_signal member.
1512         (procfs_corefile_thread_callback): Pass args->stop_signal.
1513         (procfs_make_note_section): Find the last stop_signal.
1514
1515         * solib-irix.c: Include gdbthread.h.
1516         (irix_solib_create_inferior_hook): Adjust.
1517         * solib-osf.c: Include gdbthread.h.
1518         (osf_solib_create_inferior_hook): Adjust.
1519         * solib-sunos.c: Include gdbthread.h.
1520         (sunos_solib_create_inferior_hook): Adjust.
1521         * solib-svr4.c: Include gdbthread.h.
1522         (svr4_solib_create_inferior_hook): Adjust.
1523
1524         * win32-nat.c (do_initial_win32_stuff): Adjust.
1525
1526 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1527
1528         * gdbthread.h (struct thread_info): Add comments around
1529         proceed_to_finish.
1530         (save_infrun_state, load_infrun_state): Remove proceed_to_finish
1531         argument.
1532         * thread.c (load_infrun_state, save_infrun_state): Delete
1533         proceed_to_finish argument and references to it.
1534
1535         * infcall.c (call_function_by_hand): Adjust.
1536         * infcmd.c (finish_command): Adjust.
1537         * infrun.c (proceed_to_finish): Delete.
1538         (clear_proceed_status): Adjust.
1539         (context_switch): Don't context-switch proceed_to_finish.
1540         (normal_stop, save_inferior_status, restore_inferior_status):
1541         Adjust.
1542
1543 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1544
1545         * inferior.h (stop_bpstat): Delete.
1546
1547         * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
1548         
1549         * breakpoint.c (bpstat_do_actions): Rename to ...
1550         (bpstat_do_actions_1): ... this.  Make static.  Change return type
1551         to int.  Return true if a breakpoint proceeded.
1552         (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
1553         (delete_breakpoint): Don't reference the global stop_bpstat; it's
1554         gone.
1555
1556         * gdbthread.h (struct thread_info): Add stop_bpstat.
1557         (save_infrun_state, load_infrun_state): Remove stop_bpstat
1558         argument.
1559         * thread.c (load_infrun_state, save_infrun_state): Remove
1560         stop_bpstat argument, and the code referencing it.
1561
1562         * infcall.c: Include "gdbthread.h".
1563         (call_function_by_hand): Adjust.
1564         * exceptions.c: Include "gdbthread.h".
1565         (throw_exception): Adjust.
1566         * infcmd.c (stop_bpstat): Delete.
1567         (continue_command): In all-stop, set the ignore count on the
1568         thread that reported the stop.  In non-stop, set it on the current
1569         thread.
1570         (finish_command_continuation): Adjust.
1571         (program_info): Adjust.
1572         * infrun.c (clear_proceed_status): Adjust.
1573         (context_switch): Don't context-switch stop_bpstat.
1574         (handle_inferior_event): Adjust.
1575         (normal_stop): Adjust.
1576         (save_inferior_status, restore_inferior_status): Adjust.
1577
1578         * inf-loop.c (inferior_event_handler): Remove parameter to
1579         bpstat_do_actions call.
1580         * top.c (command_loop): Remove parameter to bpstat_do_actions
1581         call.  Call it unconditionally.
1582         * event-top.c (command_handler): Ditto.
1583         * python/python.c (execute_gdb_command): Ditto.
1584
1585 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1586
1587         * inferior.h (step_over_calls): Delete.
1588
1589         * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1590         step_over_calls argument.
1591         * thread.c (save_infrun_state, load_infrun_state): Remove
1592         step_over_calls argument.  Adjust.
1593
1594         * infcmd.c (step_over_calls): Delete.
1595         (step_1): Adjust.
1596         * infrun.c (clear_proceed_status): Adjust.
1597         (context_switch): Don't context-switch step_over_calls.
1598         (handle_inferior_event, save_inferior_status)
1599         (restore_inferior_status): Adjust.
1600
1601 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1602
1603         Remove context switching in favour of accessing thread_info fields
1604         directly.
1605
1606         * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
1607         Delete.
1608         (struct thread_stepping_state): Delete.
1609         (gtss, tss): Delete.
1610         (follow_inferior_reset_breakpoints, follow_exec)
1611         (resume, clear_proceed_status): Adjust.
1612         (prev_pc): Delete.
1613         (proceed, start_remote, init_wait_for_inferior): Adjust.
1614         (struct execution_control_state): Add event_thread member.
1615         (delete_step_resume_breakpoint_callback)
1616         (delete_step_thread_step_resume_breakpoint)
1617         (delete_step_thread_step_resume_breakpoint_cleanup)
1618         (delete_step_thread_step_resume_breakpoint): New.
1619         (wait_for_inferior, init_execution_control_state): Use
1620         delete_step_thread_step_resume_breakpoint_cleanup.
1621         (wait_for_inferior): Set the event_thread.
1622         (fetch_inferior_event): Ditto.  Delete the step-resume breakpoint
1623         with delete_step_thread_step_resume_breakpoint.
1624         (init_thread_stepping_state): Change parameter type to
1625         thread_info.  Adjust.
1626         (context_switch): Don't context switch prev_pc,
1627         stepping_over_breakpoint, step_resume_breakpoint,
1628         step_range_start, step_range_end, step_frame_id,
1629         tss->stepping_over_breakpoint,
1630         tss->stepping_through_solib_after_catch,
1631         tss->stepping_through_solib_catchpoints, tss->current_line, or
1632         tss->current_symtab.
1633         (adjust_pc_after_break, handle_inferior_event)
1634         (currently_stepping, step_into_function)
1635         (insert_step_resume_breakpoint_at_sal)
1636         (insert_longjmp_resume_breakpoint, keep_going): Adjust.
1637         (clear_stepping_state): New.
1638         (normal_stop): Adjust.
1639         (save_inferior_status, restore_inferior_status): Adjust.
1640
1641         * gdbthread.h (struct thread_info): Comments describing the
1642         members moved here.  Add step_after_step_resume_breakpoint.
1643         (delete_step_resume_breakpoint): Add thread_info argument.
1644         (save_infrun_state, load_infrun_state): Remove prev_pc,
1645         trap_expected, step_resume_breakpoint, step_range_start,
1646         step_range_end, step_frame_id, another_trap,
1647         stepping_through_solib_after_catch,
1648         stepping_through_solib_catchpoints, current_line and
1649         current_symtab function arguments.
1650         (inferior_thread): Declare.
1651
1652         * thread.c (inferior_thread): New.
1653         (delete_step_resume_breakpoint): Add a thread_info parameter and
1654         rewrite.
1655         (load_infrun_state, save_infrun_state): Remove prev_pc,
1656         trap_expected, step_resume_breakpoint, step_range_start,
1657         step_range_end, step_frame_id, stepping_over_breakpoint,
1658         stepping_through_solib_after_catch,
1659         stepping_through_solib_catchpoints, current_line and
1660         current_symtab args.  Remove code referencing them.
1661
1662         * infcmd.c (step_range_start, step_range_end, step_frame_id):
1663         Delete.
1664         (step_1, step_once, until_next_command): Adjust.
1665
1666         * inferior.h (step_range_start, step_range_end, step_frame_id):
1667         Delete.
1668
1669         * linux-nat.c (linux_child_follow_fork): If following the child,
1670         move the step state to it.  Adjust.
1671         * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
1672         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1673
1674 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1675
1676         * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
1677         thread.
1678
1679 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1680
1681         * corelow.c (add_to_thread_list): If this is the first time we
1682         hear about thread info, update inferior_ptid.
1683         (core_open): Clear the thread list and set inferior_ptid before
1684         acknowledging a new inferior.  Find threads before fetching
1685         register info.  Give an upper target layer a chance to find and
1686         claim new threads.  Print core generation and stop signal info
1687         after finding new threads.
1688         (get_core_register_section): Look at the lwp member of
1689         inferior_ptid for detecting if we have threads info, instead of
1690         the pid member.
1691         (core_pid_to_str): New.
1692         (init_core_ops): Register core_pid_to_str.
1693
1694 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1695
1696         * spu-linux-nat.c (spu_child_post_startup_inferior)
1697         (spu_child_post_attach): Don't add the main thread here.
1698
1699 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1700
1701         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1702
1703         * gnu-nat.c (inf_validate_procs): If this is the first time we're
1704         seeing a thread id, extend the main thread's ptid.  If we still
1705         have pending execs, don't be verbose about new threads.
1706         (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
1707         (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
1708         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
1709         Adjust.
1710
1711 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1712
1713         * procfs.c (to_attach): Create a procinfo for the current lwp.
1714         Add it to gdb's thread list.
1715         (procfs_fetch_registers, procfs_store_registers): Assume there's
1716         always an lwp.
1717         (procfs_wait): Don't add the main thread here.
1718         (procfs_init_inferior): Create a procinfo for the main lwp here.
1719         Change main thread's ptid with thread_change_ptid.
1720         (procfs_notice_thread): Check for exited threads.
1721         (procfs_corefile_thread_callback): Remove check for the main
1722         process.
1723         (procfs_make_note_section): Assume there is always a thread.
1724
1725         * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
1726         attaching.  Change the main thread ptid with thread_change_ptid.
1727         (sol_thread_detach): Clear sol_thread_active.
1728         (sol_thread_wait): Check for exited threads.
1729         (sol_thread_create_inferior): Clear sol_thread_active before
1730         creating a new inferior.  Change the main thread ptid with
1731         thread_change_ptid.
1732         (sol_thread_mourn_inferior): Clear sol_thread_active.
1733         (sol_find_new_threads_callback): Check for exited threads.
1734
1735 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1736
1737         * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
1738         LWP_TERMINATE, resume the caller thread.  On TTEVT_LWP_CREATE,
1739         TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
1740         process, and return TARGET_WAITKIND_IGNORE.
1741
1742 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1743
1744         * inf-ttrace.c: Include <signal.h>
1745         (inf_ttrace_delete_dead_threads_callback): New.
1746         (inf_ttrace_resume_lwp): New.
1747         (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite.  Don't
1748         delete dying threads until they are really dead.
1749         (inf_ttrace_wait): After stopping the whole process, delete any
1750         dying thread that is really dead by now.
1751         (inf_ttrace_thread_alive): Return 1.
1752         (inf_ttrace_extra_thread_info): New.
1753         (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
1754
1755 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1756
1757         * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
1758         of the child fork.
1759         (inf_ttrace_attach): Add the main thread.
1760         (inf_ttrace_resume_callback): Check for exited threads.  Adjust
1761         for always a thread.
1762         (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
1763         using thread_change_ptid, and set its private data.  Don't add the
1764         main thread here.
1765         (inf_ttrace_pid_to_str): Adjust.
1766
1767 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1768
1769         * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
1770         thread_change_ptid.  Check for exited threads.
1771         (bsd_uthread_find_new_threads): Check for exited threads.
1772
1773 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1774
1775         * inf-ptrace.c: Include "gdbthread.h".
1776         (inf_ptrace_attach): Add the main thread here.
1777         * linux-nat.c (linux_nat_attach): Don't add the main thread here.
1778         Decorate the main thread id with the lwp id.
1779
1780 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1781
1782         * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
1783         thread_change_ptid.  Don't add or mark the main thread as running
1784         and executing here.
1785         * fork-child.c (fork_inferior): Add the main thread here.
1786
1787 2008-09-08  Jerome Guitton  <guitton@adacore.com>
1788
1789         * rs6000-tdep.c (rs6000_fetch_instruction)
1790         (rs6000_skip_stack_check): New functions.
1791         (skip_prologue): Skip stack check sequence.
1792         
1793 2008-09-08  David Daney  <ddaney@avtrex.com>
1794
1795         * dummy-frame.h (frame.h): Include it.
1796         (struct frame_id): Remove declaration.
1797
1798 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1799
1800         * spu-tdep.c (spu_push_dummy_code): New function.
1801         (spu_gdbarch_init): Install it.
1802
1803 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1804
1805         * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
1806         instead of paddr_nz.
1807         * gdbarch.c: Regenerate.
1808
1809         * target.c (target_xfer_partial, debug_print_register): Use
1810         core_addr_to_string_nz instead of paddr_nz.
1811
1812 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1813
1814         * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
1815         *before* calling gdbarch_init_osabi.
1816         (rs6000_aix_init_osabi): Disable displaced stepping.
1817
1818 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1819
1820         * target.c (update_current_target): Do not inherit to_open
1821         or to_close.
1822         (pop_target): Call target_close on target_stack instead
1823         of current_target.
1824         (pop_all_targets_above): Likewise.
1825
1826 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1827
1828         * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
1829         (gnuv3_print_method_ptr): Use it.
1830         (gnuv3_method_ptr_to_value): Likewise.
1831
1832 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1833
1834         * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
1835         register_area callback function.
1836         * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
1837         Use it instead of current_gdbarch.
1838         * nto-procfs.c (procfs_store_registers): Update call.
1839
1840 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1841
1842         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
1843         regcache architecture instead of current_gdbarch.
1844
1845 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1846
1847         * mep-tdep.c (struct mep_prologue): Add gdbarch member.
1848         (check_for_saved): Use it instead of current_gdbarch.
1849         (is_arg_spill): Add gdbarch paramter.  Use it instead
1850         of current_gdbarch.
1851         (mep_analyze_prologue): Add gdbarch parameter.  Pass it
1852         to is_arg_spill and check_for_saved.
1853         (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
1854
1855 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1856
1857         * hppa-tdep.c (internalize_unwinds): Use objfile architecture
1858         instead of current_gdbarch.
1859
1860 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1861
1862         * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
1863         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
1864         Use it instead of current_gdbarch.
1865         (m68kbsd_supply_fpregset): Update call.
1866         * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1867         (m68kbsd_collect_fpregset): Likewise.
1868
1869 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1870
1871         * cris-tdep.c (cris_version, cris_mode): Remove.
1872         (crisv32_single_step_through_delay): Use tdep->cris_mode.
1873         (cris_breakpoint_from_pc): Likewise.
1874         (cris_frame_unwind_cache): Use tdep->cris_version.
1875         (crisv32_scan_prologue): Likewise.
1876         (cris_spec_reg_applicable): Add gdbarch argument.
1877         Use tdep->cris_version.
1878         (cris_register_size, cris_special_register_name): Update calls.
1879         (cris_special_register_name): Add gdbarch argument.
1880         (cris_register_name, crisv32_register_name): Update calls.
1881
1882 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1883
1884         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
1885         instead of current_gdbarch.
1886
1887         * sh64-tdep.c (gdb_print_insn_sh64): Remove.
1888         (sh64_gdbarch_init): Install print_insn_sh64 directly.
1889         * sh-tdep.c (gdb_print_insn_sh): Remove.
1890         (sh_gdbarch_init): Install print_insn_sh directly.
1891
1892         * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
1893         from current_gdbarch.
1894         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
1895         (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
1896         depending on mips_abi.
1897
1898 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1899
1900         * gdbarch.sh (addr_bits_remove): Change type to 'm'.
1901         (smash_text_address): Likewise.
1902         * gdbarch.c, gdbarch.h: Regenerate.
1903
1904         * arch-utils.c (core_addr_identity): Add gdbarch parameter.
1905         * arch-utils.h (core_addr_identity): Likewise.
1906         * arm-tdep.c (arm_addr_bits_remove): Likewise.
1907         (arm_smash_text_address): Likewise.
1908         * hppa-tdep.c (hppa_smash_text_address): Likewise.
1909         * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
1910         * s390-tdep.c (s390_addr_bits_remove): Likewise.
1911
1912         * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
1913         Use it instead of current_gdbarch.
1914
1915         * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
1916         arm_dwarf2_prev_register): Update calls.
1917         * m88k-tdep.c (m88k_unwind_pc): Update call.
1918
1919 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1920
1921         * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
1922         * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
1923         Call gdbarch_integer_to_address directly instead of converting
1924         to value and back.  Update comment.
1925         (execute_stack_op): Update call site.
1926         * dwarf2loc.c (find_location_expression): Likewise.
1927         (locexpr_describe_location): Update
1928
1929         * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
1930         * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
1931         * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
1932         (dwarf2_loc_desc_needs_frame): Likewise.
1933
1934 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
1935
1936         * breakpoint.h (struct bp_location): Change type of section
1937         member to "struct obj_section *".
1938         * tracepoint.h (struct tracepoint): Likewise.
1939         * symtab.h (struct general_symbol_info): Replace bfd_section
1940         member with obj_section.
1941         (struct symtab_and_line): Change type of section member to
1942         "struct obj_section *".
1943         (SYMBOL_BFD_SECTION): Remove macro, replace by ...
1944         (SYMBOL_OBJ_SECTION): ... this.
1945
1946         * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
1947         section as obj_section instead of bfd_section.
1948
1949         * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
1950         directly instead of looking of obj_section from bfd_section.
1951
1952         * objfiles.h (find_pc_sect_section): Remove.
1953         * objfiles.c (find_pc_sect_section): Remove.
1954         (find_pc_section): Inline find_pc_sect_section code.
1955
1956         * symfile.h (find_pc_overlay): Return struct obj_section *.
1957         (find_pc_mapped_section): Likewise.
1958         (section_is_overlay, section_is_mapped): Change type of section
1959         argument to struct obj_section *.
1960         (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
1961         (overlay_mapped_address, overlay_unmapped_address): Likewise.
1962         (symbol_overlayed_address): Likewise.
1963         * symtab.h (symbol_overlayed_address): Likewise.
1964         * symfile.c (overlay_is_mapped): Remove.
1965         (section_is_mapped): Inline overlay_is_mapped code.  Update.
1966         (overlay_invalidate_all): Update.
1967         (section_is_overlay): Change section argument to type
1968         "struct obj_section *".  Use bfd_ methods.
1969         (pc_in_unmapped_range): Likewise.  Handle relocated sections.
1970         (pc_in_mapped_range): Likewise.  Handle relocated sections.
1971         (sections_overlap): Likewise.
1972         (overlay_unmapped_address): Likewise.
1973         (overlay_mapped_address): Likewise.
1974         (symbol_overlayed_address): Likewise.
1975         (find_pc_overlay): Return struct obj_section *.
1976         (find_pc_mapped_section): Likewise.
1977         (list_overlays_command): Update.
1978         (map_overlay_command, unmap_overlay_command): Update.
1979         (simple_overlay_update): Update.
1980
1981         * block.h (blockvector_for_pc_sect): Change section argument
1982         to type "struct obj_section *".
1983         (block_for_pc_sect): Likewise.
1984         * block.c (blockvector_for_pc_sect): Change section argument
1985         to type "struct obj_section *".
1986         (block_for_pc_sect): Likewise.
1987         * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
1988         find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
1989         lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
1990         (matching_bfd_sections): Rename to ...
1991         (matching_obj_sections): ... this.  Update argument types.
1992         * blockframe.c (find_pc_sect_function): Likewise.
1993         * breakpoint.c (describe_other_breakpoints): Likewise.
1994         (breakpoint_has_pc, check_duplicates_for): Likewise.
1995         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
1996         (lookup_minimal_symbol_by_pc_section): Likewise.
1997         * symtab.c (find_pc_sect_psymtab_closer): Likewise.
1998         (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
1999         find_pc_sect_line, find_function_start_pc): Likewise.
2000         (matching_bfd_sections): Rename to ...
2001         (matching_obj_sections): ... this.  Update argument types.
2002
2003         * blockframe.c (find_pc_partial_function): Update to section
2004         type changes.  No longer call find_pc_sect_section.
2005         (cache_pc_function_section): Change to type "struct obj_section *".
2006         * breakpoint.c (resolve_sal_pc): Update to section type changes.
2007         * exec.c (xfer_memory): Likewise.
2008         * findvar.c (read_var_value): Likewise.
2009         * infcmd.c (jump_command): Likewise.
2010         * linespec.c (minsym_found): Likewise.
2011         * maint.c (maintenance_translate_address): Likewise.
2012         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2013         (lookup_solib_trampoline_symbol_by_pc): Likewise.
2014         * parse.c (write_exp_msymbol): Likewise.
2015         * printcmd.c (build_address_symbolic): Likewise.
2016         (address_info, sym_info): Likewise.
2017         * symmisc.c (dump_msymbols, print_symbol): Likewise.
2018         * symtab.c (fixup_section): Likewise.
2019         (fixup_symbol_section, fixup_psymbol_section): Likewise.
2020         (find_pc_line, find_function_start_sal): Likewise.
2021         * target.c (memory_xfer_partial): Likewise.
2022         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
2023         * spu-tdep.c (spu_overlay_update): Likewise.
2024
2025 2008-09-04  Doug Evans  <dje@google.com>
2026
2027         * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
2028         Change argument of pulongest from CORE_ADDR to ULONGEST.
2029         All callers updated.
2030         * utils.c (plongest): Renamed from paddr_d.
2031         (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
2032         * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
2033         `CORE_ADDR addr' arg of error message.
2034
2035 2008-09-03  Angela Marie Thomas <angela@releasedominatrix.com>
2036
2037         * ser-tcp.c (ser_tcp_send_break): New function.
2038         (_initialize_ser_tcp): Use ser_tcp_send_break.
2039         * ser-tcp.h (ser_tcp_send_break): New prototype.
2040
2041 2008-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2042
2043         * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
2044         when allocating stack frame for inferior call.
2045
2046 2008-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2047
2048         * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
2049         SP or return address if we failed to find a valid frame.
2050
2051 2008-09-03  Aleksandar Ristovski  <aristovski@qnx.com>
2052
2053         * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
2054         non-permanent breakpoints.
2055         (bpstat_stop_status): Change enable_state to bp_disabled only for
2056         non-permanent breakpoints.
2057         (bp_loc_is_permanent): New function.
2058         (create_breakpoint): Check if the location points to a permanent
2059         breakpoint and if it does, make breakpoint permanent.
2060         (update_breakpoint_locations): Make sure new locations of permanent
2061         breakpoints are properly initialized.
2062         * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
2063         (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
2064
2065 2008-09-02  Pedro Alves  <pedro@codesourcery.com>
2066
2067         * breakpoint.c (insert_breakpoints, update_global_location_list):
2068         Check breakpoints_always_inserted_mode instead of
2069         always_inserted_mode directly.
2070
2071 2008-09-02  Andreas Schwab  <schwab@suse.de>
2072
2073         * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
2074
2075 2008-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2076
2077         Stay compatible after the GCC PR fortran/29635 fix.
2078         * dwarf2read.c (process_die <DW_TAG_imported_module>)
2079         (process_die <DW_TAG_imported_module>): Do not assert anything about
2080         these unsupported tags.
2081
2082 2008-08-29  Tom Tromey  <tromey@redhat.com>
2083
2084         * maint.c (_initialize_maint_cmds): Fix typo.
2085
2086 2008-08-29  Tom Tromey  <tromey@redhat.com>
2087
2088         * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
2089         obstack.
2090
2091 2008-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2092
2093         * remote.c: Include "gdb_stat.h".
2094
2095 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2096
2097         * dummy-frame.h (dummy_frame_pop): Add prototype.
2098         * dummy-frame.c: Include "observer.h".
2099         (dummy_frame_push): Do not check for stale frames.
2100         (dummy_frame_pop): New function.
2101         (cleanup_dummy_frames): New function.
2102         (_initialize_dummy_frame): Install it as inferior_created observer.
2103
2104         * frame.h (struct frame_id): Update comments.
2105         (frame_id_inner): Remove prototype.
2106         * frame.c (frame_id_inner): Make static.  Add comments.
2107         (frame_find_by_id): Update frame_id_inner safety net check to avoid
2108         false positives for targets using non-contiguous stack ranges.
2109         (get_prev_frame_1): Update frame_id_inner safety net check.
2110         (frame_pop): Call dummy_frame_pop when popping a dummy frame.
2111
2112         * stack.c (return_command): Directly pop the selected frame.
2113         * infrun.c (handle_inferior_event): Remove dead code.
2114         * i386-tdep.c (i386_push_dummy_call): Update comment.
2115
2116 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2117
2118         * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
2119         breakpoint from shared library.
2120
2121 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2122
2123         * solib-svr4.c (read_program_header): New function.
2124         (scan_dyntag_auxv): New function.
2125         (elf_locate_base): Use it if scan_dyntag fails.
2126         (find_program_interpreter): New function.
2127         (enable_break): Use it instead of .interp section.
2128
2129 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2130
2131         * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
2132         * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
2133         remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
2134         remote_bfd_open): New functions.
2135         (remote_hostio_send_command): Fail safely if remote connection
2136         is not set up.
2137
2138         * solist.h (solib_open): Remove prototype.
2139         (solib_bfd_open): Add prototype.
2140         * solib.c: Include "remote.h".
2141         (solib_open): Remove, replace by ...
2142         (solib_bfd_open): ... this new function.  Handle remote BFDs.
2143         (solib_map_sections): Replace solib_open by solib_bfd_open.
2144         * solib-frv.c: Include "exceptions.h".
2145         (enable_break2): Replace solib_open by solib_bfd_open.
2146         * solib-svr4.c: Include "exceptions.h".
2147         (enable_break): Replace solib_open by solib_bfd_open.
2148
2149         * symfile.c: Include "remote.h".
2150         (build_id_verify): Handle remote BFDs.
2151         (separate_debug_file_exists): Use BFD to access file.  Handle
2152         remote BFDs.
2153         (symfile_bfd_open): Handle remote BFDs.
2154         (reread_symbols): Handle remote BFDs.
2155
2156         * NEWS: Mention "remote:" argument prefix to "set sysroot".
2157
2158 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2159
2160         * gdbarch.sh (target_gdbarch): New global variable.
2161         (deprecated_current_gdbarch_select_hack): Set it.
2162         * gdbarch.c, gdbarch.h: Regenerate.
2163
2164         * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
2165         of current_gdbarch.
2166         * target-descriptions.c (target_find_description): Likewise.
2167         * arm-tdep.c (arm_update_current_architecture): Likewise.
2168         (show_fp_model, arm_show_abi, arm_show_fallback_mode, 
2169         arm_show_force_mode): Likewise.
2170         * mips-tdep.c (show_mask_address, show_mipsfpu_command,
2171         show_mips_abi): Likewise.
2172         * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
2173
2174         * target.c (target_translate_tls_address): Use target_gdbarch
2175         instead of current_gdbarch.
2176         * remote.c (struct packet_reg): Likewise.
2177         (get_remote_arch_state, packet_reg_from_regnum,
2178         packet_reg_from_pnum, remote_check_symbols, remote_wait,
2179         remote_address_masked, remote_insert_breakpoint,
2180         remote_insert_hw_breakpoint, remote_read_description): Likewise.
2181         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2182         * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
2183         * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
2184
2185         * solib.c (solib_open, solib_map_sections, solib_read_symbols,
2186         solib_add, info_sharedlibrary_command, solib_address, 
2187         solib_create_inferior_hook, in_solib_dynsym_resolve_code,
2188         solib_global_lookup): Likewise.
2189         * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
2190         * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
2191         Likewise.
2192         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2193         * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
2194         set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
2195         Likewise.
2196         * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
2197         nto_truncate_ptr): Likewise.
2198         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
2199
2200 2008-08-26  Luis Machado  <luisgpm@br.ibm.com>
2201
2202         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
2203         (ppc_linux_vmx_regset_sections): New structure.
2204         (ppc_linux_fp_regset_sections): New structure.
2205         (ppc_linux_init_abi): Select core-file regset  based on target
2206         features.
2207
2208 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2209
2210         * target.c (debug_print_register): Use regcache_raw_collect
2211         instead of regcache_cooked_read.  Only handle raw registers.
2212
2213 2008-08-25  Pedro Alves  <pedro@codesourcery.com>
2214
2215         * cp-name-parser.y: Include config.h before system headers.
2216
2217 2008-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
2218
2219         * m88k-tdep.c: Update for unwinder changes.
2220
2221 2008-08-24  Tom Tromey  <tromey@redhat.com>
2222
2223         * s390-tdep.c (s390_address_class_type_flags): Use
2224         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
2225         (s390_address_class_type_flags_to_name): Likewise.
2226         (s390_address_class_name_to_type_flags): Likewise.
2227
2228 2008-08-24  Tom Tromey  <tromey@redhat.com>
2229
2230         * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
2231         TYPE_FLAGS.
2232         * features/rs6000/powerpc-vsx32l.c
2233         (initialize_tdesc_powerpc_vsx32l): Update.
2234         * features/rs6000/powerpc-vsx32.c
2235         (initialize_tdesc_powerpc_vsx32): Update.
2236         * features/rs6000/powerpc-vsx64.c
2237         (initialize_tdesc_powerpc_vsx64): Update.
2238         * features/rs6000/powerpc-vsx64l.c
2239         (initialize_tdesc_powerpc_vsx64l): Update.
2240         * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
2241         TYPE_VECTOR, not TYPE_FLAGS.
2242
2243 2008-08-24  Tom Tromey  <tromey@redhat.com>
2244
2245         * xml-tdesc.c (tdesc_end_union): Update.
2246         * stabsread.c (define_symbol): Update.
2247         (read_type): Update.
2248         (read_struct_type): Update.
2249         (read_enum_type): Update.
2250         * spu-tdep.c (spu_builtin_type_vec128): Update.
2251         * sh-tdep.c (sh_push_dummy_call_fpu): Update.
2252         (sh_push_dummy_call_nofpu): Update.
2253         * mdebugread.c (parse_symbol): Update.
2254         (parse_symbol): Update.
2255         (parse_symbol): Update.
2256         (upgrade_type): Update.
2257         * jv-lang.c (java_lookup_class): Update.
2258         * iq2000-tdep.c (iq2000_pointer_to_address): Update.
2259         * i386-tdep.c (i386_mmx_type): Update.
2260         (i386_sse_type): Update.
2261         * gdbtypes.h (enum type_flag_value): New enum.
2262         (enum type_instance_flag_value): New enum.
2263         (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
2264         TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
2265         TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
2266         TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
2267         TYPE_FLAG_NOTTEXT): Now enum constants.
2268         (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
2269         TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
2270         TYPE_FLAG_ADDRESS_CLASS_2): Remove.
2271         (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
2272         TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
2273         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
2274         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
2275         (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
2276         TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
2277         TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
2278         TYPE_NOTTEXT): Update.
2279         (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
2280         (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
2281         (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
2282         TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
2283         TYPE_ADDRESS_CLASS_ALL): Update.
2284         (struct main_type) <flags>: Remove.
2285         <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
2286         flag_static, flag_prototyped, flag_incomplete, flag_varargs,
2287         flag_vector, flag_stub_supported, flag_nottext,
2288         flag_fixed_instance>: New fields.
2289         <nfields, vptr_fieldno>: Move earlier.
2290         (TYPE_FLAGS): Remove.
2291         * gdbtypes.c (make_pointer_type): Update.
2292         (address_space_name_to_int): Update.
2293         (address_space_int_to_name): Update.
2294         (make_type_with_address_space): Update.
2295         (make_cv_type): Update.
2296         (create_range_type): Update.
2297         (get_discrete_bounds): Update.
2298         (create_set_type): Update.
2299         (make_vector_type): Update.
2300         (smash_to_method_type): Update.
2301         (check_typedef): Update.
2302         (check_stub_method): Update.
2303         (init_type): Individually assign flag fields.
2304         (recursive_dump_type): Don't print entire TYPE_FLAGS field.  Do
2305         print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
2306         (copy_type_recursive): Copy the entire main type.  Don't use
2307         TYPE_FLAGS.
2308         * features/rs6000/powerpc-altivec64l.c
2309         (initialize_tdesc_powerpc_altivec64l): Update.
2310         * features/rs6000/powerpc-altivec64.c
2311         (initialize_tdesc_powerpc_altivec64): Update.
2312         * features/rs6000/powerpc-altivec32l.c
2313         (initialize_tdesc_powerpc_altivec32l): Update.
2314         * features/rs6000/powerpc-altivec32.c
2315         (initialize_tdesc_powerpc_altivec32): Update.
2316         * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
2317         Update.
2318         * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
2319         Update.
2320         * dwarf2read.c (read_structure_type): Update.
2321         (read_enumeration_type): Likewise.
2322         (process_enumeration_scope): Likewise.
2323         (read_tag_pointer_type): Likewise.
2324         (read_subroutine_type): Likewise.
2325         (read_subroutine_type): Likewise.
2326         (read_base_type): Likewise.
2327         * coffread.c (coff_read_enum_type): Update.
2328         * ada-valprint.c (adjust_type_signedness): Update.
2329         * ada-typeprint.c (print_record_field_types): Update.
2330         * ada-lang.c (packed_array_type): Update.
2331         (empty_record): Don't reset TYPE_FLAGS.
2332         (ada_template_to_fixed_record_type_1): Update.
2333         (ada_template_to_fixed_record_type_1): Likewise.
2334         (template_to_static_fixed_type): Likewise.
2335         (to_record_with_fixed_variant_part): Likewise.
2336         (to_fixed_record_type): Likewise.
2337         (to_fixed_array_type): Likewise.
2338         (to_static_fixed_type): Likewise.
2339
2340 2008-08-23  Jim Blandy  <jimb@redhat.com>
2341
2342         PR macros/607:
2343         * symmisc.c (print_symbol_bcache_statistics): Include statistics
2344         for the macro bcache.
2345
2346 2008-08-23  Tom Tromey  <tromey@redhat.com>
2347
2348         * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
2349         (argc): Now 31 bits.
2350
2351 2008-08-22  Tom Tromey  <tromey@redhat.com>
2352
2353         * NEWS: Move macro entries back under "New commands".
2354
2355 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
2356
2357         * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
2358         (create_overlay_event_breakpoint_1): ... this.  Add OBJFILE parameter.
2359         (create_overlay_event_breakpoint): Loop over all objfiles to install
2360         multiple instances of the overlay event breakpoint if present.
2361
2362 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
2363
2364         * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
2365         (info_spu_event_command): Command only supported on SPU architecture.
2366         (info_spu_signal_command): Likewise.
2367         (info_spu_mailbox_command): Likewise.
2368         (info_spu_dma_command): Likewise.
2369         (info_spu_proxydma_command): Likewise.
2370
2371 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
2372
2373         * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
2374         if the thread has already exited.
2375
2376 2008-08-22  Pedro Alves  <pedro@codesourcery.com>
2377
2378         * infrun.c (proceed): Move back setting previous_inferior_ptid
2379         from here ...
2380         (wait_for_inferior): ... to here.
2381         (fetch_inferior_event): ... and here.
2382
2383 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2384
2385         * gdbarch.sh: Include "regcache.h" into gdbarch.c.
2386         (deprecated_current_gdbarch_select_hack): Call registers_changed
2387         instead of reinit_frame_cache.
2388         * gdbarch.c: Regenerate.
2389
2390 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2391
2392         * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
2393
2394 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2395
2396         * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
2397
2398 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2399
2400         * findvar.c (locate_var_value): Do not call get_frame_arch
2401         with a NULL frame argument.
2402
2403 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2404
2405         * frame.h (frame_map_regnum_to_name): Remove prototype.
2406         (frame_map_name_to_regnum): Remove prototype.
2407         * frame.c (frame_map_regnum_to_name): Remove.
2408         (frame_map_name_to_regnum): Remove.
2409         (frame_unwind_register_value): Use user_reg_map_regnum_to_name
2410         instead of frame_map_regnum_to_name.
2411         * ax-gdb.c: Include "user-regs.h".
2412         (gen_expr): Use user_reg_map_name_to_regnum instead of
2413         frame_map_name_to_regnum.
2414         * eval.c:  Include "user-regs.h".
2415         (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
2416         instead of frame_map_name_to_regnum.
2417         * infcmd.c (registers_info): Likewise.
2418         * parse.c: Include "user-regs.h".
2419         (write_dollar_variable): Use user_reg_map_name_to_regnum
2420         instead of frame_map_name_to_regnum.
2421         * tracepoint.c: Include "user-regs.h".
2422         (encode_actions): Use user_reg_map_name_to_regnum
2423         instead of frame_map_name_to_regnum.
2424         * valops.c: Include "user-regs.h".
2425         (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
2426         of frame_map_regnum_to_name.
2427
2428 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2429
2430         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
2431         and manually relocate .opd contents from BFD instead of reading
2432         them from target memory.
2433
2434 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2435
2436         * dwarf2read.c (processing_current_prefix): Delete static
2437         variable.
2438         (process_full_comp_unit): Do not set processing_current_prefix.
2439         (dwarf2_full_name): New function.
2440         (read_func_scope): Do not set processing_current_prefix.  Use
2441         determine_prefix.
2442         (read_structure_type): Do not set processing_current_prefix.  Remove
2443         unused inner cleanup.
2444         (process_structure_scope): Do not set processing_current_prefix.
2445         (read_enumeration_type): Use dwarf2_full_name.
2446         (determine_class_name): Return a const char *.  Put the result
2447         on the objfile obstack.  Use dwarf2_full_name.
2448         (read_namespace_type): New function.
2449         (read_namespace): Do not create the type here.  Use
2450         determine_prefix.
2451         (read_typedef): Use dwarf2_full_name.  Do not pass the name
2452         to init_type.
2453         (read_base_type): Do not pass the name to init_type.  Handle
2454         TYPE_FLAG_NOSIGN.
2455         (read_unspecified_type): Do not pass the name to init_type.
2456         (new_symbol): Use dwarf2_full_name instead of
2457         processing_current_prefix.
2458         (read_type_die): Do not set processing_current_prefix.  Handle
2459         DW_TAG_namespace.
2460         (determine_prefix): Handle specifications.  Return the result
2461         on the objfile obstack.  Handle unions correctly.
2462
2463 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2464
2465         * buildsym.c (add_symbol_to_list): Do not call
2466         cp_scan_for_anonymous_namespaces here.
2467         (finish_block): Do not call cp_set_block_scope here.
2468         * cp-namespace.c (processing_has_namespace_info)
2469         (processing_current_prefix): Delete.
2470         (cp_initialize_namespace): Do not initialize
2471         processing_has_namespace_info.
2472         (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME.  Do
2473         not check processing_has_namespace_info.
2474         (cp_set_block_scope): Take prefix and namespace info flag as
2475         arguments.  Honor namespaces regardless of a demangled name.
2476         * cp-support.h (processing_has_namespace_info)
2477         (processing_current_prefix): Delete declarations.
2478         (cp_set_block_scope): Update prototype.
2479         * dwarf2read.c (processing_has_namespace_info)
2480         (processing_current_prefix): New static variables.
2481         (read_file_scope): Initialize processing_has_namespace_info.
2482         (read_func_scope): Call cp_set_block_scope for C++.
2483         (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
2484         * symtab.c (symbol_demangled_name): Accept a const argument.
2485         * symtab.h (symbol_demangled_name): Update prototype.
2486
2487 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2488
2489         * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
2490         * blockframe.c (find_pc_partial_function): Likewise.
2491         * buildsym.c (find_symbol_in_list): Likewise.
2492         * c-valprint.c (c_val_print): Likewise.
2493         * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
2494         (coff_read_enum_type): Likewise.  Use SYMBOL_SET_LINKAGE_NAME.
2495         * cp-support.c (cp_remove_params): Renamed from remove_params and
2496         made global.
2497         (overload_list_add_symbol): Update call to remove_params.
2498         * cp-support.h (cp_remove_params): Declare.
2499         * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
2500         (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
2501         * expprint.c (dump_subexp_body_standard): Likewise.
2502         * f-valprint.c (info_common_command, there_is_a_visible_common_named):
2503         Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
2504         for messages.
2505         * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
2506         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
2507         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2508         (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
2509         symbols and SYMBOL_PRINT_NAME for messages.
2510         * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2511         * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
2512         * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
2513         SYMBOL_SET_LINKAGE_NAME.
2514         (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
2515         * minsyms.c (add_minsym_to_demangled_hash_table): Use
2516         SYMBOL_SEARCH_NAME.
2517         (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
2518         SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
2519         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
2520         * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
2521         (address_info): Use SYMBOL_PRINT_NAME for messages and
2522         SYMBOL_LINKAGE_NAME for lookups.
2523         * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
2524         * stabsread.c (patch_block_stabs, define_symbol)
2525         (read_type, read_enum_type, common_block_end)
2526         (cleanup_undefined_types_1, scan_file_globals): Use
2527         SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
2528         and SYMBOL_PRINT_NAME.
2529         * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
2530         (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output.  Use
2531         cp_remove_params instead of cplus_demangle.
2532         (print_block_frame_labels, print_frame_arg_vars): Use
2533         SYMBOL_LINKAGE_NAME.
2534         * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
2535         SYMBOL_LINKAGE_NAME.
2536         (dump_symtab_1, print_symbol, print_partial_symbols)
2537         (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
2538         * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
2539         (SYMBOL_SET_LINKAGE_NAME): New.
2540         (SYMBOL_SET_NAMES): Add a comment.
2541         * tracepoint.c (set_traceframe_context, validate_actionline)
2542         (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
2543         lookups and SYMBOL_PRINT_NAME for output.
2544         * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
2545         * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2546
2547 2008-08-21  Pedro Alves  <pedro@codesourcery.com>
2548
2549         * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
2550         * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
2551         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
2552         obj_section_addr and obj_section_endaddr.
2553         * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
2554         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2555         * ia64-tdep.c (ia64_find_global_pointer): Likewise.
2556         (find_extant_func_descr): Likewise.
2557         * solib-frv.c (frv_relocate_main_executable): Use
2558         obj_section_addr.
2559         * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
2560         obj_section_addr and obj_section_endaddr.
2561
2562 2008-08-21  Paul N. Hilfinger  <hilfinger@adacore.com>
2563
2564         * NEWS: Amplify last entry on boolean types in Ada.
2565
2566 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2567
2568         * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
2569         Make the dwarf2_cu * parameter output as well as input.  Update it if
2570         we follow a reference to another CU.
2571         (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
2572         (die_type, die_containing_type): Update calls to changed functions.
2573         Use the returned CU along with the returned DIE.
2574         (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
2575
2576 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2577
2578         * dwarf2read.c (queue_comp_unit): Take an objfile argument.  Read
2579         in the DIEs here.
2580         (process_queue): Do not read in the DIEs here.
2581         (psymtab_to_symtab_1): Update call to queue_comp_unit.
2582         (read_full_die): Do not call queue_comp_unit from here.
2583         (maybe_queue_comp_unit): New function.
2584         (follow_die_ref): Use it.
2585
2586 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2587
2588         * dwarf2read.c (struct attribute): Move earlier.
2589         (struct die_info): Change attrs to a trailing array.
2590         (dwarf_alloc_die): Take the number of attributes.  Allocate space
2591         for them.
2592         (read_full_die): Update call to dwarf_alloc_die.  Do not manually
2593         allocate attributes.
2594
2595 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2596
2597         * dwarf2read.c (REF_HASH_SIZE): Delete.
2598         (struct dwarf2_cu): Replace die_ref_table with die_hash.
2599         (struct die_info): Remove next_ref.
2600         (store_in_ref_table): Remove offset argument.  Rewrite to use
2601         htab_find_slot_with_hash.
2602         (die_hash, die_eq): New.
2603         (read_comp_unit): Allocate the die_hash.
2604         (read_die_and_children): Update call to store_die_ref.
2605         (follow_die_ref): Rewrite to use htab_find_with_hash.
2606
2607 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2608
2609         * dwarf2read.c (free_die_list, copy_die): Delete.
2610         (dwarf_alloc_die): Take a CU argument.  Allocate the new DIE
2611         on the obstack.
2612         (read_full_die): Update call to dwarf_alloc_die.  Allocate
2613         attributes on the CU obstack.
2614         (free_one_comp_unit): Do not call free_die_list.
2615
2616 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2617
2618         * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
2619         (read_die_and_siblings): Likewise.  Do not add padding DIEs to the
2620         sibling list.
2621         (read_full_die): Do not allocate DIEs for abbrev 0.
2622         (follow_die_ref): Correct error message.
2623
2624 2008-08-20  Pedro Alves  <pedro@codesourcery.com>
2625
2626         * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
2627         there are no symbols loaded, instead of throwing a generic error.
2628         (decode_variable): Likewise.
2629
2630 2008-08-20  Pedro Alves  <pedro@codesourcery.com>
2631
2632         * objfiles.h (struct obj_section): Remove addr and endaddr fields.
2633         (obj_section_offset, obj_section_addr, obj_section_endaddr): New
2634         macros.
2635         * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
2636         and offset.  Use size_t instead of unsigned long.
2637         (build_objfile_section_table): Use size_t instead of unsigned
2638         long.
2639         (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
2640         gone.
2641         (find_pc_sect_section): Use obj_section_addr and
2642         obj_section_endaddr.
2643         * symfile.c (symfile.c): Remove code that maps sections
2644         offsets in "addr" to the object's sections.
2645         * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
2646         * gcore.c (gcore_create_callback): Use obj_section_addr and
2647         obj_section_endaddr.
2648         * maint.c (print_objfile_section_info): Likewise.
2649         * printcmd.c (sym_info): Use obj_section_addr and
2650         obj_section_endaddr.
2651         * symtab.c (fixup_section): Likewise.
2652
2653 2008-08-20  Mark Kettenis  <kettenis@gnu.org>
2654
2655         * sparc-tdep.c: Make some comments catch up with reality.
2656
2657 2008-08-20  Vladimir Prus  <vladimir@codesourcery.com>
2658
2659         * NEWS: Mention 'set target-async'
2660
2661 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
2662
2663         * infrun.c (resume): If the thread is placed to the deferred step
2664         queue, mark it as running.
2665
2666 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
2667
2668         Make sure target supports non-stop.
2669         * infcmd.c (run_command_1, attach_command): If non-stop mode
2670         is requested, verify the target supports it.
2671         * linux-nat.c (linux_nat_supports_non_stop): New.
2672         (linux_nat_add_target): Register the above.
2673         * target.c (find_default_supports_non_stop)
2674         (target_supports_non_stop): New.
2675         (init_dummy_target): Register find_default_supports_non_stop.
2676         * target.h (struct target_ops): New field to_supports_non_stop.
2677         (target_supports_non_stop): New.
2678
2679 2008-08-19  Pedro Alves  <pedro@codesourcery.com>
2680             Vladimir Prus  <vladimir@codesourcery.com>
2681
2682         * target.c (target_async_permitted, target_async_permitted_1)
2683         (set_maintenance_target_async_permitted)
2684         (show_maintenance_target_async_permitted): New.
2685         (initialize_targets): Register 'set target-async'.
2686         * target.h (target_async_permitted): Declare.
2687         * linux-nat.c (linux_nat_async_enabled)
2688         (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
2689         (show_maintenance_linux_async_permitted): Remove.
2690         (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
2691         (get_pending_events, linux_nat_async): Use target_async_permitted.
2692         (linux_nat_set_async_mode): Remove, moving the only used bits
2693         into...
2694         (linux_nat_setup_async): This.
2695         (_initialize_linux_nat): Do not register 'maint set linux-async'.
2696         Use linux_nat_setup_async.
2697         * remote.c (remote_async_permitted, remote_async_permitted_set)
2698         (set_maintenance_remote_async_permitted)
2699         (show_maintenance_remote_async_permitted): Remove.
2700         (remote_open_1, remote_terminal_inferior, remote_can_async_p)
2701         (remote_is_async_p): Use target_async_permitted.
2702         (_initialize_remote): Don't register 'main set remote-async'.
2703         * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
2704         * mi/mi-cmds.h (mi_cmd_list_target_features): New.
2705         * mi/mi-main.c (mi_cmd_list_target_features): New.
2706
2707 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
2708
2709         * target.c (maybe_kill_then_attach)
2710         (maybe_kill_then_create_inferior): Remove.
2711         (update_current_target): Do not default to_attach,
2712         to_create_inferiour, to_is_async_p.
2713
2714 2008-08-19  Paul N. Hilfinger  <hilfinger@adacore.com>
2715         
2716         Changes for supporting boolean types in debugging data.
2717         * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change 
2718         API to return LONGEST values rather than struct values.
2719         (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
2720         and discrete_type_high_bound.
2721         (to_fixed_range_type): Create a range type in cases where 
2722         argument is base type and its limits are representable as ints.
2723         (ada_is_modular_type): Correct so that base type must be integral.
2724         * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' 
2725         keywords when they appear alone, since we are phasing out 
2726         direct representation of these identifiers in debugging data.
2727         * ada-exp.y: Define 'true' and 'false' as primaries.
2728         (type_boolean): New function.
2729         (type_int,type_long,type_long_long,type_floattype_double)
2730         (type_long_double): Remove uses of current_gdbarch for consistency
2731         with type_boolean.
2732         (write_int): Change comment to indicate that it might write boolean 
2733         constant as well.
2734         * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
2735         type, since will no longer be represented as enumerated type in 
2736         debugging data.
2737         * ada-valprint.c (print_optional_low_bound): Handle boolean case
2738         as well.
2739         * NEWS: Note support boolean types.
2740         
2741 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
2742
2743         * bsd-uthread.c (bsd_uthread_close): New.
2744         (bsd_uthread_deactivate): Don't cleanup here, just unpush the
2745         target.
2746         (bsd_uthread_solib_loaded): Fix typo.
2747         (bsd_uthread_target): Register bsd_uthread_close.
2748
2749 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
2750
2751         * corelow.c (core_open): Assume there was no upper layer left
2752         behind from a previous inferior.
2753         * target.c (pop_all_targets): Rename to ...
2754         (pop_all_targets_above): ... this.  Add a target stratum
2755         parameter.  Use it instead of hardcoding the dummy_stratum.
2756         (pop_all_targets): New, defer to pop_all_targets_above.
2757         (target_preopen): Use pop_all_targets_above.
2758         * target.h (pop_all_targets_above): Declare.
2759
2760 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
2761
2762         * gdbthread.h (thread_change_ptid): Declare.
2763         * infrun.c (infrun_thread_ptid_changed): New.
2764         (_initialize_infrun): Attach infrun_thread_ptid_changed to the
2765         thread_ptid_changed observer.
2766         * regcache.c (regcache_thread_ptid_changed): New.
2767         (_initialize_regcache): Attach regcache_thread_ptid_changed to the
2768         thread_ptid_changed observer.
2769         * thread.c (thread_change_ptid): New.
2770
2771 2008-08-18  Tom Tromey  <tromey@redhat.com>
2772
2773         * symfile.c (reread_symbols): Update.
2774         * solib-sunos.c (allocate_rt_common_objfile): Update.
2775         * objfiles.c (allocate_objfile): Update.
2776         * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
2777         Remove.
2778
2779 2008-08-18  Tom Tromey  <tromey@redhat.com>
2780
2781         * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
2782         obstack.
2783
2784 2008-08-18  Daniel Jacobowitz  <dan@codesourcery.com>
2785
2786         * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
2787         lr_register.
2788         (rs6000_in_function_epilogue_p): Check for bctr.
2789         (skip_prologue): Initialize lr_register.  Set lr_reg to a register
2790         number.  Set gpr_mask and used_bl.  Continue scanning while some
2791         expected registers are not saved.  Set lr_register if LR is not
2792         stored.
2793         (rs6000_frame_cache): Handle gpr_mask and lr_register.
2794
2795 2008-08-17  Tom Tromey  <tromey@redhat.com>
2796
2797         PR gdb/1535:
2798         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
2799         (ep_find_event_name_end): Remove.
2800         (catch_fork_temporary, catch_vfork_temporary,
2801         catch_fork_permanent, catch_vfork_permanent): New constants.
2802         (catch_vfork, catch_fork): Remove.
2803         (catch_fork_command_1): Add 'command' argument.  Remove
2804         'fork_kind' and 'tempflag'.  Handle NULL 'arg'.  Update switch for
2805         all cases.
2806         (catch_exec_command_1): Add 'command' argument; remove
2807         'tempflag'.  Handle NULL 'arg'.
2808         (catch_load_command_1): Likewise.
2809         (catch_unload_command_1): Likewise.
2810         (catch_ada_exception_command): Likewise.
2811         (catch_assert_command): Likewise.
2812         (catch_catch_command): New function.
2813         (catch_throw_command): Likewise.
2814         (catch_command_1): Remove.
2815         (catch_command): Just call error.
2816         (tcatch_command): Likewise.
2817         (catch_cmdlist): New global.
2818         (tcatch_cmdlist): Likewise.
2819         (add_catch_command): New function.
2820         (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
2821         commands.  Create all catch sub-commands.
2822
2823 2008-08-17  Pedro Alves  <pedro@codesourcery.com>
2824
2825         * gdbthread.h: Add comments.
2826         * stack.c (get_selected_block): Return 0 on an exited thread.
2827         * top.c (execute_command): Check for is_stopped, not !is_running.
2828         * event-top.c (command_handler): Likewise.
2829
2830 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
2831
2832         * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2833         (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2834         (mi_cmd_exec_finish): Remove "return".
2835
2836 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
2837
2838         * target.h (pop_all_targets): Declare.
2839         * target.c (pop_all_targets): New.
2840         * top.c (quit_target): Pop all targets instead of just closing the
2841         current.
2842
2843 2008-08-16  Vladimir Prus  <vladimir@codesourcery.com>
2844             Thiago Jung Bauermann  <bauerman@br.ibm.com>
2845
2846         * cli-script.c (read_next_line): Add parse_commands argument.
2847         (recurse_read_control_structure): Adapt to new read_next_line
2848         signature.
2849         (read_command_lines): Add parse_commands argument.
2850         (define_command): Adapt to new read_command_lines signature.
2851         (document_command): Likewise.
2852         * breakpoint.c (commands_command): Likewise.
2853         * defs.h (read_command_lines): Adjust function prototype.
2854
2855 2008-08-16  Paul N. Hilfinger  <hilfinger@adacore.com>
2856
2857         * ada-lang.c (pos_atr): Account for the possibility that the 
2858         argument may be a reference.
2859
2860 2008-08-16  Paul N. Hilfinger  <hilfingr@adacore.com>
2861
2862         * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
2863         ('F' format) for @FIX names generated by the loader, retaining only
2864         the minimal symbols (and no partial symbol tables) for these names.
2865         Fixes warning messages about symbols that are found in partial 
2866         symbol tables, but not full symbol tables.
2867
2868 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
2869
2870         * infrun.c (fetch_inferior_event): Only call normal_stop if not
2871         stopping quietly.
2872
2873 2008-08-15  Luis Machado  <luisgpm@br.ibm.com>
2874
2875         * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
2876         Include "features/rs6000/powerpc-vsx64.c".
2877         (ppc_supply_vsxregset): New function.
2878         (ppc_collect_vsxregset): New function.
2879         (IS_VSX_PSEUDOREG): New macro.
2880         (IS_EFP_PSEUDOREG): New macro.
2881         (vsx_register_p): New function.
2882         (ppc_vsx_support_p): New function.
2883         (rs6000_builtin_type_vec128): New function.
2884         (rs6000_register_name): Hide upper halves of vs0~vs31.  Return
2885         correct names for VSX registers and EFPR registers.
2886         (rs6000_pseudo_register_type): Return correct types for VSX
2887         and EFPR registers.
2888         (rs6000_pseudo_register_reggroup_p): Return correct group for
2889         VSX and EFPR registers.
2890         (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
2891         (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
2892         (vsx_pseudo_register_read): New function.
2893         (vsx_pseudo_register_write): New function.
2894         (efpr_pseudo_register_read): New function.
2895         (efpr_pseudo_register_write): New function.
2896         (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
2897         (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
2898         (rs6000_gdbarch_init): Declare have_vsx.
2899         Initialize new upper half VSX registers.
2900         Initialize VSX-related and EFPR-related pseudo-registers variables.
2901         Adjust the number of pseudo registers accordingly.
2902
2903         * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
2904         and SIZEOF_VSRREGS.
2905         (gdb_vsxregset_t): New type.
2906         (have_ptrace_getsetvsxregs): New variable.
2907         (fetch_vsx_register): New function.
2908         (fetch_register): Handle VSX registers.
2909         (fetch_vsx_registers): New function.
2910         (fetch_ppc_registers): Handle VSX registers.
2911         (store_ppc_registers): Handle VSX registers.
2912         (store_vsx_register): New function.
2913         (store_register): Handle VSX registers.
2914         (store_vsx_registers): New function.
2915         (ppc_linux_read_description): Handle VSX-enabled inferiors.
2916         (gdb_vsxregset_t): New type.
2917         (supply_vsxregset): New function.
2918         (fill_vsxregset): New function.
2919
2920         * ppc-tdep.h (vsx_register_p): New prototype.
2921         (vsx_support_p): New prototype.
2922         (ppc_vsr0_regnum): New variable.
2923         (ppc_vsr0_upper_regnum): Likewise.
2924         (ppc_efpr0_regnum): Likewise.
2925         (ppc_builtin_type_vec128): New type.
2926         (ppc_num_vsrs): New constant.
2927         (ppc_num_vshrs): New constant.
2928         (ppc_num_efprs): Likewise.
2929         Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
2930         (ppc_supply_vsxregset): New prototype.
2931         (ppc_collect_vsxregset): New prototype.
2932
2933         * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
2934         Include "features/rs6000/powerpc-vsx64l.c".
2935         (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
2936         (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
2937         (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
2938         (ppc_linux_regset_from_core_section): Handle VSX core section.
2939         (ppc_linux_core_read_description): Support VSX-enabled core files.
2940
2941         * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
2942         Declare tdesc_powerpc_vsx64l
2943
2944         * corelow.c (get_core_register_section): Support VSX-enabled
2945         core files.
2946
2947         * features/rs6000/power-vsx.xml: New VSX descriptions.
2948         * features/rs6000/powerpc-vsx32.xml: New file.
2949         * features/rs6000/powerpc-vsx32l.xml: New file.
2950         * features/rs6000/powerpc-vsx64.xml: New file.
2951         * features/rs6000/powerpc-vsx64l.xml: New file.
2952         * features/rs6000/powerpc-vsx32.c: New file (generated).
2953         * features/rs6000/powerpc-vsx32l.c: New file (generated).
2954         * features/rs6000/powerpc-vsx64.c: New file (generated).
2955         * features/rs6000/powerpc-vsx64l.c: New file (generated).
2956         * features/Makefile: Updated with new descriptions.
2957         * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
2958         * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
2959
2960 2008-08-15  Vladimir Prus  <vladimir@codesourcery.com>
2961
2962         * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
2963         call linux_target twice.
2964
2965 2008-08-14  Aleksandar Ristovski  <aristovski@qnx.com>
2966
2967         * nto-tdep.c (lm_info): Updated struct lm_info definition from
2968         solib-svr4.c
2969         (LM_ADDR): Use l_addr if available; if not, use link map and set 
2970         l_addr.
2971
2972 2008-08-14  Tom Tromey  <tromey@redhat.com>
2973
2974         * macrocmd.c (macro_define_command): Check for NULL argument.
2975         (macro_undef_command): Likewise.
2976
2977 2008-08-14  Pedro Alves  <pedro@codesourcery.com>
2978
2979         * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
2980
2981 2008-08-13  Pedro Alves  <pedro@codesourcery.com>
2982
2983         * breakpoint.c (always_inserted_auto, always_inserted_on)
2984         (always_inserted_off, always_inserted_enums): New.
2985         (always_inserted_mode): Change type to char* and point to
2986         always_inserted_auto.
2987         (show_always_inserted_mode): In auto mode, also show the current
2988         effect of the option.
2989         (breakpoints_always_inserted_mode): Adjust for the new auto mode.
2990         (_initialize_breakpoint): Make the "set breakpoints
2991         always-inserted" command an enum command.  Extend help to describe
2992         the auto mode.
2993
2994 2008-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
2995
2996         * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
2997         query valid) bit.  Ignore bits outside the condition field.
2998         (info_spu_proxydma_command): Ignore bits outside the field.
2999
3000 2008-08-12  Michael Snyder  <msnyder@vmware.com>
3001
3002         * MAINTAINERS: Update my email address.
3003
3004 2008-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
3005
3006         * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
3007
3008 2008-08-12  Pedro Alves  <pedro@codesourcery.com>
3009
3010         Add no-ack mode to the remote protocol --- optionally stop ACKing
3011         packets and responses when we have a reliable communication
3012         medium.
3013
3014         Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
3015
3016         * remote.c (struct remote_state): Add noack_mode field.
3017         (PACKET_QStartNoAckMode): New.
3018         (remote_start_remote): Don't any outstanding packet here.
3019         (remote_open_1): Clear noack_mode.  Ack any outstanding packet
3020         here.  Activate noack mode if requested.
3021         (remote_protocol_features): Add QStartNoAckMode.
3022         (remote_open_1):
3023         (putpkt_binary): Don't send ack in noack mode.
3024         (read_frame): Don't recompute the checksum in noack mode.
3025         (getpkt_sane): Skip sending ack if in noack mode.
3026         (_initialize_remote): Add set/show remote noack mode.
3027         * NEWS:  Note the new features.
3028
3029 2008-08-11  Kevin Buettner  <kevinb@redhat.com>
3030
3031         * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
3032         New macros.
3033         (rs6000_skip_main_prologue): New function.
3034         (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
3035
3036 2008-08-11  Sandra Loosemore  <sandra@codesourcery.com>
3037
3038         * MAINTAINERS (Write After Approval):  Add self.
3039
3040 2008-08-11  Stan Shebs  <stan@codesourcery.com>
3041
3042         ARM BE8 support.
3043         * disasm.c (gdb_disassemble_info): Set endian_code.
3044         * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
3045         * gdbarch.h, gdbarch.c: Regenerate.
3046         * arch-utils.c (initialize_current_architecture): Set the
3047         default byte_order_for_code.
3048         (gdbarch_info_init): Ditto.
3049         (gdbarch_info_fill): Ditto.
3050         * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
3051         (thumb_analyze_prologue): Swap halfword if code endianness is
3052         different from general endianness.
3053         (arm_skip_prologue): Similarly.
3054         (arm_scan_prologue): Ditto.
3055         (thumb_get_next_pc): Ditto.
3056         (arm_get_next_pc): Ditto.
3057         (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
3058         choose correct endianness for breakpoints.
3059
3060 2008-08-10  Pedro Alves  <pedro@codesourcery.com>
3061
3062         * bsd-kvm.c: Include "gdbthread.h".
3063         (bsd_kvm_ptid): New.
3064         (bsd_kvm_open): Add a main thread.
3065         (bsd_kvm_close): Delete it.
3066         (bsd_kvm_thread_alive): New.
3067         (bsd_kvm_pid_to_str): New.
3068         (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
3069         bsd_kvm_pid_to_str.
3070         (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
3071
3072 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
3073
3074         * buildsym.c (start_subfile): Properly cast sentinel in concat
3075         call.
3076         * cp-name-parser.y: Include "config.h".
3077         * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
3078         concat call.
3079         * gdb_select.h: Include sys/time.h if sys/select.h is not
3080         available.
3081
3082 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
3083
3084         * go32-nat.c: Include "gdbthread.h".
3085         (go32_stop, go32_kill_inferior): Delete the main thread.
3086         (go32_create_inferior): Add it.
3087         (go32_thread_alive, go32_pid_to_str): New.
3088         (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
3089
3090 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
3091
3092         * go32-nat.c (fetch_register, store_register): Pass the regcache
3093         gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
3094         (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
3095         (struct seg_descr, struct seg_descr): pack the whole struct
3096         instead of each member individually.
3097
3098 2008-08-09  Andreas Schwab  <schwab@suse.de>
3099
3100         * python/python.c (_initialize_python): Use unabbreviated commands
3101         in prefix name.
3102
3103 2008-08-09  Daniel Jacobowitz  <dan@codesourcery.com>
3104
3105         * Makefile.in (stamp-h): Also create .deps.
3106
3107 2008-08-09  Tom Tromey  <tromey@redhat.com>
3108
3109         * Makefile.in (generated_files): Add GNULIB_H.
3110
3111 2008-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3112
3113         * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
3114         DT_HP_DEBUG_PRIVATE.  Add warning if DT_HP_DEBUG_PRIVATE is not set.
3115         Revise comment.
3116         (pa64_current_sos): Remove map private warning warning.
3117         * solib-som.c: Include string.h and sys/utsname.h.
3118         (get_hpux_major_release): New function.
3119         (som_solib_create_inferior_hook): Read dynamic linker header.  Warn
3120         about shared library private mapping on HP-UX 11 and later.  Only force
3121         private mapping of shared libraries on HP-UX 10 and earlier.
3122         (link_map_start): Delete warning.
3123
3124 2008-08-09  Xuepeng Guo  <xuepeng.guo@intel.com>
3125             H.J. Lu  <hongjiu.lu@intel.com>
3126             Mark Kettenis <kettenis@gnu.org>
3127
3128         * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
3129         (amd64_init_frame_cache): Initialize saved_sp_reg.
3130         (amd64_analyze_stack_align): New.
3131         (amd64_analyze_prologue): Call it.
3132         (amd64_frame_cache): Use saved_sp_reg if it is invalid.  Don't set
3133         %rip to 8 when halfway aligning the stack.
3134
3135         * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
3136         AMD64_R14_REGNUM.
3137
3138         * i386-tdep.c (i386_frame_cache): Remove stack_align.  Add
3139         saved_sp_reg.
3140         (i386_alloc_frame_cache): Remove stack_align.  Initialize
3141         saved_sp_reg to -1.
3142         (i386_analyze_stack_align): Rewrite.
3143         (i386_frame_cache): Use saved_sp_reg if it is valid.
3144
3145 2008-08-09  Ulrich Weigand  <uweigand@de.ibm.com>
3146
3147         * target.c: Include "solib.h".
3148         (target_pre_inferior): Call no_shared_libraries.
3149         * infcmd.c (run_command_1): Do not call objfile_purge_solibs
3150         or clear_solib.
3151         (attach_command): Do not call clear_solib.
3152
3153 2008-08-09  Mark Kettenis  <kettenis@gnu.org>
3154
3155         * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
3156         the %eip register.
3157
3158 2008-08-08  Tom Tromey  <tromey@redhat.com>
3159
3160         * Makefile.in (python.o): Remove dependencies.  Use COMPILE and
3161         POSTCOMPILE.
3162         (python-utils.o): Likewise.
3163
3164 2008-08-08  Andreas Schwab  <schwab@suse.de>
3165
3166         * corefile.c (_initialize_core): Remove spurious paren from set
3167         gnutarget doc string.
3168
3169 2008-08-08  Luis Machado  <luisgpm@br.ibm.com>
3170
3171         * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
3172         Define PPC_FEATURE_BOOKE.
3173         (ppc_linux_get_hwcap): New function.
3174         (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
3175         4-bytes alignment restrictions.
3176         (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
3177         positioning of the read/write flags.
3178         (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
3179         4-bytes alignment.
3180
3181 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
3182
3183         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3184
3185         * win32-nat.c (win32_add_thread): Change thread argument type to
3186         ptid_t.  Adjust.
3187         (win32_add_thread): Adjust.
3188         (win32_delete_thread): Change thread argument type to ptid_t.
3189         Adjust.
3190         (win32_fetch_inferior_registers, win32_store_inferior_registers)
3191         (win32_resume, get_win32_debug_event, get_win32_debug_event)
3192         (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
3193         (init_win32_ops): Put to_magic last.
3194         (win32_win32_thread_alive): Adjust.
3195
3196 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
3197
3198         * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
3199         (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
3200
3201 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
3202
3203         * remote-m32r-sdi.c: Include "gdbthread.h".
3204         (remote_m32r_ptid): New.
3205         (m32r_close): Delete the main thread.
3206         (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
3207         main thread.
3208         (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
3209         (_initialize_remote_m32r): Initialize remote_m32r_ptid.
3210
3211 2008-08-07  Tom Tromey  <tromey@redhat.com>
3212             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3213
3214         * aclocal.m4, configure: Rebuild.
3215         * configure.in: Call ZW_CREATE_DEPDIR,
3216         ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
3217         (MAKE, GMAKE): New substs.
3218         * acinclude.m4: Include depstand.m4.
3219         * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
3220         COMPILE, POSTCOMPILE, depcomp): New variables.
3221         Remove all _h variables.
3222         Remove many .o targets.
3223         ($(srcdir)/copying.c): avoid backslash-newline after comment
3224         sign (@maintainer_mode_true@).
3225         (HFILES_NO_SRCDIR): Regenerate.
3226         (generated_files): New variable.
3227         (all_gdbtk_cflags): Likewise.
3228         (.c.o): Rewrote.
3229         (init.o, version.o, copying.o): Remove.
3230         (distclean): Remove DEPDIR.
3231         (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
3232         printcmd.o, procfs.o, v850ice.o): Rewrite.
3233         (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
3234         cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
3235         (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
3236         gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
3237         gdbtk-wrapper.o): Likewise.
3238         (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
3239         mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
3240         mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
3241         mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
3242         tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
3243         tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
3244         tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
3245         tui-wingeneral.o, tui-winsource.o): Likewise.
3246         (all_object_files): New variable.
3247         ($(all_object_files)): New target.
3248         Include dependency files, when using GNU Make.
3249
3250 2008-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
3251
3252         * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
3253         the valid bit set.  Ensure display order respects partial
3254         order defined by dependency bits.
3255
3256 2008-08-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3257
3258         * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
3259         setup.
3260
3261 2008-08-06  Mark Kettenis  <kettenis@gnu.org>
3262
3263         * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
3264         OpenBSD 4.3.
3265
3266 2008-08-06  Vladimir Prus  <vladimir@codesourcery.com>
3267             Tom Tromey  <tromey@redhat.com>
3268             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3269             Doug Evans  <dje@google.com>
3270
3271         * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
3272         SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
3273         PYTHON_CFLAGS): New.
3274         (python_h, python_internal_h): New.
3275         (cli-script.o): Depend on python.h
3276         (python.o, python-utils.o): New.
3277         * cli/cli-script.c (print_command_lines): Handle python_control.
3278         (execute_control_command): Handle python_control.
3279         (execute_control_command_untraced): New function.
3280         (while_command): Call execute_control_command_untraced.
3281         (if_command): Likewise.
3282         (get_command_line): Remove static attribute.
3283         (read_next_line): Handle "python".
3284         (recurse_read_control_structure): Handle python_control.
3285         (read_command_lines): Handle python_control.
3286         Include python.h.
3287         * cli/cli-script.h (get_command_line): Add prototype.
3288         (execute_control_command_untraced): Likewise.
3289         * configure.ac: Add --with-python.
3290         * defs.h (enum command_control_type) <python_control>: New
3291         constant.
3292         * python/python-internal.h: New file.
3293         * python/python.c: New file.
3294         * python/python.h: New file.
3295         * python/python-utils.c: New file.
3296         * NEWS: Mention Python scripting support and its new commands.
3297
3298 2008-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
3299
3300         * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
3301
3302 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
3303
3304         * MAINTAINERS (Write After Approval): Add self.
3305
3306 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
3307
3308         * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
3309         (insert_breakpoint_locations): Likewise.
3310
3311 2008-08-05  Phil Muldoon  <pmuldoon@redhat.com>
3312
3313         * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
3314         breakpoint.
3315         (set_longjmp_breakpoint): Likewise.
3316
3317 2008-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3318
3319         PR build/2490
3320         * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
3321         defined.
3322
3323 2008-08-05  Tom Tromey  <tromey@redhat.com>
3324
3325         * bcache.c (deprecated_bcache_added): Initialize obstack.
3326         (bcache_xmalloc): Don't initialize obstack.
3327         (bcache_xfree): Conditionally free obstack.
3328         (bcache_memory_used): Update.
3329
3330 2008-08-05  Tom Tromey  <tromey@redhat.com>
3331
3332         * symfile.c (add_psymbol_to_bcache): Return a const pointer.  Use
3333         bcache_full.
3334         (append_psymbol_to_list): Accept a const pointer.
3335         (add_psymbol_to_list): Fix const correctness.
3336         * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
3337         (bcache_full): Declare.
3338         * bcache.c (bcache_data, deprecated_bcache): Remove.
3339         (bcache): Use bcache_full.
3340         (bcache_full): Rename from deprecated_bcache_added.  Change return
3341         type.
3342
3343 2008-08-04  Stan Shebs  <stan@codesourcery.com>
3344
3345         * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
3346         (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
3347         (enable_break): Remove test of BKPT_AT_SYMBOL.
3348
3349 2008-08-02  Keith Seitz  <keiths@redhat.com>
3350
3351         * acinclude.m4: Include ../config/tcl.m4 to pick up
3352         standard Tcl configury bits.
3353         Remove all Tcl, Tk, Itcl, Itk, etc definitions.
3354         * configure.ac: Don't check if ../itcl exists when building
3355         gdbtk. It could be installed.
3356         Rewrite gdbtk configury to allow for using system-supplied
3357         Tcl and Tk. Gdbtk no longer requires build-time access to
3358         itcl and itk.
3359         * Makefile.in: Remove everything related to itcl and itk.
3360         Rewrite the Tcl bits for gdbtk to correspond to rewrite of
3361         configure.ac.
3362         Remove v850ice.o build rule.
3363         (ALL_TCL_CFLAGS): New convenience defintion. Change all
3364         gdbtk sources to use it.
3365         * configure: Regenerate.
3366
3367 2008-07-31  Stan Shebs  <stan@codesourcery.com>
3368
3369         * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
3370
3371 2008-07-30  Stan Shebs  <stan@codesourcery.com>
3372
3373         * objfiles.c (TARGET_KEEP_SECTION): Remove.
3374         (add_to_objfile_sections): Remove use.
3375
3376 2008-07-29  Tom Tromey  <tromey@redhat.com>
3377
3378         * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
3379         (lookup_cmd_composition): Likewise.
3380
3381 2008-07-29  Tom Tromey  <tromey@redhat.com>
3382
3383         * cli/cli-cmds.c (edit_command): Remove unused variables.  Delete
3384         dead code.  Fix indentation.
3385
3386 2008-07-29  Stan Shebs  <stan@codesourcery.com>
3387
3388         * main.c (captured_main): Remove long-unused #if 0 blocks.
3389
3390 2008-07-28  Tom Tromey  <tromey@redhat.com>
3391
3392         * annotate.h (deprecated_annotate_starting_hook): Remove.
3393         (deprecated_annotate_stopped_hook): Remove.
3394         (deprecated_annotate_exited_hook): Remove.
3395         * Makefile.in (annotate.o): Depend on observer_h.
3396         * top.c (deprecated_delete_breakpoint_hook): Remove.
3397         (deprecated_create_breakpoint_hook): Likewise.
3398         (deprecated_modify_breakpoint_hook): Likewise.
3399         * interps.c (clear_interpreter_hooks): Update for removed hooks.
3400         * breakpoint.c (mention): Don't call removed hook.
3401         (delete_breakpoint): Likewise.
3402         (disable_breakpoint): Likewise.
3403         (do_enable_breakpoint): Likewise.
3404         * annotate.c: Include observer.h.
3405         (breakpoint_changed): Change type of argument.
3406         (_initialize_annotate): Register observers.
3407         (deprecated_annotate_starting_hook): Remove.
3408         (deprecated_annotate_stopped_hook): Remove.
3409         (deprecated_annotate_exited_hook): Remove.
3410         (annotate_starting): Update for hook removal.
3411         (annotate_stopped): Likewise.
3412         (annotate_exited): Likewise.
3413         * defs.h (deprecated_delete_breakpoint_hook): Remove.
3414         (deprecated_create_breakpoint_hook): Likewise.
3415         (deprecated_modify_breakpoint_hook): Likewise.
3416
3417 2008-07-28  Tom Tromey  <tromey@redhat.com>
3418
3419         * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
3420
3421 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3422
3423         * configure.ac: Check for the GNU/Linux ptrace signature.
3424         * configure: Regenerated.
3425
3426 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3427
3428         * linux-nat.c (resume_callback): Add more debugging output.
3429         (linux_nat_has_pending_sigint): New function, based on
3430         linux_nat_has_pending.
3431         (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
3432         (stop_wait_callback): Remove flush_mask handling.  Honor
3433         ignore_sigint.  Call maybe_clear_ignore_sigint.  Pass NULL
3434         to recursive calls.
3435         (linux_nat_has_pending, flush_callback): Remove.
3436         (linux_nat_filter_event): Check for ignore_sigint.
3437         (linux_nat_wait): Remove flush_mask support and call to
3438         flush_callback.  Use set_ignore_sigint and maybe_clear_ignore_sigint.
3439         * linux-nat.h (struct lwp_info): Add ignore_sigint field.
3440
3441 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3442
3443         * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
3444         report events from resumed threads.
3445
3446 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3447
3448         * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
3449         (mips_linux_init_abi): Set tdep->syscall_next_pc.
3450         * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
3451         mips-tdep.h.
3452         (mips32_next_pc): Handle the syscall instruction.
3453         * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
3454         from mips-tdep.c.  Add syscall_next_pc to gdbarch_tdep.
3455
3456 2008-07-26  Tom Tromey  <tromey@redhat.com>
3457
3458         PR gdb/1158:
3459         * valops.c (value_struct_elt): Treat function-valued field as a
3460         static method.
3461
3462 2008-07-26  Tom Tromey  <tromey@redhat.com>
3463
3464         PR gdb/1136:
3465         * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
3466         longer tokens first.
3467
3468 2008-07-26  Vladimir Prus  <vladimir@codesourcery.com>
3469
3470         Kill cmd_async_ok.
3471         * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
3472         (get_cmd_async_ok): Remove.
3473         * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
3474         * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
3475         * infcmd.c (_initialize_infcmd): Likewise.
3476         * thread.c (_initialize_thread): Likewise.
3477
3478 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
3479
3480         * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
3481         128-bit long doubles in even-odd pairs of FPRs.  Do not
3482         right-align float arguments for big-endian.
3483         (mips_n32n64_return_value): Apply return value convention for
3484         structs containing one or two floating-point values to soft-float
3485         as well as hard-float.  Handle 128-bit long doubles in such
3486         structs.
3487         (mips_o32_push_dummy_call): Only skip one integer register for a
3488         float argument passed in an FPR.
3489
3490 2008-07-25  Tom Tromey  <tromey@redhat.com>
3491
3492         * tui/tui-hooks.c: Include observer.h.
3493         (tui_event_default, tui_old_event_hooks, tui_event_hooks):
3494         Remove.
3495         (tui_bp_created_observer, tui_bp_deleted_observer,
3496         tui_bp_modified_observer): New globals.
3497         (tui_install_hooks): Use observers, not events.
3498         (tui_remove_hooks): Likewise.
3499         * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
3500         (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
3501         globals.
3502         (breakpoint_notify): Check mi_can_breakpoint_notify.
3503         (breakpoint_hooks): Remove.
3504         (mi_cmd_break_insert): Attach observers.  Don't use events.
3505         * tracepoint.c: Include observer.h, not gdb-events.h.
3506         (tracepoint_operation, trace_pass_command): Notify observer.
3507         * interps.c: Don't include gdb-events.h.
3508         (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
3509         * gdbarch.c: Rebuild.
3510         * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
3511         (deprecated_current_gdbarch_select_hack): Notify observer.
3512         * breakpoint.h: Don't include gdb-events.h.
3513         * breakpoint.c: Don't include gdb-events.h.
3514         (condition_command): Notify observer.
3515         (commands_command): Likewise.
3516         (commands_from_control_command): Likewise.
3517         (mention, delete_breakpoint, set_ignore_count): Likewise.
3518         (disable_breakpoint, do_enable_breakpoint): Likewise.
3519         * Makefile.in (gdb_events_h): Remove.
3520         (breakpoint_h): Update.
3521         (COMMON_OBS): Remove gdb-events.o.
3522         (gdb-events.o): Remove.
3523         (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
3524         gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
3525         * gdb-events.c: Remove.
3526         * gdb-events.h: Remove.
3527         * gdb-events.sh: Remove.
3528
3529 2008-07-24  Pedro Alves  <pedro@codesourcery.com>
3530
3531         * remote.c (remote_threads_extra_info): Don't query the remote
3532         server about info on the internally added main thread.
3533
3534 2008-07-24  Aleksandar Ristovski  <aristovski@qnx.com>
3535
3536         * nto-procfs.c (procfs_attach): Populate initial thread list.
3537         (procfs_wait): Return new pid, built from the inferior status.
3538
3539 2008-07-23  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3540
3541         * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
3542         * configure: Regenerate.
3543
3544 2008-07-23  Aleksandar Ristovski  <aristovski@qnx.com>
3545
3546         * nto-procfs.c (procfs_xfer_memory): Changed signature.
3547         (procfs_resume): Workaround for dereferencing type-punned pointer
3548         warning.
3549         * nto-tdep.c (nto_parse_redirection): Change signature to be const
3550         correct.
3551         * nto-tdep.h (nto_parse_redirection): Likewise.
3552
3553 2008-07-21  Stan Shebs  <stan@codesourcery.com>
3554
3555         Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
3556         * gdbarch.sh: Adjust comment to refer to
3557         in_solib_dynsym_resolve_code().
3558         * gdbarch.h, gdbarch.c: Update.
3559         * solib-osf.c: Ditto.
3560         * infrun.c: Ditto.
3561         (handle_inferior_event): Use in_solib_dynsym_resolve_code
3562         unconditionally.
3563         * config/mips/nm-irix5.h: Remove undef of
3564         IN_SOLIB_DYNSYM_RESOLVE_CODE.
3565
3566 2008-07-21  Tom Tromey  <tromey@redhat.com>
3567
3568         * symfile.c (reread_symbols): Don't pass argument to observer.
3569         * exec.c (exec_file_attach): Don't pass argument to observer.
3570         * ada-lang.c (ada_executable_changed_observer): Remove argument.
3571         * symtab.c (symtab_observer_executable_changed): Remove argument.
3572         * observer.sh: Handle functions with no arguments.
3573
3574 2008-07-20  Sergei Poselenov  <sposelenov@emcraft.com>
3575             Chris Demetriou  <cgd@google.com>
3576
3577         * elfread.c (elf_symfile_segments): Fix the check that each loadable
3578         section fits within an ELF segment to handle ELF segments that hit
3579         the end of the address space.
3580
3581 2008-07-20  Chris Demetriou  <cgd@google.com>
3582
3583         * MAINTAINERS (Write After Approval): Add self.
3584
3585 2008-07-18  Tom Tromey  <tromey@redhat.com>
3586
3587         PR gdb/855:
3588         * NEWS: Add entry for macro commands.
3589         * Makefile.in (macrocmd.o): Add gdb_string.h.
3590         * macroscope.h (user_macro_scope): Declare.
3591         (default_macro_scope): Update documentation.
3592         (macro_user_macros): Declare.
3593         * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
3594         Use user_macro_scope.
3595         (null_macro_lookup): Remove.
3596         * macrotab.h (macro_callback_fn): Declare.
3597         (macro_for_each): Likewise.
3598         (macro_allow_redefinitions): Likewise.
3599         * macrotab.c (foreach_macro): New function
3600         (macro_for_each): Likewise.
3601         (struct macro_table) <redef_ok>: New field.
3602         (macro_allow_redefinitions): New function.
3603         (new_macro_table): Update.
3604         (macro_define_function): Likewise.
3605         (macro_define_object): Likewise.
3606         * macroscope.c (user_macro_scope): New function.
3607         (default_macro_scope): Use it.
3608         (macro_user_macros): New global.
3609         (standard_macro_lookup): Look in macro_user_macros.
3610         (_initialize_macroscope): New function.
3611         * macroexp.h (macro_is_whitespace, macro_is_digit,
3612         macro_is_identifier_nondigit): Declare.
3613         * macroexp.c (macro_is_whitespace): Rename.  No longer static.
3614         (macro_is_digit): Likewise.
3615         (macro_is_identifier_nondigit): Likewise.
3616         (get_identifier): Update.
3617         (get_pp_number): Likewise.
3618         (get_token): Likewise.
3619         * macrocmd.c (skip_ws): New function.
3620         (extract_identifier): Likewise.
3621         (free_macro_definition_ptr): Likewise.
3622         (user_macros): Remove.
3623         (macro_define_command): Implement.
3624         (_initialize_macrocmd): Update.
3625         (macro_undef_command): Implement.
3626         (print_one_macro): New function.
3627         (macro_list_command): Implement.
3628
3629 2008-07-18  Joseph Myers  <joseph@codesourcery.com>
3630
3631         * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
3632         in BFD ELF check.
3633         * configure: Regenerate.
3634
3635 2008-07-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
3636
3637         * auxv.c (fprint_target_auxv): Stop at AT_NULL.
3638
3639 2008-07-15  Andreas Schwab  <schwab@suse.de>
3640
3641         * valops.c (value_cast_pointers): Follow typedefs when checking
3642         result of coercion.
3643
3644 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3645
3646         * block.c (block_function): Renamed to ...
3647         (block_linkage_function): ... this.  All callers changed.
3648         * block.h (block_function): Renamed to ...
3649         (block_linkage_function): ... this.
3650
3651 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3652
3653         * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
3654
3655 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3656
3657         * frame.c (frame_sp_unwind): Delete.
3658         (get_frame_sp): Do not use it.
3659         * frame.h (frame_sp_unwind): Delete prototype.
3660
3661 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3662
3663         * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
3664
3665 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3666
3667         * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
3668         * frame.c (frame_unwind_address_in_block): Delete.
3669         (get_frame_address_in_block): Do not use it.  Check the type
3670         of the next frame first.
3671         (frame_cleanup_after_sniffer): Update comment.
3672         * frame.h (frame_unwind_address_in_block): Delete prototype.
3673         * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
3674
3675 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3676
3677         * frame.c (frame_func_unwind): Delete.
3678         (get_frame_func): Do not use it.
3679         * frame.h (frame_func_unwind): Delete prototype.
3680         * hppa-tdep.c (hppa_frame_cache): Update comment.
3681         * rs6000-tdep.c (rs6000_frame_cache): Update comment.
3682
3683 2008-07-14  Stan Shebs  <stan@codesourcery.com>
3684
3685         * remote-sim.c (init_gdbsim_ops): Remove
3686         TARGET_REDEFINE_DEFAULT_OPS.
3687
3688 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3689
3690         * findvar.c (read_var_value): Remove unused variable.
3691
3692 2008-07-15  Luis Machado  <luisgpm@br.ibm.com>
3693
3694         * infrun.c (handle_inferior_event): Tag threads as stopped
3695         before inserting breakpoints.
3696
3697 2008-07-15  Hui Zhu  <teawater@gmail.com>
3698
3699         * MAINTAINERS: Added myself to section Write After Approval.
3700
3701 2008-07-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
3702
3703         PR gdb/2477
3704         * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
3705
3706 2008-07-14  Pedro Alves  <pedro@codesourcery.com>
3707
3708         * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
3709         (i386_dicos_push_dummy_code): New.
3710         (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
3711         Register i386_dicos_push_dummy_code.
3712
3713 2008-07-14  Markus Deuling  <deuling@de.ibm.com>
3714
3715         * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
3716         (mips_n32n64_push_dummy_call, mips_o64_return_value)
3717         (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
3718
3719         (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
3720         (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
3721         (mips_n32n64_fp_arg_chunk_p): Update caller.
3722
3723         (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
3724         (mips_n32n64_push_dummy_call): Update caller.
3725
3726         (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
3727         current_gdbarch.
3728         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3729         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
3730
3731
3732         (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
3733         current_gdbarch.
3734         (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
3735         (mips_o64_push_dummy_call): Update caller.
3736
3737         (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
3738         (fp_register_arg_p, mips_dump_tdep): Update caller.
3739
3740         (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
3741         (mips16_scan_prologue, mips32_scan_prologue): Update caller.
3742
3743         (reset_saved_regs): Make static.  Add gdbarch as parameter.  Replace
3744         current_gdbarch.
3745         (mips32_scan_prologue): Update caller.
3746
3747         (heuristic_proc_start): Add gdbarch as parameter. Replace
3748         current_gdbarch.
3749         (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
3750
3751         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
3752         (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
3753         the current architecture. Update call to getregs_supplies.
3754         (getregs_supplies): Add gdbarch as parameter and replace
3755         current_gdbarch.
3756
3757         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
3758         get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
3759         NBSD_MIPS_JB_ELEMENT_SIZE.
3760         (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
3761         replace current_gdbarch.
3762
3763         * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
3764         current_gdbarch.
3765         (mips_fetch_registers, mips_store_registers): Update call
3766         to mips_map_regno.
3767         (mips_load): Use get_regcache_arch to get at the current_architecture
3768         and replace current_gdbarch.
3769
3770 2008-07-13  Pedro Alves  <pedro@codesourcery.com>
3771
3772         * thread.c (restore_selected_frame): On fail to restore, select
3773         the innermost frame, and don't crash when warning the user.
3774
3775 2008-07-13  Hui Zhu  <teawater@gmail.com>
3776
3777         * symtab.c (expand_line_sal): Fix a memory leak.
3778
3779 2008-07-13  Pedro Alves  <pedro@codesourcery.com>
3780
3781         * utils.c (struct continuation): Define as inheriting struct
3782         cleanup.
3783         (add_continuation, do_all_continuations)
3784         (discard_all_continuations, add_intermediate_continuation)
3785         (do_all_intermediate_continuations)
3786         (discard_all_intermediate_continuations): Adjust.
3787
3788 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
3789
3790         Skip varobj in running threads.
3791         * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
3792         thread is not stopped, skip the varobj.
3793         * Makefile.in: Update dependencies.
3794
3795 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
3796
3797         Enable all commands while inferiour is running
3798         * mi/mi-main.c (mi_cmd_execute): Don't check if
3799         inferiour is executing.
3800
3801 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
3802
3803         Allow all CLI command even if target is executing.
3804         * gdb/top.c (execute_command_1): Don't check if the inferiour
3805         is running.
3806
3807 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
3808
3809         * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
3810         Fix printing of frame, when frame is wrong.
3811
3812 2008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
3813
3814         * spu-tdep.c (spu_frame_unwind_cache): Do not error if
3815         backchain is unreadable.
3816
3817 2008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
3818
3819         * spu-linux-nat.c: Include "gdbthread.h".
3820         (spu_child_post_startup_inferior): Register main thread.
3821         (spu_child_post_attach): Likewise.
3822         * Makefile.in (spu-linux-nat.o): Update dependencies.
3823
3824 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
3825
3826         Rewrite continuations internals on top of cleanups and plug
3827         continuation arguments leaks.
3828
3829         * defs.h (struct continuation): Make it opaque.
3830         (add_continuation, add_intermediate_continuation): Drop the int
3831         argument of the continuation hook argument.  Add
3832         continuation_free_args argument.
3833         (do_all_continuations, do_all_intermediate_continuations): Drop
3834         the error_p argument.
3835
3836         * utils.c (add_continuation): Drop the int argument of the
3837         continuation hook argument.  Add continuation_free_args argument.
3838         Reimplement on top of cleanups.
3839         (do_all_continuations): Drop error argument.  Reimplement on top
3840         of cleanups.
3841         (discard_all_continuations): Reimplement on top of cleanups.
3842         (add_intermediate_continuation): Drop the int argument of the
3843         continuation hook argument.  Add continuation_free_args argument.
3844         Reimplement on top of cleanups.
3845         (do_all_intermediate_continuations): Drop error argument.
3846         Reimplement on top of cleanups.
3847         (discard_all_intermediate_continuations): Reimplement on top of
3848         cleanups.
3849
3850         * breakpoint.c (until_break_command_continuation): Drop error
3851         argument.  Add xfree as continuation argument deleter.
3852
3853         * inf-loop.c (inferior_event_handler): On error, discard all
3854         continuations.  Adjust to new do_all_intermediate_continuations
3855         and do_all_continuations interfaces.
3856
3857         * infcmd.c (step_1_continuation): Drop error_p argument.  Adjust.
3858         Pass xfree as continuation argument deleter.
3859         (finish_command_continuation): Drop error_p argument.  Adjust.
3860         (finish_command_continuation_free_arg): New.
3861         (finish_command): Pass finish_command_continuation_free_arg as
3862         continuation argument deleter.  Adjust to new do_all_continuations
3863         interfaces.
3864         (attach_command_continuation): Drop error_p argument.
3865         (attach_command_continuation_free_args): New.
3866         (attach_command): Pass attach_command_continuation_free_args as
3867         continuation argument deleter.
3868
3869         * interps.c (interp_set): Adjust to new do_all_continuations
3870         interfaces.
3871
3872         * event-top.c (stdin_event_handler): In error, also discard the
3873         intermediate continuations.
3874
3875 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
3876
3877         Replace struct continuation_args by void* and per command structs.
3878
3879         * top.c (execute_command): Remove unused arg1 and arg2 locals.
3880
3881         * breakpoint.c (struct until_break_command_continuation_args):
3882         New.
3883         (until_break_command_continuation): Take a void* instead of a
3884         continuations_arg.  Adjust.
3885         (until_break_command): Adjust to use struct
3886         until_break_command_continuation_args instead of struct
3887         continuation_arg.
3888
3889         * infcmd.c (struct step_1_continuation_args): New.
3890         (step_1_continuation): Take a void* instead of a
3891         continuations_arg.  Adjust to use struct step_1_continuation_args.
3892         (step_once): Adjust to use struct step_1_continuation_args.
3893
3894         (struct finish_command_continuation_args): New.
3895         (finish_command_continuation): Take a void* instead of a
3896         continuations_arg.  Adjust to use struct
3897         finish_command_continuation_args.
3898         (finish_command): Adjust to use struct
3899         finish_command_continuation_args.
3900         (struct attach_command_continuation_args): New.
3901         (attach_command_continuation): Take a void* instead of a
3902         continuations_arg.  Adjust to use struct
3903         attach_command_continuation_args.
3904         (attach_command): Adjust to use struct
3905         attach_command_continuation_args.
3906
3907         * defs.h (struct continuation_arg): Delete.
3908         (struct continuation): Replace the struct continuation_arg*
3909         parameter of continuation_hook by a void*.  Replace "arg_list"
3910         member by a new "args" member with void* type.
3911         (add_continuation, add_intermediate_continuation): Replace struct
3912         continuation_arg type usages by void* usages.
3913
3914         * utils.c (add_continuation, do_all_continuations)
3915         (add_intermediate_continuation)
3916         (do_all_intermediate_continuations): Replace struct
3917         continuation_arg type usages by void* usages.  Pass "args" instead
3918         of "arg_list".
3919
3920 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
3921
3922         * infrun.c (struct thread_stepping_state): Delete sal member.
3923         (init_thread_stepping_state): Add local sal.  Use it instead of
3924         tss->sal.
3925         (handle_inferior_event): New local stop_pc_sal.  Use it instead of
3926         tss->sal.
3927         (step_into_function): Add local stop_func_sal.  Use it instead of
3928         tss->sal.
3929
3930 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
3931
3932         Implement -exec-continue/-exec-interrupt --all.
3933         * infcmd.c (continue_1): New, extracted from
3934         (continue_command): ...here.
3935         (interrupt_target_1): New, extracted from
3936         (interrupt_target_command): ...here.
3937         * inferior.h (continue_1, interrupt_target_1): New.
3938         * mi/mi-main.c (mi_cmd_exec_continue)
3939         (mi_cmd_exec_interrupt): Handle --all.
3940
3941 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
3942
3943         Implement --thread and --frame.
3944         * gdbthread.h (find_thread_id): Declare.
3945         * thread.c (find_thread_id): Make non-static.
3946         * mi/mi-main.c (mi_cmd_execute): Switch to the right
3947         thread and frame, if necessary.
3948         * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
3949         * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
3950
3951 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
3952
3953         * infrun.c (resume): Discard cleanups on early exit path.
3954
3955 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
3956
3957         * infrun.c (normal_stop): For MI, report which threads
3958         were stopped.
3959
3960 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
3961
3962         Report thread state in -thread-info output.
3963         * thread.c (print_thread_info): Add new field "state".
3964
3965 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
3966
3967         * infrun.c (handle_inferior_event): Also ignore a
3968         TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
3969
3970 2008-07-11  Tom Tromey  <tromey@redhat.com>
3971
3972         * completer.c (complete_line_internal): New function, from
3973         complete_line.  Add 'for_help' parameter.
3974         (complete_line): Use it.
3975         (command_completer): Move later.  Rewrite.
3976
3977 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
3978
3979         * thread.c (thread_apply_command): Move making the cleanup out of
3980         the loop.
3981
3982 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
3983
3984         Exited threads.
3985
3986         * thread.c (enum thread_state): New.
3987         (thread_state main_thread_running): Delete, in favor of...
3988         (thread_state main_thread_state): ... this.  Update throughout.
3989         (clear_thread_inferior_resources): New, split from free_thread.
3990         (free_thread): Call clear_thread_inferior_resources.
3991         (init_thread_list): Set main thread to stopped state.
3992         (add_thread_silent): Take care of PTID reuses.
3993         (delete_thread): If deleting inferior_ptid or a thread with
3994         refcount > 0, mark it as exited, but still keep it in the list.
3995         Only notify of thread exits, if we haven't done so yet.
3996         (iterate_over_threads): Make it safe to delete threads while
3997         iterating over them.
3998         (do_captured_list_thread_ids): Don't account for exited threads.
3999         (thread_alive): Check for the THREAD_EXITED state, and don't set
4000         ptid to -1 on exited threads.
4001         (set_running): Update to account for extra possible states.
4002         (is_thread_state): New.
4003         (is_stopped, is_exited): New.
4004         (is_running): Implement in terms of is_thread_state.
4005         (any_running): Update.
4006         (print_thread_info): Update.  Account for exited threads.  Don't
4007         warn about missed frame restoring here, its done in the cleanup.
4008         (switch_to_thread): Don't read from a thread that has gone.
4009         (restore_current_thread): In non-stop mode, do a full context
4010         switch.
4011         (restore_selected_frame): Add a frame_level argument.  Rewrite.
4012         (struct current_thread_cleanup): Add selected_frame_level and
4013         was_stopped members.
4014         (do_restore_current_thread_cleanup): Check if thread was stopped
4015         and still is, and if the target has registers, stack and memory
4016         before restoring the selected frame.  Don't delete the cleanup
4017         argument here.
4018         (restore_current_thread_cleanup_dtor): New.
4019         (make_cleanup_restore_current_thread): Remove all arguments.
4020         Rewrite.
4021         (thread_apply_all_command): Update.  Prune threads.
4022         (thread_apply_command): Update.
4023         (thread_command): Account for currently selected exited thread.
4024         (do_captured_thread_select): Check for a running thread.  Prune
4025         threads.
4026         (_initialize_thread): Make "info threads", "thread", "thread
4027         apply", and "thread apply all" appliable without a selected thread.
4028         * gdbthread.h (struct thread_info): Replace running_ by state_.
4029         Add refcount.
4030         (is_exited, is_stopped): Declare.
4031         (make_cleanup_restore_current_thread): Remove all arguments.
4032         * infrun.c: Include "event-top.h".
4033         (fetch_inferior_event): In non-stop mode, restore selected thread
4034         and frame after handling the event and running breakpoint
4035         commands.  Display GDB prompt if needed.
4036         (normal_stop): In non-stop mode, don't print thread switching
4037         notice.
4038         * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
4039         (get_cmd_no_selected_thread_ok): New.
4040         * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
4041         (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
4042         Declare.
4043         * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
4044         no-selected-thread ok.
4045         * top.c (execute_command): Check for non no-selected-thread-ok
4046         commands.
4047         * linux-nat.c (struct saved_ptids, threads_to_delete)
4048         (record_dead_thread, prune_lwps): Delete.
4049         (exit_lwp): Unconditionally delete thread.
4050         (linux_nat_resume): Remove prune_lwps call.
4051         * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
4052         of is_running.  Adjust to make_cleanup_restore_current_thread
4053         interface change.
4054         * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
4055         selected thread has exited.
4056         * inf-loop.c (inferior_event_handler): Don't display the prompt
4057         here.
4058         * varobj.c (c_value_of_root): Update.
4059         * defs.h (make_cleanup_dtor): Declare.
4060         * utils.c (make_cleanup_dtor): New.
4061
4062         * Makefile.in (infrun.o): Depend on $(event_top_h).
4063
4064 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
4065
4066         Add "continue -a" and "interrupt -a" options for non-stop mode.
4067
4068         * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
4069         (continue_command): Add "-a" option.
4070         (interrupt_target_command): Add "-a" option.
4071         (_initialize_infcmd): Add extend help of continue and interrupt
4072         command to mention the new "-a" option.  Mark "continue" async ok.
4073
4074 2008-07-10  Doug Evans  <dje@google.com>
4075
4076         Add "set print symbol-loading on|off".
4077         * NEWS: Document new option.
4078         * symfile.h (print_symbol_loading): Declare.
4079         * symfile.c (print_symbol_loading): New global.
4080         (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
4081         from ..." if print_symbol_loading.
4082         (_initialize_symfile): Add set/show print symbol-loading.
4083         * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
4084         if print_symbol_loading.
4085
4086 2008-07-10  Pedro Alves  <pedro@codesourcery.com>
4087
4088         Non-stop linux native.
4089
4090         * linux-nat.c (linux_test_for_tracefork): Block events while we're
4091         here.
4092         (get_pending_status): Implement non-stop mode.
4093         (linux_nat_detach): Stop threads before detaching.
4094         (linux_nat_resume): In non-stop mode, always resume only a single
4095         PTID.
4096         (linux_handle_extended_wait): On a clone event, in non-stop mode,
4097         add new lwp to GDB's thread table, and mark as running, executing
4098         and stopped appropriately.
4099         (linux_nat_filter_event): Don't assume there are other running
4100         threads when a thread exits.
4101         (linux_nat_wait): Mark the main thread as running and executing.
4102         In non-stop mode, don't stop all lwps.
4103         (linux_nat_kill): Stop lwps before killing them.
4104         (linux_nat_thread_alive): Use signal 0 to detect if a thread is
4105         alive.
4106         (send_sigint_callback): New.
4107         (linux_nat_stop): New.
4108         (linux_nat_add_target): Set to_stop to linux_nat_stop.
4109
4110         * linux-nat.h (thread_db_attach_lwp): Declare.
4111
4112         * linux-thread-db.c (thread_get_info_callback): Check for new
4113         threads if we have none.
4114         (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
4115         stopped lwp.  Check for new threads if we have none.
4116         (thread_db_attach_lwp): New.
4117         (thread_db_init): Set proc_handle.pid to inferior_ptid.
4118         (check_event): Set proc_handle.pid to the stopped lwp.
4119         (thread_db_find_new_threads): Set proc_handle.pid to any stopped
4120         lwp available, bail out if there is none.
4121
4122         * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
4123         PTRACE_KILL.
4124
4125 2008-07-10  Kevin Buettner  <kevinb@redhat.com>
4126
4127         * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
4128         `current_pc' from CORE_ADDR to ULONGEST.
4129
4130         * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
4131         gdbsim_stop().
4132
4133 2008-07-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4134
4135         * NEWS (New commands): Mention "set disable-randomization".
4136         * configure.ac: Add check for HAVE_PERSONALITY and
4137         HAVE_DECL_ADDR_NO_RANDOMIZE.
4138         * configure, config.in: Regenerate.
4139         * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
4140         [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
4141         ADDR_NO_RANDOMIZE.
4142         (disable_randomization, show_disable_randomization)
4143         (set_disable_randomization): New.
4144         (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
4145         PERSONALITY_ORIG and PERSONALITY_SET.  Disable randomization upon the
4146         variable DISABLE_RANDOMIZATION.
4147         (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
4148         DISABLE_RANDOMIZATION.
4149
4150 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4151
4152         Adjust all targets to new target_stop interface.
4153
4154         * gnu-nat.c (gnu_stop): Add ptid argument.
4155         * go32-nat.c (go32_stop): Add ptid argument.
4156         (go32_create_inferior): Pass inferior_ptid to go32_stop.
4157         * hpux-thread.c (hpux_thread_stop): Add ptid argument.
4158         * monitor.c (monitor_stop): Add ptid argument.
4159         (monitor_open): Pass inferior_ptid to monitor_stop.
4160         (monitor_interrupt): Pass inferior_ptid to target_stop.
4161         (monitor_stop): Add ptid argument.
4162         * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
4163         (procfs_create_inferior): Add ptid argument.
4164         * procfs.c (procfs_stop): Add ptid argument.
4165         * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
4166         * remote-sim.c (gdbsim_stop): Add ptid argument.
4167         * sol-thread.c (sol_thread_stop): Add ptid argument.
4168         * win32-nat.c (win32_stop): Add ptid argument.
4169
4170 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4171
4172         Non-stop inferior control.
4173
4174         * infrun.c (resume): In non-stop mode, always resume just one
4175         thread.
4176         (proceed): Don't call prepare_to_proceed in non-stop mode.
4177         (fetch_inferior_event): In non-stop mode, switch context before
4178         handling the event.
4179         (error_is_running, ensure_not_running): New.
4180         (handle_inferior_event): In non-stop mode: Mark only the event
4181         thread as stopped.  Require that the target module manages adding
4182         threads to the thread list.  Assert that there isn't a
4183         deferred_step_ptid set.  Don't switch to infwait_thread_hop_state.
4184         (normal_stop): Only mark not-running if inferior hasn't exited.
4185         In non-stop mode, only mark the event thread.
4186
4187         * thread.c:Include "cli/cli-decode.h".
4188         (print_thread_info): Don't read from a running thread.
4189         Output "(running)" if thread is running.
4190         (switch_to_thread): Don't read stop_pc if thread is executing.
4191         (do_restore_current_thread_cleanup): Don't write to a running
4192         thread.
4193         (thread_apply_all_command): Don't read from a running thread.  In
4194         non-stop mode, do a full context-switch instead of just switching
4195         threads.
4196         (thread_apply_command): In non-stop mode, do a full context-switch
4197         instead of just switching threads.
4198         (do_captured_thread_select): Likewise.  Inform user if selected
4199         thread is running.
4200         (_initialize_thread): Mark "info threads" and "thread" and
4201         async_ok.
4202
4203         * inf-loop.c (inferior_event_handler): In non-stop mode, don't
4204         unregister the target from the event loop.
4205
4206         * infcmd.c (continue_command, step_1, jump_command)
4207         (signal_command): Ensure the selected thread isn't running.
4208         (interrupt_target_command): In non-stop mode, interrupt only the
4209         selected thread.
4210
4211         * inferior.h (error_is_running, ensure_not_running): Declare.
4212
4213         * target.h (struct target_ops): Add ptid argument to the to_stop
4214         member.
4215         (target_stop): Add ptid_t argument.
4216
4217         * target.c (update_current_target): Add ptid argument to to_stop's
4218         type.
4219         (debug_to_stop): Add ptid_t argument.
4220         (debug_to_rcmd): Set to_stop_ptid.
4221
4222         * remote.c (remote_stop): Add ptid_t argument.
4223         (async_remote_interrupt): Add inferior_ptid to target_stop.
4224         * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
4225
4226         * Makefile.in (thread.o): Depend on $(cli_decode_h).
4227
4228 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4229
4230         Don't rely on ecs->wait_for_more.
4231
4232         * infrun.c (proceed): Clear the stepping state, set
4233         previous_inferior_ptid and clear infwait state.
4234         (wait_for_inferior): Don't clear the stepping state, set
4235         previous_inferior_ptid, or clear the infwait state here.
4236         (fetch_inferior_event): Don't clear the stepping state, set
4237         previous_inferior_ptid, or clear the infwait state here.  Don't
4238         condition on wait_for_more.
4239
4240 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4241
4242         Refactor infrun a bit.
4243
4244         * infrun.c (currently_stepping): Take a struct
4245         thread_stepping_state instead of an execution_control_state.
4246         (struct thread_stepping_state): New, split from
4247         execution_control_state.
4248         (gtss, tss): New globals.
4249         (proceed): Clear the stepping state, set previous_inferior_ptid
4250         and clear infwait state.
4251         (init_wait_for_inferior): Clear the stepping state,
4252         previous_inferior_ptid and infwait state.
4253         (waiton_ptid, infwait_state): New, split from
4254         execution_control_state.
4255         (struct execution_control_state): Members that persist through
4256         events moved out to either struct thred_stepping_state or made
4257         global.  Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
4258         (wait_for_inferior, fetch_inferior_event): Use local
4259         execution_control_state.  Update to execution_control_state split.
4260         (init_execution_control_state): Adjust.
4261         (init_thread_stepping_state): New, extracted from
4262         init_execution_control_state.
4263         (context_switch): Take a ptid instead of an
4264         execution_control_state.
4265         (context_switch_to): Adjust.
4266         (adjust_pc_after_break): Adjust.
4267         (init_infwait_state): New.
4268         (handle_inferior_event): Adjust.
4269
4270 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4271             Vladimir Prus  <vladimir@codesourcery.com>
4272
4273         Per-thread commands.
4274
4275         * gdbthread.h: Remove unneeded forward declarations.
4276         Include "inferior.h".
4277         (struct thread_info): Add continuations,
4278         intermediate_continuations, proceed_to_finish, step_over_calls,
4279         stop_step, step_multi and stop_signal members.
4280         (save_infrun_state): Add continuations,
4281         intermediate_continuations, proceed_to_finish, step_over_calls,
4282         stop_step, step_multi, stop_signal and stop_bpstat parameters.
4283         (load_infrun_state): Add continuations,
4284         intermediate_continuations, proceed_to_finish, step_over_calls,
4285         stop_step, step_multi, stop_signal and stop_bpstat parameters.
4286
4287         * thread.c (load_infrun_state): In non-stop mode, load
4288         continuations, intermediate_continuations, proceed_to_finish,
4289         step_over_calls, stop_step, step_multi and stop_signal.
4290         (save_infrun_state): Store continuations,
4291         intermediate_continuations, proceed_to_finish, step_over_calls,
4292         stop_step, step_multi, stop_signal and stop_bpstat.
4293         (save_infrun_state): Store continuations,
4294         intermediate_continuations, proceed_to_finish, step_over_calls,
4295         stop_step, step_multi, stop_signal and stop_bpstat.
4296         (free_thread): Clear The thread's stop_bpstat.
4297
4298         * inferior.h (context_switch_to): Declare.
4299
4300         * infrun.c (ecss): New global.
4301         (context_switch): Context switch continuations,
4302         intermediate_continuations, proceed_to_finish, step_over_calls,
4303         stop_step, step_multi, stop_signal and stop_bpstat.
4304         (wait_for_inferior): Use global ecss.
4305         (async_ecss, async_ecs): Delete.
4306         (fetch_inferior_event): Use global ecss.
4307         (context_switch_to): New.
4308
4309         * top.c (execute_command): In non-stop, only check if the current
4310         thread is running, in all-stop, check if there's any thread
4311         running.
4312
4313         * breakpoint.c (bpstat_remove_breakpoint): New.
4314         (bpstat_remove_breakpoint_callback): New.
4315         (delete_breakpoint): Clear the stop_bpstats of all threads.
4316
4317         * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
4318         current thread is running, in all-stop, check if there's any
4319         thread running.
4320
4321         * Makefile.in (gdbthread_h): Depend on $(inferior_h).
4322
4323 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4324
4325         Add non_stop global.
4326
4327         * inferior.h (non_stop): Declare.
4328         * infrun.c (non_stop, non_stop_1): New.
4329         (set_non_stop, show_non_stop): New.
4330         (_initialize_infrun): Add "set/show non-stop" command.
4331
4332 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4333
4334         Adjust fork/vfork/exec to pass ptids around.
4335
4336         * target.h (struct target_waitstatus): Store related_pid as a ptid.
4337         (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
4338         Take a ptid_t.
4339         * breakpoint.h (struct breakpoint): Change forked_inferior_pid
4340         type to ptid.
4341         * breakpoint.c (print_it_typical, bpstat_check_location)
4342         (print_one_breakpoint_location, set_raw_breakpoint_without_location)
4343         (create_fork_vfork_event_catchpoint): Adjust.
4344         * infrun.c (fork_event): Change parent_pid and child_pid types to
4345         ptid.
4346         (follow_exec, inferior_has_forked, inferior_has_vforked)
4347         (inferior_has_execd): Take a ptid_t and don't trim it.
4348         * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
4349         * linux-nat.c (linux_child_follow_fork): Adjust.
4350         * inf-ptrace.c (inf_ptrace_wait): Adjust.
4351         * inf-ttrace.c (inf_ttrace_wait): Adjust.
4352         * win32-nat.c (get_win32_debug_event): Don't set related_pid.
4353
4354 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4355
4356         Add "executing" property to threads.
4357
4358         * inferior.h (target_executing): Delete.
4359         * gdbthread.h (struct thread_info): Add executing_ field.
4360         (set_executing, is_executing): New.
4361         * thread.c (main_thread_executing): New.
4362         (init_thread_list): Clear it and also main_thread_running.
4363         (is_running): Return false if target has no execution.
4364         (any_running, is_executing, set_executing): New.
4365
4366         * top.c: Include "gdbthread.h".
4367         (target_executing): Delete.
4368         (execute_command): Replace target_executing check by any_running.
4369         * event-top.c: Include "gdbthread.h".
4370         (display_gdb_prompt, command_handler): Replace target_executing by
4371         is_running.
4372         * inf-loop.c: Include "gdbthread.h".  Don't mark as not executing
4373         here.  Replace target_executing by is_running.
4374         * infrun.c (handle_inferior_event): Mark all threads as
4375         not-executing.
4376         * linux-nat.c (linux_nat_resume): Don't mark thread as executing
4377         here.
4378         * stack.c (get_selected_block): Return null if inferior is
4379         executing.
4380         * target.c (target_resume): Mark resumed ptid as executing.
4381         * breakpoint.c (until_break_command): Replace target_executing
4382         check by is_executing.
4383         * remote.c (remote_async_resume): Don't mark inferior as executing
4384         here.
4385         * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
4386         by any_running.
4387
4388         * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
4389         (mi_execute_async_cli_command): Replace target_executing by
4390         is_running.
4391
4392         * frame.c (get_current_frame): Error out if the current thread is
4393         executing.
4394         (has_stack_frames): New.
4395         (get_selected_frame, deprecated_safe_get_selected_frame): Check
4396         has_stack_frames.
4397
4398         * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
4399         $(gdbthread_h).
4400
4401 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4402
4403         * symfile.c (load_command): Reopen the exec file and reread
4404         symbols before anything else.
4405
4406 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4407
4408         * remote-sim.c: Include gdbthread.h.
4409         (remote_sim_ptid): New global.
4410         (gdbsim_create_inferior): Silently add the main task to GDB's
4411         thread list.
4412         (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
4413         task from GDB's thread list.
4414         (gdbsim_resume): Adjust to use remote_sim_ptid.
4415         (gdbsim_thread_alive, gdbsim_pid_to_str): New.
4416         (init_gdbsim_ops): Register gdbsim_thread_alive and
4417         gdbsim_pid_to_str.
4418         (_initialize_remote_sim): Initialize remote_sim_ptid.
4419         * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
4420
4421 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4422
4423         * monitor (monitor_ptid): New global.
4424         (monitor_open): Silently add the main task to GDB's thread list.
4425         (monitor_close, monitor_mourn_inferior): Silently delete the main
4426         task from GDB's thread list.
4427         (monitor_thread_alive, monitor_pid_to_str): New.
4428         (init_base_monitor_ops): Register monitor_thread_alive and
4429         monitor_pid_to_str.
4430         (_initialize_remote_monitors): Initialize monitor_ptid.
4431
4432         * gdbthread.h (delete_thread_silent): Declare.
4433         * thread.c (delete_thread): Rename to ...
4434         (delete_thread_1): ... this.  Add "silent" parameter.  If silent,
4435         don't do exit notifications.
4436         (delete_thread, delete_thread_silent): New, as wrappers to
4437         delete_thread_1.
4438
4439 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
4440
4441         * breakpoint.c (update_global_location_list): Add boolean
4442         "should_insert" argument.  Only insert locations if caller told it
4443         too.
4444         (update_global_location_list_nothrow): Add boolean "should_insert"
4445         argument.  Pass it to update_global_location_list.
4446         (insert_breakpoints, create_longjmp_breakpoint)
4447         (create_overlay_event_breakpoint, enable_overlay_breakpoints)
4448         (create_thread_event_breakpoint, create_solib_event_breakpoint)
4449         (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
4450         (enable_watchpoints_after_interactive_call_stop)
4451         (set_momentary_breakpoint, create_breakpoints)
4452         (break_command_really, watch_command_1)
4453         (create_ada_exception_breakpoint, update_breakpoint_locations)
4454         (do_enable_breakpoint, enable_command): Pass true to
4455         update_global_location_list.
4456         (bpstat_stop_status, disable_overlay_breakpoints)
4457         (disable_watchpoints_before_interactive_call_start)
4458         (delete_breakpoint, disable_breakpoint, disable_command): Pass
4459         false to update_global_location_list.
4460         (update_breakpoints_after_exec): Don't temporarily disable
4461         always-inserted mode.
4462
4463 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
4464
4465         * breakpoint.c (mark_breakpoints_out): Make public.
4466         (update_breakpoints_after_exec): Don't call mark_breakpoints_out
4467         here.  Update comment.
4468         * breakpoint.h (mark_breakpoints_out): Declare.
4469
4470         * linux-nat.c (linux_handle_extended_wait): On
4471         TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
4472         * inf-ttrace.c (inf_ttrace_wait): Likewise.
4473
4474 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
4475
4476         * infrun.c (follow_exec): Reset shared libraries before adding the
4477         main exec file.
4478
4479 2008-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4480
4481         * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
4482
4483 2008-07-07  Pedro Alves  <pedro@codesourcery.com>
4484
4485         * i386-dicos-tdep.c: Include "inferior.h".
4486         (i386_dicos_frame_align): New.
4487         (i386_dicos_init_abi): Register i386_dicos_frame_align.  Set call
4488         dummy location ON_STACK.
4489         * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
4490
4491 2008-07-07  Joel Brobecker  <brobecker@adacore.com>
4492
4493         * gstdint.h: New file.
4494
4495 2008-07-05  Vladimir Prus  <vladimir@codesourcery.com>
4496
4497         * mi/mi-interp.c (mi_on_resume): Don't try to report
4498         resumed thread it the thread list is empty.
4499
4500 2008-07-05  Pierre Muller  <muller@ics.u-strasbg.fr>
4501
4502         * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
4503         completer for set to filename_completer.
4504
4505         NEWS: Mention it.
4506
4507 2008-07-04  Vladimir Prus  <vladimir@codesourcery.com>
4508
4509         Implement -target-attach.
4510         * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
4511
4512 2008-06-21  Hui Zhu  <teawater@gmail.com>
4513
4514         * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
4515
4516 2008-07-03  Pedro Alves  <pedro@codesourcery.com>
4517
4518         * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
4519         * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
4520
4521         * target.h (struct target_ops): Add to_attach_no_wait member.
4522         (target_attach_no_wait): New.
4523         * target.c (update_current_target): Inherit to_attach_no_wait.
4524
4525         * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
4526         target_attach_no_wait runtime check.
4527
4528         * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
4529         * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
4530         win32_ops.
4531
4532 2008-07-03  Pedro Alves  <pedro@codesourcery.com>
4533
4534         * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
4535         on debug_displaced being set.
4536
4537 2008-06-30  Daniel Jacobowitz  <dan@codesourcery.com>
4538
4539         * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
4540         directly instead of get_frame_id.
4541
4542 2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
4543
4544         * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
4545         (deal_with_atomic_sequence): Update BC masks.
4546         (rs6000_gdbarch_init): Init displaced stepping infra-structure.
4547         Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
4548
4549 2008-06-30  Daniel Jacobowitz  <dan@codesourcery.com>
4550
4551         * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
4552         register, not the previous frame's.
4553
4554 2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
4555
4556         * source.c (select_source_symtab): Make sure we skip namespace
4557         symtabs when showing cpp source code.
4558
4559 2008-06-30  Hans-Peter Nilsson  <hp@axis.com>
4560
4561         * MAINTAINERS (Authorized committers): Fix my email address.
4562
4563 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
4564
4565         * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
4566         -target-download and -target-select via CLI, so that
4567         the quoting rules are the same as they were (unfortunately)
4568         in all prior gdb releases.
4569         * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
4570         (mi_cmd_target_download, mi_cmd_target_select): Remove.
4571         * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
4572         (mi_cmd_target_download, mi_cmd_target_select): Remove.
4573         (mi_cmd_execute): Set current_token even for commands
4574         routed via CLI.
4575
4576 2008-06-28  Ulrich Weigand  <uweigand@de.ibm.com>
4577
4578         * alphafbsd-tdep.c: Update for unwinder changes.
4579         * alpha-linux-tdep.c: Likewise.
4580         * alphanbsd-tdep.c: Likewise.
4581         * alphaobsd-tdep.c: Likewise.
4582         * avr-tdep.c: Likewise.
4583         * cris-tdep.c: Likewise.
4584         * frv-linux-tdep.c: Likewise.
4585         * frv-tdep.c: Likewise.
4586         * h8300-tdep.c: Likewise.
4587         * hppa-linux-tdep.c: Likewise.
4588         * iq2000-tdep.c: Likewise.
4589         * m32c-tdep.c: Likewise.
4590         * m32r-linux-tdep.c: Likewise.
4591         * m32r-tdep.c: Likewise.
4592         * m68hc11-tdep.c: Likewise.
4593         * mep-tdep.c: Likewise.
4594         * mn10300-tdep.c: Likewise.
4595         * mt-tdep.c: Likewise.
4596         * score-tdep.c: Likewise.
4597         * sh64-tdep.c: Likewise.
4598         * sh-tdep.c: Likewise.
4599         * sparc64fbsd-tdep.c: Likewise.
4600         * sparc64nbsd-tdep.c: Likewise.
4601         * sparc64obsd-tdep.c: Likewise.
4602         * v850-tdep.c: Likewise.
4603         * vaxobsd-tdep.c: Likewise.
4604         * vax-tdep.c: Likewise.
4605         * xstormy16-tdep.c: Likewise.
4606
4607 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
4608
4609         * mi/mi-main.c (enum captured_mi_execute_command_actions)
4610         (captured_mi_execute_command_args): Remove.
4611         (captured_mi_execute_command): Cast the closure to mi_parse
4612         pointer, not to captured_mi_execute_command_args, and don't
4613         set the action field thereof.
4614         (mi_execute_command): Pass struct mi_parse, not
4615         captured_mi_execute_command_args to captured_mi_execute_command.
4616         (mi_execute_command): Remove (dead) code for suppressing
4617         printing prompt.
4618
4619 2008-06-28  Pedro Alves  <pedro@codesourcery.com>
4620
4621         * linux-nat.c (enum sigchld_state): New.
4622         (linux_nat_async_events_state): Renamed from
4623         linux_nat_async_events_enabled.
4624         (linux_nat_event_pipe_push, my_waitpid): Adjust.
4625         (sigchld_default_action): New.
4626         (lin_lwp_attach_lwp): Adjust.  Call linux_nat_async_events
4627         unconditionally.
4628         (linux_nat_create_inferior): Set events state to sigchld_default
4629         state.
4630         (linux_nat_resume): Adjust.
4631         (linux_nat_wait): Call linux_nat_async_events unconditionally.
4632         (sigchld_handler): Adjust.
4633         (linux_nat_async_mask): Don't set SIGCHLD actions here.
4634         (get_pending_events): Adjust.
4635         (linux_nat_async_events): Rewrite to handle enum sigchld_state
4636         instead of a boolean.
4637         (linux_nat_async): Adjust.
4638         (_initialize_linux_nat): Capture default SIGCHLD action into
4639         sigchld_default_action.
4640
4641 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
4642
4643         * breakpoint.c (moribund_locations): New.
4644         (bpstat_stop_status): Process moribund locations.
4645         (update_global_location_list): Add removed
4646         locations to moribund_locations.
4647         (breakpoint_retire_moribund): New.
4648         * breakpoint.h (struct bp_location): New field
4649         events_till_retirement.
4650         (breakpoint_retire_moribund): Declare.
4651         * thread.c (thread_count): New.
4652         * infrun.c (handle_inferior_event): Call
4653         breakpoint_retire_moribund.
4654         * gdbthread.h (thread_count): Declare.
4655
4656 2008-06-27  Joseph Myers  <joseph@codesourcery.com>
4657
4658         * dfp.c (decimal_convert): Call match_endianness before and after
4659         conversion.
4660
4661 2008-06-27  Jonathan Larmour  <jifl@eCosCentric.com>
4662
4663         * remote.c (remote_insert_breakpoint): Ensure that if Z0
4664         unsupported and we fall back to memory_insert_breakpoint, we
4665         use the unmodified requested address.
4666
4667 2008-06-27  Joel Brobecker  <brobecker@adacore.com>
4668
4669         * dwarf2read.c (read_attribute_value): Issue a complaint when
4670         adjusting size attribute values of 0xffffffff as zero.
4671
4672 2008-06-27  Joseph Myers  <joseph@codesourcery.com>
4673
4674         * i386-tdep.c (i386_16_byte_align_p): New.
4675         (i386_push_dummy_call): Determine stack space required for
4676         arguments going forwards allowing for 16-byte alignment, then push
4677         arguments going forwards.
4678
4679 2008-06-27  Pedro Alves  <pedro@codesourcery.com>
4680
4681         * infrun.c (start_remote): Don't clear thread list here.
4682         * monitor.c (monitor_open): Include "gdbthread.h".  Clear thread
4683         list here.
4684         * remote.c (record_currthread): Upgrade the main thread and its
4685         entry in the thread list if this is the first time we hear about
4686         threads.
4687         (remote_thread_alive): Consider magic_null_ptid or a ptid without
4688         a tid member always alive.
4689         (remote_find_new_threads): Don't update the main thread here.
4690         (remote_start_remote): Clear thread list here.  Always add the
4691         main thread.
4692         (extended_remote_attach_1): Add the main thread here.
4693         (extended_remote_mourn_1): Re-add the main thread here.
4694         (extended_remote_create_inferior_1): Add a main thread.
4695
4696         * Makefile.in (monitor.o): Depend on $(gdbthread_h).
4697
4698 2008-06-27  Pedro Alves  <pedro@codesourcery.com>
4699
4700         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4701
4702         * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
4703         globals.
4704         (general_thread, continue_thread): Change type to ptid_t.
4705         (record_currthread): Take a ptid_t parameter instead of an
4706         integer.
4707         (MAGIC_NULL_PID): Delete.
4708         (set_thread): Take a ptid_t parameter and adjust.
4709         (set_general_thread, set_continue_thread): New.
4710         (remote_thread_alive, remote_newthread_step)
4711         (remote_current_thread, remote_find_new_threads)
4712         (remote_threads_info, remote_start_remote, remote_vcont_resume)
4713         (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
4714         (threadalive_test, remote_pid_to_str)
4715         (remote_get_thread_local_address): Adjust.
4716         (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
4717         and any_thread_ptid.
4718
4719 2008-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4720
4721         * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
4722         * configure: Regenerated.
4723
4724 2008-06-26  Joel Brobecker  <brobecker@adacore.com>
4725
4726         * dwarf2read.c (read_attribute_value): Treat size attribute
4727         values of 0xffffffff as if the attribute value was zero.
4728
4729 2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
4730
4731         * linux-nat.c: Add description of overall logic.
4732
4733 2008-06-26  Daniel Jacobowitz  <dan@codesourcery.com>
4734
4735         * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
4736         (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete.  Remove
4737         all dependencies on $(gdb_stdint_h).
4738         (distclean): Do not delete gdb_stdint.h.
4739         * acinclude.m4: Do not use stdint.m4.
4740         * configure.ac: Set GNULIB_STDINT_H.  Remove tests for stdint.h,
4741         uintptr_t, and gdb_stdint.h.
4742         * defs.h: Include <stdint.h>.
4743         * gdb_thread_db.h: Assume stdint.h is already included.
4744         * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
4745         rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
4746         include gdb_stdint.h.
4747         * configure, config.in: Regenerate.
4748
4749 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
4750
4751         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
4752         decimal floating-point values in GPRs for soft-float.
4753         (do_ppc_sysv_return_value): Handle returning decimal
4754         floating-point values in GPRs for soft-float.
4755
4756 2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
4757
4758         * target.c (target_read_until_error): New.
4759         * target.h (target_read_until_error): Declare.
4760         * mi/mi-main.c (mi_cmd_data_read_memory): Use
4761         target_read_until_error.
4762
4763 2008-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4764
4765         Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
4766         * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
4767         after the DECFLOAT detection to fix a memory leak.  Remove the
4768         redundant NUM initialization.  Protect the DECFLOAT detection memory
4769         access before the P block.  Restore the P memory content for the
4770         DECFLOAT detection.
4771
4772 2008-06-25  Vladimir Prus  <vladimir@codesourcery.com>
4773
4774         Kill the return value for all MI command functions.
4775         * mi/mi-cmds.h (enum mi_cmd_result): Remove.
4776         (mi_cmd_argv_ftype): Change return type to void.
4777
4778         * mi/mi-main.c: Adjust all function that implement
4779         MI commands to return nothing.
4780         (struct captured_mi_execute_command_actions):
4781         Remove the rc field.
4782         (mi_cmd_execute): Return nothing.
4783         (mi_execute_async_cli_command): Return nothing.
4784         (mi_cmd_exec_interrupt): Don't print ^done here.
4785         (mi_cmd_target_select): Don't print ^connected here.
4786         (captured_mi_execute_command): Don't check for MI_CMD_DONE.
4787         Special-case -target-select and output ^connected, not ^done.
4788
4789         * mi/mi-cmd-break.c: Adjust.
4790         * mi/mi-cmd-disas.c: Adjust.
4791         * mi/mi-cmd-env.c: Adjust.
4792         * mi/mi-cmd-file.c: Adjust.
4793         * mi/mi-cmd-stack.c: Adjust.
4794         * mi/mi-cmd-target.c: Adjust.
4795         * mi/mi-cmd-var.c: Adjust.
4796         * mi/mi-interp.c: Adjust.
4797         * mi/mi-symbol-cmds.c: Adjust.
4798
4799 2008-06-25  Vladimir Prus  <vladimir@codesourcery.com>
4800
4801         Emit ^running via observer.
4802         * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
4803         ^running here.
4804         (mi_on_resume): Print ^running if not previously output.
4805         * mi/mi-main.c (running_result_record_printed): New.
4806         (captured_mi_execute_command): Reset
4807         running_result_record_printed.  Use running_result_record_printed
4808         to decide if we should skip ^done.
4809         (mi_execute_async_cli_command): Don't print ^running here.
4810         * mi/mi-main.h (current_token, running_result_record_printed):
4811         Declare.
4812
4813 2008-06-24  Michael Snyder  <msnyder@specifix.com>
4814
4815         * infrun.c (_initialize_infrun): White space and typo fix.
4816
4817 2008-06-23  Christopher Faylor  <me.gdb.changelog@cgf.cx>
4818
4819         * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
4820         (do_initial_win32_stuff): Fix problem with inability to set breakpoints
4821         when first loading DLL with "dll" command.
4822
4823 2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4824
4825         * gnu-nat.c (proc_string): Use capital T for "Thread".
4826
4827 2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4828
4829         * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
4830
4831 2008-06-18  Joel Brobecker  <brobecker@adacore.com>
4832
4833         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
4834         the target cannot run.
4835
4836 2008-06-18  Joel Brobecker  <brobecker@adacore.com>
4837
4838         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
4839         we're attaching to a running process.
4840
4841 2008-06-18  Pierre Muller  <muller@ics.u-strasbg.fr>
4842
4843         * win32-nat.c (handle_load_dll): Give dll name and load address
4844         if debug_events is on.
4845         (handle_unload_dll): Likewise.
4846
4847 2008-06-14  Vladimir Prus  <vladimir@codesourcery.com>
4848
4849         Don't suppress *running when doing finish.
4850         * infcall.c (call_function_by_hand): Set both
4851         suppress_resume_observer and suppress_stop_observer.
4852         * infcmd.c (suppress_run_stop_observers): Split into...
4853         (suppress_resume_observer, suppress_stop_observer): ...those.
4854         (finish_command_continuation): Clear suppress_stop_observer.
4855         (finish_command): Set suppress_stop_observer.
4856         * inferior.h (suppress_run_stop_observers): Split into...
4857         (suppress_resume_observer, suppress_stop_observer): ...those.
4858         * infrun.c (normal_stop): Check for suppress_stop_observer.
4859         * thread.c (set_running): Check for suppress_resume_observer.
4860
4861 2008-06-12  Pedro Alves  <pedro_alves@portugalmail.pt>
4862             Pierre Muller  <muller@ics.u-strasbg.fr>
4863
4864         * gdbarch.sh (gdbarch_skip_main_prologue): New.
4865         * gdbarch.h, gdbarch.c: Regenerate.
4866         * i386-tdep.h (i386_skip_main_prologue): Declare.
4867         * i386-tdep.c (i386_skip_main_prologue): New.
4868         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4869         i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
4870         * symtab.c (find_function_start_sal): When pc points at the "main"
4871         function, call gdbarch_skip_main_prologue.
4872
4873 2008-06-11  Daniel Jacobowitz  <dan@codesourcery.com>
4874
4875         * value.c (value_primitive_field): Fetch lazy register values.
4876
4877 2008-06-11  Pedro Alves  <pedro@codesourcery.com>
4878
4879         * NEWS: Mention support removal of undocumented S AA p PID stop
4880         reply packet.
4881
4882         * remote.c (remote_wait): Remove undocumented S AA p PID support.
4883
4884 2008-06-10  Stan Shebs  <stan@codesourcery.com>
4885
4886         * MAINTAINERS: Update my affiliation and address.
4887
4888 2008-06-10  Andreas Schwab  <schwab@suse.de>
4889
4890         * top.c (print_gdb_version): Don't print final newline.
4891
4892 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
4893
4894         Implement *running.
4895         * Makefile.in: Update dependencies.
4896         * gdbthread.h (struct thread_info): New field
4897         running_.
4898         (set_running, is_running): New.
4899         * thread.c (set_running, is_running): New.
4900         * inferior.h (suppress_normal_stop_observer): Rename to...
4901         (suppress_run_stop_observers): ..this.
4902         * infcmd.c (suppress_normal_stop_observer): Rename to...
4903         (suppress_run_stop_observers): ..this.
4904         (finish_command_continuation, finish_command): Adjust.
4905         * infcall.c (call_function_by_hand): Adjust.
4906         * infrun.c (normal_stop): Call set_running.
4907         * target.c (target_resume): New.  Call set_running.
4908         * target.h (target_resume): Convert from macro to
4909         a function.
4910
4911         * mi/mi-interp.c (mi_on_resume): New.
4912         (mi_interpreter_init): Register mi_on_resume.
4913
4914 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
4915
4916         Use observers to report stop events in MI.
4917         * mi/mi-interp.c (mi_on_normal_stop): New.
4918         (mi_interpreter_init): Register mi_on_normal_stop.
4919         (mi_interpreter_exec_continuation): Remove.
4920         (mi_cmd_interpreter_exec): Don't register the above.
4921         * mi/mi-main.c (captured_mi_execute_command): Don't care
4922         about sync_execution.
4923         (mi_execute_async_cli_command): Don't install continuation.  Don't
4924         print *stopped.
4925         (mi_exec_async_cli_cmd_continuation): Remove.
4926
4927 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
4928
4929         Suppress normal stop observer when it's problematic.
4930         * inferior.h (suppress_normal_stop_observer): New.
4931         * infcall.c (call_function_by_hand): Disable stop events when
4932         doing function calls.
4933         * infmcd.c (suppress_normal_stop_observer): New.
4934         (finish_command_continuation): Call normal_stop observer
4935         explicitly.
4936         (finish_command): Disable stop events inside proceed.
4937         * infrun.c (normal_stop): Don't call normal stop observer if
4938         suppressed of if multi-step is in progress.
4939
4940 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
4941
4942         Remove stale code.
4943         * infrun.c (finish_command): Don't pass cleanup
4944         to continuation.
4945         (finish_command_continuation): Don't grab cleanup from
4946         the passed data, as we don't use, and cannot, use it anyway.
4947
4948 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
4949
4950         Introduce common cleanup for restoring integers.
4951         * defs.h (make_cleanup_restore_integer): New declaration.
4952         (struct cleanup): New field free_arg.
4953         (make_my_cleanup_2): New.
4954         * utils.c (restore_integer_closure, restore_integer)
4955         (make_cleanup_restore_integer): New.
4956         (make_my_cleanup): Initialize the free_arg field and
4957         renamed to make_my_cleanup_2.
4958         (do_my_cleanups): Call free_arg.
4959         (discard_cleanups): Call free_arg.
4960         * breakpoint.c (restore_always_inserted_mode): Remove.
4961         (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
4962
4963 2008-06-09  Doug Evans  <dje@google.com>
4964
4965         * remote.c (remote_wait): Include beginning of malformed packet
4966         in error output.
4967
4968 2008-06-09  Tom Tromey  <tromey@redhat.com>
4969
4970         * completer.c (complete_line): Don't special-case
4971         expression_completer.
4972         (expression_completer): Only pass last word to
4973         location_completer.
4974         * c-exp.y (yylex): Check 'token', not 'operator'.
4975
4976 2008-06-09  Daniel Jacobowitz  <dan@codesourcery.com>
4977
4978         * configure.ac (build_warnings): Add -Wno-format for mingw.
4979         * configure: Regenerated.
4980
4981 2008-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
4982
4983         * NEWS: Make indentation consistent.  Move exec tracing entry out
4984         of remote packet list.
4985
4986 2008-06-06  Tom Tromey  <tromey@redhat.com>
4987
4988         * value.h (evaluate_subexpression_type, extract_field_op):
4989         Declare.
4990         * printcmd.c (_initialize_printcmd): Use expression_completer for
4991         'p', 'inspect', 'call'.
4992         * parser-defs.h (parse_field_expression): Declare.
4993         * parse.c: Include exceptions.h.
4994         (in_parse_field, expout_last_struct): New globals.
4995         (mark_struct_expression): New function.
4996         (prefixify_expression): Return int.
4997         (prefixify_subexp): Return int.  Use expout_last_struct.
4998         (parse_exp_1): Update.
4999         (parse_exp_in_context): Add 'out_subexp' argument.  Handle
5000         in_parse_field.
5001         (parse_field_expression): New function.
5002         * expression.h (parse_field_expression): Declare.
5003         (in_parse_field): Likewise.
5004         * eval.c (evaluate_subexpression_type): New function.
5005         (extract_field_op): Likewise.
5006         * completer.h (expression_completer): Declare.
5007         * completer.c (expression_completer): New function.
5008         (count_struct_fields, add_struct_fields): New functions.
5009         * c-exp.y (yyparse): Redefine.
5010         (COMPLETE): New token.
5011         (exp): New productions.
5012         (saw_name_at_eof, last_was_structop): New globals.
5013         (yylex): Return COMPLETE when needed.  Recognize in_parse_field.
5014         (c_parse): New function.
5015         * breakpoint.c (_initialize_breakpoint): Use expression_completer
5016         for watch, awatch, and rwatch.
5017         * Makefile.in (parse.o): Depend on exceptions_h.
5018
5019 2008-06-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5020
5021         PR gdb/1147
5022         * gdb/valopts.c (find_overload_match): Handle references
5023         to pointers.
5024
5025 2008-06-06  Paul N. Hilfinger  <hilfinger@adacore.com>
5026
5027         * ada-lang.c (ada_value_assign): Correct big-endian case to take into
5028         account the bitsize of the 'from' operand.
5029
5030 2008-06-06  Pedro Alves  <pedro@codesourcery.com>
5031
5032         * annotate.h (annotate_thread_changed): Declare.
5033
5034 2008-06-06  Nick Roberts  <nickrob@snap.net.nz>
5035
5036         * annotate.c (annotate_thread_changed): New function.
5037         * thread.c (thread_command) : Use it.
5038         * infrun.c (normal_stop): Use it.
5039
5040 2008-06-05  Vladimir Prus  <vladimir@codesourcery.com>
5041             Nathan Sidwell  <nathan@codesourcery.com>
5042             Joseph Myers  <joseph@codesourcery.com>
5043
5044         * acinclude.m4: Include ../config/acx.m4.
5045         * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
5046         * configure, config.in: Regenerate.
5047         * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
5048         address.
5049         * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
5050
5051 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
5052
5053         Replace 'target async' by 'maintenance set remote-async' and
5054         'target remote' combination.
5055
5056         * remote.c (remote_async_wait): Merge into remote_wait, and
5057         remove.
5058         (remote_async_permitted, remote_async_permitted_set): New
5059         variables.
5060         (set_maintenance_remote_async_permitted)
5061         (show_maintenance_remote_async_permitted): New functions.
5062         (remote_async_ops, extended_async_remote_ops): Delete.
5063         (remote_async_open, extended_remote_async_open): Delete.
5064         (remote_open_1): Drop async_p parameter.  Update callers.  Replace
5065         async_p with remote_async_permitted checks.
5066         (extended_async_remote_attach): Delete.
5067         (remote_resume, remote_async_resume): Merge and leave remote_resume.
5068         (remote_async_terminal_inferior): Rename to...
5069         (remote_terminal_inferior): ... this, and add
5070         remote_async_termitted check.
5071         (remote_async_terminal_ours): Rename to...
5072         (remote_terminal_ours): ... this, and add remote_async_termitted
5073         check.
5074         (remote_wait, remote_async_wait): Merge and leave remote_wait
5075         only.
5076         (remote_kill, remote_async_kill): Merge and leave remote_kill
5077         only.
5078         (remote_async_mourn, extended_async_remote_mourn): Delete.
5079         (extended_remote_create_inferior_1): Drop async_p parameter.
5080         Update callers.  Always use extended_remote_ops.
5081         (extended_remote_async_create_inferior): Delete.
5082         (remote_return_zero): Delete.
5083         (init_remote_ops): Register remote_can_async_p, remote_async,
5084         remote_async_mask, remote_terminal_inferior and
5085         remote_terminal_ours.
5086         (remote_can_async_p, remote_is_async_p): Check for
5087         remote_async_permitted.
5088         (init_remote_async_ops, init_extended_async_remote_ops): Remove.
5089         (set_remote_cmd): Don't add async and extended-async targets.
5090         (_initialize_remote): Add set/show remote-async maintenance
5091         commands.
5092
5093 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
5094
5095         * remote.c (kill_kludge): Delete.
5096         (remote_wait, remote_async_wait): Don't set it.
5097         (remote_kill, remote_async_kill): Don't do anything with it.
5098
5099 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
5100
5101         * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
5102
5103 2008-06-05  Aleksandar Ristovski  <aristovski@qnx.com>
5104
5105         * bcache.c (bcache_data): Call deprecated_bcache_added function.
5106         (deprecated_bcache_added): New function name. Body of function
5107         bcache_data is used here with the addition of 'added' argument.
5108         * bcache.h (deprecated_bcache_added): New function.
5109         * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
5110         work from add_psymbol_to_list - initialises partial symbol and stashes
5111         it in objfile's cache.
5112         (append_psymbol_to_list): New helper function, takes other part of
5113         work from add_psymbol_to_list - adds partial symbol to the given list.
5114         (add_psymbol_to_list): Call helper functions instead of doing work
5115         here. If adding to global list, do not duplicate partial symbols in the
5116         partial symtab.
5117
5118 2008-06-05  Aleksandar Ristovski  <aristovski@qnx.com>
5119
5120         * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
5121         'exception caught|thrown' message.
5122
5123 2008-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5124
5125         * Makefile.in: Update dependencies.
5126         * dwarf2expr.c: New include "gdb_assert.h".
5127         (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
5128         (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
5129         (execute_stack_op): Error out on too large RECURSION_DEPTH.
5130         Increase/decrease RECURSION_DEPTH around the function.
5131
5132 2008-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
5133
5134         * remote.c (get_offsets): Handle a single segment.
5135         * symfile.c (symfile_map_offsets_to_segments): Allow more bases
5136         than segments.
5137
5138 2008-06-03  Daniel Jacobowitz  <dan@codesourcery.com>
5139
5140         * solib-svr4.c (struct lm_info): Add lm_addr.
5141         (main_lm_addr): New.
5142         (svr4_default_sos): Set lm_addr.
5143         (svr4_current_sos): Set lm_addr and main_lm_addr.
5144         (svr4_fetch_objfile_link_map): Rewrite.
5145         (svr4_clear_solib): Clear main_lm_addr.
5146
5147 2008-06-03  Michael Snyder  <msnyder@redhat.com>
5148             Joseph Myers  <joseph@codesourcery.com>
5149
5150         * mips-tdep.c (mips_eabi_return_value): Replace stub that always
5151         returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
5152
5153 2008-06-02  Roman Zippel <zippel@linux-m68k.org>
5154
5155         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
5156
5157 2008-06-02  Roman Zippel <zippel@linux-m68k.org>
5158
5159         * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
5160
5161 2008-06-01  Joel Brobecker  <brobecker@adacore.com>
5162
5163         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
5164         treat pointers in data space as function descriptors if the
5165         target address is also in the data space.
5166
5167 2008-05-30  Joel Brobecker  <brobecker@adacore.com>
5168
5169         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
5170         the trad-frame register value for the SP register.
5171
5172 2008-05-29  Mark Kettenis  <kettenis@gnu.org>
5173
5174         * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
5175
5176 2008-05-28  Joel Brobecker  <brobecker@adacore.com>
5177
5178         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
5179         that identifies function descriptors outside of the .opd section.
5180
5181 2008-05-28  Aleksandar Ristovski  <aristovski@qnx.com>
5182
5183         * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
5184         temporary catchpoints.  In MI add missing fields 'reason', 'disp',
5185         'bkptno'.
5186         (print_mention_exception_catchpoint): Add 'Temporary' for temporary
5187         catchpoints.
5188         (handle_gnu_v3_exceptions): Use tempflag.
5189
5190 2008-05-28  Vladimir Prus  <vladimir@codesourcery.com>
5191
5192         Refactor varobj_update interface.
5193         * varobj.c (varobj_update): Report changes as vector.  Also
5194         return not just a list of varobj, but a list of special structures
5195         that tell what exactly has changed.
5196         * varobj.h (enum varobj_update_error): Rename to
5197         varobj_scope_status.
5198         (struct varobj_update_result_t): New.
5199         (varobj_update): Adjust prototype.
5200         * mi/mi-cmd-var.c: Adjust for changes.
5201
5202 2008-05-28  Vladimir Prus  <vladimir@codesourcery.com>
5203
5204         * varobj.c (varobj_update): Fix comment typo.
5205         Fix indentation.
5206
5207 2008-05-26  Joel Brobecker  <brobecker@adacore.com>
5208
5209         Set the symtab field of symbols read from ECOFF debugging entries.
5210         * mdebugread.c (add_symbol): Add new parameter symtab.
5211         (parse_symbol): Update calls to add_symbol throughout.
5212
5213 2008-05-27  Andreas Schwab  <schwab@suse.de>
5214
5215         * symtab.h (enum address_class): Remove LOC_REGPARM and
5216         LOC_COMPUTED_ARG.
5217         (struct symbol): Add is_argument.
5218         (SYMBOL_IS_ARGUMENT): Define.
5219
5220         * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
5221         * buildsym.c (finish_block): Likewise.
5222         * stack.c (print_frame_args, print_block_frame_locals)
5223         (print_frame_arg_vars): Likewise.
5224         * symtab.c (lookup_block_symbol): Likewise.
5225         * tracepoint.c (add_local_symbols): Likewise.
5226         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5227
5228         * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
5229         * dwarf2read.c (new_symbol): Likewise.
5230         * mdebugread.c (parse_symbol): Likewise.
5231         * stabsread.c (define_symbol): Likewise.
5232
5233         * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
5234         and LOC_COMPUTED_ARG.
5235         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5236         * ax-gdb.c (gen_var_ref): Likewise.
5237         * eval.c (evaluate_subexp_for_address): Likewise.
5238         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5239         * m2-exp.y (yylex): Likewise.
5240         * printcmd.c (address_info): Likewise.
5241         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5242         * tracepoint.c (collect_symbol, scope_info): Likewise.
5243
5244 2008-05-24  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5245
5246         * gdbarch.sh: Added new gdbarch struct
5247         core_regset_sections.
5248         * gdbarch.c: Refreshed.
5249         * gdbarch.h: Refreshed.
5250         * regset.h (core_regset_section): Declared.
5251         * linux-nat.c (linux_nat_do_thread_registers): Added
5252         support for the new gdbarch struct core_regset_sections.
5253         * utils.c (host_address_to_string): New function.
5254         * defs.h (host_address_to_string): New prototype.
5255         * i386-linux-tdep.c (i386_regset_rections): New register
5256         sections list for i386.
5257           (i386_linux_init_abi): Initialized new gdbarch struct
5258           core_regset_sections.
5259         * Makefile.in: Updated to reflect dependency changes.
5260         * ppc-linux-tdep.c (ppc_regset_sections): Register
5261         sections list for ppc.
5262           (ppc_linux_init_abi): Initialized new gdbarch struct
5263           core_regset_sections
5264
5265 2008-05-24  Andreas Schwab  <schwab@suse.de>
5266
5267         * linespec.c (decode_objc): Save current language around call to
5268         get_selected_block.
5269
5270 2008-05-23  Joel Brobecker  <brobecker@adacore.com>
5271
5272         * valprint.h (get_array_bounds): Renames get_array_low_bound.
5273         * valprint.c (get_array_bounds): Renames get_array_low_bound.
5274         Return the proper bound value if the array index type is an
5275         enumerated type. Compute the high bound if requested.
5276         (val_print_array_elements): Handle the case when the array
5277         element has a null size.
5278         * ada-valprint.c (print_optional_low_bound): Add handling
5279         for empty arrays or arrays of zero-size elements.
5280         (ada_val_print_array): New function, extracted out from
5281         ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
5282         handle empty arrays and arrays of zero-size elements.
5283         (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
5284         code by call to ada_val_print_array.
5285         (ada_value_print): Remove handling of null array.  The handling
5286         was incomplete and is now better handled by ada_val_print_array.
5287
5288 2008-05-23 Markus Deuling  <deuling@de.ibm.com>
5289
5290         * annotate.c (annotate_source, annotate_frame_begin): Replace
5291         deprecated_print_address_numeric with paddress.
5292         * cli/cli-cmds.c (list_command, edit_command): Likewise.
5293         * tui/tui-stack.c (tui_make_status_line): Likewise.
5294
5295         * defs.h (deprecated_print_address_numeric): Remove.
5296         * printcmd.c (deprecated_print_address_numeric): Remove.
5297         * maint.c (maint_print_section_info): Fix comment.
5298
5299 2008-05-23 Markus Deuling  <deuling@de.ibm.com>
5300
5301         * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
5302         print_binary_chars, print_char_chars): Add byte_order parameter and
5303         replace gdbarch_byte_order.
5304         (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
5305         expressions and remove them.  Remove unused TWO_TO_FOURTH.
5306         (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
5307         endianness.  Update call to print_hex_chars.
5308         * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
5309         print_binary_chars, print_char_chars): Add byte_order parameter.
5310         * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
5311         get at the endianness.  Update print_*_char calls to use byte_order.
5312
5313 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5314
5315         * symtab.h (struct symbol): Make "aux_value" member a void pointer
5316         instead of a union.
5317         (SYMBOL_LOCATION_BATON): Update.
5318
5319 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5320
5321         * symtab.h (enum address_class): Remove LOC_BASEREG and
5322         LOC_BASEREG_ARG.
5323         (struct symbol): Remove "basereg" member of "aux_value" union.
5324         (SYMBOL_BASEREG): Remove.
5325
5326         * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
5327         or LOC_BASEREG_ARG.
5328         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5329         (ada_add_block_symbols): Likewise.
5330         * ax-gdb.c (gen_var_ref): Likewise.
5331         * buildsym.c (finish_block): Likewise.
5332         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5333         * m2-exp.y (yylex): Likewise.
5334         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5335         * printcmd.c (address_info): Likewise.
5336         * stack.c (print_frame_args, print_block_frame_locals): Likewise.
5337         (print_frame_arg_vars): Likewise.
5338         * symmisc.c (print_symbol): Likewise.
5339         * symtab.c (lookup_block_symbol): Likewise.
5340         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5341         (scope_info): Likewise.
5342
5343 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5344
5345         * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
5346
5347         * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
5348         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5349         (ada_add_block_symbols): Likewise.
5350         * ax-gdb.c (gen_var_ref): Likewise.
5351         * buildsyms.c (finish_block): Likewise.
5352         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5353         * m2-exp.y (yylex): Likewise.
5354         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5355         * printcmd.c (address_info): Likewise.
5356         * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
5357         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5358         * symtab.c (lookup_block_symbol): Likewise.
5359         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5360         (scope_info): Likewise.
5361
5362 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5363
5364         * symtab.h (enum address_class): Remove LOC_INDIRECT and
5365         LOC_HP_THREAD_LOCAL_STATIC.
5366
5367         * findvar.c (symbol_read_needs_frame, read_var_value): Do not
5368         handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
5369         (read_var_value): Likewise.
5370         * buildsym.c (finish_block): Likewise.
5371         * objfiles.c (objfile_relocate): Likewise.
5372         * printcmd.c (address_info): Likewise.
5373         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5374         * tracepoint.c (scope_info): Likewise.
5375
5376 2008-05-21 Markus Deuling  <deuling@de.ibm.com>
5377            Maxim Grigoriev  <maxim2405@gmail.com>
5378
5379         * xtensa-tdep.c (xtensa_read_register): Remove.
5380         (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
5381         argument litbase to call0_frame_cache().
5382         (call0_track_op, call0_analyze_prologue)
5383         (call0_frame_cache): Use extra argument litbase.
5384
5385 2008-05-21  Joel Brobecker  <brobecker@adacore.com>
5386
5387         * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
5388
5389 2008-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
5390
5391         * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
5392
5393 2008-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
5394
5395         * alpha-mdebug-tdep.c: Include "trad-frame.h".
5396         (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
5397         struct trad_frame_saved_reg *.
5398         (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
5399         trad_frame_alloc_saved_regs.  Update accesses.  Record previous
5400         value of SP as being vfp.
5401         (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
5402         * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
5403
5404 2008-05-21  Markus Deuling  <deuling@de.ibm.com>
5405
5406         * score-tdep.c (score_print_insn): Get the current endianess from
5407         disassemble_info instead of gdbarch_byte_order.
5408
5409 2008-05-21  Pedro Alves  <pedro@codesourcery.com>
5410
5411         * frame.c (get_prev_frame_1): Build frame id before setting
5412         this_frame->prev_p, not after.
5413
5414 2008-05-21  Nick Roberts  <nickrob@snap.net.nz>
5415
5416         * annotate.c (annotate_new_thread): New function for new-thread
5417         annotation.
5418         * annotate.h: (annotate_new_thread): New extern.
5419         * thread.c (add_thread_with_info): Use it.
5420         * Makefile.in (thread.o): Add dependency on annotate.h.
5421
5422 2008-05-20  Joel Brobecker  <brobecker@adacore.com>
5423
5424         * win32-nat.c (win32_wait): Block the control-c event while
5425         waiting for a debug event.
5426
5427 2008-05-19  Pedro Alves  <pedro@codesourcery.com>
5428
5429         * symtab.h (lookup_symbol_in_language): Update comment.
5430         * symtab.c (lookup_symbol_aux_block): Update comment.
5431         * ada-lang.c (ada_lookup_symbol_list): Update comment.
5432
5433 2008-05-19  Ulrich Weigand  <uweigand@de.ibm.com>
5434
5435         * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
5436         (lookup_symbol): Likewise.
5437         * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
5438         (lookup_symbol): Likewise.
5439         (search_symbols): Update.
5440
5441         * linespec.c (find_methods, collect_methods): Update.
5442         (add_matching_methods, add_constructors): Update.
5443         (decode_compound, decode_dollar, decode_variable): Update.
5444         (lookup_prefix_sym): Update.
5445
5446         (symbol_found): Remove SYM_SYMTAB parameter.
5447         Use SYMBOL_SYMTAB (sym) instead.
5448
5449         * gdbtypes.c (lookup_typename): Update.
5450         (lookup_struct, lookup_union, lookup_enum): Update.
5451         (lookup_template_type): Update.
5452         (check_typedef): Update.
5453         * language.c (lang_bool_type): Update.
5454         * mdebugread.c (parse_procedure): Update.
5455         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5456         * parse.c (write_dollar_variable): Update.
5457         * printcmd.c (address_info): Update.
5458         * source.c (select_source_symtab): Update.
5459         * stack.c (print_frame_args, print_frame_arg_vars): Update.
5460         * valops.c (find_function_in_inferior): Update.
5461         (value_struct_elt_for_reference): Update.
5462         * value.c (value_static_field, value_fn_field): Update.
5463
5464         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5465         * arm-tdep.c (arm_skip_prologue): Update.
5466         * mt-tdep.c (mt_skip_prologue): Update.
5467         * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
5468
5469         * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
5470         * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
5471         (add_defn_to_vec): Likewise.
5472         (ada_add_block_symbols): Likewise.
5473         (lookup_cached_symbol, cache_symbol): Likewise.
5474         (standard_lookup): Update.
5475         (ada_lookup_symbol_list): Update.
5476
5477         * c-valprint.c (c_val_print): Update.
5478         * cp-support.c (cp_lookup_rtti_type): Update.
5479         * jv-lang.c (java_lookup_class, get_java_object_type): Update.
5480         * objc-lang.c (lookup_struct_typedef, find_imps): Update.
5481         * p-valprint.c (pascal_val_print): Update.
5482         * scm-lang.c (scm_lookup_name): Update.
5483
5484         * c-exp.y: Update.
5485         * f-exp.y: Update.
5486         * jv-exp.y: Update.
5487         * m2-exp.y: Update.
5488         * objc-exp.y: Update.
5489         * p-exp.y: Update.
5490
5491 2008-05-19  Ulrich Weigand  <uweigand@de.ibm.com>
5492
5493         * language.h (struct language_defn): Remove SYMTAB parameter from
5494         la_lookup_symbol_nonlocal callback function pointer.
5495
5496         * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5497         (ada_lookup_encoded_symbol): Likewise.
5498         * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5499         Always call fixup_symbol_section.
5500         (ada_lookup_symbol): Remove SYMTAB parameter.
5501         (ada_lookup_symbol_nonlocal): Likewise.
5502         * ada-exp.y (write_object_renaming): Update.
5503         (find_primitive_type): Likewise.
5504
5505         * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5506         (cp_lookup_symbol_namespace): Likewise.
5507         * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
5508         (lookup_symbol_file): Likewise.
5509         (lookup_possible_namespace_symbol): Likewise.
5510         (cp_lookup_symbol_nonlocal): Likewise.
5511         (cp_lookup_symbol_namespace): Likewise.
5512         (cp_lookup_nested_type): Update.
5513
5514         * scm-valprint.c (scm_inferior_print): Update.
5515         * valops.c (value_maybe_namespace_elt): Update.
5516
5517         * solist.h (struct target_so_ops): Remove SYMTAB parameter from
5518         lookup_lib_global_symbol callback function pointer.
5519         (solib_global_lookup): Remove SYMTAB parameter.
5520         * solib.c (solib_global_lookup): Remove SYMTAB parameter.
5521         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5522
5523         * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5524         (lookup_symbol_static): Likewise.
5525         (lookup_symbol_global): Likewise.
5526         (lookup_symbol_aux_block): Likewise.
5527         (lookup_global_symbol_from_objfile): Likewise.
5528         * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
5529         (lookup_symbol_aux_local): Likewise.
5530         (lookup_symbol_aux_block): Likewise.
5531         (lookup_symbol_aux_symtabs): Likewise.
5532         (lookup_symbol_aux_psymtabs): Likewise.
5533         (lookup_global_symbol_from_objfile): Likewise.
5534         (basic_lookup_symbol_nonlocal): Likewise.
5535         (lookup_symbol_static): Likewise.
5536         (lookup_symbol_global): Likewise.
5537
5538         (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
5539
5540 2008-05-17  Pedro Alves  <pedro@codesourcery.com>
5541
5542         * remote.c (init_extended_remote_ops): Fix typo.
5543
5544 2008-05-16  Pedro Alves  <pedro@codesourcery.com>
5545
5546         * NEWS: Mention new DICOS x86 target configuration.
5547
5548 2008-05-16  Pedro Alves  <pedro@codesourcery.com>
5549             Ulrich Weigand  <uweigand@de.ibm.com>
5550
5551         * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
5552         * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
5553
5554         * symtab.c (fixup_section): Remove prototype.  Add ADDR parameter;
5555         use it instead of ginfo->value.address.  Look up minimal symbol by
5556         address and name.  Assume OBJFILE is non-NULL.
5557         (fixup_symbol_section): Ensure we always have an objfile to look
5558         into.  Extract and pass to fixup_section the symbol's address that
5559         will match the minimal symbol's address.
5560         (fixup_psymbol_section): Likewise.
5561
5562         (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
5563         overlays and the addrmap returned the wrong section.
5564
5565         * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
5566         calling fixup_symbol_section.
5567
5568 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
5569
5570         * minsyms.c: Include "target.h".
5571         (find_solib_trampoline_target): Handle minimal symbols pointing
5572         to function descriptors as well.
5573         * Makefile.in (minsyms.o): Update dependencies.
5574
5575         * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
5576         (ppc64_standard_linkage1): ... this.  Fix optional instructions.
5577         (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
5578         (PPC64_STANDARD_LINKAGE1_LEN): ... this.
5579         (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
5580         (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
5581         (ppc64_standard_linkage_target): Rename to ...
5582         (ppc64_standard_linkage1_target): ... this.
5583         (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
5584         (ppc64_skip_trampoline_code): Support three variants of standard
5585         linkage stubs.  Call find_solib_trampoline_target to handle
5586         glink stubs.
5587
5588 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
5589
5590         * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
5591         ppc64_sysv_abi_adjust_breakpoint_address.
5592         * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5593         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5594
5595 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
5596
5597         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
5598         (ppc_linux_init_abi): Install find_solib_trampoline_target instead
5599         of ppc_linux_skip_trampoline_code.
5600
5601 2008-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
5602
5603         * gdbarch.sh: Delete dwarf_reg_to_regnum.
5604         * gdbarch.c, gdbarch.h: Regenerated.
5605         * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
5606         hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
5607         s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
5608
5609 2008-05-15  Pedro Alves  <pedro@codesourcery.com>
5610
5611         * linux-nat.c (trap_ptid): Delete.
5612         (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
5613         Adjust.
5614         * linux-thread-db.c (thread_db_wait): Adjust.
5615
5616 2008-05-15  Joel Brobecker  <brobecker@adacore.com>
5617
5618         * linespec.c (decode_line_1): Fix a couple of comments.
5619
5620 2008-05-15  Alan Modra  <amodra@bigpond.net.au>
5621
5622         * dbxread.c: Formatting.
5623         (INTERNALIZE_SYMBOL): Init n_other.
5624         (set_namestring): Take pointer to nlist arg rather than struct
5625         copy.  Update all callers.
5626
5627 2008-05-15  Andreas Schwab  <schwab@suse.de>
5628
5629         * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
5630         (dwarf2read.o): Add $(addrmap_h).
5631
5632 2008-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
5633
5634         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
5635         (ppc64_linux_convert_from_func_ptr_addr): ... to this.  No longer try
5636         to handle ppc32 PLT entries.
5637         (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
5638         only on ppc64.
5639
5640 2008-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5641
5642         * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
5643         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
5644         lookup_minimal_symbol_by_pc_section.  Prefer trampolines if requested.
5645         (lookup_minimal_symbol_by_pc_section): Use
5646         lookup_minimal_symbol_by_pc_section_1.
5647         (lookup_solib_trampoline_symbol_by_pc): Likewise.
5648
5649 2008-05-13  Joel Brobecker  <brobecker@adacore.com>
5650
5651         * findcmd.c: Add #include "gdb_stdint.h".
5652         * Makefile.in (findcmd.o): Update dependencies.
5653
5654 2008-05-11  David S. Miller  <davem@davemloft.net>
5655
5656         * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
5657         long double size override, Linux does use 128-bit now.
5658
5659         * sparc-linux-tdep.c (PSR_SYSCALL): Define.
5660         (sparc_linux_write_pc): New function.
5661         (sparc32_linux_init_abi): Register it.
5662         * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
5663         (sparc64_linux_write_pc): New function.
5664         (sparc64_linux_init_abi): Register it.
5665
5666         * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
5667         dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
5668
5669 2008-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5670
5671         * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
5672         and info.tdep_info before calling gdbarch_init_osabi.
5673
5674 2008-05-09  Joel Brobecker  <brobecker@adacore.com>
5675
5676         * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
5677         the type of the right hand side of the assignment to the type
5678         of the left hand side if the left hand side is a convenience
5679         variable.
5680
5681 2008-05-09  Ulrich Weigand  <uweigand@de.ibm.com>
5682
5683         * NEWS: Mention gdbserver bi-arch capability.
5684
5685 2008-05-09  Doug Evans  <dje@google.com>
5686
5687         New "find" command.
5688         * NEWS: Document find command and qSearch:memory packet.
5689         * Makefile.in (SFILES): Add findcmd.c.
5690         (COMMON_OBJS): Add findcmd.o.
5691         (findcmd.o): New rule.
5692         * findcmd.c: New file.
5693         * target.h (target_ops): New member to_search_memory.
5694         (simple_search_memory): Declare.
5695         (target_search_memory): Declare.
5696         * target.c (simple_search_memory): New fn.
5697         (target_search_memory): New fn.
5698         * remote.c (PACKET_qSearch_memory): New packet kind.
5699         (remote_search_memory): New fn.
5700         (init_remote_ops): Init to_search_memory.
5701         (init_extended_remote_ops): Ditto.
5702         (_initialize_remote): Add qSearch:memory packet config command.
5703
5704 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
5705
5706         * thread.c (_initialize_thread): Don't use commas and periods in
5707         first line of doc string of "set/show print thread-events".
5708
5709 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
5710
5711         * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
5712         Update for unwinder changes.
5713
5714 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
5715
5716         * frame.c (get_frame_base_address, get_frame_locals_address)
5717         (get_frame_args_address): Pass the correct frame when calling
5718         frame_base_find_by_frame.
5719
5720 2008-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
5721
5722         * remote.c (extended_remote_attach_1): Call target_find_description.
5723
5724 2008-05-08  Daniel Jacobowitz  <dan@codesourcery.com>
5725
5726         * remote.c (extended_remote_create_inferior_1): Clean up
5727         before marking the target running.
5728
5729 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
5730
5731         * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
5732         changes.
5733
5734 2008-05-07  Joel Brobecker  <brobecker@adacore.com>
5735
5736         * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
5737         sparc64-sol2-tdep.c: Update for unwinder changes.
5738
5739 2008-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
5740
5741         * cp-support.c (mangled_name_to_comp): Initialize storage.
5742         (unqualified_name_from_comp): Likewise.
5743
5744 2008-05-07  Jie Zhang  <jie.zhang@analog.com>
5745
5746         * remote.c (remote_insert_breakpoint): Call get_remote_state
5747         after gdbarch_breakpoint_from_pc is called.
5748         (remote_insert_hw_breakpoint): Likewise.
5749
5750 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
5751
5752         * valprint.c (val_print): Add new language parameter and use it
5753         instead of using the current_language. Update calls to val_print
5754         throughout.
5755         (common_val_print): Add new langauge parameter and pass it to
5756         val_print.
5757         * value.h (struct language_defn): Add opaque declaration.
5758         (val_print, common_val_print): Update declarations.
5759         * stack.c (print_frame_args): Update call to common_val_print
5760         using the appropriate language.
5761         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5762         * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
5763         mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
5764         scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
5765         #include "language.h" if necessary.
5766         Update calls to val_print and common_val_print.
5767         * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
5768         Update dependencies.
5769
5770 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
5771
5772         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
5773         pointing inside a non-executable section as function descriptors.
5774
5775 2008-05-06  Pedro Alves  <pedro@codesourcery.com>
5776
5777         * inf-loop.c (inferior_event_handler): Run all continuations and
5778         print any language change before running the breakpoint commands.
5779
5780 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
5781
5782         * frame-unwind.c (frame_unwind_got_bytes): New function.
5783         * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
5784         * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
5785         for unwinder changes.
5786
5787 2008-05-05  Doug Evans  <dje@google.com>
5788
5789         * NEWS: Mention new /m modifier for disassemble command.
5790         * cli/cli-cmds.c (print_disassembly): New function.
5791         (disassemble_current_function): New function
5792         (disassemble_command): Recognize /m modifier, print mixed
5793         source+assembly.
5794         (init_cli_cmds): Update disassemble help text.
5795
5796 2008-05-05  Maxim Grigoriev  <maxim2405@gmail.com>
5797
5798         * xtensa-tdep.c: Update for unwinder changes.
5799
5800 2008-05-05  Andreas Schwab  <schwab@suse.de>
5801
5802         Update m68k port for unwinder changes.
5803         * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
5804         (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
5805         (m68k_frame_unwind): Use default_frame_sniffer.
5806         (m68k_frame_sniffer): Remove.
5807         (m68k_frame_base_address): Expect this_frame.
5808         (m68k_dummy_id): Renamed from m68k_unwind_dummy_id.  Expect
5809         this_frame.
5810         (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
5811         dwarf2_append_unwinders, and frame_unwind_append_unwinder.
5812         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
5813         parameter instead of pc value.
5814         (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
5815         Expect this_frame.
5816         (m68k_linux_sigtramp_frame_this_id)
5817         (m68k_linux_sigtramp_frame_prev_register)
5818         (m68k_linux_sigtramp_frame_sniffer): Update signature.
5819         (m68k_linux_sigtramp_frame_unwind): Use
5820         m68k_linux_sigtramp_frame_sniffer.
5821         (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
5822
5823         * m68klinux-nat.c (store_register): Fix typo.
5824
5825 2008-05-05  Pedro Alves  <pedro@codesourcery.com>
5826
5827         * infcmd.c (step_1): Put thread id on the stack to avoid possible
5828         NULL dereferencing.
5829
5830 2008-05-05  Luis Machado  <luisgpm@br.ibm.com>
5831
5832         * symfile.c (reread_symbols): Update objfile's entry point.
5833
5834 2008-05-05  Aleksandar Ristovski  <aristovski@qnx.com>
5835             Joel Brobecker  <brobecker@adacore.com>
5836
5837         * ada-lang.c: Update throughout to use symbol_matches_domain
5838         instead of matching the symbol domain explictly.
5839         * dwarf2read.c (add_partial_symbol): Do not add new psym for
5840         STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5841         class as typedefs. See lookup_partial_symbol function.
5842         (new_symbol): Similar to add_partial_symbol, do not create
5843         symbol for the typedef. See lookup_block_symbol.
5844         * symtab.c (symbol_matches_domain): New function, takes care
5845         of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
5846         (lookup_partial_symbol): Use symbol_matches_domain to see if the
5847         found psym domain matches the given domain.
5848         (lookup_block_symbol): Likewise.
5849
5850 2008-05-05  Vladimir Prus  <vladimir@codesourcery.com>
5851
5852         * top.c (command_line_handler_continuation): Remove.
5853         (execute_command): Do not install the above.
5854
5855 2008-05-05  Vladimir Prus  <vladimir@codesourcery.com>
5856
5857         * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
5858         and catch all exceptions from it.
5859         * top.c (command_line_handler_continuation): Don't
5860         call bpstat_do_action here.
5861
5862 2008-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
5863
5864         * dwarf2read.c (struct dwarf2_cu): Add type_hash.
5865         (struct die_info): Remove type.
5866         (read_type_die, read_typedef, read_base_type, read_subrange_type)
5867         (read_structure_type, read_enumeration_type, read_array_type)
5868         (read_tag_pointer_type, read_tag_ptr_to_member_type)
5869         (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
5870         (read_tag_string_type, read_subroutine_type, read_set_type)
5871         (read_unspecified_type): Delete prototypes.  Remove check for
5872         already-loaded type.  Return the new type.
5873         (set_die_type): Return the new type.
5874         (reset_die_and_siblings_types): Delete.
5875         (load_comp_unit, load_full_comp_unit): Set type_hash.
5876         (process_queue): Remove call to reset_die_and_siblings_types.
5877         (process_die): Do not read most types here.  Use read_type_die
5878         for others.
5879         (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
5880         (quirk_gcc_member_function_pointer): Return the new type.
5881         (process_structure_scope, process_enumeration_scope): Use
5882         get_die_type and read the DIE's type.
5883         (read_full_die): Do not initialize die->type.
5884         (tag_type_to_type): Use read_type_die.
5885         (read_type_die): Check for already defined types.  Return the
5886         type.
5887         (determine_prefix): Use get_die_type.
5888         (set_die_type): Return the type.
5889         (get_die_type): Take a CU argument.  Check for no type_hash.
5890
5891 2008-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
5892
5893         * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
5894         locals.
5895
5896 2008-05-04  Pedro Alves  <pedro@codesourcery.com>
5897
5898         * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
5899         and bp_longjmp_resume breakpoints.
5900         (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
5901         meaningful.
5902         (create_longjmp_breakpoint): Don't create bp_longjmp_resume
5903         breakpoints.  Create bp_longjmp breakpoints as momentary
5904         breakpoints.
5905         (enable_longjmp_breakpoint): Delete.
5906         (set_longjmp_breakpoint): New.
5907         (disable_longjmp_breakpoint): Delete.
5908         (delete_longjmp_breakpoint): New.
5909         (set_longjmp_resume_breakpoint): Delete.
5910         (set_momentary_breakpoint_at_pc): New.
5911         (breakpoint_re_set_one): Don't delete bp_longjmp and
5912         bp_longjmp_resume breakpoints.
5913         (breakpoint_re_set): Don't create longjmp and longjmp-resume
5914         breakpoints.
5915
5916         * infrun.c (step_resume_breakpoint): Add comment.
5917         (struct execution_control_state): Delete handling_longjmp member.
5918         (init_execution_control_state). Don't clear handling_longjmp.
5919         (context_switch): Don't context switch handling_longjmp.
5920         (handle_inferior_event): If handling a bp_longjmp breakpoint,
5921         create a bp_longjmp_resume breakpoint, and set it as current
5922         step_resume_breakpoint, then step over the longjmp breakpoint.  If
5923         handling a bp_longjmp_resume breakpoint, don't delete the longjmp
5924         breakpoint, delete the longjmp-resume breakpoint, and stop
5925         stepping.
5926         (currently_stepping): Remove handling_longjmp from expression.
5927         (insert_step_resume_breakpoint_at_sal): Update comment.
5928         (insert_longjmp_resume_breakpoint): New.
5929
5930         * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
5931         (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
5932         declarations.
5933         (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
5934         (set_longjmp_resume_breakpoint): Delete declaration.
5935
5936         * gdbthread.h (save_infrun_state): Remove handling_longjmp
5937         parameter.
5938         (load_infrun_state): Delete *handling_longjmp parameter.
5939         * thread.c (save_infrun_state): Remove handling_longjmp parameter.
5940         Update body.
5941         (load_infrun_state): Delete *handling_longjmp parameter.  Update
5942         body.
5943
5944         * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
5945         (delete_longjmp_breakpoint_cleanup): New.
5946         (step_1): Call set_longjmp_breakpoint instead of
5947         enable_longjmp_breakpoint.  Use delete_longjmp_breakpoint_cleanup
5948         instead of disable_longjmp_breakpoint_cleanup when making cleanup.
5949         (step_1_continuation): Pass thread id in the continuation args to
5950         step_once.
5951         (step_once): Add thread parameter.  Pass thread id the the
5952         continuation.
5953
5954 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5955
5956         Set CU BASE_ADDRESS already from partial DIEs.
5957         * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
5958         BASE_ADDRESS_TYPE.  Set these variables from DW_AT_LOW_PC and
5959         DW_AT_ENTRY_PC.  Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
5960         from these variables if it was still unset.
5961
5962         * Makefile.in: Update dependencies.
5963         * dwarf2read.c: Include "addrmap.h"
5964         (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
5965         (dwarf2_ranges_read): New prototype.
5966         (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
5967         Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
5968         HAS_RANGES_OFFSET, otherwise add there the contiguous range.
5969         (dwarf2_ranges_read): New parameter RANGES_PST, update the function
5970         comment for it.  Add the found ranges to RANGES_PST.  New variable
5971         BASEADDR, initialize it the common way.
5972         (dwarf2_get_pc_bounds): Update the caller for the new parameter.
5973         (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
5974         HAS_RANGES_OFFSET for the later processing.
5975         * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
5976         * symtab.c: Include "addrmap.h"
5977         (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
5978         Move the psymtab locator into ...
5979         (find_pc_sect_psymtab_closer): ... a new function.
5980
5981 2008-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
5982
5983         * arch-utils.c (gdbarch_update_p): Use default values for
5984         info.abfd and info.target_desc if they are NULL.
5985         (gdbarch_from_bfd): Remove assertion.
5986         (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
5987         using the current target description.
5988         (gdbarch_info_fill): Do not use default values for info->abfd
5989         and info->target_desc.
5990
5991 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5992
5993         * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
5994
5995 2008-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
5996
5997         * inferior.h (read_pc_pid, write_pc_pid): Remove.
5998         * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
5999
6000         * regcache.c (read_pc_pid): Remove, replace by ...
6001         (regcache_read_pc): ... this function.
6002         (write_pc_pid): Remove, replace by ...
6003         (regcache_write_pc): ... this function.
6004         (read_pc, write_pc): Update.
6005
6006         * infrun.c (displaced_step_prepare): Replace read_pc_pid and
6007         write_pc_pid by regcache_read_pc and regcache_write_pc.
6008         (displaced_step_fixup): Likewise.
6009         (resume): Likewise.  Use regcache arch instead of current_gdbarch.
6010         (prepare_to_proceed): Likewise.
6011         (proceed): Likewise.
6012         (adjust_pc_after_break): Likewise.
6013         (handle_inferior_event): Likewise.
6014
6015         * linux-nat.c (cancel_breakpoint): Likewise.
6016         * linux-thread-db.c (check_event): Likewise.
6017         * aix-thread.c (aix_thread_wait): Likewise.
6018         * tracepoint.c (trace_dump_command): Likewise.
6019
6020 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6021
6022         * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
6023         SYMBOL_LOCATION_BATON.
6024
6025 2008-05-04  Vladimir Prus  <vladimir@codesourcery.com>
6026
6027         * target.h (struct target_ops): New field to_auxv_parse.
6028         * auxv.c (default_auxv_parse): New, renamed from previous
6029         target_auxv_parse.
6030         (target_auxv_parse): Try to call target method.  Fallback to
6031         default_auxv_parse if not found.
6032         * procfs.c (procfs_auxv_parse): New.
6033         (init_procfs_ops): On Solaris, in 64-bit mode, install
6034         procfs_auxv_parse.
6035
6036 2008-05-03  Adam Nemet  <anemet@caviumnetworks.com>
6037
6038         * symfile.c (add_symbol_file_command):  Use paddress rather than
6039         hex_string to print the address.
6040
6041 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6042
6043         * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
6044         return the null frame ID to terminate the backtrace.
6045
6046 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6047
6048         * rs6000-tdep.c: Do not include "rs6000-tdep.h".
6049         (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
6050         (SIG_FRAME_PC_OFFSET): Likewise.
6051         (SIG_FRAME_LR_OFFSET): Likewise.
6052         (SIG_FRAME_FP_OFFSET): Likewise.
6053         (rs6000_push_dummy_call): Likewise.
6054         (rs6000_return_value): Likewise.
6055         (rs6000_convert_from_func_ptr_addr): Likewise.
6056         (branch_dest, rs6000_software_single_step): Likewise.
6057         (deal_with_atomic_sequence): Rename to ...
6058         (ppc_deal_with_atomic_sequence): ... this.  Adapt all callers.
6059         Do not call branch_dest; inline required parts of that function.
6060         (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
6061         with SYMBOL_LINKAGE_NAME.
6062         (struct reg, regsize): Delete.
6063         (read_memory_addr): Delete; inline into callers.
6064         (rs6000_skip_prologue): Move after skip_prologue.
6065         (skip_prologue): Remove prototype.
6066         (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
6067         initialization as if this variable were true.  Do not install
6068         ppc64_sysv_abi_adjust_breakpoint_address.
6069
6070         * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
6071         "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
6072         and "breakpoint.h".
6073         (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
6074         (SIG_FRAME_PC_OFFSET): Likewise.
6075         (SIG_FRAME_LR_OFFSET): Likewise.
6076         (SIG_FRAME_FP_OFFSET): Likewise.
6077         (rs6000_push_dummy_call): Likewise.
6078         (rs6000_return_value): Likewise.
6079         (rs6000_convert_from_func_ptr_addr): Likewise.
6080         (branch_dest, rs6000_software_single_step): Likewise.  Replace
6081         tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
6082         (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
6083         rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
6084         Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
6085         Set tdep->lr_frame_offset.  Do not set tdep->text_segment_base.
6086
6087         * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
6088         (AIX_TEXT_SEGMENT_BASE): New macro.
6089         * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
6090         by AIX_TEXT_SEGMENT_BASE.
6091
6092         * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
6093         (struct gdbarch_tdep): Remove text_segment_base member.
6094         * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
6095         ppc64_sysv_abi_adjust_breakpoint_address.
6096
6097         * Makefile.in (rs6000-tdep.o): Update dependencies.
6098         (rs6000-aix-tdep.o): Likewise.
6099
6100 2008-05-03  Luis Machado  <luisgpm@br.ibm.com>
6101             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6102
6103         * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
6104         * doublest.c (convert_typed_floating): Fix typo in comment.
6105         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6106         * frame-unwind.h (frame_sniffer_ftype): Likewise.
6107         * frame.c (frame_unwind_address_in_block): Likewise.
6108         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
6109         * symtab.h (struct symbol): Likewise.
6110         * tramp-frame.h (struct trad_frame_cache): Likewise.
6111         * value.c (allocate_repeat_value): Likewise.
6112
6113 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6114
6115         * infrun.c (handle_inferior_event): Do not insert breakpoints at
6116         TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
6117
6118 2008-05-03  Pedro Alves  <pedro@codesourcery.com>
6119
6120         * parse.c (parse_exp_in_context): Don't override
6121         expression_context_pc if get_selected_block returned a valid
6122         block.
6123
6124 2008-05-03  Daniel Jacobowitz  <dan@codesourcery.com>
6125
6126         * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
6127         * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
6128         * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
6129         Delete.
6130         * c-typeprint.c (c_type_print_base): Delete handling of template
6131         instantiations.
6132         * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
6133         (METHOD_PTR_TO_VOFFSET): Delete.
6134         * defs.h (QUIT_FIXME): Delete.
6135         * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
6136         (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
6137         * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
6138         ninstantiations, and instantiations.
6139         (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
6140         (TYPE_FN_FIELD_INLINED): Delete.
6141         * srec.h (SREC_BINARY): Delete.
6142         * symtab.c (symbol_init_demangled_name): Delete.
6143         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
6144         (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
6145         (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
6146         (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
6147         (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
6148         (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
6149         * target.h (enum thread_control_capabilities): Delete tc_switch.
6150         (target_can_switch_threads): Delete.
6151
6152 2008-05-03  Daniel Jacobowitz  <dan@codesourcery.com>
6153
6154         * Makefile.in (objfiles.o): Update.
6155         * exec.c (exec_set_section_address): Support p->addr != 0.
6156         * objfiles.c (objfile_relocate): Update exec_ops section
6157         addresses.
6158         * symfile.c (place_section): Move exec_set_section_address call...
6159         (default_symfile_offsets): ...to here.
6160
6161 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6162
6163         * Makefile.in (ppc_linux_tdep_h): New macro.
6164         (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
6165         (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
6166         (powerpc_e500l_c): Likewise.
6167         (ppc-linux-nat.o): Update dependencies.
6168         (ppc-linux-tdep.o): Update dependencies.
6169         (rs6000-tdep.o): Update dependencies.
6170
6171         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
6172         (ppc_linux_svr4_fetch_link_map_offsets): Remove.
6173         (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
6174         (ppc_supply_reg, ppc_collect_reg): Add prototypes.
6175         (tdesc_powerpc_e500): Remove.
6176
6177         * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
6178         and "features/rs6000/powerpc-altivec64.c".
6179         (ppc_supply_reg, ppc_collect_reg): Make global.
6180         (variants): Use tdesc_powerpc_32 for "powerpc" and
6181         tdesc_powerpc_altivec64 for "powerpc64".
6182         (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
6183
6184         * ppc-linux-tdep.h: New file.
6185
6186         * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
6187         Include "features/rs6000/powerpc-32l.c".
6188         Include "features/rs6000/powerpc-altivec32l.c".
6189         Include "features/rs6000/powerpc-64l.c".
6190         Include "features/rs6000/powerpc-altivec64l.c".
6191         Include "features/rs6000/powerpc-e500l.c".
6192         (ppc_linux_supply_gregset): New function.
6193         (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
6194         (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
6195         (ppc64_linux_gregset): Likewise.
6196         (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
6197         (ppc_linux_trap_reg_p): New function.
6198         (ppc_linux_write_pc): New function.
6199         (ppc_linux_core_read_description): New function.
6200         (ppc_linux_init_abi): Install ppc_linux_write_pc and
6201         ppc_linux_core_read_description.  Install orig_r3 and trap
6202         registers if present in the target description.
6203         (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
6204
6205         * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
6206         (PT_ORIG_R3, PT_TRAP): Define if necessary.
6207         (ppc_register_u_addr): Handle orig_r3 and trap registers.
6208         (fetch_ppc_registers): Likewise.
6209         (store_ppc_registers): Likewise.
6210         (store_register): Likewise.
6211         (ppc_linux_read_description): Check whether AltiVec is supported.
6212         Check whether inferior is 32-bit or 64-bit.  Return the appropriate
6213         Linux target description.
6214
6215         * features/Makefile (WHICH): Use rs6000/powerpc-32l and
6216         rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
6217         Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
6218         of rs6000/powerpc-64.  Use rs6000/powerpc-e500l instead of
6219         rs6000/powerpc-e500.  Update -expedite variables accordingly.
6220
6221         * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
6222         * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
6223         * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
6224         * features/rs6000/powerpc-e500.c: Regenerate.
6225         * features/rs6000/powerpc-32.c: Regenerate.
6226         * features/rs6000/powerpc-64.c: Regenerate.
6227
6228         * features/rs6000/power-linux.xml: New file.
6229         * features/rs6000/power64-linux.xml: New file.
6230         * features/rs6000/powerpc-32l.xml: New file.
6231         * features/rs6000/powerpc-altivec32l.xml: New file.
6232         * features/rs6000/powerpc-64l.xml: New file.
6233         * features/rs6000/powerpc-altivec64l.xml: New file.
6234         * features/rs6000/powerpc-e500l.xml: New file.
6235         * features/rs6000/powerpc-32l.c: New (generated) file.
6236         * features/rs6000/powerpc-altivec32l.c: New (generated) file.
6237         * features/rs6000/powerpc-64l.c: New (generated) file.
6238         * features/rs6000/powerpc-altivec64l.c: New (generated) file.
6239         * features/rs6000/powerpc-e500l.xml: New (generated) file.
6240
6241         * regformats/reg-ppc.dat: Remove.
6242         * regformats/reg-ppc64.dat: Remove.
6243         * regformats/rs6000/powerpc-32.dat: Remove.
6244         * regformats/rs6000/powerpc-64.dat: Remove.
6245         * regformats/rs6000/powerpc-e500.dat: Remove.
6246         * regformats/rs6000/powerpc-32l.dat: New (generated) file.
6247         * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
6248         * regformats/rs6000/powerpc-64l.dat: New (generated) file.
6249         * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
6250         * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
6251
6252 2008-05-03  Pedro Alves  <pedro@codesourcery.com>
6253
6254         * thread.c (delete_thread): Call observer_notify_thread_exit.
6255         * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
6256         thread_exit observer.
6257         (mi_thread_exit): New.
6258
6259 2008-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6260
6261         * breakpoint.c (create_exception_catchpoint): Remove prototype
6262         for already deleted function.
6263         * breakpoint.h (ep_is_exception_catchpoint): Likewise.
6264         * frame.h (show_stack_frame): Remove prototype.
6265         * stack.c (show_stack_frame): Remove empty, unused function.
6266         * source.c (symtab_to_fullname, print_source_lines): Small fix
6267         in comment.
6268         * value.c (show_values): Update comments to mention "show values"
6269         command instead of "info history".
6270
6271 2008-05-02  Ulrich Weigand  <uweigand@de.ibm.com>
6272
6273         * linespec.c: Include "target.h".
6274         (minsym_found): Handle minimal symbols pointing to function
6275         descriptors.  Use find_function_start_pc.
6276         * minsyms.c (msymbol_objfile): New function.
6277         * parse.c (write_exp_msymbol): Handle minimal symbols pointing
6278         to function descriptors.
6279         * symtab.c (fixup_section): Only use minimal symbol at the same
6280         address to determine section of a symbol.
6281         (find_function_start_pc): New function.
6282         (find_function_start_sal): Use it.
6283         * symtab.h (msymbol_objfile): Add prototype.
6284         (find_function_start_pc): Likewise.
6285         * value.c: Include "objfiles.h".
6286         (value_fn_field): Handle minimal symbols pointing to function
6287         descriptors.
6288         * Makefile.in (linespec.o): Update dependencies.
6289         (value.o): Likewise.
6290
6291 2008-05-02  Joel Brobecker  <brobecker@adacore.com>
6292
6293         * ada-lang.c (unwrap_value): Handle the case where the "F" field
6294         inside a PAD type is a bitfield.
6295
6296 2008-05-02  Ulrich Weigand  <uweigand@de.ibm.com>
6297
6298         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
6299         TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6300         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6301         Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
6302         Allow typedefs when checking for function pointer arguments.
6303         Right-align small structs passed on the stack.
6304         (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
6305         TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6306         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6307
6308 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6309
6310         * Makefile.in (arm-tdep.o): Update.
6311         * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
6312         (struct arm_per_objfile, arm_compare_mapping_symbols): New.
6313         (arm_pc_is_thumb): Use mapping symbols.
6314         (arm_objfile_data_cleanup, arm_record_special_symbol): New.
6315         (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
6316         (_initialize_arm_tdep): Initialize arm_objfile_data_key.
6317         * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
6318         * gdbarch.sh: Add record_special_symbol.
6319         * gdbarch.c, gdbarch.h: Regenerated.
6320         * objfiles.c (struct objfile_data): Add cleanup member.
6321         (register_objfile_data_with_cleanup): New function, from
6322         register_objfile_data.
6323         (register_objfile_data): Use it.
6324         (objfile_free_data): Call clear_objfile_data.
6325         (clear_objfile_data): Call cleanup functions.
6326         * objfiles.h (register_objfile_data_with_cleanup): Declare.
6327
6328 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6329
6330         * objfiles.c (init_entry_point_info): Handle shared libraries.
6331
6332 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6333
6334         * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
6335         lowest_pc.
6336
6337 2008-05-02  Jim Blandy  <jimb@codesourcery.com>
6338             Pedro Alves  <pedro@codesourcery.com>
6339
6340         Implement displaced stepping.
6341
6342         * gdbarch.sh (max_insn_length): New 'variable'.
6343         (displaced_step_copy, displaced_step_fixup)
6344         (displaced_step_free_closure, displaced_step_location): New
6345         functions.
6346         (struct displaced_step_closure): Add forward declaration.
6347         * gdbarch.c, gdbarch.h: Regenerated.
6348
6349         * arch-utils.c: #include "objfiles.h".
6350         (simple_displaced_step_copy_insn)
6351         (simple_displaced_step_free_closure)
6352         (displaced_step_at_entry_point): New functions.
6353         * arch-utils.h (simple_displaced_step_copy_insn)
6354         (simple_displaced_step_free_closure)
6355         (displaced_step_at_entry_point): New prototypes.
6356
6357         * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
6358         (I386_MAX_MATCHED_INSN_LEN): ... this.
6359         (i386_absolute_jmp_p, i386_absolute_call_p)
6360         (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
6361         (i386_displaced_step_fixup): New functions.
6362         (struct i386_insn, i386_match_insn): Update.
6363         (i386_gdbarch_init): Set gdbarch_max_insn_length.
6364         * i386-tdep.h (I386_MAX_INSN_LEN): New.
6365         (i386_displaced_step_fixup): New prototype.
6366         * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
6367         Register gdbarch_displaced_step_copy,
6368         gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
6369         and gdbarch_displaced_step_location functions.
6370
6371         * infrun.c (debug_displaced): New variable.
6372         (show_debug_displaced): New function.
6373         (struct displaced_step_request): New struct.
6374         (displaced_step_request_queue, displaced_step_ptid)
6375         (displaced_step_gdbarch, displaced_step_closure)
6376         (displaced_step_original, displaced_step_copy)
6377         (displaced_step_saved_copy, can_use_displaced_stepping): New
6378         variables.
6379         (show_can_use_displaced_stepping, use_displaced_stepping)
6380         (displaced_step_clear, cleanup_displaced_step_closure)
6381         (displaced_step_dump_bytes, displaced_step_prepare)
6382         (displaced_step_clear_cleanup, write_memory_ptid)
6383         (displaced_step_fixup): New functions.
6384         (resume): Call displaced_step_prepare.
6385         (proceed): Call read_pc once, and remember the value.  If using
6386         displaced stepping, don't remove breakpoints.
6387         (handle_inferior_event): Call displaced_step_fixup.  Add some
6388         debugging output.  When we try to step over a breakpoint, but get
6389         a signal to deliver to the thread instead, ensure the step-resume
6390         breakpoint is actually inserted.  If a thread hop is needed, and
6391         displaced stepping is enabled, don't remove breakpoints.
6392         (init_wait_for_inferior): Call displaced_step_clear.
6393         (_initialize_infrun): Add "set debug displaced" command.  Add
6394         "maint set can-use-displaced-stepping" command.  Clear
6395         displaced_step_ptid.
6396         * inferior.h (debug_displaced): Declare variable.
6397         (displaced_step_dump_bytes): Declare function.
6398
6399         * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
6400         dependencies.
6401
6402 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6403
6404         * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
6405         (arm_force_mode_string, arm_show_fallback_mode)
6406         (arm_show_force_mode): New.
6407         (arm_pc_is_thumb): Honor fallback-mode and force-mode.  Use
6408         arm_frame_is_thumb.
6409         (_initialize_arm_tdep): Add "set arm fallback-mode"
6410         and "set arm force-mode".
6411         * NEWS: Document new commands.
6412
6413 2008-05-02  Andrew Stubbs  <andrew.stubbs@st.com>
6414
6415         * main.h (batch_silent): Declare.
6416         * event-top.c: Include main.h.
6417         (gdb_setup_readline): Remove extern batch_silent declaration.
6418         * infrun.c (normal_stop): Don't print source location when running in
6419         --batch-silent mode.
6420         * Makefile.in (event-top.o): Add main.h dependency.
6421
6422 2008-05-02  Andreas Schwab  <schwab@suse.de>
6423
6424         * target.h (struct target_ops): Add
6425         to_watchpoint_addr_within_range.
6426         (target_watchpoint_addr_within_range): New function.
6427         * target.c (update_current_target): Inherit
6428         to_watchpoint_addr_within_range, defaulting to
6429         default_watchpoint_addr_within_range.
6430         (default_watchpoint_addr_within_range): New function.
6431         (debug_to_watchpoint_addr_within_range): New function.
6432         (setup_target_debug): Set to_watchpoint_addr_within_range.
6433         * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
6434         New function.
6435         (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
6436         * breakpoint.c (watchpoints_triggered): Use
6437         target_watchpoint_addr_within_range.
6438
6439 2008-05-01  Pedro Alves  <pedro@codesourcery.com>
6440
6441         * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
6442         (i[34567]86-*-dicos*, x86_64-*-dicos*):
6443         Set gdb_osabi to GDB_OSABI_DICOS.
6444
6445         * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
6446         * osabi.c (gdb_osabi_name): Add "DICOS".
6447
6448         * i386-dicos-tdep.c: New file.
6449
6450         * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
6451         (ALLDEPFILES): Add i386-dicos-tdep.c.
6452         (i386-dicos-tdep.o): New rule.
6453
6454 2008-05-01  Pedro Alves  <pedro@codesourcery.com>
6455
6456         * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
6457         and register the fork's PTID as a thread.
6458
6459 2008-05-01  Aleksandar Ristovski  <aristovski@qnx.com>
6460
6461         PR gdb/1665
6462         * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
6463         assign its value to the breakpoint created.
6464         (create_breakpoints): Add breakpoint_ops argument and pass it
6465         to create_breakpoint call.
6466         (break_command_really): Add breakpoint_ops argument and pass/assign
6467         appropriately.
6468         (break_command_1): Pass NULL as ops argument.
6469         (set_breakpoint): Pass NULL as ops argument.
6470         (print_one_exception_catchpoint): Print <PENDING> if no loc available.
6471         (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
6472         catch and throw catchpoints.
6473
6474 2008-05-01  Aleksandar Ristovski  <aristovski@qnx.com>
6475
6476         PR gdb/2343
6477         * corelow.c (core_open): Use gdbarch_target_signal_from_host to
6478         translate signal numeric value from the target to GDB's enum
6479         target_signal.
6480         * gdbarch.c, gdbarch.h: Regenerated.
6481         * gdbarch.sh: Added two new functions target_signal_from_host and
6482         target_signal_to_host.
6483         * target.h (default_target_signal_from_host,
6484         default_target_signal_to_host): New functions - declarations.
6485         * signals/signals.c (struct gdbarch): New declaration.
6486         (default_target_signal_to_host, default_target_signal_from_host): New
6487         functions.
6488
6489 2008-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
6490             Pedro Alves  <pedro@codesourcery.com>
6491
6492         Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
6493         Johnston <jjohnstn@redhat.com>.
6494
6495         * NEWS: Mention attach to stopped process fix.
6496         * infcmd.c (detach_command, disconnect_command): Discard the thread
6497         list.
6498         * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
6499         attaching.  Use signal_stop_state.
6500         (signal_stop_state): Check stop_soon.
6501         * linux-nat.c (kill_lwp): Declare earlier.
6502         (pid_is_stopped, linux_nat_post_attach_wait): New.
6503         (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait.  Update
6504         comments.
6505         (linux_nat_attach): Use linux_nat_post_attach_wait.
6506         (detach_callback, linux_nat_detach): Improve handling for signalled
6507         processes.
6508         (linux_nat_pid_to_str): Always print out the LWP ID if it differs
6509         from the process ID.
6510         * Makefile.in (infcmd.o): Update.
6511
6512 2008-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
6513
6514         * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
6515         * arm-tdep.c (arm_frame_is_thumb): New.
6516         (arm_pc_is_thumb): Clarify comment.
6517         (thumb_analyze_prologue): Remove PC special case.
6518         (thumb_scan_prologue): Take a block_addr argument.  Use it for
6519         find_pc_partial_function.  Remove unused variables.
6520         (arm_scan_prologue): Use arm_frame_is_thumb.  Use the block address
6521         for find_pc_partial_function.  Remove PC special case.
6522         (arm_prologue_prev_register): Add special handling for PC and CPSR.
6523         (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
6524         (arm_get_next_pc): Use arm_frame_is_thumb.
6525         (arm_write_pc): Use CPSR_T instead of 0x20.
6526         (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
6527         * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
6528         (CPSR_T): Define.
6529         * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
6530         DWARF2_FRAME_REG_FN.
6531         * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
6532         DWARF2_FRAME_REG_FN.
6533         (struct dwarf2_frame_state_reg): Add FN to loc union.
6534
6535 2008-05-01  Nick Roberts  <nickrob@snap.net.nz>
6536
6537         * exec.c (print_section_info): Add missing '\n'.
6538
6539 2008-05-01  Vladimir Prus  <vladimir@codesourcery.com>
6540
6541         * thread.c (add_thread): Move observer call to ...
6542         (add_thread_silent): ... here.
6543
6544 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
6545
6546         * rs6000-tdep.c: Update for unwinder changes.
6547         * ppcobsd-tdep.c: Likewise.
6548
6549 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
6550
6551         * s390-tdep.c: Update for unwinder changes.
6552
6553 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
6554
6555         * spu-tdep.c: Update for unwinder changes.
6556
6557 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6558
6559         * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
6560         ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
6561         sparc64-linux-tdep.c: Update for unwinder changes.
6562
6563 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6564
6565         * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
6566         for unwinder changes.
6567         * mips-tdep.c: Likewise.
6568         (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
6569         raw one.
6570
6571 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6572
6573         * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
6574         unwinder changes.
6575
6576 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6577
6578         Update i386 and amd64 ports for unwinder changes.
6579
6580         * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
6581         (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
6582         (amd64_frame_unwind): Use default_frame_sniffer.
6583         (amd64_frame_sniffer): Delete.
6584         (amd64_sigtramp_frame_cache): Expect this_frame.
6585         (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
6586         (amd64_sigtramp_frame_sniffer): Update signature.
6587         (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
6588         (amd64_frame_base_address): Expect this_frame.
6589         (amd64_dummy_id): Renamed from amd64_unwind_dummy_id.  Expect
6590         this_frame.
6591         (amd64_init_abi): Use set_gdbarch_dummy_id and
6592         frame_unwind_append_unwinder.
6593         * i386-tdep.c (i386_frame_cache): Expect this_frame.
6594         (i386_frame_this_id, i386_frame_prev_register): Update signature.
6595         (i386_frame_unwind): Use default_frame_sniffer.
6596         (i386_frame_sniffer): Delete.
6597         (i386_sigtramp_frame_cache): Expect this_frame.
6598         (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
6599         (i386_sigtramp_frame_sniffer): Update signature.
6600         (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
6601         (i386_frame_base_address): Update signature.
6602         (i386_dummy_id): Rename from i386_unwind_dummy_id.  Expect this_frame.
6603         (i386_push_dummy_call): Update comment.
6604         (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
6605         Expect this_frame.
6606         (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
6607         and frame_unwind_append_unwinder.
6608         * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
6609         amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
6610         i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
6611         i386nbsd-tdep.c: Update for unwinder changes.
6612
6613 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6614
6615         * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
6616         (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
6617         this_frame.
6618         (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
6619         * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
6620         (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
6621         signature.
6622         * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
6623         this_frame.
6624         (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
6625         Update signature.
6626         * tramp-frame.h (struct tramp_frame): Update signature of init.
6627         * Makefile.in (trad-frame.o): Update.
6628
6629 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6630
6631         * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
6632         (execute_stack_op): Put this_frame in the baton.
6633         (execute_cfa_program): Take this_frame.
6634         (struct dwarf2_frame_ops): Update comment for signal_frame_p.
6635         (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
6636         (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
6637         (dwarf2_frame_this_id): Adjust to work on this_frame.
6638         (dwarf2_signal_frame_this_id): Delete.
6639         (dwarf2_frame_prev_register): Update signature.  Use new frame
6640         unwind methods.
6641         (dwarf2_frame_sniffer): Update signature.  Expect this_frame.
6642         (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
6643         dwarf2_frame_sniffer.
6644         (dwarf2_append_unwinders): New.
6645         (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
6646         this_frame.
6647         * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
6648         (sparc32_dwarf2_frame_init_reg): Expect this_frame.
6649         * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
6650         * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
6651         * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
6652         * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
6653         * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
6654         * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
6655         (dwarf2_append_unwinders): Declare.
6656         (dwarf2_frame_base_sniffer): Update declaration.
6657         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
6658         this_frame.
6659
6660 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6661
6662         Convert frame unwinders to use the current frame and
6663         "struct value".
6664
6665         * frame.c (frame_debug): Make global.
6666         (get_frame_id): Pass this frame to unwinder routines.
6667         (frame_pc_unwind): Remove unused unwind->prev_pc support.
6668         (do_frame_register_read): Do not discard the return value of
6669         frame_register_read.
6670         (frame_register_unwind): Remove debug messages.  Use
6671         frame_unwind_register_value.
6672         (frame_unwind_register_value, get_frame_register_value): New
6673         functions.
6674         (create_new_frame, get_frame_base_address, get_frame_locals_address)
6675         (get_frame_args_address, get_frame_type): Pass this frame to
6676         unwinder routines.
6677         (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
6678         functions.
6679         * frame.h: Update comments.
6680         (frame_debug, frame_unwind_register_value, get_frame_register_value)
6681         (frame_prepare_for_sniffer): Declare.
6682         * frame-unwind.h: Update comments and parameter names.
6683         (default_frame_sniffer): Declare.
6684         (frame_prev_register_ftype): Return a struct value *.
6685         (struct frame_unwind): Remove prev_pc member.
6686         (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
6687         (frame_unwind_append_unwinder, frame_unwind_got_optimized)
6688         (frame_unwind_got_register, frame_unwind_got_memory)
6689         (frame_unwind_got_constant, frame_unwind_got_address): Declare.
6690         * frame-base.h: Update comments and parameter names.
6691         * valops.c (value_fetch_lazy): Use get_frame_register_value.  Iterate
6692         if necessary.  Add debugging output.
6693         * sentinel-frame.c (sentinel_frame_prev_register)
6694         (sentinel_frame_this_id): Update for new signature.
6695         (sentinel_frame_prev_pc): Delete.
6696         (sentinel_frame_unwinder): Remove prev_pc.
6697         * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
6698         prev_pc.
6699         * libunwind-frame.c (libunwind_frame_unwind): Likewise.
6700         * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
6701         (frame_unwind_append_sniffer): Delete.
6702         (frame_unwind_append_unwinder): New function.
6703         (frame_unwind_find_by_frame): Take this frame.  Only use sniffers
6704         from unwinders.  Use frame_prepare_for_sniffer.
6705         (default_frame_sniffer, frame_unwind_got_optimized)
6706         (frame_unwind_got_register, frame_unwind_got_memory)
6707         (frame_unwind_got_constant, frame_unwind_got_address): New functions.
6708         * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
6709         (dummy_frame_prev_register, dummy_frame_this_id): Update for new
6710         signature.
6711         * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
6712         * gdbarch.c, gdbarch.c: Regenerated.
6713         * frame-base.c (default_frame_base_address)
6714         (default_frame_locals_address, default_frame_args_address): Update
6715         for new signature.
6716         (frame_base_find_by_frame): Pass this frame to unwinder routines.
6717         * infcall.c (call_function_by_hand): Update comments.
6718         * Makefile.in (frame-unwind.o): Update dependencies.
6719
6720 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6721
6722         * ada-lang.c (ada_value_primitive_packed_val): Only check
6723         value_lazy for memory lvals.
6724         * findvar.c (value_of_register_lazy): New function.
6725         (locate_var_value): Only check value_lazy for memory lvals.
6726         * valarith.c (value_subscripted_rvalue): Likewise.
6727         * valops.c (value_fetch_lazy): Handle both memory and register
6728         lvals.
6729         (search_struct_field, value_slice): Only check value_lazy for memory
6730         lvals.
6731         * value.c (struct value): Update comment for lazy.
6732         (value_primitive_field): Only check value_lazy for memory lvals.
6733         * value.h (value_lazy): Update comment.
6734         (value_of_register_lazy): Declare.
6735
6736 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6737
6738         * corefile.c (reopen_exec_file): Close any open files.
6739
6740 2008-04-29  Joel Brobecker  <brobecker@adacore.com>
6741
6742         * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
6743         show_memory_breakpoints to 1 while reading the instruction bundle.
6744
6745 2008-04-29  Joel Brobecker  <brobecker@adacore.com>
6746
6747         * gdbarch.sh: Document the return_value method. Explain that
6748         the FUNCTYPE parameter might be NULL.
6749         * gdbarch.h: Regenerated.
6750         * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
6751         type when calling using_struct_return, as this is unnecessary
6752         on this target.
6753
6754 2008-04-28  Joel Brobecker  <brobecker@adacore.com>
6755
6756         * terminal.h (create_tty_session): Fix return type.
6757
6758 2008-04-26  Vladimir Prus  <vladimir@codesourcery.com>
6759
6760         * mi/mi-interp.c (mi_new_thread): Quote the thread id.
6761
6762 2008-04-26  Joel Brobecker  <brobecker@adacore.com>
6763
6764         * breakpoint.c (condition_command, commands_from_control_command)
6765         (break_command_really): Minor reformatting.
6766
6767 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
6768
6769         * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
6770
6771 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
6772
6773         * amd64-tdep.c (amd64_get_longjmp_target): New.
6774         (amd64_init_abi): Register amd64_get_longjmp_target as
6775         gdbarch_get_longjmp_target callback.
6776         * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
6777
6778 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
6779
6780         * breakpoint.h (enum bpstat_what_main_action): Delete
6781         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
6782
6783         * breakpoint.c (clrs): Delete.
6784         (bpstat_what): Update table.
6785
6786         * infrun.c (handle_inferior_event): Remove
6787         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
6788
6789 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
6790
6791         * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
6792         Adjust all prototypes using mi_cmd_args_ftype to use
6793         mi_cmd_argv_ftype.
6794         (struct mi_cmd): Remove the args_func field.
6795         * mi/mi-cmds.c: Don't provide value for the args_func field.
6796         * mi/mi-main.c (mi_execute_async_cli_command)
6797         (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
6798         (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
6799         (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
6800         (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
6801         (mi_cmd_target_download): Adjust.
6802         (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
6803         (mi_cmd_execute): Do not check for args_func.
6804         (mi_execute_async_cli_command): Adjust.
6805         * mi/mi-parse.c: Don't check for args_func.
6806
6807 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
6808
6809         * breakpoint.c (bpstat_check_location)
6810         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
6811         New, extracted from bpstat_stop_status.
6812         (bpstat_stop_status): Use the above.
6813
6814 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
6815
6816         * mi/mi-main.c (last_async_command): Rename to current_token.
6817         (previous_async_command): Remove.
6818         (mi_cmd_gdb_exit): Adjust.
6819         (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
6820         (mi_cmd_target_select): Adjust.
6821         (mi_cmd_execute): Don't set previous_async_command.  Free token
6822         here even in async mode.
6823         (mi_execute_async_cli_command): Adjust.
6824         (mi_exec_async_cli_cmd_continuation): Adjust.  Do not free the
6825         token.
6826         (mi_load_progress): Adjust.
6827
6828 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
6829
6830         * infcmd.c (step_1_continuation): Always disable longjmp
6831         breakpoint if we're not going to do another step.
6832
6833 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
6834
6835         exec_cleanup murder.
6836         * breakpoint.c (until_break_command_continuation): Add
6837         the 'error' parameter.  Directly delete the breakoint as
6838         opposed to running cleanups.
6839         (until_break_command): Install continuation only
6840         after starting the target.  Don't use exec cleanups,
6841         use ordinary cleanups.  Discard cleanups is successfully
6842         started the target in async mode.
6843         (make_cleanup_delete_breakpoint): Remove.
6844         * breakpoint.h (make_cleanup_delete_breakpoint): Remove
6845         declaration.
6846         * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
6847         declarations.
6848         (struct continations): Add the 'error' parameter to the
6849         continuation_hook field.
6850         (add_continuation, do_all_continuations)
6851         (add_intermediate_continuation)
6852         (do_all_intermediate_continuations): Add the 'error' parameter.
6853         * exceptions.c (throw_exception): Don't call do_exec_cleanups.
6854         * inf-loop.c (inferior_event_handler): Instead of calling
6855         discard_all_continuations, use do_all_continuations with 1 as
6856         'error' parameter.  Pass 0 as 'error' parameter in existing uses
6857         of discard_all_continuations.
6858         * infcmd.c (step_1): Do not use exec cleanup.  For async case, discard
6859         cleanups.
6860         (step_once): Install continuation only after resuming the target.
6861         (step_1_continuation): Disable longjmp breakpoint on error.
6862         (finish_command_continuation): Add the error parameter.  Delete
6863         the finish breakpoint directly, do not use cleanups.
6864         (finish_command): Do not use exec_cleanups. Always setup
6865         continuation.  For sync case, immediately run them.
6866         (attach_command_continuation): Add the error parameter.
6867         * infrun.c (fetch_inferior_event): Do not use exec cleanups to
6868         remove step_resume_breakpoint -- adjust delete it directly.
6869         * interps.c (interp_set): Adjust call to do_all_continations.
6870         * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
6871         do exec cleanups.
6872         * mi/mi-main.c (mi_cmd_target_select): Do not do exec
6873         cleanups.
6874         (mi_cmd_execute): Do not use exec_cleanup.
6875         (mi_execute_async_cli_command): Simplify the string concatenation
6876         logic.  Do no use exec cleanup.
6877         (mi_exec_async_cli_cmd_continuation): New parameter error.
6878         Free last_async_command.
6879         * top.c (command_line_handler_continuation): New parameter error.
6880         * utils.c (exec_cleanup_chain, make_exec_cleanup)
6881         (do_exec_cleanups): Remove.
6882         (add_continuation, do_all_continations)
6883         (add_intermediate_continuation)
6884         (do_all_intermediate_continuations): New parameter error.
6885
6886 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
6887
6888         * breakpoint.h (bp_location_p): New typedef.
6889         Register a vector of bp_location_p.
6890         * breakpoint.c (always_inserted_mode)
6891         (show_always_inserted_mode): New.
6892         (unlink_locations_from_global_list): Remove.
6893         (update_global_location_list)
6894         (update_global_location_list_nothrow): New.
6895         (update_watchpoint): Don't free locations.
6896         (should_insert_location): New.
6897         (insert_bp_location): Use should_insert_location.
6898         (insert_breakpoint_locations): Copied from
6899         insert_breakpoints.
6900         (insert_breakpoint): Use insert_breakpoint_locations.
6901         (bpstat_stop_status): Call update_global_location_list
6902         when disabling breakpoint.
6903         (allocate_bp_location): Don't add to bp_location_chain.
6904         (set_raw_breakpoint)
6905         (create_longjmp_breakpoint, enable_longjmp_breakpoint)
6906         (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
6907         (enable_overlay_breakpoints, disable_overlay_breakpoints)
6908         (set_longjmp_resume_breakpoint)
6909         (enable_watchpoints_after_interactive_call_stop)
6910         (disable_watchpoints_before_interactive_call_start)
6911         (create_internal_breakpoint)
6912         (create_fork_vfork_event_catchpoint)
6913         (create_exec_event_catchpoint, set_momentary_breakpoint)
6914         (create_breakpoints, break_command_1, watch_command_1)
6915         (create_exception_catchpoint)
6916         (handle_gnu_v3_exceptions)
6917         (disable_breakpoint, breakpoint_re_set_one)
6918         (create_thread_event_breakpoint, create_solib_event_breakpoint)
6919         (create_ada_exception_breakpoint): : Don't call check_duplicates.
6920         Call update_global_location_list.
6921         (delete_breakpoint): Don't remove locations and don't
6922         try to reinsert them. Call update_global_location_list.
6923         (update_breakpoint_locations): Likewise.
6924         (restore_always_inserted_mode): New.
6925         (update_breakpoints_after_exec): Temporary disable
6926         always inserted mode.
6927         * Makefile.in: Update dependencies.
6928
6929         * infrun.c (proceed): Remove breakpoints while stepping
6930         over breakpoint.
6931         (handle_inferior_event): Don't remove or insert
6932         breakpoints.
6933         * linux-fork.c (checkpoint_command): Remove breakpoints
6934         before fork and insert after.
6935         (linux_fork_context): Remove breakpoints before switch
6936         and insert after.
6937         * target.c (target_disconnect, target_detach): Remove
6938         breakpoints from target.
6939
6940
6941 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
6942
6943         * breakpoint.c (print_one_breakpoint_location): In MI
6944         mode, report the location string the breakpoint was
6945         originally created with.
6946
6947 2008-04-23  Maxim Grigoriev  <maxim2405@gmail.com>
6948
6949         * Makefile.in (xtensa-tdep.o): Update dependencies.
6950         * configure.tgt (xtensa*): Update dependencies.
6951         * xtensa-tdep.c (arreg_number): Renamed from areg_number.
6952         Local variable areg renamed to arreg.
6953         (areg_number): New function.
6954         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
6955         (xtensa_extract_return_value, xtensa_store_return_value): areg_number
6956         replaced by arreg_number.
6957         (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
6958         (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
6959         (xtensa_scan_prologue): New function.
6960         (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
6961         when ENTRY instraction hasn't been executed yet. Get the frame pointer
6962         value based on prologue analysis. Fix the bugs preventing WS and
6963         AR4-AR7/A11 registers from getting right values for intermediate frames,
6964         whose registers have been already spilled.
6965         (xtensa_frame_prev_register): Fix WS register value. Use are_number
6966         and arreg_number appropriately.
6967         (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
6968         svr4_ilp32_fetch_link_map_offsets.
6969
6970 2008-04-23  Andrew Stubbs  <andrew.stubbs@st.com>
6971
6972         * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
6973         (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
6974
6975 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
6976
6977         * acinclude.m4: Add override.m4.
6978         * configure: Regenerate.
6979
6980 2008-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6981
6982         * ada-lang.c (get_selections): Variable PROMPT made non-const and
6983         initialized with a trailing space now.  Use PROMPT_ARG of
6984         COMMAND_LINE_INPUT instead of printing it ourselves.
6985
6986 2008-04-22  Joel Brobecker  <brobecker@adacore.com>
6987
6988         * NEWS: Document support for 64-bit core file.
6989
6990 2008-04-22  Corinna Vinschen  <vinschen@redhat.com>
6991
6992         * NEWS: Add information on calling convention and new SH CLI options.
6993
6994         * sh-tdep.c (sh_cc_gcc): New static string.
6995         (sh_cc_renesas): Ditto.
6996         (sh_cc_enum): New static string array.
6997         (sh_active_calling_convention): New static string pointer denoting
6998         active user chosen ABI.
6999         (sh_is_renesas_calling_convention): New function to return function
7000         specific ABI, or user choice if necessary.
7001         (sh_use_struct_convention): Rename first argument and turn around its
7002         meaning.  Check for renesas ABI and return accordingly.
7003         (sh_use_struct_convention_nofpu): New function.
7004         (sh_next_flt_argreg): Get function type as third parameter.  Check
7005         for renesas ABI and choose floating registers accordingly.
7006         (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
7007         struct return slot accordingly.
7008         (sh_push_dummy_call_nofpu): Ditto.
7009         (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
7010         Evaluate ABI and give to sh_use_struct_convention_nofpu.
7011         (sh_return_value_fpu):  Evaluate ABI and give to
7012         sh_use_struct_convention.
7013         (show_sh_command): New function.
7014         (set_sh_command): Ditto.
7015         (_initialize_sh_tdep): Initialize `set/show sh calling-convention
7016         CLI command.
7017
7018         * gdbarch.sh (return_value): Add func_type argument.
7019         * gdbarch.c: Regenerate.
7020         * gdbarch.h: Ditto.
7021         * eval.c (evaluate_subexp_standard): Rename local variable value_type to
7022         val_type so as not to collide with value_type function.  Call
7023         using_struct_return with additional function type argument.
7024         * infcall.c (call_function_by_hand): Call using_struct_return and
7025         gdbarch_return_value with additional function type argument.
7026         * infcmd.c (print_return_value): Take addition func_type argument.
7027         Call gdbarch_return_value with additional function type argument.
7028         (finish_command_continuation): Call print_return_value with additional
7029         function type argument.
7030         (finish_command): Ditto.
7031         * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
7032         additional function type argument.
7033         * stack.c (return_command): Call using_struct_return and
7034         gdbarch_return_value with additional function type argument.
7035         * value.c (using_struct_return): Take additional function type argument.
7036         * value.h (using_struct_return): Accommodate declaration.
7037         * alpha-tdep.c (alpha_return_value): Add func_type argument.
7038         * amd64-tdep.c (amd64_return_value): Ditto.
7039         * arm-tdep.c (arm_return_value): Ditto.
7040         * avr-tdep.c (avr_return_value): Ditto.
7041         * cris-tdep.c (cris_return_value): Ditto.
7042         * frv-tdep.c (frv_return_value): Ditto.
7043         * h8300-tdep.c (h8300_return_value): Ditto.
7044         (h8300h_return_value): Ditto.
7045         * hppa-tdep.c (hppa32_return_value): Ditto.
7046         (hppa64_return_value): Ditto.
7047         * i386-tdep.c (i386_return_value): Ditto.
7048         * ia64-tdep.c (ia64_return_value): Ditto.
7049         * iq2000-tdep.c (iq2000_return_value): Ditto.
7050         * m32c-tdep.c (m32c_return_value): Ditto.
7051         * m32r-tdep.c (m32r_return_value): Ditto.
7052         * m68hc11-tdep.c (m68hc11_return_value): Ditto.
7053         * m68k-tdep.c (m68k_return_value): Ditto.
7054         (m68k_svr4_return_value): Ditto.
7055         * m88k-tdep.c  (m88k_return_value): Ditto.
7056         * mep-tdep.c (mep_return_value): Ditto.
7057         * mips-tdep.c (mips_eabi_return_value): Ditto.
7058         (mips_n32n64_return_value): Ditto.
7059         (mips_o32_return_value): Ditto.
7060         (mips_o64_return_value): Ditto.
7061         * mn10300-tdep.c (mn10300_return_value): Ditto.
7062         * mt-tdep.c (mt_return_value): Ditto.
7063         * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
7064         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
7065         (ppc_sysv_abi_broken_return_value): Ditto.
7066         (ppc64_sysv_abi_return_value): Ditto.
7067         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
7068         (ppc_sysv_abi_broken_return_value): Ditto.
7069         (ppc64_sysv_abi_return_value): Ditto.
7070         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
7071         * rs6000-tdep.c (rs6000_return_value): Ditto.
7072         * s390-tdep.c (s390_return_value): Ditto.
7073         * score-tdep.c (score_return_value): Ditto.
7074         * sh-tdep.c (sh_return_value_nofpu): Ditto.
7075         (sh_return_value_fpu): Ditto.
7076         * sh64-tdep.c (sh64_return_value): Ditto.
7077         * sparc-tdep.c (sparc32_return_value): Ditto.
7078         * sparc64-tdep.c (sparc64_return_value): Ditto.
7079         * spu-tdep.c (spu_return_value): Ditto.
7080         * v850-tdep.c (v850_return_value): Ditto.
7081         * vax-tdep.c (vax_return_value): Ditto.
7082         * xstormy16-tdep.c (xstormy16_return_value): Ditto.
7083         * xtensa-tdep.c (xtensa_return_value): Ditto.
7084
7085         * gdbtypes.h (struct type): Add calling_convention member.
7086         * dwarf2read.c (read_subroutine_type): Add calling convention read
7087         from DW_AT_calling_convention attribute to function type.
7088
7089 2008-04-22  Markus Deuling  <deuling@de.ibm.com>
7090
7091         * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
7092         multi_f77_subscript to support values from registers.
7093         * valarith.c (value_subscripted_rvalue): Remove prototype and static.
7094         * value.h (value_subscripted_rvalue): Add prototype.
7095
7096         * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
7097         Fix output.
7098         * f-valprint.c (f_val_print): Likewise.
7099
7100 2008-04-21  Craig Silverstein  <csilvers@google.com>
7101
7102         * dwarf2read.c (zlib_decompress_section): Define abfd in the
7103         !HAVE_ZLIB_H case.
7104
7105 2008-04-21  Pedro Alves  <pedro@codesourcery.com>
7106
7107         * symfile.c (syms_from_objfile): Don't warn if lowest loadable
7108         section is not a code section.
7109
7110 2008-04-19  Craig Silverstein  <csilvers@google.com>
7111
7112         * NEWS: Add information on compressed debug sections.
7113
7114 2008-04-19  Vladimir Prus  <vladimir@codesourcery.com>
7115
7116         * mi/mi-cmd-var.c (varobj_update_one): Print new
7117         value for variable objects that changed type.
7118
7119 2008-04-19  Vladimir Prus  <vladimir@codesourcery.com>
7120
7121         * varobj.c (varobj_invalidate): Don't touch floating
7122         varobjs.
7123
7124 2008-04-19  Mark Kettenis  <kettenis@gnu.org>
7125
7126         * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
7127         (multiple_symbols_cancel): Remove extra const.
7128         * symtab.h: Likewise.
7129
7130 2008-04-19  Nick Roberts  <nickrob@snap.net.nz>
7131
7132         * interps.c (top_level_interpreter): Rename static variable...
7133         (top_level_interpreter_ptr): ...to this.
7134         (top_level_interpreter): New function.
7135
7136         * interps.h: New extern for top_level_interpreter.
7137
7138         * linespec.c: Include interps.h and mi/mi-cmds.h.
7139         (decode_line_2): When using MI, always set all breakpoints in menu.
7140
7141         * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
7142
7143 2008-04-18  Craig Silverstein  <csilvers@google.com>
7144
7145         * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
7146         * config.in, configure: Regenerate.
7147         * dwarf2read.c: Include zlib.h if present.
7148         Modified *_SECTION macros.
7149         (section_is_p): New.
7150         (dwarf2_locate_sections): Use section_is_p instead of strcmp
7151         (dwarf2_resize_section): New.
7152         to determine whether a given section has a given name.
7153         (zlib_decompress_section): New.
7154         (dwarf2_read_section): Read the compressed section if present
7155         in the binary.
7156         * MAINTAINERS: Added myself to section Write After Approval.
7157
7158 2008-04-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7159
7160         * defs.h (exec_set_section_offsets): Remove prototype.
7161         * exec.c (exec_set_section_offsets): Remove function.
7162
7163 2008-04-18  Joel Brobecker  <brobecker@adacore.com>
7164
7165         * stabsread.c (cleanup_undefined_types_1): Add instance flags check
7166         in the search for the matching symbol.
7167
7168 2008-04-17  Marc Khouzam  <marc.khouzam@ericsson.com>
7169
7170         * breakpoint.c (update_watchpoint): Always reparse
7171         condition.
7172
7173 2008-04-17  Joel Brobecker  <brobecker@adacore.com>
7174
7175         * breakpoint.c (print_one_breakpoint_location): Make sure to print
7176         the breakpoint address only once.
7177
7178 2008-04-17  Dennis Roberts  <dennis.roberts@sunquestinfo.com>
7179
7180         * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
7181         rather than a hard-coded architecture, for xcoff executables.
7182
7183 2008-04-17  Doug Evans  <dje@google.com>
7184
7185         * buildsym.c (watch_main_source_file_lossage): New fn.
7186         (end_symtab): Call it.
7187
7188         * source.c (find_and_open_source): Add some comments clarifying
7189         handling of FULLNAME argument.  Make static.  Remove pointless
7190         xstrdup/xfree.
7191
7192 2008-04-17  Pedro Alves  <pedro@codesourcery.com>
7193
7194         * inf-loop.c (inferior_event_handler): Also run the intermediate
7195         continuations in the INF_EXEC_COMPLETE case.
7196
7197 2008-04-16  Tom Tromey  <tromey@redhat.com>
7198
7199         * cli/cli-decode.h (CMD_ASYNC_OK): New define.
7200         (set_cmd_async_ok, get_cmd_async_ok): Declare.
7201         * cli/cli-decode.c (set_cmd_async_ok): New function.
7202         (get_cmd_async_ok): New function.
7203         * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
7204         "show" as async-ok.
7205         * top.c (execute_command): Use get_cmd_async_ok.
7206         * infcmd.c: Include cli/cli-decode.h.
7207         (_initialize_infcmd): Mark "interrupt" as async-ok.
7208         * Makefile.in (infcmd.o): Depend on cli_decode_h.
7209
7210 2008-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
7211
7212         PR gdb/2445
7213         * exec.c: Correct "arch-utils.h" include.
7214
7215 2008-04-15  Aleksandar Ristovski  <aristovski@qnx.com>
7216
7217         PR gdb/2424
7218         * infrun.c (normal_stop) Move breakpoint_auto_delete further down
7219         to allow printing to 'see' real reason of stop. This fixes PR 2424.
7220         * breakpoint.c (bpdisp_texst): New function. The function takes over
7221         the role of bpstats static array in print_one_breakpoint_location.
7222         (print_it_typical): Print "Temporary breakpoint" instead
7223         of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
7224         protocols, print disp field.
7225         (print_one_breakpoint_location): Removed bpdisps static definition.
7226         Call new bpstat_text function to get value for 'disp' field.
7227         (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
7228
7229 2008-04-15  Daniel Jacobowitz  <dan@codesourcery.com>
7230
7231         * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
7232         gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
7233         by rerunning gnulib-tool with --aux-dir=gnulib/extra.
7234         * gnulib/Makefile.in: Regenerate.
7235
7236 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7237
7238         * Makefile.in (GNULIB_H): New.  Trigger all-lib.
7239         (defs_h): Use $(GNULIB_H).
7240         (all-lib): Depend on gnulib/Makefile.
7241         (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
7242         * config.in, gnulib/Makefile.in: Regenerated.
7243
7244 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7245
7246         * Makefile.in (LIBGNU, INCGNU): Define.
7247         (INTERNAL_CFLAGS_BASE): Add INCGNU.
7248         (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
7249         (CLEANDIRS): New.
7250         ($(LIBGNU), all-lib): New rules.
7251         (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
7252         * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
7253         Simplify AC_CONFIG_AUX_DIR.  Generate gnulib/Makefile.
7254         * gnulib: New directory, from gnulib-tool.
7255         * configure, aclocal.m4: Regenerated.
7256
7257 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7258
7259         * linux-thread-db.c (have_threads_callback): Check thread->private.
7260
7261 2008-04-13  Nick Roberts  <nickrob@snap.net.nz>
7262             Vladimir Prus  <vladimir@codesourcery.com>
7263
7264         Fix @-varobjs.
7265         * varobj.c (value_of_root): Update the expression for
7266         floating varobjs.
7267         * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
7268         report that.
7269
7270 2008-04-09  Marc Khouzam  <marc.khouzam@ericsson.com>
7271
7272         * mi/mi-cmd-var.c: Include "mi-getopt.h".
7273         (mi_parse_format): New.  Factored out from mi_cmd_var_set_format.
7274         (mi_cmd_var_set_format): Use new mi_parse_format.
7275         (mi_cmd_var_evaluate_expression): Support for -f option to specify
7276         format.
7277         * Makefile.in (mi-cmd-var.o): Update dependencies.
7278
7279         * varobj.h (varobj_get_formatted_value): Declare.
7280         * varobj.c (my_value_of_variable): Added format parameter.
7281         (cplus_value_of_variable): Likewise.
7282         (java_value_of_variable): Likewise.
7283         (c_value_of_variable): Likewise.  Evaluate expression based
7284         on format parameter.
7285         (struct language_specific): Add format parameter to function member
7286         *value_of_variable.
7287         (varobj_get_formatted_value): New.
7288         (varobj_get_value): Added format parameter to method call.
7289
7290 2008-04-08  Joel Brobecker  <brobecker@adacore.com>
7291
7292         * stabsread.c (cleanup_undefined_types_noname): Manually set the
7293         instance flags of the undefined type before calling replace_type.
7294
7295 2008-04-08  Vladimir Prus  <vladimir@codesourcery.com>
7296
7297         * target.h (enum strata): Remove the download_stratum.
7298
7299 2008-04-07  Doug Evans  <dje@google.com>
7300
7301         * buildsym.h (last_source_file): Add dwarf info to comment.
7302         (last_source_start_addr): Ditto.
7303
7304 2008-04-07  Pedro Alves  <pedro@codesourcery.com>
7305
7306         * alphanbsd-tdep.c: Include "target.h".
7307         * mn10300-tdep.c: Include "target.h".
7308         * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
7309
7310 2008-04-06  Vladimir Prus  <vladimir@codesourcery.com>
7311
7312         Fix breakpoint condition that use member variables.
7313         * valops.c (check_field): Remove.
7314         (check_field_in): Rename to check_field.
7315         (value_of_this): Use la_name_of_this.
7316         * value.h (check_field): Adjust prototype.
7317
7318         * language.h (la_value_of_this): Rename to la_name_of_this.
7319         * language.c (unknown_language_defn): Specify "this" for
7320         name_of_this.
7321         (auto_language_defn): Likewise.
7322         (local_language_defn): Likewise.
7323         * ada-lang.c (ada_language_defn): Adjust comment.
7324         * c-lang.c (c_language_defn): Adjust comment.
7325         (cplus_language_defn): Specify "this" for name_of_this.
7326         (asm_language_defn): Adjust comment.
7327         (minimal_language_defn): Adjust comment.
7328         * f-lang.c (f_language_defn): Specify NULL for name_of_this.
7329         * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
7330         * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
7331         * objc-lang.c (objc_language_defn): Specify "self" for
7332         name_of_this.
7333         * p-lang.c (pascal_language_defn): Specify "this" for
7334         name_of_this.
7335         * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
7336
7337         * symtab.c (lookup_symbol_aux): Lookup "this" in the
7338         proper scope, and check for field in type of "this", without
7339         trying to create a value.
7340
7341 2008-04-04  Pedro Alves  <pedro@codesourcery.com>
7342
7343         * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
7344         (mi_error_message): Delete declaration.
7345         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
7346         returning MI_CMD_ERROR.
7347         * mi/mi-main.c (mi_error_message): Delete.
7348         (mi_cmd_exec_interrupt):
7349         (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7350         (mi_cmd_thread_info): Call error instead of returning
7351         MI_CMD_ERROR.
7352         (mi_cmd_data_list_register_values): Call error instead of
7353         returning MI_CMD_ERROR.  Adapt to new get_register interface.
7354         (get_register): Change return typo to void.  Call error instead of
7355         returning MI_CMD_ERROR.
7356         (mi_cmd_data_write_register_values): Call error instead of
7357         returning MI_CMD_ERROR.
7358         (mi_cmd_list_features): Return MI_CMD_DONE.
7359         (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
7360         (mi_execute_command): Always print exceptions with -error.
7361
7362 2008-04-04  Joel Brobecker  <brobecker@adacore.com>
7363
7364         * NEWS: Mention new commands set/show multiple-symbols.
7365
7366 2008-04-03  Joel Brobecker  <brobecker@adacore.com>
7367
7368         * symtab.c (multiple_symbols_ask, multiple_symbols_all)
7369         (multiple_symbols_cancel): New constants.
7370         (multiple_symbols_modes, multiple_symbols_mode): New static globals.
7371         (multiple_symbols_select_mode): New function.
7372         (_initialize_symtab): Add new set/show multiple-symbols commands.
7373         * symtab.h (multiple_symbols_ask, multiple_symbols_all)
7374         (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
7375         * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
7376         setting.
7377         * linespec.c (decode_line_2): Likewise.
7378
7379 2008-04-03  Doug Evans  <dje@sebabeach.org>
7380
7381         * symtab.h (enum free_code): Delete free_contents, unused.
7382         * symmisc.c (free_symtab_block): Delete.
7383         (free_symtab, case free_code): Delete.
7384
7385 2008-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7386
7387         * valops.c (value_cast_structs): New function. Cast related
7388         STRUCT types up/down and return cast value. The body of this
7389         function comes mostly from value_cast_pointers.
7390         (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
7391         to value_cast_structs. Now value_cast_pointers needs only create
7392         appropriate reference after using value_cast_structs for actual
7393         casting.
7394         (value_cast): Handle references.
7395
7396 2008-04-01  Marc Khouzam  <marc.khouzam@ericsson.com>
7397
7398         * MAINTAINERS: Added myself to section Write After Approval.
7399
7400 2008-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
7401
7402         * ia64-tdep.c (examine_prologue): Correct array access.
7403
7404 2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
7405
7406         * cp-support.c (first_component_command): Return if no arguments.
7407
7408 2008-03-28  Carlos O'Donell  <carlos@codesourcery.com>
7409
7410         * ser-mingw.c (ser_windows_open): Open requested name.
7411
7412 2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
7413
7414         * MAINTAINERS: Added myself.
7415
7416 2008-03-28  Pedro Alves  <pedro@codesourcery.com>
7417
7418         * target.c (find_default_run_target): Allow a NULL `do_mesg'
7419         parameter.  If it is NULL, don't call error.
7420         (find_default_can_async_p, find_default_is_async_p): Pass NULL as
7421         `do_mesg' parameter to find_default_run_target.  If no target was
7422         found, return 0.
7423
7424 2008-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
7425
7426         * mips-linux-tdep.c: Update N32/N64 signal frame comments.
7427         (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
7428         (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
7429         Delete.
7430         (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
7431
7432 2008-03-27  Joel Brobecker  <brobecker@adacore.com>
7433
7434         GDB 6.8 released.
7435
7436 2008-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
7437
7438         * features/Makefile (%.dat): Set xmltarget to the base filename
7439         of the XML source, without subdirectory.
7440         * regformats/rs6000/powerpc-32.dat: Regenerate.
7441         * regformats/rs6000/powerpc-64.dat: Regenerate.
7442         * regformats/rs6000/powerpc-e500.dat: Regenerate.
7443
7444 2008-03-27  Markus Deuling  <deuling@de.ibm.com>
7445
7446         * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
7447         objfile arch.
7448
7449 2008-03-27  Nick Roberts  <nickrob@snap.net.nz>
7450
7451         * mi/mi-main.c (enum captured_mi_execute_command_actions):
7452         Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
7453
7454 2008-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7455
7456         * objfiles.h (struct objfile): New GDBARCH member.
7457         (get_objfile_arch): Add prototype.
7458         * objfiles.c: Include "arch-utils.h".
7459         (allocate_objfile): Look up gdbarch associated with bfd.
7460         (get_objfile_arch): New function.
7461         * Makefile (objfiles.o): Update dependencies.
7462
7463         * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
7464         by objfile arch.
7465         * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
7466         by frame arch.
7467         (locexpr_describe_location): Replace current_gdbarch by
7468         objfile arch.
7469         * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
7470         (dwarf2_add_field): Likewise.
7471         (read_tag_pointer_type): Likewise.
7472         (read_base_type): Likewise.
7473         (new_symbol): Likewise.
7474
7475         * coffread.c (decode_type): Add OBJFILE argument.  Update callers.
7476         (decode_base_type, decode_function_type): Likewise.
7477         (coff_read_struct_type, coff_read_enum_type): Likewise.
7478         (coff_symtab_read): Replace current_gdbarch by objfile arch.
7479         (decode_base_type): Likewise.
7480         (coff_read_enum_type): Likewise.
7481         (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
7482         (coff_read_enum_type): Likewise.
7483
7484         * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
7485         (end_psymtab): Likewise.
7486         (process_one_symbol): Likewise.
7487
7488         * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
7489         (parse_procedure): Likewise.
7490         (parse_partial_symbols): Likewise.
7491
7492         * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
7493
7494         * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
7495         Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
7496         built-in types.
7497         (read_range_type): Replace current_gdbarch by objfile arch.  Replace
7498         static range_index_type by built-in type.
7499         (read_one_struct_field): Replace current_gdbarch by objfile arch.
7500         (read_enum_type): Likewise.
7501
7502         * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
7503         objfile arch.
7504
7505 2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
7506
7507         * varobj.h (varobj_floating_p): Declare.
7508         * varobj.c (varobj_floating_p): New.
7509         * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
7510         '@' as the name, update all floating varobjs.
7511
7512 2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
7513
7514         * varobj.c (struct varobj_root): Rename use_selected_frame to
7515         floating, and clarify the meaning.
7516         (varobj_create, varobj_update,  new_root_variable): Adjust.
7517         (value_of_root): Don't use type_changed as in variable,
7518         adjust comment.
7519         (c_value_of_root): Adjust.
7520
7521 2008-03-25  Pedro Alves  <pedro@codesourcery.com>
7522
7523         * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
7524         gdb's thread list.
7525         (linux_nat_wait): Add main lwp to gdb's thread list.
7526         * linux-thread-db.c (find_new_threads_callback): Also attach to
7527         already listed threads which thread_db didn't know about yet.
7528
7529 2008-03-25  Pedro Alves  <pedro@codesourcery.com>
7530
7531         * linux-nat.c (drain_queued_events): Fix comment typo.
7532         (linux_nat_attach): In async mode, don't rely on storing a pending
7533         status.  Instead place the wait status on the pipe.
7534         (linux_nat_resume): Remove unreacheable shortcut code in async
7535         mode.
7536         (stop_wait_callback): In async mode, don't store pending status.
7537         Instead, cancel breakpoints or resend the signal appropriatelly.
7538         (cancel_breakpoint): New, refactored from
7539         cancel_breakpoints_callback.
7540         (cancel_breakpoints_callback): Call cancel_breakpoint.
7541         (pipe_to_local_event_queue): Remove special token processing.
7542         (linux_nat_wait): Issue an internal error if a pending status is
7543         found in async mode.
7544
7545 2008-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7546
7547         * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
7548
7549 2008-03-24  Nick Roberts  <nickrob@snap.net.nz>
7550             Vladimir Prus  <vladimir@codesourcery.com>
7551
7552         * varobj.c  (struct varobj_root): New component thread_id.
7553         (varobj_get_thread_id, check_scope): New functions.
7554         (c_value_of_root): Use check_scope.  Switch to the
7555         proper thread if necessary.
7556
7557         * varobj.h (varobj_get_thread_id): New extern.
7558
7559         * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
7560
7561 2008-03-23  Daniel Jacobowitz  <dan@codesourcery.com>
7562
7563         PR gdb/544
7564         * top.c: Revert 2008-03-21 changes.
7565
7566 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
7567
7568         * thread.c (make_cleanup_restore_current_thread): Make it
7569         globally visible.
7570         * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7571         * varobj.c (varobj_update): Don't save/restore frame.
7572         (c_value_of_root): Save/restore thread and frame here,
7573         using make_cleanup_restore_current_thread.
7574         * Makefile.in: Update dependecies.
7575
7576 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
7577
7578         * varobj.c (struct varobj_root): Clarify
7579         comment on the frame field.
7580         (varobj_create): Don't set frame if we have no
7581         block.
7582
7583 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
7584
7585         PR gdb/544
7586         Suggested by Jan Kratochvil:
7587         * top.c (gdb_rl_operate_and_get_next_completion): Call
7588         rl_redisplay_function.
7589         (gdb_rl_redisplay): New.
7590         (init_main): Set rl_redisplay_function.
7591
7592 2008-03-21  Thomas Mittelstaedt  <T.Mittelstaedt@cadenas.de>  (tiny change)
7593
7594         * aix-thread.c (pdc_read_regs): Fix compiler warning.
7595         (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
7596         (store_regs_kernel_thread): Likewise.
7597
7598 2008-03-21  Pedro Alves  <pedro@codesourcery.com>
7599
7600         Linux native async support.
7601
7602         * target.h (struct target_ops): Delete to_async_mask_value and add
7603         to_async_mask.
7604         (target_is_async_p, target_async): Formatting.
7605         (target_async_mask_value): Delete.
7606         (target_async_mask): Delete function declaration, and add new
7607         target macro with the same name.
7608
7609         * target.c (update_current_target): Replace to_async_mask_value by
7610         to_async_mask.  Default to_async_mask to return_one.
7611         (target_async_mask): Delete.
7612         (find_default_can_async_p, find_default_is_async_p): New.
7613         (init_dummy_target): register find_default_can_async_p and
7614         find_default_is_async_p on the dummy target.
7615
7616         * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
7617         (debug_linux_nat_async): New global.
7618         (show_debug_linux_nat_async): New function.
7619         (linux_nat_async_enabled, linux_nat_async_mask_value)
7620         (linux_nat_event_pipe, linux_nat_num_queued_events)
7621         (linux_nat_async_events_enabled): New globals.
7622         (struct waitpid_result): New struct.
7623         (waitpid_queue): New global.
7624         (queued_waitpid, push_waitpid, drain_queued_events): New.
7625         (my_waitpid): Call queued_waitpid.
7626         (linux_child_follow_fork): Disable async events during the call.
7627         (blocked_mask): Delete.
7628         (sync_sigchld_action, async_sigchld_action): New globals.
7629         (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD.  In
7630         async mode, block events during the call.
7631         (linux_nat_create_inferior): New.
7632         (linux_nat_attach): In sync mode, restore the mask states.  In
7633         async mode, wake the event loop immediatelly.
7634         (detach_callback): Drain all queued events of the lwp we're
7635         detaching from.
7636         (linux_nat_detach): Block async mode, and drain events of the main
7637         process.
7638         (linux_nat_resume): If in async mode, mask async events during the
7639         call.  If short circuiting, force event loop to wake up.  If
7640         resuming, set target_executing, and register target events in the
7641         event loop.
7642         (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
7643         (linux_nat_wait): In async mode, block events during the call.
7644         Only enable/disable passing SIGINT to the inferior in sync mode.
7645         Get events from local waitpid queue.  If no interesting events was
7646         found, return to events loop.  Reregister target events in the
7647         event loop on exit.  In sync mode, no need to reblock SIGCHLD.
7648         (linux_nat_kill): Disable events on entry.
7649         (linux_nat_mourn_inferior): In sync mode, don't restore the masks
7650         here.  Detach async mode from the event loop if there are no more
7651         forks available, otherwise leave it on.
7652         (sigchld_handler): Assure this is called only in sync mode.
7653         (linux_async_permitted, linux_async_permitted_1): New globals.
7654         (set_maintenance_linux_async_permitted)
7655         (show_maintenance_linux_async_permitted): New functions.
7656         (linux_nat_is_async_p, linux_nat_can_async_p)
7657         (linux_nat_async_mask): New.
7658         (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
7659         (get_pending_events, async_sigchld_handler): New.
7660         (linux_nat_async_events): New.
7661         (async_terminal_is_ours): New global.
7662         (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
7663         (async_client_callback, async_client_context): New.
7664         (linux_nat_async_file_handler, linux_nat_async)
7665         (linux_nat_disable_async, linux_nat_enable_async): New.
7666         (linux_nat_add_target): Register linux_nat_create_inferior,
7667         linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
7668         linux_nat_async_mask, linux_nat_terminal_inferior and
7669         linux_nat_terminal_ours.
7670         (_initialize_linux_nat): Remove local action variable, and update
7671         code that used it to use sync_sigchld_action.  Add new
7672         "lin-lwp-async" debug set/show command.  Put the "lin-lwp" debug
7673         set/show command in the maintenance class.  Add new "linux-async"
7674         maintenance set/show command.  Block SIGCHLD by default.  Setup
7675         async_sichld_action, and sync_sigchld_action.  Install the default
7676         async mode.
7677         (lin_thread_get_thread_signals): Use a local sigset_t for blocking
7678         the cancel signals.
7679
7680         * linux-thread-db.c (re_check_for_thread_db): New.
7681         (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
7682         (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
7683         (thread_db_async_mask): New.
7684         (init_thread_db_ops): Register thread_db_can_async_p,
7685         thread_db_is_async_p, thread_db_async and thread_db_async_mask.
7686
7687         * remote.c (remote_async_mask_value): New.
7688         (remote_return_zero): New.
7689         (init_remote_ops): Register remote_return_zero as callbacks of
7690         to_can_async_p and to_is_async_p.
7691         (remote_can_async_p, remote_is_async_p, remote_async): Update to
7692         use remote_async_mask_value.
7693         (remote_async_mask): New.
7694         (init_remote_async_ops): Remove to_async_mask_value setting and
7695         register remote_async_mask as to_async_mask callback in
7696         remote_async_ops.
7697
7698         * Makefile.in (linux-nat.o): Update.
7699
7700 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
7701
7702         * gdbthread.h (add_thread_with_info): New.
7703         * linux-thread-db.c: Add some documentation.
7704         (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
7705         (struct private_thread_info): Remove th_valid and ti_valid.
7706         Replace ti with tid.
7707         (thread_get_info_callback): Do not add TID to the new ptid.  Do
7708         not cache th or ti.
7709         (thread_db_map_id2thr, lwp_from_thread): Delete functions.
7710         (thread_from_lwp): Assert that the LWP is set.  Do not add TID to the
7711         new PTID.
7712         (attach_thread): Handle an already-existing thread.  Use
7713         add_thread_with_info.  Cache the th and tid.
7714         (detach_thread): Verify that private was set.  Remove verbose
7715         argument and printing.  Update caller.
7716         (thread_db_detach): Do not adjust inferior_ptid.
7717         (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
7718         (check_event, find_new_threads_callback): Do not add TID to the new PTID.
7719         (thread_db_wait): Do not use lwp_from_thread.
7720         (thread_db_pid_to_str): Use the cached TID.
7721         (thread_db_extra_thread_info): Check that private is set.
7722         (same_ptid_callback): Delete.
7723         (thread_db_get_thread_local_address): Do not use it or check
7724         is_thread.  Check that private is set.  Assume that the thread
7725         handle is already cached.
7726         (init_thread_db_ops): Remove to_resume and to_kill.
7727         * thread.c (add_thread_with_info): New.
7728         (add_thread): Use it.
7729         * linux-nat.c (find_thread_from_lwp): Delete.
7730         (exit_lwp): Do not use it.  Check print_thread_events.  Print before
7731         deleting the thread.
7732         (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
7733         * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
7734         * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
7735         printf_unfiltered for thread exits.
7736         * procfs.c (procfs_wait): Likewise.
7737
7738 2008-03-21  Chris Demetriou  <cgd@google.com>
7739
7740         * symtab.c (rbreak_command): Quote symbol name before passing
7741         it to break_command.
7742
7743 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
7744
7745         * eval.c (evaluate_subexp_for_address): Clarify error message.
7746         Use value_must_coerce_to_target.
7747         * infcall.c (value_arg_coerce): Call value_coerce_to_target.
7748         * valops.c (value_assign): Call value_coerce_to_target when
7749         assigning to anything but internalvars.  Leave GDB-side arrays
7750         as arrays when assigning to internalvars.
7751         (value_must_coerce_to_target, value_coerce_to_target): New.
7752         (value_coerce_array, value_addr): Call value_coerce_to_target.
7753         (value_array): Create the array in GDB's memory instead of
7754         the inferior's.
7755         * value.h (value_must_coerce_to_target, value_coerce_to_target):
7756         Declare.
7757
7758 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
7759
7760         * top.c (quit_confirm): Warn that we will kill the program.
7761
7762 2008-03-19  Pedro Alves  <pedro@codesourcery.com>
7763
7764         * inflow.c (terminal_ours_1): Guard access to
7765         inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
7766
7767 2008-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
7768             Jim Blandy  <jimb@codesourcery.com>
7769             Daniel Jacobowitz  <drow@false.org>
7770
7771         * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
7772         (dwarf2_read_address): Update prototype.
7773
7774         * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
7775         (signed_address_type): Likewise.
7776         (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
7777         (execute_stack_op): Update calls to unsigned_address_type,
7778         signed_address_type and dwarf2_read_address.  Fix implementation
7779         of DW_OP_deref_size.
7780
7781         * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
7782         (dwarf2_per_cu_addr_size): Likewise.
7783         (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
7784         (struct dwarf2_loclist_baton): Likewise.
7785
7786         * dwarf2loc.c (find_location_expression): Update calls to
7787         dwarf2_read_address.  Use dwarf2_per_cu_objfile and
7788         dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
7789         (locexpr_describe_location): Likewise.
7790         (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
7791         Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
7792         (dwarf2_loc_desc_needs_frame): Add PER_CU parameter.  Set ctx->addr_size
7793         to dwarf2_per_cu_addr_size (per_cu).
7794         (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
7795         (loclist_read_variable): Likewise.
7796         (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
7797
7798         * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
7799         instead of baton->objfile.
7800         (dwarf2_per_cu_obfile): New function.
7801         (dwarf2_per_cu_addr_size): Likewise.
7802
7803         * dwarf2-frame.c (struct comp_unit): Move higher.
7804         (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
7805         (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
7806         (execute_cfa_program): Add FDE parameter.  Replace EH_FRAME_P
7807         parameter by using fde->eh_frame_p.  Use read_encoded_value
7808         to implement DW_CFA_set_loc.
7809         (struct dwarf2_frame_cache): Add ADDR_SIZE member.
7810         (dwarf2_frame_cache): Set cache->addr_size.  Update calls to
7811         execute_stack_op and execute_cfa_program.
7812         (dwarf2_frame_prev_register): Update calls to execute_stack_op.
7813         (size_of_encoded_value): Remove.
7814         (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
7815         Remove call to size_of_encoded_value.  Implement DW_EH_PE_funcrel.
7816         (add_cie): Set cie->unit backlink.
7817         (decode_frame_entry_1): Set cie->addr_size.  Update calls to
7818         read_encoded_value.
7819         (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
7820
7821 2008-03-17  Markus Deuling  <deuling@de.ibm.com>
7822
7823         * i386-tdep.c (i386_print_insn): Remove unnecessary call to
7824         gdbarch_bfd_arch_info.
7825
7826 2008-03-17  Joel Brobecker  <brobecker@adacore.com>
7827
7828         * aix-thread.c (pdc_read_regs): Minor reformatting.
7829
7830 2008-03-17  Vladimir Prus  <vladimir@codesourcery.com>
7831
7832         * thread.c (print_thread_info): Don't insist
7833         on having current thread if there are no
7834         threads at all.
7835
7836 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
7837
7838         * infcmd.c (attach_command_post_wait)
7839         (attach_command_continuation): New.
7840         (attach_command): Support background async execution, and async
7841         execution in synchronous mode.
7842
7843 2008-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
7844
7845         * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
7846         * symmisc.c (dump_symtab_1): Likewise.
7847         * wrapper.c (gdb_value_struct_elt): Likewise.
7848
7849 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
7850
7851         * linux-nat.c (linux_nat_filter_event): Fix comment typo.
7852
7853 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
7854
7855         * linux-nat.c (linux_nat_filter_event): New, refactored from
7856         linux_nat_wait.
7857         (linux_nat_wait): Call linux_nat_filter_event.
7858
7859 2008-03-17  Ulrich Weigand  <uweigand@de.ibm.com>
7860
7861         * top.c (execute_command): Fix uninitialized variable error.
7862
7863 2008-03-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
7864
7865         * Makefile.in (amd64nbsd-nat.o): New dependency.
7866         * amd64nbsd-nat.c: Include "nbsd-nat.h".
7867         (_initialize_amd64nbsd_nat): Update target vector to use
7868         nbsd_pid_to_exec_file.
7869         * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
7870
7871 2008-03-15  Vladimir Prus  <vladimir@codesourcery.com>
7872
7873         Remove ignoring leading exec events code.
7874         * fork-child.c (startup_inferior): Do not set
7875         inferior_ignoring_leading_exec_events.
7876         * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
7877         (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
7878         * infrun.c (inferior_ignoring_leading_exec_events): Remove.
7879         (handle_inferior_event): Remove code for ignoring leading exec
7880         events.
7881         * target.c (update_current_target): Do not inherit, or default,
7882         to_reported_exec_events_per_exec_call.
7883         (debug_to_reported_exec_events_per_exec_call): Remove.
7884         (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
7885         * target.h (target_reported_exec_events_per_exec_call): Remove.
7886         (struct target): Remove the to_reported_exec_events_per_exec_call
7887         field.
7888
7889 2008-03-15  Vladimir Prus  <vladimir@codesourcery.com>
7890
7891         Implement -thread-info.
7892         * gdbthread.h (print_thread_info): Declare.
7893
7894         * thread.c (print_thread_info): New, extracted
7895         from info_threads_command and adjusted to
7896         work for CLI and MI.
7897         (info_threads_command): Use print_thread_info.
7898         * Makefile.in: Update dependencies.
7899
7900         * mi/mi-cmds.c (mi_cmds): Specify a handler
7901         for -thread-info.
7902         * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
7903         * mi/mi-main.c (mi_cmd_thread_info): New.
7904         (mi_cmd_list_features): Include 'thread-info'.
7905
7906 2008-03-14  Kevin Buettner  <kevinb@redhat.com>
7907
7908         * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
7909         to decide whether to match instruction patterns using "sw" and "sd".
7910
7911 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
7912
7913         * infcmd.c (jump_command): Postpone disabling stdin until after
7914         the possible query.
7915
7916 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
7917
7918         * inflow.c (gdb_getpgrp): New.
7919         (gdb_has_a_terminal): Use get_getpgrp.
7920         (terminal_ours_1): If attach_flag is set, don't refetch
7921         inferior_process_group.
7922
7923 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
7924
7925         * features/library-list.dtd: Allow "section" elements as children
7926         of "library".  Add "section" element and describe its attributes.
7927
7928         * solib-target.c (struct lm_info): Add section_bases member.
7929         (library_list_start_segment): Error out if seen a section element.
7930         (library_list_start_section): New.
7931         (library_list_end_library): New.
7932         (solib_target_free_library_list): Free section_bases.
7933         (section_attributes): New.
7934         (library_children): Make "segment" optional.  Add "section" child.
7935         (library_list_children): Register library_list_end_library.
7936         (solib_target_relocate_section_addresses): Handle section bases.
7937
7938         * NEWS: Mention new qXfer:libraries:read section offsets support.
7939
7940 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
7941
7942         * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
7943         (make_exec_error_cleanup): Remove declarations.
7944         * utils.c (exec_error_cleanup_chain): Remove.
7945         (do_exec_error_cleanups, discard_exec_error_cleanups)
7946         (make_exec_error_cleanup): Remove.
7947         * event-loop.c (start_event_loop): Adjust call to
7948         async_enable_stdin.
7949         * event-top.c (async_enable_stdin): Remove the paramater dummy.
7950         (async_disable_stdin): Don't register async_enable_stdin via
7951         cleanup.
7952         * inf-loop.c (inferior_event_handler): Don't
7953         call do_exec_error_cleanups.  Call async_enable_stdin instead.
7954         * event-loop.c (start_event_loop): Adjust call to
7955         async_enable_stdin.
7956         * tui/tui-interp.c (tui_command_loop): Adjust call to
7957         async_enable_stdin.
7958
7959 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
7960
7961         Async mode fixes.
7962         * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
7963         * breakpoint.c (bpstat_do_actions): In async mode,
7964         don't jump to top expecting stop_bpstat to be already
7965         updated.
7966         * event-loop.c (start_event_loop): Call async_enable_stdin
7967         on exception.
7968         * event-top.c (async_enable_stdin): Do nothing if sync_execution
7969         is not set.
7970         (command_handler): Do not setup continuation here.
7971         (command_line_handler_continuation): Move to...
7972         * top.c (command_line_handler_continuation): ... here.
7973         (execute_command): In async mode, register continuation.
7974         Don't check frame's language in running in async mode.
7975         * exceptions.c (throw_exception): Don't do exec_error_cleanups.
7976         * inf-loop.c (complete_execution): Inline into...
7977         (inferior_event_handler): ... here.  Clear target_executing before
7978         doing any cleanups.  Don't try to show prompt if the target was
7979         resumed.
7980         * infcmd.c (signal_command): Add support for async mode.
7981         (finish_command): Only add continuation if the target was
7982         successfully resumed.
7983         * remote.c (init_async_opts): Register to_get_thread_local_address
7984         handler.
7985         * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
7986         with sync_execution.
7987         * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
7988         on exception.
7989
7990 2008-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
7991
7992         * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
7993         * exec.c (exec_bfd_mtime): Define.
7994         (exec_close): Clear it.
7995         (exec_file_attach): Set it.
7996         * gdbcore.h (exec_bfd_mtime): Declare.
7997         * source.c (find_source_lines): Do not use bfd_get_mtime.
7998
7999 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8000
8001         * top.c (simplified_command_loop): Remove.
8002
8003 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8004
8005         Remove unused remote.c hooks.
8006         * remote.c (deprecated_target_resume_hook)
8007         (deprecated_target_wait_loop_hook): Remove.
8008         (remote_resume): Do not call deprecated_target_resume_hook.
8009         (remote_wait): Do not call deprecated_target_wait_loop_hook.
8010         (remote_async_wait): Likewise.
8011
8012 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8013
8014         Implement MI notification for new threads.
8015         * doc/observer.texi (new_thread): Document.
8016         * observer.sh: Forward declare struct thread_info.
8017         * thread.c (add_thread): Notify observer.
8018
8019         * interps.h (interp_init_ftype): New parameter
8020         top_level.
8021         (interp_set): Likewise.
8022         (top_level_interpreter_data): Declare.
8023         * interps.c (interp_set): New parameter top_level.
8024         Pass it to interpreter's init function.  Remember
8025         top level interpreter.
8026         (interpreter_exec_cmd): Adjust.
8027         (top_level_interpreter_data): New.
8028         * main.c (captured_main): Pass 1 for top_level
8029         parameter of interp_set.
8030         * cli/cli-interp.c (cli_interpreter_init): New
8031         parameter top_level.
8032         * tui/tui-interp.c (tui_init): New parameter top_level.
8033
8034         * mi/mi-interp.c (mi_new_thread): New.
8035         (mi_interpreter_init): If top level, register
8036         observer for new threads.
8037
8038         * Makefile.in (mi-interp.o, thread.o): Update dependencies.
8039
8040 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8041
8042         * top.c (execute_command): Disable break and stop
8043         commands in async mode.
8044
8045 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8046
8047         revert:
8048         2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8049         * inf-loop.c (inferior_event_handler): Don't include remote.h.
8050         Call target_stop in the INF_QUIT_REQ case.
8051         * Makefile.in (inf-loop.o): Update.
8052
8053 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8054
8055         * inf-loop.c (inferior_event_handler): Don't include remote.h.
8056         Call target_stop in the INF_QUIT_REQ case.
8057         * Makefile.in (inf-loop.o): Update.
8058
8059 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8060
8061         * top.c (execute_command): Enable break, info and interrupt
8062         commands in async mode.
8063
8064 2008-03-13  Vladimir Prus  <vladimir@codesourcery.com>
8065             Daniel Jacobowitz  <dan@codesourcery.com>
8066
8067         * breakpoint.h (breakpoint_restore_shadows): New
8068         declaration.
8069         * breakpoint.c (breakpoint_restore_shadows): New.
8070         (read_memory_nobpt): Delete.
8071         * gdbcore.h (read_memory_nobpt): Delete declaration.
8072         * target.c (memory_xfer_partial): Call
8073         breakpoint_restore_shadows.
8074         (restore_show_memory_breakpoints)
8075         (make_show_memory_beakpoints_cleanup): New.
8076         (show_memory_breakpoints): New.
8077         * target.h (make_show_memory_beakpoints_cleanup): Declare.
8078         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
8079         Make sure we see memory breakpoints when checking if
8080         breakpoint is still there.
8081         * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
8082         hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
8083         m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
8084         sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
8085
8086 2008-03-12  Pedro Alves  <pedro@codesourcery.com>
8087
8088         * thread.c (add_thread): Use printf_unfiltered to print.
8089
8090 2008-03-12  Joel Brobecker  <brobecker@gnat.com>
8091
8092         * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
8093         that is true only on x86-solaris and x86_64-solaris.
8094         * procfs.c: Likewise. Move procfs_find_LDT_entry up together
8095         with proc_get_LDT_entry.
8096
8097 2008-03-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8098
8099         * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
8100         * config.in, configure: Regenerate.
8101         * fork-child.c (fork_inferior): Call create_tty_session.
8102         * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
8103         (create_tty_session): New function.
8104         * terminal.h: Declare create_tty_session.
8105
8106 2008-03-12  Alan Modra  <amodra@bigpond.net.au>
8107
8108         PR 5900
8109         * elfread.c (elf_symtab_read): Make shndx an unsigned int.
8110         * mipsread.c: Include elf/internal.h.
8111         (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
8112         to internal range.
8113
8114 2008-03-11  Markus Deuling  <deuling@de.ibm.com>
8115
8116         * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
8117         to get at the current architecture and at the target specific vector.
8118         Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
8119         remove define of I387_ST0_REGNUM.
8120
8121         * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
8122
8123         (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
8124         get at the current architecture
8125         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
8126         parameter.
8127
8128         * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
8129         I387_NUM_XMM_REGS and I387_MM0_REGNUM.
8130
8131         (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
8132         I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
8133         (I387_FSTAT_REGNUM): Add target specific vector as parameter.
8134
8135         (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
8136         at the target specific vector.
8137
8138         (i386_get_longjmp_target): Use get_frame_arch to get at the current
8139         architecture. Use gdbarch_tdep to get at the target specific vector.
8140
8141         (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
8142         update caller. Use gdbarch_tdep to get at the target specific vector.
8143
8144         (i386_register_to_value: Use get_frame_arch to get at the current
8145         architecture.
8146
8147         * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
8148         parameter.
8149
8150         * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8151         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
8152         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
8153         FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
8154
8155         (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
8156         undef's.
8157
8158         (i387_convert_register_p, i387_register_to_value,
8159         i387_value_to_register): Update call for i386_fp_regnum_p.
8160
8161         * i387-tdep.h: Remove comment.
8162         (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
8163         (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8164         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
8165         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
8166         I387_MXCSR_REGNUM): Add target specific vector as parameter.
8167
8168 2008-03-10  Daniel Jacobowitz  <dan@codesourcery.com>
8169
8170         * Makefile.in (fork-child.o): Update.
8171         * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
8172         argument.  Gather all gdbserver features together.
8173         * fork-child.c (exec_wrapper): New variable.
8174         (fork_inferior): Use it.
8175         (startup_inferior): Skip an extra trap if using "set exec-wrapper".
8176         (unset_exec_wrapper_command, _initialize_fork_child): New.
8177
8178 2008-03-10  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
8179
8180         * source.c (directory_command): Modify the determination of
8181         condition of terminal "from_tty".
8182
8183 2008-03-10  Matt Rice  <ratmice@gmail.com>
8184
8185         * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
8186
8187 2008-03-10  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
8188
8189         * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
8190         of the data passing to strtoulst function.
8191         (info_spu_signal_command): Likewise.
8192
8193 2008-03-08  Vladimir Prus  <vladimir@codesourcery.com>
8194
8195         * mi/mi-interp.c (mi_command_loop): Remove
8196         commented-out code.
8197
8198 2008-03-07  Joel Brobecker  <brobecker@adacore.com>
8199
8200         * remote.c (extended_remote_attach_1): Make local variable pid an int
8201         instead of a pid_t.
8202
8203 2008-03-07  Joel Brobecker  <brobecker@adacore.com>
8204
8205         * solib-svr4.c (svr4_same_1): New function, originally extracted
8206         from svr4_same and expanded to handle the sparc64 case.
8207         (svr4_same): Move up and reimplement using svr4_same_1.
8208         (enable_break): Use svr4_same_1 to do shared library name comparisons.
8209
8210 2008-03-07  Ramana Radhakrishnan  <ramana.r@gmail.com>
8211
8212         * MAINTAINERS: Move self to Paper trail.
8213
8214 2008-03-05  Daniel Jacobowitz  <dan@codesourcery.com>
8215
8216         * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
8217         * event-loop.c (call_async_signal_handler): New.
8218         * event-loop.h (call_async_signal_handler)
8219         (gdb_call_async_signal_handler): Declare.
8220         (mark_async_signal_handler): Add comments.
8221         * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
8222         * mingw-hdep.c (sigint_event, sigint_handler): New.
8223         (gdb_select): Use them.  Wait for the readline signal handler
8224         to finish.
8225         (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
8226         * posix-hdep.c (gdb_call_async_signal_handler): New function.
8227         * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
8228         New.
8229         (remote_fileio_ctrl_c_signal_handler): Use
8230         gdb_call_async_signal_handler.
8231         (initialize_remote_fileio): Initialize sigint_fileio_token.
8232         * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
8233         not initialize tokens here.
8234         (handle_remote_sigint_twice): Likewise.  Reinstall
8235         handle_remote_sigint.
8236         (async_remote_interrupt_twice): Just call interrupt_query.
8237         (cleanup_sigint_signal_handler): Do not delete tokens.
8238         (remote_interrupt, remote_interrupt_twice): Use
8239         gdb_call_async_signal_handler.
8240         (interrupt_query): Reinstall the default signal handler.
8241         (_initialize_remote): Initialize tokens here.
8242
8243 2008-03-04  Joel Brobecker  <brobecker@adacore.com>
8244
8245         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
8246         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8247         Change the type of the lr register to code_ptr.
8248         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8249         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8250         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8251         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8252         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8253         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8254         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
8255
8256 2008-03-03  James E. Wilson  <wilson@tuliptree.org>
8257
8258         * MAINTAINERS: Update my email address.
8259
8260 2008-03-03  Keith Seitz  <keiths@redhat.com>
8261
8262         From Dave Murphy  <davem@devkitpro.org>:
8263         * configure.ac: Set tcl configdir to win under mingw.
8264         * configure: Regenerate.
8265
8266 2008-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
8267
8268         * breakpoint.c (fetch_watchpoint_value): New function.
8269         (update_watchpoint): Set and clear val_valid.  Use
8270         fetch_watchpoint_value.  Handle unreadable values on the
8271         value chain.  Correct check for user-requested array watchpoints.
8272         (breakpoint_init_inferior): Clear val_valid.
8273         (watchpoint_value_print): New function.
8274         (print_it_typical): Use it.  Do not free or clear old_val.  Print
8275         watchpoints even if old_val == NULL.
8276         (watchpoint_check): Use fetch_watchpoint_value.  Check for values
8277         becoming readable or unreadable.
8278         (watch_command_1): Use fetch_watchpoint_value.  Set val_valid.
8279         (do_enable_watchpoint): Likewise.
8280         * breakpoint.h (struct breakpoint): Update comment for val.  Add
8281         val_valid.
8282         * NEWS: Mention watchpoints on inaccessible memory.
8283
8284 2007-02-29  Daniel Jacobowitz  <dan@codesourcery.com>
8285
8286         * Makefile.in (i386-nat.o): Update.
8287         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
8288         i386_use_watchpoints.
8289         * i386-linux-nat.c (_initialize_i386_linux_nat): Call
8290         i386_use_watchpoints.
8291         * i386-nat.c (i386_stopped_data_address): Take two arguments.
8292         (i386_stopped_by_watchpoint): Update call.
8293         (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
8294         * config/i386/nm-i386.h: Conditionalize definitions on
8295         ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
8296         (i386_use_watchpoints): Declare.
8297         (i386_stopped_data_address): Update.
8298         * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8299         * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8300
8301 2008-02-29  Joel Brobecker  <brobecker@adacore.com>
8302
8303         GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
8304         * version.in: Bump version to 6.8.50.20080229-cvs.
8305
8306 2008-02-28  Markus Deuling  <deuling@de.ibm.com>
8307
8308         * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
8309         properly.
8310
8311 2008-02-28  Tom Tromey  <tromey@redhat.com>
8312
8313         * infcmd.c (notice_args_read): Print result of get_inferior_args.
8314
8315 2008-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
8316
8317         * infcmd.c (kill_if_already_running): Make static.  Use
8318         target_require_runnable.
8319         * target.c (target_require_runnable): New.
8320         * target.h (target_require_runnable): Declare.
8321
8322 2008-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
8323
8324         * frame.c (reinit_frame_cache): Only annotate if frames were
8325         previously valid.
8326
8327 2008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8328
8329         * regformats/reg-ppc.dat: Rename "ps" to "msr".
8330         * regformats/reg-ppc64.dat: Likewise.
8331
8332 2008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8333
8334         * features/Makefile (%.dat): Emit xmltarget statement.
8335
8336         * regformats/regdat.sh: Support xmltarget and xmlarch statments.
8337         Generate code to set gdbserver_xmltarget in init_registers_${name}.
8338
8339         * regformats/arm-with-iwmmxt.dat: Regenerate.
8340         * regformats/mips64-linux.dat: Regenerate.
8341         * regformats/mips-linux.dat: Regenerate.
8342         * regformats/rs6000/powerpc-32.dat: Regenerate.
8343         * regformats/rs6000/powerpc-64.dat: Regenerate.
8344         * regformats/rs6000/powerpc-e500.dat: Regenerate.
8345
8346         * regformats/reg-arm.dat: Add xmlarch statement.
8347         * regformats/reg-i386.dat: Likewise.
8348         * regformats/reg-i386-linux.dat: Likewise.
8349         * regformats/reg-x86-64-linux.dat: Likewise.
8350         * regformats/reg-spu.dat: Likewise.
8351
8352 2008-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
8353
8354         * remote.c (remote_wait, remote_async_wait): Stop if we receive
8355         an error.
8356
8357 2008-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
8358
8359         * utils.c (debug_timestamp): New.
8360         (vfprintf_unfiltered): Print timestamps if requested.
8361         (show_debug_timestamp): New.
8362         (initialize_utils): Register "set debug timestamp".
8363         * NEWS: Mention "set debug timestamp".  Add GDB 6.8 section.
8364
8365 2008-02-27  Joel Brobecker  <brobecker@adacore.com>
8366
8367         * breakpoint.c (skip_prologue_sal): New function.
8368         (resolve_sal_pc): Adjust SAL past prologue if the SAL was
8369         computed from a line number.
8370
8371 2008-02-27  Joel Brobecker  <brobecker@adacore.com>
8372
8373         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
8374         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8375         Set PC register type to "code_ptr".
8376         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8377         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8378         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8379         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8380         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8381         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8382         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
8383         Regenerate.
8384
8385 2008-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
8386
8387         * regformats/regdat.sh: Rename init_registers function in
8388         generated file to init_registers_${name}.
8389
8390         * regformats/reg-crisv32.dat: Set "name" to crisv32.
8391         * regformats/reg-ppc64.dat: Set "name" to ppc64.
8392         * regformats/reg-s390x.dat: Set "name" to s390x.
8393
8394 2008-02-26  Greg Law  <glaw@undo-software.com>
8395
8396         * regcache.c (registers_changed): Call reinit_frame_cache.
8397
8398 2008-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
8399
8400         * configure.tgt (sh-*-linux*): Match sh*.  Add glibc-tdep.o.
8401         * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
8402         and svr4_fetch_objfile_link_map.
8403         * Makefile.in (sh-linux-tdep.o): Update.
8404
8405 2008-02-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8406
8407         * amd64-tdep.c (amd64_classify): Add support for decimal float
8408         types.
8409         * i386-tdep.c (i386_return_value): Make 128-bit decimal float
8410         use the struct return convention.
8411
8412 2008-02-26  Nick Roberts  <nickrob@snap.net.nz>
8413
8414         * breakpoint.c (print_one_breakpoint_location): Revert Enb field
8415         to old format.  Discard breakpoint address if shared library is
8416         unloaded.
8417         (breakpoint_1): Adjust formatting of table header accordingly.
8418
8419 2008-02-25  Vladimir Prus  <vladimir@codesourcery.com>
8420
8421        * remote.c (remote_get_threadlist): If the response
8422        is empty, don't try to parse it.
8423
8424 2008-02-23  Vladimir Prus  <vladimir@codesourcery.com>
8425
8426         Unbreak 'target async'.
8427         * serial.c (serial_async): Set the
8428         handler function before enabling async
8429         mode.
8430
8431 2008-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
8432
8433         * solib-svr4.c (enable_break): Convert r_brk to a code address.
8434
8435 2008-02-21  Pedro Alves  <pedro@codesourcery.com>
8436
8437         * remote.c (extended_remote_attach_1): Set attach_flag.
8438         (extended_remote_create_inferior_1): Clear attach_flag.
8439
8440 2008-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
8441
8442         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
8443         r_brk_offset.
8444         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
8445         * solib-svr4.c (solib_svr4_r_brk): New.
8446         (open_symbol_file_object, svr4_current_sos): Always check the
8447         debug base.
8448         (svr4_fetch_objfile_link_map): Do not set debug_base.
8449         (enable_break): Use r_brk if it is set.
8450         (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
8451         (svr4_lp64_fetch_link_map_offsets): Likewise.
8452         * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
8453
8454 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
8455             Mark Kettenis  <kettenis@gnu.org>
8456
8457         * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
8458         trad_frame_saved_reg.
8459         (trad-frame.h): New include.
8460
8461         (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
8462         instead of frame_obstack_zalloc.
8463         (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
8464
8465         * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
8466
8467 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
8468
8469         * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
8470         from disassemble_info instead of gdbarch_byte_order.
8471
8472         * mips-tdep.c (gdb_print_insn_mips): Likewise.
8473         * arm-tdep.c (gdb_print_insn_arm): Likewise.
8474
8475 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
8476
8477         * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
8478         gdbarch as parameter.
8479
8480         * gdbarch.{c,h}: Regenerate.
8481
8482         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8483         parameter.
8484         * mem-break.c (default_memory_insert_breakpoint)
8485         (default_memory_remove_breakpoint): Likewise.
8486         * target.h (default_memory_remove_breakpoint)
8487         (default_memory_insert_breakpoint): Likewise.
8488
8489         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8490         parameter. Replace current_gdbarch by gdbarch.
8491         * m32r-tdep.c (m32r_memory_insert_breakpoint)
8492         (m32r_memory_remove_breakpoint): Likewise.
8493
8494 2008-02-19  Daniel Jacobowitz  <dan@codesourcery.com>
8495
8496         * MAINTAINERS: Add Vladimir Prus as MI maintainer.
8497
8498 2008-02-19  Joel Brobecker  <brobecker@adacore.com>
8499
8500         * NEWS: Add entry describing Add support improvements.
8501
8502 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8503
8504         * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
8505         M68K_FP0_REGNUM.
8506
8507 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8508
8509         * sentinel-frame.c (sentinel_frame_prev_register): Do not call
8510         register_offset_hack anymore.
8511
8512         * regcache.{c,h} (register_offset_hack): Remove.
8513
8514 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8515
8516         * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
8517
8518         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
8519         current_gdbarch by gdbarch.
8520         (hppa64_hpux_find_global_pointer): Likewise.
8521         * hppa-tdep.c (hppa_find_global_pointer): Likewise.
8522         (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
8523         find_global_pointer.
8524
8525         * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
8526         parameter.
8527         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
8528
8529         * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
8530         of gdbarch_num_regs.
8531
8532         * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
8533         replace current_gdbarch by gdbarch.
8534         (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
8535
8536 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8537
8538         * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
8539         and replace current_gdbarch by gdbarch.
8540
8541         (store_register): Update call for exec_one_dummy_insn.
8542         (fetch_register, store_register): Update call of regmap.
8543
8544         * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
8545         parameter and replace current_gdbarch by gdbarch.
8546
8547         (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
8548         the current architecture. Update call for getregs_supplies and
8549         getfpregs_supplies.
8550         (ppcnbsd_fetch_inferior_registers): Likewise.
8551
8552         * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
8553         replace current_gdbarch by gdbarch.
8554         (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
8555         get_regcache_arch to get at the current architecture. Update call for
8556         getfpregs_supplies.
8557
8558 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8559
8560         * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
8561         variables.
8562
8563 2008-02-15  Markus Deuling  <deuling@de.ibm.com>
8564
8565         * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
8566
8567 2008-02-14  Vladimir Prus  <vladimir@codesourcery.com>
8568
8569         * NEWS: Mention pending breakpints in MI.
8570
8571 2008-02-14  Markus Deuling  <deuling@de.ibm.com>
8572
8573         * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
8574
8575 2008-02-13  Markus Deuling  <deuling@de.ibm.com>
8576
8577         Add script to build and test GDB using enable-targets=all.
8578
8579         * gdb_buildall.sh: New file.
8580
8581 2008-02-11  Maxim Grigoriev  <maxim2405@gmail.com>
8582
8583         * NEWS (New native configurations): Xtensa GNU/Linux.
8584         (New targets): Xtensa GNU/Linux.
8585         * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
8586         xtensa-linux-tdep.o
8587         (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
8588         (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
8589         * configure.tgt (xtensa*-*-linux*): New entry.
8590         * xtensa-config.c (xtensa_tdep): New variable.
8591         (xtensa_config_byte_order, xtensa_config_tdep): Removed.
8592         (rmap): Change format based on new macro XTREG.
8593         (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
8594         * xtensa-linux-nat.c: New.
8595         * xtensa-linux-tdep.c: New.
8596         * xtensa-xtregs.c: New.
8597         * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
8598         (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
8599         (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
8600         (xtensa_register_t): New field coprocessor.
8601         (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
8602         * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
8603         (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
8604         Update to handle privileged registers.
8605         (xtensa_supply_gregset) Remove exccause and excvaddr registers.
8606         (xtensa_push_dummy_call): Set windowstart register correctly.
8607         (call0_analyze_prologue): Initialize xtensa_default_isa.
8608         (xtensa_derive_tdep): New.
8609         (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
8610         xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
8611         Call xtensa_derive_tdep().
8612         * config/xtensa/linux.mh: New.
8613         * regformats/reg-xtensa.dat: New.
8614
8615 2008-02-09  Aleksandar Ristovski  <aristovski@qnx.com>  (tiny change)
8616
8617         * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
8618         (filenames.h): New include.
8619         * Makefile.in (corelow.o): Add dependency for filenames.h.
8620
8621 2008-02-08  Doug Evans  <dje@google.com>
8622
8623         * source.c (find_and_open_source): Always rewrite absolute filenames.
8624
8625 2008-02-07  Doug Evans  <dje@google.com>
8626
8627         * breakpoint.c: #include "hashtab.h".
8628         (ambiguous_names_p): New fn.
8629         (update_breakpoint_locations): When restoring bp enable status, don't
8630         compare function names if any functions have same name.
8631         * Makefile.in (breakpoint.o): Add hashtab.h dependency.
8632
8633 2008-02-07  Joel Brobecker  <brobecker@adacore.com>
8634
8635         * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
8636         instead of just a VEC*. Update use of SV.
8637         (ada_make_symbol_completion_list): Update symbol_completion_add calls.
8638
8639 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
8640
8641         * NEWS: Put all new commands since gdb-6.7 together.
8642
8643 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
8644
8645         * ada-lang.c: #include "vec.h".
8646         (struct string_vector, new_string_vector, string_vector_append):
8647         Delete.
8648         (char_ptr): New typedef.
8649         (DEF_VEC_P (char_ptr)): New VEC type.
8650         (symbol_completion_add): Update profile to take the new VEC type
8651         instead of the old string_vector structure. Update code accordingly.
8652         (ada_make_symbol_completion_list): Use the new VEC type instead of
8653         the old string_vector structure, and update the code accordingly.
8654         * Makefile.in (ada-lang.o): Add dependency on vec.h.
8655
8656 2008-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
8657
8658         * p-exp.y: Set current_type in missing places.
8659         (leftdiv_is_integer): New static variable.
8660         Typecast right operand of BINOP_DIV to long_double if both operands
8661         are integers.
8662
8663 2008-02-06  Maciej W. Rozycki  <macro@mips.com>
8664
8665         * remote-mips.c (set_breakpoint): Rename to...
8666         (mips_set_breakpoint): ... this.
8667         (clear_breakpoint): Rename to...
8668         (mips_clear_breakpoint): ... this.
8669         (common_breakpoint): Rename to...
8670         (mips_common_breakpoint): ... this.
8671         (check_lsi_error): Rename to...
8672         (mips_check_lsi_error): ... this.
8673
8674 2007-02-05  Joel Brobecker  <brobecker@adacore.com>
8675
8676         * language.h (struct language_defn): Add new field
8677         la_make_symbol_completion_list.
8678         * symtab.c (default_make_symbol_completion_list): Renames
8679         make_symbol_completion_list.
8680         (make_symbol_completion_list): New function.
8681         * symtab.h (default_make_symbol_completion_list): Add declaration.
8682         * langauge.c (unknown_language): Set la_make_symbol_completion_list.
8683         (auto_language, local_language): Likewise.
8684         * objc-lang.c (objc_language_defn): Likewise.
8685         * scm-lang.c (scm_language_defn): Likewise.
8686         * m2-lang.c (m2_language_defn): Likewise.
8687         * f-lang.c (f_language_defn): Likewise.
8688         * jv-lang.c (java_language_defn): Likewise.
8689         * p-lang.c (pascal_language_defn): Likewise.
8690         * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
8691         (minimal_language_defn): Likewise.
8692         * ada-lang.c (struct string_vector): New structure.
8693         (new_string_vector, string_vector_append, ada_unqualified_name)
8694         (add_angle_brackets, symbol_completion_match, symbol_completion_add)
8695         (ada_make_symbol_completion_list): New functions.
8696         (ada_language_defn): Set la_make_symbol_completion_list.
8697         * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
8698         this function is static.
8699
8700 2008-02-05  Kevin Buettner  <kevinb@redhat.com>
8701
8702         * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
8703         to account for call site optimizations.
8704
8705 2008-02-05  Andrzej Zaborowski  <balrogg@gmail.com>
8706
8707         * tracepoint.c (read_actions): Handle end-of-text indicator
8708         in action list properly.  (Committed by Jim Blandy)
8709
8710 2008-02-05  Jim Blandy  <jimb@red-bean.com>
8711
8712         * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
8713         pseudoregister, not an internal error.
8714         Reported by: Andrzej Zaborowski
8715
8716 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
8717
8718         * varobj.c (c_value_of_variable): Use xstrdup.
8719
8720 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
8721
8722         Update stored rendition of varobj value when format changes.
8723         * varobj.c (varobj_set_display_format): Recomputed
8724         print_value.
8725         (c_value_of_variable): Return print_value.
8726
8727 2008-02-03  Doug Evans  <dje@google.com>
8728
8729         * eval.c (evaluate_subexp_standard): Fix type of result of mixed
8730         integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
8731         * valops.c (value_one): New function.
8732         * value.h (value_one): Declare.
8733
8734         Fix argument promotion for binary arithmetic ops for C.
8735         * valarith.c (unop_result_type): New fn.
8736         (binop_result_type): New fn.
8737         (value_binop): Move result type computation to binop_result_type.
8738         (value_pos, value_neg, value_complement): Move result type
8739         computation to unop_result_type.
8740
8741         PR 2384
8742         * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
8743         Return basetype, fieldno if found.  All callers updated.
8744         Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
8745         objfile.
8746         * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
8747         * symfile.h (fill_in_vptr_fieldno): Delete.
8748
8749 2008-02-02  Doug Evans  <dje@google.com>
8750
8751         * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
8752
8753         * typeprint.c (*): Whitespace cleanup.
8754
8755 2008-02-02  Mark Kettenis  <kettenis@gnu.org>
8756             Luis Machado  <luisgpm@br.ibm.com>
8757             Thiago Jung Bauermann  <bauerman@br.ibm.com>
8758
8759         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
8760         don't fit into registerson the stack the way GCC does.
8761
8762 2008-02-01  Joel Brobecker  <brobecker@adacore.com>
8763
8764         * symtab.c (symbol_set_names): Do not add an entry in the demangling
8765         hash table for Ada symbols. Just store the linkage name as is,
8766         and leave the demangled_name as NULL.
8767
8768 2007-02-01  Joel Brobecker  <brobecker@adacore.com>
8769
8770         * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
8771         in the global scope.
8772         (new_symbol): Likewise.
8773
8774 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
8775
8776         * breakpoint.c (break_command_1): Return void.
8777         (break_command_really): Return void.  Rethrow
8778         exceptions instead of returning.
8779         (gdb_breakpoint): Remove the error_message parameter.
8780         Return void.  Rename to set_breakpoint.
8781         * gdb.h (gdb_breakpoint): Rename and move to...
8782         * breakpoint.h (set_breakpoint): ...here.
8783         * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
8784         event hooks even if exception is thrown.  Adjust to
8785         gdb_breakpoint interface changes.
8786
8787
8788 2008-02-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8789
8790         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
8791         float in both first and second word in the doubleword, to support
8792         old and new ABIs.
8793
8794 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
8795
8796         Properly rethrow exception.  This fixes errors
8797         about non-existent functions for -break-insert.
8798         * breakpoint.c (break_command_really): Use throw_exception
8799         for rethrowing.  If rethrowing, don't print the exception.
8800
8801 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8802
8803         * NEWS: Mention Decimal Floating Point support.
8804
8805 2008-01-31  Joel Brobecker  <brobecker@adacore.com>
8806
8807         * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
8808         value type to builtin_type_void_func_ptr.
8809
8810 2008-01-31  Andreas Krebbel  <krebbel1@de.ibm.com>
8811
8812         * s390-tdep.c (is_float_singleton, is_float_like,
8813         alignment_of, s390_return_value): Make checks for
8814         TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
8815
8816 2008-01-31  Luis Machado  <luisgpm@br.ibm.com>
8817             Thiago Jung Bauermann  <bauerman@br.ibm.com>
8818
8819         * infcmd.c (default_print_registers_info): Also print hex
8820         raw contents for TYPE_CODE_DECFLOAT registers.
8821         * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
8822         * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
8823         (rs6000_register_name): Add support for DFP pseudo-registers.
8824         (rs6000_pseudo_register_type): Likewise.
8825         rs6000_pseudo_register_reggroup_p): Likewise.
8826         (ppc_pseudo_register_read): New function.
8827         (ppc_pseudo_register_write): Likewise.
8828         (rs6000_pseudo_register_read): Likewise.
8829         (rs6000_pseudo_register_write): Likewise.
8830         (e500_pseudo_register_read): Move checks to
8831         rs6000_pseudo_register_read.
8832         (e500_pseudo_register_write): Move checks to
8833         rs6000_pseudo_register_write.
8834         (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum.  Install
8835         rs6000_pseudo_register_read and rs6000_pseudo_register_write
8836         in gdbarch if SPE or DFP is available.  Adjust gdbarch's
8837         num_pseudo_regs to account for DFP pseudo regs.
8838
8839 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8840
8841         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
8842         * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
8843         (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
8844         rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
8845         e500_pseudo_register_read, e500_pseudo_register_write): Use
8846         IS_SPE_PSEUDOREG macro.
8847         (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
8848         (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
8849         Remove initialization of tdep->ppc_ev31_regnum.
8850
8851 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
8852
8853         * printcmd.c (print_formatted): Handle references as for unformatted
8854         prints.
8855
8856 2008-01-30  Joel Brobecker  <brobecker@adacore.com>
8857
8858         * eval.c (evaluate_subexp_standard): Add handling of user
8859         registers when in EVAL_AVOID_SIDE_EFFECTS mode.
8860
8861 2008-01-30  Pierre Muller  <muller@ics.u-strasbg.fr>
8862
8863         * eval.c (evaluate_subexp_standard): Support
8864         BINOP_INTDIV opcode.
8865
8866 2008-01-30  Paul N. Hilfinger  <hilfinger@adacore.com>
8867
8868         * valarith.c (value_binop): Add floating-point BINOP_MIN and
8869         BINOP_MAX cases.
8870         For BINOP_EXP, use length and signedness of left operand only for
8871         result, as for shifts.
8872         For integral operands to BINOP_EXP, use new integer_pow and
8873         uinteger_pow functions so as to get full range of results.
8874         (integer_pow): New function.
8875         (uinteger_pow): New function.
8876
8877 2008-01-30  Vladimir Prus  <vladimir@codesourcery.com>
8878
8879         Use vector for varobj_list_children interface.
8880         * gdb/varobj.c (varobj_list_children): Return vector
8881         of varobjs.
8882         * gdb/varobj.h (varobj_list_children): Adjust
8883         prototype.
8884         (varobj_p): Declare.  Declare vector thereof.
8885         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
8886         for varobj_list_children change.
8887         * Makefile.in (varobj_h): Update dependencies.
8888
8889 2008-01-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8890
8891         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
8892         TYPE_CODE_DECFLOAT arguments.
8893         (ppc64_sysv_abi_push_dummy_call) Likewise.
8894         (get_decimal_float_return_value): New function.
8895         (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
8896         values by calling get_decimal_float_return_value.
8897         (ppc64_sysv_abi_return_value): Likewise.
8898
8899 2008-01-30  Nick Roberts  <nickrob@snap.net.nz>
8900
8901         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):  Add field
8902         for preprocessor macro information.  Formatting changes.
8903
8904 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
8905
8906         * remote.c (struct remote_state): Add cached_wait_status.
8907         (remote_exec_file): New variable.
8908         (PACKET_vAttach, PACKET_vRun): New constants.
8909         (extended_remote_restart): Do not query for status.
8910         (struct start_remote_args): New.
8911         (remote_start_remote): Take it as a second argument.  Check
8912         whether the target is running.  Issue an error for non-running
8913         non-extended targets.  Cache the wait status.  Set inferior_ptid
8914         here.
8915         (remote_open_1): Prompt to disconnect non-running targets.  Make
8916         sure the target is marked running.  Do not set inferior_ptid here.
8917         Update call to remote_start_remote.  Do not call remote_check_symbols
8918         if the target is not running.
8919         (remote_detach_1): Rename from remote_detach.  Take an EXTENDED
8920         argument.  Handle a non-running target.
8921         (remote_detach): Use it.
8922         (extended_remote_detach): New.
8923         (remote_disconnect): Fix typo.  Use remoute_mourn_1.
8924         (extended_remote_attach_1, extended_remote_attach)
8925         (extended_async_remote_attach): New.
8926         (remote_vcont_resume): Remove unused variable.
8927         (remote_wait, remote_async_wait): Use any cached wait status.
8928         (putpkt_binary, getpkt): Clear any cached wait status.
8929         (extended_remoute_mourn_1): New.
8930         (extended_remote_mourn): Use it.
8931         (extended_async_remote_mourn, extended_remote_run): New.
8932         (extended_remote_create_inferior_1): New.
8933         (extended_remote_create_inferior): Use it.
8934         (extended_remote_async_create_inferior): Likewise.
8935         (remote_xfer_partial): Skip for non-executing targets.
8936         (init_extended_remote_ops): Set to_detach and to_attach.
8937         (init_extended_async_remote_ops): Likewise.  Use
8938         extended_async_remote_mourn.
8939         (_initialize_remote): Register vAttach, vRun, and
8940         set remote exec-file.
8941         * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
8942
8943 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
8944
8945         * Makefile.in (symfile.o): Update.
8946         * NEWS: Mention exec tracing support.
8947         * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
8948         exec events.
8949         * infcmd.c (kill_if_already_running, detach_command)
8950         (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
8951         * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
8952         (follow_exec): Do not check may_follow_exec.  Do not mourn and push
8953         targets.  Apply the sysroot path to the loaded executable.  Use
8954         no_shared_libraries.
8955         * linux-nat.c (linux_child_follow_fork): Print fork following
8956         messages if verbose.
8957         (kill_wait_callback): Kill again before waiting a second time.
8958         * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
8959         no_shared_libraries.
8960
8961 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
8962
8963         * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
8964
8965 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
8966
8967         * nto-tdep.h: Remove #include "defs.h".
8968         * nto-tdep.c: Add #include "defs.h".
8969         * Makefile.in (nto_tdep_h): Update dependencies.
8970         (nto-tdep.o): Likewise.
8971
8972 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
8973
8974         * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
8975         and use it.
8976         (proceed, start_remote): Update call to wait_for_inferior.
8977         * inferior.h (wait_for_inferior): Update declaration.
8978         * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
8979         solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
8980         * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
8981         TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
8982
8983 2008-01-29  Aleksandar Ristovski  <aristovski@qnx.com>
8984
8985         * varobj (adjust_value_for_child_access): Added checking for
8986         returned value from gdb_value_ind.
8987         (c_describe_child): Likewise.
8988         (cplus_describe_child): Fixed a typo.
8989
8990 2008-01-29  Jim Blandy  <jimb@red-bean.com>
8991
8992         * MAINTAINERS: Update my info.
8993
8994 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
8995
8996         Use multiple locations for hardware watchpoints.
8997         This eliminates the need to traverse value chain, doing
8998         various checks, in three different places.
8999
9000         * breakpoint.h (struct bp_location): New fields
9001         lengths and watchpoint_type.
9002         (struct breakpoint): Remove the val_chain field.
9003         * breakpoint.c (is_hardware_watchpoint): New.
9004         (free_valchain): Remove.
9005         (update_watchpoint): New.
9006         (insert_bp_location): For hardware watchpoint, just
9007         directly insert it.
9008         (insert_breakpoints): Call update_watchpoint_locations
9009         on all watchpoints.  If we have failed to insert
9010         any location of a hardware watchpoint, remove all inserted
9011         locations.
9012         (remove_breakpoint): For hardware watchpoints, directly
9013         remove location.
9014         (watchpoints_triggered): Iterate over locations.
9015         (bpstat_stop_status): Use only first location of
9016         a resource watchpoint.
9017         (delete_breakpoint): Don't call free_valchain.
9018         (print_one_breakpoint): Don't print all
9019         locations for watchpoints.
9020         (breakpoint_re_set_one): Use update_watchpoint for
9021         watchpoints.
9022
9023 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
9024
9025         Don't reset watchpoint block on solib load.
9026
9027         * breakpoint.c (insert_bp_location): For watchpoints,
9028         recompute condition.
9029         (breakpoint_re_set_one): Instead of recomputing value
9030         and condition for watchpoints, just reset value and
9031         let insert_breakpoints/insert_bp_location recompute it.
9032         Don't do anything about disabled watchpoint.
9033
9034 2008-01-29  Pierre Muller  <muller@ics.u-strasbg.fr>
9035
9036         * valarith.c (value_binop): Handle unsigned integer
9037         division by zero.
9038
9039 2008-01-28  Kevin Buettner  <kevinb@redhat.com>
9040
9041         * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
9042         instruction pattern that appears frequently in position
9043         independent code.  Fix bug in code which looks for "fmov" and
9044         backtracks if no "fmov" is found.
9045
9046 2008-01-28  Doug Evans  <dje@google.com>
9047
9048         * dbxread.c (read_dbx_symtab): Fix indentation.
9049         Reformat comments to 80 columns.
9050         Move local var def closer to only use.
9051
9052 2008-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
9053
9054         * fork-child.c (SHELL_FILE): Remove #ifndef.
9055         (fork_inferior): Remove SHELL_COMMAND_CONCAT.
9056
9057 2008-01-25  Pierre Muller  <muller@ics.u-strasbg.fr>
9058
9059         * i386-tdep.c (i386_skip_noop): New function.
9060         (i386_analyze_prologue): Call i386_skip_noop function.
9061
9062 2008-01-24  Michael Snyder  <msnyder@specifix.com>
9063
9064         * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
9065         * win32-nat.c (win32_xfer_partial): Ditto.
9066         * target.c (default_xfer_partial): Minor whitespace adjustment.
9067
9068 2008-01-24  Pedro Alves  <pedro@codesourcery.com>
9069
9070         * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
9071         strip bit 1 even if pc doesn't point to thumb code.
9072
9073 2008-01-23  Daniel Jacobowitz  <dan@codesourcery.com>
9074
9075         * remote.c (remote_wait): Handle SIGINT between packets.
9076         (remote_async_wait): Likewise.
9077
9078 2008-01-23  Vladimir Prus  <vladimir@codesourcery.com>
9079             Chris Demetriou  <cgd@google.com>
9080
9081         * thread.c (add_thread_silent): Renamed
9082         from add_thread.
9083         (print_thread_events): New variable definition.
9084         (show_print_thread_events): New function.
9085         (_initialize_thread): Add "set print thread-events" and
9086         "show print thread-events" commands.
9087         (add_thread): Announce new thread.
9088         * gdbthread.h (add_thread_silent): Declare.
9089         (print_thread_events): New variable declaration.
9090         * inf-ttrace.c (inf_ttrace_wait): Don't
9091         inform about new thread, as add_thread is always
9092         called too, and will take care of that.
9093         * infrun.c (handle_inferior_event): Likewise.
9094         * procfs.c (procfs_wait): Likewise.
9095         * remote.c (remote_currthread): Likewise.
9096         * sol-thread.c (sol_thread_wait): Likewise.
9097         * win32-nat.c (get_win32_debug_event): Likewise.
9098         * linux-thread-db.c (attach_thread): Likewise.
9099         Remove the verbose parameter.
9100         (check_event): Make detach_thread be verbose
9101         only if print_thread_events is set.
9102         * linux-nat.c (lin_lwp_attach_lwp): Don't inform
9103         about new thread.  This is called only from
9104         linux-thread-db.c:attach_thread, which will take care.
9105         Remove the verbose parameter.
9106         * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
9107
9108 2008-01-23  Nick Roberts  <nickrob@snap.net.nz>
9109
9110         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
9111
9112 2008-01-22  Vladimir Prus  <vladimir@codesourcery.com>
9113
9114         * breakpoint.c (break_command_really): New parameter
9115         ignore_count.
9116         (break_command_1): Pass 0 as
9117         ignore_count to break_command_really.
9118         (gdb_breakpoint): Pass ignore_count to
9119         break_command_really.
9120
9121 2008-01-21  Kevin Buettner  <kevinb@redhat.com>
9122
9123         * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
9124         sigcontext struct via pointer.
9125         (struct sigframe comment): Update to show new field `psc'.
9126
9127 2008-01-21  Vladimir Prus  <vladimir@codesourcery.com>
9128
9129         * infrun.c (handle_inferior_event): If
9130         we failed to remove breakpoints, error,
9131         don't try to increment PC by hand.
9132
9133 2008-01-18  Nick Hudson  <nick.hudson@dsl.pipex.com>
9134
9135         Add NetBSD/hppa target and host support.
9136
9137         * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
9138         (hppabsd_gregset): Move to ...
9139         (hppabsd_regset_from_core_section): Rename
9140         hppaobsd_regset_from_core_section and move to ...
9141         (hppabsd_find_global_pointer): Update comment.
9142         (hppabsd_init_abi): Make global. Do not register
9143         hppabsd_regset_from_core_section.
9144         (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
9145         move to ...
9146         (_initialize_hppabsd_tdep): Move to ...
9147         * hppaobsd-tdep.c: ... here. New file.
9148         * hppnbsd-tdep.c: New file.
9149         * hppnbsd-nat.c: New file.
9150         * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
9151         (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
9152         (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
9153         (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
9154         * configure.host (hppa*-*-netbsd*): New entry.
9155         * configure.tgt (hppa*-*-netbsd*): New entry.
9156         (hppa*-*-openbsd*): Update.
9157         * NEWS (New native configuration): Mention NetBSD/hppa.
9158         (New targets): Mention NetBSD/hppa.
9159
9160 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
9161
9162         * gdbarch.sh (function_list): Add new property bits_big_endian to
9163         gdbarch structure.
9164         * gdbarch.{c,h}: Regenerate.
9165
9166         * value.c (struct value): Replace BITS_BIG_ENDIAN by
9167         gdbarch_bits_big_endian (comment).
9168         (unpack_field_as_long, modify_field): Likewise.
9169         * value.h: Likewise (comment).
9170         * valops.c (value_slice): Likewise.
9171         * valarith.c (value_subscript, value_bit_index): Likewise.
9172         * gdbtypes.h (field): Likewise (comment).
9173         * eval.c (evaluate_subexp_standard): Likewise.
9174         * dwarf2read.c (dwarf2_add_field): Likewise.
9175         * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
9176         (move_bits, ada_value_assign, value_assign_to_component): Likewise.
9177
9178         * defs.h (BITS_BIG_ENDIAN): Remove.
9179
9180 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
9181
9182         * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
9183         function calls.
9184         * m2-exp.y (yylex): Likewise.
9185         * objc-exp.y (yylex): Likewise.
9186
9187         * defs.h (DEPRECATED_STREQN): Remove.
9188
9189 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
9190
9191         * MAINTAINERS: Update my email address.
9192
9193 2008-01-17  Jim Blandy  <jimb@codesourcery.com>
9194
9195         * README: Mention gdbserver/README.
9196
9197 2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
9198
9199         * valarith.c (value_binop): Handle BINOP_INTDIV
9200         for unsigned and signed integers.
9201
9202 2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
9203
9204         * s390-tdep.c (s390_gdbarch_init): Set default long double
9205         type to 128-bit IEEE quad.
9206
9207 2008-01-17  Joel Brobecker  <brobecker@adacore.com>
9208
9209         * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
9210
9211 2008-01-16  Mark Kettenis  <kettenis@gnu.org>
9212
9213         * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
9214
9215         * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
9216         * value.c: All callers changed.
9217
9218 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9219
9220         * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
9221         DEPRECATED_STREQ by its expression.
9222         * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
9223         * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
9224         (scan_xcoff_symtab): Likewise.
9225         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
9226         * f-lang.c (find_common_for_function): Likewise.
9227         * objc-exp.y (parse_number): Likewise.
9228
9229         * defs.h (DEPRECATED_STREQ): Remove.
9230
9231 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9232
9233         * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
9234         * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
9235         get_frame_arch to get at the current_architecture. Update AM33_MODE
9236         call.
9237         (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
9238         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
9239         architecture.
9240         (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
9241
9242 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9243
9244         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
9245         parameter.
9246         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
9247
9248         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
9249         current_gdbarch by gdbarch. Update caller.
9250
9251         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
9252         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
9253         the current architecture. Update calls of
9254         amd64_native_gregset_supplies_p.
9255         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
9256         (amd64bsd_store_inferior_registers): Likewise.
9257
9258 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9259
9260         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
9261         Replace current_gdbarch by gdbarch. Update caller.
9262
9263 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9264
9265         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
9266         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
9267         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
9268         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
9269         (stabsect_build_psymtabs): Fix indentation.
9270
9271 2008-01-15  Michael Snyder  <msnyder@specifix.com>
9272
9273         * corelow.c (core_xfer_partial): Comment, cut/paste error.
9274
9275 2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9276
9277         * win32-nat.c (win32_create_inferior): Restore code calling
9278         CloseHandle on ProcessInformation structure.
9279
9280 2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
9281
9282         * configure.ac: Check for void * as 3 argument of ptrace.
9283         * configure: regenerate.
9284
9285 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
9286
9287         * alpha-tdep.c (alpha_heuristic_proc_start)
9288         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
9289         current_gdbarch by gdbarch.
9290
9291         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
9292         current architecture by frame_info. Update alpha_heuristic_proc_start
9293         call.
9294
9295         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
9296         get_frame_arch to get at the current architecture by frame_info. Update
9297         alpha_sigtramp_register_address call.
9298
9299         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
9300         current_gdbarch by gdbarch. Update caller.
9301         (convert_to_extended, convert_from_extended): Add endianess parameter
9302         for comparison. Update caller.
9303         (arm_extract_return_value, arm_store_return_value): Use
9304         get_regcache_arch to get at the current architecture.
9305
9306         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
9307         current_gdbarch by gdbarch. Update caller.
9308         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
9309         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
9310
9311         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
9312         gdbarch as parameter. Update caller.
9313         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
9314         current_gdbarch by gdbarch. Update caller.
9315
9316         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
9317         update caller. Replace current_gdbarch by gdbarch.
9318
9319         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
9320         the current architecture. Replace current_gdbarch by gdbarch.
9321         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
9322         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
9323         expression. Add gdbarch as parameter and replace current_gdbarch with
9324         it. Update caller.
9325         (M6811_TDEP): Remove.
9326         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
9327         architecture.
9328         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
9329         current_gdbarch by gdbarch. Update caller.
9330
9331         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
9332         update caller.
9333         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
9334         by gdbarch.
9335
9336         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
9337         caller. Relace current_gdbarch by gdbarch.
9338         (altivec_register_p, spe_register_p): Likewise.
9339         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
9340         parameter.
9341         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
9342         altivec_register_p and spe_register_p.
9343
9344         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
9345         caller. Replace current_gdbarch by gdbarch.
9346         (score_analyze_prologue): use get_frame_arch to get at the current
9347         architecture.
9348
9349         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
9350         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
9351         current_gdbarch by gdbarch. Update caller.
9352         (sparc_frame_cache): Use get_frame_arch to get at the current
9353         architecture.
9354         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
9355         sparc_analyze_prologue.
9356
9357         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
9358         parameter.
9359
9360 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
9361
9362         * exec.c: #include "arch-utils.h"
9363          (print_section_info): Use gdbarch_from_bfd to get at the
9364         current architecture. Replace current_gdbarch. Fix indention. Replace
9365         deprecated_print_address_numeric by paddress.
9366         * Makefile.in (exec.o) Add dependency to arch-utils.h.
9367
9368         * valprint.c (val_print_string): Replace
9369         deprecated_print_address_numeric.
9370         * tracepoint.c (trace_mention, scope_info): Likewise.
9371         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
9372         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
9373         (maintenance_check_symtabs): Likewise.
9374         * symfile.c (list_overlays_command): Likewise.
9375         * stack.c (frame_info, print_block_frame_labels): Likewise.
9376         * printcmd.c (print_address, print_address_demangle)
9377         (address_info): Likewise.
9378         * corefile.c (memory_error): Likewise.
9379         * infcmd.c (jump_command): Likewise.
9380         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
9381         (mention, delete_breakpoint): Likewise.
9382         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
9383         * dwarf2read.c (dump_die): Likewise.
9384         * ada-valprint.c (ada_val_print_1): Likewise.
9385         * f-valprint.c (f_val_print): Likewise.
9386         * linux-fork.c (info_forks_command): Likewise.
9387         * m32r-com.c (m32r_load_section, m32r_load)
9388         (m32r_upload_command): Likewise.
9389
9390         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
9391
9392 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
9393
9394         * gdbarch.sh (skip_prologue): Add gdbarch
9395         as parameter.
9396         * gdbarch.{c,h}: Regenerate.
9397
9398         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
9399         * amd64-tdep.c (amd64_skip_prologue): Likewise.
9400         * avr-tdep.c (avr_skip_prologue): Likewise.
9401         * cris-tdep.c (cris_skip_prologue): Likewise.
9402         * frv-tdep.c (frv_skip_prologue): Likewise.
9403         * h8300-tdep.c (h8300_skip_prologue): Likewise.
9404         * hppa-tdep.c (hppa_skip_prologue): Likewise.
9405         * i386-tdep.c (i386_skip_prologue): Likewise.
9406         * ia64-tdep.c (ia64_skip_prologue): Likewise.
9407         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
9408         * m32r-tdep.c (m32r_skip_prologue): Likewise.
9409         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
9410         * m68k-tdep.c (m68k_skip_prologue): Likewise.
9411         * m88k-tdep.c (m88k_skip_prologue): Likewise.
9412         * mep-tdep.c (mep_skip_prologue): Likewise.
9413         * mips-tdep.c (mips_skip_prologue): Likewise.
9414         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
9415         * mt-tdep.c (mt_skip_prologue): Likewise.
9416         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
9417         * score-tdep.c (score_skip_prologue): Likewise.
9418         * sh64-tdep.c (sh64_skip_prologue): Likewise.
9419         * sh-tdep.c (sh_skip_prologue): Likewise.
9420         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
9421         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
9422         * spu-tdep.c (spu_skip_prologue): Likewise.
9423         * v850-tdep.c (v850_skip_prologue): Likewise.
9424         * vax-tdep.c (vax_skip_prologue): Likewise.
9425         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
9426         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
9427
9428         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
9429         current_gdbarch by gdbarch.
9430         * m32c-tdep.c (m32c_skip_prologue): Likewise.
9431         * s390-tdep.c (s390_skip_prologue): Likewise.
9432
9433 2008-01-10  Doug Evans  <dje@google.com>
9434
9435         * defs.h (struct continuation_arg): Fix typo in comment.
9436         * target.c (target_translate_tls_address): Fix comment spelling error.
9437
9438 2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9439
9440         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
9441         (DOUBLEST_SCAN_FORMAT): Likewise.
9442         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
9443         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
9444         * c-exp.y (parse_number): Likewise.
9445         * jv-exp.y (parse_number): Likewise.
9446         * objc-exp.y (parse_number): Likewise.
9447         * p-exp.y (parse_number): Likewise.
9448
9449 2008-01-09  Joel Brobecker  <brobecker@adacore.com>
9450
9451         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
9452         (check_typedef): Likewise.
9453
9454 2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
9455
9456         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
9457         seen_double_big_d, treat the new H, D, and DD modifiers as length
9458         modifiers.
9459
9460 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
9461
9462         * dwarf2read.c (read_enumeration_type): Add comment.
9463
9464 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9465
9466         * config.in: Regenerate.
9467
9468 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
9469
9470         * ada-lang.c (ada_convert_actual): Renames convert_actual.
9471         Make non-static.
9472         (ada_convert_actuals): Delete.
9473         * ada-lang.h (ada_convert_actual): Add declaration.
9474         (ada_convert_actuals): Remove declaration.
9475         * infcall.c: #include "ada-lang.h".
9476         (value_arg_coerce): Add new parameter sp.  Update function
9477         documetnation.  Add handling of Ada function call parameters.
9478         * Makefile.in (infcall.o): Update dependencies.
9479
9480 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
9481
9482         * ada-lang.c (ensure_lval): Fix value lval kind.
9483         (convert_actual): Add handling for arguments passed by reference.
9484
9485 2008-01-08  Doug Evans  <dje@google.com>
9486
9487         * dbxread.c (read_dbx_symtab): Fix indentation.
9488
9489 2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9490
9491         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
9492         (valarith.o): Depend on dfp.h.
9493         (valops.o): Likewise.
9494         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
9495         (set_decnumber_context): New function.
9496         (decimal_check_errors): Likewise.
9497         (decimal_from_number): Likewise.
9498         (decimal_to_number): Likewise.
9499         (decimal_from_string): Use set_decnumber_context and
9500         decimal_check_errors.
9501         (decimal_from_integral): New function.
9502         (decimal_from_floating): Likewise.
9503         (decimal_to_double): Likewise.
9504         (promote_decimal): Likewise.
9505         (decimal_binop): Likewise.
9506         (decimal_is_zero): Likewise.
9507         (decimal_compare): Likewise.
9508         (decimal_convert): Likewise.
9509         * dfp.h (decimal_from_integral): New prototype.
9510         (decimal_from_floating): Likewise.
9511         (decimal_to_double): Likewise.
9512         (decimal_binop): Likewise.
9513         (decimal_is_zero): Likewise.
9514         (decimal_compare): Likewise.
9515         (decimal_convert): Likewise.
9516         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
9517         call to value_from_decfloat.
9518         * valarith.c: Include dfp.h.
9519         (value_args_as_decimal): New function.
9520         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
9521         (value_logical_not): Likewise.
9522         (value_equal): Likewise.
9523         (value_less): Likewise.
9524         (value_pos): Likewise.
9525         (value_neg): Formatting fix.
9526         * valops.c: Include dfp.h.
9527         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
9528         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
9529         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
9530         (value_from_decfloat): Remove expect_type argument.
9531         * value.h (value_from_decfloat): Update prototype.
9532
9533 2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
9534
9535         Ignore change in name of dynamic linker during
9536         execution on Solaris.  This also unbreaks pending breakpoints.
9537
9538         * solist.h (struct target_so_ops): New field same.
9539         * solib-svr4.c (svr4_same): New.
9540         (_initialize_svr4_solib): Register svr4_same.
9541         * solib.c (update_solib_list): Use ops->same, if available.
9542
9543 2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
9544
9545         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
9546         when using MS-DOS paths.
9547
9548 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
9549
9550         * NEWS: Mention --pid and --core command line behaviour changes.
9551
9552 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
9553
9554         * main.c (captured_main): Remove 'count' varible and the
9555         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
9556         --pid options were issued simultaneously.  If an explicit pid
9557         option was passed, don't fallback to core file.  Detect extra
9558         arguments better in the presence of explicit pid or core
9559         arguments.
9560
9561 2008-01-05  Joel Brobecker  <brobecker@adacore.com>
9562
9563         * ada-lang.c (ada_which_variant_applies): Correctly compute
9564         the value of the discriminant when the variant record is packed.
9565
9566 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
9567
9568         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
9569         that are used to differentiate homonyms.
9570
9571 2008-01-04  Jerome Guitton  <guitton@adacore.com>
9572
9573         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
9574         when the type is an anonymous pointer type.
9575         (ada_check_typedef): Avoid a seg fault when the type is null.
9576         * ada-typeprint.c (print_array_type): Add support for pointer
9577         to packed arrays.
9578
9579 2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
9580
9581         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
9582
9583 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
9584
9585         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
9586         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
9587
9588 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
9589
9590         * ada-exp.y (chop_separator): New function.
9591         (write_selectors): Rewrite to re-use chop_separator.
9592         (ada_nget_field_index, get_symbol_field_type): New functions.
9593         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
9594         expressions.
9595
9596 2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9597
9598         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
9599         of SYMBOL_VALUE when working with function symbols.
9600
9601 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9602
9603         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
9604         expressions.  These expressions do not need to be rewriten.
9605
9606 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9607
9608         * dwarf2read.c (read_enumeration_type): Flag type as stub if
9609         the given die is a declaration.
9610
9611 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9612
9613         * ada-lang.c (ada_array_bound_from_type): Make non-static.
9614         Handle properly the case when the index type is an enumerated type.
9615         Do not return the subtype of the bounds type, just return the
9616         bounds type directly - this is not needed and is more consistent
9617         with what we do for arrays when no XA parallel type exists.
9618
9619 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9620
9621         * ada-lang.c (static_unwrap_type): Add forward declaration.
9622         (template_to_static_fixed_type): Fields of dynamic types sometimes
9623         also need to be unwrapped. Take this into account.
9624         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
9625         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
9626         * ada-typeprint.c (ada_print_type): Get the typename from
9627         the original type, not the base type.
9628
9629 2008-01-03  Jerome Guitton  <guitton@adacore.com>
9630
9631         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
9632         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
9633         Update calls to ada_to_fixed_type.
9634         (ada_template_to_fixed_record_type_1): Ditto, but without looking
9635         for the tag.
9636         (ada_to_fixed_type): Add check_tag parameter; do not look for
9637         tag if null.  When looking for a tag, use a fixed record type.
9638         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
9639         * ada-valprint.c (printable_val_type, ada_value_print): Update
9640         calls to ada_to_fixed_type.
9641
9642 2008-01-03  Luis Machado  <luisgpm@br.ibm.com>
9643
9644         * doublest.c (convert_floatformat_to_doublest): Call
9645         floatformat_to_doublest instead of floatformat_to_double and use
9646         DOUBLEST variables.
9647         (convert_doublest_to_floatformat): Call floatformat_from_doublest
9648         instead of floatformat_from_double and use DOUBLEST variables.
9649
9650 2008-01-03  Nick Hudson  <nick.hudson@dsl.pipex.com>
9651
9652         * MAINTAINERS (Write After Approval): Add self.
9653
9654 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9655
9656         * symfile.c (set_initial_language): Make non-static.
9657         * symfile.h (set_initial_language): Add declaration.
9658         * language.c: #include "symfile.h".
9659         (set_language): Call set_initial_language if the frame language
9660         could not be determined.
9661
9662 2008-01-03  Paul N. Hilfinger  <hilfinger@adacore.com>
9663
9664         * eval.c (evaluate_subexp_for_address): Provide frame address to
9665         locate_var_value only if it will be needed.
9666
9667 2008-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9668
9669         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
9670
9671 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
9672
9673         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
9674         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
9675         This is needed to make sure that any other treatment applied
9676         to the resulting value does not fail for spurious reason,
9677         such as trying to take the address of this value.
9678
9679 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
9680
9681         * ada-lang.c (ada_value_equal): Dereference reference types when
9682         comparing arrays.
9683
9684 2008-01-01  Daniel Jacobowitz  <dan@codesourcery.com>
9685
9686         Updated copyright notices for most files.
9687
9688 2008-01-01  Christopher Faylor  <me+gdb@cgf.cx>
9689
9690         * win32-nat.c (psapi_module_handle): Remove static.
9691         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
9692         return first module found if base_address is zero.  Don't initialize
9693         psapi function pointers here.  Convert to cygwin paths when
9694         appropriate.
9695         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
9696         executable name.  Use get_module_name when that fails or when
9697         !__CYGWIN__.
9698         (_initialize_psapi): New function.  Initialize psapi stuff before it is
9699         needed or issue a warning if it is not found.  Move psapi_module_handle
9700         here.
9701
9702 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
9703
9704         * ada-lang.c (ada_remove_trailing_digits): New function.
9705         (ada_remove_po_subprogram_suffix): New function.
9706         (ada_decode): Improve. Move the description of the algorithm
9707         directly inside the code, instead of in the function global
9708         description.
9709
9710 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
9711
9712         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
9713         and always print the dereferenced value.
9714
9715 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
9716
9717         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
9718         of the case where the first argument is a reference.
9719         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
9720
9721 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
9722
9723         Implement support for Ada interface types.
9724
9725         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
9726         (ada_is_ignored_field): Ignore fields that are a dispatch table
9727         of a tagged type.
9728
9729 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
9730
9731         * top.c (print_gdb_version): Update copyright year.
9732
9733 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
9734
9735         * ChangeLog-2007: New ChangeLog rotation.
9736         * ChangeLog: Reset for 2008.
9737         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
9738         ChangeLog-2007.
9739
9740 For older changes see ChangeLog-2007.
9741 \f
9742 Local Variables:
9743 mode: change-log
9744 left-margin: 8
9745 fill-column: 74
9746 version-control: never
9747 coding: utf-8
9748 End: