2007-06-12 Markus Deuling <deuling@de.ibm.com>
[external/binutils.git] / gdb / ChangeLog
1 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
2
3         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
4         gdbarch_smash_text_address.
5         * somread.c (som_symtab_read): Likewise.
6         * elfread.c (record_minimal_symbol): Likewise.
7         * dbxread.c (process_one_symbol): Likewise.
8         * coffread.c (coff_symtab_read): Likewise.
9         * gdbarch.c, gdbarch.h: Regenerate.
10
11 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
12
13         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
14         * findvar.c (value_from_register): Likewise.
15         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
16         * valops.c (value_assign): Likewise.
17         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
18         gdbarch_convert_register_p.
19         * findvar.c (value_from_register): Likewise.
20         * valops.c (value_assign): Likewise.
21         * gdbarch.c, gdbarch.h: Regenerate.
22
23 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
24
25         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
26         gdbarch_register_sim_regno.
27         * sim-regno.h (sim_regno): Likewise (comment).
28         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
29         * gdbarch.c, gdbarch.h: Regenerate.
30
31 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
32
33         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
34         gdbarch_virtual_frame_pointer.
35         * tracepoint.c (encode_actions): Likewise.
36         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
37         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
38         * gdbarch.c, gdbarch.h: Regenerate.
39
40 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
41
42         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
43         * p-lang.c (pascal_create_fundamental_type): Likewise.
44         * objc-lang.c (objc_create_fundamental_type): Likewise.
45         * mdebugread.c (_initialize_mdebugread): Likewise.
46         * m2-lang.c (m2_create_fundamental_type)
47         (_initialize_m2_language): Likewise.
48         * gdbtypes.c (build_gdbtypes): Likewise.
49         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
50         * doublest.c (floatformat_from_length): Likewise.
51         * c-lang.c (c_create_fundamental_type): Likewise.
52         * ada-lang.c (ada_create_fundamental_type)
53         (ada_language_arch_info): Likewise.
54         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
55         * value.c (unpack_double): Likewise (comment).
56         * gdbtypes.c (build_gdbtypes): Likewise.
57         * doublest.c (floatformat_from_length): Likewise.
58         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
59         * valarith.c (value_binop): Likewise.
60         * p-lang.c (pascal_create_fundamental_type): Likewise.
61         * objc-lang.c (objc_create_fundamental_type): Likewise.
62         * mdebugread.c (_initialize_mdebugread): Likewise.
63         * m2-lang.c (m2_create_fundamental_type): Likewise.
64         * gdbtypes.c (build_gdbtypes): Likewise.
65         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
66         * doublest.c (floatformat_from_length): Likewise.
67         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
68         * c-lang.c (c_create_fundamental_type): Likewise.
69         * ada-lex.l (processReal): Likewise.
70         * ada-lang.c (ada_create_fundamental_type)
71         (ada_language_arch_info): Likewise.
72         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
73         * value.c (unpack_double): Likewise (comment).
74         * gdbtypes.c (build_gdbtypes): Likewise.
75         * doublest.c (floatformat_from_length): Likewise.
76         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
77         gdbarch_long_double_bit.
78         * p-lang.c (pascal_create_fundamental_type): Likewise.
79         * objc-lang.c (objc_create_fundamental_type): Likewise.
80         * m2-lang.c (m2_create_fundamental_type): Likewise.
81         * gdbtypes.c (build_gdbtypes): Likewise.
82         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
83         * doublest.c (floatformat_from_length): Likewise.
84         * c-lang.c (c_create_fundamental_type): Likewise.
85         * ada-lex.l (processReal): Likewise.
86         * ada-lang.c (ada_create_fundamental_type)
87         (ada_language_arch_info): Likewise.
88         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
89         gdbarch_long_double_format.
90         * gdbtypes.c (build_gdbtypes): Likewise.
91         * doublest.c (floatformat_from_length): Likewise.
92         * gdbarch.c, gdbarch.h: Regenerate.
93
94 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
95
96         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
97         * ada-lang.c (ada_create_fundamental_type)
98         (ada_language_arch_info): Likewise.
99         * c-lang.c (c_create_fundamental_type): Likewise.
100         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
101         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
102         * m2-lang.c (m2_create_fundamental_type): Likewise.
103         * objc-lang.c (objc_create_fundamental_type): Likewise.
104         * p-lang.c (pascal_create_fundamental_type): Likewise.
105         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
106         * c-exp.y (parse_number): Likewise.
107         * objc-exp.y (parse_number): Likewise.
108         * ada-lex.l (processInt): Likewise.
109         * f-exp.y (parse_number): Likewise.
110         * p-exp.y (parse_number): Likewise.
111         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
112         (gdbtypes_post_init, build_gdbtypes): Likewise.
113         * p-lang.c (pascal_create_fundamental_type): Likewise.
114         * parse.c (build_parse): Likewise.
115         * xcoffread.c (_initialize_xcoffread): Likewise.
116         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
117         (read_range_type): Likewise.
118         * objc-lang.c (objc_create_fundamental_type): Likewise.
119         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
120         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
121         (m2_create_fundamental_type): Likewise.
122         * c-lang.c (c_create_fundamental_type): Likewise.
123         * coffread.c (coff_read_enum_type): Likewise.
124         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
125         * dwarf2read.c (new_symbol): Likewise.
126         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
127         * c-exp.y (parse_number): Likewise.
128         * objc-exp.y (parse_number): Likewise.
129         * ada-lex.l (processInt): Likewise.
130         * f-exp.y (parse_number): Likewise.
131         * p-exp.y (parse_number): Likewise.
132         * valarith.c (value_binop): Likewise.
133         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
134         * ada-lang.c (ada_create_fundamental_type)
135         (ada_language_arch_info): Likewise.
136         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
137         * symfile.c (TARGET_LONG_BYTES): Likewise.
138         * p-lang.c (pascal_create_fundamental_type): Likewise.
139         * objc-lang.c (objc_create_fundamental_type): Likewise.
140         * m2-lang.c (m2_create_fundamental_type): Likewise.
141         * f-lang.c (f_create_fundamental_type): Likewise.
142         * c-lang.c (c_create_fundamental_type): Likewise.
143         * coffread.c (decode_base_type): Likewise.
144         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
145         * c-exp.y (parse_number): Likewise.
146         * objc-exp.y (parse_number): Likewise.
147         * p-exp.y (parse_number): Likewise.
148         * ada-lang.c (ada_create_fundamental_type)
149         (ada_language_arch_info): Likewise.
150         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
151         * stabsread.c (read_range_type): Likewise.
152         * p-lang.c (pascal_create_fundamental_type): Likewise.
153         * objc-lang.c (objc_create_fundamental_type): Likewise.
154         * m2-lang.c (m2_create_fundamental_type): Likewise.
155         * f-lang.c (f_create_fundamental_type): Likewise.
156         * c-lang.c (c_create_fundamental_type): Likewise.
157         * gdbarch.c, gdbarch.h: Regenerate.
158
159 2007-06-12  Andreas Schwab  <schwab@suse.de>
160
161         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
162         (struct frame_unwind): Add dealloc_cache.
163         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
164
165         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
166         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
167         (libunwind_frame_unwind): Set dealloc_cache.
168         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
169
170 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
171             Markus Deuling  <deuling@de.ibm.com>
172
173         * remote.c (remote_write_qxfer): New function.
174         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
175         (remote_read_qxfer): Do not cache empty objects.
176         (_initialize_remote): Add PACKET_qXfer_spu_read and
177         PACKET_qXfer_spu_write.
178
179 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
180
181         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
182         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
183
184         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
185         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
186         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
187         * spu-tdep.c (infospucmdlist): New variable.
188         (spu_register_name): Handle additional pseudo registers.
189         (spu_register_type): Likewise.
190         (spu_pseudo_register_read): Likewise.
191         (spu_pseudo_register_write): Likewise.
192         (spu_pseudo_register_read_spu): New function.
193         (spu_pseudo_register_write_spu): Likewise.
194         (info_spu_event_command): New function.
195         (info_spu_signal_command): Likewise.
196         (info_spu_mailbox_list): Likewise.
197         (info_spu_mailbox_command): Likewise.
198         (spu_mfc_get_bitfield): Likewise.
199         (info_spu_dma_cmdlist): Likewise.
200         (info_spu_dma_command): Likewise.
201         (info_spu_proxydma_command): Likewise.
202         (info_spu_command): Likewise.
203         (_initialize_spu_tdep): Install "info spu" commands.
204
205 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
206
207         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
208         accessing non-seekable spufs files.
209
210 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
211
212         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
213         gdbarch_skip_trampoline_code.
214         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
215         * objc-lang.c (objc_skip_trampoline)
216         (objc_submethod_helper_data): Likewise.
217         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
218         * infrun.c (handle_inferior_event): Likewise.
219         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
220         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
221         gdbarch_in_solib_return_trampoline.
222         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
223         * infrun.c (handle_inferior_event): Likewise.
224         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
225         * gdbarch.c, gdbarch.h: Regenerate.
226
227 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
228
229         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
230         * symtab.c (find_function_start_sal, in_prologue): Likewise.
231         * linespec.c (minsym_found): Likewise.
232         * infrun.c (step_into_function): Likewise.
233         * gdbarch.c, gdbarch.h: Regenerate.
234
235 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
236
237         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
238         * valops.c (value_allocate_space_in_inferior): Likewise.
239         * gdbarch.c, gdbarch.h: Regenerate.
240
241 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
242
243         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
244         gdbarch_memory_insert_breakpoint.
245         * mem-break.c (memory_insert_breakpoint): Likewise.
246         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
247         gdbarch_memory_remove_breakpoint.
248         * mem-break.c (memory_remove_breakpoint): Likewise.
249         * gdbarch.c, gdbarch.h: Regenerate.
250
251 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
252
253         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
254         gdbarch_fetch_tls_load_module_address.
255         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
256         gdbarch_fetch_tls_load_module_address_p.
257         * gdbarch.c, gdbarch.h: Regenerate.
258
259 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
260
261         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
262         gdbarch_decr_pc_after_break.
263         * tracepoint.c (trace_dump_command): Likewise.
264         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
265         * linux-thread-db.c (check_event): Likewise.
266         * linux-nat.c (cancel_breakpoints_callback): Likewise.
267         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
268         * frame.h: Likewise (comment).
269         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
270         * aix-thread.c (aix_thread_wait): Likewise.
271         * gdbarch.c, gdbarch.h: Regenerate.
272
273 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
274
275         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
276         gdbarch_address_class_type_flags.
277         * dwarf2read.c (read_tag_pointer_type): Likewise.
278         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
279         gdbarch_address_class_type_flags_p.
280         * dwarf2read.c (read_tag_pointer_type): Likewise.
281         * gdbarch.c, gdbarch.h: Regenerate.
282
283 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
284
285         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
286         * value.c (value_as_address): Likewise (comment).
287         * remote-mips.c (common_breakpoint): Likewise.
288         * regcache.c (read_pc_pid): Likewise.
289         * printcmd.c (do_one_display): Likewise.
290         * monitor.c (monitor_write_memory, monitor_read_memory)
291         (monitor_insert_breakpoint): Likewise.
292         * mips-tdep.c (heuristic_proc_start): Likewise.
293         * infrun.c (insert_step_resume_breakpoint_at_frame)
294         (insert_step_resume_breakpoint_at_caller): Likewise.
295         * buildsym.c (record_line): Likewise.
296         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
297         (arm_get_next_pc): Likewise.
298         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
299         (store_regs): Likewise.
300         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
301         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
302         * gdbarch.c, gdbarch.h: Regenerate.
303
304 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
305
306         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
307         * tracepoint.c (scope_info): Likewise.
308         * target.c (debug_print_register): Likewise.
309         * stack.c (frame_info): Likewise.
310         * sh-tdep.c (sh_register_reggroup_p): Likewise.
311         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
312         (sh64_media_print_registers_info)
313         (sh64_compact_print_registers_info): Likewise.
314         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
315         * remote-sim.c (gdbsim_fetch_register): Likewise.
316         * remote.c (packet_reg): Likewise (comment).
317         * reggroups.c (default_register_reggroup_p): Likewise.
318         * regcache.c (regcache_dump): Likewise.
319         * printcmd.c (address_info): Likewise.
320         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
321         * mt-dep.c (mt_registers_info): Likewise.
322         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
323         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
324         (mips_read_fp_register_double, mips_print_fp_register)
325         (mips_print_register, print_gp_register_row, mips_print_registers_info)
326         (mips_register_sim_regno): Likewise.
327         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
328         * inf-ptrace.c (inf_ptrace_fetch_register)
329         (inf_ptrace_store_register): Likewise.
330         * infcmd.c (default_print_registers_info): Likewise.
331         * ia64-linux-nat.c (ia64_linux_fetch_register)
332         (ia64_linux_store_register): Likewise.
333         * i386-linux-nat.c (fetch_register, store_register): Likewise.
334         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
335         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
336         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
337         (hppa_hpux_store_register): Likewise.
338         * findvar.c (locate_var_value): Likewise.
339         * dwarf2loc.c (locexpr_describe_location): Likewise.
340         * dwarf2-frame.c (execute_cfa_program): Likewise.
341         * arm-tdep.c (arm_push_dummy_call): Likewise.
342         * arch-utils.c (legacy_register_sim_regno): Likewise.
343         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
344         * alpha-nat.c (fetch_osf_core_registers): Likewise.
345         * mi/mi-main.c (mi_cmd_data_list_register_names)
346         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
347         (mi_cmd_data_write_register_values): Likewise.
348         * gdbarch.c, gdbarch.h: Regenerate.
349
350 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
351
352         * target-memory.c (blocks_to_erase): Correct off-by-one error.
353
354 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
355         
356         * remote.c (process_g_packet): Don't check size.
357         * gdbarch.sh: Remove register_bytes_ok.
358         * gdbarch.c: Regenerated.
359         * gdbarch.h: Regenerated.
360         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
361         (m68k_register_bytes_ok): Remove.
362         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
363         
364 2007-06-06  Andreas Schwab  <schwab@suse.de>
365
366         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
367         (destroy_addr_space_name): Define.
368         (libunwind_load): Get address of destroy_addr_space function.
369         (libunwind_frame_cache): Destroy unw_addr_space_t object before
370         returning unsuccessfully.
371         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
372         returning.
373         (libunwind_sigtramp_frame_sniffer): Likewise.
374         (libunwind_get_reg_special): Likewise.
375
376 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
377
378         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
379         gdbarch_fetch_pointer_argument.
380         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
381         * gdbarch.c, gdbarch.h: Regenerate.
382
383 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
384
385         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
386         gdbarch_have_nonsteppable_watchpoint.
387         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
388         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
389         gdbarch_cannot_step_breakpoint.
390         * infrun.c (resume): Likewise.
391         * gdbarch.c, gdbarch.h: Regenerate.
392
393 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
394
395         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
396         * stack.c (print_frame_args): Likewise.
397         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
398         * stack.c (print_args_stub, frame_info): Likewise.
399         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
400         * stack.c (print_args_stub, frame_info): Likewise.
401         * gdbarch.c, gdbarch.h: Regenerate.
402
403 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
404
405         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
406         gdbarch_coff_make_msymbol_special.
407         * coffread.c (coff_symtab_read): Likewise.
408         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
409         gdbarch_elf_make_msymbol_special.
410         * elfread.c (elf_symtab_read): Likewise.
411         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
412         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
413         * gdbarch.c, gdbarch.h: Regenerate.
414
415 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
416
417         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
418         gdbarch_frame_red_zone_size.
419         * gdbarch.c, gdbarch.h: Regenerate.
420
421 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
422
423         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
424         * infcall.c (call_function_by_hand): Likewise.
425         * gcore.c (derive_stack_segment): Likewise.
426         * frame.c (frame_id_inner): Likewise.
427         * arch-utils.c (core_addr_lessthan): Likewise (comment).
428         * ada-lang.c (ensure_lval): Likewise.
429         * gdbarch.c, gdbarch.h: Regenerate.
430
431 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
432
433         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
434         gdbarch_address_to_pointer.
435         * findvar.c (store_typed_address): Likewise.
436         * gdbtypes.c (make_pointer_type): Likewise (comment).
437         * procfs.c (procfs_address_to_host_pointer): Likewise.
438         * std-regs.c (value_of_builtin_frame_reg): Likewise.
439         (value_of_builtin_frame_fp_reg): Likewise.
440         (value_of_builtin_frame_pc_reg): Likewise.
441         * utils.c (paddress): Likewise (comment).
442         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
443         gdbarch_pointer_to_address.
444         * findvar.c (extract_typed_address): Likewise.
445         * gdbtypes.c (make_pointer_type): Likewise (comment).
446         * valops.c (value_cast): Likewise (comment).
447         * gdbarch.c, gdbarch.h: Regenerate.
448
449 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
450
451         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
452         * infrun.c (handle_inferior_event): Likewise.
453         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
454         gdbarch_get_longjmp_target_p.
455         * breakpoint.c (breakpoint_re_set): Likewise.
456         * infrun.c (handle_inferior_event): Likewise.
457         * gdbarch.c, gdbarch.h: Regenerate.
458
459 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
460
461         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
462         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
463         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
464         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
465         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
466         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
467         find_stub_with_shl_get, cover_find_stub_with_shl_get,
468         initialize_hp_cxx_exception_support, child_enable_exception_callback,
469         current_ex_event, child_get_current_exception_event): Remove.
470         (hppa_hpux_inferior_created): Remove.
471         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
472
473         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
474         (deprecated_exception_support_initialized): Remove.
475         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
476         (deprecated_exception_support_initialized): Remove.
477         (breakpoint_init_inferior): Remove handling of non-zero
478         deprecated_exception_catchpoints_are_fragile.
479
480         * symtab.h (deprecated_hp_som_som_object_present): Remove.
481         * symtab.c (deprecated_hp_som_som_object_present): Remove.
482         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
483         deprecated_hp_som_som_object_present.
484         * eval.c (evaluate_subexp_standard): Likewise.
485         * valops.c (value_cast): Likewise.
486
487         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
488         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
489         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
490
491 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
492
493         * objfiles.h (ImportEntry, ExportEntry): Remove types.
494         (struct objfile): Remove import_list, import_list_size,
495         export_list, export_list_size members.
496         (is_in_import_list): Remove prototype.
497         * objfiles.c (is_in_import_list): Remove.
498         * somread.c (init_import_symbols, init_export_symbols): Remove.
499         (som_symfile_read): Do not call init_import_symbols.  Do not
500         set objfile->export_list and objfile->export_list_size.
501
502 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
503
504         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
505         Use the original objfile if necessary.
506
507 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
508
509         * defs.h (ldirname): New prototype.
510         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
511         missing.
512         * utils.c (ldirname): New function.
513         * xml-tdesc.c (file_read_description_xml): Use ldirname.
514
515 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
516
517         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
518
519 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
520
521         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
522
523 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
524
525         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
526
527 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
528
529         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
530         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
531         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
532         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
533         (ppc_linux_in_sigtramp, insn_is_sigreturn,
534         ppc_linux_at_sigtramp_return_path): Remove.
535
536 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
537
538         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
539         (xtensa_register_write_masked, xtensa_register_read_masked)
540         (xtensa_extract_return_value, xtensa_store_return_value
541         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
542         TARGET_BYTE_ORDER by gdbarch_byte_order.
543         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
544         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
545         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
546         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
547         (sh64_push_dummy_call, sh64_extract_return_value)
548         (sh64_store_return_value, sh64_register_convert_to_virtual)
549         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
550         (sh64_pseudo_register_write, sh64_do_fp_register)
551         (sh64_frame_prev_register): Likewise.
552         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
553         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
554         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
555         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
556         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
557         * ppc-linux-nat.c (store_register): Likewise.
558         * nto-tdep.c (nto_find_and_open_solib)
559         (nto_init_solib_absolute_prefix): Likewise.
560         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
561         (mips_convert_register_p, mips_eabi_push_dummy_call)
562         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
563         (mips_o32_push_dummy_call, mips_o32_return_value)
564         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
565         (mips_read_fp_register_single, mips_read_fp_register_double)
566         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
567         (mips_breakpoint_from_pc): Likewise.
568         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
569         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
570         (mips_linux_o32_sigframe_init): Likewise.
571         * m32r-tdep.c (m32r_memory_insert_breakpoint)
572         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
573         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
574         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
575         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
576         * coffread.c (process_coff_symbol): Likewise.
577         * arm-tdep.c (convert_from_extended, convert_to_extended)
578         (gdb_print_insn_arm): Likewise.
579
580 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
581
582         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
583         * i386-tdep.c (i386_dbx_reg_to_regnum)
584         (i386_svr4_reg_to_regnum): Likewise.
585         * inf-ptrace.c (inf_ptrace_fetch_registers)
586         (inf_ptrace_store_registers): Likewise.
587         * corelow.c (get_core_registers): Likewise.
588         * i386-linux-nat.c (supply_gregset, fill_gregset)
589         (i386_linux_fetch_inferior_registers)
590         (i386_linux_store_inferior_registers): Likewise.
591         * remote.c (init_remote_state,packet_reg_from_regnum)
592         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
593         (remote_prepare_to_store,store_registers_using_G)
594         (remote_store_registers,remote_arch_state): Likewise.
595         * tracepoint.c (encode_actions): Likewise.
596         * mi/mi-main.c (mi_cmd_data_list_register_names)
597         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
598         (mi_cmd_data_write_register_values): Likewise.
599         * tui/tui-regs.c (tui_show_register_group)
600         (tui_show_register_group): Likewise.
601         * xtensa-tdep.h (FP_ALIAS): Likewise.
602         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
603         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
604         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
605         * win32-nat.c (do_win32_fetch_inferior_registers)
606         (do_win32_store_inferior_registers,fetch_elf_core_registers
607         * user-regs.h: Likewise (comment).
608         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
609         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
610         * target-descriptions.h: Likewise (comment).
611         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
612         * target.c (debug_print_register): Likewise.
613         * stack.c (frame_info): Likewise.
614         * stabsread.c (define_symbol): Likewise.
615         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
616         (sh64_media_print_registers_info)
617         (sh64_compact_print_registers_info): Likewise.
618         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
619         * rs6000-nat.c (fetch_register,store_register): Likewise.
620         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
621         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
622         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
623         * remote-m32r-sdi.c (m32r_fetch_registers)
624         (m32r_store_registers): Likewise.
625         * reggroups.c (default_register_reggroup_p): Likewise.
626         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
627         (regcache_restore,regcache_dump): Likewise.
628         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
629         * mips-tdep.c (mips_xfer_register,mips_register_name)
630         (mips_register_reggroup_p,mips_pseudo_register_read)
631         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
632         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
633         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
634         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
635         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
636         (print_gp_register_row,mips_print_registers_info)
637         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
638         (mips_register_sim_regno): Likewise.
639         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
640         (mips_linux_n32n64_sigframe_init): Likewise.
641         * mips-linux-nat.c (mips_linux_register_addr)
642         (mips64_linux_register_addr): Likewise.
643         * findvar.c (value_of_register): Likewise.
644         * infcmd.c (default_print_registers_info,registers_info)
645         (print_vector_info,print_float_info): Likewise.
646         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
647         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
648         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
649         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
650         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
651         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
652         (ia64_cannot_store_register,ia64_linux_fetch_registers)
653         (ia64_linux_store_registers): Likewise.
654         * hpux-thread.c (hpux_thread_fetch_registers)
655         (hpux_thread_store_registers): Likewise.
656         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
657         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
658         (h8300_register_type): Likewise.
659         * dwarf2-frame.c (dwarf2_frame_cache)
660         (dwarf2_frame_state_alloc_regs): Likewise.
661         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
662         (cris_cannot_store_register,crisv32_cannot_fetch_register)
663         (crisv32_cannot_store_register,cris_register_name): Likewise.
664         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
665         * arch-utils.c (legacy_register_sim_regno)
666         (legacy_virtual_frame_pointer): Likewise.
667         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
668         * arm-tdep.h: Likewise (comment).
669         * frv-tdep.c (frv_register_sim_regno): Likewise.
670         * m68klinux-nat.c (old_fetch_inferior_registers)
671         (old_store_inferior_registers): Likewise.
672         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
673         * irix5-nat.c (fetch_core_registers): Likewise.
674         * hppa-tdep.c (hppa_frame_cache): Likewise.
675         * hppa-linux-nat.c (hppa_linux_register_addr)
676         (hppa_linux_fetch_inferior_registers)
677         (hppa_linux_store_inferior_registers): Likewise.
678         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
679         (hppa_hpux_store_inferior_registers): Likewise.
680         * amd64-nat.c (amd64_native_gregset_reg_offset)
681         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
682         * dbug-rom.c (dbug_regname): Likewise.
683         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
684         (HARD_PAGE_REGNUM (comment)): Likewise.
685         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
686         * i386-tdep.c (i386_dbx_reg_to_regnum)
687         (i386_svr4_reg_to_regnum): Likewise.
688         * mi/mi-main.c (mi_cmd_data_list_register_names)
689         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
690         (mi_cmd_data_write_register_values): Likewise.
691         * gdbarch.c, gdbarch.h: Regenerate.
692         * tui/tui-regs.c (tui_show_register_group): Likewise.
693         * xtensa-tdep.h (FP_ALIAS): Likewise.
694         * user-regs.h: Likewise (comment).
695         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
696         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
697         * target-descriptions.h: Likewise (comment).
698         * target.c (debug_print_register): Likewise.
699         * stack.c (frame_info): Likewise.
700         * stabsread.c (define_symbol): Likewise.
701         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
702         (sh64_compact_print_registers_info): Likewise.
703         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
704         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
705         (regcache_restore,regcache_dump): Likewise.
706         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
707         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
708         (mips_stab_reg_to_regnum): Likewise.
709         * findvar.c (value_of_register): Likewise.
710         * infcmd.c (default_print_registers_info,registers_info)
711         (print_vector_info,print_float_info): Likewise.
712         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
713         * h8300-tdep.c (h8300_register_type): Likewise.
714         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
715         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
716         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
717         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
718         * parse.c: Remove comment.
719         * gdbarch.c, gdbarch.h: Regenerate
720
721 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
722
723         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
724         gdbarch_cannot_fetch_register.
725         * alpha-nat.c (fetch_osf_core_registers): Likewise.
726         * hppa-linux-nat.c (fetch_register): Likewise.
727         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
728         * m68klinux-nat.c (fetch_register): Likewise.
729         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
730         Likewise.
731         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
732         gdbarch_cannot_store_register.
733         * hppa-linux-nat.c (store_register): Likewise.
734         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
735         * regcache.c (regcache_raw_write): Likewise.
736         * m68klinux-nat.c (store_register): Likewise.
737         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
738         * gdbarch.c, gdbarch.h: Regenerate.
739
740 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
741
742         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
743         * gdbarch.c, gdbarch.h: Regenerate.
744
745 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
746
747         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
748         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
749         * gdbarch.c, gdbarch.h: Regenerate.
750
751 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
752
753         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
754         * ax-gdb.c (gen_bitfield_ref): Likewise.
755         * mi/mi-main.c (get_register): Likewise.
756         * findvar.c (default_value_from_register, extract_signed_integer)
757         (extract_unsigned_integer, extract_long_unsigned_integer)
758         (store_signed_integer, store_unsigned_integer): Likewise.
759         * regcache.c (regcache_dump): Likewise.
760         * value.c (lookup_internalvar, value_of_internalvar)
761         (set_internalvar): Likewise.
762         * defs.h: Likewise.
763         * valprint.c (print_binary_chars, print_octal_chars)
764         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
765         * infcmd.c (default_print_registers_info): Likewise.
766         * arch-utils.c (selected_byte_order, show_endian): Likewise.
767         * stabsread.c (define_symbol): Likewise.
768         * doublest.c (floatformat_from_length, floatformat_from_type)
769         (extract_typed_floating, store_typed_floating): Likewise.
770         * gdbarch.c, gdbarch.h: Regenerate.
771
772 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
773
774         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
775         gdbarch_call_dummy_location.
776         * infcall.c (call_function_by_hand): Likewise.
777         * inferior.h: Change comment.
778         * arch-utils.c: Change comment.
779         * gdbarch.c, gdbarch.h: Regenerate.
780
781 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
782
783         * solib-aix5.c: Delete.
784         * Makefile.in (solib-aix5.o): Delete rule.
785
786 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
787
788         * breakpoint.h (enum bpstat_what_main_action): Remove
789         BPSTAT_WHAT_THROUGH_SIGTRAMP.
790         * infrun.c (process_event_stop_test): Do not check for it.
791
792 2007-05-22  Chris Dearman  <chris@mips.com>
793             Maciej W. Rozycki  <macro@mips.com>
794
795         * ser-unix.c (show_serial_hwflow): New function.
796         (hardwire_raw): Add hardware flow control support.
797         (_initialize_ser_hardwire): Add "set/show remoteflow".
798         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
799         * NEWS: Document the new command.
800
801 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
802
803         * config/i386/tm-linux.h (sys_quotactl): Do not define.
804         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
805         define for i[[3456]]86-*-linux* native configurations.
806         * config.in, configure: Regenerate.
807
808 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
809
810         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
811         a core file. Add comment in the function description.
812
813 2007-05-18  Caroline Tice  <ctice@apple.com>
814
815         * c-valprint.c (c_value_print):  If the initialized field of the
816         value struct is 0, print out "[uninitialized]" before the value.
817         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
818         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
819         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
820         ctx->initialized appropriately. Verify no location op follows
821         DW_OP_GNU_uninit.
822         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
823         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
824         set_value_initialized.
825         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
826         (decode_locdesc): Add case for DW_OP_GNU_uninit.
827         * value.c (struct value):  New field, initialized.
828         (allocate_value): Initialize new field.
829         (set_value_initialized): New function.
830         (value_initialized): New function.
831         * value.h (value_initialized): New extern declaration.
832         (set_value_initialized): Likewise.
833         
834 2007-05-18  Caroline Tice  <ctice@apple.com>
835
836         * MAINTAINERS (Write After Approval): Add self.
837         
838 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
839
840         * gdbtypes.c (make_reference_type): Preserve the type chain
841         and set the length of all the variants of the pointer type.
842
843 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
844
845         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
846         and set the length of all the variants of the pointer type.
847
848 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
849
850         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
851         comment.
852         (mips_o64_push_dummy_call): Reformat a comment.
853
854 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
855
856         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
857         (score_prologue_frame_base_address): Return fp to keep gdb print
858         local variables correctly when debugging information is stabs.
859
860         (score_analyze_prologue): For software watchpoint, fetch all the
861         instructions from range [startaddr, pc] once and identify them locally
862         to reduce memory access.
863         (score_malloc_and_get_memblock, score_free_memblock)
864         (score_adjust_memblock_ptr): New functions.
865         (score_fetch_inst): Fetch single instruction or mutiple instructions.
866
867         (score_target_can_use_watch, score_stopped_by_watch)
868         (score_target_insert_watchpoint, score_target_remove_watchpoint)
869         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
870         New functions for remote & local hw-watchpoint and hw-breakpoint.
871
872 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
873
874         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
875         declarations as well.
876
877 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
878
879         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
880         * config/arm/tm-embed.h: Delete file.
881
882         * arm-tdep.h (arm_software_single_step): Declare.
883         * arm-tdep.c (arm_software_single_step): Make global.
884         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
885         from here to ...
886         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
887         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
888         * armobsd-tdep.c (armobsd_init_abi): ... here ...
889         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
890
891         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
892         allow defines to be overriden by TM file.
893         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
894         change default to {0xbe,0xbe}.
895         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
896         arm_obsd_thumb_be_breakpoint): New global variables.
897         (armobsd_init_abi): Override tdep->thumb_breakpoint and
898         tdep->thumb_breakpoint_size.
899         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
900         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
901         tdep->thumb_breakpoint_size.
902
903         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
904
905 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
906
907         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
908         saved-gpreg-size".
909
910         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
911         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
912         (mips_stack_argsize_string, mips_stack_argsize): Delete.
913         (mips_abi_regsize): Simplify.
914         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
915         (mips_n32n64_return_value, mips_o32_push_dummy_call)
916         (mips_o32_return_value, mips_o64_push_dummy_call)
917         (mips_o64_return_value): Propogate constant register sizes.  Use the
918         ABI register size instead of mips_stack_argsize.
919         (mips_dump_tdep): Don't print mips_stack_argsize.
920         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
921         settings.
922
923 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
924
925         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
926         * config/mips/tm-linux.h: Delete.
927         * mips-linux-tdep.c (mips_svr4_so_ops): New.
928         (mips_linux_in_dynsym_resolve_code): Make static.  Use
929         svr4_in_dynsym_resolve_code.
930         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
931         set_solib_ops.
932         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
933         global.
934         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
935         * Makefile.in (mips-linux-tdep.o): Update.
936         * solib.c (set_solib_ops): New.
937         (current_target_so_ops): Update comment.
938         * solib.h (set_solib_ops): New prototype.
939
940 2007-05-16  Chris Dearman  <chris@mips.com>
941
942         * printcmd.c (do_examine): Fix typos in a comment.
943
944 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
945
946         * configure.ac: Allow sysroots to be relocated under $prefix as
947         well as $exec_prefix.
948         * configure: Regenerate.
949
950 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
951
952         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
953         (offsetof): Do not define.
954         (find_stub_with_shl_get): Use numerical value 3 instead of
955         symbolic value TYPE_PROCEDURE.
956
957 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
958
959         * gdb_proc_service.h (paddr_t): Delete typedef.
960         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
961         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
962         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
963         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
964         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
965         * Makefile.in (proc-service.o): Update.
966
967 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
968
969         * Makefile.in (mips-tdep.o): Update.
970         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
971         unwinder.
972
973 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
974
975         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
976         instead of store_typed_address.
977         * value.c (pack_long): New.
978         (value_from_longest): Use it.
979         * value.h (pack_long): New prototype.
980
981 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
982
983         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
984         DW_EH_PE_signed if appropriate.
985
986 2007-05-14  Paul Brook  <paul@codesourcery.com>
987             Daniel Jacobowitz  <dan@codesourcery.com>
988
989         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
990         function.
991         (dwarf_decode_lines): Check for line info without a file.
992
993 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
994
995         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
996         as hexadecimal.
997
998 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
999
1000         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
1001         STRUCTOP_STRUCT.
1002         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
1003         STRUCTOP_STRUCT.
1004         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
1005
1006 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
1007
1008         * gdbarch.sh (read_sp): Remove.
1009         * gdbarch.c, gdbarch.h: Regenerate.
1010         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
1011
1012         * avr-tdep.c (avr_read_sp): Remove.
1013         (avr_unwind_sp): New function.
1014         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
1015         * mips-tdep.c (mips_read_sp): Remove.
1016         (mips_unwind_sp): New function.
1017         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
1018         * score-tdep.c (score_read_unsigned_register): Remove.
1019         (score_read_sp): Remove.
1020         (score_unwind_sp): New function.
1021         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
1022
1023 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
1024
1025         * buildsym.c (start_subfile): Handle absolute pathnames
1026         while comparing subfile names.
1027
1028 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1029
1030         * hppa-hpux-tdep.c: Include "regcache.h".
1031         * hppa-linux-tdep.c: Likewise.
1032         * hppa-tdep.c: Include "gdb_stdint.h".
1033         (find_unwind_entry): Cast host pointer to uintptr_t before passing
1034         it to paddr_nz.
1035         * Makefile.in: Update dependencies.
1036
1037 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1038
1039         * blockframe.c: Remove obsolete comments.
1040         * alpha-nat.c (fetch_osf_core_registers): Update comment.
1041         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
1042         * hppa-tdep.h (enum hppa_regnum): Likewise.
1043         * mips-tdep.h: Likewise.
1044         * m68hc11-tdep.c: Likewise.
1045
1046 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1047
1048         * inferior.h (read_sp): Remove prototype.
1049         * regcache.c (read_sp): Remove.
1050         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
1051         * infcall.c (call_function_by_hand): Likewise.
1052         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
1053         of calling read_sp.
1054         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1055
1056 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1057
1058         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
1059         instead of read_register and read_register_pid.
1060
1061         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
1062         argument instead of PTID.  Use regcache functions instead of
1063         read_register_pid.
1064         (ia64_linux_insert_watchpoint): Update call.
1065         (ia64_linux_stopped_data_address): Use regcache functions
1066         instead of read_register_pid and write_register_pid.
1067
1068 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1069
1070         * libunwind-frame.h (struct regcache): Add forward declaration.
1071         (libunwind_get_reg_special): Add REGCACHE argument.
1072         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
1073         argument.  Pass it to unw_init_remote_p.
1074
1075         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
1076         libunwind_get_reg_special.
1077         (ia64_access_reg): Remove "write" case.
1078         (ia64_access_fpreg): Likewise.  Read from next_frame passed
1079         as callback argument instead of from current_regcache.
1080         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
1081         passed as callback argument instead of from current_regcache.
1082         (ia64_access_rse_fpreg): New function.
1083         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
1084
1085 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1086
1087         * NEWS: Mention SPU overlay support.
1088
1089 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1090
1091         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
1092
1093 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1094
1095         * breakpoint.c (remove_breakpoint): Do not remove software
1096         breakpoints in unmapped overlay sections.
1097
1098 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1099
1100         * spu-tdep.c: Include "observer.h".
1101         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
1102         (spu_overlay_data): New variable.
1103         (struct spu_overlay_table): New type.
1104         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
1105         spu_overlay_new_objfile): New functions.
1106         (spu_gdbarch_init): Install spu_overlay_update.
1107         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
1108         allocate spu_overlay_data objfile data.
1109
1110 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1111
1112         * gdbarch.sh (overlay_update): New gdbarch function.
1113         (struct obj_section): Add forward declaration.
1114         * gdbarch.c, gdbarch.h: Regenerate.
1115
1116         * symfile.c (simple_overlay_update): Make global.
1117         (target_overlay_update): Remove variable.
1118         (overlay_is_mapped): Call gdbarch_overlay_update instead of
1119         target_overlay_update.
1120         (overlay_load_command): Likewise.
1121         * symfile.h (struct obj_section): Add forward declaration.
1122         (simple_overlay_update): Add prototype.
1123
1124         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
1125
1126 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1127
1128         * observer.sh: Add "struct objfile" forward declaration.
1129         * target.h (deprecated_target_new_objfile_hook): Remove.
1130         * symfile.c (deprecated_target_new_objfile_hook): Remove.
1131         (clear_symtab_users): Call observer_notify_new_objfile.
1132         (symbol_file_add_with_addrs_or_offsets): Likewise.
1133         * rs6000-nat.c: Include "observer.h".
1134         (vmap_ldinfo): Call observer_notify_new_objfile.
1135         (xcoff_relocate_core): Likewise.
1136         * remote.c (remote_new_objfile_chain): Remove.
1137         (remote_new_objfile): Do not call remote_new_objfile_chain.
1138         (_initialize_remote): Use observer_attach_new_objfile.
1139         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
1140         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
1141         (_initialize_tui_hooks): Use observer_attach_new_objfile.
1142         * aix-thread.c: Include "observer.h".
1143         (target_new_objfile_chain): Remove.
1144         (new_objfile): Do not call target_new_objfile_chain.
1145         (_initialize_aix_thread): Use observer_attach_new_objfile.
1146         * hpux-thread.c: Include "observer.h"
1147         (target_new_objfile_chain): Remove.
1148         (hpux_thread_new_objfile): Make static.  Do not call
1149         target_new_objfile_chain.
1150         (_initialize_hpux_thread): Use observer_attach_new_objfile.
1151         * linux-thread-db.c: Include "observer.h".
1152         (target_new_objfile_chain): Remove.
1153         (thread_db_new_objfile): Do not call target_new_objfile_chain.
1154         (_initialize_thread_db): Use observer_attach_new_objfile.
1155         * sol-thread.c: Include "observer.h".
1156         (target_new_objfile_chain): Remove.
1157         (sol_thread_new_objfile): Make static.  Do not call
1158         target_new_objfile_chain.
1159         (_initialize_sol_thread): Use observer_attach_new_objfile.
1160         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
1161         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
1162         $(observer_h).
1163
1164 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1165
1166         * gdbarch.sh (remote_translate_xfer_address): Remove.
1167         * gdbarch.h, gdbarch.c: Regenerate.
1168         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
1169         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
1170         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
1171         call gdbarch_remote_translate_xfer_address.
1172         * frv-tdep.c (frv_gdbarch_init): Do not call
1173         set_gdbarch_remote_translate_xfer_address.
1174         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
1175         (ia64_gdbarch_init): Do not install it.
1176
1177 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
1178
1179         * NEWS: Mention change in handling the -tui option.
1180
1181 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
1182
1183         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
1184         typo.
1185
1186 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1187
1188         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
1189         (breakpoint_inserted_here_p): Call it.
1190         (software_breakpoint_inserted_here_p): Likewise.
1191
1192 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
1193
1194         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
1195         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
1196         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
1197         (inf_ptrace_store_register): Likewise.
1198         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
1199         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
1200
1201         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
1202
1203         * linux-nat.c (linux_trad_target): Adapt parameter list.
1204         * linux-nat.h (linux_trad_target): Likewise.
1205
1206         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
1207
1208         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
1209         (mips_linux_cannot_store_register): Likewise.
1210         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
1211         Return (CORE_ADDR) -1 for registers that cannot be fetched or
1212         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
1213         (mips64_linux_register_addr): Likewise.
1214         (mips_linux_register_u_offset): Adapt parameter list.  Pass
1215         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
1216
1217         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
1218         * config/mips/nm-linux.h: Delete file.
1219
1220 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
1221
1222         * remote.c (remote_detach): Error out if remote can't detach.
1223
1224 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
1225
1226         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
1227         instruction's opcode in the "opcode" variable and declares new
1228         variable "closing_insn".
1229
1230 2007-05-10  Chris Dearman  <chris@mips.com>
1231             Maciej W. Rozycki  <macro@mips.com>
1232
1233         * cli/cli-setshow.c (do_setshow_command): Remove trailing
1234         whitespace when setting a var_filename.
1235
1236 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
1237         
1238         * main.c (captured_main): Recognize -tui option and print an error
1239         message when the TUI is not configured.
1240         
1241 2007-05-09  Andreas Schwab  <schwab@suse.de>
1242
1243         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
1244         set removed members.
1245         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1246
1247 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
1248
1249         * gdbarch.sh (deprecated_store_struct_return): Remove.
1250         * gdbarch.c, gdbarch.h: Regenerate.
1251         * frv-tdep.c (frv_store_struct_return): Remove.
1252         (frv_gdbarch_init): Do not install it.
1253
1254 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
1255
1256         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
1257         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
1258         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
1259
1260 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
1261
1262         * spu-linux-nat.c: Include "gdb_stdint.h".
1263         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
1264         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
1265         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
1266         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
1267         (spu_child_wait): Mark up string for translation.
1268
1269 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
1270             Luis Machado  <luisgpm@br.ibm.com>
1271
1272         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
1273         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
1274         BC_INSTRUCTION): Define.
1275         (deal_with_atomic_sequence): New function.
1276         (rs6000_software_single_step): Call deal_with_atomic_sequence.
1277         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
1278         gdbarch_software_single_step routine.
1279
1280 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
1281
1282         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
1283         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
1284         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
1285         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
1286         spu_child_post_attach, spu_fetch_inferior_registers,
1287         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
1288         memory addresses as ULONGEST, not CORE_ADDR.
1289
1290 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
1291
1292         * gdbarch.sh: Add skip_permanent_breakpoint callback.
1293         * gdbarch.h, gdbarch.c: Regenerate.
1294
1295         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
1296         (resume): Call gdbarch_skip_permanent_breakpoint instead of
1297         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
1298
1299         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
1300         Add REGCACHE argument.  Use it instead of read/write_register.
1301         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
1302
1303         * config/pa/tm-hppah.h: Delete file.
1304         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
1305         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
1306
1307 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
1308
1309         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
1310         * NEWS: Mention improved C++ thunk support.
1311         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
1312         * cp-abi.c (cplus_skip_trampoline): New.
1313         * cp-abi.h (cplus_skip_trampoline): New prototype.
1314         (struct cp_abi_ops): Add skip_trampoline member.
1315         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
1316         (init_gnuv3_ops): Set skip_trampoline.
1317
1318 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
1319
1320         * rs6000-tdep.c (struct frame_extra_info): Delete.
1321
1322 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
1323
1324         * linux-thread-db.c: Update some FIXME comments.
1325         (thread_db_xfer_partial): Delete.
1326         (init_thread_db_ops): Do not set to_xfer_partial.
1327
1328 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1329
1330         * inftarg.c, infptrace.c: Remove files.
1331         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
1332         (inftarg.o, infptrace.o): Remove rules.
1333         * gdbcore.h (register_addr): Remove prototype.
1334         * inferior.h (kill_inferior, store_inferior_registers,
1335         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
1336         call_ptrace, pre_fork_inferior): Remove prototypes.
1337         * target.h (child_xfer_memory, child_pid_to_exec_file, 
1338         child_core_file_to_sym_file, child_post_attach,
1339         child_post_startup_inferior, child_acknowledge_created_inferior,
1340         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
1341         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
1342         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
1343         child_follow_fork, child_reported_exec_events_per_exec_call,
1344         child_has_exited, child_thread_alive): Remove prototypes.
1345
1346 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1347
1348         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
1349         (sparc_store_inferior_registers): Likewise.
1350         * sparc-nat.c (fetch_inferior_registers): Rename to ...
1351         (sparc_fetch_inferior_registers): ... this.
1352         (store_inferior_registers): Rename to ...
1353         (sparc_store_inferior_registers): ... this.
1354         (sparc_target): Update callback names.
1355         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
1356         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
1357
1358 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1359
1360         * linux-nat.c (child_post_attach): Rename to ...
1361         (linux_child_post_attach): ... this.  Make static.
1362         (child_follow_fork): Rename to ...
1363         (linux_child_follow_fork): ... this.  Make static.
1364         (child_insert_fork_catchpoint): Rename to ...
1365         (linux_child_insert_fork_catchpoint): ... this.  Make static.
1366         (child_insert_vfork_catchpoint): Rename to ...
1367         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
1368         (child_insert_exec_catchpoint): Rename to ...
1369         (linux_child_insert_exec_catchpoint): ... this.  Make static.
1370         (child_pid_to_exec_file): Rename to ...
1371         (linux_child_pid_to_exec_file): ... this.  Make static.
1372         Add prototype.
1373         (linux_handle_extended_wait): Update call.
1374         (linux_xfer_partial): Update callback routine names.
1375
1376 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1377
1378         * configure.host (alpha*-*-osf[12]*): Remove support.
1379         * NEWS: Mention removed configurations.
1380
1381         * config/alpha/alpha-osf1.mh: Delete file.
1382         * config/alpha/alpha-osf2.mh: Delete file.
1383         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
1384         and infptrace.o.
1385         * config/alpha/nm-osf.h: Delete file.
1386         * config/alpha/nm-osf2.h: Delete file.
1387         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
1388         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
1389         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
1390
1391         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
1392         (register_addr, kernel_u_size): Remove.
1393         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
1394
1395 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1396
1397         * regcache.c (regcache_invalidate): New function.
1398         (register_cached): Remove.
1399         (set_register_cached): Remove.
1400         (deprecated_registers_fetched): Remove.
1401         (registers_changed): Use regcache_invalidate instead
1402         of set_register_cached.
1403         (regcache_raw_read): Update comment.
1404
1405         * regcache.h (regcache_invalidate): Add prototype.
1406         (register_cached): Remove.
1407         (set_register_cached): Remove.
1408         (deprecated_registers_fetched): Remove.
1409
1410         * findvar.c (value_of_register): Do not call register_cached.
1411         * frame.c (frame_register): Likewise.
1412         * tui/tui-regs.c (tui_get_register): Likewise.
1413
1414         * remote.c (fetch_register_using_p): Do not call set_register_cached.
1415         (process_g_packet): Likewise.
1416         (remote_fetch_registers): Likewise.
1417         * remote-sim.c (gdbsim_fetch_register): Likewise.
1418         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
1419         by regcache_invalidate.
1420         (mt_pseudo_register_write): Likewise.
1421         * sh-tdep.c (sh_pseudo_register_write): Likewise.
1422
1423         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
1424         call by loop over regcache_raw_supply (..., NULL).
1425
1426 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1427
1428         * target.h (struct target_ops): Add REGCACHE parameter to
1429         to_prepare_to_store.
1430         (target_prepare_to_store): Likewise.
1431         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
1432         (update_current_target): Adapt prepare_to_store de_fault rule.
1433
1434         * regcache.c (regcache_raw_write): Pass regcache to
1435         target_prepare_to_store.
1436
1437         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
1438         Do not call CHILD_PREPARE_TO_STORE.
1439         * gnu-nat.c (gnu_prepare_to_store): Likewise.
1440         * procfs.c (procfs_prepare_to_store): Likewise.
1441
1442         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
1443         * go32-nat.c (go32_prepare_to_store): Likewise.
1444         * monitor.c (monitor_prepare_to_store): Likewise.
1445         * nto-procfs.c (procfs_prepare_to_store): Likewise.
1446         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
1447         * remote-mips.c (mips_prepare_to_store): Likewise.
1448         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
1449         * win32-nat.c (win32_prepare_to_store): Likewise.
1450
1451         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
1452         Use it instead of current_regcache.
1453
1454         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
1455         parameter.  Pass it on to next target.
1456         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
1457
1458 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1459
1460         * target.h (struct regcache): Add forward declaration.
1461         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
1462         and to_store_registers target operations.
1463         (target_fetch_registers, target_store_registers): Update.
1464
1465         * regcache.c (regcache_raw_read): Replace register_cached by
1466         regcache_valid_p.  Pass regcache to target_fetch_registers.
1467         (regcache_raw_write): Pass regcache to target_store_registers.
1468
1469         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
1470         store_regs, store_wmmx_regs): Replace register_cached by
1471         regcache_valid_p.
1472
1473         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
1474         to target_fetch_registers calls.
1475         * corelow.c (core_open): Likewise.
1476         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
1477         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
1478         ps_lsetfpregs): Likewise.
1479         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
1480         ps_lsetfpregs): Likewise.
1481         * win32-nat.c (win32_resume): Likewise.
1482         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
1483         to target_store_registers call.
1484         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1485
1486         * inferior.h (store_inferior_registers): Update prototype.
1487         (fetch_inferior_registers): Likewise.
1488         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
1489         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
1490         Update function pointer signatures.
1491
1492         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
1493         use it instead of current_regcache, update calls.
1494         (aix_thread_store_registers): Likewise.
1495         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
1496         (alphabsd_store_inferior_registers): Likewise.
1497         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
1498         (amd64bsd_store_inferior_registers): Likewise.
1499         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
1500         (amd64_linux_store_inferior_registers): Likewise.
1501         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
1502         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
1503         fetch_wmmx_regs, store_wmmx_regs): Likewise.
1504         (arm_linux_fetch_inferior_registers): Likewise.
1505         (arm_linux_store_inferior_registers): Likewise.
1506         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
1507         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
1508         (store_register, store_regs, store_fp_register, store_fp_regs,
1509         armnbsd_store_registers): Likewise.
1510         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
1511         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
1512         (bsd_uthread_store_registers): Likewise.
1513         * corelow.c (get_core_registers): Likewise.
1514         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
1515         go32_store_registers): Likewise.
1516         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
1517         (hppabsd_store_registers): Likewise.
1518         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
1519         (hppa_hpux_fetch_inferior_registers): Likewise.
1520         (hppa_hpux_store_register): Likewise.
1521         (hppa_hpux_store_inferior_registers): Likewise.
1522         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1523         (hppa_linux_fetch_inferior_registers): Likewise.
1524         (hppa_linux_store_inferior_registers): Likewise.
1525         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
1526         (hpux_thread_store_registers): Likewise.
1527         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
1528         (i386bsd_store_inferior_registers): Likewise.
1529         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
1530         gnu_store_registers): Likewise.
1531         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
1532         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
1533         Likewise.
1534         (i386_linux_fetch_inferior_registers): Likewise.
1535         (i386_linux_store_inferior_registers): Likewise.
1536         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
1537         (ia64_linux_fetch_registers): Likewise.
1538         (ia64_linux_store_register): Likewise.
1539         (ia64_linux_store_registers): Likewise.
1540         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1541         (inf_child_store_inferior_registers): Likewise.
1542         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1543         (inf_ptrace_fetch_registers): Likewise.
1544         (inf_ptrace_store_register): Likewise.
1545         (inf_ptrace_store_registers): Likewise.
1546         * infptrace.c (fetch_register, store_register): Likewise.
1547         (fetch_inferior_registers, store_inferior_registers): Likewise.
1548         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
1549         (m32r_linux_fetch_inferior_registers): Likewise.
1550         (m32r_linux_store_inferior_registers): Likewise.
1551         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
1552         (m68kbsd_store_inferior_registers): Likewise.
1553         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
1554         store_register, old_store_inferior_registers, fetch_regs, store_regs,
1555         fetch_fpregs, store_fpregs): Likewise.
1556         (m68k_linux_fetch_inferior_registers): Likewise.
1557         (m68k_linux_store_inferior_registers): Likewise.
1558         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
1559         (m88kbsd_store_inferior_registers): Likewise.
1560         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
1561         (mips64obsd_store_inferior_registers): Likewise.
1562         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
1563         (mips64_linux_regsets_store_registers): Likewise.
1564         (mips64_linux_fetch_registers): Likewise.
1565         (mips64_linux_store_registers): Likewise.
1566         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
1567         (mipsnbsd_store_inferior_registers): Likewise.
1568         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
1569         (monitor_fetch_registers, monitor_store_registers): Likewise.
1570         * nto-procfs.c (procfs_fetch_registers): Likewise.
1571         (procfs_store_registers): Likewise.
1572         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
1573         fetch_register, supply_vrregset, fetch_altivec_registers,
1574         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
1575         (store_altivec_register, store_spe_register, store_register, 
1576         fill_vrregset, store_altivec_registers, store_ppc_registers,
1577         ppc_linux_store_inferior_registers): Likewise.
1578         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
1579         (ppcnbsd_store_inferior_registers): Likewise.
1580         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
1581         (ppcobsd_store_registers): Likewise.
1582         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1583         * remote.c (fetch_register_using_p, process_g_packet,
1584         fetch_registers_using_g, remote_fetch_registers): Likewise.
1585         (store_register_using_P, store_registers_using_G, 
1586         remote_store_registers): Likewise.
1587         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
1588         m32r_store_register, m32r_store_register): Likewise.
1589         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
1590         * remote-sim.c (gdbsim_fetch_register): Likewise.
1591         (gdbsim_store_register): Likewise.
1592         * rs6000-nat.c (fetch_register, store_register): Likewise.
1593         (rs6000_fetch_inferior_registers): Likewise.
1594         (rs6000_store_inferior_registers): Likewise.
1595         * s390-nat.c (fetch_regs, store_regs): Likewise.
1596         (fetch_fpregs, store_fpregs): Likewise.
1597         (s390_linux_fetch_inferior_registers): Likewise.
1598         (s390_linux_store_inferior_registers): Likewise.
1599         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
1600         (shnbsd_store_inferior_registers): Likewise.
1601         * sol-thread.c (sol_thread_fetch_registers): Likewise.
1602         (sol_thread_store_registers): Likewise.
1603         * sparc-nat.c (fetch_inferior_registers): Likewise.
1604         (store_inferior_registers): Likewise.
1605         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1606         (spu_store_inferior_registers): Likewise.
1607         * target.c (debug_print_register): Likewise.
1608         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
1609         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
1610         (vaxbsd_store_inferior_registers): Likewise.
1611         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
1612         (win32_fetch_inferior_registers): Likewise.
1613         (win32_store_inferior_registers): Likewise.
1614
1615 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1616
1617         * gdbcore.h (struct regcache): Add forward declaration.
1618         (struct core_fns): Add REGCACHE argument to core_read_registers
1619         callback.
1620         * corelow.c (get_core_register_section): Add REGCACHE argument,
1621         use it instead of current_regcache, pass it to core_read_registers
1622         callback.
1623         (get_core_registers): Add current_regcache as parameter to
1624         get_core_register_section calls.
1625
1626         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
1627         use it instead of current_regcache.
1628         * armnbsd-nat.c (fetch_core_registers): Likewise.
1629         (fetch_elfcore_registers): Likewise.
1630         * core-regset.c (fetch_core_registers): Likewise.
1631         * cris-tdep.c (fetch_core_registers): Likewise.
1632         * irix5-nat.c (fetch_core_registers): Likewise.
1633         * m68klinux-nat.c (fetch_core_registers): Likewise.
1634         * mips-linux-tdep.c (fetch_core_registers): Likewise.
1635         * win32-nat.c (fetch_elf_core_registers): Likewise.
1636
1637 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1638
1639         * gregset.h (struct regcache): Add forward declaration.
1640         (supply_gregset): Add REGCACHE parameter, make GREGS const.
1641         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
1642         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
1643         (fill_gregset): Add REGCACHE parameter.
1644         (fill_fpregset): Likewise.
1645         (fill_fpxregset): Likewise.
1646
1647         Update all definitions accordingly:
1648         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
1649         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
1650         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
1651         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
1652         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
1653         (supply_gregset): Add REGCACHE parameter, use it instead of 
1654         current_regcache.  Make GREGSETP parameter const, adapt casts.
1655         (supply_fpregset): Add REGCACHE parameter, use it instead of
1656         current_regcache.  Make FPREGSETP parameter const, adapt casts.
1657         (fill_gregset): Add REGCACHE parameter, use it instead of
1658         current_regcache.
1659         (fill_fpregset): Likewise.
1660
1661         Update all callers to pass in current_regcache as the new argument:
1662         * core-regset.c: Include "regcache.h".
1663         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
1664         * procfs.c: Include "regcache.h".
1665         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
1666         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
1667         (procfs_do_thread_registers): Likewise.
1668         (procfs_make_note_section): Likewise.
1669         * proc-service.c: Include "regcache.h".
1670         (ps_lgetregs): Update fill_gregset call.
1671         (ps_lsetregs): Update supply_gregset call.
1672         (ps_lgetfpregs): Update fill_fpregset call.
1673         (ps_lsetfpregs): Update supply_fpregset call.
1674         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
1675         supply_fpregset calls.
1676         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
1677         (ps_lgetregs): Update fill_gregset call.
1678         (ps_lsetregs): Update supply_gregset call.
1679         (ps_lgetfpregs): Update fill_fpregset call.
1680         (ps_lsetfpregs): Update supply_fpregset call.
1681         
1682         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
1683         fill_fpregset, and fill_fpxregset calls.
1684         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
1685         (store_regs): Update fill_gregset call.
1686         (fetch_fpregs): Update supply_fpregset call.
1687         (store_fpregs): Update fill_fpregset call.
1688         (fetch_fpxregs): Update supply_fpxregset call.
1689         (store_fpxregs): Update fill_fpxregset call.
1690         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
1691         (store_regs): Update fill_gregset call.
1692         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
1693         (store_regs): Update fill_gregset call.
1694         (fetch_fpregs): Update supply_fpregset call.
1695         (store_fpregs): Update fill_fpregset call.
1696         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
1697         * s390-nat.c (fetch_regs): Update supply_gregset call.
1698         (store_regs): Update fill_gregset call.
1699         (fetch_fpregs): Update supply_fpregset call.
1700         (store_fpregs): Update fill_fpregset call.
1701
1702         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
1703         dependencies.
1704
1705 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1706
1707         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
1708         it instead of current_regcache.
1709         (parse_register_dump): Add REGCACHE parameter, pass it to 
1710         supply_register callback.
1711         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
1712         parse_register_dump.
1713         (monitor_dump_regs): Add REGCACHE parameter, pass it to
1714         parse_register_dump and dumpregs callback.
1715         (monitor_wait): Pass current_regcache to parse_register_dump and
1716         monitor_dump_regs.
1717         (monitor_fetch_register): Pass current_regcache to
1718         monitor_supply_register.
1719         (monitor_fetch_registers): Pass current_regcache to
1720         monitor_dump_regs.
1721         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
1722         supply_register and dumpregs callbacks.
1723         (monitor_supply_register, monitor_dump_reg_block): Update
1724         prototypes.
1725         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
1726         it to monitor_supply_register.
1727         * dink32-rom.c (dink32_supply_register): Likewise.
1728         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
1729         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
1730         instead of current_regcache.
1731
1732 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1733
1734         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
1735         Add REGCACHE parameter.  Use it instead of current_regcache.
1736         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
1737         i386nto_supply_gregset and i386nto_supply_fpregset.
1738         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
1739         of current_regcache.
1740
1741         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
1742         nto_supply_ helper functions.
1743         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
1744
1745         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
1746
1747         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
1748         supply_greget, supply_fpregset, supply_altregset, supply_regset,
1749         and regset_fill member function pointers.
1750         (nto_dummy_supply_regset): Adapt prototype.
1751
1752 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1753
1754         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
1755         instead of current_regcache.  Make REGS const.
1756         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
1757         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
1758         prototypes.
1759         * shnbsd-nat.c: Include "regcache.h".
1760         (shnbsd_fetch_inferior_registers): Pass current_regcache to
1761         shnbsd_supply_reg.
1762         (shnbsd_store_inferior_registers): Pass current_regcache to
1763         shnbsd_fill_reg.
1764         * Makefile.in (shbsd-nat.o): Update dependencies.
1765
1766 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1767
1768         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
1769         instead of current_regcache.
1770         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
1771         Make GREGSETP const, remove superfluous casts.
1772         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
1773         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
1774         superfluous casts.
1775         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
1776         (supply_64bit_reg): Likewise
1777         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
1778         Make GREGSETP const, adapt casts accordingly.
1779         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
1780         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
1781         casts accordingly.
1782         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
1783         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
1784         helper routines.
1785         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
1786         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
1787         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
1788         Adapt prototypes.
1789         * mips-linux-nat.c: Include "regcache.h".
1790         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
1791         current_regcache to mips{64}_(supply|fill)_ helper routines.
1792         (mips64_linux_regsets_fetch_registers): Likewise.
1793         (mips64_linux_regsets_store_registers): Likewise.
1794
1795         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
1796         REGCACHE argument; replace current_regcache.  Make REGS const.
1797         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
1798         replace current_regcache.
1799         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
1800         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
1801         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
1802         mipsnbsd_store_inferior_registers): Pass current_regcache to
1803         mipsnbsd_(supply|fill)_... helper routines.
1804
1805         * Makefile.in (mips-linux-nat.o): Update dependencies.
1806
1807 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1808
1809         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
1810         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
1811         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
1812         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
1813         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
1814         * i386gnu-nat.c (store_fpregs): Likewise.
1815         * i386v4-nat.c (fill_fpregset): Likewise.
1816         * go32-nat.c (store_register, go32_store_registers): Likewise.
1817
1818 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1819
1820         * cris-tdep.c (supply_gregset): Rename to ...
1821         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
1822         instead of current_regcache.
1823         (fetch_core_registers): Update call.  Pass current_regcache.
1824
1825 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1826
1827         * arnmnbsd-nat.c (supply_gregset): Rename to ...
1828         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
1829         Use it instead of current_regcache.
1830         (supply_fparegset): Rename to ...
1831         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
1832         Use it instead of current_regcache.
1833         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
1834         (fetch_core_registers, fetch_elfcore_registers): Likewise.
1835
1836 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1837
1838         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
1839         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
1840         use it instead of current_regcache.
1841         * alpha-tdep.h (struct regcache): Add forward declaration.
1842         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
1843         alpha_fill_fp_regs): Update prototypes.
1844
1845         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
1846         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
1847         * alpha-linux-nat.c: Include "regcache.h".
1848         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
1849         current_regcache to alpha_supply/fill_ routines.
1850
1851         * alphabsd-tdep.c: Include "regcache.h".
1852         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
1853         pass it to alpha_supply_ routines.  Make REGS const.
1854         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
1855         pass it to alpha_fill_ routines.
1856         * alphabsd-tdep.h (struct regcache): Add forward declaration.
1857         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
1858         alphabsd_fill_fpreg): Update prototypes.
1859
1860         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
1861         fill_fpregset, alphabsd_fetch_inferior_registers,
1862         alphabsd_store_inferior_registers): Pass current_regcache to
1863         alphabsd_supply/fill_ routines.
1864
1865         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
1866         dependencies.
1867
1868 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1869
1870         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
1871         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
1872         instead of current_regcache.
1873         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
1874         REGCACHE parameter, pass it to supply_ routines.
1875         (aix_thread_fetch_registers): Pass current_regcache to
1876         fetch_regs_user_thread and fetch_regs_kernel_thread.
1877
1878         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
1879         Add REGCACHE parameter, use it instead of current_regcache.
1880         Call regcache_valid_p instead of register_cached.
1881         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
1882         Also, pass REGCACHE to fill_ routines.
1883         (aix_thread_store_registers): Pass current_regcache to
1884         store_regs_user_thread and store_regs_kernel_thread.
1885
1886 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1887
1888         * m32r-linux-nat.c (supply_gregset): Do not modify contents
1889         pointed to by GREGSETP.
1890
1891 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1892
1893         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
1894         of regcache_raw_read_signed.
1895         (fill_fpregset): Use regcache_raw_collect instead of
1896         regcache_raw_read.
1897
1898 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
1899
1900         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
1901         point arguments, test explicitly for use of the EABI32 ABI
1902         instead of inferring this condition from tests on register
1903         sizes.
1904
1905 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
1906
1907         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
1908         prior to allocating its location.
1909
1910 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
1911
1912         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
1913         based on mips_abi_regsize() whose result is known in advance.
1914         (mips_o64_push_dummy_call): Likewise.
1915
1916 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
1917
1918         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
1919         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
1920
1921         * mips-linux-nat.c: Include "gregset.h".
1922         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
1923         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
1924         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
1925         fill_fpregset): Move to mips-linux-nat.c.
1926
1927         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
1928
1929 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
1930
1931         * regcache.c (deprecated_read_register_gen): Remove, inline ...
1932         (read_register): ... here.
1933         (deprecated_write_register_gen): Remove, inline ...
1934         (write_register): ... here.
1935         * regcache.h (deprecated_read_register_gen): Remove prototype.
1936         (deprecated_write_register_gen): Likewise.
1937
1938         * remote-sim.c (gdbsim_store_register): Replace call to
1939         deprecated_read_register_gen with regcache_cooked_read.
1940         * target.c (debug_print_register): Replace calls to
1941         deprecated_read_register_gen and read_register with
1942         regcache_cooked_read.
1943
1944 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
1945
1946         * hpux-thread.c (hpux_thread_store_registers): Use
1947         regcache_raw_collect, not regcache_raw_read.
1948         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
1949         not regcache_raw_write.
1950
1951 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
1952
1953         * gdbarch.sh: Remove deprecated_register_byte.
1954         * gdbarch.c, gdbarch.h: Regenerate.
1955         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
1956         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
1957
1958         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
1959         * regcache.c (regcache_valid_p): Allow to query cooked registers in
1960         read-only register caches.  Make REGCACHE parameter const.
1961         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
1962
1963         * mi/mi-main.c (old_regs): Remove.
1964         (mi_setup_architecture_data, _initialize_mi_main): Remove.
1965         (register_changed_p): Reimplement to compare two register caches.
1966         (mi_cmd_data_list_changed_registers): Update caller.
1967         * mi/mi-main.h (mi_setup_architecture_data): Remove.
1968         * mi/mi-interp.c (mi_interpreter_init): Do not call
1969         mi_setup_architecture_data.
1970
1971 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
1972
1973         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
1974         inline definition at the places the macros are used.
1975         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
1976
1977 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
1978
1979         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
1980         "gdb_string.h".
1981         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
1982         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
1983         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
1984         (rs6000_aix_regset_from_core_section): New function.
1985         (rs6000_aix_init_osabi): Register it.
1986         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
1987         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
1988         * rs6000-nat.c (CoreRegs): Do not define type.
1989         (fetch_core_registers, rs6000_core_fns): Remove.
1990         (_initialize_core_rs6000): Do not register it.  Rename to ...
1991         (_initialize_rs6000_nat): ... this.
1992         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
1993
1994 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
1995
1996         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
1997         (dwarf2_read_address): Sign extend return address as required by
1998         target architecture.
1999
2000 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
2001
2002         * solib-frv.c (lm_base): Bail out if the main executable has
2003         not been relocated.
2004
2005 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2006
2007         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
2008         of FPCR register in fpregset.
2009
2010 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
2011
2012         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
2013         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
2014
2015 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2016
2017         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
2018         * rs6000-nat.c (rs6000_wait): New function.
2019         (_initialize_core_rs6000): Install it as to_wait target method.
2020         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
2021
2022 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2023
2024         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
2025         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
2026         * rs6000-nat.c (super_create_inferior): New variable.
2027         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
2028         original version of create_inferior via super_create_inferior.
2029         (_initialize_core_rs6000): Install to_create_inferior target method.
2030
2031 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2032
2033         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
2034         (aix_thread_xfer_partial): ... this.
2035         (init_aix_thread_ops): Install to_xfer_partial instead
2036         of deprecated_xfer_memory target method.
2037
2038         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
2039         and inftarg.o, add inf-ptrace.o.
2040         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
2041         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
2042         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
2043         (fetch_inferior_registers): Rename to ...
2044         (rs6000_fetch_inferior_registers): ... this.  Make static.
2045         (store_inferior_registers): Rename to ...
2046         (rs6000_store_inferior_registers): ... this.  Make static.
2047         (read_word, child_xfer_memory): Remove.
2048         (rs6000_xfer_partial): New function.
2049         (kernel_u_size): Remove.
2050         (_initialize_core_rs6000): Add inf_ptrace-based target.
2051         * Makefile.in (rs6000-nat.o): Update dependencies.
2052
2053 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2054
2055         * inf-ptrace.c: Include "gdb_stdint.h".
2056         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
2057         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
2058         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
2059         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
2060         (inf_ptrace_store_register): Likewise.
2061         * Makefile.in (inf-ptrace.o): Update dependencies.
2062
2063 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2064
2065         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
2066         * configure.tgt (rs6000-*-*): Likewise.
2067         * config/rs6000/aix4.mh: Delete file.
2068         * config/rs6000/aix4.mt: Delete file.
2069         * config/rs6000/rs6000.mh: Delete file.
2070         * config/rs6000/rs6000.mt: Delete file.
2071
2072         * config/powerpc/nm-aix.h: Delete file.
2073         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
2074
2075 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2076
2077         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
2078         Remove obsolete part of comment.
2079         (store_regs_user_thread): Use uint32_t temporaries when calling
2080         fill_sprs32.
2081         (store_regs_kernel_thread): Likewise.  Add assertion to verify
2082         correct size of struct ptsprs members.
2083         (aix_thread_xfer_memory): Fix type of myaddr.
2084         (aix_thread_extra_thread_info): Fix compiler warning.
2085         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
2086         (fetch_register, store_register): Adapt callers.
2087
2088 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
2089
2090         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
2091
2092 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2093
2094         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
2095         and "regcache.h".
2096         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
2097         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
2098         (alpha_linux_regset_from_core_section): New function.
2099         (alpha_linux_init_abi): Install it.
2100         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
2101         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
2102         <sys/procfs.h>, and "gregset.h".
2103         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
2104         Move from config/alpha/nm-linux.h.
2105         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
2106         from alpha-nat.c.
2107         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
2108         * alpha-nat.c: Remove #ifdef __linux__ section.
2109         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
2110         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
2111         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
2112         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
2113         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
2114         (NATDEPFILES): Remove alpha-nat.o.
2115         * config/alpha/nm-linux.h: Delete file.
2116         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
2117         * Makefile.in (alpha-linux-nat.o): Update dependencies.
2118         (alpha-linux-tdep.o): Likewise.
2119
2120 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2121
2122         * mips-linux-nat.c: No longer include "gdbcore.h".
2123         (mips_linux_register_addr): Move from mips-linux-tdep.c.
2124         (mips64_linux_register_addr): Likewise.
2125         (mips_linux_register_u_offset): Call mips_linux_register_addr or
2126         mips64_linux_register_addr instead of register_addr.
2127         * mips-linux-tdep.c (mips_linux_register_addr,
2128         mips64_linux_register_addr): Move to mips-linux-nat.c.
2129         (register_addr): Remove.
2130         (register_addr_data, init_register_addr_data): Remove.
2131         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
2132         (set_mips_linux_register_addr): Remove.
2133         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
2134         * Makefile.in (mips-linux-nat.o): Update dependencies.
2135
2136 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2137
2138         * linux-nat.c (linux_register_u_offset): Remove.
2139         (linux_target_install_ops): New function.
2140         (linux_target): Use it.
2141         (linux_trad_target): New function.
2142         * linux-nat.h (linux_trad_target): Declare.
2143
2144         * alpha-linux-nat.c: Include "gdbcore.h".
2145         (alpha_linux_register_u_offset): New function.
2146         (_initialize_alpha_linux_nat): Use linux_trad_target.
2147
2148         * mips-linux-nat.c: Include "gdbcore.h".
2149         (mips_linux_register_u_offset): New function.
2150         (_initialize_mips_linux_nat): Use linux_trad_target.
2151
2152         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2153         * config/arm/nm-linux.h: Delete file.
2154
2155         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
2156         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
2157
2158         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2159         * config/ia64/nm-linux.h: Delete file.
2160
2161         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2162         * config/m32r/nm-linux.h: Delete file.
2163
2164         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2165         * config/m68k/nm-linux.h: Delete file.
2166
2167         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2168         * config/pa/nm-linux.h: Delete file.
2169
2170         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2171         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
2172         * config/powerpc/nm-linux.h: Delete file.
2173
2174         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
2175         * config/s390/nm-linux.h: Delete file.
2176
2177         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2178         * config/sparc/linux64.mh (NAT_FILE): Likewise.
2179         * config/sparc/nm-linux.h: Delete file.
2180
2181         * Makefile.in (alpha-linux-nat.o): Update dependencies.
2182         (mips-linux-nat.o): Likewise.
2183
2184 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2185
2186         * core-aout.c: Delete file.
2187         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
2188         (core-aout.o): Delete rule.
2189         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
2190
2191         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
2192
2193         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
2194         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
2195         KERNEL_U_ADDR): Remove.
2196
2197         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
2198         (cannot_fetch_register, cannot_store_register): Remove.
2199         (fetch_register): Inline cannot_fetch_register and register_addr.
2200         (store_register): Inline cannot_store_register and register_addr.
2201         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
2202         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2203         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
2204         Remove.
2205
2206         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
2207         (fetch_register): Inline register_addr.
2208         (store_register): Inline register_addr.
2209         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
2210         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2211         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
2212
2213         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
2214         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
2215         REGISTER_U_ADDR): Remove.
2216
2217         * hppa-linux-nat.c (register_addr): Rename to ...
2218         (hppa_linux_register_addr): ... this.  Make static.
2219         (fetch_register, store_register): Adapt callers.
2220         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
2221
2222         * ppc-linux-nat.c (kernel_u_size): Remove.
2223         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
2224
2225         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
2226         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
2227         (NAT_FILE): Remove.
2228         * config/vax/nm-vax.h: Delete file.
2229
2230 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
2231
2232         * MAINTAINERS (Write After Approval): Add myself.
2233
2234 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
2235
2236         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
2237         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
2238         (m68k_linux_sigcontext_reg_offset): Fix typo.
2239         (target_is_uclinux): New.
2240         (m68k_linux_inferior_created): New.
2241         (m68k_linux_get_sigtramp_info):  Check for uClinux or
2242         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
2243         uClinux.
2244         (_initialize_m68k_linux_tdep): Register
2245         m68k_linux_inferior_created.
2246
2247 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
2248
2249         * win32-nat.c (win32_detach): Remove delete_command call.
2250         Resume inferior with win32_resume instead of win32_continue.
2251
2252 2007-04-19  Jerome Guitton  <guitton@adacore.com>
2253
2254         * ser-mingw.c (fd_is_file): New function.
2255         (file_select_thread): New function.
2256         (ser_console_wait_handle): Add special handling for files.
2257
2258 2007-04-18  Denis Pilat  <denis.pilat@st.com>
2259
2260         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
2261         when missing from DW_TAG_subrange_type.  Remove the handling of null
2262         return from die_type.
2263
2264 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
2265
2266         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
2267         change to rearrange some brackets.
2268         (mips_n32n64_push_dummy_call): Likewise.
2269         (mips_o32_push_dummy_call): Likewise.
2270         (mips_o64_push_dummy_call): Likewise.
2271
2272 2007-04-18  Denis Pilat  <denis.pilat@st.com>
2273
2274         * infcmd.c (post_create_inferior): Start with a call to 
2275         target_terminal_ours.
2276
2277 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2278
2279         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
2280         brackets.
2281         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
2282         expressions.
2283         (mips_o32_push_dummy_call): Likewise.
2284         (mips_o64_push_dummy_call): Likewise.
2285
2286 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2287
2288         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2289         comment.
2290
2291 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2292
2293         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2294         comment.
2295         (mips_o32_push_dummy_call): Likewise.
2296
2297 2007-04-17  Andreas Schwab  <schwab@suse.de>
2298
2299         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
2300         sal to be bigger than the end of the function.
2301
2302 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
2303             Nigel Stephens  <nigel@mips.com>
2304
2305         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
2306         argument alignment requirements when calculating stack space
2307         required.  When aligning an arg register to eight bytes
2308         boundary, align stack_offset too.  Write floating-point
2309         arguments to the appropriate integer register if need go there.
2310         (mips_o64_push_dummy_call): Likewise.
2311
2312 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2313
2314         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
2315         "sig" arguments, add "regcache" argument.
2316         * gdbarch.c, gdbarch.h: Regenerate.
2317
2318         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
2319         (handle_inferior_event): Call remove_single_step_breakpoints directly
2320         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
2321
2322         * alpha-tdep.c (alpha_software_single_step): Update argument list.
2323         Remove handling of !insert_breakpoints_p case.
2324         * arm-tdep.c (arm_software_single_step): Likewise.
2325         * cris-tdep.c (cris_software_single_step): Likewise.
2326         * mips-tdep.c (mips_software_single_step): Likewise.
2327         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2328         * sparc-tdep.c (sparc_software_single_step): Likewise.
2329         * spu-tdep.c (spu_software_single_step): Likewise.
2330
2331         * alpha-tdep.h (alpha_software_single_step): Update prototype.
2332         * mips-tdep.h (mips_software_single_step): Likewise.
2333         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
2334         * sparc-tdep.h (sparc_software_single_step): Likewise.
2335
2336 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2337
2338         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
2339         when removing single-step breakpoints.
2340
2341 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
2342
2343         * varobj.h (varobj_set_frozen): New
2344         (varobj_get_frozen): New.
2345         (varobj_update): New parameter explicit.
2346         * varobj.c (struct varobj): New fields frozen
2347         and not_fetched.
2348         (varobj_set_frozen, varobj_get_frozen): New.
2349         (install_new_value): Don't fetch values for 
2350         frozen variable object, or children thereof.  Allow
2351         a frozen variable object to have non-fetched value.
2352         (varobj_update): Allow updating child variables.
2353         Don't traverse frozen children.
2354         (new_variable): Initialize the frozen field.
2355         (c_value_of_variable): Return NULL for frozen
2356         variable without any value yet. 
2357         * mi/mi-cmd-var.c (varobj_update_one): New parameter
2358         'explicit'.
2359         (mi_cmd_var_create): Output the 'frozen' field,
2360         as soon as testsuite is adjusted to expect that field.
2361         (mi_cmd_var_set_frozen): New.
2362         (mi_cmd_var_update): Pass the 'explicit' parameter to
2363         varobj_update_one.
2364         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
2365         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
2366         
2367 2007-04-13  Paul Brook  <paul@codesourcery.com>
2368
2369         * target-descriptions.c (tdesc_named_type): Add ieee_single and
2370         ieee_double.
2371         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
2372
2373 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2374
2375         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
2376         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
2377         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
2378         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
2379         * Makefile.in: Remove references to deleted files.
2380         * README: Do not mention deleted ROM monitor interfaces.
2381         * defs.h (enum language): Delete language_scm.
2382         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
2383         (dump_subexp_body_standard): Likewise.
2384         * parse.c (operator_length_standard): Likewise.
2385         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
2386         * remote-mips.c: Do not include remote-utils.h.
2387         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
2388         throughout.
2389         * value.c: Do not include scm-lang.h.
2390         (unpack_long): Delete scm_unpack call.
2391         * config/h8300/h8300.mt, config/mips/embed.mt,
2392         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
2393         config/sh/embed.mt, config/sh/linux.mt: Remove references to
2394         deleted files.
2395         * NEWS: Mention removed files.
2396
2397 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2398
2399         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
2400         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
2401
2402 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2403
2404         * NEWS: Mention removal of HP aCC support.
2405
2406 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2407
2408         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
2409         first entry for static executables.
2410         (breakpoint_addr): Delete unused variable.
2411         (elf_locate_base): Search for _r_debug in static executables.
2412         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
2413         also.
2414
2415 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2416
2417         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
2418         (bpstat_what, print_one_breakpoint, allocate_bp_location)
2419         (mention): Remove bp_through_sigtramp support.
2420         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
2421
2422 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2423
2424         * breakpoint.c (bpstat_what): Give step-resume higher priority than
2425         shlib events.
2426
2427 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
2428
2429         * infrun.c: Doc fixes.
2430         (handle_inferior_event): Clarify debug message.
2431         (insert_step_resume_breakpoint_at_sal): Print a debug message.
2432
2433 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2434
2435         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
2436
2437 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2438
2439         * config/m68k/tm-monitor.h: Delete file.
2440         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
2441         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
2442         call moved to ...
2443         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
2444         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
2445
2446 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
2447
2448         * gdbarch.sh (software_single_step): Change the return type
2449         from void to int and reformatted some comments to <= 80
2450         columns.
2451         * gdbarch.c, gdbarch.h: Regenerated.
2452         * alpha-tdep.c (alpha_software_single_step): Likewise.
2453         * alpha-tdep.h (alpha_software_single_step): Likewise.
2454         * arm-tdep.c (arm_software_single_step): Likewise.
2455         * cris-tdep.c (cris_software_single_step): Likewise.
2456         * mips-tdep.c (mips_software_single_step): Likewise.
2457         * mips-tdep.h (mips_software_single_step): Likewise.
2458         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2459         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
2460         * sparc-tdep.c (sparc_software_single_step): Likewise.
2461         * sparc-tdep.h (sparc_software_single_step): Likewise.
2462         * spu-tdep.c (spu_software_single_step): Likewise.
2463         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
2464         and act accordingly.
2465
2466 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
2467
2468         * configure.ac (build_warnings): Add -Wno-char-subscripts.
2469         * configure: Regenerate.
2470         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
2471
2472 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2473
2474         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
2475
2476 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2477
2478         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
2479         macros.
2480         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
2481         distinct on the TYPE_STUB_SUPPORTED debug targets.
2482         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
2483
2484 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
2485
2486         * sparc-tdep.c (X_RS2): New macro.
2487         (sparc_skip_stack_check): New function.
2488         (sparc_analyze_prologue): Adjust PC past stack probing
2489         sequence if necessary.
2490
2491 2007-04-10  Andreas Schwab  <schwab@suse.de>
2492
2493         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
2494         register.
2495
2496 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
2497
2498         * breakpoint.c (gdb_breakpoint_query): Really return an
2499         enum gdb_rc.
2500         (gdb_breakpoint): Likewise.
2501         * thread.c (gdb_list_thread_ids): Likewise.
2502         (gdb_thread_select): Likewise.
2503         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
2504         (mi_cmd_thread_list_ids): Remove bogus initialization.
2505
2506 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
2507
2508         * Makefile.in (SFILES): Remove hpacc-abi.c.
2509         (COMMON_OBS): Remove hpacc-abi.o.
2510         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
2511         (hpacc-abi.o, hpread.o): Delete rules.
2512         * somread.c: Delete extern declarations from hpread.c.
2513         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
2514         (som_symfile_finish): Do not call hpread_symfile_finish.
2515         (som_symfile_init): Do not call hpread_symfile_init.
2516         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
2517         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
2518         * hpacc-abi.c, hpread.c: Deleted.
2519
2520 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
2521
2522         * solib-svr4.c (enable_break): Simplify return value.
2523         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
2524
2525 2007-04-10  Andreas Schwab  <schwab@suse.de>
2526
2527         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
2528         l_ld_size, l_next_size, l_prev_size, l_name_size.
2529
2530         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
2531         to extract addresses from link map.
2532         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
2533         (LM_NEXT): Likewise.
2534         (LM_NAME): Likewise.
2535         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
2536         (elf_locate_base): Likewise.
2537         (open_symbol_file_object): Likewise.
2538         (svr4_fetch_objfile_link_map): Likewise.
2539         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
2540         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
2541         l_ld_size.
2542         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
2543         (svr4_lp64_fetch_link_map_offsets): Likewise.
2544
2545         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
2546         removed members.  Set l_ld_offset to -1 if not present.
2547
2548 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
2549         
2550         Pass stderr of program run with "target remote |"
2551         via gdb_stderr.
2552         * serial.c (serial_open): Set error_fd to -1.
2553         * serial.h (struct serial): New field error_fd.
2554         (struct serial_opts): New field avail.
2555         * ser-pipe.c (pipe_open): Create another pair
2556         of sockets.  Pass stderr to gdb.
2557         * ser-mingw.c (pipe_windows_open): Pass
2558         PEX_STDERR_TO_PIPE to pex_run.  Initialize
2559         sd->error_fd.
2560         (pipe_avail): New.
2561         (_initialize_ser_windows): Hook pipe_avail.
2562         * ser-base.c (generic_readchar): Check if there's
2563         anything in stderr channel and route that to gdb_stderr.
2564
2565 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
2566
2567         * dbxread.c (read_ofile_symtab): Move current_objfile
2568         clearing to after end_stabs.
2569
2570 2007-04-01  Andreas Schwab  <schwab@suse.de>
2571
2572         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
2573         gdbarch instead of current_gdbarch.
2574
2575 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
2576
2577         * varobj.c (varobj_create): Keep varobj value
2578         NULL when evaluating the type.
2579         
2580 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
2581
2582         * NEWS: Mention new Windows CE support.
2583
2584 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
2585
2586         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
2587         the obsoletion stanza.
2588         * NEWS: Mention deleted targets.
2589
2590         * config/sh/tm-wince.h: Remove.
2591         * config/sh/wince.mt: Remove.
2592         * config/mips/tm-wince.h: Remove.
2593         * config/mips/wince.mt: Remove.
2594
2595         * wince.c: Remove.
2596         * wince-stub.c: Remove.
2597         * wince-stub.h: Remove.
2598         * Makefile.in (wince.o): Remove rule.
2599         (wince-stub.o): Likewise.
2600
2601         * mips-tdep.c (mips_next_pc): Make static.
2602         * mips-tdep.h (mips_next_pc): Remove declaration.
2603         * arm-tdep.c (arm_pc_is_thumb): Make static.
2604         (thumb_get_next_pc): Likewise.
2605         (arm_get_next_pc): Likewise.
2606         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
2607         (arm_pc_is_thumb): Likewise.
2608         (thumb_get_next_pc): Likewise.
2609         (arm_get_next_pc): Likewise.
2610
2611 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2612
2613         * MAINTAINERS: Remove d10v entry.
2614         * Makefile.in (SFILES): Remove dwarfread.c.
2615         (COMMON_OBS): Remove dwarfread.o.
2616         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
2617         (remote-est.o, rom68k-rom.o): Delete.
2618         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
2619         target est, target rom68k, and DWARF 1.
2620         * configure.tgt: Mark d10v as removed.
2621         * dwarf2read.c: Doc update.
2622         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
2623         and lnsize.
2624         (elf_locate_sections): Do not set them.
2625         (elf_symfile_read): Do not call dwarf_build_psymtabs.
2626         * symfile.h (dwarf_build_psymtabs): Delete prototype.
2627         * config/m68k/monitor.mt (TDEPFILES): Prune.
2628         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
2629         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
2630
2631 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2632
2633         * doublest.c (convert_floatformat_to_doublest): Use
2634         floatformat_classify.
2635         (floatformat_is_nan): Rename to...
2636         (floatformat_classify): ...this.  Return more information.
2637         * doublest.h (enum float_kind): New.
2638         (floatformat_is_nan): Replace prototype...
2639         (floatformat_classify): ...with this one.
2640         * valprint.c (print_floating): Use floatformat_classify.  Handle
2641         infinity.
2642
2643 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2644
2645         * README: Mention ISO C library requirement.
2646
2647 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
2648
2649         * Makefile.in (SFILES): Remove nlmread.c.
2650         (COMMON_OBS): Remove nlmread.o.
2651         (nlmread.o): Delete rule.
2652         * README: Delete reference to remote-st.c.
2653         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
2654         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
2655         GDB_OSABI_LYNXOS.
2656         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
2657         (_initialize_i386_tdep): Do not reference them.
2658         * nlmread.c: Delete file.
2659         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
2660         * target.c: Doc update.
2661         * thread.c: Delete commented include.
2662         * config/alpha/tm-alpha.h: Doc update.
2663
2664 2007-03-30  Chris Dearman  <chris@mips.com>
2665
2666         * utils.c (string_to_core_addr): Comment typo.
2667
2668 2007-03-30  Chris Dearman  <chris@mips.com>
2669
2670         * mips-tdep.c: Comment typo.
2671
2672 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
2673
2674         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
2675         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
2676         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
2677         * config/powerpc/nm-ppc64-linux.h: Remove file.
2678         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
2679         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
2680         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
2681         * infptrace.c (call_ptrace): Likewise.
2682         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
2683         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
2684         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
2685         (store_register): Likewise.
2686
2687 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
2688
2689         * Makefile.in (varobj.o): Add missing dependency.
2690
2691 2007-03-29  Michael Snyder  <msnyder@access-company.com>
2692
2693         * MAINTAINERS: Update my email address.
2694
2695 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
2696
2697         Add support for exception handling with multiple versions of
2698         the Ada runtime:
2699         * ada-lang.c: Update general comments on how Ada exception catchpoints
2700         are implemented.
2701         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
2702         (__gnat_raise_nodefer_with_msg): Delete.
2703         (ada_unhandled_exception_name_addr_ftype): New type.
2704         (exception_support_info): New type.
2705         (ada_unhandled_exception_name_addr): Add forward declaration.
2706         (ada_unhandled_exception_name_addr_from_raise): Likewise.
2707         (default_exception_support_info): New constant.
2708         (exception_support_info_fallback): Likewise.
2709         (exception_info): New global variable.
2710         (ada_exception_support_info_sniffer): New function.
2711         (ada_executable_changed_observer): Likewise.
2712         (ada_unhandled_exception_name_addr_from_raise): Renamed from
2713         ada_unhandled_exception_name_addr.
2714         (ada_unhandled_exception_name_addr): Reimplement to match the
2715         latest Ada runtime implementation.
2716         (error_breakpoint_runtime_sym_not_found): Delete.
2717         (ada_exception_sym_name): Get the exception sym name from
2718         exception_info rather than hardcoding it.
2719         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
2720         Update error handling.
2721         * Makefile.in (ada-lang.o): Add dependency on observer.h.
2722
2723 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
2724
2725         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
2726         (remote-st.o, uw-thread.o): Delete.
2727         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
2728         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
2729         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
2730         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
2731         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
2732         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
2733         rs6000-*-lynxos* to an obsoletion stanza.
2734         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
2735         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
2736         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
2737         i[34567]86-*-netware*.
2738         * NEWS: Mention deleted targets.
2739
2740         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
2741         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
2742         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
2743         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
2744         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
2745         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
2746         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
2747         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
2748         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
2749         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
2750         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
2751         config/rs6000/tm-rs6000ly.h: Delete files.
2752
2753 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
2754
2755         * defs.h (deprecated_registers_changed_hook): Delete declaration.
2756         * interps.c (clear_interpreter_hooks): Do not clear
2757         deprecated_registers_changed_hook.
2758         * regcache.c (registers_changed): Do not call it.
2759         * top.c (deprecated_registers_changed_hook): Do not define it.
2760         * mi/mi-interp.c (mi_command_loop): Do not clear it.
2761         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
2762         (tui_remove_hooks): Do not remove it.
2763         (tui_selected_frame_level_changed_hook): Check for negative level.
2764         Use get_selected_frame.
2765         (tui_registers_changed_hook): Deleted.
2766
2767 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
2768
2769         * stabsread.c (add_undefined_type): Add extra parameter.
2770         Now handles nameless types separately.
2771         (struct nat): New type.
2772         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
2773         New static variables.
2774         (read_type): Update calls to add_undefined_type.
2775         (add_undefined_type_noname): New function.
2776         (add_undefined_type_1): Renames from add_undefined_type.
2777         (cleanup_undefined_types_noname): New function.
2778         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
2779         (cleanup_undefined_types): New handles nameless types separately.
2780         (_initialize_stabsread): Initialize our new static constants.
2781
2782 2007-03-29  Denis Pilat  <denis.pilat@st.com>
2783
2784         * configure.ac: Test for signal.h.
2785         * configure, config.in: Regenerate.
2786
2787 2007-03-29  Denis Pilat  <denis.pilat@st.com>
2788
2789         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
2790         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
2791
2792 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
2793
2794         * arm-wince-tdep.c: New.
2795         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
2796         (MT_CFLAGS): Delete.
2797         (TM_CLIBS): Delete.
2798         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
2799         solib-legacy.o, solib-svr4.o, and remove wince.o.
2800         * configure.tgt (arm*-*-mingw32ce*): Add.
2801         * signals/signals.c [HAVE_SIGNAL_H]: Check.
2802         (do_target_signal_to_host): Silence 'not used' warning.
2803         * config/arm/tm-wince.h: Remove.
2804
2805 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
2806
2807         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
2808         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
2809
2810         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
2811         * config/ia64/tm-linux.h: Remove file.
2812         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
2813         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
2814         legacy_pc_in_sigtramp.
2815         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
2816         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
2817         Remove func_name argument.
2818         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
2819
2820         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
2821         * target.c (update_current_target): Add to_have_steppable_watchpoint.
2822         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
2823         (HAVE_STEPPABLE_WATCHPOINT): Define.
2824
2825         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
2826         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
2827         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
2828         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
2829         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
2830         target_insert_watchpoint, target_remove_watchpoint): Remove.
2831         (FETCH_INFERIOR_REGISTERS): Define.
2832         * ia64-linux-nat.c (ia64_register_addr): Make static.
2833         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2834         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
2835         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
2836         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
2837         (ia64_linux_stopped_by_watchpoint): Make static.
2838         (ia64_linux_can_use_hw_breakpoint): New function.
2839         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
2840         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
2841         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
2842
2843 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
2844
2845         * linespec.c: Include language.h.
2846         (find_methods): Add language parameter.  Call
2847         lookup_symbol_in_language.  Pass language down.
2848         (add_matching_methods): Likewise.  Call
2849         lookup_symbol_in_language.
2850         (add_constructors): Likewise.
2851         (find_method): Pass sym_class to collect_methods.
2852         (collect_methods): Add sym_class parameter.  Pass language
2853         down.
2854         * symtab.c (lookup_symbol): Rename to ...
2855         (lookup_symbol_in_language): ... this.  Add language
2856         parameter.  Use passed language instead of current_language.
2857         (lookup_symbol): New as wrapper around
2858         lookup_symbol_in_language.
2859         (lookup_symbol_aux): Add language parameter.  Use passed
2860         language instead of current_language.
2861         (search_symbols): Indent.
2862         * symtab.h (enum language): Forward declare.
2863         (lookup_symbol_in_language): Declare.
2864         (lookup_symbol): Update description.
2865         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
2866         * ada-lang.c (restore_language): Remove.
2867         (lookup_symbol_in_language): Remove.
2868
2869 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
2870
2871         * breakpoint.c (bpstat_num): Add int *num parameter.
2872         * breakpoint.h (bpstat_num): Likewise.
2873         * infcmd.c (continue_command): Adjust to new bpstat_num
2874         interface.
2875         (program_info): Likewise.
2876
2877 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
2878
2879         * config/sh/tm-sh.h: Remove file.
2880         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
2881         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
2882         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2883         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
2884
2885 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
2886
2887         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
2888         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
2889         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
2890         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
2891         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
2892         sequence if target_shortname is "remote".
2893
2894 2007-03-27  Anton Blanchard  <anton@samba.org>
2895
2896         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
2897         instead of wordsize when looking for the LR in a stack frame.
2898
2899 2007-03-27  Andreas Schwab  <schwab@suse.de>
2900             Daniel Jacobowitz  <dan@codesourcery.com>
2901
2902         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
2903         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
2904         argument.  Update all callers.
2905         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
2906         (dwarf2_frame_set_eh_frame_regnum): Rename to...
2907         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
2908         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
2909         (dwarf2_frame_set_adjust_regnum): ...this.
2910         (dwarf2_frame_eh_frame_regnum): Delete prototype.
2911         * rs6000-tdep.c: Include "dwarf2-frame.h".
2912         (rs6000_adjust_frame_regnum): Define.
2913         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
2914         Register rs6000_adjust_frame_regnum.
2915
2916         * Makefile.in (rs6000-tdep.o): Update dependencies.
2917
2918 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
2919
2920         * Makefile.in: Add support for a "pdf" target.
2921
2922 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
2923
2924         * amd64-tdep.c (amd64_init_frame_cache): New function.
2925         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
2926
2927 2007-03-26  Nigel Stephens  <nigel@mips.com>
2928             Maciej W. Rozycki  <macro@mips.com>
2929
2930         * ui-out.c (ui_out_field_core_addr): Truncate address to
2931         TARGET_ADDR_BIT size before printing.
2932
2933 2007-03-22  Nigel Stephens  <nigel@mips.com>
2934             Maciej W. Rozycki  <macro@mips.com>
2935
2936         * remote-mips.c (mips_xfer_memory): Update prototype.
2937
2938 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
2939
2940         * symfile.h: #include "symtab.h"
2941
2942 2007-03-22  Denis Pilat  <denis.pilat@st.com>
2943
2944         * utils.c (pagination_on_command, pagination_off_command):
2945         Remove useless prototypes.
2946
2947 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2948
2949         Fix PR pascal/2232.
2950         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
2951         instead of TYPE_NAME for object base class name.
2952
2953
2954 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
2955
2956         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
2957         Specify frame type in calls to frame_func_unwind().
2958
2959 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
2960
2961         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
2962         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
2963         (refine_prologue_limit): Delete.
2964         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
2965         Assume lim_pc is set.  Correct check for incomplete prologues.
2966         Do not skip clobbers of the frame pointer.
2967         * symtab.c (skip_prologue_using_sal): Fail if there is only one
2968         sal.
2969
2970 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
2971
2972         * frame.c (frame_pop): Check to see whether there's a frame to
2973         which we can pop first.
2974
2975 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
2976
2977         * MAINTAINERS (Write After Approval): Add myself.
2978
2979 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
2980
2981         * infrun.c (breakpoints_failed): Remove unnecessary variable.
2982         (handle_inferior_event): Remove unnecessary braces.
2983         * breakpoint.c (bpstat_what): Remove wrong comment.
2984
2985 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
2986
2987         * spu-tdep.c (spu_in_function_epilogue_p): New function.
2988         (spu_gdbarch_init): Install it.
2989
2990 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
2991
2992         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
2993         object types, not 0.
2994
2995 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
2996
2997         * spu-tdep.c (spu_frame_align): New function.
2998         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
2999
3000 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3001
3002         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
3003         (spu_software_single_step): Likewise.
3004         (spu_read_pc, spu_write_pc): New functions.
3005         (spu_gdbarch_init): Install them.
3006
3007 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
3008
3009         * cli/cli-dump.c (struct callback_data): load_offset needs to 
3010         have signed long type.
3011
3012 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
3013
3014         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
3015         Revert the previous change that had some unexpected side-effects
3016         on mips32.
3017         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
3018         function to get the address of the calling instruction.
3019
3020 2007-03-07  Denis Pilat  <denis.pilat@st.com>
3021
3022         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
3023         get_selected_frame by deprecated_safe_get_selected_frame.
3024
3025 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
3026
3027         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
3028         "gdb_string.h".  Don't include "nbsd-tdep.h".
3029         (SIZEOF_STRUCT_REG): Remove.
3030         (SHNBSD_SIZEOF_GREGS): New.
3031         (shnbsd_supply_gregset, shnbsd_collect_gregset)
3032         (shnbsd_regset_from_core_section): New functions.
3033         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
3034         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
3035         shnbsd_supply_gregset, shnbsd_collect_gregset.
3036         (shnbsd_gregset): New variable.
3037         (shnbsd_init_abi): Set regset_from_core_section.
3038         (GDB_OSABI_NETBSD_CORE): New define.
3039         (shnbsd_core_osabi_sniffer): New function.
3040         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
3041         * Makefile.in (shnbsd-tdep.o): Update dependencies.
3042         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
3043         nbsd-tdep.o.
3044         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
3045
3046 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3047
3048         * gdbtypes.c (replace_type): Fix typo that caused us to not update
3049         length of the types referenced by the new type CV ring.
3050
3051 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
3052
3053         * frame.c (frame_pop, frame_observer_target_changed): Call
3054         reinit_frame_cache.
3055         (flush_cached_frames): Rename to reinit_frame_cache and delete
3056         old implementation.
3057         * frame.h (flush_cached_frames): Delete prototype and update comment.
3058
3059         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
3060         reinit_frame_cache instead of flush_cached_frames.  Do not call
3061         select_frame after reinit_frame_cache.
3062         * corelow.c (core_open): Likewise.
3063         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
3064         * infrun.c (prepare_to_proceed, context_switch)
3065         (handle_inferior_event): Likewise.
3066         * linux-fork.c (fork_load_infrun_state): Likewise.
3067         * ocd.c (ocd_start_remote): Likewise.
3068         * remote-e7000.c (e7000_start_remote): Likewise.
3069         * remote-mips.c (device): Likewise.
3070         * thread.c (switch_to_thread): Likewise.
3071         * tracepoint.c (finish_tfind_command): Likewise.
3072         * gdbarch.c: Regenerated.
3073
3074 2007-02-28  Jerome Guitton  <guitton@adacore.com>
3075             Joel Brobecker  <brobecker@adacore.com>
3076
3077         * gdbtypes.c (check_typedef): Do not replace stub type if
3078         the resolved type is not defined in the same objfile.
3079
3080 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
3081
3082         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
3083
3084 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3085
3086         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
3087         symbol for Ada units when the symbol is defined using 't' rather
3088         than 'Tt' as symbol descriptor.
3089
3090 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3091
3092         * config/mips/tm-nbsd.h: Delete file.
3093         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3094         * config/sh/tm-nbsd.h: Delete file.
3095         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
3096
3097 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
3098
3099         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
3100         unused WRONG_PARAM value since it was recently deleted.
3101
3102 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
3103
3104         * varobj.c (varobj_update): Free temporary vectors.
3105
3106 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3107
3108         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
3109         * config/powerpc/tm-linux.h: Delete file.
3110         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
3111         (PROCESS_LINENUMBER_HOOK): Do not undefine.
3112         (TEXT_SEGMENT_BASE): Do not redefine.
3113         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
3114         from config/rs6000/tm-rs6000.h.
3115         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3116         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
3117         (TEXT_SEGMENT_BASE): Remove.
3118         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
3119         (rs6000_in_solib_return_trampoline): Remove.
3120         (SKIP_TRAMPOLINE_CODE): Remove.
3121         (rs6000_skip_trampoline_code): Remove.
3122         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
3123         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3124         (FP0_REGNUM): Remove.
3125         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
3126         (rs6000_set_host_arch_hook): Remove.
3127         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
3128         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
3129         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
3130         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
3131         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
3132         * rs6000-nat.c: Include "rs6000-tdep.h".
3133         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
3134         (set_host_arch): Rename to ...
3135         (rs6000_create_inferior): ... this.  Make public.
3136         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
3137         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
3138         (rs6000_create_inferior): Remove.
3139         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
3140         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
3141         set_gdbarch_in_solib_return_trampoline, and
3142         set_gdbarch_skip_trampoline_code.
3143         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
3144         from config/rs6000/tm-rs6000.h.
3145
3146 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
3147
3148         * buildsym.c (record_producer): Do nothing if no producer is provided.
3149
3150 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
3151
3152         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
3153         to check changelist is non-NULL.  Call error if the frontend tries
3154         to update a non-root variable.
3155
3156         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
3157
3158 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
3159
3160         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
3161         (dwarf2_frame_sniffer): Update.
3162         (dwarf2_signal_frame_this_id): New function.
3163         (dwarf2_signal_frame_unwind): Use it.
3164         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
3165         * frame.c (frame_func_unwind): Add this_type argument.
3166         (get_frame_func): Update.
3167         (frame_unwind_address_in_block): Add this_type argument and check it.
3168         Fix a typo.
3169         (get_frame_address_in_block): Update.
3170         * frame.h (enum frame_type): Move higher in the file.
3171         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
3172         argument.
3173
3174         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
3175         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
3176         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
3177         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
3178         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
3179         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
3180         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
3181         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
3182         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
3183         frame_func_unwind and frame_unwind_address_in_block to specify
3184         the frame type.  Use frame_unwind_address_in_block instead of
3185         frame_pc_unwind in sniffers.
3186
3187 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
3188
3189         * frame.c (deprecated_selected_frame): Rename to...
3190         (selected_frame): ...this.  Make static.
3191         (get_selected_frame, select_frame): Update.
3192         * frame.h (deprected_select_frame): Delete.
3193         (deprecated_safe_get_selected_frame): Update comments.
3194
3195         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
3196         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
3197         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
3198         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
3199         tui/tui.c: Replace references to deprecated_selected_frame.
3200
3201 2007-02-27  Fred Fish  <fnf@specifix.com>
3202
3203         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
3204         directly decrement the stack pointer, accumulate their operand into 
3205         the stack offset, and mark the function as not being frameless.
3206
3207 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3208
3209         * arch-utils.c (selected_byte_order): New.
3210         * arch-utils.h (selected_byte_order): New prototype.
3211         * remote-sim.c (gdbsim_open): Use selected_byte_order.
3212
3213 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3214
3215         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
3216         (default_symfile_offsets): Check VMA here.  Update section VMAs.
3217
3218 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3219
3220         * remote.c (init_remote_state): Add special handling for placeholder
3221         registers.
3222
3223 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3224
3225         * Makefile.in (XMLFILES): Include $(TDEP_XML).
3226         (filenames_h): New variable.
3227         (clean): Clean up xml-builtin.c and stamp-xml.
3228         (arm-linux-nat.o): Update.
3229         * config/arm/linux.mh (TDEP_XML): Define.
3230         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
3231         (arm_linux_has_wmmx_registers): New.
3232         (GET_THREAD_ID): Fix typo.
3233         (IWMMXT_REGS_SIZE): Define.
3234         (fetch_wmmx_regs, store_wmmx_regs): New.
3235         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
3236         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
3237         (super_xfer_partial, arm_linux_xfer_partial): New.
3238         (_initialize_arm_linux_nat): Use them.
3239         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
3240         (xml_builtin_xfer_partial): New function.
3241         * xml-support.h (xml_builtin_xfer_partial): New prototype.
3242         * NEWS: Update mention of iWMMXt support.
3243
3244 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
3245
3246         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
3247         if there are no FPA registers.
3248         (arm_dwarf_reg_to_regnum): New function.
3249         (arm_register_type, arm_register_name): Return minimal values for
3250         unsupported registers.
3251         (arm_register_sim_regno): Handle iWMMXt registers.
3252         (arm_gdbarch_init): Record missing FPA registers if indicated by
3253         a target description.  Recognize iWMMXt registers.  Only register
3254         "info float" for FPA.  Use ARM_NUM_REGS.  Register
3255         arm_dwarf_reg_to_regnum.
3256         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
3257         constants.
3258         (struct gdbarch_tdep): Add have_fpa_registers.
3259         * features/xscale-iwmmxt.xml: Update capitalization.
3260         * regformats/arm-with-iwmmxt.dat: Regenerated.
3261
3262 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
3263
3264         * NEWS (New targets): Add entry for the Toshiba Media Processor.
3265
3266 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
3267
3268         * MAINTAINERS (mep): New target.
3269
3270 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
3271
3272         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
3273         Richard Sandiford:
3274         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
3275         (mep-tdep.o): New rule.
3276         * configure.tgt (mep-*-*): New target.
3277         * mep-tdep.c: New file.
3278         * config/mep/mep.mt: New file.
3279
3280 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
3281
3282         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
3283         BREAKPOINT_HIT and STOP_UNKNOWN.
3284
3285 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
3286
3287         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
3288
3289 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
3290
3291         * gdb_expat.h (XMLCALL): Define if not already defined.
3292
3293 2007-02-20  Andreas Schwab  <schwab@suse.de>
3294
3295         * Makefile.in (symfile.o): Update dependencies.
3296
3297 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
3298
3299         * MAINTAINERS: Disable -Werror for cris simulator.  Build
3300         sparc64-solaris2.10 instead of the broken sparc-elf.
3301         * solib-frv.c: Include "solib.h".
3302         * Makefile.in (solib-frv.o): Update.
3303         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
3304         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
3305         (xtensa_frame_this_id, xtensa_frame_prev_register)
3306         (xtensa_push_dummy_call): Use %p.
3307
3308 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
3309
3310         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
3311         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
3312         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
3313         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
3314         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
3315         (sparc-linux-tdep.o): Update.
3316
3317 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
3318
3319         * xtensa-tdep.h (xtensa_reg_mask_t): New.
3320         (xtensa_mask_t): Change mask field to be a separate array.
3321         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
3322         (xtensa_pseudo_register_write, xtensa_unwind_pc)
3323         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
3324         (xtensa_breakpoint_from_pc): Remove implicit type casting.
3325         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
3326         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
3327         (mask14, mask15): Rename to
3328         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
3329         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
3330         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
3331         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
3332         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
3333         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
3334         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
3335         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
3336         (xtensa_submask14, xtensa_submask15): New.
3337         (rmap): Follow strict aliasing rules doing static initialization.
3338
3339 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
3340
3341         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
3342         handling from here...
3343         (tdesc_register_type): ...to here.
3344         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
3345         * features/arm-core.xml: Use code_ptr and data_ptr.
3346
3347 2007-02-13  Denis Pilat  <denis.pilat@st.com>
3348
3349         * varobj.h (enum varobj_update_error): New enum.
3350         * varobj.c (struct varobj_root): Add is_valid member.
3351         (varobj_get_type): Check for invalid varobj.
3352         (varobj_get_attributes): Likewise.
3353         (variable_editable):Likewise.
3354         (varobj_update): Likewise.  Use varobj_update_error.
3355         (new_root_variable): Set root varobj as valid by default.
3356         (varobj_invalidate): New function.
3357         * symfile.c (clear_symtab_users): Use varobj_invalidate.
3358         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
3359         Use varobj_update_error.
3360
3361 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
3362
3363         Fix PR pascal/2223.
3364         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
3365         Pascal language marker.
3366         * dwarf2read.c (set_cu_language): Likewise.
3367
3368 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
3369
3370         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
3371         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
3372         instead of target_terminal_init since inferior_ptid isn't set yet.
3373
3374 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
3375
3376         * MAINTAINERS (Write After Approval): Add myself.
3377
3378 2007-02-09  Fred Fish  <fnf@specifix.com>
3379
3380         Based on work by Apple Computer, Inc.
3381         * event-top.c (async_request_quit): Call quit() whenever either
3382         quit_flag is set or immediate_quit is set.
3383
3384 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3385
3386         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
3387         type to a pointer to const struct block.
3388         (ada_lookup_symbol_list): Don't cast away constness when calling
3389         remove_out_of_scope_renamings.
3390
3391 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3392
3393         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
3394         address of 'filename'; it is always non null.
3395
3396 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
3397
3398         * exec.c (add_to_section_table): Do not discard empty sections.
3399
3400 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3401
3402         * features/Makefile, features/arm-with-iwmmxt.xml,
3403         features/gdbserver-regs.xsl, features/number-regs.xsl,
3404         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
3405         * regformats/arm-with-iwmmxt.dat: Generate.
3406         * NEWS: Mention iWMMXt.
3407
3408 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3409
3410         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
3411         (xml-tdesc.o): Update.
3412         * xml-support.c: Add a comment.
3413         (gdb_xml_enums_boolean): New variable.
3414         (gdb_xml_parse_attr_enum): Use strcasecmp.
3415         * xml-support.h (gdb_xml_enums_boolean): Declare.
3416         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
3417         next_regnum, and current_union.
3418         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
3419         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
3420         (field_attributes, union_children, reg_attributes, union_attributes)
3421         (vector_attributes, feature_attributes, feature_children): New.
3422         (target_children): Make static.  Add <feature>.
3423         (tdesc_elements): Make static.
3424         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
3425         (struct tdesc_feature, tdesc_feature_p): New types.
3426         (struct target_desc): Add features member.
3427         (struct tdesc_arch_data, tdesc_data): New.
3428         (target_find_description): Clarify error message.  Warn about
3429         ignored register descriptions.
3430         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
3431         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
3432         (tdesc_data_cleanup, tdesc_numbered_register)
3433         (tdesc_numbered_register_choices, tdesc_find_register)
3434         (tdesc_register_name, tdesc_register_type)
3435         (tdesc_remote_register_number, tdesc_register_reggroup_p)
3436         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
3437         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
3438         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
3439         (tdesc_create_feature, tdesc_record_type): New.
3440         (free_target_description): Free features.
3441         (_initialize_target_descriptions): Initialize tdesc_data.
3442         * arch-utils.c (default_remote_register_number): New.
3443         * arch-utils.h (default_remote_register_number): New prototype.
3444         * target-descriptions.h (set_tdesc_pseudo_register_name)
3445         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
3446         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
3447         (tdesc_numbered_register, tdesc_numbered_register_choices)
3448         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
3449         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
3450         (tdesc_create_reg): Declare.
3451         * gdbarch.sh (remote_register_number): New entry.
3452         * gdbarch.c, gdbarch.h: Regenerate.
3453         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
3454         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
3455
3456         * arm-tdep.c (arm_register_aliases): New.
3457         (arm_register_name_strings): Rename to...
3458         (arm_register_names): ...this.  Make const.  Delete the old version.
3459         (current_option, arm_register_byte): Delete.
3460         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
3461         (value_of_arm_user_reg): New.
3462         (arm_gdbarch_init): Verify any described registers.  Call
3463         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
3464         for standard register names.
3465         (_initialize_arm_tdep): Do not adjust arm_register_names.
3466         * user-regs.c (struct user_reg): Add baton member.
3467         (append_user_reg, user_reg_add_builtin, user_regs_init)
3468         (user_reg_add, value_of_user_reg): Use a baton for user
3469         register functions.
3470         * std-regs.c: Update.
3471         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
3472         (user_reg_add): Add baton argument.
3473         * NEWS: Mention target description register support.
3474         * features/arm-core.xml, features/arm-fpa.xml: New.
3475         * eval.c (evaluate_subexp_standard): Allow ptype $register
3476         when the program is not running.
3477
3478 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
3479
3480         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
3481
3482 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3483
3484         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
3485         info->disassembler_options to "any".
3486
3487 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3488
3489         * varobj.c (install_new_value): Only call value_get_print_value
3490         if changeable.
3491
3492 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3493
3494         Reported by timeless@gmail.com:
3495         * gdb/target.c (target_flash_erase): Do not return void value.
3496         (target_flash_done): Likewise.
3497         * gdb/cli/cli-cmds.c (source_command): Likewise.
3498
3499 2007-02-08  Fred Fish  <fnf@specifix.com>
3500
3501         Based on work by Apple Computer, Inc.
3502         * event-top.c (handle_sigint): Set quit_flag.
3503         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
3504         if quit_flag has already been reset.
3505
3506 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3507
3508         * ser-mingw.c (pipe_windows_close): Move variable initialization back
3509         up.
3510
3511 2007-02-08  Fred Fish  <fnf@specifix.com>
3512
3513         * defs.h (request_quit): Remove declaration.
3514         * utils.c (request_quit): Remove definition.
3515
3516 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
3517             Jan Kratochvil  <jan.kratochvil@redhat.com>
3518             Daniel Jacobowitz  <dan@codesourcery.com>
3519
3520         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
3521         (skip_prologue): Allow bl->blrl used by PIC code.
3522
3523 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
3524             Daniel Jacobowitz  <dan@codesourcery.com>
3525
3526         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
3527         initialize tmp_obstack.
3528         * p-valprint.c (pascal_object_print_value_fields)
3529         (pascal_object_print_value): Likewise.
3530
3531 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
3532
3533         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
3534
3535 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
3536
3537         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
3538         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
3539
3540 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
3541
3542         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
3543         (xml_cache): New.
3544         (tdesc_parse_xml): Cache expanded descriptions.
3545
3546 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
3547
3548         * Makefile.in (XMLFILES): New.
3549         (COMMON_OBS): Add xml-builtin.o.
3550         (xml-builtin.c, stamp-xml): New rules.
3551         (xml-tdesc.o): Update.
3552         * features/feature_to_c.sh: New file.
3553         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
3554         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
3555         (gdb_xml_start_element): Initialize scope after possibly reallocating
3556         scopes.  Move cleanup later.  Handle the XInclude description
3557         specially.
3558         (gdb_xml_end_element): Only parse the body if there is a current element.
3559         Call XML_DefaultCurrent if there is no element.
3560         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
3561         (struct xinclude_parsing_data, xinclude_start_include)
3562         (xinclude_end_include, xml_xinclude_default)
3563         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
3564         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
3565         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
3566         * xml-support.h (xml_fetch_another, xml_process_xincludes)
3567         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
3568         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
3569         XInclude directives.  Use the compiled in DTD.
3570         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
3571         directory name.  Do not warn here.
3572         (file_read_description_xml): Update call.  Warn here instead.  Pass
3573         a dirname as baton.
3574         (fetch_available_features_from_target): New.
3575         (target_read_description_xml): Use it.
3576         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
3577         to handle XInclude.
3578         * features/xinclude.dtd: New file.
3579
3580 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
3581
3582         * linux-thread-db.c (check_for_thread_db): Return early if we have
3583         no libthread_db support.
3584
3585 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
3586
3587         * mi/mi-parse.h: Include <sys/time.h>.
3588
3589 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
3590
3591         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
3592         instead of print_variable_value to print values.
3593
3594 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
3595
3596         * mi/mi-main.c: Numerous formatting changes.
3597         (mi_cmd_data_write_register_values): Replace clause inadvertantly
3598         removed in my previous change.
3599
3600 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
3601
3602         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
3603         Use 1000000L instead of 1000000.
3604
3605 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
3606
3607             Based on work by Apple Computer, Inc.
3608
3609         * configure.ac: Test for sys/resource.h and getrusage.
3610         * configure, config.in: Regenerate.
3611
3612         * mi/mi-main.c: Include <sys/resource.h> if present.
3613         (rusage): Declare if HAVE_GETRUSAGE.
3614         (current_command_ts, do_timings): New static variables.
3615         (timestamp, print_diff_now, print_diff, timeval_diff):
3616         New static timing functions.
3617         (mi_cmd_enable_timings): New function for new MI command.
3618         (captured_mi_execute_command, mi_execute_async_cli_command): 
3619         Call timing functions.
3620
3621         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
3622         -enable-timings.
3623
3624         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
3625
3626         * mi/mi-parse.h: (mi_timestamp): New structure.
3627         (mi_parse): Add mi_timestamp* member.
3628
3629 2007-02-02  Denis Pilat  <denis.pilat@st.com>
3630
3631         * thread.c (make_cleanup_restore_current_thread): New function.
3632         (info_threads_command): Use of make_cleanup_restore_current_thread
3633         to restore the current thread and the selected frame.
3634         (restore_selected_frame): New function.
3635         (struct current_thread_cleanup): Add frame_id field.
3636         (do_restore_current_thread_cleanup): Add restoring of the selected
3637         frame.
3638         (make_cleanup_restore_current_thread): Likewise.
3639         (thread_apply_all_command): backup the selected frame while 
3640         entering the function and restore it at exit.
3641         (thread_apply_command): Likewise.
3642
3643 2007-02-02  Denis Pilat  <denis.pilat@st.com>
3644
3645         * MAINTAINERS (Write After Approval): Add myself to the list.
3646
3647 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3648
3649         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
3650         (m32r_store_register): Ditto.
3651
3652 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
3653
3654         * ser-mingw.c (pipe_windows_open)
3655         (pipe_windows_read, pipe_windows_write): Declare
3656         variables at the top of the function.
3657
3658 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
3659
3660         * doublest.c (floatformat_from_length): Use the right element from
3661         gdbarch floatformats.
3662         (floatformat_from_type, extract_typed_floating)
3663         (store_typed_floating): Likewise.
3664         * doublest.h: Remove declarations for undefined floatformat arrays.
3665         * gdbarch.sh (float_format, double_format, long_double_format): Change
3666         to pairs.
3667         (pformat): Update for pairs.
3668         * gdbarch.c, gdbarch.h: Regenerated.
3669         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
3670         (floatformats_ieee_double_littlebyte_bigword)
3671         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
3672         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
3673         (floatformats_vax_d): New variables.
3674         (builtin_type_ieee_single, builtin_type_ieee_double)
3675         (builtin_type_arm_ext, builtin_type_ia64_spill)
3676         (builtin_type_ia64_quad): Replace arrays with individual types.
3677         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
3678         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
3679         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
3680         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
3681         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
3682         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
3683         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
3684         unused and endian-specific types.
3685         (recursive_dump_type): Update for floatformat pairs.
3686         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
3687         (build_gdbtypes): Use build_flt.
3688         (_initialize_gdbtypes): Update set of initialized types.
3689         * gdbtypes.h: Update declarations to match gdbtypes.c.
3690         (struct main_type): Store a pointer to two floatformats.
3691         * arch-utils.c (default_float_format, default_double_format): Delete.
3692         * arch-utils.h (default_float_format, default_double_format): Delete.
3693
3694         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
3695         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
3696         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
3697         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
3698         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
3699
3700 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
3701
3702         * target.c (maintenance_print_target_stack): New function.
3703         (initialize_targets): Add new "maintenance print target-stack"
3704         command.
3705
3706 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
3707
3708         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
3709
3710 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
3711
3712         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
3713         (struct dwarf2_loclist_baton): Likewise.
3714
3715 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
3716
3717         * cli/cli-script.c: Include breakpoint.h.
3718         (build_command_line): Require arguments only for if and while
3719         commands.
3720         (get_command_line, execute_user_command, execute_control_command):
3721         Fix wording of warning messages.
3722         (print_command_lines): Print breakpoint commands.
3723         (execute_control_command): Call commands_from_control_command to
3724         handle the `commands' command inside a body of a flow-control
3725         command.
3726         (read_next_line): Recognize the `commands' command and build a
3727         command line structure for it.
3728         (recurse_read_control_structure, read_command_lines): Handle
3729         `commands' similarly to `if' and `while'.
3730
3731         * breakpoint.c (get_number_trailer): Document the special meaning
3732         of NULL as the first argument PP.
3733         (commands_from_control_command): New function.
3734
3735         * breakpoint.h (commands_from_control_command): Add prototype.
3736
3737         * defs.h (commands_control): New enumerated value for enum
3738         command_control_type.
3739
3740 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
3741
3742         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
3743         (ada_exception_sal): Update accordingly.
3744
3745 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
3746
3747         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
3748         * NEWS: Describe CHAR array vs. string identifcation rules.
3749
3750 2007-01-25  Paul Brook  <paul@codesourcery.com>
3751
3752         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
3753
3754 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
3755
3756         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
3757         expression is empty, bother to return the 'optimized out' value we
3758         construct.  (Thanks to Carl Burch.)
3759
3760 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
3761
3762         * varobj.c (c_value_of_root, c_value_of_child)
3763         (cplus_describe_child): Don't call release_value.
3764
3765 2007-01-24  Thiemo Seufer  <ths@mips.com>
3766
3767         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
3768         initialization.
3769
3770 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
3771
3772         Refactor getting children name, value and type access 
3773         for varobjs in C++.
3774         * varobj.c (get_type_deref): Remove.
3775         (adjust_value_for_child_access): New.
3776         (c_number_of_children): Use the above.
3777         (c_describe_child): Likewise.
3778         (enum accessibility): New.
3779         (match_accessibility): New function.
3780         (cplus_describe_child): New function.
3781         (cplus_name_of_child, cplus_value_of_child)
3782         (cplus_type_of_child): Reimplement in terms
3783         of cplus_describe_child.
3784         (cplus_number_of_children): Use 
3785         adjust_value_for_child_access.
3786         
3787 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
3788
3789         Fix computation of the 'editable' attribute and
3790         value changeability for for references.
3791         * varobj.c (get_value_type): New function.
3792         (c_variable_editable): Use get_value_type.
3793         (varobj_value_is_changeable): Likewise.
3794                 
3795 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
3796
3797         * source.c (find_and_open_source): Try rewriting the source
3798         path inside filename if dirname is NULL.
3799
3800 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
3801
3802         * dwarf2read.c (add_partial_symbol): Create an extra partial
3803         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
3804         (new_symbol): Likewise for symbols.
3805
3806 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
3807
3808         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
3809
3810 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
3811         
3812         * value.c (value_primitive_field): Copy the full 'location' 
3813         contents, instead of assuming that copying ADDRESS will 
3814         bring over everything in the union.  Remove obsolete comment.
3815         
3816 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
3817
3818         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
3819         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
3820         (m32c_m16c_pointer_to_address): Separate code from declarations.
3821
3822 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
3823
3824         * target.c (update_current_target): Correct typo.
3825
3826 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
3827
3828         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
3829         declaration.
3830
3831 2007-01-11  Andrew Cagney  <cagney@redhat.com>
3832             Daniel Jacobowitz  <dan@codesourcery.com>
3833             Jan Kratochvil  <jan.kratochvil@redhat.com>
3834
3835         * dwarf2-frame.c (execute_cfa_program): New support of
3836         `DW_CFA_GNU_negative_offset_extended'.
3837
3838 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
3839
3840         * NEWS: Mention flash support for "load" and new remote packets.
3841
3842 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
3843
3844         * breakpoint.c (delete_command): Skip redundant loop iterations.
3845
3846 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
3847
3848         * gdbarch.sh (register_type): Update comment.
3849         * gdbarch.h: Regenerated.
3850         * arch-utils.c (generic_register_size): Call register_type.
3851         * ia64-tdep.c (ia64_extract_return_value): Likewise.
3852         * m32c-tdep.c (check_for_saved): Likewise.
3853         * mips-tdep.c (mips_print_register, print_gp_register_row)
3854         (mips_print_registers_info): Likewise.
3855         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
3856         Likewise.
3857         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
3858         (sh64_do_register, sh64_print_register)
3859         (sh64_media_print_registers_info): Likewise.
3860         * tui/tui-regs.c (tui_register_format): Likewise.
3861
3862 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
3863
3864         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
3865
3866         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
3867         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
3868         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
3869         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3870         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
3871         (make_symbol_completion_list): Likewise.
3872
3873 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3874             Daniel Jacobowitz  <dan@codesourcery.com>
3875
3876         * buildsym.c (end_symtab): Use preallocated symtab if available.
3877         Fill in SYMBOL_SYMTAB.
3878         * buildsym.h (struct subfile): Add symtab member.
3879         * dwarf2read.c (struct dwarf2_cu): Add line_header.
3880         (struct file_entry): Add symtab.
3881         (free_cu_line_header): New function.
3882         (read_file_scope): Use it.  Save line_header in the cu.  Process
3883         lines before DIEs.
3884         (add_file_name): Initialize new symtab member.
3885         (dwarf_decode_lines): Create symtabs for included files.
3886         (new_symbol): Set SYMBOL_SYMTAB.
3887         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
3888         (search_symbols): Likewise.
3889         * symtab.h (struct symbol): Add symtab member.
3890         (SYMBOL_SYMTAB): Define.
3891
3892 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
3893
3894         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
3895
3896 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
3897
3898         * arch-utils.c (show_endian): Correct reversed condition.
3899
3900 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3901
3902         * MAINTAINERS (Write After Approval): Add myself.
3903
3904 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
3905             Vladimir Prus  <vladimir@codesourcery.com>
3906
3907         Fix 'selected frame' varobjs.
3908         * varobj.c (struct varobj): Remove the error field.
3909         (varobj_set_value): Don't check var->error.
3910         (install_new_value): Don't set var->error.
3911         (varobj_update): Always pass the new value
3912         of the root via install_new_value.
3913         (create_child): Don't set error field.
3914         (new_variable): Likewise.
3915         (c_value_of_root): Always reevaluate the value
3916         of selected frame varobjs in the selected frame.
3917         Don't call reinit_frame_cache.
3918
3919 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
3920
3921         * source.c (_initialize_source): Improve the help text of
3922         the substitute-path commands.
3923
3924 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
3925
3926         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
3927         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
3928         (frv_skip_prologue): Remove prototypes.
3929         (frv_adjust_breakpoint_address): Renamed from
3930         frv_gdbarch_adjust_breakpoint_address.
3931         (frv_gdbarch_init): Adjust.
3932
3933 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
3934
3935         * gdbarch.sh (deprecated_extract_return_value)
3936         (deprecated_store_return_value): Remove.
3937         (extract_return_value, store_return_value): Remove default values.
3938         * gdbarch.c, gdbarch.h: Regenerate.
3939         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
3940         (legacy_store_return_value): Remove.
3941         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
3942         Remove.
3943
3944         * mi/mi-main.c: Remove obsolete comment.
3945
3946         * regcache.c, regcache.h (deprecated_register_bytes)
3947         (deprecated_read_register_bytes)
3948         (deprecated_write_register_bytes): Remove.
3949
3950         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
3951         Don't forget to move destination pointer.
3952
3953 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
3954
3955         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
3956
3957 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
3958
3959         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
3960         past entry function with recent newlib.
3961
3962 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
3963
3964         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
3965         introduction.  Specify -var-update more exactly.
3966
3967 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
3968
3969         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
3970
3971 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
3972
3973         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
3974         the Global Maintainers' invitation to be a global maintainer.
3975
3976 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
3977
3978         * infrun.c (singlestep_pc): New variable.
3979         (resume): Set singlestep_pc.
3980         (context_switch): Add a debugging message.  Flush the frame cache.
3981         (handle_inferior_event): Add debugging messages.  Handle thread
3982         hops when a software single step has completed.  Let context_switch
3983         handle flushing the frame cache.
3984
3985 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
3986
3987         * NEWS: Mention target descriptions, "set tdesc filename",
3988         "unset tdesc filename", "show tdesc filename", and
3989         qXfer:features:read.
3990         * arch-utils.c (choose_architecture_for_target): New function.
3991         (gdbarch_info_fill): Call it.
3992         * target-descriptions.c (struct property): Make members non-const.
3993         (struct target_desc): Add arch member.
3994         (target_description_filename): New variable.
3995         (target_find_description): Try via XML first.
3996         (tdesc_architecture): New.
3997         (free_target_description, make_cleanup_free_target_description): New.
3998         (set_tdesc_property): Call xstrdup.
3999         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
4000         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
4001         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
4002         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
4003         * target-descriptions.h (tdesc_architecture)
4004         (make_cleanup_free_target_description, set_tdesc_architecture): New
4005         prototypes.
4006         * Makefile.in (SFILES): Add xml-tdesc.c.
4007         (COMMON_OBS): Add xml-tdesc.o.
4008         (target-descriptions.o): Update.
4009         (xml-tdesc.o): New rule.
4010         * xml-tdesc.c, xml-tdesc.h: New files.
4011         * remote.c (PACKET_qXfer_features): New enum.
4012         (remote_protocol_features): Add qXfer:features:read.
4013         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
4014         (_initialize_remote): Register qXfer:features:read.
4015         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
4016         * features/gdb-target.dtd: New file.
4017
4018 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4019
4020         * copyright.sh: Clarify error.
4021
4022 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4023
4024         * symtab.c (matching_bfd_sections): Fix VMA matching for
4025         prelinked objects.
4026
4027 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4028
4029         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
4030         nested symbols.
4031
4032 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4033
4034         Updated copyright notices for most files.
4035
4036 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4037
4038         * copyright.sh (prunes): Add step-line.inp and step-line.c.
4039
4040 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4041
4042         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
4043         exec_prefix.
4044         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
4045         '${prefix}'.
4046         * configure, config.in: Regenerate.
4047         * defs.h (debug_file_directory): Declare.
4048         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
4049         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
4050         relocate it if DEBUGDIR_RELOCATABLE.
4051         * symfile.c (debug_file_directory): Make non-static.
4052         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
4053         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
4054         (_initialize_symfile): Don't initialize debug_file_directory here.
4055
4056 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
4057
4058         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
4059         statements.
4060
4061 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4062
4063         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
4064         frame_unwind_register to recurse.
4065         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
4066         (alpha_heuristic_frame_prev_register): Likewise.
4067         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
4068         * m32c-tdep.c (m32c_prev_register): Likewise.
4069         * frame.c (frame_register_unwind_location): Remove FIXME.
4070
4071 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4072             Eli Zaretskii  <eliz@gnu.org>
4073
4074         * copyright.sh: New file.
4075
4076 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
4077
4078         * configure.ac: Check for XML_StopParser.
4079         * xml-support.c (gdb_xml_body_text): Check for an error.
4080         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
4081         (gdb_xml_end_element_wrapper): Likewise.
4082         * config.in, configure: Regenerated.
4083
4084 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4085
4086         * varobj.c (install_new_value): Always update print_value.
4087         (value_get_print_value): Immediately return NULL for missing
4088         values.
4089
4090 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
4091
4092         * configure.ac: Tighten pattern for extracting value of
4093         DEPRECATED_TM_FILE from the target makefile fragment.
4094         * configure: Regenerated.
4095
4096 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4097
4098         * linux-nat.c (struct simple_pid_list): Add status.
4099         (add_to_pid_list): Record the PID's status.
4100         (linux_record_stopped_pid): Likewise.  Make static.
4101         (pull_pid_from_list): Return the saved status.
4102         (linux_nat_handle_extended): Deleted.
4103         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
4104         Make static.  Handle non-SIGSTOP for a new thread's first signal.
4105         (flush_callback): Handle unexpected pending signals.
4106         (linux_nat_wait): Update calls to changed functions.
4107         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
4108         Remove prototypes for newly static functions.
4109
4110 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4111
4112         * gdbarch.sh (value_from_register): New gdbarch function.
4113         * gdbarch.c, gdbarch.h: Regenerate.
4114         * findvar.c (default_value_from_register): New function.
4115         (value_from_register): Use gdbarch_value_from_register.
4116         * value.h (default_value_from_register): Declare.
4117         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
4118         spu_value_to_register): Remove.
4119         (spu_value_from_register): New function.
4120         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4121         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4122         Call set_gdbarch_value_from_register.
4123         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
4124         s390_value_to_register): Remove.
4125         (s390_value_from_register): New function.
4126         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4127         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4128         Call set_gdbarch_value_from_register.
4129
4130 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
4131
4132         * NEWS: Add "set sysroot" and "show sysroot".
4133         * solib.c (solib_absolute_prefix): Delete.  Replace
4134         all uses with gdb_sysroot.
4135         (_initialize_solib): Add "set sysroot" and "show sysroot".
4136         Make "solib-absolute-prefix" an alias to it.
4137
4138 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4139
4140         * frame.c (get_frame_register_bytes): New function.
4141         (put_frame_register_bytes): Likewise.
4142         * frame.h (get_frame_register_bytes): Declare.
4143         (put_frame_register_bytes): Likewise.
4144         * findvar.c (value_from_register): Always construct lval_register
4145         values.  Use get_frame_register_bytes.
4146         * valops.c (value_assign): Use get_frame_register_bytes and
4147         put_frame_register_bytes.
4148
4149 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
4150
4151         * MAINTAINERS: Update Stan Shebs' email address.
4152
4153 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
4154
4155         * ada-lang.c (is_known_support_routine): Improve the implementation.
4156
4157 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
4158
4159         * ada-lang.c: Add include of source.h.
4160         (is_known_support_routine): Improve the check verifying that the file
4161         associated to this frame exists.
4162         * Makefile.in (ada-lang.o): Add dependency on source.h.
4163
4164 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
4165
4166         * ax-general.c (ax_const_l): Select proper opcode for the given
4167         value.
4168
4169 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
4170
4171         * varobj.c (c_value_of_root): Don't select frame if variable
4172         object is out of scope.
4173
4174 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
4175
4176         * varobj.c (struct varobj): New member print_value.
4177         (install_new_value): Compare last printed value with current one
4178         instead of contents.
4179         (new_variable): Initialize var->print_value to NULL.
4180         (free_variable): Free var->print_value.
4181         (value_get_print_value): New function derived from
4182         c_value_of_variable.
4183         (c_value_of_variable): Use value_get_print_value.
4184
4185 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
4186
4187         * i386-tdep.c (i386_analyze_stack_align): Add comment.
4188
4189 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
4190
4191         * NEWS: Add entries for new catch commands.
4192
4193 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
4194
4195         * dwarf2read.c (partial_die_info): Add field has_byte_size.
4196         (add_partial_symbol): Correct identification of external references.
4197         (process_structure_scope): Likewise.
4198         (read_partial_die): Handle DW_AT_byte_size attribute.
4199
4200 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
4201
4202         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
4203
4204 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
4205
4206         * varobj.c (get_type_deref): Fix variable objects for references to
4207         pointers.
4208
4209 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4210
4211         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
4212         with no symbols.
4213
4214 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4215
4216         * memory-map.c (struct_memory_map_parsing_data): Remove most
4217         members.  Make property_name an array.
4218         (free_memory_map_parsing_data, memory_map_start_element)
4219         (memory_map_end_element, memory_map_character_data): Delete.
4220         (memory_map_start_memory, memory_map_end_memory)
4221         (memory_map_start_property, memory_map_end_property): New functions.
4222         (property_attributes, memory_children, memory_type_enum)
4223         (memory_attributes, memory_map_children, memory_map_elements): New.
4224         (parse_memory_map): Rewrite.
4225         * xml-support.c (debug_xml): New.
4226         (xml_get_required_attribute, xml_get_integer_attribute)
4227         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
4228         Delete.
4229         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
4230         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
4231         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
4232         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
4233         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
4234         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
4235         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
4236         New.
4237         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
4238         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
4239         (enum gdb_xml_element_flag, struct gdb_xml_element)
4240         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
4241         (struct gdb_xml_enum): New.
4242         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
4243         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
4244         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
4245         (xml_get_required_attribute, xml_get_integer_attribute)
4246         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
4247         * Makefile.in (xml_support_h, xml-support.o): Update.
4248
4249 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4250
4251         * Makefile.in (eval.o): Update dependencies.
4252         * eval.c: Include "ui-out.h" and "exceptions.h".
4253         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
4254         Use value_zero if an error occurs when avoiding side effects.
4255         * varobj.c (c_value_of_root): Initialize new_val.
4256
4257 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4258
4259         * varobj.c (varobj_list_children): Stop if the number of children is
4260         unknown.
4261         (c_number_of_children):
4262
4263 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
4264
4265         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
4266         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
4267         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
4268         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
4269         sizeof, instead of hardcoded constants.
4270
4271 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4272
4273         * CONTRIBUTE: Use sourceware.org.
4274
4275 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4276
4277         * buildsym.c (start_subfile): Handle producer.
4278         (record_producer): New function.
4279         * buildsym.h (struct subfile): Include producer.
4280         (record_producer): New prototype.
4281         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
4282         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
4283         armcc_cfa_offsets_reversed.
4284         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
4285         (dwarf2_frame_find_quirks): New function.
4286         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
4287         (decode_frame_entry_1): Record the CIE version.  Record the
4288         augmentation.  Skip armcc augmentations.
4289         * dwarf2read.c (read_file_scope): Save the producer.
4290         * symtab.h (struct symtab): Rename unused version member to
4291         producer.
4292
4293 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
4294
4295         * configure.ac (build_warnings): Use -Wall and
4296         -Wdeclaration-after-statement.
4297         * configure: Regenerated.
4298
4299 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
4300
4301         Simplify access to variours properties of child
4302         variable objects in C.
4303         * varobj.c (value_struct_element_index): New function.
4304         (c_describe_child): New function.
4305         (c_name_of_child, c_value_of_child)
4306         (c_type_of_child): Rewrite to use c_describe_child.
4307
4308 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
4309
4310         gdb/
4311         * varobj.c: Include "vec.h". 
4312         (varobj_p): New typedef, declare vector of those.
4313         (struct varobj): Use vector for the 'children' member.
4314         (child_exists): Remove.
4315         (save_child_in_parent): Remove.
4316         (remove_child_from_parent): Remove.
4317         (struct varobj_child): Remove.
4318         (struct vstack): Remove.
4319         (vpush, vpop): Remove.
4320         (varobj_list_children): Adjust to work work vector.
4321         (varobj_update): Likewise. Use vectors for
4322         working stack and result.
4323         (delete_variable_1): Likewise.
4324         * Makefile.in (varobj.o): Update dependencies.
4325
4326 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
4327
4328         Port from Apple's version.
4329         gdb/
4330         * varobj.c (type_changeable): Rename to...
4331         (varobj_value_is_changeable_p): ...this. Adjust all callers.
4332         (is_root_p): New function. Use it everywhere.
4333
4334 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
4335
4336         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
4337         then plain 'fixup'.
4338
4339 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4340
4341         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
4342
4343 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4344
4345         * hpread.c (hpread_type_lookup): Fix compilation failure.
4346
4347 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
4348
4349         * NEWS: New port to S+core.
4350         * MAINTAINERS (Write After Approval, Responsible Maintainers):
4351         Add myself.
4352
4353         * Makefile.in: Add dependencies for S+core files.
4354         * configure.tgt (score*, score-*-*): Add S+core target.
4355         * config/score/embed.mt: New file.
4356         * score-tdep.c: New file.
4357         * score-tdep.h: New file.
4358
4359 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4360
4361         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
4362         the appropriate type rather than a bogus void type.
4363
4364 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
4365
4366         * ada-lang.h (ada_find_printable_frame): Remove.
4367         (ada_exception_catchpoint_p, ada_decode_exception_location)
4368         (ada_decode_assert_location): Add declaration.
4369         * ada-lang.c: Add include of annotate.h and valprint.h.
4370         (exception_catchpoint_kind): New enum.
4371         (function_name_from_pc, is_known_support_routine)
4372         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
4373         (ada_exception_name_addr_1, ada_exception_name_addr)
4374         (print_it_exception, print_one_exception, print_mention_exception)
4375         (print_it_catch_exception, print_one_catch_exception)
4376         (print_mention_catch_exception, catch_exception_breakpoint_ops)
4377         (print_it_catch_exception_unhandled)
4378         (print_one_catch_exception_unhandled)
4379         (print_mention_catch_exception_unhandled, print_it_catch_assert)
4380         (print_one_catch_assert, print_mention_catch_assert)
4381         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
4382         (ada_get_next_arg, catch_ada_exception_command_split)
4383         (ada_exception_sym_name, ada_exception_sym_name)
4384         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
4385         (ada_parse_catchpoint_condition, ada_exception_sal)
4386         (ada_decode_exception_location)
4387         (ada_decode_assert_location): New function.
4388         (catch_exception_unhandled_breakpoint_ops): New global variable.
4389         (catch_assert_breakpoint_ops): New global variable.
4390         * breakpoint.c: Add include of ada-lang.h.
4391         (print_one_breakpoint): Do not print the condition for Ada
4392         exception catchpoints.
4393         (create_ada_exception_breakpoint): New function.
4394         (catch_ada_exception_command, catch_assert_command): New function.
4395         (catch_command_1): Add support for the new "catch exception" and
4396         "catch assert" commands.
4397         (_initialize_breakpoint): Add help description for the new catch
4398         commands.
4399         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
4400         valprint.h.
4401         (breakpoint.o): Add dependency on ada-lang.h.
4402
4403 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
4404
4405         * coffread.c (cs_to_section): If bfd_section is found, always
4406         return its section index.
4407         (coff_symtab_read): Determine the minimal_symbol_type using the
4408         bfd_section flags.
4409
4410 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4411             Daniel Jacobowitz  <dan@codesourcery.com>
4412
4413         * Makefile.in (top.o): Update.
4414         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
4415         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
4416         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
4417         New.
4418         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
4419
4420 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
4421
4422         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
4423         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
4424
4425 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
4426
4427         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
4428         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
4429         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
4430         greater than or equal to zero.
4431         * m2-typeprint.c (m2_array): Likewise.
4432         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4433         * gdbtypes.c (copy_type_recursive): Correct == typo.
4434         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
4435         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
4436         greater than zero.
4437         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
4438         (default_macro_scope): Remove unused variable.
4439         * prologue-value.h (pv_area_find_reg): Don't name an argument
4440         "register".
4441         * remote-fileio.c (remote_fio_func_map): Add missing braces.
4442         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
4443         type.
4444         (cleanup_sigint_signal_handler): Remove casts.
4445         * valprint.c (val_print): Use a volatile local for the modified
4446         argument.
4447         * varobj.c (languages): Remove extra array dimension.
4448         (varobj_create): Correct access to languages array.
4449         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
4450         missing braces.
4451         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
4452         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
4453         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
4454         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
4455         (mi_cmd_data_write_memory): Likewise.
4456         * signals/signals.c (target_signal_to_string): Cast to int before
4457         comparing.
4458         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
4459         Update all callers.
4460
4461 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
4462
4463         * NEWS: Mention pointer to member improvements.
4464         * Makefile.in (gnu-v3-abi.o): Delete special rule.
4465         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
4466         * ada-valprint.c (ada_print_scalar): Update for new type codes.
4467         * c-typeprint.c (c_print_type): Update for new type codes.
4468         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
4469         (c_type_print_base): Likewise.
4470         (c_type_print_args): Rewrite.
4471         * c-valprint.c (c_val_print): Update for new type codes.  Remove
4472         support for references to members.  Treat methods like functions.
4473         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
4474         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
4475         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
4476         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
4477         (struct cp_abi_ops): Add corresponding members.
4478         * cp-valprint.c (cp_print_class_method): Delete.
4479         (cp_find_class_member): New function.
4480         (cp_print_class_member): Use it.  Simplify support for bogus
4481         member pointers.
4482         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
4483         lookup_methodptr_type.
4484         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
4485         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
4486         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
4487         pointer support.
4488         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
4489         references returned by user defined operators.
4490         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
4491         (f_type_print_varspec_suffix): Remove support for member pointers.
4492         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
4493         and adjusted.
4494         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
4495         (lookup_methodptr_type): New.
4496         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
4497         (recursive_dump_type): Update for new types.
4498         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
4499         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
4500         (lookup_memberptr_type, lookup_methodptr_type)
4501         (smash_to_memberptr_type): New prototypes.
4502         (smash_to_method_type): Formatting fix.
4503         (lookup_member_type, smash_to_member_type): Delete prototypes.
4504         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
4505         Do not rely on debug information for the vptr or the method's
4506         enclosing type.  Handle function descriptors for IA64.
4507         (gnuv3_virtual_fn_field): Rewrite using the new functions.
4508         (gnuv3_find_method_in, gnuv3_print_method_ptr)
4509         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
4510         (gnuv3_method_ptr_to_value): New.
4511         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
4512         * hpread.c (hpread_type_lookup): Update for new types.
4513         * infcall.c (value_arg_coerce): Likewise.
4514         * m2-typeprint.c (m2_print_type): Remove explicit support
4515         for member pointers.
4516         * m2-valprint.c (m2_val_print): Likewise.
4517         * p-typeprint.c (pascal_type_print_varspec_prefix)
4518         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
4519         * p-valprint.c (pascal_val_print): Likewise.
4520         (pascal_object_print_class_method, pascal_object_print_class_member):
4521         Delete.
4522         * p-lang.h (pascal_object_print_class_method)
4523         (pascal_object_print_class_member): Delete prototypes.
4524         * stabsread.c (read_type): Update for new types.
4525         * typeprint.c (print_type_scalar): Likewise.
4526         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
4527         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
4528         argument.  Construct a pointer to member if the address of a
4529         function or data member is requested.
4530         (value_cast_pointers): Don't modify the input value.
4531         (value_cast): Adjust pointer to member handling for new types.
4532         Allow null pointer to member constants.  Don't modify the input
4533         value.
4534         (value_ind): Remove pointer to member check.  Handle function
4535         descriptors for function pointers.
4536         (value_struct_elt, value_find_oload_method_list, check_field):
4537         Remove pointer to member checks.
4538         * value.c (unpack_long): Allow pointers to data members.
4539         (value_from_longest): Allow member pointers.
4540         * value.h (value_aggregate_elt): Add want_address.
4541         * varobj.c (c_variable_editable): Remove check for members.
4542         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
4543         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
4544         in virtual tables.
4545         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
4546         * c-lang.h (cp_print_class_method): Delete prototype.
4547         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
4548         * mips-tdep.c (mips_gdbarch_init): Likewise.
4549         * gdbarch.c, gdbarch.h: Regenerated.
4550
4551 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4552
4553         * rs6000-tdep.c (rs6000_use_struct_convention)
4554         (rs6000_extract_return_value, rs6000_store_return_value)
4555         (rs6000_extract_struct_value_address): Remove.
4556         (rs6000_return_value): New function.
4557         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
4558         store_return_value, deprecated_extract_struct_value_address and
4559         deprecated_use_struct_convention.  Use rs6000_return_value
4560         instead.
4561
4562 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
4563
4564         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
4565         -display-disable, -display-enable, -display-insert and
4566         -display-list.
4567
4568 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
4569
4570         * breakpoint.c (remove_breakpoint): Remove dead code.
4571
4572 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
4573
4574         * varobj.c: Include block.h.
4575         (c_value_of_root): Check scope within nested statements.
4576
4577 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4578
4579         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
4580         regcache_cooked_write_signed instead of
4581         deprecated_write_register_bytes.
4582
4583 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
4584
4585         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
4586
4587 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
4588
4589         Followed the Start of New Year Procedure:
4590         * ChangeLog-2006: New file, containing all the entries for 2006.
4591         * ChangeLog: Removed all 2006 entries, and changed the reference
4592         to the previous ChangeLog to point to ChangeLog 2006.
4593         * top.c (print_gdb_version): Update copyright year.
4594
4595 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
4596
4597         * Makefile.in (remote-sds.o): Remove.
4598         * remote-sds.c: Delete.
4599
4600 For older changes see ChangeLog-2006.
4601 \f
4602 Local Variables:
4603 mode: change-log
4604 left-margin: 8
4605 fill-column: 74
4606 version-control: never
4607 End: