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