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