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