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