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