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