2007-11-07 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a54fba4c
MD
12007-11-07 Markus Deuling <deuling@de.ibm.com>
2
3 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
4 * gdbarch.{c,h}: Regenerate.
5 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
6 Replace current_gdbarch by gdbarch.
7 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
8 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
9 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
10
9970f04b
MD
112007-11-07 Markus Deuling <deuling@de.ibm.com>
12
13 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
14 get_regcache_arch to get at the current architecture by regcache.
15 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
16 to get at the current architecture by frame_info.
17 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
18 at the current architecture by regcache.
19 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
20 the current architecture by frame_info.
21 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
22 * aix-thread.c (special_register_p): Add gdbarch as parameter.
23 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
24 caller of special_register_p.
25
0b9dfe2b
MD
262007-11-07 Markus Deuling <deuling@de.ibm.com>
27
28 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
29 current architecture by frame_info.
30
c8541966
MD
312007-11-07 Markus Deuling <deuling@de.ibm.com>
32
33 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
34
8fe9ea88
MD
352007-11-07 Markus Deuling <deuling@de.ibm.com>
36
37 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
38 get at the current architecture by regcache.
39 (SUBOFF): Add gdbarch to macro definition.
40
67d57894
MD
412007-11-07 Markus Deuling <deuling@de.ibm.com>
42
43 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
44 * gdbarch.{c,h}: Regenerate.
45
46 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
47 Replace current_gdbarch by gdbarch.
48 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
49 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
50 * score-tdep.c (score_breakpoint_from_pc): Likewise.
51 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
52 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
53 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
54 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
55
56 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
57 parameter.
58 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
59 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
60 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
61 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
62 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
63 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
64 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
65 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
66 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
67 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
68 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
69 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
70 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
71 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
72 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
73 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
74 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
75 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
76 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
77 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
78
79 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
80 Replace current_gdbarch by gdbarch.
81 (rs6000_software_single_step): Use get_frame_arch to get at the
82 current architecture by frame_info. Add gdbarch to
83 rs6000_breakpoint_from_pc call.
84
7a22ecfc
MD
852007-11-07 Markus Deuling <deuling@de.ibm.com>
86
87 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
88 macro CURRENT_VARIANT by its expression.
89 (CURRENT_VARIANT): Remove.
90 (frv_check_watch_resources): Add gdbarch parameter.
91
213a758a
MD
922007-11-07 Markus Deuling <deuling@de.ibm.com>
93
94 * MAINTAINERS (Write After Approval): Add self.
95
f03eb1cf
UW
962007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
97
98 * features/rs6000/power-core.xml: Use uint32 as register type.
99 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
100 * features/rs6000/powerpc-32.c: Regenerate.
101 * features/rs6000/powerpc-403.c: Regenerate.
102 * features/rs6000/powerpc-403gc.c: Regenerate.
103 * features/rs6000/powerpc-505.c: Regenerate.
104 * features/rs6000/powerpc-602.c: Regenerate.
105 * features/rs6000/powerpc-603.c: Regenerate.
106 * features/rs6000/powerpc-604.c: Regenerate.
107 * features/rs6000/powerpc-64.c: Regenerate.
108 * features/rs6000/powerpc-7400.c: Regenerate.
109 * features/rs6000/powerpc-750.c: Regenerate.
110 * features/rs6000/powerpc-860.c: Regenerate.
111 * features/rs6000/powerpc-e500.c: Regenerate.
112
c40e75cd
JB
1132007-11-05 Joel Brobecker <brobecker@adacore.com>
114
115 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
116
9b70b993
JB
1172007-11-05 Joel Brobecker <brobecker@adacore.com>
118
119 * breakpoint.h (create_solib_load_event_breakpoint)
120 (create_solib_unload_event_breakpoint)
121 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
122 (create_exec_event_catchpoint): Delete declaration.
123 * breakpoint.c (create_solib_load_event_breakpoint)
124 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
125 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
126 (create_exec_event_catchpoint): Make static.
127
60b0bfbc
JB
1282007-11-05 Joel Brobecker <brobecker@adacore.com>
129
130 * breakpoint.h (set_breakpoint_sal): Remove declaration.
131 * breakpoint.c (set_breakpoint_sal): Delete.
132
a239dc23
JB
1332007-11-05 Joel Brobecker <brobecker@adacore.com>
134
135 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
136 (make_blockvector): Likewise. Remove FIXME comment.
137
1a619819
LM
1382007-11-05 Luis Machado <luisgpm@br.ibm.com>
139
140 * printcmd.c: (printf_command): Add support for new DFP
141 modifiers %H, %D and %DD.
142 * configure.ac: Add check for DECFLOAT printf support.
143 * configure: Regenerated.
144
086280be
UW
1452007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
146
147 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
148 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
149 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
150 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
151 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
152 (has_vtable, primary_base_class, virtual_base_list_length,
153 virtual_base_list_length_skip_primaries, virtual_base_index,
154 virtual_base_index_skip_primaries, class_index_in_primary_list,
155 count_virtual_fns): Remove prototypes.
156 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
157 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
158 virtual_base_list_length_skip_primaries, virtual_base_index,
159 virtual_base_index_skip_primaries, class_index_in_primary_list,
160 count_virtual_fns): Remove.
161
162 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
163 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
164 (cp_print_value_fields): Remove support for HP aCC vtables.
165 (cp_print_value): Likewise.
166 * c-typeprint.c (c_type_print_base): Likewise.
167
168 * value.h (find_rt_vbase_offset): Remove prototype.
169 * valops.c (find_rt_vbase_offset): Remove.
170 (search_struct_method): Remove support for HP aCC vtables.
171 (find_method_list): Likewise.
172
aba2dd37
UW
1732007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
174
175 * language.h (struct language_defn): Remove la_builtin_type_vector
176 and string_char_type members.
177 * language.c (language_string_char_type): No longer consult
178 la->string_char_type.
179 (language_lookup_primitive_type_by_name): No longer consult
180 current_language->la_builtin_type_vector.
181
182 * language.c (unknown_language_defn, auto_language_defn,
183 local_language_defn): Adapt initializer.
184 * ada-lang.c (ada_language_defn): Likewise.
185 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
186 minimal_language_defn): Likewise.
187 * f-lang.c (f_language_defn): Likewise.
188 * jv-lang.c (java_language_defn): Likewise.
189 * m2-lang.c (m2_language_defn): Likewise.
190 * objc-lang.c (objc_language_defn): Likewise.
191 * p-lang.c (pascal_language_defn): Likewise.
192 * scm-lang.c (scm_language_defn): Likewise.
193
09a7aba8
UW
1942007-11-02 Markus Deuling <deuling@de.ibm.com>
195
196 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
197 current_gdbarch by gdbarch.
198 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
199 current architecture by frame_info.
200 * frame.h (frame_id_inner): Add gdbarch parameter.
201 * stack.c (return_command): Use get_frame_arch to get at the current
202 architecture by frame_info. Update call of frame_id_inner.
203 * infrun.c (handle_inferior_event): Likewise.
204 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
205 current architecture by regcache. Update call of frame_id_inner.
206
d93859e2
UW
2072007-11-02 Markus Deuling <deuling@de.ibm.com>
208
209 * gdbarch.sh (register_name): Add gdbarch parameter.
210 * gdbarch.{c,h}: Regenerate.
211
212 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
213 (tdesc_register_name): Replace current_gdbarch by gdbarch.
214 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
215
216 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
217 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
218 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
219 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
220 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
221 (mt_registers_info): Replace current_gdbarch by gdbarch.
222 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
223 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
224 current_gdbarch by gdbarch.
225 (mips_register_name): Add gdbarch to tdesc_register_name call.
226 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
227 current_gdbarch by gdbarch.
228 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
229 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
230 current_gdbarch by gdbarch.
231 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
232 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
233 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
234 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
235 architecture by frame_info.
236 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
237 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
238 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
239 parameter.
240 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
241 (h8300sx_register_name): Add gdbarch parameter.
242 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
243 gdbarch parameter. Replace current_gdbarch by gdbarch.
244 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
245 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
246 * arm-tdep.c (arm_register_name): Add gdbarch paramete
247 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
248 caller.
249 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
250 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
251 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
252 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
253 of alpha_register_name.
254 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
255 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
256 current_gdbarch by gdbarch.
257 (i386_register_type): Replace ?current_gdbarch by gdbarch.
258 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
259 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
260
261 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
262 (m68hc11_register_reggroup_p): Add gdbarch to call of
263 m68hc11_register_name.
264 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
265 (am33_2_register_name): Add gdbarch parameter.
266 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
267 architecture by frame_info.
268 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
269 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
270 current_gdbarch by gdbarch.
271 * score-tdep.c (score_register_name): Add gdbarch parameter.
272 (score_return_value, score_push_dummy_call): Replace current_gdbarch
273 by gdbarch.
274 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
275 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
276 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
277 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
278 and update caller. Replace current_gdbarch by gdbarch.
279 (sh64_extract_return_value, sh64_store_return_value): Use
280 get_regcache_arch to get at the current architecture by regcache.
281 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
282 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
283 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
284 (sh_sh3_dsp_register_name, sh_sh4_register_name)
285 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
286 parameter.
287 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
288 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
289 current_gdbarch by gdbarch.
290 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
291 get_regcache_arch to get at the current architecture by regcache.
292 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
293 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
294 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
295 parameter.
296 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
297 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
298 current_gdbarch by gdbarch.
299 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
300 (xtensa_frame_prev_register): Add gdbarch parameter to
301 xtensa_register_name call.
302
82233d87
UW
3032007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
304
305 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
306 find_solib_trampoline_target if PC is not in .plt section.
307
02c75f72
UW
3082007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
309
310 * elfread.c (elf_symtab_read): When constructing a solib trampoline
311 minimal symbol from an undefined dynamic symbol, use proper section.
312
08790784
UW
3132007-10-31 Markus Deuling <deuling@de.ibm.com>
314
315 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
316 to get at the current architecture by regcache.
317
8cff2ae6
UW
3182007-10-30 Markus Deuling <deuling@de.ibm.com>
319
320 * libunwind-frame.c (libunwind_frame_sniffer)
321 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
322 (libunwind_frame_cache): Use get_frame_arch to get at the current
323 architecture by frame_info.
324 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
325
505bbca2
UW
3262007-10-30 Markus Deuling <deuling@de.ibm.com>
327
328 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
329 at the current architecture by frame_info.
330
b1a653ae
UW
3312007-10-30 Markus Deuling <deuling@de.ibm.com>
332
333 * inf-child.c (inf_child_fetch_inferior_registers): Use
334 get_regcache_arch to get at the current architecture by regcache.
335
3b3b1423
UW
3362007-10-30 Markus Deuling <deuling@de.ibm.com>
337
338 * inf-ptrace.c (inf_ptrace_fetch_registers)
339 (inf_ptrace_fetch_register, inf_ptrace_store_register)
340 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
341 current architecture by regcache.
342
8d90747a
UW
3432007-10-30 Markus Deuling <deuling@de.ibm.com>
344
345 * hpux-thread.c (hpux_thread_fetch_registers)
346 (hpux_thread_store_registers): Use get_regcache_arch to get at the
347 current architecture by regcache.
348
65c5db89
UW
3492007-10-30 Markus Deuling <deuling@de.ibm.com>
350
351 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
352 current architecture by frame_info.
353
7067c689
UW
3542007-10-30 Markus Deuling <deuling@de.ibm.com>
355
356 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
357 (go32_store_registers): Use get_regcache_arch to get at the current
358 architecture by regcache.
359
8a7e34d8
UW
3602007-10-30 Markus Deuling <deuling@de.ibm.com>
361
362 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
363
992166ee
UW
3642007-10-30 Markus Deuling <deuling@de.ibm.com>
365
366 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
367 to get at the current architecture by frame_info.
368
bb09620c
UW
3692007-10-30 Markus Deuling <deuling@de.ibm.com>
370
371 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
372
8f4f3fbe
UW
3732007-10-30 Markus Deuling <deuling@de.ibm.com>
374
375 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
376 the current architecture by regcache.
377
13b8769f
UW
3782007-10-30 Markus Deuling <deuling@de.ibm.com>
379
380 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
381 current architecture by regcache.
382
27524c05
UW
3832007-10-30 Markus Deuling <deuling@de.ibm.com>
384
385 * bsd-uthread.c (bsd_uthread_fetch_registers)
386 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
387 current architecture by regcache.
388
fbff0d8f
UW
3892007-10-30 Markus Deuling <deuling@de.ibm.com>
390
391 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
392 get_frame_arch to get at the current architecture by frame_info.
393
e1e01acd
UW
3942007-10-30 Markus Deuling <deuling@de.ibm.com>
395
396 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
397
b2cb219a
UW
3982007-10-30 Markus Deuling <deuling@de.ibm.com>
399
400 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
401 (store_regs): Use get_regcache_arch to get at the current architecture
402 by regcache.
403
a6f7e838
UW
4042007-10-30 Markus Deuling <deuling@de.ibm.com>
405
406 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
407 to get at the current architecture by regcache.
408
600d293e
UW
4092007-10-30 Markus Deuling <deuling@de.ibm.com>
410
411 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
412 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
413 the current architecture by regcache.
414
d4a9a881
UW
4152007-10-30 Markus Deuling <deuling@de.ibm.com>
416
417 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
418 gdbarch.
419
55eddb0f
DJ
4202007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
421
422 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
423 soft float and vector ABIs. Support the generic vector ABI for
424 AltiVec types.
425 (do_ppc_sysv_return_value): Likewise. Correct argument types and
426 casts.
427 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
428 supported.
429 * ppc-tdep.h (enum powerpc_vector_abi): New.
430 (struct gdbarch_tdep): Add soft_float and vector_abi.
431 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
432 (powerpc_soft_float_global, powerpc_vector_strings)
433 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
434 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
435 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
436 (powerpc_set_vector_abi): New.
437 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
438 commands.
439 * Makefile.in (elf_ppc_h): New.
440 (rs6000-tdep.o): Update.
441
06caf7d2
CES
4422007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
443
444 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
445 swapped offsets and VRSAVE offset.
446 (ppc64_linux_reg_offsets): Corrected swapped offsets.
447 (ppc32_linux_vrregset): Added.
448 (ppc_linux_regset_from_core_section): Added support for
449 .reg-ppc-vmx section.
450 * ppc-tdep.h (ppc_altivec_support_p): Declare.
451 (ppc_supply_vrregset): Declare.
452 (ppc_collect_vrregset): Declare.
453 * rs6000-tdep.c (ppc_altivec_support_p): Added.
454 (ppc_supply_vrregset): Added.
455 (ppc_collect_vrregset): Added.
456 * corelow.c (get_core_registers): Added support for
457 .reg-ppc-vmx section.
458
72774a84 4592007-10-29 Joel Brobecker <brobecker@adacore.com>
460
461 GDB 6.7.1 released.
462
648027cc
JB
4632007-10-26 Jim Blandy <jimb@codesourcery.com>
464
bfe10c0f
JB
465 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
466 deleted function.
467
e3dd034f
JB
468 * tracepoint.c (tracepoint_operation): Report the deletion event
469 after we have unlinked the tracepoint from the list, and use the
470 proper tracepoint number.
471
624d6fb7
JB
472 * ax-gdb.c (expr_to_agent): Delete unused function.
473 (expr_to_address_and_size): Delete #if 0'd function.
474 * ax-gdb.h (expr_to_agent): Delete declaration.
475
74b35824
JB
476 * ax-gdb.c (gen_cast): Remove redundant assignment to
477 value->type. Doc fix.
478
648027cc
JB
479 * ax-general.c (gen_traced_pop, gen_int_literal)
480 (gen_usual_arithmetic): Check for typedefs.
481
df2a60d0
JB
4822007-10-26 Joel Brobecker <brobecker@adacore.com>
483
484 * parse.c (prefixify_expression): Minor reformatting.
485
d76526c6
DJ
4862007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
487
488 * version.in: Use dot instead of dash.
489
8f136895
DJ
4902007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
491
492 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
493
f6071bfa
PA
4942007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
495
496 * memory-map.c (parse_memory_map): Don't use an empty struct
497 initializer.
498
7e2dbecf
PA
4992007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
500
501 * signals/signals.c (signals): Update pointer to enum
502 target_signal declaration.
503
68511cec
CES
5042007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
505 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
506 Jim Blandy <jimb@codesourcery.com>
507
508 * dwarf2read.c (read_partial_die): check the value
509 of DW_AT_calling_convention in Fortran programs.
510
27bc4d80
TJB
5112007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
512 Thiago Jung Bauermann <bauerman@br.ibm.com>
513
514 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
515 floating point in YYSTYPE union.
516 (DECFLOAT) Add token and expression element handling code.
517 (parse_number): Parse DFP constants, which end with suffix 'df',
518 'dd' or 'dl'. Return DECFLOAT.
519 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
520 handle OP_DECFLOAT.
521 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
522 for DFP constants.
523 (union exp_element): Add decfloatconst to represent DFP
524 elements, which is 16 bytes by default.
525 * parse.c (write_exp_elt_decfloatcst): New function to write a
526 decimal float const into the expression.
527 (operator_length_standard): Set operator length for OP_DECFLOAT
528 to 4.
529 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
530 * valarith.c (value_neg): Add code to handle the negation
531 operation of DFP values.
532 * value.c (value_from_decfloat): New function to get the value
533 from a decimal floating point.
534 * value.h (value_from_decfloat): Prototype.
535
7678ef8f
TJB
5362007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
537 Thiago Jung Bauermann <bauerman@br.ibm.com>
538
539 * c-lang.c (c_create_fundamental_type): Create fundamental
540 types for DFP.
541 * c-typeprint.c (c_type_print_varspec_prefix): Add
542 TYPE_CODE_DECFLOAT to no prefix needed case.
543 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
544 suffix needed case.
545 * c-valprint.c (c_val_print): Call print_decimal_floating to
546 print DFP values.
547 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
548 attribute code and return TYPE_CODE_DECFLOAT.
549 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
550 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
551 builtin_decdouble and builtin_declong.
552 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
553 type code for DFP.
554 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
555 types, for decimal floating point.
556 (FT_NUM_MEMBERS): Increment, new types added.
557 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
558 and builtin_declong.
559 * valprint.c (print_decimal_floating): New function to print DFP
560 values.
561 * value.h (print_decimal_floating): Prototype.
562
9b913628
TJB
5632007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
564 Thiago Jung Bauermann <bauerman@br.ibm.com>
565
566 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
567 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
568 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
569 (INSTALLED_LIBS): Add -ldecnumber in.
570 (CLIBS): Add LIBDECNUMBER in.
571 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
572 headers.
573 (dfp_h): New macros for decimal floating point.
574 (dfp.o): New target.
575 (COMMON_OBS): Add dfp.o in.
576 (c-exp.o): Add dfp_h as dependency.
577 (valprint.o): Add dfp_h as dependency.
578 (value.o): Add dfp_h as dependency.
579 * dfp.h: New header file for decimal floating point support in
580 GDB.
581 * dfp.c: New source file for decimal floating point support in
582 GDB. Implement decimal_from_string and decimal_to_string based
583 on libdecnumber API.
584 * configure.ac: Add AC_C_BIGENDIAN test.
585 * config.in, configure: Regenerate.
586
ad842144
MR
5872007-10-25 David Ung <davidu@mips.com>
588 Maciej W. Rozycki <macro@mips.com>
589
590 PR exp/1926
591 * infcmd.c (registers_info): Check for a user register before
592 calling target's gdbarch_print_registers_info(). If found to be
593 so, extract the implicit value of user register and call
594 print_scalar_formatted().
595 * Makefile.in: (infcmd.o): Add $(user_regs_h).
596
24a836bd
JB
5972007-10-25 Joel Brobecker <brobecker@adacore.com>
598
599 * NEWS: Document status of hppa64-hpux support.
600
7e3cb44c
UW
6012007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
602
603 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
604 set_solib_ops to install SVR4 operations.
605 (_initialize_svr4_solib): Do not set current_target_so_ops.
606
607 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
608 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
609
8d005789
UW
6102007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
611
612 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
613 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
614 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
615 * solib-legacy.c: Remove file.
616
617 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
618 * config/arm/linux.mt (TDEPFILES): Likewise.
619 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
620 * config/ia64/linux.mt (TDEPFILES): Likewise.
621 * config/m32r/linux.mt (TDEPFILES): Likewise.
622 * config/powerpc/linux.mt (TDEPFILES): Likewise.
623 * config/s390/s390.mt (TDEPFILES): Likewise.
624
625 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
626 set_solib_svr4_fetch_link_map_offsets.
627 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
628 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
629
630 * i386gnu-tdep.c: Include "solib-svr4.h".
631 * Makefile.in: Update dependencies.
632
59215afb
UW
6332007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
634
635 * i386-nto-tdep.c: Include "solib.h".
636 (i386nto_init_abi): Use set_solib_ops instead of overwriting
637 current_target_so_ops members.
638 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
639 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
640 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
641 * Makefile.in: Update dependencies.
642
8d465389
UW
6432007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
644
645 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
646 (arm_wince_init_abi): Call set_solib_ops.
647 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
648 (i386_cygwin_init_abi): Call set_solib_ops.
649 * solib-target.c: Include "solib-target.h".
650 (solib_target_so_ops): Make global.
651 (_initialize_solib_target): Do not set current_target_so_ops.
652 * solib-target.h: New file.
653 * Makefile.in: Update dependencies.
654
734598d9
UW
6552007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
656
657 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
658 (mips_irix_init_abi): Call set_solib_ops.
659 * solib-irix.c: Include "solib.h" and "solib-irix.h".
660 (irix_so_ops): Make global.
661 (_initialize_irix_solib): Do not set current_target_so_ops.
662 * solib-irix.h: New file.
663 * Makefile.in: Update dependencies.
664
d542061a
UW
6652007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
666
667 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
668 * config/pa/hppa64.mt: Delete file.
669 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
670 (TDEPFILES): Move somread.o to ...
671 * config/pa/hpux.mh (NATDEPFILES): ... here.
672
673 * configure.ac: Add check for elf_hp.h header.
674 Search libdl and libxpdl for dlgetmodinfo.
675 * config.in, configure: Regenerate.
676 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
677 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
678 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
679 set_solib_ops instead of modifying current_target_so_ops.
680 * solib-pa64.h (pa64_solib_select): Update prototype.
681 * solib-som.c: Remove include of "som.h". Include "solib.h".
682 (som_solib_select): Take gdbarch instead of tdep argument. Call
683 set_solib_ops instead of modifying current_target_so_ops.
684 * solib-som.h (som_solib_select): Update prototype.
685 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
686 of tdep to som_solib_select call.
687 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
688 pa64_solib_select call.
689 * Makefile.in: Update dependencies.
690
917630e4
UW
6912007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
692
693 * frv-tdep.c: Include "solib.h".
694 (frv_gdbarch_init): Call set_solib_ops.
695 * frv-tdep.h (struct target_so_ops): Add forward reference.
696 (frv_so_ops): Add extern declaration.
697 * solib-frv.c (frv_so_ops): Make global.
698 (_initialize_frv_solib): Do not set current_target_so_ops.
699 * Makefile.in: Update dependencies.
700
e8a92f7b
UW
7012007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
702
703 * solib.c (solib_global_lookup): Use solib_ops instead of global
704 current_target_so_ops.
705
8ff7bac7
UW
7062007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
707
708 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
709 * config/frv-tm-frv.h: Delete file.
710
523c4513
DJ
7112007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
712
713 * NEWS: Mention gdbserver support for non-libthread_db operation.
714
83acabca
DJ
7152007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
716
717 * amd64-tdep.c (amd64_convert_register_p): Delete.
718 (amd64_init_abi): Use i387_convert_register_p.
719 * alpha-tdep.c (alpha_convert_register_p): Return zero for
720 eight byte types.
721 (alpha_register_to_value, alpha_value_to_register): Do not handle
722 eight byte types.
723 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
724 * i387-tdep.c (i387_convert_register_p): New.
725 (i387_register_to_value, i387_value_to_register): Update comments.
726 * i387-tdep.h (i387_convert_register_p): Declare.
727 * ia64-tdep.c (ia64_convert_register_p): Return zero for
728 builtin_type_ia64_ext.
729 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
730 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
731 * m68k-tdep.c (m68k_convert_register_p): Return zero for
732 builtin_type_m68881_ext.
733 (m68k_register_to_value, m68k_value_to_register): Update comments.
734
24bf05ac
DJ
7352007-10-24 Nathan Sidwell <nathan@codesourcery.com>
736
737 * target-memory.c (claim_memory): Propagate baton for split memory
738 requests.
739
e71c308d
DJ
7402007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
741
742 PR gdb/2341
743 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
744 alias warning bug.
745
51432cca
CES
7462007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
747
748 * symtab.c (find_line_symtab): scan through psymtabs
749 when exact_match is zero.
750
3d5f6d12
DJ
7512007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
752
753 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
754 (deal_with_atomic_sequence): New.
755 (mips_software_single_step): Use it.
756
7b3200f9
DJ
7572007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
758
759 PR gdb/2336
760 * configure.ac: Modify $LIBINTL before the BFD check.
761 * configure: Regenerated.
762
89ba75b1
JB
7632007-10-23 Joel Brobecker <brobecker@adacore.com>
764
765 * buildsym.c (free_pending_blocks): Remove commented-out code.
766 (make_blockvector): Likewise. Re-use free_pending_blocks.
767 (end_symtab): Remove commented-out code.
768
57ee890f
DJ
7692007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
770
771 * top.c (command_loop): Fix output for shrinkage.
772
44742d57
DJ
7732007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
774
775 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
776 (exp): Remove and document function-like casts.
777
f88e9fd3
DJ
7782007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
779
780 * cp-support.c: Include "safe-ctype.h".
781 (cp_already_canonical): New function.
782 (cp_canonicalize_string): Use it. Return NULL for already canonical
783 strings.
784 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
785 (cp_func_name, remove_params): Likewise.
786 (cp_find_first_component_aux): Use ISSPACE.
787 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
788 MEMORY_P argument.
789 * cp-name-parser.y (ALLOC_CHUNK): Define.
790 (struct demangle_info): Add PREV and NEXT. Increase the size of
791 COMPS.
792 (d_grab): Convert to a function.
793 (allocate_info): Rewrite.
794 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
795 strlen. Update call to allocate_info. Do not free it on failure.
796 (main): Update calls to cp_demangled_name_to_comp.
797 * Makefile.in (cp-support.o): Update.
798
e9a4730f
UW
7992007-10-22 Markus Deuling <deuling@de.ibm.com>
800
801 * std-regs.c (value_of_builtin_frame_fp_reg)
802 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
803 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
804 current architecture by frame_info.
805
6bcde365
UW
8062007-10-22 Markus Deuling <deuling@de.ibm.com>
807
808 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
809 by gdbarch.
810
a4bd449d
UW
8112007-10-22 Markus Deuling <deuling@de.ibm.com>
812
813 * infcmd.c (default_print_registers_info, print_return_value)
814 (print_vector_info, print_float_info): Replace current_gdbarch by
815 gdbarch.
816 (registers_info): Use get_frame_arch to get at the current
817 architecture by frame_info.
818
e071d1f6
UW
8192007-10-22 Markus Deuling <deuling@de.ibm.com>
820
821 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
822 get_regcache_arch to get at the current architecture by regcache.
823
f8d29908
UW
8242007-10-22 Markus Deuling <deuling@de.ibm.com>
825
826 * target.c (debug_print_register): Use get_regcache_arch to get at the
827 current architecture by regcache.
828
39cbfefa
DJ
8292007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
830
831 * dwarf2read.c (read_file_scope): Add a comment.
832 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
833 (read_enumeration_type, process_enumeration_scope, read_array_type)
834 (read_typedef, read_base_type, read_subrange_type)
835 (read_unspecified_type): Use dwarf2_name.
836
fe3e1990
DJ
8372007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
838
839 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
840 * dwarf2read.c (dwarf2_free_objfile): New.
841 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
842 * symfile.h (dwarf2_free_objfile): Declare.
843
261224b2
JB
8442007-10-21 Joel Brobecker <brobecker@adacore.com>
845
846 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
847
9274a07c
LM
8482007-10-21 Luis Machado <luisgpm@br.ibm.com>
849
850 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
851 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
852 default dwarf2_frame_set_init_reg function.
853
430ebac9
PA
8542007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
855
856 * NEWS: Mention native MinGW configuration.
857
97030eea
UW
8582007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
859
860 * gdbarch.sh: Remove "macro" column of input table. Remove handling
861 of "macro" column throughout the file. Remove (empty) "macro" entry
862 of all gdbarch functions.
863
203c3895
UW
8642007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
865
866 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
867 * gdbarch.c, gdbarch.h: Regenerate.
868 * dbxread.c (find_stab_function_addr): Define unconditionally.
869 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
870 instead of SOFUN_ADDRESS_MAYBE_MISSING.
871 (end_psymtab): Likewise.
872 (process_one_symbol): Likewise.
873 * mdebugread.c (parse_partial_symbols): Likewise.
874
875 * symtab.h (struct minimal_symbol): Always define "filename" member.
876 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
877 * minsyms.c (lookup_minimal_symbol): Likewise.
878 * symmisc.c (dump_msymbols): Likewise.
879
880 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
881 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
882 * config/i386/tm-i386sol2.h: Remove file.
883 * config/i386/tm-linux.h: Remove file.
884 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
885 set_gdbarch_sofun_address_maybe_missing.
886 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
887
888 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
889 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
890 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
891 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
892 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
893 * config/powerpc/tm-ppc-eabi.h: Remove file.
894 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
895 set_gdbarch_sofun_address_maybe_missing.
896
897 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
898 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
899 * config/sparc/tm-sol2.h: Remove file.
900 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
901 set_gdbarch_sofun_address_maybe_missing.
902 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
903
149ad273
UW
9042007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
905
906 * gdbarch.sh (static_transform_name): New gdbarch callback.
907 * gdbarch.c, gdbarch.h: Regenerate.
908 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
909 instead of STATIC_TRANSFORM_NAME.
910 * mdebugread.c (parse_partial_symbols): Likewise.
911 * stabsread.c (define_symbol): Likewise.
912 * xcoffread.c (scan_xcoff_symtab): Likewise.
913
914 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
915 (IS_STATIC_TRANSFORM_NAME): Remove.
916 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
917 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
918 (i386_sol2_init_abi): Install it.
919
920 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
921 (IS_STATIC_TRANSFORM_NAME): Remove.
922 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
923 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
924 (sparc32_sol2_init_abi): Install it.
925 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
926 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
927
ba32f989
DJ
9282007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
929
930 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
931 (mips_n32n64_return_value, mips_o32_return_value)
932 (mips_o64_return_value): Update calls to mips_xfer_register.
933
11411de3
DJ
9342007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
935
936 * frame.c (frame_unwind_unsigned_register): Delete.
937 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
938 * frame.h (frame_unwind_unsigned_register): Delete prototype.
939
940 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
941 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
942 mt-tdep.c: Replace frame_unwind_unsigned_register with
943 frame_unwind_register_unsigned.
944
10325bc5
PA
9452007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
946
947 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
948 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
949 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
950 include procfs.h.
951 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
952 if not building on Cygwin.
953 (win32_make_so, handle_output_debug_string, handle_exception)
954 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
955 (win32_attach): Only fallback to Cygwin pids if building on
956 Cygwin.
957 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
958 building on Cygwin.
959 (win32_create_inferior): Disable starting the inferior through a
960 shell, environment var processing and tty handling if not building
961 on Cygwin.
962 (cygwin_pid_to_str): Rename to ...
963 (win32_pid_to_str): ... this.
964 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
965 and "cygwin-exceptions" commands if not building on Cygwin.
966
844781a1
GM
9672007-10-16 Gaius Mulley <gaius@glam.ac.uk>
968
969 * doc/gdb.texinfo: Add TSIZE definition, removed
970 statement about unbounded arrays being unimplemented.
971 * m2-valprint.c (m2_print_array_contents): New function.
972 (m2_print_unbounded_array): New function.
973 (m2_print_array_contents): New function.
974 * m2-typeprint.c (m2_unbounded_array): New function.
975 (m2_is_unbounded_array): New function.
976 (m2_print_type): Test for unbounded array when walking
977 across structs.
978 * m2-lang.h: Added extern m2_is_unbounded_array.
979 * m2-lang.c (evaluate_subexp_modula2): New function.
980 (exp_descriptor_modula2): New structure.
981 (m2_language_defn): Use exp_descriptor_modula2.
982 * m2-exp.y: Added TSIZE and binary subscript.
983
62c018fe
DJ
9842007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
985
986 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
987 after freeing it.
988
9ffbf372
KB
9892007-10-16 Kevin Buettner <kevinb@redhat.com>
990
991 * m32r-tdep.c (decode_prologue): Sign extend offset for
992 "addi sp, xx" case.
993 (m32r_frame_unwind_cache): Likewise.
994
6a16c029
TJB
9952007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
996
997 * rs6000-tdep.c (skip_prologue): Restore comment with
998 function description to its proper place.
999
d71340b8
DJ
10002007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1001
1002 * NEWS: Mention gdbserver PowerPC improvements.
1003
30ed0a8f
DJ
10042007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1005
1006 * features/Makefile (WHICH): Add PowerPC register definitions.
1007 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1008 (rs6000/powerpc-64-expedite): New macros.
1009 ($(outdir)/%.dat): Handle subdirectories.
1010 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1011 regformats/rs6000/powerpc-e500.dat: New generated files.
1012
310a98e1
DJ
10132007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1014
1015 * ppc-linux-nat.c (ppc_linux_read_description): New.
1016 (_initialize_ppc_linux_nat): Set to_read_description.
1017 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1018
7cc46491
DJ
10192007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1020
1021 * NEWS: Document target described register support for PowerPC.
1022 * ppc-tdep.h: Remove ppc_spr constants.
1023 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1024 ppc_builtin_type_vec128 members.
1025 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1026 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1027 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1028 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1029 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1030 * rs6000-tdep.c: Include preparsed descriptions.
1031 (init_sim_regno_table): Do not iterate over pseudo registers.
1032 Look up segment registers by name. Use sim_spr_register_name
1033 for SPRs.
1034 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1035 (rs6000_builtin_type_vec128): Delete.
1036 (rs6000_register_name): Only handle SPE pseudo registers and upper
1037 halves. Call tdesc_register_name for everything else.
1038 (rs6000_register_type): Delete. Replace with...
1039 (rs6000_pseudo_register_type): ...this new function. Only handle
1040 SPE pseudo registers.
1041 (rs6000_register_reggroup_p): Delete. Replace with...
1042 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1043 handle SPE pseudo registers.
1044 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1045 "struct reg".
1046 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1047 of reg->fpr.
1048 (e500_register_reggroup_p): Delete.
1049 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1050 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1051 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1052 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1053 (registers_powerpc, registers_403, registers_403GC, registers_505)
1054 (registers_860, registers_601, registers_602, registers_603)
1055 (registers_604, registers_750, registers_7400, registers_e500): Delete
1056 variables.
1057 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1058 tdesc.
1059 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1060 (variants): Delete outdated comment. Use standard target descriptions
1061 instead of "struct reg" arrays.
1062 (init_variants): Delete.
1063 (rs6000_gdbarch_init): Do not guess word size from the BFD
1064 architecture if we have a target description. Select a variant
1065 before creating a new architecture. Use the variant's target
1066 description if the target did not define a register layout.
1067 Validate target-supplied registers. Reject mismatches. Use
1068 fixed register numbers and new constants instead of magic
1069 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1070 (_initialize_rs6000_tdep): Initialize the preparsed target
1071 descriptions.
1072 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1073 uint128.
1074 (tdesc_find_register_early): New function.
1075 (tdesc_numbered_register): Use it.
1076 (tdesc_register_size): New function.
1077 (tdesc_use_registers): Take a target_desc argument. Do not use
1078 gdbarch_target_desc.
1079 * target-descriptions.h (tdesc_use_registers): Update prototype
1080 and comment.
1081 (tdesc_register_size): New prototype.
1082 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1083 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1084 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1085 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1086 (rs6000-tdep.o): Update.
1087 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1088 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1089 * mips-tdep.c (mips_gdbarch_init): Likewise.
1090
324300c0
DJ
10912007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1092
1093 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1094 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1095 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1096 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1097 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1098 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1099 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1100 generated files.
1101
8dc35b87
DJ
11022007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1103
1104 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1105 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1106 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1107 feature descriptions for standard PowerPC register sets.
1108
1109 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1110 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1111 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1112 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1113 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1114 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1115 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1116 target descriptions for PowerPC processors.
1117
81adfced
DJ
11182007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1119
1120 * target-descriptions.c (tdesc_predefined_types): New.
1121 (tdesc_named_type): Use it.
1122 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1123 (_intialize_target_descriptions): Register "maint print c-tdesc".
1124 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1125 (cfiles, %.c): New rules.
1126 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1127 features/mips64-linux.c: New generated files.
1128
1129 * arm-linux-nat.c: Include preparsed description instead of
1130 "xml-support.h".
1131 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1132 (arm_linux_read_description): New function.
1133 (_initialize_arm_linux_nat): Set to_read_description instead of
1134 to_xfer_partial. Initialize preparsed description.
1135 * config/arm/linux.mh (TDEP_XML): Delete.
1136 * mips-linux-nat.c: Include preparsed descriptions instead of
1137 "xml-support.h".
1138 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1139 (mips_linux_read_description): New function.
1140 (_initialize_mips_linux_nat): Set to_read_description instead of
1141 to_xfer_partial. Initialize preparsed description.
1142 * config/mips/linux.mh (TDEP_XML): Delete.
1143 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1144 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1145 (mips64_linux_c): New macros.
1146 (arm-linux-nat.o, mips-linux-nat.o): Update.
1147
0dfdb8ba
PM
11482007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1149
1150 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1151 Replace xasprintf by xstrprintf.
1152 symfile-mem.c (add_vsyscall_page): Ditto.
1153
2685572f
UW
11542007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1155
1156 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1157 replacing use of global current_gdbarch.
1158 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1159 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1160
1161 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1162 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1163 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1164 (ia64_sigtramp_frame_cache): Update caller.
1165
c1874924
UW
11662007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1167
1168 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1169 (extract_return_value, store_return_value): Remove.
1170 (return_value): Remove default implementation.
1171 * gdbarch.c, gdbarch.h: Regenerate.
1172
1173 * stack.c (return_command): Remove compatibility hack.
1174 * arch-utils.c (legacy_return_value): Remove.
1175 * arch-utils.h (legacy_return_value): Likewise.
1176
1177 * arch-utils.c (always_use_struct_convention): Remove.
1178 * arch-utils.h (always_use_struct_convention): Likewise.
1179 * value.c (generic_use_struct_convention): Remove.
1180 * defs.h (generic_use_struct_convention): Likewise.
1181
4c8b6ae0
UW
11822007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1183
1184 * avr-tdep.c (avr_return_value): New function.
1185 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1186 set_gdbarch_extract_return_value.
1187
1188 * fvr-tdep.c (frv_return_value): New function.
1189 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1190 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1191 and set_gdbarch_deprecated_use_struct_convention.
1192
1193 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1194 Add check for structure, union, or array types.
1195 (ia64_extract_return_value): Make static.
1196 (ia64_store_return_value): Make static. Support multi-word values.
1197 (ia64_return_value): New function.
1198 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1199 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1200 and set_gdbarch_deprecated_use_struct_convention.
1201
899cff7a
JB
12022007-10-12 Joel Brobecker <brobecker@adacore.com>
1203
1204 * solib-target.c (solib_target_parse_libraries)
1205 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1206
d41ebd5d
JB
12072007-10-12 Jim Blandy <jimb@codesourcery.com>
1208
1209 * serial.h (struct serial_ops): Document read_prim to return zero
1210 at EOF.
1211 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1212 read_prim returns zero, not SERIAL_TIMEOUT.
1213
62f6180c
UW
12142007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1215
1216 * alpha-mdebug-tdep.c: Include "gdb_string.h".
1217 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1218 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1219 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1220
1221 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
1222 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
1223 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
1224 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1225 * config/alpha/tm-alpha.h: Remove file.
1226
ee53e872
UW
12272007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1228
1229 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
1230 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
1231
1232 * config/pa/tm-hppa.h: Delete file.
1233 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
1234 * config/pa/hppahpux.mt: Likewise.
1235 * config/pa/hppa.mt: Likewise.
1236 * config/pa/linux.mt: Likewise.
1237 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
1238
3d5e6107
UW
12392007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1240
1241 * config/arm/nm-nbsdaout.h: Remove file.
1242 * config/nm-nbsdaout.h: Likewise.
1243 * config/nm-nbsd.h: Likewise.
1244
82585c72
UW
12452007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1246
1247 * block.h (struct block): Remove "gcc_compile_flag" member.
1248 (BLOCK_GCC_COMPILED): Remove.
1249 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
1250 * buildsym.c (finish_block): Do not set it.
1251 * symmisc.c (dump_symtab_1): Do not dump it.
1252
1253 * value.h (using_struct_return): Remove "gcc_p" argument.
1254 * value.c (using_struct_return): Likewise.
1255 * eval.c (evaluate_subexp_standard): Adapt callers.
1256 * infcall.c (call_function_by_hand): Likewise.
1257 * stack.c (return_command): Likewise.
1258 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1259
1260 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
1261 * gdbarch.c, gdbarch.h: Regenerate.
1262 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
1263 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
1264 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1265 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
1266 (push_dummy_code, call_function_by_hand): Adapt callers.
1267
8f536afe
UW
12682007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1269
1270 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
1271 (finish_command_continuation, finish_command): Adapt callers.
1272
f156e33b
UW
12732007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1274
1275 * infcall.c (call_function_by_hand): Remove special handling
1276 for HP aCC compiled code.
1277
f6e56ab3
UW
12782007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1279
1280 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
1281 reference. Fix endianness bugs.
1282 (cris_reg_struct_has_address): Remove.
1283 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
1284 and set_gdbarch_deprecated_use_struct_convention calls.
1285
1286 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
1287 * gdbarch.c, gdbarch.h: Regenerate.
1288 * infcall.c (call_function_by_hand): Remove handling of
1289 deprecated_reg_struct_has_addr.
1290
b4c291bb
KH
12912007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1292 Kazu Hirata <kazu@codesourcery.com>
1293
1294 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
1295 checking watchpoint resources.
1296
56cf5405
KH
12972007-10-11 Kazu Hirata <kazu@codesourcery.com>
1298
1299 * memattr.c (inaccessible_by_default): Change the initial
1300 value to 1.
1301
3b016d57
DJ
13022007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1303
1304 PR gdb/2280
1305 * coffread.c (read_one_sym): Check for read errors.
1306
e9efe249
UW
13072007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
1308
1309 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
1310 instead of "Linux 2.6.19" in comment.
1311 (linux_xfer_partial): Use "GNU/Linux target" instead of
1312 "Linux target" in comment.
1313 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
1314 (m68k_linux_get_sigtramp_info): Likewise.
1315
b33682a7
DJ
13162007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1317
1318 * MAINTAINERS (language support): List Joel and Paul as
1319 Ada maintainers.
1320
35156bae
DJ
13212007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1322
1323 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
1324 checks.
1325 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
1326 not set DEPRECATED_TM_FILE.
1327 * config/arm/tm-arm.h: Delete file.
1328
3d47173c
LM
13292007-10-11 Luis Machado <luisgpm@br.ibm.com>
1330
1331 * MAINTAINERS (Write After Approval): Add self.
1332
607ae575
DJ
13332007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1334
1335 * buildsym.c (record_line): Remove empty lines followed by
1336 end-of-sequence markers.
1337
b8d5e0ac
KH
13382007-10-11 Kazu Hirata <kazu@codesourcery.com>
1339
1340 * configure.tgt: Recognize fido-*-elf.
1341
86f26d2f 13422007-10-10 Joel Brobecker <brobecker@adacore.com>
1343
1344 GDB 6.7 released.
1345
7500260a
UW
13462007-10-10 Markus Deuling <deuling@de.ibm.com>
1347
1348 * stack.c (print_frame_args, frame_info, return_command): Use
1349 get_regcache_arch or get_frame_arch to get at the current architecture
1350 by regcache or by frame, respectively.
1351
8b164abb
UW
13522007-10-10 Markus Deuling <deuling@de.ibm.com>
1353
1354 * rs6000-nat.c (fetch_register, store_register)
1355 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
1356 get_regcache_arch to get at the current architecture by regcache.
1357
1358 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
1359 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
1360 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
1361 current_gdbarch by gdbarch.
1362 (rs6000_skip_trampoline_code, rs6000_register_to_value)
1363 (rs6000_value_to_register): Use get_frame_arch to get at the current
1364 architecture by frame_info.
1365
e6d4f032
UW
13662007-10-10 Markus Deuling <deuling@de.ibm.com>
1367
1368 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
1369 get_regcache_arch to get at the current architecture by regcache.
1370
1371 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1372 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
1373 get_regcache_arch to get at the current architecture by regcache.
1374
1375 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
1376 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1377 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
1378 current architecture by regcache.
1379
2eb4d78b
UW
13802007-10-10 Markus Deuling <deuling@de.ibm.com>
1381
1382 * remote-mips.c (mips_wait, mips_fetch_registers)
1383 (mips_store_registers): Use get_regcache_arch to get at the
1384 current architecture by regcache.
1385
1386 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
1387 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
1388 get at the current architecture by regcache.
1389 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
1390 architecture by frame_info.
1391
1392 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1393 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1394 the current architecture by regcache.
1395
1396 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1397 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
1398 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
1399 current architecture by frame_info.
1400 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
1401 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
1402 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
1403 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
1404 get at the current architecture by regcache.
1405
1406 * mips-linux-nat.c (mips_linux_register_addr)
1407 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
1408 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
1409 (mips64_linux_regsets_fetch_registers)
1410 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
1411 the current architecture by regcache.
1412
1413 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
1414 get at the current architecture by frame_info.
1415
72a155b4
UW
14162007-10-10 Markus Deuling <deuling@de.ibm.com>
1417
1418 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
1419 current architecture by regcache.
1420 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
1421 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
1422 (mips_stub_frame_cache, mips_read_fp_register_single)
1423 (mips_read_fp_register_double, mips_print_fp_register)
1424 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
1425 at the current architecture by frame_info.
1426 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
1427 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
1428 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
1429 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1430 (mips_o32_push_dummy_call, mips_o32_return_value)
1431 (mips_o64_push_dummy_call, mips_o64_return_value)
1432 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
1433 gdbarch.
1434
6b50c0b0
UW
14352007-10-10 Markus Deuling <deuling@de.ibm.com>
1436
1437 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
1438 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
1439 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1440 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
1441 (xtensa_register_write_masked, xtensa_register_read_masked)
1442 (xtensa_supply_gregset, xtensa_store_return_value)
1443 (xtensa_extract_return_value): Use get_regcache_arch to get at the
1444 current architecture by regcache.
1445 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
1446 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
1447 architecture by frame_info.
1448
4be43953
DJ
14492007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
1450
1451 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
1452 (thumb_analyze_prologue): Move pv_area_store_would_trash call
1453 out of loop. Do not set cache->frameoffset.
1454 (arm_scan_prologue): Use prologue-value mechanism. Do not set
1455 frameoffset. Simplify framesize.
1456 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
1457 frameoffset.
1458 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
1459
b4b61fdb
DJ
14602007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
1461
1462 * target.c (update_current_target): Call setup_target_debug.
1463 (push_target): Do not call it here.
1464
8bb6c669
MS
14652007-10-09 Michael Snyder <msnyder@specifix.com>
1466
1467 * MAINTAINERS: Update my email address.
1468
304fe255
UW
14692007-10-09 Markus Deuling <deuling@de.ibm.com>
1470
1471 * xtensa-tdep.c: Replace following current-gdbarch based macros by
1472 their expression:
1473 (xtensa_pseudo_register_read)
1474 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
1475 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
1476 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
1477 (xtensa_pseudo_register_read)
1478 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
1479 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
1480 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
1481 (xtensa_frame_prev_register): NUM_AREGS.
1482 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
1483 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
1484 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
1485 (xtensa_supply_gregset, xtensa_frame_cache)
1486 (xtensa_frame_prev_register): WS_REGNUM.
1487 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
1488 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
1489 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
1490 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1491 (xtensa_register_reggroup_p): REGMAP.
1492 (call0_track_op): LITBASE_REGNUM.
1493 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
1494 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
1495 (xtensa_frame_prev_register, AREG_NUMBER)
1496 (xtensa_register_type): AR_BASE.
1497 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
1498 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
1499 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1500 (xtensa_frame_cache, xtensa_frame_prev_register)
1501 (xtensa_extract_return_value, xtensa_store_return_value)
1502 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
1503 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
1504 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
1505 (xtensa_frame_prev_register, xtensa_push_dummy_call)
1506 (call0_frame_cache): A1_REGNUM.
1507 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
1508 (xtensa_push_dummy_call): A4_REGNUM.
1509 (ARGS_FIRST_REG): A6_REGNUM.
1510 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1511 (xtensa_frame_prev_register): A15_REGNUM.
1512 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
1513 them in the appropriate source file:
1514 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
1515 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
1516 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
1517 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
1518 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
1519 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
1520 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
1521 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
1522 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
1523 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
1524 A13_REGNUM, A14_REGNUM, A15_REGNUM.
1525
ea78bae4
UW
15262007-10-09 Markus Deuling <deuling@de.ibm.com>
1527
1528 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
1529 the current architecture by frame_info.
1530 (h8300_frame_prev_register
1531 (h8300_print_register): Replace current_gdbarch by gdbarch.
1532 (h8300_print_registers_info, h8300_register_type)
1533 (h8300_register_type): Likewise.
1534
875f8d0e
UW
15352007-10-09 Markus Deuling <deuling@de.ibm.com>
1536
1537 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
1538 the current architecture by regcache.
1539 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
1540 (i386_linux_fetch_inferior_registers)
1541 (i386_linux_store_inferior_registers): Likewise.
1542 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1543 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
1544 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1545 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
1546 (i386_extract_return_value, i386_store_return_value): Likewise.
1547 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
1548 the current architecture by frame_info.
1549 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
1550 (i386_register_to_value, i386_value_to_register): Likewise.
1551
9b072297
UW
15522007-10-09 Markus Deuling <deuling@de.ibm.com>
1553
1554 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
1555 the current architecture by regcache.
1556 (monitor_store_register, monitor_store_registers): Likewise.
1557
e76e7474
UW
15582007-10-09 Markus Deuling <deuling@de.ibm.com>
1559
1560 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
1561 the current architecture by regcache.
1562
d4f91178
UW
15632007-10-09 Markus Deuling <deuling@de.ibm.com>
1564
1565 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
1566 gdbarch.
1567
b1bd0044
UW
15682007-10-09 Markus Deuling <deuling@de.ibm.com>
1569
1570 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
1571 architecture by frame.
1572 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
1573 (inside_main_func, frame_sp_unwind): Likewise.
1574
2ec9a4f8
DJ
15752007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
1576
1577 * solib-svr4.c (enable_break): Add the dynamic linker also if
1578 auxv succeeds.
1579
7068dd53
CES
15802007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1581
1582 * MAINTAINERS (Write After Approval): Add self.
1583
51e9e0d4
PA
15842007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
1585
1586 * stabsread.c (read_huge_number): Initialize local variable to 0.
1587
cd6c7346
PM
15882007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
1589
1590 * p-lang.h (pascal_main_name): Add declaration.
1591 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
1592 (GPC_MAIN_PROGRAM_NAME_2): New constants.
1593 (pascal_main_name): New function.
1594 * symtab.c: Include p-lang.h.
1595 (find_main_name): Add call to pascal_main_name.
1596 * Makefile.in (symtab.o): Add dependency on p-lang.h.
1597
a2699720
PA
15982007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
1599
1600 * stabsread.c (read_huge_number): Fix handling of octal
1601 representation when the bit width is known.
1602 (read_range_type): Record unsigned integral types with their size,
1603 when the type size is known.
1604
e05ebff4
TJB
16052007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1606
1607 * MAINTAINERS (Write After Approval): Add self.
1608
0c6773c1
PM
16092007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1610
1611 * breakpoint.c (print_one_breakpoint_location): ARI fix:
1612 Replace asprintf by xstrprintf.
1613
91c06669
PM
16142007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1615
1616 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
1617 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
1618
3c61c145
PM
16192007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1620
1621 * linux-fork.c: Move "gdb_wait.h" include back to the position of
1622 <sys/wait.h> include before last commit.
1623
313628cc
MR
16242007-10-08 Maciej W. Rozycki <macro@mips.com>
1625
1626 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
1627
c7f30c7a
UW
16282007-10-08 Markus Deuling <deuling@de.ibm.com>
1629
1630 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
1631 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
1632 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
1633 (store_regs_user_thread, store_regs_kernel_thread): Use
1634 get_regcache_arch or get_frame_arch to get at the current architecture
1635 by regcache or by frame, respectively.
1636
58643501
UW
16372007-10-08 Markus Deuling <deuling@de.ibm.com>
1638
1639 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
1640 (sh64_pseudo_register_read, sh64_pseudo_register_write)
1641 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
1642 (sh64_print_register, sh64_media_print_registers_info)
1643 (sh64_compact_print_registers_info, sh64_unwind_sp)
1644 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
1645 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
1646 (sh64_frame_prev_register): Use FRAME to recognize current
1647 architecture.
1648
b47193f7
UW
16492007-10-08 Markus Deuling <deuling@de.ibm.com>
1650
1651 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1652 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1653 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
1654 current_gdbarch by gdbarch.
1655 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
1656 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1657 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
1658 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
1659 recognize current architecture.
1660
4a22f64d
UW
16612007-10-08 Markus Deuling <deuling@de.ibm.com>
1662
1663 * remote.c (init_remote_state, fetch_register_using_p)
1664 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
1665 (store_register_using_P, store_registers_using_G)
1666 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
1667 get at the current architecture by regcache or by frame, respectively.
1668
c984b7ff
UW
16692007-10-08 Markus Deuling <deuling@de.ibm.com>
1670
1671 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
1672 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
1673 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
1674 get_regcache_arch or get_frame_arch to get at the current architecture
1675 by regcache or by frame, respectively.
1676 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1677 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
1678 (store_register, old_store_inferior_registers, supply_gregset)
1679 (supply_fpregset, fill_fpregset): Likewise.
1680 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
1681 Replace current_gdbarch by gdbarch.
1682
d611717a
UW
16832007-10-08 Markus Deuling <deuling@de.ibm.com>
1684
1685 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
1686 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
1687 get_frame_arch to get at the current architecture by regcache or by
1688 frame, respectively.
1689
088568da
UW
16902007-10-08 Markus Deuling <deuling@de.ibm.com>
1691
1692 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
1693 Replace current_gdbarch by gdbarch.
1694 * ia64-tdep.c (ia64_frame_prev_register
1695 (ia64_sigtramp_frame_prev_register)
1696 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
1697 get_frame_arch to get at the current architecture by regcache or by
1698 frame, respectively.
1699 * ia64-linux-nat.c (ia64_linux_fetch_register)
1700 (ia64_linux_fetch_registers, ia64_linux_store_register)
1701 (ia64_linux_store_registers): Likewise.
1702
464963c9
UW
17032007-10-08 Markus Deuling <deuling@de.ibm.com>
1704
1705 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
1706 current_gdbarch by gdbarch.
1707 * hppa-linux-nat.c (fetch_register, store_register)
1708 (hppa_linux_fetch_inferior_registers)
1709 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
1710 get_frame_arch to get at the current architecture by regcache or by
1711 frame, respectively.
1712 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
1713 (hppa_hpux_unwind_adjust_stub): Likewise.
1714 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
1715 (hppa_hpux_fetch_inferior_registers)
1716 (hppa_hpux_store_inferior_registers): Likewise.
1717
7fbe2eba
UW
17182007-10-08 Markus Deuling <deuling@de.ibm.com>
1719
1720 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1721 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
1722 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
1723 or get_frame_arch to get at the current architecture by regcache or by
1724 frame, respectively.
1725 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
1726 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
1727 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
1728 current_gdbarch by gdbarch.
1729
2af46ca0
UW
17302007-10-08 Markus Deuling <deuling@de.ibm.com>
1731
1732 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
1733 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
1734 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
1735 get at the current architecture by regcache or by·frame, respectively.
1736 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
1737 gdbarch.
1738
2ae02b47
UW
17392007-10-08 Markus Deuling <deuling@de.ibm.com>
1740
1741 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
1742 Use get_regcache_arch or get_frame_arch to get at the current
1743 architecture by regcache or by frame, respectively.
1744 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1745 * amd64-nat.c (amd64_supply_native_gregset)
1746 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
1747
ec7cc0e8
UW
17482007-10-08 Markus Deuling <deuling@de.ibm.com>
1749
1750 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
1751 gdbarch.
1752 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1753 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
1754 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
1755 get_frame_arch to get at the current architecture by regcache or by
1756 frame, respectively.
1757 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1758
ad010def
UW
17592007-10-08 Markus Deuling <deuling@de.ibm.com>
1760
1761 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
1762 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
1763 current_gdbarch by gdbarch.
1764 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
1765
214e098a
UW
17662007-10-08 Markus Deuling <deuling@de.ibm.com>
1767
1768 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
1769 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
1770 * regcache.c (regcache_raw_write): Use get_regcache_arch or
1771 get_frame_arch to get at the current architecture by regcache or by
1772 frame, respectively.
1773
e9e45075
UW
17742007-10-08 Markus Deuling <deuling@de.ibm.com>
1775
1776 * findvar.c (value_of_register, locate_var_value): Use
1777 get_regcache_arch or get_frame_arch to get at the current architecture
1778 by regcache or by frame, respectively.
1779 * findvar.c (default_value_from_register, value_from_register): Replace
1780 current_gdbarch by gdbarch.
1781
136855cd
PM
17822007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1783
1784 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
1785
cdf43007
PM
17862007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
1787
1788 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
1789 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
1790
9ef895d6
DJ
17912007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
1792
1793 * remote.c (get_offsets): Only call free_symfile_segment_data if
1794 data was allocated.
1795
cada2e7b
PM
17962007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
1797
1798 * objc-exp.y: ARI fix: remove 4 PARAMS.
1799
8d5f9c6f
DJ
18002007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
1801
1802 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
1803 news. Mention XML support for M68K in GDB 6.7.
1804
1969d2ed
DJ
18052007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
1806
1807 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
1808 bounds.
1809 (init_vector_type): Use builtin_type_int32.
1810
e31dcd20
UW
18112007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
1812
1813 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
1814 size to enable bi-arch generate-core-file support.
1815
b94c4f7d
UW
18162007-10-02 Markus Deuling <deuling@de.ibm.com>
1817
1818 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
1819
9612b5ec
UW
18202007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1821
1822 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
1823 signal handler.
1824 * tui/tui-win.c (tui_initialize_win): New function for
1825 initializing tui's SIGWINCH signal handler.
1826 * tui/tui-win.h (tui_initialize_win): Declare.
1827
407f1a2e
UW
18282007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
1829
1830 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
1831 pointer to uintptr_t before casting to CORE_ADDR.
1832
02d3ff8c
UW
18332007-10-02 Markus Deuling <deuling@de.ibm.com>
1834
1835 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
1836
4577549b
DJ
18372007-10-02 Mark Mitchell <mark@codesourcery.com>
1838
1839 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
1840 * ser-mingw.c (enum select_thread_state): New type.
1841 (struct ser_console_state): Add have_started and thread_state.
1842 (select_thread_wait): New function.
1843 (thread_fn_type): New type.
1844 (create_select_thread): New function.
1845 (destroy_select_thread): Likewise.
1846 (start_select_thread): Likewise.
1847 (stop_select_thread): Likewise.
1848 (console_select_thread): Use new functions.
1849 (pipe_select_thread): Likewise.
1850 (file_select_thread): Likewise.
1851 (ser_console_wait_handle): Likewise.
1852 (ser_console_done_wait_handle): Likewise.
1853 (ser_console_close): Likewise.
1854 (free_pipe_state): Likewise.
1855 (pipe_wait_handle): Likewise.
1856 (pipe_done_wait_handle): Likewise.
1857 (struct net_windows_state): Derive from ser_console_state.
1858 (net_windows_select_thread): Use new functions.
1859 (net_windows_wait_handle): Likewise.
1860 (net_windows_done_wait_handle): Likewise.
1861 (net_windows_close): Likewise.
1862
b0b951d9
DJ
18632007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1864
1865 * inflow.c (terminal_ours_1): Remove useless line.
1866
82e91389
DJ
18672007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1868
1869 * mips-tdep.c (mips_read_fp_register_double): Correct check for
1870 odd FP registers.
1871 (mips_print_fp_register): Correct check for even FP registers.
1872 (mips_virtual_frame_pointer): New function.
1873 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
1874
c4a3d09a
MF
18752007-09-30 Mike Frysinger <vapier@gentoo.org>
1876
1877 * value.h (lookup_only_internalvar): New prototype.
1878 (create_internalvar): Likewise.
1879 * value.c (lookup_only_internalvar): New function.
1880 (create_internalvar): Likewise.
1881 (lookup_internalvar): Use new lookup_only_internalvar and
1882 create_internalvar functions.
1883 * parse.c (write_dollar_variable): Look up $ symbols in internal
1884 table first rather than last.
1885
9f0bdab8
DJ
18862007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1887
1888 * linux-nat.c (linux_nat_new_thread): New variable.
1889 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
1890 linux_nat_switch_fork.
1891 (lwp_list): Make public.
1892 (add_lwp): Call linux_nat_new_thread.
1893 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
1894 the new thread.
1895 (resume_callback): Clear lp->siginfo. Remove unused variable.
1896 (linux_nat_resume): Assert that the LWP list is already initialized.
1897 Clear lp->siginfo.
1898 (save_siginfo): New.
1899 (stop_wait_callback, linux_nat_wait): Call it.
1900 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
1901 * linux-nat.h (struct lwp_info): Add siginfo.
1902 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
1903 (ALL_LWPS): Define.
1904
1905 * amd64-linux-nat.c (amd64_linux_dr): New.
1906 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
1907 (amd64_linux_dr_set): Take a PTID argument.
1908 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
1909 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
1910 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
1911 (amd64_linux_new_thread): New.
1912 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
1913 * i386-linux-nat.c (i386_linux_dr): New.
1914 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
1915 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
1916 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
1917 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
1918 (i386_linux_new_thread): New.
1919 (i386_linux_resume): Remove unnecessary PID check.
1920 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
1921 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
1922 (fetch_debug_register, fetch_debug_register_pair): Delete.
1923 (debug_registers): New.
1924 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
1925 ALL_LWPS and debug_registers.
1926 (ia64_linux_new_thread): New.
1927 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
1928 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
1929 * ppc-linux-nat.c (last_stopped_data_address): Delete.
1930 (saved_dabr_value): New.
1931 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
1932 ALL_LWPS.
1933 (ppc_linux_new_thread): New.
1934 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
1935 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
1936 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
1937 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
1938 after reading it.
1939 (s390_fix_watch_points): Take a PTID argument.
1940 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
1941 (_initialize_s390_nat): Call linux_nat_set_new_thread.
1942
d983da9c
DJ
19432007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1944 Jeff Johnston <jjohnstn@redhat.com>
1945
1946 * breakpoint.c (watchpoints_triggered): New.
1947 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
1948 Check watchpoint_triggered instead. Combine handling for software
1949 and hardware watchpoints. Do not use target_stopped_data_address
1950 here. Always check a watchpoint if its scope breakpoint triggers.
1951 Do not stop for thread or overlay events. Improve check for
1952 triggered watchpoints without a value change.
1953 (watch_command_1): Insert the scope breakpoint first. Link the
1954 scope breakpoint to the watchpoint.
1955 * breakpoint.h (enum watchpoint_triggered): New.
1956 (struct breakpoint): Add watchpoint_triggered.
1957 (bpstat_stop_status): Update prototype.
1958 (watchpoints_triggered): Declare.
1959 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
1960 (stepped_after_stopped_by_watchpoint): Delete.
1961 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
1962 local. Handle infwait_step_watch_state. Update calls to
1963 bpstat_stop_status. Use watchpoints_triggered to check
1964 watchpoints.
1965 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
1966 (remote_stopped_data_address): Do not check it.
1967
7921a279
DJ
19682007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
1969
1970 * configure.ac: Add $LIBINTL when testing libbfd.
1971 * configure: Regenerated.
1972
fe6fbf8b
VP
19732007-09-28 Vladimir Prus <vladimir@codesourcery.com>
1974
1975 * NEW: Mention pending breakpoint changes and
1976 support for breakpoints at multiple locations.
1977
daddc3c1
DJ
19782007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
1979
1980 * arm-linux-tdep.c (arm_linux_software_single_step): New.
1981 (arm_linux_init_abi): Use it.
1982 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
1983 condition correctly.
1984 * arm-tdep.h (arm_get_next_pc): Declare.
1985 * Makefile.in (arm-linux-tdep.o): Update.
1986
7a4d50bf
VP
19872007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1988
1989 * varobj.c (install_new_value): Don't
1990 call value_get_print_value when a value is
1991 lazy. Update the print_value member in a
1992 single place.
1993
d32a6982
VP
19942007-09-26 Vladimir Prus <vladimir@codesourcery.com>
1995
1996 * breakpoint.c (create_breakpoint): Set
1997 condition on each location, not on the first
1998 location of breakpoint.
1999
489eaeba
JB
20002007-09-26 Jim Blandy <jimb@codesourcery.com>
2001
2002 * remote.c (getpkt_sane): Fix error message. No animals were
2003 harmed in the making of this debugger.
2004
3e9313ab
PM
20052007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2006
2007 * p-typeprint.c: Fix 11 ARI reported problems.
2008 (pascal_print_type): Fix 4 operator at end of line.
2009 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2010 using strncmp function.
2011 (pascal_type_print_base): Fix 2 operator at end of line.
2012 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2013 using strncmp function.
2014
2015
5b8101ae
PM
20162007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2017
2018 * Fix PR pascal/2231
2019 dwarf2read.c (read_subroutine_type):
2020 All pascal functions are prototyped.
2021
c45f11da
PM
20222007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2023
2024 * Fix PR pascal/2283
2025 p-valprint.c (pascal_val_print): correct current language check.
2026 Also print array of char as strings.
2027
2028
59aa1faa
MR
20292007-09-26 David Ung <davidu@mips.com>
2030 Maciej W. Rozycki <macro@mips.com>
2031
2032 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2033
0b058123
PM
20342007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2035
2036 * p-exp.y: Fix 12 ARI reported problems.
2037 (name_not_typename): Fix 2 operator at end of line issues.
2038 (yylex): Fix 3 operator at end of line issues.
2039 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2040
b18bb924
MR
20412007-09-25 David Ung <davidu@mips.com>
2042 Maciej W. Rozycki <macro@mips.com>
2043
2044 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2045 rules return composite types in registers as appropriate.
2046
28c32713
JB
20472007-09-24 Jim Blandy <jimb@codesourcery.com>
2048
2049 * symfile.h (struct symfile_segment_data): Doc fixes.
2050 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2051 Assert that we were passed some loaded segment addresses,
2052 and that sections' segment numbers are valid.
2053 Simplify offset calculation.
2054 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2055 strategy, and set num_segments correctly. Delete redundant
2056 assignments to do_sections.
2057
32276632
DJ
20582007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2059
2060 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2061
ed0616c6
VP
20622007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2063
2064 * breakpoint.c (remove_sal): New.
2065 (expand_line_sal_maybe): New.
2066 (create_breakpoints): Call expand_line_sal_maybe.
2067 (clear_command): Add comment.
2068 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2069 * linespec.c (decode_indirect): Set explicit_pc to 1.
2070 (decode_all_digits): Set explicit_line to 1.
2071 (append_expanded_sal): New.
2072 (expand_line_sal): New.
2073 * linespec.h (expand_line_sal): Declare.
2074 * symtab.c (init_sal): Initialize explicit_pc
2075 and explicit_line.
2076 * symtab.h (struct symtab_and_line): New fields
2077 explicit_pc and explicit_line.
2078
41f1b697
DJ
20792007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2080
2081 * infcall.c (call_function_by_hand): Handle language-specific
2082 pass and return by reference.
2083
2084 * cp-abi.c (cp_pass_by_reference): New.
2085 * cp-abi.h (cp_pass_by_reference): Declare.
2086 (struct cp_abi_ops): Add pass_by_reference.
2087 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2088 (init_gnuv3_ops): Set pass_by_reference.
2089
2090 * language.c (language_pass_by_reference): New.
2091 (default_pass_by_reference): New.
2092 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2093 default_pass_by_reference.
2094 * langauge.h (struct language_defn): Add la_pass_by_reference.
2095 (language_pass_by_reference, default_pass_by_reference): Declare.
2096 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2097 * c-lang.c (c_language_defn, asm_language_defn)
2098 (minimal_language_defn): Likewise.
2099 (cplus_language_defn): Add cp_pass_by_reference.
2100 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2101 * jv-lang.c (java_language_defn): Likewise.
2102 * m2-lang.c (m2_language_defn): Likewise.
2103 * objc-lang.c (objc_language_defn): Likewise.
2104 * p-lang.c (pascal_language_defn): Likewise.
2105 * scm-lang.c (scm_language_defn): Likewise
2106
0d381245
VP
21072007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2108
2109 Allow a code breakpoint to have several locations
2110 associated with it.
2111 * breakpoint.h (enum enable_state): Remove the
2112 bp_shlib_disabled enumerator.
2113 (struct bp_location): New members shlib_disabled,
2114 global_next, enabled and function_name.
2115 Rename pending to condition_not_parsed.
2116
2117 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2118 (ALL_BP_LOCATIONS_SAFE): Likewise.
2119 (breakpoint_enabled): Don't check for pending.
2120 (condition_command): Free and update all locations of
2121 a breakpoint.
2122 (insert_bp_location): Adjust.
2123 (software_breakpoint_inserted_here_p): Don't care
2124 if breakpoint is enabled, as soon as it's inserted.
2125 (print_it_typical): Print bpstat's location, not
2126 bpstat's breakpoint's location.
2127 (bpstat_stop_status): Iterate over all locations, not
2128 all breakpoints.
2129 (print_breakpoint_location): New.
2130 (print_one_breakpoint): Renamed to
2131 (print_one_breakpoint_location): ...this. Take
2132 parameters to describe which location is being
2133 printed. Modify code to properly print header
2134 for several locations and individual locations.
2135 (print_one_breakpoint): Print all locations.
2136 (breakpoint_has_pc): New.
2137 (describe_other_breakpoints): Use the above.
2138 (check_duplicates): Renamed to...
2139 (check_duplicates_for): .. this.
2140 (check_duplicates): Use check_duplicates_for.
2141 (allocate_bp_location): Adjust.
2142 (set_raw_breakpoint_without_location): New,
2143 extracted from set_raw_breakpoint.
2144 (set_breakpoint_location_function): New.
2145 (set_raw_breakpoint): Use
2146 set_raw_breakpoint_without_location.
2147 (make_breakpoint_permanent): Mark all locations
2148 as inserted.
2149 (disable_breakpoints_in_shlibs): Iterate over
2150 locations.
2151 (disable_breakpoints_in_unloaded_shlib): Likewise.
2152 (re_enable_breakpoints_in_shlibs): Likewise.
2153 (mention): Say "pending" when breakpoint has
2154 zero locations. If breakpoint has more than one
2155 location, say so.
2156 (add_location_to_breakpoint): New.
2157 (create_breakpoint): Accept symtabs_and_lines, not
2158 symtab_and_line. Pass extra sals to
2159 add_location_to_breakpoint.
2160 (create_breakpoints): Pass symtabs_and_lines to
2161 create_breakpoints.
2162 (break_command_1): Make pending breakpoints
2163 have zero locations.
2164 (do_captured_breakpoint): Remove wrong allocation.
2165 (clear_command): Iterate over all locations.
2166 (unlink_locations_from_global_list): Renamed
2167 from unlink_location_from_global_list. Remove
2168 all locations.
2169 (delete_breakpoint): Remove all locations.
2170 Iterate over all locations when deciding which
2171 other location to re-enable.
2172 (all_locations_are_pending): New.
2173 (update_breakpoint_locations): Renamed from
2174 update_breakpoint_location. Try to match old
2175 and new locations using names of containing
2176 functions.
2177 (breakpoint_re_set_one): Adjust.
2178 (find_location_by_number): New.
2179 (disable_command): Allow disabling individual location.
2180 (enable_command): Allow enabling individual location.
2181 * breakpoint.c: Adjust all uses of breakpoint's
2182 enable state to for bp_shlib_disabled change.
2183
fe3f5fa8
VP
21842007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2185
2186 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2187 (resolve_pending_breakpoint): Remove.
2188 (re_enable_breakpoints_in_shlibs): Remove.
2189 (unlink_locations_from_global_list): New.
2190 (update_breakpoint_locations): New.
2191 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2192 Use parse_condition and update_breakpoint_location to
2193 reset breakpoint. Ignore 'symbol not found' error from
2194 decode_line_1.
2195 (breakpoint_re_set): Don't emit newline before the
2196 reason why breakpoint is not reset.
2197 (do_enable_breakpoint): Don't specially process pending
2198 breakpoints.
2199 (free_bp_location): New.
2200 (break_command_1): For pending breakpoints, initialize
2201 all fields of a sal with zeroes.
2202 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2203 * infcmd.c (post_create_inferior): Don't call
2204 re_enable_breakpoints_in_shlibs.
2205 * infrun.c (handle_inferior_event): Likewise.
2206 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2207 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2208 * win32-nat.c (get_win32_debug_event): Likewise.
2209
511a6cd4
VP
22102007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2211
018d34a4
VP
2212 * breakpoint.c (create_breakpoint): Split from
2213 create_breakpoints, implementing most of its logic.
2214 Take just a single sal, single address string and
2215 single condition. Do not take parsed condition at
2216 all.
2217 (create_breakpoints): Just call create_breakpoint
2218 for each sal.
2219 (find_condition_and_thread): New.
2220 (break_command_1): Use find_condition_and_thread.
2221 Do not keep parsed conditions.
2222 (do_captured_breakpoint): Don't convert
2223 condition string to struct expression.
2224
22252007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2226
511a6cd4
VP
2227 * breakpoint.h (struct breakpoint): Move the cond
2228 field to...
2229 (struct bp_location): Here.
2230 * breakpoint.c (condition_command, bpstat_stop_status)
2231 (print_one_breakpoint, allocate_bp_location)
2232 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
2233 (create_exec_event_catchpoint, create_breakpoints)
2234 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
2235 (create_ada_exception_breakpoint, set_breakpoint_sal)
2236 (delete_breakpoint, breakpoint_re_set_one): Adjust.
2237 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2238
4f8d1dc6
VP
22392007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2240
2241 Associate bp_stat with bp_location, not breakpoint.
2242 * breakpoint.h (breakpoint_at): Change type
2243 to bp_location*.
2244 * breakpoint.c (bpstat_alloc): Take bp_location,
2245 not breakpoint.
2246 (bpstat_find_breakpoint): Look at bpstat's location's
2247 owner, not at bpstat->breakpoint_at.
2248 (bpstat_find_step_resume_breakpoint): Likewise.
2249 (bpstat_num): Likewise.
2250 (print_it_typical): Likewise.
2251 (print_bp_stop_message): Likewise.
2252 (watchpoint_check): Likewise.
2253 (bpstat_what): Likewise.
2254 (bpstat_get_triggered_catchpoints): Likewise.
2255 (breakpoint_auto_delete): Likewise.
2256 (delete_breakpoint): Likewise.
2257 (bpstat_stop_status): Pass location, not breakpoint,
2258 to bpstat_alloc. Look at bpstat's location's
2259 owner, not at bpstat->breakpoint_at.
2260
32623386
JB
22612007-09-21 Jim Blandy <jimb@codesourcery.com>
2262
2263 * macrotab.h (new_macro_table): Document that removing information
2264 from an obstack/bcache-managed macro table leaks memory.
2265 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
2266 that data is never freed in obstack/bcache-managed macro tables,
2267 just leak the storage.
2268 (macro_undef): If we're undefining a macro at exactly the same
2269 source location that we defined it, simply remove the definition
2270 altogether.
2271
c295b2e5
JB
22722007-09-21 Joel Brobecker <brobecker@adacore.com>
2273
2274 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
2275 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
2276 Adjust the struct sym_fns object accordingly by setting
2277 the new field to NULL.
2278 * xcoffread.c (aix_process_linenos): Make static.
2279 (xcoff_sym_fns): Set new field to aix_process_linenos.
2280 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
2281 by call to new the new sym_fns sym_read_linetable function.
2282 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
2283 * config/rs6000/tm-rs6000.h: Delete.
2284
ab2e1992
MR
22852007-09-21 David Ung <davidu@mips.com>
2286 Maciej W. Rozycki <macro@mips.com>
2287
2288 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
2289 rules do not treat composite types specially.
2290
97ab0fdd
MR
22912007-09-20 Maciej W. Rozycki <macro@mips.com>
2292
2293 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
2294 (mips16_in_function_epilogue_p): Likewise.
2295 (mips_in_function_epilogue_p): Likewise.
2296 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
2297
01fe12f6
JB
22982007-09-19 Joel Brobecker <brobecker@adacore.com>
2299
2300 * configure.ac: Add check for "etext".
2301 * configure, config.in: Regenerate.
2302 * maint.c (TEXTEND): Only define if either _etext or etext
2303 are available.
2304 Disable the profiling functionality if TEXTEND is not defined.
2305
aa6c981f
DJ
23062007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
2307
2308 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
2309 address register. Correct the call to frame_id_build.
2310 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
2311 is invalid.
2312
39312971
JB
23132007-09-18 Joel Brobecker <brobecker@adacore.com>
2314
2315 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
2316 the linetable past the function end.
2317
558dc30a
JW
23182007-09-18 James E. Wilson <wilson@specifix.com>
2319
2320 * MAINTAINERS: Update my email address.
2321
60e2c248
JG
23222007-09-18 Jerome Guitton <guitton@adacore.com>
2323
2324 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
2325 (inf_ttrace_delete_dying_threads_callback): New function.
2326 (inf_ttrace_resume): After resuming the execution, iterate over
2327 the dying threads to delete them for the thread list.
2328 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
2329 mark the corresponding thread as dying instead of removing it
2330 from the thread list.
2331 (inf_ttrace_thread_alive): return 0 for dying threads.
2332
f4c1edd8
JB
23332007-09-17 Joel Brobecker <brobecker@adacore.com>
2334
2335 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
2336 that return_frame is not null.
2337
8d4e36ba
JB
23382007-09-17 Joel Brobecker <brobecker@adacore.com>
2339
2340 * solib-svr4.c: Add include of "auxv.h".
2341 (enable_break): Use the AT_BASE auxiliary entry if available.
2342 * Makefile.in (solib-svr4.o): Update dependencies.
2343
f9ed52be
JB
23442007-09-17 Joel Brobecker <brobecker@adacore.com>
2345
2346 * NEWS: Create a new section for the next release branch.
2347 Rename the section of the current branch, now that it has
2348 been cut.
2349
eff4f95e
JG
23502007-09-17 Jerome Guitton <guitton@adacore.com>
2351
2352 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
2353 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
2354
084344da
VP
23552007-09-16 Vladimir Prus <vladimir@codesourcery.com>
2356
2357 * mi/mi-cmds.c (mi_cmds): Register -list-features.
2358 * mi/mi-cmds.h (mi_cmd_list_features): New.
2359 * mi/mi-main.c (mi_cmd_list_features): New.
2360
50c7215d 23612007-09-11 Joel Brobecker <brobecker@adacore.com>
2362
2363 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
2364 * version.in: Bump version to 6.7.50-20070911-cvs.
2365
4d8453a5
DJ
23662007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2367
2368 * thread.c (free_thread): Do not delete the step resume breakpoint
2369 right away.
2370
4eb0ad19
DJ
23712007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2372
2373 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
2374 * corelow.c (core_read_description): New.
2375 (init_core_ops): Set to_read_description.
2376 * gdbarch.sh: Add gdbarch_core_read_description.
2377 * mips-linux-tdep.c (mips_linux_core_read_description): New.
2378 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
2379 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
2380 (mips_register_g_packet_guesses): Use them.
2381 (_initialize_mips_tdep): Initialize them.
2382 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
2383 * gdbarch.h, gdbarch.c: Regenerated.
2384
6a6b96b9
UW
23852007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2386
2387 * infrun.c (stepping_past_breakpoint): New global variable.
2388 (stepping_past_breakpoint_ptid): Likewise.
2389 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
2390 Only switch threads if we need to single-step over a breakpoint hit
2391 in the previously selected thread. If stepping, remember previous
2392 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
2393 switch_to_thread instead of copying its contents.
2394 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
2395 prepare_to_proceed returns true.
2396 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
2397 (context_switch): Call switch_to_thread.
2398 (handle_inferior_event): Switch back to previous thread if requested
2399 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
2400 * gdbthread.h (switch_to_thread): Add prototype.
2401 * thread.c (switch_to_thread): Make global.
2402
0b058123 24032007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
b20a3440
PM
2404
2405 * p-valprint.c: Fix 7 ARI reported problems.
2406 (pascal_val_print): Fix one operator at end of line issue.
2407 Use paddress function to remove use of
2408 deprecated_print_address_numeric function (2 times).
2409 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
2410 (pascal_value_print): Fix 3 operator at end of line issues.
2411
faa95490
DJ
24122007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
2413
2414 PR gdb/2103
2415 * arm-tdep.c (arm_in_call_stub): Delete.
2416 (arm_skip_stub): Handle from_arm and from_thumb stubs.
2417
f0027ce2
DJ
24182007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
2419
2420 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
2421 types.
2422
ea37ba09
DJ
24232007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2424 Jim Blandy <jimb@codesourcery.com>
2425
2426 * NEWS: Update description of string changes. Mention print/s.
2427 * c-valprint.c (textual_element_type): New.
2428 (c_val_print): Use it. Do not skip address printing for pointers
2429 with a string format.
2430 (c_value_print): Doc update.
2431 * dwarf2read.c (read_array_type): Use make_vector_type.
2432 * gdbtypes.c (make_vector_type): New.
2433 (init_vector_type): Use it.
2434 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
2435 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
2436 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
2437 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
2438 (make_vector_type): New.
2439 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
2440 Call the language print routine for string format.
2441 (print_scalar_formatted): Call val_print for string format. Handle
2442 unsigned original types for char format.
2443 (validate_format): Do not reject string format.
2444 * stabsread.c (read_type): Use make_vector_type.
2445 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
2446
8fb822e0
MS
24472007-09-04 Michael Snyder <msnyder@access-company.com>
2448
fcd776e5
MS
2449 * expprint.c (print_subexp_standard): Check strchr for null.
2450 * Makefile.in (expprint.o): Depend on gdb_assert.h.
2451
7d63ec12
MS
2452 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
2453
8fb822e0
MS
2454 * stabsread.c (patch_block_status): Guard against null.
2455 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
2456
2025a643
DJ
24572007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2458
2459 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
2460 in internal error message.
2461
de1b3c3d
PA
24622007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
2463 Daniel Jacobowitz <dan@codesourcery.com>
2464
2465 * infcmd.c (post_create_inferior): Update comment.
2466 (run_command_1): Always call post_create_inferior with 0 as
2467 from_tty.
2468
2469 * i386-cygwin-tdep.h: New.
2470 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
2471 (win32_xfer_shared_library): Make it extern.
2472
2473 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
2474 i386-cygwin-tdep.h.
2475 (win32_so_ops): Delete.
2476 (get_relocated_section_addrs): Delete.
2477 (solib_symbols_add): Delete.
2478 (register_loaded_dll): Delete.
2479 (win32_make_so): New.
2480 (handle_load_dll): Use win32_make_so.
2481 (win32_free_so): Free the passed in so.
2482 (win32_relocate_section_addresses): Delete.
2483 (win32_solib_create_inferior_hook): Delete.
2484 (handle_unload_dll): Don't add PE offset here. Free so with
2485 win32_free_so instead of free_so.
2486 (win32_special_symbol_handling): Delete.
2487 (get_win32_debug_event): Remove unneeded calls. Set state to
2488 TARGET_WAITKIND_LOADED on a dll unload.
2489 (do_initial_win32_stuff): Clear cygwin_load_start and
2490 cygwin_load_end.
2491 (map_code_section_args): Delete.
2492 (dll_code_sections_add): Delete.
2493 (core_section_load_dll_symbols): Delete.
2494 (win32_xfer_shared_libraries): New.
2495 (win32_current_sos): Delete.
2496 (win32_xfer_partial): New.
2497 (open_symbol_file_object): Delete.
2498 (in_dynsym_resolve_code): Delete.
2499 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
2500 of win32_ops. Remove win32_so_ops settings. Don't set
2501 current_target_so_ops here.
2502
2503 * Makefile.in (i386_cygwin_tdep_h): New variable.
2504 (i386-cygwin-tdep.o): Update dependencies.
2505 (win32-nat.o): Update dependencies.
2506
de584861
PA
25072007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
2508 Daniel Jacobowitz <dan@codesourcery.com>
2509
2510 * gdbarch.sh (core_xfer_shared_libraries): New.
2511
2512 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
2513
2514 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
2515
2516 * xml-support.c (gdb_xml_parse): Debug output tweaks.
2517 (xml_escape_text): New.
2518 * xml-support.h (xml_escape_text): Declare.
2519
2520 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
2521 * config/i386/cygwin.mt (TDEPFILES): ... here.
2522
2523 * win32-nat.c: (fetch_elf_core_registers): Delete.
2524 (win32_elf_core_fn): Delete.
2525 (_initialize_core_win32): Delete.
2526
2527 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
2528 "xml-support.h" and "gdbcore.h".
2529 (i386_win32_gregset_reg_offset): New.
2530 (I386_WIN32_SIZEOF_GREGSET): New.
2531 (i386_win32_regset_from_core_section): New.
2532 (win32_xfer_shared_library): New.
2533 (struct cpms_data): New.
2534 (core_process_module_section): New.
2535 (win32_core_xfer_shared_libraries): New.
2536 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
2537 gregset_num_regs, sizeof_gregset members of tdep. Register
2538 regset_from_core_section and core_xfer_shared_libraries callbacks.
2539
2540 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
2541 * gdbarch.h, gdbarch.c: Regenerate.
2542
7160c4c3
PA
25432007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
2544
2545 * corelow.c (core_xfer_partial): Pass writebuf to
2546 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
2547
6dc13412
PA
25482007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
2549
2550 * arm-tdep.h (arm_skip_stub): Declare.
2551 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
2552 "gdbcore.h".
2553 (arm_pe_skip_trampoline_code): New function.
2554 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
2555 gdbarch_skip_trampoline_code callback.
2556 * Makefile.in (arm-wince-tdep.o): Update dependencies.
2557
ca8385e5
DJ
25582007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
2559
2560 * MAINTAINERS: Move Fred Fish to Past Maintainers.
2561
5c39566f
DJ
25622007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
2563
2564 * configure.ac: Add --with-expat.
2565 * configure: Regenerated.
2566
6a30b0a5
AS
25672007-09-03 Andreas Schwab <schwab@suse.de>
2568
2569 * configure.ac: Accept --with-system-readline.
2570 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
2571 * configure: Regenerate.
2572 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
2573 substituted values.
2574 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
2575
edff0c0a
DJ
25762007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
2577 Daniel Jacobowitz <dan@codesourcery.com>
2578
2579 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
2580
0b93d57c
JK
25812007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
2584
b8533aec
DJ
25852007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2586
2587 * top.c (print_gdb_version): Update for GPL version 3.
2588
f5db8714
JK
25892007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 * NEWS: Mention the build-id .debug files verification.
2592
d99148ef
JK
25932007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
2596
77069918
JK
25972007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2598
2599 * Makefile.in (symfile.o): Update dependencies.
2600 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
2601 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
2602 (struct build_id): New structure.
2603 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
2604 (find_separate_debug_file): New variable BUILD_ID.
2605 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
2606
202ddcaa
VP
26072007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2608
2609 * varobj.c (struct varobj): Fix comment
2610 for the type member not to lie when it can be
2611 NULL.
2612
02142340
VP
26132007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2614
2615 Implement -var-info-path-expression.
2616
2617 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
2618 Declare.
2619 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
2620 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
2621 * varobj.c (struct varobj): New field 'path_expr'.
2622 (c_path_expr_of_child, cplus_path_expr_of_child)
2623 (java_path_expr_of_child): New.
2624 (struct language_specific): New field path_expr_of_child.
2625 (varobj_create): Initialize the path_expr field.
2626 (varobj_get_path_expr): New.
2627 (new_variable): Initialize the path_expr field.
2628 (free_variable): Free the path_expr field.
2629 (adjust_value_for_children_access): New parameter
2630 WAS_TYPE.
2631 (c_number_of_children): Adjust.
2632 (c_describe_child): New parameter CFULL_EXPRESSION.
2633 Compute full expression.
2634 (c_value_of_child, c_type_of_child): Adjust.
2635 (cplus_number_of_children): Adjust.
2636 (cplus_describe_child): New parameter CFULL_EXPRESSION.
2637 Compute full expression.
2638 (cplus_name_of_child, cplus_value_of_child)
2639 (cplus_type_of_child): Adjust.
2640 * varobj.h (varobj_get_path_expr): Declare.
2641
bccc275a
VP
26422007-08-31 Vladimir Prus <vladimir@codesourcery.com>
2643
2644 * mi/mi-cmd-var.c (print_varobj): If a varobj
2645 type is NULL, don't try to print it.
2646
f2db237a
AM
26472007-08-30 Alan Modra <amodra@bigpond.net.au>
2648
2649 * ppc-linux-nat.c (right_fill_reg): Delete.
2650 (supply_gregset): Use ppc_supply_gregset.
2651 (supply_fpregset): Use ppc_supply_fpregset.
2652 (fill_gregset): Use ppc_collect_gregset.
2653 (fill_fpregset): Use ppc_collect_fpregset.
2654 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
2655 (right_supply_register, ppc_linux_supply_gregset): Delete.
2656 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
2657 (ppc_linux_supply_fpregset): Delete.
2658 (ppc_linux_collect_gregset): New function.
2659 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
2660 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
2661 ppc_linux_supply_gregset, and ppc_collect_gregset.
2662 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
2663 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
2664 (ppc_linux_regset_from_core_section): Update.
2665 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
2666 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
2667 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
2668 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
2669 (ppcobsd_collect_gregset): Likewise.
2670 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
2671 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
2672 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
2673 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
2674 (rs6000_aix64_reg_offsets): Likewise.
2675 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
2676 ppc_floating_point_unit_p.
2677 (rs6000_aix_collect_regset): Similarly.
2678 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
2679 when regsize is larger than regcache register size.
2680 (ppc_collect_reg): Similarly zero pad when regsize is larger than
2681 regcache register size.
2682 (ppc_greg_offset): New function, split out from..
2683 (ppc_supply_gregset): ..here. Separate code handling all regs from
2684 single reg case. Correct xer offset.
2685 (ppc_fpreg_offset): New function, split out from..
2686 (ppc_supply_fpregset): ..here. Separate code handling all regs from
2687 single reg case.
2688 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
2689 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
2690 a fp unit, instead return if no fp.
2691
fe5aea2e
JB
26922007-08-29 Jim Blandy <jimb@codesourcery.com>
2693
2694 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
2695 this code has not been compiled for two years.
2696
13ce7133
MS
26972007-08-29 Michael Snyder <msnyder@access-company.com>
2698
2699 * event-top.c (gdb_readline2): Return after EOF.
2700
fd4a0f2f
JB
27012007-08-29 Joel Brobecker <brobecker@adacore.com>
2702
2703 * symtab.c: Remove a function that has been commented out 3 years ago.
2704
d037d088
CD
27052007-08-29 Randolph Chung <tausq@debian.org>
2706
2707 * hppa-tdep.c (hppa32_cannot_fetch_register)
2708 (hppa64_cannot_fetch_register): New functions.
2709 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
2710 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
2711
19d378fc
MS
27122007-08-28 Michael Snyder <msnyder@access-company.com>
2713
57cdecd2
MS
2714 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
2715 check for null before calling check_typedef.
2716
19d378fc
MS
2717 * NEWS: Mention Coverity bug fixes.
2718
36acd84e
UW
27192007-08-27 Markus Deuling <deuling@de.ibm.com>
2720
2721 * spu-tdep.c (spu_pointer_to_address): New function.
2722 (spu_integer_to_address): Likewise.
2723 (spu_gdbarch_init): Add spu_pointer_to_address and
2724 spu_integer_to_address to gdbarch.
2725
8ad7c2b9
PA
27262007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
2727
2728 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
2729
4de6a07e
JB
27302007-08-23 Joel Brobecker <brobecker@adacore.com>
2731
2732 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
2733 that contains the GDB license.
2734 * copying.awk: Adjust to the GPLv3 wording.
2735 * copying.c: Regenerate.
2736
07aed0eb
JB
27372007-08-23 Joel Brobecker <brobecker@adacore.com>
2738
01d4100f 2739 * copying.awk: Protoization, and i18n markup.
07aed0eb 2740
50efebf8
JB
27412007-08-23 Joel Brobecker <brobecker@adacore.com>
2742
2743 * config/djgpp/djconfig.sh: Switch license to GPLv3.
2744 * copyright.sh: Likewise.
2745 * gdb-events.sh: Likewise.
2746 * gdb_gcore.sh: Likewise.
2747 * gdb_mbuild.sh: Likewise.
2748 * gdbarch.sh: Likewise.
2749 * observer.sh: Likewise.
2750 * features/feature_to_c.sh: Likewise.
2751 * regformats/regdat.sh: Likewise.
2752
27532007-08-23 Joel Brobecker <brobecker@adacore.com>
a9762ec7
JB
2754
2755 Switch the license of all .c files to GPLv3.
2756 Switch the license of all .h files to GPLv3.
2757 Switch the license of all .cc files to GPLv3.
2758
5a0e3bd0
JB
27592007-08-23 Joel Brobecker <brobecker@adacore.com>
2760
2761 * configure.ac: Switch license to GPLv3.
2762
609ca2b9
DJ
27632007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2764
2765 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
2766 determine the file's FPU type.
2767
8d26208a
DJ
27682007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2769
2770 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
2771 (mips_n32n64_push_dummy_call): Always increment float_argreg along
2772 with argreg. Use mips_n32n64_fp_arg_chunk_p.
2773
65728c26
DJ
27742007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
2775
2776 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
2777 Fix formatting.
2778 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
2779 (elf_lookup_lib_symbol): Fix formatting.
2780
a2ca50ae
MS
27812007-08-21 Michael Snyder <msnyder@access-company.com>
2782
6b2d86bd
MS
2783 * dbxread.c (read_dbx_symtab): Guard null deref.
2784 Break up long line.
2785
a2ca50ae
MS
2786 * valops.c (find_overload_match): Guard against NULL.
2787
54e116dd
DJ
27882007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2789
2790 * MAINTAINERS (Patch Champions): Remove self.
2791
f429d7d0
DJ
27922007-08-21 Chris Smith <chris.smith@st.com>
2793
2794 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
2795 line.
2796
a2ca50ae 27972007-08-18 Michael Snyder <msnyder@access-company.com>
a287cea6 2798
31e9f6b6
MS
2799 * stabsread.c (dbx_lookup_type): Memory leak.
2800
32107cd5
MS
2801 * event-loop.c (delete_async_signal_handler): Move pointer null
2802 test to before pointer dereference.
2803
44db85f8
MS
2804 * ui-out.c (append_header_to_list): Possible cut and paste error.
2805
a287cea6
MS
2806 * MAINTAINERS: white space tweak.
2807
0bd9908d
MS
28082007-08-17 Michael Snyder <msnyder@access-company.com>
2809
f91162e1
MS
2810 * stack.c (print_frame): Memory leak.
2811
1e8189fb
MS
2812 * completer.c (filename_completer): Avoid memory leak.
2813 Remove unnecessary nested block.
2814
348038cd
MS
2815 * c-exp.y (parse_number): Memory leak.
2816
1f20ed91
MS
2817 * completer.c (location_completer): Must free 'fn_list', except
2818 in the one case where it is returned (as 'list').
2819
74dddad3
MS
2820 * varobj.c (value_of_root): Memory leak.
2821
0bd9908d
MS
2822 * gdbtypes.h (virtual_base_list): Remove export decl.
2823 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
2824 (virtual_base_index): Memory leak.
2825 (virtual_base_index_skip_primaries): Ditto.
2826
bdb4c075
MG
28272007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
2828
2829 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
2830 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
2831 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
2832 (xtensa_read_register): New function.
2833 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
2834 (xtensa_insn_kind): New types.
2835 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
2836 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
2837 (xtensa_verify_config, xtensa_pseudo_register_read)
2838 (xtensa_pseudo_register_write, xtensa_extract_return_value)
2839 (xtensa_store_return_value)
2840 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
2841 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
2842 (xtensa_frame_this_id, xtensa_frame_prev_register)
2843 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
2844 (call0_frame_cache, call0_frame_get_reg_at_entry)
2845 (call0_classify_opcode, call0_track_op)
2846 (call0_analyze_prologue, call0_frame_cache): New functions.
2847
198757a8
VP
28482007-08-17 Vladimir Prus <vladimir@codesourcery.com>
2849
2850 * breakpoint.c (bpstat_free): New.
2851 (bpstat_clear): Use bpstat_free.
2852 (delete_breakpoint): Document why we cannot
2853 remove bpstats from stop_bpstat.
2854 * breakpoint.h (bpstat_free): Declare.
2855
dc66ab8a
MS
28562007-08-16 Michael Snyder <msnyder@access-company.com>
2857
2858 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
2859
40c8aaa9
JB
28602007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2861 Joel Brobecker <brobecker@adacore.com>
2862
2863 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
2864
ee90b9ab
JB
28652007-08-15 Paul Hilfinger <hilfinger@adacore.com>
2866 Joel Brobecker <brobecker@adacore.com>
2867
2868 * ada-lang.c (possible_user_operator_p): Alternative fix to last
2869 checkin guarding against NULL.
2870
5b6fe301
MS
28712007-08-14 Michael Snyder <msnyder@access-company.com>
2872
e5908723
MS
2873 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
2874 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
2875 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
2876 go at beginning of new line.
2877
08ef48c5
MS
2878 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
2879 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
2880 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
2881 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
2882 tui-winsource.h, tui.c, tui.h: Function declarations and
2883 definitions, wrap long lines.
2884
ef5eab5a
MS
2885 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
2886 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
2887 Reformat block comments to GNU standard.
2888
1cc6d956
MS
2889 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
2890 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
2891 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
2892 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
2893 tui.c, tui.h: Comment reformatting to coding standard (capitals,
2894 spaces after periods, etc).
2895
5b6fe301
MS
2896 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
2897 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
2898 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
2899 tui-winsource.h: Whitespace changes, fix pointer declarations
2900 to be consistant.
2901
64a1bf19
JB
29022007-08-14 Joel Brobecker <brobecker@adacore.com>
2903 Michael Snyder <msnyder@access-company.com>
2904
2905 * ada-lang.c (field_alignment): Guard against NULL.
2906
e933291e
JB
29072007-08-14 Joel Brobecker <brobecker@adacore.com>
2908
2909 * MAINTAINERS (Global Maintainers): Add self.
2910
348144ba
MS
29112007-08-14 Michael Snyder <msnyder@access-company.com>
2912
068acb6c
MS
2913 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
2914
6d307763
MS
2915 * ada-lang.c (possible_user_operator_p): Guard against NULL.
2916
348144ba
MS
2917 * varobj.c (cplus_describe_child): Guard against null.
2918 Use "NULL" instead of "0" to initialize pointers.
2919
b8926edc
DJ
29202007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2921
2922 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
2923 to match any gdbarch with matching OSABI. Set default ABI and FPU
2924 after running the OSABI handler.
2925
cdd6623c
DJ
29262007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
2927
2928 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
2929 * config/i386/linux.mt (TDEPFILES): ...to here.
2930
cb851954
VP
29312007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2932
cb851954
VP
2933 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
2934 the 'silent' parameter and code to implement that.
2935 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
2936 prototype.
2937 * win32-nat.c: Adjust.
2938 * solib.c: Adjust.
2939
e14a792b
VP
29402007-08-14 Vladimir Prus <vladimir@codesourcery.com>
2941
e14a792b
VP
2942 * breakpoint.c (update_breakpoints_after_exec): Don't
2943 set address to zero.
2944
be8ca11b
MS
29452007-08-13 Michael Snyder <msnyder@access-company.com>
2946
ac3eeb49
MS
2947 * valops.c: Whitespace clean-up.
2948
81b7c67a
MS
2949 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2950
f5b73fbb
MS
2951 * event-top.c (command_line_handler): Memory leak.
2952
b538c234
MS
2953 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
2954 No need to make copy.
2955
be8ca11b
MS
2956 * source.c (find_source_lines): Require symtab 's'.
2957
489f0516
MS
29582007-08-11 Michael Snyder <msnyder@access-company.com>
2959
2960 * completer.c: Spelling fix in comments.
2961
9c3f90bd
MS
29622007-08-10 Michael Snyder <msnyder@access-company.com>
2963
687d6395 2964 * gdbtypes.c: Coding standard cleanup.
7ba81444
MS
2965 * gdbtypes.c: Comment/whitespace cleanup.
2966
6aef78af
MS
2967 * stabsread.c (read_huge_number): Attempt to compute value before
2968 values that it depends on.
2969
46be51c4
MS
2970 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
2971 (decode_objc): Use "NULL" instead of 0.
2972 (find_method): Ditto.
2973 (decode_all_digits): Ditto.
2974 (decode_dollar): Ditto.
2975
412bbd6c
MS
2976 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2977
76bd6e0b
MS
2978 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2979
518f9d3c
MS
2980 * solib-svr4.c (enable_break): Don't free tmp_pathname until
2981 after closing bfd.
2982
9c3f90bd
MS
2983 * completer.c: Comment/whitespace cleanup.
2984
adee0206
JB
29852007-08-10 Joel Brobecker <brobecker@adacore.com>
2986
2987 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
2988
29892007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
9f8e6999
MG
2990
2991 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
2992 allocated file descriptors.
2993
271a27b8
JB
29942007-08-10 Joel Brobecker <brobecker@adacore.com>
2995
2996 * Makefile.in: Minor cleanup throughout; add some missing variables,
2997 add some missing rules, remove some rules that are no longer needed,
2998 and fix the dependencies in several rules.
2999
57da7796
LC
30002007-08-10 Ludovic Courtès <ludo@gnu.org>
3001
d4310edb
LC
3002 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3003 (scm_lang_h, scm_tags_h): New.
3004 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3005 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3006 * defs.h (enum language): Add `language_scm'.
3007
57da7796
LC
3008 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3009 opening.
3010
93c06293
LC
30112007-08-09 Ludovic Courtès <ludo@gnu.org>
3012
3013 * MAINTAINERS (Write After Approval): Add myself.
3014
0997b535
MS
30152007-08-09 Michael Snyder <msnyder@access-company.com>
3016
3017 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3018
4fec86cf
JB
30192007-08-09 Joel Brobecker <brobecker@adacore.com>
3020
3021 * solib-som.c (som_relocate_section_addresses): Stop saving
3022 the $CODE$ section in the so_list structure.
3023
7b871568
MG
30242007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3025
3026 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3027 (xtensa_register_group_t): Add entries for coprocessors.
3028 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3029 (xtensa_add_reggroups): Likewise.
3030 (xtensa_register_reggroup_p): Likewise.
3031 (xtensa_coprocessor_register_group): New function.
3032 (xtensa_cp): New.
3033
652aaa24
JK
30342007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3035
3036 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3037
decbce07
MS
30382007-08-08 Michael Snyder <msnyder@access-company.com>
3039
6217bf3e
MS
3040 * target.c (target_read_string): Guard against null.
3041
6225abfa
MS
3042 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3043
3e40160c 3044 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3277c0e0 3045 (tui_set_layout_for_display_command): Mem leak.
3e40160c 3046
91d2803c
MS
3047 * top.c (command_line_input): Memory leak.
3048
ea5bf0a1
MS
3049 * solib-svr4.c (open_symbol_file_object): Memory leak.
3050 (svr4_current_sos): Ditto.
3051 (enable_break): Ditto.
3052
34e2dfde
MS
3053 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3054
decbce07
MS
3055 * dwarf2read.c (add_partial_symbol): Memory leak.
3056
4cdfadb1
MS
30572007-08-06 Michael Snyder <msnyder@access-company.com>
3058
3059 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3060
b1ddacc7
JB
30612007-08-05 Jim Blandy <jimb@codesourcery.com>
3062
3063 * macroexp.c (init_buffer): Remove testing code that overrides the
3064 caller's length guess.
3065 (gather_arguments): Use a larger initial size, now that the vector
3066 growth code has been exercised.
3067
5d9643ba
PA
30682007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3069
3070 * solib-target.c (solib_target_relocate_section_addresses): Add
3071 orig_delta to addr_high.
3072
27e06d3e
MS
30732007-08-04 Michael Snyder <msnyder@access-company.com>
3074
1ed489bd
MS
3075 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3076
c1f5197e
MS
3077 * breakpoint.c (print_one_breakpoint): Off by one error.
3078
27e06d3e
MS
3079 * tracepoint.c (add_register): Off by one error.
3080 (stringify_collection_list): Free malloc buffer.
3081
03b4bca2
MS
30822007-08-03 Michael Snyder <msnyder@access-company.com>
3083
474d0d0c
MS
3084 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3085 stop memory leak, straighten out cleanups.
3086
03b4bca2
MS
3087 * jv-lang.c (java_link_class_type): Guard against NULL.
3088
423c0af8
MS
30892007-08-02 Michael Snyder <msnyder@access-company.com>
3090
f9780d5b
MS
3091 * gdbtypes.c (create_set_type): Test should only be done within
3092 the preceeding if block. Otherwise, variable is uninitialized.
3093
423c0af8
MS
3094 * gdbtypes.c (check_typedef): Guard NULL.
3095
c0645fb5
MS
30962007-08-01 Michael Snyder <msnyder@access-company.com>
3097
3cebf8d8
MS
3098 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3099 avoid dereference in lookup_cmd_1.
3100
c0645fb5
MS
3101 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3102 clean up long lines.
3103 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3104 (tui_alloc_win_info): Ditto.
3105 (tui_add_content_elements): Ditto.
3106 * tui/tui-file.c (tui_file_magic): Ditto.
3107
abe34c35
MS
31082007-07-31 Michael Snyder <msnyder@access-company.com>
3109
967af18d
MS
3110 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3111 True and false paths are mutually exclusive.
3112
40742ab6
MS
3113 * event-top.c (command_line_handler): Add pedantic return.
3114
7c6e0d48
MS
3115 * f-valprint.c (info_common_command): Bail out to prevent null
3116 pointer deref. Break up a long line.
3117
c7b1adc9
MS
3118 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3119
73780b3c
MS
3120 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3121
abe34c35
MS
3122 * printcmd.c (build_address_symbolic): Remove dead code and dead
3123 variable.
3124
e48883f7
DJ
31252007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3126
3127 * linespec.c (minsym_found): Advance to the next line if possible.
3128
57204837
PA
31292007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3130
3131 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3132 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3133 solib-svr4.o, and add solib-target.o
3134
fed8b01e
MS
31352007-07-27 Michael Snyder <msnyder@access-company.com>
3136
3137 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3138
9ceb0b4c
MR
31392007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3140
3141 * MAINTAINERS (Write After Approval): Add myself.
3142
c80a96a8
MR
31432007-07-26 Maciej W. Rozycki <macro@mips.com>
3144
3145 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3146 for include files.
3147
5b311828
MR
31482007-07-25 Maciej W. Rozycki <macro@mips.com>
3149
3150 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3151
f52df7d9 31522007-07-24 Michael Snyder <msnyder@access-company.com>
55765a25 3153
f52df7d9
MS
3154 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3155 'buffer' must cover both branches that call strcmp (Coverity).
55765a25 3156
f52df7d9 3157 * stack.c (print_frame_args): Check return value of lookup_symbol.
747f3d18
MS
3158
3159 * ax-gdb.c (find_field): Guard against null ptr.
3160
69ae91d3
UW
31612007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3162
3163 * regformats/reg-spu.dat: Fix order of npc, id registers.
3164
98646950
UW
31652007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3166
3167 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3168 sections should always go to the executable file.
3169
193774b3
MR
31702004-07-20 Chris Dearman <chris@mips.com>
3171
3172 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3173 prologue instructions.
3174
ce1f96de
MR
31752007-07-20 Maciej W. Rozycki <macro@mips.com>
3176
3177 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3178 a direct test.
3179
bcf1ea1e
MR
31802007-07-20 Chris Dearman <chris@mips.com>
3181 Maciej W. Rozycki <macro@mips.com>
3182
3183 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3184 description.
3185
255e7678
DJ
31862007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3187 Daniel Jacobowitz <dan@codesourcery.com>
3188
3189 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3190 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3191 printf.
3192 * NEWS: Mention gdbserver DLL support.
3193
a8c50c1f
DJ
31942007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3195
3196 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3197
2e024c20
L
31982007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3199
3200 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3201 warning bug.
3202
f219aedc
KB
32032007-07-13 Kevin Buettner <kevinb@redhat.com>
3204
3205 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3206 instruction case.
3207
1ba3e7a3
KB
32082007-07-12 Kevin Buettner <kevinb@redhat.com>
3209
3210 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3211 (mep_analyze_prologue): Add case for BRA instruction.
3212
f1e55806
UW
32132007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3214
3215 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3216
d9f71b56
NR
32172007-07-10 Nick Roberts <nickrob@snap.net.nz>
3218
3219 * breakpoint.c: Include "top.h".
3220 (breakpoint_1): Don't set convenience variable $_ if server prefix
3221 is used.
3222 (_initialize_breakpoint): Describe this behaviour in command help.
3223
358eb95e
PA
32242007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
3225
3226 * solib-target.c (library_list_start_segment): Cast address to
3227 CORE_ADDR.
3228
a4e7b2e7
MK
32292007-07-06 Mark Kettenis <kettenis@gnu.org>
3230
3231 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
3232 for terminated processes.
3233
2ed23f5f
MS
32342007-07-05 Michael Snyder <msnyder@access-company.com>
3235
3236 * event-top.c (cli_command_loop): Prompt string can (and should)
3237 be freed after call to readline (Coverity). Also move local var
3238 declarations into block where they are used.
3239
3240 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
3241 should) be freed after call to readline (Coverity). Also move
3242 local var declarations into block where they are used.
3243
a25694b4
AS
32442007-07-03 Andreas Schwab <schwab@suse.de>
3245
3246 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
3247 /proc/../stat.
3248
2bbe3cc1
DJ
32492007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
3250 Thiago Bauermann <bauerman@br.ibm.com>
3251 Joseph S. Myers <joseph@codesourcery.com>
3252 Daniel Jacobowitz <dan@codesourcery.com>
3253
3254 * remote.c (remote_check_symbols): Use
3255 gdbarch_convert_from_func_ptr_addr.
3256 * infcall.c (find_function_addr): Handle function descriptors
3257 without debugging information.
3258 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
3259 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
3260 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
3261 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
3262 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
3263 allow SEC_CODE and SEC_DATA.
3264 (enable_break): Update calls. Pass current_target to solib_add.
3265 Use gdbarch_convert_from_func_ptr_addr.
3266
9f43d28c
DJ
32672007-07-03 Ilko Iliev <iliev@ronetix.at>
3268 Daniel Jacobowitz <dan@codesourcery.com>
3269
3270 * symfile.c (print_transfer_performance): Avoid integer overflow.
3271 Use larger units.
3272
3a40aaa0
UW
32732007-07-03 Markus Deuling <deuling@de.ibm.com>
3274
3275 * cp-namespace.c (lookup_symbol_file): Add block to
3276 lookup_symbol_global call.
3277 * Makefile.in (solist_h): Add dependency on symtab header.
3278 (symtab.o): Add dependency on solist header.
3279 * solib.c (solib_global_lookup): New function.
3280 * solib-svr4.c (scan_dyntag): Likewise.
3281 (elf_locate_base): Call helper routine scan_dyntag.
3282 (elf_lookup_lib_symbol): New function.
3283 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
3284 * solist.h (symtab.h): New include.
3285 (struct target_so_ops): New member lookup_lib_global_symbol.
3286 (solib_global_lookup): New prototype.
3287 * symtab.c: New include solist.h.
3288 (lookup_objfile_from_block): New function.
3289 (lookup_global_symbol_from_objfile): New function.
3290 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
3291 (lookup_symbol_global): Call library-specific lookup procedure.
3292 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
3293
3294 * NEWS: Document framework.
3295
c8c12293
DJ
32962007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3297
3298 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
3299 to NULL.
3300
3301 * cli/cli-script.c (build_command_line): Update NULL check.
3302
7877e977
MS
33032007-07-02 Michael Snyder <msnyder@access-company.com>
3304
3305 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
3306
cfa9d6d9
DJ
33072007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3308
3309 * Makefile.in (XMLFILES): Add library-list.dtd.
3310 (ALLDEPFILES): Add solib-target.o.
3311 (solib-target.o): New rule.
3312 * remote.c (PACKET_qXfer_libraries): New constant.
3313 (remote_protocol_features): Add qXfer:libraries:read.
3314 (remote_wait): Recognize library stop replies.
3315 (remote_async_wait): Likewise. Fix typo.
3316 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3317 (init_remote_async_ops): Fix typo.
3318 (_initialize_remote): Register "set remote library-info-packet".
3319 * solib-som.c (som_current_sos): Set addr_low and addr_high.
3320 * solib-target.c: New file.
3321 * solib.c (solib_map_sections): Use addr_low and addr_high instead
3322 of textsection.
3323 (info_sharedlibrary_command): Likewise.
3324 (solib_add_library, solib_remove_library): New.
3325 * solist.h (struct so_list): Replace textsection with addr_low and
3326 addr_high.
3327 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
3328 * NEWS: Describe new qXfer:libraries:read and shared library
3329 event support.
3330 * features/library-list.dtd: New.
3331
b0f4b84b
DJ
33322007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3333
3334 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
3335 (start_remote): Use STOP_QUIETLY_REMOTE.
3336 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
3337 support on a SOLIB_ADD definition. Update breakpoints_inserted.
3338 Update to match shared library event breakpoint support. Only
3339 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
3340 (normal_stop): Handle TARGET_WAITKIND_LOADED.
3341 * fork-child.c (startup_inferior): Do not set
3342 inferior_ignoring_startup_exec_events
3343 * inferior.h (inferior_ignoring_startup_exec_events): Delete
3344 declaration.
3345 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
3346
9bbf65bb
UW
33472007-07-02 Markus Deuling <deuling@de.ibm.com>
3348
3349 * breakpoint.c (insert_bp_location): Remove dead code
3350 (DISABLE_UNSETTABLE_BREAK).
3351 (disable_breakpoints_in_shlibs)
3352 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
3353
a4954f26
DJ
33542007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3355
3356 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
3357 Call insert_bp_location.
3358
b48516f9
L
33592007-07-01 H.J. Lu <hongjiu.lu@intel.com>
3360
3361 * core-regset.c (fetch_core_registers): Work around gcc 3.4
3362 alias warning bug.
3363
96225718
DJ
33642007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3365
3366 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
3367 objfiles.
3368
1b05479a
DJ
33692007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3370
3371 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
3372 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
3373 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
3374 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
3375 to display_gdb_prompt.
3376
5ad3a4ca
DJ
33772007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3378
3379 PR symtab/2161
3380 * target.c (memory_xfer_partial): Do not continue past targets with
3381 all memory.
3382
4ed77933
AS
33832007-06-30 Andreas Schwab <schwab@suse.de>
3384
4713453b
AS
3385 * m68k-tdep.c (m68k_ps_type): New.
3386 (m68k_init_types): New.
3387 (m68k_register_type): Use m68k_ps_type for PS register.
3388 (_initialize_m68k_tdep): Call m68k_init_types.
3389
4ed77933
AS
3390 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
3391 from the generic m68k arch.
3392
dd3526aa
MS
33932007-06-28 Michael Snyder <msnyder@access-company.com>
3394
f08312c2
MS
3395 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
3396 (Coverity).
3397
a787bedf
MS
3398 * linux-thread-db.c (thread_db_get_thread_local_address): Add
3399 gdb_assert before using return value of find_thread_pid (Coverity).
3400
77accacd
MS
3401 * source.c (unset_substitute_path_command): Plug leak (Coverity).
3402
dd3526aa
MS
3403 * cli/cli-script.c (build_command_line): Add null pointer guard
3404 (Coverity).
3405
4105de34
DJ
34062007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
3407
3408 * linux-thread-db.c (thread_db_attach): Delete.
3409 (thread_db_detach): Typo fix. Call target_mourn_inferior
3410 instead of fixing up proc_handle.
3411 (have_threads_callback, have_threads): New functions.
3412 (thread_db_wait): Remove dead proc_handle.pid check. Only
3413 translate PTIDs if we have registered threads. Check for new
3414 threads if we have none.
3415 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
3416 (find_new_threads_callback): Only enable event reporting if TID == 0.
3417 (same_ptid_callback): New.
3418 (thread_db_get_thread_local_address): Check for new threads.
3419 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
3420 or to_post_startup_inferior.
3421
1c0fdd0e
UW
34222007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3423
3424 * infrun.c (adjust_pc_after_break): Do not assume software single-step
3425 is always active if SOFTWARE_SINGLE_STEP_P is true.
3426 (resume): Use gdbarch_software_single_step[_p] instead of
3427 SOFTWARE_SINGLE_STEP[_P].
3428 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
3429
3430 * gdbarch.sh (software_single_step): Remove target macro.
3431 * gdbarch.h, gdbarch.c: Regenerate.
3432
e487cc15
UW
34332007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3434
3435 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
3436 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
3437 (struct gdbarch_swap, struct gdbarch_swap_registration,
3438 struct gdbarch_swap_registry, gdbarch_swap_registry,
3439 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
3440 current_gdbarch_swap_in_hack): Remove.
3441 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
3442 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
3443 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
3444 (deprecated_current_gdbarch_select_hack): Likewise.
3445 * gdbarch.h, gdbarch.c: Regenerate.
3446
d5c31457
UW
34472007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3448
3449 * infrun.c (clear_proceed_status): Clean up stop_registers.
3450 (normal_stop): Allocate regcache for stop_registers.
3451 (struct inferior_status): Remove stop_registers member.
3452 (save_inferior_status): Do not save stop_registers.
3453 (restore_inferior_status): Do not restore stop_registers.
3454 (discard_inferior_status): Do not discard stop_registers.
3455 (build_infrun): Remove.
3456 (_initialize_infrun): Do not swap stop_registers.
3457
911c95a5
UW
34582007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3459
3460 * remote.c (remote_address_masked): If remote_address_size is zero,
3461 default to target address size.
3462 (build_remote_gdbarch_data): Remove.
3463 (_initialize_remote): Do not swap remote_address_size.
3464
5674de60
UW
34652007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3466
3467 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
3468 builtin_type_char, builtin_type_short, builtin_type_int,
3469 builtin_type_long, builtin_type_signed_char,
3470 builtin_type_unsigned_char, builtin_type_unsigned_short,
3471 builtin_type_unsigned_int, builtin_type_unsigned_long,
3472 builtin_type_float, builtin_type_double, builtin_type_long_double,
3473 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
3474 builtin_type_bool, builtin_type_long_long,
3475 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
3476 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
3477 variable declaration with compatibility macro.
3478 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
3479 builtin_type_char, builtin_type_short, builtin_type_int,
3480 builtin_type_long, builtin_type_signed_char,
3481 builtin_type_unsigned_char, builtin_type_unsigned_short,
3482 builtin_type_unsigned_int, builtin_type_unsigned_long,
3483 builtin_type_float, builtin_type_double, builtin_type_long_double,
3484 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
3485 builtin_type_bool, builtin_type_long_long,
3486 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
3487 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
3488 (build_gdbtypes): Remove.
3489 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
3490 opaque-type-resolution command here. Do not call
3491 deprecated_register_gdbarch_swap.
3492
64c50499
UW
34932007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3494
3495 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
3496 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
3497 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
3498
3499 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
3500 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
3501 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
3502 (build_parse): Remove.
3503 (_initialize_parse): Do not call build_parse. Do not register
3504 msym_ types for gdbarch-swapping.
3505
3506 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
3507 instead of creating private type.
3508
3509 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
3510 (_initialize_xcoffread): Do not initialized them.
3511 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
3512
3513 * mdebugread.c (nodebug_func_symbol_type): Remove.
3514 (nodebug_var_symbol_type): Remove.
3515 (_initialize_mdebugread): Do not initialize them.
3516 (parse_symbol): Use builtin nodebug_ type instead of them.
3517 (parse_procedure): Likewise.
3518
6a2eb474
MR
35192007-06-21 Chris Dearman <chris@mips.com>
3520
3521 * printcmd.c (do_one_display): If display/i, start with an initial
3522 line feed to avoid bad layout if there is a branch delay slot.
3523
a4642986
MR
35242007-06-21 Nigel Stephens <nigel@mips.com>
3525 Maciej W. Rozycki <macro@mips.com>
3526
3527 * disasm.c (gdb_print_insn): Return the number of branch delay
3528 slot instructions too.
3529 * disasm.h (gdb_print_insn): Update prototype.
3530 * printcmd.c (branch_delay_insns): New variable to record the
3531 number of delay slot instructions after disassembling a branch.
3532 (print_formatted): Record the number of branch delay slot
3533 instructions.
3534 (do_examine): When disassembling, if the last instruction
3535 disassembled has any branch delay slots, then bump the count so
3536 that they get disassembled too.
3537 * tui/tui-disasm.c (tui_disassemble): Update the call to
3538 gdb_print_insn().
3539 * NEWS: Document the new behaviour.
3540
ade28716
AS
35412007-06-21 Andreas Schwab <schwab@suse.de>
3542
3543 * regcache.c (write_pc_pid): Restore missing else.
3544
28c38f10
UW
35452007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
3546
3547 * regcache.c (regcache_print): Use get_current_regcache ()
3548 instead of current_regcache.
3549
52b57208
L
35502007-06-20 H.J. Lu <hongjiu.lu@intel.com>
3551
3552 PR 4606
3553 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
3554 instead of bfd_make_section_anyway.
3555 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
3556 when clearing SEC_LOAD.
3557
8bf8793c
JM
35582007-06-19 Joseph Myers <joseph@codesourcery.com>
3559
3560 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
3561 registers for big-endian.
3562
7f5c84d3
UW
35632007-06-19 Markus Deuling <deuling@de.ibm.com>
3564
3565 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
3566 * disasm.c (dump_insns, gdb_print_insn): Likewise.
3567 * gdbarch.c, gdbarch.h: Regenerate.
3568
f73e88f9
UW
35692007-06-19 Markus Deuling <deuling@de.ibm.com>
3570
3571 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
3572 gdbarch_believe_pcc_promotion.
3573 * stabsread.c (define_symbol): Likewise.
3574 Remove unnecessary definition.
3575 * coffread.c (process_coff_symbol): Remove unnecessary code.
3576 * gdbarch.c, gdbarch.h: Regenerate.
3577
cab58a69
DJ
35782007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
3579
3580 * configure.ac: Do not use ${objdir}.
3581 * configure: Regenerated.
3582
f0c9063c
UW
35832007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
3584
3585 * gdbarch.sh (deprecated_register_size): Remove.
3586 * gdbarch.h, gdbarch.c: Regenerate.
3587
3588 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
3589 by INT_REGISTER_SIZE.
3590 (thumb_get_next_pc, arm_return_in_memory): Likewise.
3591 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
3592 * ia64-tdep.c (ia64_gdbarch_init): Do not call
3593 set_gdbarch_deprecated_register_size.
3594
064f5156
UW
35952007-06-18 Markus Deuling <deuling@de.ibm.com>
3596
3597 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
3598 gdbarch_deprecated_fp_regnum.
3599 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3600 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
3601 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3602 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
3603 (comment).
3604 * gdbarch.c, gdbarch.h: Regenerate.
3605
36062007-06-18 Markus Deuling <deuling@de.ibm.com>
3607
3608 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
3609 gdbarch_extract_return_value.
3610 * value.c (generic_use_struct_convention): Likewise (comment).
3611 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
3612 * arch-utils.c (legacy_return_value): Likewise.
3613 * arch-utils.h (legacy_return_value): Likewise (comment).
3614 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
3615 gdbarch_store_return_value.
3616 * stack.c (return_command): Likewise (comment).
3617 * arch-utils.h (legacy_return_value): Likewise (comment).
3618 * arch-utils.c (legacy_return_value): Likewise.
3619 * gdbarch.c, gdbarch.h: Regenerate.
3620
b187c476
UW
36212007-06-18 Markus Deuling <deuling@de.ibm.com>
3622
3623 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
3624 gdbarch_deprecated_use_struct_convention.
3625 * arch-utils.c (legacy_return_value): Likewise.
3626 * gdbarch.c, gdbarch.h: Regenerate.
3627
cbf3b44a
UW
36282007-06-18 Markus Deuling <deuling@de.ibm.com>
3629
3630 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
3631 gdbarch_deprecated_function_start_offset.
3632 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
3633 * linespec.c (minsym_found): Likewise.
3634 * infrun.c (handle_inferior_event): Likewise.
3635 * infcall.c (find_function_addr): Likewise.
3636 * cli/cli-cmds.c (disassemble_command): Likewise.
3637 * gdbarch.c, gdbarch.h: Regenerate.
3638
bceb6e50
UW
36392007-06-18 Markus Deuling <deuling@de.ibm.com>
3640
3641 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
3642 gdbarch_deprecated_reg_struct_has_addr.
3643 * infcall.c (call_function_by_hand): Likewise.
3644 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
3645 * gdbarch_deprecated_reg_struct_has_addr_p.
3646 * infcall.c (call_function_by_hand): Likewise.
3647 * gdbarch.c, gdbarch.h: Regenerate.
3648
8ed6a7ba
UW
36492007-06-18 Markus Deuling <deuling@de.ibm.com>
3650
3651 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3652 * sh-tdep.c (sh_extract_struct_value_address): Remove.
3653 (sh_gdbarch_init): Remove
3654 set_gdbarch_deprecated_extract_struct_value_address.
3655 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
3656 (sh64_gdbarch_init): Remove
3657 set_gdbarch_deprecated_extract_struct_value_address.
3658 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
3659 (ia64_gdbarch_init): Remove
3660 set_gdbarch_deprecated_extract_struct_value_address.
3661 * frv-tdep.c (frv_extract_struct_value_address): Remove.
3662 (frv_gdbarch_init): Remove
3663 set_gdbarch_deprecated_extract_struct_value_address.
3664 * gdbarch.c, gdbarch.h: Regenerate.
3665
3e8c568d
UW
36662007-06-18 Markus Deuling <deuling@de.ibm.com>
3667
3668 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
3669 * v850-tdep.c (v850_unwind_sp): Likewise.
3670 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
3671 * stack.c (frame_info): Likewise.
3672 * stabsread.c (define_symbol): Likewise.
3673 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
3674 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
3675 (sh_unwind_sp): Likewise.
3676 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
3677 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
3678 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
3679 (rs6000_frame_cache): Likewise.
3680 * rs6000-nat.c (store_register): Likewise.
3681 * remote-mips.c (mips_wait): Likewise.
3682 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3683 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3684 (ppc64_sysv_abi_push_dummy_call): Likewise.
3685 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3686 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3687 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3688 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3689 * m32r-rom.c (m32r_supply_register): Likewise.
3690 * frame.c (frame_sp_unwind): Likewise.
3691 * mips-tdep.c (mips_insn16_frame_cache)
3692 (mips_insn32_frame_cache): Likewise (comment).
3693 * m68klinux-nat.c (supply_gregset): Likewise.
3694 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3695 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
3696 * i386-tdep.c (i386_get_longjmp_target): Likewise.
3697 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3698 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
3699 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
3700 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
3701 (cris_register_type, crisv32_register_type)
3702 (cris_dwarf2_frame_init_reg): Likewise.
3703 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
3704 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
3705 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3706 * libunwind-frame.c (libunwind_frame_cache): Likewise.
3707
3708 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
3709 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
3710 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
3711 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
3712 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
3713 * v850-tdep.c (v850_unwind_pc): Likewise.
3714 * stack.c (frame_info): Likewise.
3715 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
3716 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
3717 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
3718 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
3719 (sh_dsp_show_regs): Likewise.
3720 * shnbsd-tdep.c (shnbsd_supply_gregset)
3721 (shnbsd_collect_gregset): Likewise.
3722 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
3723 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
3724 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
3725 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3726 (6000_register_reggroup_p, rs6000_unwind_pc)
3727 (rs6000_frame_cache): Likewise.
3728 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
3729 (rs6000_store_inferior_registers): Likewise.
3730 * remote-mips.c (mips_wait, mips_load): Likewise.
3731 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3732 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
3733 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
3734 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
3735 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
3736 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3737 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
3738 (store_ppc_registers, fill_gregset): Likewise.
3739 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
3740 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
3741 * mipsnbsd-nat.c (getregs_supplies): Likewise.
3742 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
3743 * m68klinux-nat.c (supply_gregset): Likewise.
3744 * irix5-nat.c (fill_gregset): Likewise.
3745 * i386-tdep.c (i386_unwind_pc): Likewise.
3746 * i386-linux-nat.c (i386_linux_resume): Likewise.
3747 * frame.c (get_prev_frame_1): Likewise.
3748 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
3749 * dbug-rom.c (dbug_supply_register): Likewise.
3750 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
3751 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
3752 (cris_register_type, crisv32_register_type, crisv32_register_name)
3753 (cris_dwarf2_frame_init_reg, find_step_target)
3754 (cris_software_single_step, cris_supply_gregset)
3755 (cris_regnums): Likewise.
3756 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3757 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3758 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
3759 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
3760 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
3761
3762 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
3763 * dbug-rom.c (dbug_supply_register): Likewise.
3764 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
3765 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
3766 * win32-nat.c (win32_resume): Likewise.
3767 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
3768 * m68k-tdep.c (m68k_register_type): Likewise.
3769 * m68klinux-nat.c (supply_gregset): Likewise.
3770
3771 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
3772 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
3773 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
3774 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
3775 (fv_reg_base_num, dr_reg_base_num): Likewise.
3776 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
3777 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
3778 (sh64_extract_return_value, sh64_store_return_value)
3779 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
3780 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
3781 * procfs.c (procfs_fetch_registers, procfs_store_registers)
3782 (invalidate_cache): Likewise.
3783 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
3784 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
3785 (mipsnbsd_fill_fpreg): Likewise.
3786 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
3787 (mipsnbsd_store_inferior_registers): Likewise.
3788 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
3789 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
3790 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
3791 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
3792 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
3793 (fill_fpregset): Likewise.
3794 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
3795 * i386-tdep.h (struct_return): Likewise (comment).
3796 * i386-nto-tdep.c (i386nto_register_area): Likewise.
3797 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
3798 (go32_store_registers): Likewise.
3799 * alpha-tdep.c (alpha_next_pc): Likewise.
3800 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3801 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
3802 (alphabsd_store_inferior_registers): Likewise.
3803 * core-regset.c (fetch_core_registers): Likewise.
3804 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
3805
3806 * gdbarch.c, gdbarch.h: Regenerate.
3807
31d99776
DJ
38082007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
3809
3810 * coffread.c (coff_sym_fns): Add default_symfile_segments.
3811 * dbxread.c (start_psymtab): Check HAVE_ELF.
3812 (aout_sym_fns): Likewise.
3813 * elfread.c (elf_symfile_segments): New.
3814 (elf_sym_fns): Add elf_symfile_segments.
3815 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
3816 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
3817 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
3818 * somread.c (som_sym_fns): Use default_symfile_segments.
3819 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
3820 (init_objfile_sect_indices): Call symfile_find_segment_sections.
3821 (default_symfile_segments): New function.
3822 (syms_from_objfile): Update call to find_sym_fns.
3823 (symfile_get_segment_data, free_symfile_segment_data): New.
3824 (symfile_map_offsets_to_segments): New.
3825 (symfile_find_segment_sections): New.
3826 * symfile.h (struct symfile_segment_data): New.
3827 (struct sym_fns): Add sym_segments.
3828 (default_symfile_segments, symfile_get_segment_data)
3829 (free_symfile_segment_data): New prototypes.
3830 (symfile_map_offsets_to_segments): Likewise.
3831 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
3832 * Makefile.in (COMMON_OBS): Remove elfread.o.
3833 (elf_internal_h): New.
3834 (elfread.o): Update.
3835 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
3836 compiled.
3837 * config.in, configure: Regenerated.
3838 * NEWS: Mention qOffsets changes.
3839
5760b90a
UW
38402007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3841
3842 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
3843 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3844 Replace global variable declaration with compatibility macro.
3845 (struct builtin_m2_type): New data type.
3846 (builtin_m2_type): Add prototype.
3847 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
3848 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
3849 Remove global variables.
3850 (m2_language_arch_info): Use builtin_m2_type instead of variables.
3851 (build_m2_types): New function.
3852 (m2_type_data): New variable.
3853 (builtin_m2_type): New function.
3854 (_initialize_m2_language): Do not build data types. Register
3855 m2_type_data per-gdbarch data.
3856
54ef06c7
UW
38572007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3858
3859 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
3860 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3861 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3862 builtin_type_f_real_s8, builtin_type_f_real_s16,
3863 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3864 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
3865 variable declaration with compatibility macro.
3866 (struct builtin_f_type): New data type.
3867 (builtin_f_type): Add prototype.
3868 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
3869 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
3870 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
3871 builtin_type_f_real_s8, builtin_type_f_real_s16,
3872 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
3873 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
3874 (f_language_arch_info): Use builtin_f_type instead of variables.
3875 (build_fortran_types): Build builtin_f_type structure instead of
3876 setting global type variables.
3877 (f_type_data): New variable.
3878 (builtin_f_type): New function.
3879 (_initialize_f_language): Do not call build_fortran_types. Do not
3880 swap global type variables. Register f_type_data per-gdbarch data.
3881
92e0cef4
UW
38822007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3883
3884 * f-lang.c (_initialize_f_language): Do not initialize or
3885 swap builtin_type_string.
3886
5d8140d1
UW
38872007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3888
0e7b1906
UW
3889 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
3890 value_of_builtin_frame_reg): Remove.
3891 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
3892 inactive call to value_of_builtin_frame_reg.
3893
38942007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3895
3896 * gdbarch.sh (bfd_vma_bit): Remove.
5d8140d1
UW
3897 * gdbarch.c, gdbarch.h: Regenerate.
3898
3899 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3900 * gdbtypes.h (builtin_bfd_vma_type): Remove.
3901 (build_gdbtypes): Do not initialize it.
3902 (_initialize_gdbtypes): Do not swap it.
3903
794ac428
UW
39042007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3905
3906 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
3907 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3908 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3909 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3910 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3911 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3912 builtin_type_vec64, builtin_type_vec128): Remove.
3913 (init_simd_type): Remove.
3914 (init_vector_type): Make global.
3915 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
3916 (build_gdbtypes): Do not build vector types.
3917 (_initialize_gdbtypes): Do not swap vector types.
3918 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
3919 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
3920 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
3921 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
3922 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
3923 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
3924 builtin_type_vec64, builtin_type_vec128): Remove declarations.
3925 (init_vector_type): Add prototype.
3926
3927 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
3928 i386_sse_type members.
3929 (i386_mmx_type, i386_sse_type): Change from variables to functions.
3930 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
3931 (i386_init_types): Do not build vector types.
3932 (i386_mmx_type, i386_sse_type): New functions.
3933 (i386_register_type): Call them instead of using global variables.
3934 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
3935 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
3936 of using global variable.
3937
3938 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
3939 and ppc_builtin_type_vec128 members.
3940 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
3941 (rs6000_builtin_type_vec128): Likewise.
3942 (rs6000_register_type): Call them instead of using builtin_type_vec64
3943 and builtin_type_vec128.
3944 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
3945
3946 * spu-tdep.c (struct gdbarch_tdep): New data type.
3947 (spu_builtin_type_vec128): Remove variable.
3948 (spu_builtin_type_vec128): New function.
3949 (spu_register_type): Call it instead of using global variable.
3950 (spu_gdbarch_init): Allocate tdep structure.
3951 (spu_init_vector_type): Remove function.
3952 (_initialize_spu_tdep): Do not call it.
3953
6707b003
UW
39542007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3955
3956 * amd64-tdep.c (struct amd64_register_info): Remove.
3957 (amd64_register_info): Remove.
3958 (amd64_register_names): New static variable.
3959 (AMD64_NUM_REGS): Use amd64_register_names instead of
3960 amd64_register_info.
3961 (amd64_register_name): Likewise.
3962 (amd64_register_type): Do not refer to amd64_register_info.
3963
3964 * s390-tdep.c (struct s390_register_info): Remove.
3965 (s390_register_info): Remove.
3966 (s390_register_name): Do not refer to s390_register_info.
3967 (s390_register_type): Likewise.
3968
3969 * sparc64-tdep.c (struct sparc64_register_info): Remove.
3970 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
3971 (sparc64_register_names, sparc64_pseudo_register_names): New.
3972 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
3973 sparc64_register_names and sparc64_pseudo_register_names instead of
3974 sparc64_register_info and sparc64_pseudo_register_info.
3975 (sparc64_register_name): Likewise.
3976 (sparc64_register_type): Do not refer to sparc64_register_info
3977 and sparc64_pseudo_register_info.
3978
cad351d1
UW
39792007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
3980
3981 * c-lang.c (cplus_builtin_types): Remove.
3982 (enum cplus_primitive_types): New data type.
3983 (cplus_language_arch_info): New function.
3984 (cplus_language_defn): Set la_language_arch_info member. Do not set
3985 la_builtin_type_vector and string_char_type members.
3986
3987 * f-lang.c (f_builtin_types): Remove.
3988 (enum f_primitive_types): New data type.
3989 (f_language_arch_info): New function.
3990 (f_language_de): Set la_language_arch_info member. Do not set
3991 la_builtin_type_vector and string_char_type members.
3992
3993 * m2-lang.c (m2_builtin_types): Remove.
3994 (enum m2_primitive_types): New data type.
3995 (m2_language_arch_info): New function.
3996 (m2_language_defn): Set la_language_arch_info member. Do not set
3997 la_builtin_type_vector and string_char_type members.
3998
3999 * objc-lang.c (objc_builtin_types): Remove.
4000 (objc_language): Set la_language_arch_info member. Do not set
4001 la_builtin_type_vector and string_char_type members.
4002
4003 * p-lang.c (pascal_builtin_types): Remove.
4004 (enum pascal_primitive_types): New data type.
4005 (pascal_language_arch_info): New function.
4006 (pascal_language_defn): Set la_language_arch_info member. Do not set
4007 la_builtin_type_vector and string_char_type members.
4008
594f7785
UW
40092007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4010
4011 * regcache.c (struct regcache): Add ptid_t member.
4012 (regcache_xmalloc): Initialize it.
4013 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4014 (regcache_dup): Likewise.
4015 (regcache_dup_no_passthrough): Likewise.
4016 (current_regcache): Make static.
4017 (registers_ptid): Remove variable.
4018 (get_thread_regcache): New function.
4019 (get_current_regcache): New function.
4020 (registers_changed): Implement by freeing current regcache.
4021 (regcache_raw_read): Do not refer to current_regcache. Set
4022 inferior_ptid to regcache->ptid while calling target routines.
4023 (regcache_raw_write): Likewise.
4024 (regcache_raw_supply): Do not refer to current_regcache.
4025 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4026 (write_pc_pid): Likewise.
4027 (build_regcache): Remove.
4028 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4029 or deprecated_register_gdbarch_swap. Do not initialize
4030 registers_ptid.
4031 * regcache.h (get_current_regcache): Add prototype.
4032 (get_thread_regcache): Likewise.
4033 (current_regcache): Remove declaration.
4034
4035 * corelow.c (core_open): Replace current_regcache by
4036 get_current_regcache ().
4037 * frame.c (frame_pop): Likewise.
4038 (put_frame_register): Likewise.
4039 (get_current_frame, create_new_frame): Likewise.
4040 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4041 * stack.c (return_command): Likewise.
4042 * infcall.c (call_function_by_hand): Likewise.
4043 * infrun.c (resume): Likewise.
4044 (save_inferior_status, restore_inferior_status): Likewise.
4045 * linux-fork.c (fork_load_infrun_state): Likewise.
4046 (fork_save_infrun_state): Likewise.
4047 * win32-nat.c (win32_resume): Likewise.
4048 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4049 * monitor.c (monitor_wait): Likewise.
4050 * remote.c (remote_wait): Likewise.
4051 * remote-mips.c (mips_wait): Likewise.
4052
4053 * bsd-kvm.c (bsd_kvm_open): Likewise
4054 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4055 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4056 * i386-linux-nat.c (i386_linux_resume): Likewise.
4057 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4058 (ia64_linux_stopped_data_address): Likewise.
4059
4060 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4061 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4062 * mep-tdep.c (current_me_module, current_options): Likewise.
4063 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4064
4065 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4066 regcache instead of current_regcache. Call target_fetch_registers.
4067 (linux_nat_corefile_thread_callback): Update call site.
4068 (linux_nat_do_registers): Likewise.
4069 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4070 of current_regcache.
4071 (procfs_make_note_section): Likewise.
4072 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4073 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4074 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4075 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4076
51a7a212
UW
40772007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4078
4079 * regcache.c (read_register, read_register_pid): Remove.
4080 (write_register, write_register_pid): Likewise.
4081 * regcache.h (read_register, read_register_pid): Remove prototype.
4082 (write_register, write_register_pid): Likewise.
4083
61a1198a
UW
40842007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4085
4086 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4087 (write_pc): Likewise. Remove default implementation, add predicate.
4088 * gdbarch.c, gdbarch.h: Regenerate.
4089 * regcache.c (read_pc_pid): Use current regcache instead of calling
4090 read_register_pid.
4091 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4092 case inline.
4093 (generic_target_write_pc): Remove.
4094 * inferior.h (generic_target_write_pc): Remove.
4095 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4096 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4097 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4098 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4099 * sh-tdep.c (sh_gdbarch_init): Likewise.
4100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4101
4102 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4103 argument. Use REGCACHE instead of calling read_register_pid.
4104 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4105 * hppa-tdep.c (hppa_read_pc): Likewise.
4106 * hppa-tdep.h (hppa_read_pc): Likewise.
4107 * ia64-tdep.c (ia64_read_pc): Likewise.
4108 * m32r-tdep.c (m32r_read_pc): Likewise.
4109 * mep-tdep.c (mep_read_pc): Likewise.
4110 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4111 * spu-tdep.c (spu_read_pc): Likewise.
4112
4113 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4114 argument. Use REGCACHE instead of calling write_register_pid.
4115 * avr-tdep.c (avr_write_pc): Likewise.
4116 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4117 * hppa-tdep.c (hppa_write_pc): Likewise.
4118 * hppa-tdep.h (hppa_write_pc): Likewise.
4119 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4120 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4121 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4122 * ia64-tdep.c (ia64_write_pc): Likewise.
4123 * ia64-tdep.h (ia64_write_pc): Likewise.
4124 * m32r-tdep.c (m32r_write_pc): Likewise.
4125 * m88k-tdep.c (m88k_write_pc): Likewise.
4126 * mep-tdep.c (mep_write_pc): Likewise.
4127 * mips-tdep.c (mips_write_pc): Likewise.
4128 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4129 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4130 * sparc-tdep.c (sparc_write_pc): Likewise.
4131 * spu-tdep.c (spu_write_pc): Likewise.
4132
4133 * mips-tdep.c (read_signed_register): Remove.
4134 (read_signed_register_pid): Likewise.
4135 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4136 Use REGCACHE instead of calling read_signed_register_pid.
4137
e4fd649a
UW
41382007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4139
4140 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4141 * gdbarch.c, gdbarch.h: Regenerate.
4142 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4143 (push_dummy_code): Likewise. Pass it to callee.
4144 (call_function_by_hand): Pass current regcache to push_dummy_code.
4145
4146 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4147 argument. Use it instead of current_regcache.
4148
4149 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4150 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4151
60ade65d
UW
41522007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4153
4154 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4155 * gdbarch.c, gdbarch.h: Regenerate.
4156 * infrun.c (handle_inferior_event): Pass current frame to
4157 gdbarch_get_longjmp_target.
4158
4159 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4160 Read registers from FRAME instead of using read_register.
4161 Use get_frame_arch instead of current_gdbarch.
4162 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4163 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4164 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4165 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4166 (mips64_linux_get_longjmp_target): Likewise.
4167 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4168
52f729a7
UW
41692007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4170
4171 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4172 * gdbarch.c, gdbarch.h: Regenerate.
4173 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4174 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4175 * infrun.c (handle_inferior_event): Pass current frame to
4176 gdbarch_skip_trampoline_code and skip_language_trampoline.
4177
4178 * language.c (unk_lang_trampoline): Add FRAME argument.
4179 (skip_language_trampoline): Add FRAME argument. Pass it to
4180 skip_trampoline callback.
4181 * language.h: Add forward declaration of struct frame_info.
4182 (struct language_defn): Add FRAME argument to skip_trampoline.
4183 (skip_language_trampoline): Add FRAME argument.
4184 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4185 to skip_trampoline callback.
4186 * cp-abi.h: Add forward declaration of struct frame_info.
4187 (cplus_skip_trampoline): Add FRAME argument.
4188 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4189 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4190 to gdbarch_skip_trampoline_code.
4191 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4192 to gdbarch_skip_trampoline_code.
4193
4194 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4195 * symtab.h (find_solib_trampoline_target): Likewise.
4196 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4197 find_solib_trampoline_target.
4198
4199 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4200 from FRAME instead of calling read_register.
4201
4202 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4203 argument. Read registers from FRAME instead of using read_register.
4204 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4205 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4206
4207 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4208 argument.
4209
4210 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4211
4212 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
4213 registers from FRAME instead of using read_signed_register.
4214
4215 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4216 argument.
4217 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
4218 instead of using read_register.
4219 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
4220 ppc64_standard_linkage_target.
4221 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
4222 Pass it to find_solib_trampoline_target. Read registers from FRAME
4223 instead of using read_register.
4224
4225 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
4226 argument.
4227
0b1b3e42
UW
42282007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4229
4230 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
4231 FRAME argument.
4232 * gdbarch.c, gdbarch.h: Regenerate.
4233 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
4234
4235 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
4236 registers from FRAME instead of using read_register.
4237 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4238 to alpha_next_pc. Use get_frame_pc instead of read_pc.
4239 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
4240 argument by FRAME.
4241
4242 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
4243 from FRAME instead of using read_register.
4244 (thumb_get_next_pc): Likewise.
4245 (arm_get_next_pc): Likewise.
4246 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4247 to arm_get_next_pc. Use get_frame_pc instead of read_register.
4248 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
4249 argument by FRAME.
4250
4251 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
4252 from FRAME instead of using read_register.
4253 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4254 to find_step_target.
4255
4256 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
4257 from FRAME instead of using read_register / read_signed_register.
4258 (extended_mips16_next_pc): Likewise.
4259 (mips16_next_pc): Likewise.
4260 (mips_next_pc): Likewise.
4261 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4262 to mips_next_pc. Use get_frame_pc instead of read_pc.
4263 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
4264 argument by FRAME.
4265
4266 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
4267 of current frame. Read registers from FRAME.
4268 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
4269 branch_dest. Use get_frame_pc instead of read_pc.
4270 (rs6000_software_single_step): Likewise.
4271 (bl_to_blrl_insn_p): Do not call branch_dest.
4272 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
4273 argument by FRAME.
4274
4275 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
4276 Read registers from FRAME instead of current regcache.
4277 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
4278 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
4279 * sparc-tdep.c (sparc_address_from_register): Remove.
4280 (sparc_analyze_control_transfer): Pass FRAME argument instead of
4281 GDBARCH. Pass FRAME to step_trap callback.
4282 (sparc_step_trap): Add FRAME argument.
4283 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4284 to sparc_analyze_control_transfer. Read registers from FRAME instead
4285 of calling sparc_address_from_register.
4286 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
4287 step_trap callback.
4288 (sparc_address_from_register): Remove prototype.
4289 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
4290 (sparcnbsd_step_trap): Add FRAME argument.
4291
4292 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
4293 by FRAME. Read registers from FRAME instead of REGCACHE.
4294
9c9acae0
UW
42952007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4296
4297 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
4298 instead of calling read_register.
4299
4300 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
4301 calling write_register.
4302
4303 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
4304 calling write_register.
4305
4306 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
4307 instead of calling read_register.
4308 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
4309 instead of calling read_register and write_register.
4310
4311 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
4312 instead of current_regcache.
4313
4314 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
4315 of calling write_register.
4316 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
4317 parameter instead of current_regcache.
4318
4319 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
4320 instead of calling read_register.
4321 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
4322 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
4323 (mips_n32n64_push_dummy_call): Likewise.
4324 (mips_o32_push_dummy_call): Likewise.
4325 (mips_o64_push_dummy_call): Likewise.
4326
4327 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
4328 parameter instead of current_regcache.
4329
4330 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
4331 Use it instead of read_register and write_register.
4332 (xtensa_register_read_masked): Likewise.
4333 (xtensa_pseudo_register_read): Update call.
4334 (xtensa_pseudo_register_write): Likewise.
4335 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
4336 instead of calling read_register.
4337 (xtensa_push_dummy_call): Update comment.
4338
d2ca4222
UW
43392007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4340
4341 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
4342 by frame_unwind_register_signed calls.
4343 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
4344 frame allocations when called with NULL NEXT_FRAME parameter.
4345 (read_next_frame_reg): Remove.
4346
4347 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
4348 instead of reading the FPSCR register.
4349 (sh_frame_cache): Pass unwound FPSCR register value to
4350 sh_analyze_prologue.
4351 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
4352
4353 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
4354 instead of reading the CTBP register.
4355 (v850_frame_cache): Pass unwound CTBP register value to
4356 v850_analyze_prologue.
4357
c458d6db
UW
43582007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4359
4360 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
4361 * sh-tdep.c (sh_show_regs): Likewise.
4362 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
4363 (sh_generic_show_regs): Add FRAME parameter. Use register
4364 values from that frame instead of calling read_register.
4365 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
4366 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
4367 sh_dsp_show_regs): Likewise.
4368 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
4369 sh64_show_regs): Likewise.
4370
a9614958
UW
43712007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4372
4373 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
4374 current regcache instead of calling read_register.
4375
3d1a74ac
UW
43762007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4377
4378 * mep-tdep.c (current_me_module): Read from current regcache
4379 instead of calling read_register.
4380 (current_options): Likewise.
4381
1b5a9a8f
UW
43822007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4383
4384 * cris-tdep.c (cris_stopped_data_address): Read register values
4385 from current frame instead of calling read_register.
4386 * frv-tdep.c (frv_stopped_data_address): Likewise.
4387
982db460
UW
43882007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4389
4390 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
4391 instead of write_register (PC_REGNUM, ...).
4392
b4397864
UW
43932007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4394
4395 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
4396 explaining why the PC adjustment code is necessary.
4397
8ed86d01
VP
43982007-06-15 Vladimir Prus <vladimir@codesourcery.com>
4399
4400 * m68k-tdep.h (enum m68k_flavour): New.
4401 (struct gdbarch_tdep): New fields
4402 float_return, flavour and fpregs_present.
4403 * m68k-tdep.c (m68k_register_type): Use
4404 fpregs_present and conditionalize floating
4405 registers type on flavour.
4406 (m68k_register_names): New.
4407 (m68k_register_name): Use the above.
4408 (m68k_convert_register_p): Consult fpregs_present.
4409 (m68k_register_to_value, m68k_value_to_register):
4410 Use register_type to obtain the type of floating
4411 point registers.
4412 (m68k_svr4_extract_return_value): Check tdep->float_return.
4413 Use register_type to get the type of floating
4414 point regiters.
4415 (m68k_svr4_store_return_value): Likewise.
4416 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
4417 (m68k_analyze_register_saves): Likewise.
4418 (m68k_gdbarch_init): Extract infromation
4419 from XML description, if present. Guess coldfire by
4420 looking at the file, if present. Conditionalize
4421 setting of long double format. Set decr_pc_after_break
4422 to 2 on coldfire and fido. Enable XML-driven
4423 register description.
4424 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
4425 size of tdep->fpreg_type, as opposed to hardcoded value.
4426 * Makefile.in (m68k-tdep.o): Update dependencies.
4427
83cc5c53
UW
44282007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4429
4430 * NEWS: Mention "info spu" commands and qXfer:spu:read and
4431 qXfer:spu:write remote packet types.
4432
1780a0ed
DJ
44332007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4434
4435 * xml-tdesc.c (tdesc_start_target): New.
4436 (target_attributes): New.
4437 (tdesc_elements): Use it.
4438 * features/gdb-target.dtd: Add #FIXED version attribute for
4439 <target>.
4440
98a29c7e
DJ
44412007-06-13 Arthur Huillet <arthur.huillet@free.fr>
4442
4443 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
4444
9dcbb931
DJ
44452007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
4446
4447 * fork-child.c (fork_inferior): Update comment.
4448
117ce543
DJ
44492007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4450
4451 * features/Makefile: Generate regformats for mips-linux and
4452 mips64-linux.
4453 * features/sort-regs.xsl: Correct typo.
4454 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
4455 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
4456 files.
4457
822b6570
DJ
44582007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4459
4460 * config/mips/linux.mh (TDEP_XML): New.
4461 * features/mips-linux.xml, features/mips64-linux.xml: New files.
4462 * mips-linux-nat.c (mips_linux_register_addr): Handle
4463 MIPS_RESTART_REGNUM.
4464 (mips64_linux_register_addr): Likewise.
4465 (super_xfer_partial, mips_linux_xfer_partial): New.
4466 (_initialize_mips_linux_nat): Add them to the target_ops.
4467 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
4468 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
4469 (mips_linux_o32_sigframe_init)
4470 (mips_linux_n32n64_sigframe_init): Likewise.
4471 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
4472 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
4473 "org.gnu.gdb.mips.linux" feature.
4474 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
4475 (mips_linux_restart_reg_p): New prototype.
4476 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
4477 initialization routine.
4478 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
4479
f8b73d13
DJ
44802007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4481
4482 * Makefile.in (mips-tdep.o): Update.
4483 * mips-tdep.c (struct register_alias, mips_o32_aliases)
4484 (mips_n32_n64_aliases, mips_register_aliases): New.
4485 (mips_register_name): Call tdesc_register_name.
4486 (mips_tdesc_register_reggroup_p): New.
4487 (mips_pseudo_register_type, value_of_mips_user_reg): New.
4488 (mips_gdbarch_init): Add target-described register support.
4489 Register aliases for register names.
4490 * target-descriptions.c (tdesc_register_name): Make global.
4491 (tdesc_register_in_reggroup_p): New function, broken out from
4492 tdesc_register_reggroup_p.
4493 (tdesc_register_reggroup_p): Use it.
4494 * target-descriptions.h (tdesc_register_name)
4495 (tdesc_register_in_reggroup_p): New prototypes.
4496 * NEWS: Correct formatting. Mention MIPS register support.
4497 * features/mips-cp0.xml, features/mips-fpu.xml,
4498 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
4499 features/mips64-cpu.xml: New files.
4500
17a912b6
UW
45012007-06-13 Markus Deuling <deuling@de.ibm.com>
4502
4503 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
4504 * valops.c (value_cast): Likewise.
4505 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
4506 * ui-out.c (ui_out_field_core_addr): Likewise.
4507 * tracepoint.c (tracepoints_info): Likewise.
4508 * symtab.c (print_msymbol_info): Likewise.
4509 * solib-irix.c (irix_current_sos)
4510 (irix_open_symbol_file_object): Likewise.
4511 * remote.c (build_remote_gdbarch_data): Likewise.
4512 * prologue-value.c (make_pv_area): Likewise.
4513 * procfs.c (info_mappings_callback): Likewise.
4514 * printcmd.c (print_scalar_formatted)
4515 (deprecated_print_address_numeric): Likewise.
4516 * memattr.c (mem_info_command): Likewise.
4517 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
4518 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
4519 * exec.c (print_section_info): Likewise.
4520 * dwarf2read.c (read_subrange_type): Likewise.
4521 * dwarf2loc.c (find_location_expression): Likewise.
4522 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
4523 (signed_address_type, execute_stack_op): Likewise.
4524 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
4525 * gdbarch.c, gdbarch.h: Regenerate.
4526
1143fffb
UW
45272007-06-13 Markus Deuling <deuling@de.ibm.com>
4528
4529 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
4530 * arch-utils.c (show_architecture): Likewise.
4531 * remote-mips.c (mips_open): Likewise
4532 * nto-tdep.c (nto_find_and_open_solib)
4533 (nto_init_solib_absolute_prefix): Likewise.
4534 * nto-procfs (procfs_open): Likewise.
4535 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
4536 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
4537 * gdbarch.c, gdbarch.h: Regenerate.
4538
4fe99ffb
UW
45392007-06-13 Markus Deuling <deuling@de.ibm.com>
4540
4541 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
4542 * gdbtypes.c (build_flt): Likewise.
4543 * gdbarch.c, gdbarch.h: Regenerate.
4544
3b3b875c
UW
45452007-06-13 Markus Deuling <deuling@de.ibm.com>
4546
4547 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
4548 gdbarch_breakpoint_from_pc.
4549 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
4550 * remote.c (remote_insert_breakpoint)
4551 (remote_insert_hw_breakpoint): Likewise.
4552 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
4553 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
4554 * breakpoint.h (bp_target_info): Likewise (comment).
4555 * breakpoint.c (read_memory_nobpt): Likewise.
4556 * mem-break.c (default_memory_insert_breakpoint): Likewise.
4557 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
4558 * gdbarch.c, gdbarch.h: Regenerate.
4559
819844ad
UW
45602007-06-13 Markus Deuling <deuling@de.ibm.com>
4561
4562 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
4563 * solib-svr4.c (svr4_truncate_ptr): Likewise.
4564 * solib-pa64.c (read_dynamic_info): Likewise.
4565 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
4566 * solib.c (info_sharedlibrary_command): Likewise.
4567 * s390-nat.c (SUBOFF): Likewise.
4568 * p-valprint.c (pascal_val_print): Likewise.
4569 * procfs.c (info_proc_mappings): Likewise.
4570 * printcmd.c (decode_format): Likewise.
4571 * nto-tdep.c (nto_truncate_ptr): Likewise.
4572 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4573 (mips64_linux_get_longjmp_target): Likewise.
4574 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4575 * jv-valprint.c (java_value_print): Likewise.
4576 * jv-lang.c (get_java_object_header_size): Likewise.
4577 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4578 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4579 (hppa_hpux_unwind_adjust_stub): Likewise.
4580 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4581 * gdbtypes.c (make_pointer_type, make_reference_type)
4582 (smash_to_memberptr_type): Likewise.
4583 * gdbarch.c, gdbarch.h: Regenerate.
4584
0cc93a06
DJ
45852007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4586
4587 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
4588 (print_gp_register_row): Stop before printing a register bigger
4589 than the ABI register size.
4590 (mips_print_registers_info): Update call to mips_print_register.
4591
67f3407f
DJ
45922007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4593
4594 * expression.h (enum exp_opcode): Document a register name for
4595 OP_REGISTER.
4596 * parse.c (write_dollar_variable): Write the register name for
4597 OP_REGISTER.
4598 (operator_length_standard): Expect the register name following
4599 OP_REGISTER.
4600 * ada-lang.c (resolve_subexp): Likewise.
4601 * ax-gdb.c (gen_expr): Likewise.
4602 * eval.c (evaluate_subexp_standard): Likewise.
4603 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4604 Likewise.
4605 * tracepoint.c (encode_actions): Likewise.
4606
0caa462c
DJ
46072007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
4608
4609 * utils.c (set_screen_size): Use INT_MAX for default columns.
4610
4de6483e
UW
46112007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
4612
4613 * remote.c (remote_protocol_features): Add qXfer:spu:read and
4614 qXfer:spu:write packet types.
4615
cafad45b
UW
46162007-06-12 Markus Deuling <deuling@de.ibm.com>
4617
4618 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
4619 * gdbarch.c, gdbarch.h: Regenerate.
4620
055d23b8
UW
46212007-06-12 Markus Deuling <deuling@de.ibm.com>
4622
4623 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
4624 gdbarch_stab_reg_to_regnum.
4625 * stabsread.c (define_symbol): Likewise.
4626 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
4627 gdbarch_ecoff_reg_to_regnum.
4628 * mdebugread.c (parse_symbol): Likewise.
4629 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
4630 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
4631 gdbarch_dwarf_reg_to_regnum.
4632 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
4633 * coffread.c (process_coff_symbol): Likewise.
4634 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
4635 gdbarch_dwarf2_reg_to_regnum.
4636 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
4637 (locexpr_describe_location): Likewise.
4638 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
4639 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
4640 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
4641 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
4642 * gdbarch.c, gdbarch.h: Regenerate.
4643
260edbc2
UW
46442007-06-12 Markus Deuling <deuling@de.ibm.com>
4645
4646 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
4647 gdbarch_smash_text_address.
4648 * somread.c (som_symtab_read): Likewise.
4649 * elfread.c (record_minimal_symbol): Likewise.
4650 * dbxread.c (process_one_symbol): Likewise.
4651 * coffread.c (coff_symtab_read): Likewise.
4652 * gdbarch.c, gdbarch.h: Regenerate.
4653
c1afe53d
UW
46542007-06-12 Markus Deuling <deuling@de.ibm.com>
4655
4656 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
4657 * findvar.c (value_from_register): Likewise.
4658 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
4659 * valops.c (value_assign): Likewise.
4660 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
4661 gdbarch_convert_register_p.
4662 * findvar.c (value_from_register): Likewise.
4663 * valops.c (value_assign): Likewise.
4664 * gdbarch.c, gdbarch.h: Regenerate.
4665
474c1661
UW
46662007-06-12 Markus Deuling <deuling@de.ibm.com>
4667
4668 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
4669 gdbarch_register_sim_regno.
4670 * sim-regno.h (sim_regno): Likewise (comment).
4671 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
4672 * gdbarch.c, gdbarch.h: Regenerate.
4673
c7bb205c
UW
46742007-06-12 Markus Deuling <deuling@de.ibm.com>
4675
4676 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
4677 gdbarch_virtual_frame_pointer.
4678 * tracepoint.c (encode_actions): Likewise.
4679 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
4680 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
4681 * gdbarch.c, gdbarch.h: Regenerate.
4682
ea06eb3d
UW
46832007-06-12 Markus Deuling <deuling@de.ibm.com>
4684
4685 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
4686 * p-lang.c (pascal_create_fundamental_type): Likewise.
4687 * objc-lang.c (objc_create_fundamental_type): Likewise.
4688 * mdebugread.c (_initialize_mdebugread): Likewise.
4689 * m2-lang.c (m2_create_fundamental_type)
4690 (_initialize_m2_language): Likewise.
4691 * gdbtypes.c (build_gdbtypes): Likewise.
4692 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4693 * doublest.c (floatformat_from_length): Likewise.
4694 * c-lang.c (c_create_fundamental_type): Likewise.
4695 * ada-lang.c (ada_create_fundamental_type)
4696 (ada_language_arch_info): Likewise.
4697 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
4698 * value.c (unpack_double): Likewise (comment).
4699 * gdbtypes.c (build_gdbtypes): Likewise.
4700 * doublest.c (floatformat_from_length): Likewise.
4701 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
4702 * valarith.c (value_binop): Likewise.
4703 * p-lang.c (pascal_create_fundamental_type): Likewise.
4704 * objc-lang.c (objc_create_fundamental_type): Likewise.
4705 * mdebugread.c (_initialize_mdebugread): Likewise.
4706 * m2-lang.c (m2_create_fundamental_type): Likewise.
4707 * gdbtypes.c (build_gdbtypes): Likewise.
4708 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4709 * doublest.c (floatformat_from_length): Likewise.
4710 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
4711 * c-lang.c (c_create_fundamental_type): Likewise.
4712 * ada-lex.l (processReal): Likewise.
4713 * ada-lang.c (ada_create_fundamental_type)
4714 (ada_language_arch_info): Likewise.
4715 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
4716 * value.c (unpack_double): Likewise (comment).
4717 * gdbtypes.c (build_gdbtypes): Likewise.
4718 * doublest.c (floatformat_from_length): Likewise.
4719 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
4720 gdbarch_long_double_bit.
4721 * p-lang.c (pascal_create_fundamental_type): Likewise.
4722 * objc-lang.c (objc_create_fundamental_type): Likewise.
4723 * m2-lang.c (m2_create_fundamental_type): Likewise.
4724 * gdbtypes.c (build_gdbtypes): Likewise.
4725 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4726 * doublest.c (floatformat_from_length): Likewise.
4727 * c-lang.c (c_create_fundamental_type): Likewise.
4728 * ada-lex.l (processReal): Likewise.
4729 * ada-lang.c (ada_create_fundamental_type)
4730 (ada_language_arch_info): Likewise.
4731 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
4732 gdbarch_long_double_format.
4733 * gdbtypes.c (build_gdbtypes): Likewise.
4734 * doublest.c (floatformat_from_length): Likewise.
4735 * gdbarch.c, gdbarch.h: Regenerate.
4736
9a76efb6
UW
47372007-06-12 Markus Deuling <deuling@de.ibm.com>
4738
4739 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
4740 * ada-lang.c (ada_create_fundamental_type)
4741 (ada_language_arch_info): Likewise.
4742 * c-lang.c (c_create_fundamental_type): Likewise.
4743 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
4744 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4745 * m2-lang.c (m2_create_fundamental_type): Likewise.
4746 * objc-lang.c (objc_create_fundamental_type): Likewise.
4747 * p-lang.c (pascal_create_fundamental_type): Likewise.
4748 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
4749 * c-exp.y (parse_number): Likewise.
4750 * objc-exp.y (parse_number): Likewise.
4751 * ada-lex.l (processInt): Likewise.
4752 * f-exp.y (parse_number): Likewise.
4753 * p-exp.y (parse_number): Likewise.
4754 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
4755 (gdbtypes_post_init, build_gdbtypes): Likewise.
4756 * p-lang.c (pascal_create_fundamental_type): Likewise.
4757 * parse.c (build_parse): Likewise.
4758 * xcoffread.c (_initialize_xcoffread): Likewise.
4759 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
4760 (read_range_type): Likewise.
4761 * objc-lang.c (objc_create_fundamental_type): Likewise.
4762 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
4763 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
4764 (m2_create_fundamental_type): Likewise.
4765 * c-lang.c (c_create_fundamental_type): Likewise.
4766 * coffread.c (coff_read_enum_type): Likewise.
4767 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
4768 * dwarf2read.c (new_symbol): Likewise.
4769 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
4770 * c-exp.y (parse_number): Likewise.
4771 * objc-exp.y (parse_number): Likewise.
4772 * ada-lex.l (processInt): Likewise.
4773 * f-exp.y (parse_number): Likewise.
4774 * p-exp.y (parse_number): Likewise.
4775 * valarith.c (value_binop): Likewise.
4776 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
4777 * ada-lang.c (ada_create_fundamental_type)
4778 (ada_language_arch_info): Likewise.
4779 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
4780 * symfile.c (TARGET_LONG_BYTES): Likewise.
4781 * p-lang.c (pascal_create_fundamental_type): Likewise.
4782 * objc-lang.c (objc_create_fundamental_type): Likewise.
4783 * m2-lang.c (m2_create_fundamental_type): Likewise.
4784 * f-lang.c (f_create_fundamental_type): Likewise.
4785 * c-lang.c (c_create_fundamental_type): Likewise.
4786 * coffread.c (decode_base_type): Likewise.
4787 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
4788 * c-exp.y (parse_number): Likewise.
4789 * objc-exp.y (parse_number): Likewise.
4790 * p-exp.y (parse_number): Likewise.
4791 * ada-lang.c (ada_create_fundamental_type)
4792 (ada_language_arch_info): Likewise.
4793 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
4794 * stabsread.c (read_range_type): Likewise.
4795 * p-lang.c (pascal_create_fundamental_type): Likewise.
4796 * objc-lang.c (objc_create_fundamental_type): Likewise.
4797 * m2-lang.c (m2_create_fundamental_type): Likewise.
4798 * f-lang.c (f_create_fundamental_type): Likewise.
4799 * c-lang.c (c_create_fundamental_type): Likewise.
4800 * gdbarch.c, gdbarch.h: Regenerate.
4801
272dfcfd
AS
48022007-06-12 Andreas Schwab <schwab@suse.de>
4803
4804 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
4805 (struct frame_unwind): Add dealloc_cache.
4806 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
4807
4808 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
4809 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
4810 (libunwind_frame_unwind): Set dealloc_cache.
4811 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
4812
0e7f50da
UW
48132007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4814 Markus Deuling <deuling@de.ibm.com>
4815
4816 * remote.c (remote_write_qxfer): New function.
4817 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
4818 (remote_read_qxfer): Do not cache empty objects.
4819 (_initialize_remote): Add PACKET_qXfer_spu_read and
4820 PACKET_qXfer_spu_write.
4821
23d964e7
UW
48222007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4823
4824 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
4825 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
4826
4827 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
4828 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
4829 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
4830 * spu-tdep.c (infospucmdlist): New variable.
4831 (spu_register_name): Handle additional pseudo registers.
4832 (spu_register_type): Likewise.
4833 (spu_pseudo_register_read): Likewise.
4834 (spu_pseudo_register_write): Likewise.
4835 (spu_pseudo_register_read_spu): New function.
4836 (spu_pseudo_register_write_spu): Likewise.
4837 (info_spu_event_command): New function.
4838 (info_spu_signal_command): Likewise.
4839 (info_spu_mailbox_list): Likewise.
4840 (info_spu_mailbox_command): Likewise.
4841 (spu_mfc_get_bitfield): Likewise.
4842 (info_spu_dma_cmdlist): Likewise.
4843 (info_spu_dma_command): Likewise.
4844 (info_spu_proxydma_command): Likewise.
4845 (info_spu_command): Likewise.
4846 (_initialize_spu_tdep): Install "info spu" commands.
4847
374c1d38
UW
48482007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4849
4850 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
4851 accessing non-seekable spufs files.
4852
e76f05fa
UW
48532007-06-09 Markus Deuling <deuling@de.ibm.com>
4854
4855 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
4856 gdbarch_skip_trampoline_code.
4857 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4858 * objc-lang.c (objc_skip_trampoline)
4859 (objc_submethod_helper_data): Likewise.
4860 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
4861 * infrun.c (handle_inferior_event): Likewise.
4862 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
4863 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
4864 gdbarch_in_solib_return_trampoline.
4865 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
4866 * infrun.c (handle_inferior_event): Likewise.
4867 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
4868 * gdbarch.c, gdbarch.h: Regenerate.
4869
a433963d
UW
48702007-06-09 Markus Deuling <deuling@de.ibm.com>
4871
4872 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
4873 * symtab.c (find_function_start_sal, in_prologue): Likewise.
4874 * linespec.c (minsym_found): Likewise.
4875 * infrun.c (step_into_function): Likewise.
4876 * gdbarch.c, gdbarch.h: Regenerate.
4877
aea8766f
UW
48782007-06-09 Markus Deuling <deuling@de.ibm.com>
4879
4880 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
4881 * valops.c (value_allocate_space_in_inferior): Likewise.
4882 * gdbarch.c, gdbarch.h: Regenerate.
4883
8da95a30
UW
48842007-06-09 Markus Deuling <deuling@de.ibm.com>
4885
4886 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
4887 gdbarch_memory_insert_breakpoint.
4888 * mem-break.c (memory_insert_breakpoint): Likewise.
4889 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
4890 gdbarch_memory_remove_breakpoint.
4891 * mem-break.c (memory_remove_breakpoint): Likewise.
4892 * gdbarch.c, gdbarch.h: Regenerate.
4893
985969a9
UW
48942007-06-09 Markus Deuling <deuling@de.ibm.com>
4895
4896 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
4897 gdbarch_fetch_tls_load_module_address.
4898 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
4899 gdbarch_fetch_tls_load_module_address_p.
4900 * gdbarch.c, gdbarch.h: Regenerate.
4901
b798847d
UW
49022007-06-09 Markus Deuling <deuling@de.ibm.com>
4903
4904 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
4905 gdbarch_decr_pc_after_break.
4906 * tracepoint.c (trace_dump_command): Likewise.
4907 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
4908 * linux-thread-db.c (check_event): Likewise.
4909 * linux-nat.c (cancel_breakpoints_callback): Likewise.
4910 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
4911 * frame.h: Likewise (comment).
4912 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
4913 * aix-thread.c (aix_thread_wait): Likewise.
4914 * gdbarch.c, gdbarch.h: Regenerate.
4915
849957d9
UW
49162007-06-09 Markus Deuling <deuling@de.ibm.com>
4917
4918 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
4919 gdbarch_address_class_type_flags.
4920 * dwarf2read.c (read_tag_pointer_type): Likewise.
4921 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
4922 gdbarch_address_class_type_flags_p.
4923 * dwarf2read.c (read_tag_pointer_type): Likewise.
4924 * gdbarch.c, gdbarch.h: Regenerate.
4925
bf6ae464
UW
49262007-06-09 Markus Deuling <deuling@de.ibm.com>
4927
4928 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
4929 * value.c (value_as_address): Likewise (comment).
4930 * remote-mips.c (common_breakpoint): Likewise.
4931 * regcache.c (read_pc_pid): Likewise.
4932 * printcmd.c (do_one_display): Likewise.
4933 * monitor.c (monitor_write_memory, monitor_read_memory)
4934 (monitor_insert_breakpoint): Likewise.
4935 * mips-tdep.c (heuristic_proc_start): Likewise.
4936 * infrun.c (insert_step_resume_breakpoint_at_frame)
4937 (insert_step_resume_breakpoint_at_caller): Likewise.
4938 * buildsym.c (record_line): Likewise.
4939 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
4940 (arm_get_next_pc): Likewise.
4941 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
4942 (store_regs): Likewise.
4943 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4944 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
4945 * gdbarch.c, gdbarch.h: Regenerate.
4946
c9f4d572
UW
49472007-06-09 Markus Deuling <deuling@de.ibm.com>
4948
4949 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
4950 * tracepoint.c (scope_info): Likewise.
4951 * target.c (debug_print_register): Likewise.
4952 * stack.c (frame_info): Likewise.
4953 * sh-tdep.c (sh_register_reggroup_p): Likewise.
4954 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
4955 (sh64_media_print_registers_info)
4956 (sh64_compact_print_registers_info): Likewise.
4957 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
4958 * remote-sim.c (gdbsim_fetch_register): Likewise.
4959 * remote.c (packet_reg): Likewise (comment).
4960 * reggroups.c (default_register_reggroup_p): Likewise.
4961 * regcache.c (regcache_dump): Likewise.
4962 * printcmd.c (address_info): Likewise.
4963 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4964 * mt-dep.c (mt_registers_info): Likewise.
4965 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
4966 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
4967 (mips_read_fp_register_double, mips_print_fp_register)
4968 (mips_print_register, print_gp_register_row, mips_print_registers_info)
4969 (mips_register_sim_regno): Likewise.
4970 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
4971 * inf-ptrace.c (inf_ptrace_fetch_register)
4972 (inf_ptrace_store_register): Likewise.
4973 * infcmd.c (default_print_registers_info): Likewise.
4974 * ia64-linux-nat.c (ia64_linux_fetch_register)
4975 (ia64_linux_store_register): Likewise.
4976 * i386-linux-nat.c (fetch_register, store_register): Likewise.
4977 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
4978 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4979 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
4980 (hppa_hpux_store_register): Likewise.
4981 * findvar.c (locate_var_value): Likewise.
4982 * dwarf2loc.c (locexpr_describe_location): Likewise.
4983 * dwarf2-frame.c (execute_cfa_program): Likewise.
4984 * arm-tdep.c (arm_push_dummy_call): Likewise.
4985 * arch-utils.c (legacy_register_sim_regno): Likewise.
4986 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
4987 * alpha-nat.c (fetch_osf_core_registers): Likewise.
4988 * mi/mi-main.c (mi_cmd_data_list_register_names)
4989 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
4990 (mi_cmd_data_write_register_values): Likewise.
4991 * gdbarch.c, gdbarch.h: Regenerate.
4992
1fc01e03
DJ
49932007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4994
4995 * target-memory.c (blocks_to_erase): Correct off-by-one error.
4996
632110b1
VP
49972007-06-06 Vladimir Prus <vladimir@codesourcery.com>
4998
4999 * remote.c (process_g_packet): Don't check size.
5000 * gdbarch.sh: Remove register_bytes_ok.
5001 * gdbarch.c: Regenerated.
5002 * gdbarch.h: Regenerated.
5003 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5004 (m68k_register_bytes_ok): Remove.
5005 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5006
f43ae3f1
AS
50072007-06-06 Andreas Schwab <schwab@suse.de>
5008
5009 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5010 (destroy_addr_space_name): Define.
5011 (libunwind_load): Get address of destroy_addr_space function.
5012 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5013 returning unsuccessfully.
5014 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5015 returning.
5016 (libunwind_sigtramp_frame_sniffer): Likewise.
5017 (libunwind_get_reg_special): Likewise.
5018
d99344c0
UW
50192007-06-06 Markus Deuling <deuling@de.ibm.com>
5020
5021 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5022 gdbarch_fetch_pointer_argument.
5023 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5024 * gdbarch.c, gdbarch.h: Regenerate.
5025
e6cf7916
UW
50262007-06-06 Markus Deuling <deuling@de.ibm.com>
5027
5028 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5029 gdbarch_have_nonsteppable_watchpoint.
5030 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5031 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5032 gdbarch_cannot_step_breakpoint.
5033 * infrun.c (resume): Likewise.
5034 * gdbarch.c, gdbarch.h: Regenerate.
5035
bbcf301a
UW
50362007-06-06 Markus Deuling <deuling@de.ibm.com>
5037
5038 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5039 * stack.c (print_frame_args): Likewise.
5040 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5041 * stack.c (print_args_stub, frame_info): Likewise.
5042 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5043 * stack.c (print_args_stub, frame_info): Likewise.
5044 * gdbarch.c, gdbarch.h: Regenerate.
5045
95f1da47
UW
50462007-06-06 Markus Deuling <deuling@de.ibm.com>
5047
5048 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5049 gdbarch_coff_make_msymbol_special.
5050 * coffread.c (coff_symtab_read): Likewise.
5051 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5052 gdbarch_elf_make_msymbol_special.
5053 * elfread.c (elf_symtab_read): Likewise.
5054 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5055 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5056 * gdbarch.c, gdbarch.h: Regenerate.
5057
39e8369e
UW
50582007-06-06 Markus Deuling <deuling@de.ibm.com>
5059
5060 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5061 gdbarch_frame_red_zone_size.
5062 * gdbarch.c, gdbarch.h: Regenerate.
5063
4d1e7dd1
UW
50642007-06-06 Markus Deuling <deuling@de.ibm.com>
5065
5066 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5067 * infcall.c (call_function_by_hand): Likewise.
5068 * gcore.c (derive_stack_segment): Likewise.
5069 * frame.c (frame_id_inner): Likewise.
5070 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5071 * ada-lang.c (ensure_lval): Likewise.
5072 * gdbarch.c, gdbarch.h: Regenerate.
5073
76e71323
UW
50742007-06-06 Markus Deuling <deuling@de.ibm.com>
5075
5076 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5077 gdbarch_address_to_pointer.
5078 * findvar.c (store_typed_address): Likewise.
5079 * gdbtypes.c (make_pointer_type): Likewise (comment).
5080 * procfs.c (procfs_address_to_host_pointer): Likewise.
5081 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5082 (value_of_builtin_frame_fp_reg): Likewise.
5083 (value_of_builtin_frame_pc_reg): Likewise.
5084 * utils.c (paddress): Likewise (comment).
5085 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5086 gdbarch_pointer_to_address.
5087 * findvar.c (extract_typed_address): Likewise.
5088 * gdbtypes.c (make_pointer_type): Likewise (comment).
5089 * valops.c (value_cast): Likewise (comment).
5090 * gdbarch.c, gdbarch.h: Regenerate.
5091
91104499
UW
50922007-06-06 Markus Deuling <deuling@de.ibm.com>
5093
5094 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5095 * infrun.c (handle_inferior_event): Likewise.
5096 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5097 gdbarch_get_longjmp_target_p.
5098 * breakpoint.c (breakpoint_re_set): Likewise.
5099 * infrun.c (handle_inferior_event): Likewise.
5100 * gdbarch.c, gdbarch.h: Regenerate.
5101
d3e9c991
UW
51022007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5103
5104 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5105 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5106 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5107 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5108 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5109 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5110 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5111 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5112 current_ex_event, child_get_current_exception_event): Remove.
5113 (hppa_hpux_inferior_created): Remove.
5114 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5115
5116 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5117 (deprecated_exception_support_initialized): Remove.
5118 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5119 (deprecated_exception_support_initialized): Remove.
5120 (breakpoint_init_inferior): Remove handling of non-zero
5121 deprecated_exception_catchpoints_are_fragile.
5122
5123 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5124 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5125 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5126 deprecated_hp_som_som_object_present.
5127 * eval.c (evaluate_subexp_standard): Likewise.
5128 * valops.c (value_cast): Likewise.
5129
5130 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5131 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5132 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5133
5e787d22
UW
51342007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5135
5136 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5137 (struct objfile): Remove import_list, import_list_size,
5138 export_list, export_list_size members.
5139 (is_in_import_list): Remove prototype.
5140 * objfiles.c (is_in_import_list): Remove.
5141 * somread.c (init_import_symbols, init_export_symbols): Remove.
5142 (som_symfile_read): Do not call init_import_symbols. Do not
5143 set objfile->export_list and objfile->export_list_size.
5144
93e7bd98
DJ
51452007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5146
5147 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5148 Use the original objfile if necessary.
5149
e1024ff1
DJ
51502007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5151
5152 * defs.h (ldirname): New prototype.
5153 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5154 missing.
5155 * utils.c (ldirname): New function.
5156 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5157
ee82e879
UW
51582007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5159
5160 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5161
513f5903
JB
51622007-06-01 Joel Brobecker <brobecker@adacore.com>
5163
5164 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5165
52a75740
UW
51662007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5167
5168 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5169
c3fc7e62
UW
51702007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5171
5172 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5173 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5174 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5175 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5176 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5177 ppc_linux_at_sigtramp_return_path): Remove.
5178
4c6b5505
UW
51792007-05-31 Markus Deuling <deuling@de.ibm.com>
5180
5181 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5182 (xtensa_register_write_masked, xtensa_register_read_masked)
5183 (xtensa_extract_return_value, xtensa_store_return_value
5184 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5185 TARGET_BYTE_ORDER by gdbarch_byte_order.
5186 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5187 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5188 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5189 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5190 (sh64_push_dummy_call, sh64_extract_return_value)
5191 (sh64_store_return_value, sh64_register_convert_to_virtual)
5192 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5193 (sh64_pseudo_register_write, sh64_do_fp_register)
5194 (sh64_frame_prev_register): Likewise.
5195 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5196 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5197 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5198 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5199 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5200 * ppc-linux-nat.c (store_register): Likewise.
5201 * nto-tdep.c (nto_find_and_open_solib)
5202 (nto_init_solib_absolute_prefix): Likewise.
5203 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5204 (mips_convert_register_p, mips_eabi_push_dummy_call)
5205 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5206 (mips_o32_push_dummy_call, mips_o32_return_value)
5207 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5208 (mips_read_fp_register_single, mips_read_fp_register_double)
5209 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5210 (mips_breakpoint_from_pc): Likewise.
5211 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5212 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5213 (mips_linux_o32_sigframe_init): Likewise.
5214 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5215 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5216 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5217 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5218 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5219 * coffread.c (process_coff_symbol): Likewise.
5220 * arm-tdep.c (convert_from_extended, convert_to_extended)
5221 (gdb_print_insn_arm): Likewise.
5222
f57d151a
UW
52232007-05-31 Markus Deuling <deuling@de.ibm.com>
5224
5225 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
5226 * i386-tdep.c (i386_dbx_reg_to_regnum)
5227 (i386_svr4_reg_to_regnum): Likewise.
5228 * inf-ptrace.c (inf_ptrace_fetch_registers)
5229 (inf_ptrace_store_registers): Likewise.
5230 * corelow.c (get_core_registers): Likewise.
5231 * i386-linux-nat.c (supply_gregset, fill_gregset)
5232 (i386_linux_fetch_inferior_registers)
5233 (i386_linux_store_inferior_registers): Likewise.
5234 * remote.c (init_remote_state,packet_reg_from_regnum)
5235 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
5236 (remote_prepare_to_store,store_registers_using_G)
5237 (remote_store_registers,remote_arch_state): Likewise.
5238 * tracepoint.c (encode_actions): Likewise.
5239 * mi/mi-main.c (mi_cmd_data_list_register_names)
5240 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5241 (mi_cmd_data_write_register_values): Likewise.
5242 * tui/tui-regs.c (tui_show_register_group)
5243 (tui_show_register_group): Likewise.
5244 * xtensa-tdep.h (FP_ALIAS): Likewise.
5245 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
5246 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
5247 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
5248 * win32-nat.c (do_win32_fetch_inferior_registers)
5249 (do_win32_store_inferior_registers,fetch_elf_core_registers
5250 * user-regs.h: Likewise (comment).
5251 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5252 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5253 * target-descriptions.h: Likewise (comment).
5254 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
5255 * target.c (debug_print_register): Likewise.
5256 * stack.c (frame_info): Likewise.
5257 * stabsread.c (define_symbol): Likewise.
5258 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
5259 (sh64_media_print_registers_info)
5260 (sh64_compact_print_registers_info): Likewise.
5261 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5262 * rs6000-nat.c (fetch_register,store_register): Likewise.
5263 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
5264 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
5265 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
5266 * remote-m32r-sdi.c (m32r_fetch_registers)
5267 (m32r_store_registers): Likewise.
5268 * reggroups.c (default_register_reggroup_p): Likewise.
5269 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
5270 (regcache_restore,regcache_dump): Likewise.
5271 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
5272 * mips-tdep.c (mips_xfer_register,mips_register_name)
5273 (mips_register_reggroup_p,mips_pseudo_register_read)
5274 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
5275 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
5276 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
5277 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
5278 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
5279 (print_gp_register_row,mips_print_registers_info)
5280 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5281 (mips_register_sim_regno): Likewise.
5282 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
5283 (mips_linux_n32n64_sigframe_init): Likewise.
5284 * mips-linux-nat.c (mips_linux_register_addr)
5285 (mips64_linux_register_addr): Likewise.
5286 * findvar.c (value_of_register): Likewise.
5287 * infcmd.c (default_print_registers_info,registers_info)
5288 (print_vector_info,print_float_info): Likewise.
5289 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
5290 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5291 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5292 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
5293 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5294 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
5295 (ia64_cannot_store_register,ia64_linux_fetch_registers)
5296 (ia64_linux_store_registers): Likewise.
5297 * hpux-thread.c (hpux_thread_fetch_registers)
5298 (hpux_thread_store_registers): Likewise.
5299 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
5300 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
5301 (h8300_register_type): Likewise.
5302 * dwarf2-frame.c (dwarf2_frame_cache)
5303 (dwarf2_frame_state_alloc_regs): Likewise.
5304 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
5305 (cris_cannot_store_register,crisv32_cannot_fetch_register)
5306 (crisv32_cannot_store_register,cris_register_name): Likewise.
5307 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
5308 * arch-utils.c (legacy_register_sim_regno)
5309 (legacy_virtual_frame_pointer): Likewise.
5310 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
5311 * arm-tdep.h: Likewise (comment).
5312 * frv-tdep.c (frv_register_sim_regno): Likewise.
5313 * m68klinux-nat.c (old_fetch_inferior_registers)
5314 (old_store_inferior_registers): Likewise.
5315 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5316 * irix5-nat.c (fetch_core_registers): Likewise.
5317 * hppa-tdep.c (hppa_frame_cache): Likewise.
5318 * hppa-linux-nat.c (hppa_linux_register_addr)
5319 (hppa_linux_fetch_inferior_registers)
5320 (hppa_linux_store_inferior_registers): Likewise.
5321 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
5322 (hppa_hpux_store_inferior_registers): Likewise.
5323 * amd64-nat.c (amd64_native_gregset_reg_offset)
5324 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
5325 * dbug-rom.c (dbug_regname): Likewise.
5326 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
5327 (HARD_PAGE_REGNUM (comment)): Likewise.
5328 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
5329 * i386-tdep.c (i386_dbx_reg_to_regnum)
5330 (i386_svr4_reg_to_regnum): Likewise.
5331 * mi/mi-main.c (mi_cmd_data_list_register_names)
5332 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5333 (mi_cmd_data_write_register_values): Likewise.
5334 * gdbarch.c, gdbarch.h: Regenerate.
5335 * tui/tui-regs.c (tui_show_register_group): Likewise.
5336 * xtensa-tdep.h (FP_ALIAS): Likewise.
5337 * user-regs.h: Likewise (comment).
5338 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5339 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5340 * target-descriptions.h: Likewise (comment).
5341 * target.c (debug_print_register): Likewise.
5342 * stack.c (frame_info): Likewise.
5343 * stabsread.c (define_symbol): Likewise.
5344 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
5345 (sh64_compact_print_registers_info): Likewise.
5346 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5347 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
5348 (regcache_restore,regcache_dump): Likewise.
5349 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
5350 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5351 (mips_stab_reg_to_regnum): Likewise.
5352 * findvar.c (value_of_register): Likewise.
5353 * infcmd.c (default_print_registers_info,registers_info)
5354 (print_vector_info,print_float_info): Likewise.
5355 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5356 * h8300-tdep.c (h8300_register_type): Likewise.
5357 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5358 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
5359 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
5360 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
5361 * parse.c: Remove comment.
5362 * gdbarch.c, gdbarch.h: Regenerate
5363
8d4c1ba3
UW
53642007-05-31 Markus Deuling <deuling@de.ibm.com>
5365
5366 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
5367 gdbarch_cannot_fetch_register.
5368 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5369 * hppa-linux-nat.c (fetch_register): Likewise.
5370 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5371 * m68klinux-nat.c (fetch_register): Likewise.
5372 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
5373 Likewise.
5374 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
5375 gdbarch_cannot_store_register.
5376 * hppa-linux-nat.c (store_register): Likewise.
5377 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
5378 * regcache.c (regcache_raw_write): Likewise.
5379 * m68klinux-nat.c (store_register): Likewise.
5380 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
5381 * gdbarch.c, gdbarch.h: Regenerate.
5382
3f4844da
UW
53832007-05-31 Markus Deuling <deuling@de.ibm.com>
5384
5385 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
5386 * gdbarch.c, gdbarch.h: Regenerate.
5387
6c6b19fd
UW
53882007-05-31 Markus Deuling <deuling@de.ibm.com>
5389
5390 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
5391 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5392 * gdbarch.c, gdbarch.h: Regenerate.
5393
0d20ae72
UW
53942007-05-31 Markus Deuling <deuling@de.ibm.com>
5395
5396 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
5397 * ax-gdb.c (gen_bitfield_ref): Likewise.
5398 * mi/mi-main.c (get_register): Likewise.
5399 * findvar.c (default_value_from_register, extract_signed_integer)
5400 (extract_unsigned_integer, extract_long_unsigned_integer)
5401 (store_signed_integer, store_unsigned_integer): Likewise.
5402 * regcache.c (regcache_dump): Likewise.
5403 * value.c (lookup_internalvar, value_of_internalvar)
5404 (set_internalvar): Likewise.
5405 * defs.h: Likewise.
5406 * valprint.c (print_binary_chars, print_octal_chars)
5407 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
5408 * infcmd.c (default_print_registers_info): Likewise.
5409 * arch-utils.c (selected_byte_order, show_endian): Likewise.
5410 * stabsread.c (define_symbol): Likewise.
5411 * doublest.c (floatformat_from_length, floatformat_from_type)
5412 (extract_typed_floating, store_typed_floating): Likewise.
5413 * gdbarch.c, gdbarch.h: Regenerate.
5414
faaf634c
UW
54152007-05-31 Markus Deuling <deuling@de.ibm.com>
5416
5417 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
5418 gdbarch_call_dummy_location.
5419 * infcall.c (call_function_by_hand): Likewise.
5420 * inferior.h: Change comment.
5421 * arch-utils.c: Change comment.
5422 * gdbarch.c, gdbarch.h: Regenerate.
5423
8905984d
JB
54242007-05-28 Joel Brobecker <brobecker@adacore.com>
5425
5426 * solib-aix5.c: Delete.
5427 * Makefile.in (solib-aix5.o): Delete rule.
5428
ab14ee8d
DJ
54292007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
5430
5431 * breakpoint.h (enum bpstat_what_main_action): Remove
5432 BPSTAT_WHAT_THROUGH_SIGTRAMP.
5433 * infrun.c (process_event_stop_test): Do not check for it.
5434
23776285
MR
54352007-05-22 Chris Dearman <chris@mips.com>
5436 Maciej W. Rozycki <macro@mips.com>
5437
5438 * ser-unix.c (show_serial_hwflow): New function.
5439 (hardwire_raw): Add hardware flow control support.
5440 (_initialize_ser_hardwire): Add "set/show remoteflow".
5441 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
5442 * NEWS: Document the new command.
5443
eb368090
UW
54442007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5445
5446 * config/i386/tm-linux.h (sys_quotactl): Do not define.
5447 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
5448 define for i[[3456]]86-*-linux* native configurations.
5449 * config.in, configure: Regenerate.
5450
8d08c9ce
JB
54512007-05-19 Joel Brobecker <brobecker@adacore.com>
5452
5453 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
5454 a core file. Add comment in the function description.
5455
42be36b3
CT
54562007-05-18 Caroline Tice <ctice@apple.com>
5457
5458 * c-valprint.c (c_value_print): If the initialized field of the
5459 value struct is 0, print out "[uninitialized]" before the value.
5460 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
5461 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
5462 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
5463 ctx->initialized appropriately. Verify no location op follows
5464 DW_OP_GNU_uninit.
5465 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
5466 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
5467 set_value_initialized.
5468 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
5469 (decode_locdesc): Add case for DW_OP_GNU_uninit.
5470 * value.c (struct value): New field, initialized.
5471 (allocate_value): Initialize new field.
5472 (set_value_initialized): New function.
5473 (value_initialized): New function.
5474 * value.h (value_initialized): New extern declaration.
5475 (set_value_initialized): Likewise.
42be36b3 5476
a7c569c8
CT
54772007-05-18 Caroline Tice <ctice@apple.com>
5478
5479 * MAINTAINERS (Write After Approval): Add self.
5480
1e98b326
JB
54812007-05-17 Joel Brobecker <brobecker@adacore.com>
5482
5483 * gdbtypes.c (make_reference_type): Preserve the type chain
5484 and set the length of all the variants of the pointer type.
5485
053cb41b
JB
54862007-05-17 Joel Brobecker <brobecker@adacore.com>
5487
5488 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
5489 and set the length of all the variants of the pointer type.
5490
436aafc4
MR
54912007-05-17 Maciej W. Rozycki <macro@mips.com>
5492
5493 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
5494 comment.
5495 (mips_o64_push_dummy_call): Reformat a comment.
5496
98f4ab10
Q
54972007-05-17 Qinwei <qinwei@sunnorth.com.cn>
5498
5499 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
5500 (score_prologue_frame_base_address): Return fp to keep gdb print
5501 local variables correctly when debugging information is stabs.
5502
5503 (score_analyze_prologue): For software watchpoint, fetch all the
5504 instructions from range [startaddr, pc] once and identify them locally
5505 to reduce memory access.
5506 (score_malloc_and_get_memblock, score_free_memblock)
5507 (score_adjust_memblock_ptr): New functions.
5508 (score_fetch_inst): Fetch single instruction or mutiple instructions.
5509
5510 (score_target_can_use_watch, score_stopped_by_watch)
5511 (score_target_insert_watchpoint, score_target_remove_watchpoint)
5512 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
5513 New functions for remote & local hw-watchpoint and hw-breakpoint.
5514
60dfee72
AS
55152007-05-16 Alfred M. Szmidt <ams@gnu.org>
5516
5517 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
5518 declarations as well.
5519
190dce09
UW
55202007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5521
5522 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
5523 * config/arm/tm-embed.h: Delete file.
5524
5525 * arm-tdep.h (arm_software_single_step): Declare.
5526 * arm-tdep.c (arm_software_single_step): Make global.
5527 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
5528 from here to ...
5529 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
5530 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
5531 * armobsd-tdep.c (armobsd_init_abi): ... here ...
5532 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
5533
5534 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
5535 allow defines to be overriden by TM file.
5536 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
5537 change default to {0xbe,0xbe}.
5538 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
5539 arm_obsd_thumb_be_breakpoint): New global variables.
5540 (armobsd_init_abi): Override tdep->thumb_breakpoint and
5541 tdep->thumb_breakpoint_size.
5542 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
5543 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
5544 tdep->thumb_breakpoint_size.
5545
5546 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
5547
1a69e1e4
DJ
55482007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
5549
5550 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
5551 saved-gpreg-size".
5552
5553 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
5554 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
5555 (mips_stack_argsize_string, mips_stack_argsize): Delete.
5556 (mips_abi_regsize): Simplify.
5557 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5558 (mips_n32n64_return_value, mips_o32_push_dummy_call)
5559 (mips_o32_return_value, mips_o64_push_dummy_call)
5560 (mips_o64_return_value): Propogate constant register sizes. Use the
5561 ABI register size instead of mips_stack_argsize.
5562 (mips_dump_tdep): Don't print mips_stack_argsize.
5563 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
5564 settings.
5565
7d522c90
DJ
55662007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
5567
5568 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
5569 * config/mips/tm-linux.h: Delete.
5570 * mips-linux-tdep.c (mips_svr4_so_ops): New.
5571 (mips_linux_in_dynsym_resolve_code): Make static. Use
5572 svr4_in_dynsym_resolve_code.
5573 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
5574 set_solib_ops.
5575 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
5576 global.
5577 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
5578 * Makefile.in (mips-linux-tdep.o): Update.
5579 * solib.c (set_solib_ops): New.
5580 (current_target_so_ops): Update comment.
5581 * solib.h (set_solib_ops): New prototype.
5582
5d51a2db
MR
55832007-05-16 Chris Dearman <chris@mips.com>
5584
5585 * printcmd.c (do_examine): Fix typos in a comment.
5586
07abfebf
RS
55872007-05-16 Richard Sandiford <richard@codesourcery.com>
5588
5589 * configure.ac: Allow sysroots to be relocated under $prefix as
5590 well as $exec_prefix.
5591 * configure: Regenerate.
5592
f5ce4941
UW
55932007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5594
5595 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
5596 (offsetof): Do not define.
5597 (find_stub_with_shl_get): Use numerical value 3 instead of
5598 symbolic value TYPE_PROCEDURE.
5599
76e1ee85
DJ
56002007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5601
5602 * gdb_proc_service.h (paddr_t): Delete typedef.
5603 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
5604 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
5605 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
5606 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
5607 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
5608 * Makefile.in (proc-service.o): Update.
5609
2bd0c3d7
DJ
56102007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5611
5612 * Makefile.in (mips-tdep.o): Update.
5613 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
5614 unwinder.
5615
14d06750
DJ
56162007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5617
5618 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
5619 instead of store_typed_address.
5620 * value.c (pack_long): New.
5621 (value_from_longest): Use it.
5622 * value.h (pack_long): New prototype.
5623
f2fec864
DJ
56242007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5625
5626 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
5627 DW_EH_PE_signed if appropriate.
5628
25e43795
DJ
56292007-05-14 Paul Brook <paul@codesourcery.com>
5630 Daniel Jacobowitz <dan@codesourcery.com>
5631
5632 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
5633 function.
5634 (dwarf_decode_lines): Check for line info without a file.
5635
027c0295
DJ
56362007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5637
5638 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
5639 as hexadecimal.
5640
dc5000e7
DJ
56412007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5642
5643 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
5644 STRUCTOP_STRUCT.
5645 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
5646 STRUCTOP_STRUCT.
5647 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
5648
30244cd8
UW
56492007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5650
5651 * gdbarch.sh (read_sp): Remove.
5652 * gdbarch.c, gdbarch.h: Regenerate.
5653 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
5654
5655 * avr-tdep.c (avr_read_sp): Remove.
5656 (avr_unwind_sp): New function.
5657 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
5658 * mips-tdep.c (mips_read_sp): Remove.
5659 (mips_unwind_sp): New function.
5660 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
5661 * score-tdep.c (score_read_unsigned_register): Remove.
5662 (score_read_sp): Remove.
5663 (score_unwind_sp): New function.
5664 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
5665
84ba0adf
DJ
56662007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
5667
5668 * buildsym.c (start_subfile): Handle absolute pathnames
5669 while comparing subfile names.
5670
e7b17823
UW
56712007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5672
5673 * hppa-hpux-tdep.c: Include "regcache.h".
5674 * hppa-linux-tdep.c: Likewise.
5675 * hppa-tdep.c: Include "gdb_stdint.h".
5676 (find_unwind_entry): Cast host pointer to uintptr_t before passing
5677 it to paddr_nz.
5678 * Makefile.in: Update dependencies.
5679
7157eed4
UW
56802007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5681
5682 * blockframe.c: Remove obsolete comments.
5683 * alpha-nat.c (fetch_osf_core_registers): Update comment.
5684 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
5685 * hppa-tdep.h (enum hppa_regnum): Likewise.
5686 * mips-tdep.h: Likewise.
5687 * m68hc11-tdep.c: Likewise.
5688
fb4443d8
UW
56892007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5690
5691 * inferior.h (read_sp): Remove prototype.
5692 * regcache.c (read_sp): Remove.
5693 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
5694 * infcall.c (call_function_by_hand): Likewise.
5695 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
5696 of calling read_sp.
5697 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5698
7b86a1b8
UW
56992007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5700
5701 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
5702 instead of read_register and read_register_pid.
5703
5704 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
5705 argument instead of PTID. Use regcache functions instead of
5706 read_register_pid.
5707 (ia64_linux_insert_watchpoint): Update call.
5708 (ia64_linux_stopped_data_address): Use regcache functions
5709 instead of read_register_pid and write_register_pid.
5710
45ecac4b
UW
57112007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5712
5713 * libunwind-frame.h (struct regcache): Add forward declaration.
5714 (libunwind_get_reg_special): Add REGCACHE argument.
5715 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
5716 argument. Pass it to unw_init_remote_p.
5717
5718 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
5719 libunwind_get_reg_special.
5720 (ia64_access_reg): Remove "write" case.
5721 (ia64_access_fpreg): Likewise. Read from next_frame passed
5722 as callback argument instead of from current_regcache.
5723 (ia64_access_rse_reg): Remove "write" case. Read from regcache
5724 passed as callback argument instead of from current_regcache.
5725 (ia64_access_rse_fpreg): New function.
5726 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
5727
0ca420ce
UW
57282007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5729
5730 * NEWS: Mention SPU overlay support.
5731
0a44cb36
UW
57322007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5733
5734 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
5735
aa67235e
UW
57362007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5737
5738 * breakpoint.c (remove_breakpoint): Do not remove software
5739 breakpoints in unmapped overlay sections.
5740
dcf52cd8
UW
57412007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5742
5743 * spu-tdep.c: Include "observer.h".
5744 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
5745 (spu_overlay_data): New variable.
5746 (struct spu_overlay_table): New type.
5747 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
5748 spu_overlay_new_objfile): New functions.
5749 (spu_gdbarch_init): Install spu_overlay_update.
5750 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
5751 allocate spu_overlay_data objfile data.
5752
1c772458
UW
57532007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5754
5755 * gdbarch.sh (overlay_update): New gdbarch function.
5756 (struct obj_section): Add forward declaration.
5757 * gdbarch.c, gdbarch.h: Regenerate.
5758
5759 * symfile.c (simple_overlay_update): Make global.
5760 (target_overlay_update): Remove variable.
5761 (overlay_is_mapped): Call gdbarch_overlay_update instead of
5762 target_overlay_update.
5763 (overlay_load_command): Likewise.
5764 * symfile.h (struct obj_section): Add forward declaration.
5765 (simple_overlay_update): Add prototype.
5766
5767 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
5768
06d3b283
UW
57692007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5770
5771 * observer.sh: Add "struct objfile" forward declaration.
5772 * target.h (deprecated_target_new_objfile_hook): Remove.
5773 * symfile.c (deprecated_target_new_objfile_hook): Remove.
5774 (clear_symtab_users): Call observer_notify_new_objfile.
5775 (symbol_file_add_with_addrs_or_offsets): Likewise.
5776 * rs6000-nat.c: Include "observer.h".
5777 (vmap_ldinfo): Call observer_notify_new_objfile.
5778 (xcoff_relocate_core): Likewise.
5779 * remote.c (remote_new_objfile_chain): Remove.
5780 (remote_new_objfile): Do not call remote_new_objfile_chain.
5781 (_initialize_remote): Use observer_attach_new_objfile.
5782 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
5783 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
5784 (_initialize_tui_hooks): Use observer_attach_new_objfile.
5785 * aix-thread.c: Include "observer.h".
5786 (target_new_objfile_chain): Remove.
5787 (new_objfile): Do not call target_new_objfile_chain.
5788 (_initialize_aix_thread): Use observer_attach_new_objfile.
5789 * hpux-thread.c: Include "observer.h"
5790 (target_new_objfile_chain): Remove.
5791 (hpux_thread_new_objfile): Make static. Do not call
5792 target_new_objfile_chain.
5793 (_initialize_hpux_thread): Use observer_attach_new_objfile.
5794 * linux-thread-db.c: Include "observer.h".
5795 (target_new_objfile_chain): Remove.
5796 (thread_db_new_objfile): Do not call target_new_objfile_chain.
5797 (_initialize_thread_db): Use observer_attach_new_objfile.
5798 * sol-thread.c: Include "observer.h".
5799 (target_new_objfile_chain): Remove.
5800 (sol_thread_new_objfile): Make static. Do not call
5801 target_new_objfile_chain.
5802 (_initialize_sol_thread): Use observer_attach_new_objfile.
5803 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
5804 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
5805 $(observer_h).
5806
93ce7684
UW
58072007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5808
5809 * gdbarch.sh (remote_translate_xfer_address): Remove.
5810 * gdbarch.h, gdbarch.c: Regenerate.
5811 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
5812 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
5813 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
5814 call gdbarch_remote_translate_xfer_address.
5815 * frv-tdep.c (frv_gdbarch_init): Do not call
5816 set_gdbarch_remote_translate_xfer_address.
5817 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
5818 (ia64_gdbarch_init): Do not install it.
5819
a6ec25f2
BW
58202007-05-11 Bob Wilson <bob.wilson@acm.org>
5821
5822 * NEWS: Mention change in handling the -tui option.
5823
2ef52e77
DJ
58242007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
5825
5826 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
5827 typo.
5828
1aafd4da
UW
58292007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5830
5831 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
5832 (breakpoint_inserted_here_p): Call it.
5833 (software_breakpoint_inserted_here_p): Likewise.
5834
7714d83a
UW
58352007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
5836
5837 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
5838 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
5839 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
5840 (inf_ptrace_store_register): Likewise.
5841 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
5842 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
5843
5844 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
5845
5846 * linux-nat.c (linux_trad_target): Adapt parameter list.
5847 * linux-nat.h (linux_trad_target): Likewise.
5848
5849 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
5850
5851 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
5852 (mips_linux_cannot_store_register): Likewise.
5853 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
5854 Return (CORE_ADDR) -1 for registers that cannot be fetched or
5855 stored via ptrace. Use GDBARCH instead of current_gdbarch.
5856 (mips64_linux_register_addr): Likewise.
5857 (mips_linux_register_u_offset): Adapt parameter list. Pass
5858 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
5859
5860 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5861 * config/mips/nm-linux.h: Delete file.
5862
4ddda9b5
PA
58632007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
5864
5865 * remote.c (remote_detach): Error out if remote can't detach.
5866
24d45690
UW
58672007-05-10 Luis Machado <luisgpm@br.ibm.com>
5868
362f854e
PA
5869 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
5870 instruction's opcode in the "opcode" variable and declares new
5871 variable "closing_insn".
24d45690 5872
1430be3e
MR
58732007-05-10 Chris Dearman <chris@mips.com>
5874 Maciej W. Rozycki <macro@mips.com>
5875
5876 * cli/cli-setshow.c (do_setshow_command): Remove trailing
5877 whitespace when setting a var_filename.
5878
b0da54f1
BW
58792007-05-09 Bob Wilson <bob.wilson@acm.org>
5880
5881 * main.c (captured_main): Recognize -tui option and print an error
5882 message when the TUI is not configured.
5883
9a88e5ee
AS
58842007-05-09 Andreas Schwab <schwab@suse.de>
5885
5886 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
5887 set removed members.
5888 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5889
fc0d8df4
UW
58902007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5891
5892 * gdbarch.sh (deprecated_store_struct_return): Remove.
5893 * gdbarch.c, gdbarch.h: Regenerate.
5894 * frv-tdep.c (frv_store_struct_return): Remove.
5895 (frv_gdbarch_init): Do not install it.
5896
179101d6
UW
58972007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5898
5899 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
5900 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
5901 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
5902
b9efddcd
UW
59032007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5904
5905 * spu-linux-nat.c: Include "gdb_stdint.h".
5906 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
5907 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5908 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
5909 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
5910 (spu_child_wait): Mark up string for translation.
5911
ce5eab59
UW
59122007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
5913 Luis Machado <luisgpm@br.ibm.com>
5914
5915 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
5916 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
5917 BC_INSTRUCTION): Define.
5918 (deal_with_atomic_sequence): New function.
5919 (rs6000_software_single_step): Call deal_with_atomic_sequence.
5920 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
5921 gdbarch_software_single_step routine.
5922
4179a487
UW
59232007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5924
5925 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
5926 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
5927 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
5928 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
5929 spu_child_post_attach, spu_fetch_inferior_registers,
5930 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
5931 memory addresses as ULONGEST, not CORE_ADDR.
5932
6d350bb5
UW
59332007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
5934
5935 * gdbarch.sh: Add skip_permanent_breakpoint callback.
5936 * gdbarch.h, gdbarch.c: Regenerate.
5937
5938 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
5939 (resume): Call gdbarch_skip_permanent_breakpoint instead of
5940 SKIP_PERMANENT_BREAKPOINT. Inline default case.
5941
5942 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
5943 Add REGCACHE argument. Use it instead of read/write_register.
5944 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
5945
5946 * config/pa/tm-hppah.h: Delete file.
5947 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
5948 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
5949
b18be20d
DJ
59502007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5951
5952 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
5953 * NEWS: Mention improved C++ thunk support.
5954 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
5955 * cp-abi.c (cplus_skip_trampoline): New.
5956 * cp-abi.h (cplus_skip_trampoline): New prototype.
5957 (struct cp_abi_ops): Add skip_trampoline member.
5958 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
5959 (init_gnuv3_ops): Set skip_trampoline.
5960
dda9b909
DJ
59612007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5962
5963 * rs6000-tdep.c (struct frame_extra_info): Delete.
5964
34091d9b
DJ
59652007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
5966
5967 * linux-thread-db.c: Update some FIXME comments.
5968 (thread_db_xfer_partial): Delete.
5969 (init_thread_db_ops): Do not set to_xfer_partial.
5970
1da33a4a
UW
59712007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5972
5973 * inftarg.c, infptrace.c: Remove files.
5974 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
5975 (inftarg.o, infptrace.o): Remove rules.
5976 * gdbcore.h (register_addr): Remove prototype.
5977 * inferior.h (kill_inferior, store_inferior_registers,
5978 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
5979 call_ptrace, pre_fork_inferior): Remove prototypes.
5980 * target.h (child_xfer_memory, child_pid_to_exec_file,
5981 child_core_file_to_sym_file, child_post_attach,
5982 child_post_startup_inferior, child_acknowledge_created_inferior,
5983 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5984 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5985 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
5986 child_follow_fork, child_reported_exec_events_per_exec_call,
5987 child_has_exited, child_thread_alive): Remove prototypes.
5988
6f7a27d5
UW
59892007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5990
5991 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
5992 (sparc_store_inferior_registers): Likewise.
5993 * sparc-nat.c (fetch_inferior_registers): Rename to ...
5994 (sparc_fetch_inferior_registers): ... this.
5995 (store_inferior_registers): Rename to ...
5996 (sparc_store_inferior_registers): ... this.
5997 (sparc_target): Update callback names.
5998 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
5999 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6000
6d8fd2b7
UW
60012007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6002
6003 * linux-nat.c (child_post_attach): Rename to ...
6004 (linux_child_post_attach): ... this. Make static.
6005 (child_follow_fork): Rename to ...
6006 (linux_child_follow_fork): ... this. Make static.
6007 (child_insert_fork_catchpoint): Rename to ...
6008 (linux_child_insert_fork_catchpoint): ... this. Make static.
6009 (child_insert_vfork_catchpoint): Rename to ...
6010 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6011 (child_insert_exec_catchpoint): Rename to ...
6012 (linux_child_insert_exec_catchpoint): ... this. Make static.
6013 (child_pid_to_exec_file): Rename to ...
6014 (linux_child_pid_to_exec_file): ... this. Make static.
6015 Add prototype.
6016 (linux_handle_extended_wait): Update call.
6017 (linux_xfer_partial): Update callback routine names.
6018
d08950c4
UW
60192007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6020
6021 * configure.host (alpha*-*-osf[12]*): Remove support.
6022 * NEWS: Mention removed configurations.
6023
6024 * config/alpha/alpha-osf1.mh: Delete file.
6025 * config/alpha/alpha-osf2.mh: Delete file.
6026 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6027 and infptrace.o.
6028 * config/alpha/nm-osf.h: Delete file.
6029 * config/alpha/nm-osf2.h: Delete file.
6030 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6031 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6032 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6033
6034 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6035 (register_addr, kernel_u_size): Remove.
6036 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6037
9c5ea4d9
UW
60382007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6039
6040 * regcache.c (regcache_invalidate): New function.
6041 (register_cached): Remove.
6042 (set_register_cached): Remove.
6043 (deprecated_registers_fetched): Remove.
6044 (registers_changed): Use regcache_invalidate instead
6045 of set_register_cached.
6046 (regcache_raw_read): Update comment.
6047
6048 * regcache.h (regcache_invalidate): Add prototype.
6049 (register_cached): Remove.
6050 (set_register_cached): Remove.
6051 (deprecated_registers_fetched): Remove.
6052
6053 * findvar.c (value_of_register): Do not call register_cached.
6054 * frame.c (frame_register): Likewise.
6055 * tui/tui-regs.c (tui_get_register): Likewise.
6056
6057 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6058 (process_g_packet): Likewise.
6059 (remote_fetch_registers): Likewise.
6060 * remote-sim.c (gdbsim_fetch_register): Likewise.
6061 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6062 by regcache_invalidate.
6063 (mt_pseudo_register_write): Likewise.
6064 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6065
6066 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6067 call by loop over regcache_raw_supply (..., NULL).
6068
316f2060
UW
60692007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6070
6071 * target.h (struct target_ops): Add REGCACHE parameter to
6072 to_prepare_to_store.
6073 (target_prepare_to_store): Likewise.
6074 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6075 (update_current_target): Adapt prepare_to_store de_fault rule.
6076
6077 * regcache.c (regcache_raw_write): Pass regcache to
6078 target_prepare_to_store.
6079
6080 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6081 Do not call CHILD_PREPARE_TO_STORE.
6082 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6083 * procfs.c (procfs_prepare_to_store): Likewise.
6084
6085 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6086 * go32-nat.c (go32_prepare_to_store): Likewise.
6087 * monitor.c (monitor_prepare_to_store): Likewise.
6088 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6089 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6090 * remote-mips.c (mips_prepare_to_store): Likewise.
6091 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6092 * win32-nat.c (win32_prepare_to_store): Likewise.
6093
6094 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6095 Use it instead of current_regcache.
6096
6097 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6098 parameter. Pass it on to next target.
6099 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6100
56be3814
UW
61012007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6102
6103 * target.h (struct regcache): Add forward declaration.
6104 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6105 and to_store_registers target operations.
6106 (target_fetch_registers, target_store_registers): Update.
6107
6108 * regcache.c (regcache_raw_read): Replace register_cached by
6109 regcache_valid_p. Pass regcache to target_fetch_registers.
6110 (regcache_raw_write): Pass regcache to target_store_registers.
6111
6112 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6113 store_regs, store_wmmx_regs): Replace register_cached by
6114 regcache_valid_p.
6115
6116 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6117 to target_fetch_registers calls.
6118 * corelow.c (core_open): Likewise.
6119 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6120 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6121 ps_lsetfpregs): Likewise.
6122 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6123 ps_lsetfpregs): Likewise.
6124 * win32-nat.c (win32_resume): Likewise.
6125 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6126 to target_store_registers call.
6127 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6128
6129 * inferior.h (store_inferior_registers): Update prototype.
6130 (fetch_inferior_registers): Likewise.
6131 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6132 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6133 Update function pointer signatures.
6134
6135 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6136 use it instead of current_regcache, update calls.
6137 (aix_thread_store_registers): Likewise.
6138 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6139 (alphabsd_store_inferior_registers): Likewise.
6140 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6141 (amd64bsd_store_inferior_registers): Likewise.
6142 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6143 (amd64_linux_store_inferior_registers): Likewise.
6144 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6145 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6146 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6147 (arm_linux_fetch_inferior_registers): Likewise.
6148 (arm_linux_store_inferior_registers): Likewise.
6149 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6150 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6151 (store_register, store_regs, store_fp_register, store_fp_regs,
6152 armnbsd_store_registers): Likewise.
6153 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6154 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6155 (bsd_uthread_store_registers): Likewise.
6156 * corelow.c (get_core_registers): Likewise.
6157 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6158 go32_store_registers): Likewise.
6159 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6160 (hppabsd_store_registers): Likewise.
6161 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6162 (hppa_hpux_fetch_inferior_registers): Likewise.
6163 (hppa_hpux_store_register): Likewise.
6164 (hppa_hpux_store_inferior_registers): Likewise.
6165 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6166 (hppa_linux_fetch_inferior_registers): Likewise.
6167 (hppa_linux_store_inferior_registers): Likewise.
6168 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6169 (hpux_thread_store_registers): Likewise.
6170 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6171 (i386bsd_store_inferior_registers): Likewise.
6172 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6173 gnu_store_registers): Likewise.
6174 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6175 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6176 Likewise.
6177 (i386_linux_fetch_inferior_registers): Likewise.
6178 (i386_linux_store_inferior_registers): Likewise.
6179 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6180 (ia64_linux_fetch_registers): Likewise.
6181 (ia64_linux_store_register): Likewise.
6182 (ia64_linux_store_registers): Likewise.
6183 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6184 (inf_child_store_inferior_registers): Likewise.
6185 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6186 (inf_ptrace_fetch_registers): Likewise.
6187 (inf_ptrace_store_register): Likewise.
6188 (inf_ptrace_store_registers): Likewise.
6189 * infptrace.c (fetch_register, store_register): Likewise.
6190 (fetch_inferior_registers, store_inferior_registers): Likewise.
6191 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6192 (m32r_linux_fetch_inferior_registers): Likewise.
6193 (m32r_linux_store_inferior_registers): Likewise.
6194 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6195 (m68kbsd_store_inferior_registers): Likewise.
6196 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6197 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6198 fetch_fpregs, store_fpregs): Likewise.
6199 (m68k_linux_fetch_inferior_registers): Likewise.
6200 (m68k_linux_store_inferior_registers): Likewise.
6201 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6202 (m88kbsd_store_inferior_registers): Likewise.
6203 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6204 (mips64obsd_store_inferior_registers): Likewise.
6205 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6206 (mips64_linux_regsets_store_registers): Likewise.
6207 (mips64_linux_fetch_registers): Likewise.
6208 (mips64_linux_store_registers): Likewise.
6209 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6210 (mipsnbsd_store_inferior_registers): Likewise.
6211 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6212 (monitor_fetch_registers, monitor_store_registers): Likewise.
6213 * nto-procfs.c (procfs_fetch_registers): Likewise.
6214 (procfs_store_registers): Likewise.
6215 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6216 fetch_register, supply_vrregset, fetch_altivec_registers,
6217 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6218 (store_altivec_register, store_spe_register, store_register,
6219 fill_vrregset, store_altivec_registers, store_ppc_registers,
6220 ppc_linux_store_inferior_registers): Likewise.
6221 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
6222 (ppcnbsd_store_inferior_registers): Likewise.
6223 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
6224 (ppcobsd_store_registers): Likewise.
6225 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
6226 * remote.c (fetch_register_using_p, process_g_packet,
6227 fetch_registers_using_g, remote_fetch_registers): Likewise.
6228 (store_register_using_P, store_registers_using_G,
6229 remote_store_registers): Likewise.
6230 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
6231 m32r_store_register, m32r_store_register): Likewise.
6232 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
6233 * remote-sim.c (gdbsim_fetch_register): Likewise.
6234 (gdbsim_store_register): Likewise.
6235 * rs6000-nat.c (fetch_register, store_register): Likewise.
6236 (rs6000_fetch_inferior_registers): Likewise.
6237 (rs6000_store_inferior_registers): Likewise.
6238 * s390-nat.c (fetch_regs, store_regs): Likewise.
6239 (fetch_fpregs, store_fpregs): Likewise.
6240 (s390_linux_fetch_inferior_registers): Likewise.
6241 (s390_linux_store_inferior_registers): Likewise.
6242 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
6243 (shnbsd_store_inferior_registers): Likewise.
6244 * sol-thread.c (sol_thread_fetch_registers): Likewise.
6245 (sol_thread_store_registers): Likewise.
6246 * sparc-nat.c (fetch_inferior_registers): Likewise.
6247 (store_inferior_registers): Likewise.
6248 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6249 (spu_store_inferior_registers): Likewise.
6250 * target.c (debug_print_register): Likewise.
6251 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
6252 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
6253 (vaxbsd_store_inferior_registers): Likewise.
6254 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
6255 (win32_fetch_inferior_registers): Likewise.
6256 (win32_store_inferior_registers): Likewise.
6257
9eefc95f
UW
62582007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6259
6260 * gdbcore.h (struct regcache): Add forward declaration.
6261 (struct core_fns): Add REGCACHE argument to core_read_registers
6262 callback.
6263 * corelow.c (get_core_register_section): Add REGCACHE argument,
6264 use it instead of current_regcache, pass it to core_read_registers
6265 callback.
6266 (get_core_registers): Add current_regcache as parameter to
6267 get_core_register_section calls.
6268
6269 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
6270 use it instead of current_regcache.
6271 * armnbsd-nat.c (fetch_core_registers): Likewise.
6272 (fetch_elfcore_registers): Likewise.
6273 * core-regset.c (fetch_core_registers): Likewise.
6274 * cris-tdep.c (fetch_core_registers): Likewise.
6275 * irix5-nat.c (fetch_core_registers): Likewise.
6276 * m68klinux-nat.c (fetch_core_registers): Likewise.
6277 * mips-linux-tdep.c (fetch_core_registers): Likewise.
6278 * win32-nat.c (fetch_elf_core_registers): Likewise.
6279
7f7fe91e
UW
62802007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6281
6282 * gregset.h (struct regcache): Add forward declaration.
6283 (supply_gregset): Add REGCACHE parameter, make GREGS const.
6284 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
6285 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
6286 (fill_gregset): Add REGCACHE parameter.
6287 (fill_fpregset): Likewise.
6288 (fill_fpxregset): Likewise.
6289
6290 Update all definitions accordingly:
6291 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
6292 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
6293 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
6294 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
6295 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
6296 (supply_gregset): Add REGCACHE parameter, use it instead of
6297 current_regcache. Make GREGSETP parameter const, adapt casts.
6298 (supply_fpregset): Add REGCACHE parameter, use it instead of
6299 current_regcache. Make FPREGSETP parameter const, adapt casts.
6300 (fill_gregset): Add REGCACHE parameter, use it instead of
6301 current_regcache.
6302 (fill_fpregset): Likewise.
6303
6304 Update all callers to pass in current_regcache as the new argument:
6305 * core-regset.c: Include "regcache.h".
6306 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
6307 * procfs.c: Include "regcache.h".
6308 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
6309 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
6310 (procfs_do_thread_registers): Likewise.
6311 (procfs_make_note_section): Likewise.
6312 * proc-service.c: Include "regcache.h".
6313 (ps_lgetregs): Update fill_gregset call.
6314 (ps_lsetregs): Update supply_gregset call.
6315 (ps_lgetfpregs): Update fill_fpregset call.
6316 (ps_lsetfpregs): Update supply_fpregset call.
6317 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
6318 supply_fpregset calls.
6319 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
6320 (ps_lgetregs): Update fill_gregset call.
6321 (ps_lsetregs): Update supply_gregset call.
6322 (ps_lgetfpregs): Update fill_fpregset call.
6323 (ps_lsetfpregs): Update supply_fpregset call.
6324
6325 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
6326 fill_fpregset, and fill_fpxregset calls.
6327 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
6328 (store_regs): Update fill_gregset call.
6329 (fetch_fpregs): Update supply_fpregset call.
6330 (store_fpregs): Update fill_fpregset call.
6331 (fetch_fpxregs): Update supply_fpxregset call.
6332 (store_fpxregs): Update fill_fpxregset call.
6333 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
6334 (store_regs): Update fill_gregset call.
6335 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
6336 (store_regs): Update fill_gregset call.
6337 (fetch_fpregs): Update supply_fpregset call.
6338 (store_fpregs): Update fill_fpregset call.
6339 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
6340 * s390-nat.c (fetch_regs): Update supply_gregset call.
6341 (store_regs): Update fill_gregset call.
6342 (fetch_fpregs): Update supply_fpregset call.
6343 (store_fpregs): Update fill_fpregset call.
6344
6345 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
6346 dependencies.
6347
c410a84c
UW
63482007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6349
6350 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
6351 it instead of current_regcache.
6352 (parse_register_dump): Add REGCACHE parameter, pass it to
6353 supply_register callback.
6354 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
6355 parse_register_dump.
6356 (monitor_dump_regs): Add REGCACHE parameter, pass it to
6357 parse_register_dump and dumpregs callback.
6358 (monitor_wait): Pass current_regcache to parse_register_dump and
6359 monitor_dump_regs.
6360 (monitor_fetch_register): Pass current_regcache to
6361 monitor_supply_register.
6362 (monitor_fetch_registers): Pass current_regcache to
6363 monitor_dump_regs.
6364 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
6365 supply_register and dumpregs callbacks.
6366 (monitor_supply_register, monitor_dump_reg_block): Update
6367 prototypes.
6368 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
6369 it to monitor_supply_register.
6370 * dink32-rom.c (dink32_supply_register): Likewise.
6371 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
6372 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
6373 instead of current_regcache.
6374
468e3d51
UW
63752007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6376
6377 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
6378 Add REGCACHE parameter. Use it instead of current_regcache.
6379 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
6380 i386nto_supply_gregset and i386nto_supply_fpregset.
6381 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
6382 of current_regcache.
6383
6384 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
6385 nto_supply_ helper functions.
6386 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
6387
6388 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
6389
6390 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
6391 supply_greget, supply_fpregset, supply_altregset, supply_regset,
6392 and regset_fill member function pointers.
6393 (nto_dummy_supply_regset): Adapt prototype.
6394
4e3269e3
UW
63952007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6396
6397 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
6398 instead of current_regcache. Make REGS const.
6399 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
6400 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
6401 prototypes.
6402 * shnbsd-nat.c: Include "regcache.h".
6403 (shnbsd_fetch_inferior_registers): Pass current_regcache to
6404 shnbsd_supply_reg.
6405 (shnbsd_store_inferior_registers): Pass current_regcache to
6406 shnbsd_fill_reg.
6407 * Makefile.in (shbsd-nat.o): Update dependencies.
6408
28f5035f
UW
64092007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6410
6411 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
6412 instead of current_regcache.
6413 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
6414 Make GREGSETP const, remove superfluous casts.
6415 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6416 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
6417 superfluous casts.
6418 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6419 (supply_64bit_reg): Likewise
6420 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
6421 Make GREGSETP const, adapt casts accordingly.
6422 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6423 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
6424 casts accordingly.
6425 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6426 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
6427 helper routines.
6428 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
6429 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
6430 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
6431 Adapt prototypes.
6432 * mips-linux-nat.c: Include "regcache.h".
6433 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
6434 current_regcache to mips{64}_(supply|fill)_ helper routines.
6435 (mips64_linux_regsets_fetch_registers): Likewise.
6436 (mips64_linux_regsets_store_registers): Likewise.
6437
6438 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
6439 REGCACHE argument; replace current_regcache. Make REGS const.
6440 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
6441 replace current_regcache.
6442 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
6443 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
6444 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
6445 mipsnbsd_store_inferior_registers): Pass current_regcache to
6446 mipsnbsd_(supply|fill)_... helper routines.
6447
6448 * Makefile.in (mips-linux-nat.o): Update dependencies.
6449
26144df5
UW
64502007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6451
6452 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
6453 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
6454 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
6455 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
6456 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
6457 * i386gnu-nat.c (store_fpregs): Likewise.
6458 * i386v4-nat.c (fill_fpregset): Likewise.
6459 * go32-nat.c (store_register, go32_store_registers): Likewise.
6460
c6b4e5a2
UW
64612007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6462
6463 * cris-tdep.c (supply_gregset): Rename to ...
6464 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
6465 instead of current_regcache.
6466 (fetch_core_registers): Update call. Pass current_regcache.
6467
d683e2b7
UW
64682007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6469
6470 * arnmnbsd-nat.c (supply_gregset): Rename to ...
6471 (arm_supply_gregset): ... this. Add REGCACHE parameter.
6472 Use it instead of current_regcache.
6473 (supply_fparegset): Rename to ...
6474 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
6475 Use it instead of current_regcache.
6476 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
6477 (fetch_core_registers, fetch_elfcore_registers): Likewise.
6478
390c1522
UW
64792007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6480
6481 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
6482 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
6483 use it instead of current_regcache.
6484 * alpha-tdep.h (struct regcache): Add forward declaration.
6485 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
6486 alpha_fill_fp_regs): Update prototypes.
6487
6488 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
6489 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
6490 * alpha-linux-nat.c: Include "regcache.h".
6491 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
6492 current_regcache to alpha_supply/fill_ routines.
6493
6494 * alphabsd-tdep.c: Include "regcache.h".
6495 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
6496 pass it to alpha_supply_ routines. Make REGS const.
6497 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
6498 pass it to alpha_fill_ routines.
6499 * alphabsd-tdep.h (struct regcache): Add forward declaration.
6500 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
6501 alphabsd_fill_fpreg): Update prototypes.
6502
6503 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6504 fill_fpregset, alphabsd_fetch_inferior_registers,
6505 alphabsd_store_inferior_registers): Pass current_regcache to
6506 alphabsd_supply/fill_ routines.
6507
6508 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
6509 dependencies.
6510
647478e0
UW
65112007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6512
6513 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
6514 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
6515 instead of current_regcache.
6516 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
6517 REGCACHE parameter, pass it to supply_ routines.
6518 (aix_thread_fetch_registers): Pass current_regcache to
6519 fetch_regs_user_thread and fetch_regs_kernel_thread.
6520
6521 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
6522 Add REGCACHE parameter, use it instead of current_regcache.
6523 Call regcache_valid_p instead of register_cached.
6524 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
6525 Also, pass REGCACHE to fill_ routines.
6526 (aix_thread_store_registers): Pass current_regcache to
6527 store_regs_user_thread and store_regs_kernel_thread.
6528
d817e083
UW
65292007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6530
6531 * m32r-linux-nat.c (supply_gregset): Do not modify contents
6532 pointed to by GREGSETP.
6533
6a1872e4
UW
65342007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6535
6536 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
6537 of regcache_raw_read_signed.
6538 (fill_fpregset): Use regcache_raw_collect instead of
6539 regcache_raw_read.
6540
6da397e0
KB
65412007-05-03 Kevin Buettner <kevinb@redhat.com>
6542
6543 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
6544 point arguments, test explicitly for use of the EABI32 ABI
6545 instead of inferring this condition from tests on register
6546 sizes.
6547
2219d63c
KB
65482007-05-03 Kevin Buettner <kevinb@redhat.com>
6549
6550 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
6551 prior to allocating its location.
6552
2afd3f0a
MR
65532007-05-02 Maciej W. Rozycki <macro@mips.com>
6554
6555 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
6556 based on mips_abi_regsize() whose result is known in advance.
6557 (mips_o64_push_dummy_call): Likewise.
6558
3e00823e
UW
65592007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
6560
6561 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
6562 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
6563
6564 * mips-linux-nat.c: Include "gregset.h".
6565 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
6566 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
6567 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
6568 fill_fpregset): Move to mips-linux-nat.c.
6569
6570 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
6571
81c4a259
UW
65722007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6573
6574 * regcache.c (deprecated_read_register_gen): Remove, inline ...
6575 (read_register): ... here.
6576 (deprecated_write_register_gen): Remove, inline ...
6577 (write_register): ... here.
6578 * regcache.h (deprecated_read_register_gen): Remove prototype.
6579 (deprecated_write_register_gen): Likewise.
6580
6581 * remote-sim.c (gdbsim_store_register): Replace call to
6582 deprecated_read_register_gen with regcache_cooked_read.
6583 * target.c (debug_print_register): Replace calls to
6584 deprecated_read_register_gen and read_register with
6585 regcache_cooked_read.
6586
8bb42077
UW
65872007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6588
6589 * hpux-thread.c (hpux_thread_store_registers): Use
6590 regcache_raw_collect, not regcache_raw_read.
6591 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
6592 not regcache_raw_write.
6593
6ed7ea50
UW
65942007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6595
6596 * gdbarch.sh: Remove deprecated_register_byte.
6597 * gdbarch.c, gdbarch.h: Regenerate.
6598 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
6599 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
6600
6601 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
6602 * regcache.c (regcache_valid_p): Allow to query cooked registers in
6603 read-only register caches. Make REGCACHE parameter const.
6604 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
6605
6606 * mi/mi-main.c (old_regs): Remove.
6607 (mi_setup_architecture_data, _initialize_mi_main): Remove.
6608 (register_changed_p): Reimplement to compare two register caches.
6609 (mi_cmd_data_list_changed_registers): Update caller.
6610 * mi/mi-main.h (mi_setup_architecture_data): Remove.
6611 * mi/mi-interp.c (mi_interpreter_init): Do not call
6612 mi_setup_architecture_data.
6613
efc72ef5
UW
66142007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6615
6616 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
6617 inline definition at the places the macros are used.
6618 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
6619
7a61a01c
UW
66202007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6621
6622 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
6623 "gdb_string.h".
6624 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
6625 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
6626 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
6627 (rs6000_aix_regset_from_core_section): New function.
6628 (rs6000_aix_init_osabi): Register it.
6629 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
6630 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
6631 * rs6000-nat.c (CoreRegs): Do not define type.
6632 (fetch_core_registers, rs6000_core_fns): Remove.
6633 (_initialize_core_rs6000): Do not register it. Rename to ...
6634 (_initialize_rs6000_nat): ... this.
6635 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
6636
ace186d4
KB
66372007-04-27 Kevin Buettner <kevinb@redhat.com>
6638
6639 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
6640 (dwarf2_read_address): Sign extend return address as required by
6641 target architecture.
6642
89a7ee67
KB
66432007-04-27 Kevin Buettner <kevinb@redhat.com>
6644
6645 * solib-frv.c (lm_base): Bail out if the main executable has
6646 not been relocated.
6647
6afb1f32
UW
66482007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6649
6650 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
6651 of FPCR register in fpregset.
6652
66a0218a
MR
66532007-04-27 Maciej W. Rozycki <macro@mips.com>
6654
6655 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
6656 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
6657
482f7fee
UW
66582007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6659
6660 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
6661 * rs6000-nat.c (rs6000_wait): New function.
6662 (_initialize_core_rs6000): Install it as to_wait target method.
6663 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
6664
1f480a5e
UW
66652007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6666
6667 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
6668 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
6669 * rs6000-nat.c (super_create_inferior): New variable.
6670 (rs6000_create_inferior): Make static. Adapt argument list. Call
6671 original version of create_inferior via super_create_inferior.
6672 (_initialize_core_rs6000): Install to_create_inferior target method.
6673
037a727e
UW
66742007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6675
6676 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
6677 (aix_thread_xfer_partial): ... this.
6678 (init_aix_thread_ops): Install to_xfer_partial instead
6679 of deprecated_xfer_memory target method.
6680
6681 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
6682 and inftarg.o, add inf-ptrace.o.
6683 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
6684 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
6685 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
6686 (fetch_inferior_registers): Rename to ...
6687 (rs6000_fetch_inferior_registers): ... this. Make static.
6688 (store_inferior_registers): Rename to ...
6689 (rs6000_store_inferior_registers): ... this. Make static.
6690 (read_word, child_xfer_memory): Remove.
6691 (rs6000_xfer_partial): New function.
6692 (kernel_u_size): Remove.
6693 (_initialize_core_rs6000): Add inf_ptrace-based target.
6694 * Makefile.in (rs6000-nat.o): Update dependencies.
6695
f7dd0ed7
UW
66962007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6697
6698 * inf-ptrace.c: Include "gdb_stdint.h".
6699 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
6700 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
6701 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
6702 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
6703 (inf_ptrace_store_register): Likewise.
6704 * Makefile.in (inf-ptrace.o): Update dependencies.
6705
d9178763
UW
67062007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6707
6708 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
6709 * configure.tgt (rs6000-*-*): Likewise.
6710 * config/rs6000/aix4.mh: Delete file.
6711 * config/rs6000/aix4.mt: Delete file.
6712 * config/rs6000/rs6000.mh: Delete file.
6713 * config/rs6000/rs6000.mt: Delete file.
6714
6715 * config/powerpc/nm-aix.h: Delete file.
6716 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
6717
0d16ee5d
UW
67182007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6719
6720 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
6721 Remove obsolete part of comment.
6722 (store_regs_user_thread): Use uint32_t temporaries when calling
6723 fill_sprs32.
6724 (store_regs_kernel_thread): Likewise. Add assertion to verify
6725 correct size of struct ptsprs members.
6726 (aix_thread_xfer_memory): Fix type of myaddr.
6727 (aix_thread_extra_thread_info): Fix compiler warning.
6728 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
6729 (fetch_register, store_register): Adapt callers.
6730
1e8877aa
UW
67312007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
6732
6733 * vec.h (vec_free): Rename to vec_free_. Adapt users.
6734
b02f9d57
UW
67352007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6736
6737 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
6738 and "regcache.h".
6739 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
6740 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
6741 (alpha_linux_regset_from_core_section): New function.
6742 (alpha_linux_init_abi): Install it.
6743 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
6744 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
6745 <sys/procfs.h>, and "gregset.h".
6746 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
6747 Move from config/alpha/nm-linux.h.
6748 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
6749 from alpha-nat.c.
6750 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
6751 * alpha-nat.c: Remove #ifdef __linux__ section.
6752 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
6753 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
6754 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
6755 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
6756 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
6757 (NATDEPFILES): Remove alpha-nat.o.
6758 * config/alpha/nm-linux.h: Delete file.
6759 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
6760 * Makefile.in (alpha-linux-nat.o): Update dependencies.
6761 (alpha-linux-tdep.o): Likewise.
6762
dda0c97e
UW
67632007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6764
6765 * mips-linux-nat.c: No longer include "gdbcore.h".
6766 (mips_linux_register_addr): Move from mips-linux-tdep.c.
6767 (mips64_linux_register_addr): Likewise.
6768 (mips_linux_register_u_offset): Call mips_linux_register_addr or
6769 mips64_linux_register_addr instead of register_addr.
6770 * mips-linux-tdep.c (mips_linux_register_addr,
6771 mips64_linux_register_addr): Move to mips-linux-nat.c.
6772 (register_addr): Remove.
6773 (register_addr_data, init_register_addr_data): Remove.
6774 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
6775 (set_mips_linux_register_addr): Remove.
6776 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
6777 * Makefile.in (mips-linux-nat.o): Update dependencies.
6778
910122bf
UW
67792007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6780
6781 * linux-nat.c (linux_register_u_offset): Remove.
6782 (linux_target_install_ops): New function.
6783 (linux_target): Use it.
6784 (linux_trad_target): New function.
6785 * linux-nat.h (linux_trad_target): Declare.
6786
6787 * alpha-linux-nat.c: Include "gdbcore.h".
6788 (alpha_linux_register_u_offset): New function.
6789 (_initialize_alpha_linux_nat): Use linux_trad_target.
6790
6791 * mips-linux-nat.c: Include "gdbcore.h".
6792 (mips_linux_register_u_offset): New function.
6793 (_initialize_mips_linux_nat): Use linux_trad_target.
6794
6795 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6796 * config/arm/nm-linux.h: Delete file.
6797
6798 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
6799 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
6800
6801 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6802 * config/ia64/nm-linux.h: Delete file.
6803
6804 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6805 * config/m32r/nm-linux.h: Delete file.
6806
6807 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6808 * config/m68k/nm-linux.h: Delete file.
6809
6810 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6811 * config/pa/nm-linux.h: Delete file.
6812
6813 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6814 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
6815 * config/powerpc/nm-linux.h: Delete file.
6816
6817 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
6818 * config/s390/nm-linux.h: Delete file.
6819
6820 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6821 * config/sparc/linux64.mh (NAT_FILE): Likewise.
6822 * config/sparc/nm-linux.h: Delete file.
6823
6824 * Makefile.in (alpha-linux-nat.o): Update dependencies.
6825 (mips-linux-nat.o): Likewise.
6826
de732108
UW
68272007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
6828
6829 * core-aout.c: Delete file.
6830 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
6831 (core-aout.o): Delete rule.
6832 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
6833
6834 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
6835
6836 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
6837 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
6838 KERNEL_U_ADDR): Remove.
6839
6840 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
6841 (cannot_fetch_register, cannot_store_register): Remove.
6842 (fetch_register): Inline cannot_fetch_register and register_addr.
6843 (store_register): Inline cannot_store_register and register_addr.
6844 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
6845 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6846 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
6847 Remove.
6848
6849 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
6850 (fetch_register): Inline register_addr.
6851 (store_register): Inline register_addr.
6852 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
6853 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
6854 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
6855
6856 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
6857 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
6858 REGISTER_U_ADDR): Remove.
6859
6860 * hppa-linux-nat.c (register_addr): Rename to ...
6861 (hppa_linux_register_addr): ... this. Make static.
6862 (fetch_register, store_register): Adapt callers.
6863 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
6864
6865 * ppc-linux-nat.c (kernel_u_size): Remove.
6866 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
6867
6868 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
6869 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
6870 (NAT_FILE): Remove.
6871 * config/vax/nm-vax.h: Delete file.
6872
1f90c757
MS
68732007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6874
6875 * MAINTAINERS (Write After Approval): Add myself.
6876
bf1242a5
MS
68772007-04-20 Mark Shinwell <shinwell@codesourcery.com>
6878
6879 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
6880 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
6881 (m68k_linux_sigcontext_reg_offset): Fix typo.
6882 (target_is_uclinux): New.
6883 (m68k_linux_inferior_created): New.
6884 (m68k_linux_get_sigtramp_info): Check for uClinux or
6885 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
6886 uClinux.
6887 (_initialize_m68k_linux_tdep): Register
6888 m68k_linux_inferior_created.
6889
96998ce7
PA
68902007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
6891
6892 * win32-nat.c (win32_detach): Remove delete_command call.
6893 Resume inferior with win32_resume instead of win32_continue.
6894
7e71daaa
JG
68952007-04-19 Jerome Guitton <guitton@adacore.com>
6896
6897 * ser-mingw.c (fd_is_file): New function.
6898 (file_select_thread): New function.
6899 (ser_console_wait_handle): Add special handling for files.
6900
3d1f72c2
DP
69012007-04-18 Denis Pilat <denis.pilat@st.com>
6902
6903 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
6904 when missing from DW_TAG_subrange_type. Remove the handling of null
6905 return from die_type.
6906
9ecf7166
MR
69072007-04-18 Maciej W. Rozycki <macro@mips.com>
6908
6909 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
6910 change to rearrange some brackets.
6911 (mips_n32n64_push_dummy_call): Likewise.
6912 (mips_o32_push_dummy_call): Likewise.
6913 (mips_o64_push_dummy_call): Likewise.
6914
b79599ff
DP
69152007-04-18 Denis Pilat <denis.pilat@st.com>
6916
6917 * infcmd.c (post_create_inferior): Start with a call to
3d1f72c2 6918 target_terminal_ours.
b79599ff 6919
06f9a1af
MR
69202007-04-17 Maciej W. Rozycki <macro@mips.com>
6921
6922 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
6923 brackets.
6924 (mips_n32n64_push_dummy_call): Likewise. Reformat some
6925 expressions.
6926 (mips_o32_push_dummy_call): Likewise.
6927 (mips_o64_push_dummy_call): Likewise.
6928
ad018eee
MR
69292007-04-17 Maciej W. Rozycki <macro@mips.com>
6930
6931 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6932 comment.
6933
e914cb17
MR
69342007-04-17 Maciej W. Rozycki <macro@mips.com>
6935
6936 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
6937 comment.
6938 (mips_o32_push_dummy_call): Likewise.
6939
91934273
AS
69402007-04-17 Andreas Schwab <schwab@suse.de>
6941
6942 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
6943 sal to be bigger than the end of the function.
6944
968b5391
MR
69452007-04-17 Maciej W. Rozycki <macro@mips.com>
6946 Nigel Stephens <nigel@mips.com>
6947
6948 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
6949 argument alignment requirements when calculating stack space
6950 required. When aligning an arg register to eight bytes
6951 boundary, align stack_offset too. Write floating-point
6952 arguments to the appropriate integer register if need go there.
6953 (mips_o64_push_dummy_call): Likewise.
6954
e0cd558a
UW
69552007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6956
6957 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
6958 "sig" arguments, add "regcache" argument.
6959 * gdbarch.c, gdbarch.h: Regenerate.
6960
6961 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
6962 (handle_inferior_event): Call remove_single_step_breakpoints directly
6963 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
6964
6965 * alpha-tdep.c (alpha_software_single_step): Update argument list.
6966 Remove handling of !insert_breakpoints_p case.
6967 * arm-tdep.c (arm_software_single_step): Likewise.
6968 * cris-tdep.c (cris_software_single_step): Likewise.
6969 * mips-tdep.c (mips_software_single_step): Likewise.
6970 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
6971 * sparc-tdep.c (sparc_software_single_step): Likewise.
6972 * spu-tdep.c (spu_software_single_step): Likewise.
6973
6974 * alpha-tdep.h (alpha_software_single_step): Update prototype.
6975 * mips-tdep.h (mips_software_single_step): Likewise.
6976 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
6977 * sparc-tdep.h (sparc_software_single_step): Likewise.
6978
06a86285
UW
69792007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
6980
6981 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
6982 when removing single-step breakpoints.
6983
25d5ea92
VP
69842007-04-14 Vladimir Prus <vladimir@codesourcery.com>
6985
6986 * varobj.h (varobj_set_frozen): New
6987 (varobj_get_frozen): New.
6988 (varobj_update): New parameter explicit.
6989 * varobj.c (struct varobj): New fields frozen
6990 and not_fetched.
6991 (varobj_set_frozen, varobj_get_frozen): New.
6992 (install_new_value): Don't fetch values for
6993 frozen variable object, or children thereof. Allow
6994 a frozen variable object to have non-fetched value.
6995 (varobj_update): Allow updating child variables.
6996 Don't traverse frozen children.
6997 (new_variable): Initialize the frozen field.
6998 (c_value_of_variable): Return NULL for frozen
6999 variable without any value yet.
7000 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7001 'explicit'.
7002 (mi_cmd_var_create): Output the 'frozen' field,
7003 as soon as testsuite is adjusted to expect that field.
7004 (mi_cmd_var_set_frozen): New.
7005 (mi_cmd_var_update): Pass the 'explicit' parameter to
7006 varobj_update_one.
7007 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7008 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7009
6e3bbd1a
PB
70102007-04-13 Paul Brook <paul@codesourcery.com>
7011
7012 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7013 ieee_double.
7014 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7015
ea35711c
DJ
70162007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7017
7018 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7019 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7020 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7021 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7022 * Makefile.in: Remove references to deleted files.
7023 * README: Do not mention deleted ROM monitor interfaces.
7024 * defs.h (enum language): Delete language_scm.
7025 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7026 (dump_subexp_body_standard): Likewise.
7027 * parse.c (operator_length_standard): Likewise.
7028 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7029 * remote-mips.c: Do not include remote-utils.h.
7030 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7031 throughout.
7032 * value.c: Do not include scm-lang.h.
7033 (unpack_long): Delete scm_unpack call.
7034 * config/h8300/h8300.mt, config/mips/embed.mt,
7035 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7036 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7037 deleted files.
7038 * NEWS: Mention removed files.
7039
058b9c07
DJ
70402007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7041
7042 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7043 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7044
54d61198
DJ
70452007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7046
7047 * NEWS: Mention removal of HP aCC support.
7048
e499d0f1
DJ
70492007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7050
7051 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7052 first entry for static executables.
7053 (breakpoint_addr): Delete unused variable.
7054 (elf_locate_base): Search for _r_debug in static executables.
7055 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7056 also.
7057
4d5b2cd7
DJ
70582007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7059
7060 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7061 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7062 (mention): Remove bp_through_sigtramp support.
7063 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7064
46d57086
DJ
70652007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7066
7067 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7068 shlib events.
7069
d3169d93
DJ
70702007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7071
7072 * infrun.c: Doc fixes.
7073 (handle_inferior_event): Clarify debug message.
7074 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7075
8c9e4384
UW
70762007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7077
7078 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7079
9418f048
UW
70802007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7081
7082 * config/m68k/tm-monitor.h: Delete file.
7083 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7084 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7085 call moved to ...
7086 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7087 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7088
e6590a1b
UW
70892007-04-12 Luis Machado <luisgpm@br.ibm.com>
7090
7091 * gdbarch.sh (software_single_step): Change the return type
7092 from void to int and reformatted some comments to <= 80
7093 columns.
7094 * gdbarch.c, gdbarch.h: Regenerated.
7095 * alpha-tdep.c (alpha_software_single_step): Likewise.
7096 * alpha-tdep.h (alpha_software_single_step): Likewise.
7097 * arm-tdep.c (arm_software_single_step): Likewise.
7098 * cris-tdep.c (cris_software_single_step): Likewise.
7099 * mips-tdep.c (mips_software_single_step): Likewise.
7100 * mips-tdep.h (mips_software_single_step): Likewise.
7101 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7102 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7103 * sparc-tdep.c (sparc_software_single_step): Likewise.
7104 * sparc-tdep.h (sparc_software_single_step): Likewise.
7105 * spu-tdep.c (spu_software_single_step): Likewise.
7106 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7107 and act accordingly.
7108
58b38ee2
SE
71092007-04-11 Steve Ellcey <sje@cup.hp.com>
7110
7111 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7112 * configure: Regenerate.
7113 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7114
70f575cc
JK
71152007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7116
7117 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7118
d77b6808
JK
71192007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7122 macros.
7123 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7124 distinct on the TYPE_STUB_SUPPORTED debug targets.
7125 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7126
b0b92586
JB
71272007-04-11 Joel Brobecker <brobecker@adacore.com>
7128
7129 * sparc-tdep.c (X_RS2): New macro.
7130 (sparc_skip_stack_check): New function.
7131 (sparc_analyze_prologue): Adjust PC past stack probing
7132 sequence if necessary.
7133
a489f789
AS
71342007-04-10 Andreas Schwab <schwab@suse.de>
7135
7136 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7137 register.
7138
b0b13bb4
DJ
71392007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7140
7141 * breakpoint.c (gdb_breakpoint_query): Really return an
7142 enum gdb_rc.
7143 (gdb_breakpoint): Likewise.
3f11755e
DJ
7144 * thread.c (gdb_list_thread_ids): Likewise.
7145 (gdb_thread_select): Likewise.
b0b13bb4
DJ
7146 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7147 (mi_cmd_thread_list_ids): Remove bogus initialization.
7148
1a92f856
DJ
71492007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7150
7151 * Makefile.in (SFILES): Remove hpacc-abi.c.
7152 (COMMON_OBS): Remove hpacc-abi.o.
7153 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7154 (hpacc-abi.o, hpread.o): Delete rules.
7155 * somread.c: Delete extern declarations from hpread.c.
7156 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7157 (som_symfile_finish): Do not call hpread_symfile_finish.
7158 (som_symfile_init): Do not call hpread_symfile_init.
7159 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7160 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7161 * hpacc-abi.c, hpread.c: Deleted.
7162
542c95c2
DJ
71632007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7164
7165 * solib-svr4.c (enable_break): Simplify return value.
7166 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7167
cfaefc65
AS
71682007-04-10 Andreas Schwab <schwab@suse.de>
7169
7170 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7171 l_ld_size, l_next_size, l_prev_size, l_name_size.
7172
7173 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7174 to extract addresses from link map.
7175 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7176 (LM_NEXT): Likewise.
7177 (LM_NAME): Likewise.
7178 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7179 (elf_locate_base): Likewise.
7180 (open_symbol_file_object): Likewise.
7181 (svr4_fetch_objfile_link_map): Likewise.
7182 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7183 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7184 l_ld_size.
7185 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7186 (svr4_lp64_fetch_link_map_offsets): Likewise.
7187
7188 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7189 removed members. Set l_ld_offset to -1 if not present.
7190
65cc4390
VP
71912007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7192
7193 Pass stderr of program run with "target remote |"
7194 via gdb_stderr.
7195 * serial.c (serial_open): Set error_fd to -1.
7196 * serial.h (struct serial): New field error_fd.
7197 (struct serial_opts): New field avail.
7198 * ser-pipe.c (pipe_open): Create another pair
7199 of sockets. Pass stderr to gdb.
7200 * ser-mingw.c (pipe_windows_open): Pass
7201 PEX_STDERR_TO_PIPE to pex_run. Initialize
7202 sd->error_fd.
7203 (pipe_avail): New.
7204 (_initialize_ser_windows): Hook pipe_avail.
7205 * ser-base.c (generic_readchar): Check if there's
7206 anything in stderr channel and route that to gdb_stderr.
7207
e9112110
PA
72082007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7209
7210 * dbxread.c (read_ofile_symtab): Move current_objfile
7211 clearing to after end_stabs.
7212
7f68ac27
AS
72132007-04-01 Andreas Schwab <schwab@suse.de>
7214
7215 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7216 gdbarch instead of current_gdbarch.
7217
e55dccf0
VP
72182007-04-01 Vladimir Prus <vladimir@codesourcery.com>
7219
7220 * varobj.c (varobj_create): Keep varobj value
7221 NULL when evaluating the type.
7222
7c963485
PA
72232007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
7224
7225 * NEWS: Mention new Windows CE support.
7226
ad527d2e
PA
72272007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
7228
7229 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
7230 the obsoletion stanza.
7231 * NEWS: Mention deleted targets.
7232
7233 * config/sh/tm-wince.h: Remove.
7234 * config/sh/wince.mt: Remove.
7235 * config/mips/tm-wince.h: Remove.
7236 * config/mips/wince.mt: Remove.
7237
7238 * wince.c: Remove.
7239 * wince-stub.c: Remove.
7240 * wince-stub.h: Remove.
7241 * Makefile.in (wince.o): Remove rule.
7242 (wince-stub.o): Likewise.
7243
7244 * mips-tdep.c (mips_next_pc): Make static.
7245 * mips-tdep.h (mips_next_pc): Remove declaration.
7246 * arm-tdep.c (arm_pc_is_thumb): Make static.
7247 (thumb_get_next_pc): Likewise.
7248 (arm_get_next_pc): Likewise.
7249 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
7250 (arm_pc_is_thumb): Likewise.
7251 (thumb_get_next_pc): Likewise.
7252 (arm_get_next_pc): Likewise.
7253
7ce59000
DJ
72542007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7255
7256 * MAINTAINERS: Remove d10v entry.
7257 * Makefile.in (SFILES): Remove dwarfread.c.
7258 (COMMON_OBS): Remove dwarfread.o.
7259 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
7260 (remote-est.o, rom68k-rom.o): Delete.
7261 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
7262 target est, target rom68k, and DWARF 1.
7263 * configure.tgt: Mark d10v as removed.
7264 * dwarf2read.c: Doc update.
7265 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
7266 and lnsize.
7267 (elf_locate_sections): Do not set them.
7268 (elf_symfile_read): Do not call dwarf_build_psymtabs.
7269 * symfile.h (dwarf_build_psymtabs): Delete prototype.
7270 * config/m68k/monitor.mt (TDEPFILES): Prune.
7271 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
7272 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
7273
20389057
DJ
72742007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7275
7276 * doublest.c (convert_floatformat_to_doublest): Use
7277 floatformat_classify.
7278 (floatformat_is_nan): Rename to...
7279 (floatformat_classify): ...this. Return more information.
7280 * doublest.h (enum float_kind): New.
7281 (floatformat_is_nan): Replace prototype...
7282 (floatformat_classify): ...with this one.
7283 * valprint.c (print_floating): Use floatformat_classify. Handle
7284 infinity.
7285
30b50213
DJ
72862007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7287
7288 * README: Mention ISO C library requirement.
7289
8807d78b
DJ
72902007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7291
7292 * Makefile.in (SFILES): Remove nlmread.c.
7293 (COMMON_OBS): Remove nlmread.o.
7294 (nlmread.o): Delete rule.
7295 * README: Delete reference to remote-st.c.
7296 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
7297 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
7298 GDB_OSABI_LYNXOS.
7299 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
7300 (_initialize_i386_tdep): Do not reference them.
7301 * nlmread.c: Delete file.
7302 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
7303 * target.c: Doc update.
7304 * thread.c: Delete commented include.
7305 * config/alpha/tm-alpha.h: Doc update.
7306
ced572fe
MR
73072007-03-30 Chris Dearman <chris@mips.com>
7308
7309 * utils.c (string_to_core_addr): Comment typo.
7310
8a9fc081
MR
73112007-03-30 Chris Dearman <chris@mips.com>
7312
7313 * mips-tdep.c: Comment typo.
7314
5f402660
UW
73152007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
7316
7317 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
7318 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7319 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7320 * config/powerpc/nm-ppc64-linux.h: Remove file.
7321 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
7322 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
7323 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
7324 * infptrace.c (call_ptrace): Likewise.
7325 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
7326 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
7327 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
7328 (store_register): Likewise.
7329
bbf90c81
JB
73302007-03-29 Joel Brobecker <brobecker@adacore.com>
7331
7332 * Makefile.in (varobj.o): Add missing dependency.
7333
243c053b
MS
73342007-03-29 Michael Snyder <msnyder@access-company.com>
7335
7336 * MAINTAINERS: Update my email address.
7337
0259addd
JB
73382007-03-29 Joel Brobecker <brobecker@adacore.com>
7339
7340 Add support for exception handling with multiple versions of
7341 the Ada runtime:
7342 * ada-lang.c: Update general comments on how Ada exception catchpoints
7343 are implemented.
7344 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
7345 (__gnat_raise_nodefer_with_msg): Delete.
7346 (ada_unhandled_exception_name_addr_ftype): New type.
7347 (exception_support_info): New type.
7348 (ada_unhandled_exception_name_addr): Add forward declaration.
7349 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7350 (default_exception_support_info): New constant.
7351 (exception_support_info_fallback): Likewise.
7352 (exception_info): New global variable.
7353 (ada_exception_support_info_sniffer): New function.
7354 (ada_executable_changed_observer): Likewise.
7355 (ada_unhandled_exception_name_addr_from_raise): Renamed from
7356 ada_unhandled_exception_name_addr.
7357 (ada_unhandled_exception_name_addr): Reimplement to match the
7358 latest Ada runtime implementation.
7359 (error_breakpoint_runtime_sym_not_found): Delete.
7360 (ada_exception_sym_name): Get the exception sym name from
7361 exception_info rather than hardcoding it.
7362 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
7363 Update error handling.
7364 * Makefile.in (ada-lang.o): Add dependency on observer.h.
7365
483367ee
DJ
73662007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7367
7368 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
7369 (remote-st.o, uw-thread.o): Delete.
7370 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
7371 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7372 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
7373 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
7374 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
7375 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
7376 rs6000-*-lynxos* to an obsoletion stanza.
7377 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7378 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
7379 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
7380 i[34567]86-*-netware*.
7381 * NEWS: Mention deleted targets.
7382
7383 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
7384 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
7385 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
7386 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
7387 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
7388 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
7389 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
7390 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
7391 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
7392 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
7393 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
7394 config/rs6000/tm-rs6000ly.h: Delete files.
7395
3adda9d8
DJ
73962007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7397
7398 * defs.h (deprecated_registers_changed_hook): Delete declaration.
7399 * interps.c (clear_interpreter_hooks): Do not clear
7400 deprecated_registers_changed_hook.
7401 * regcache.c (registers_changed): Do not call it.
7402 * top.c (deprecated_registers_changed_hook): Do not define it.
7403 * mi/mi-interp.c (mi_command_loop): Do not clear it.
7404 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
7405 (tui_remove_hooks): Do not remove it.
7406 (tui_selected_frame_level_changed_hook): Check for negative level.
7407 Use get_selected_frame.
7408 (tui_registers_changed_hook): Deleted.
7409
bf362611
JB
74102007-03-29 Joel Brobecker <brobecker@adacore.com>
7411
7412 * stabsread.c (add_undefined_type): Add extra parameter.
7413 Now handles nameless types separately.
7414 (struct nat): New type.
7415 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
7416 New static variables.
7417 (read_type): Update calls to add_undefined_type.
7418 (add_undefined_type_noname): New function.
7419 (add_undefined_type_1): Renames from add_undefined_type.
7420 (cleanup_undefined_types_noname): New function.
7421 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
7422 (cleanup_undefined_types): New handles nameless types separately.
7423 (_initialize_stabsread): Initialize our new static constants.
7424
436868fb
DP
74252007-03-29 Denis Pilat <denis.pilat@st.com>
7426
7427 * configure.ac: Test for signal.h.
7428 * configure, config.in: Regenerate.
7429
aaf9e9fd
DP
74302007-03-29 Denis Pilat <denis.pilat@st.com>
7431
7432 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
7433 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
7434
68070c10
PA
74352007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
7436
7437 * arm-wince-tdep.c: New.
7438 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
7439 (MT_CFLAGS): Delete.
7440 (TM_CLIBS): Delete.
7441 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
7442 solib-legacy.o, solib-svr4.o, and remove wince.o.
7443 * configure.tgt (arm*-*-mingw32ce*): Add.
7444 * signals/signals.c [HAVE_SIGNAL_H]: Check.
7445 (do_target_signal_to_host): Silence 'not used' warning.
7446 * config/arm/tm-wince.h: Remove.
7447
74174d2e
UW
74482007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
7449
7450 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
7451 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
7452
7453 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
7454 * config/ia64/tm-linux.h: Remove file.
7455 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
7456 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
7457 legacy_pc_in_sigtramp.
7458 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
7459 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
7460 Remove func_name argument.
7461 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
7462
7463 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
7464 * target.c (update_current_target): Add to_have_steppable_watchpoint.
7465 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
7466 (HAVE_STEPPABLE_WATCHPOINT): Define.
7467
7468 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
7469 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
7470 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
7471 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
7472 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
7473 target_insert_watchpoint, target_remove_watchpoint): Remove.
7474 (FETCH_INFERIOR_REGISTERS): Define.
7475 * ia64-linux-nat.c (ia64_register_addr): Make static.
7476 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
7477 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
7478 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
7479 (ia64_linux_stopped_data_address): Make static. Add target_ops.
7480 (ia64_linux_stopped_by_watchpoint): Make static.
7481 (ia64_linux_can_use_hw_breakpoint): New function.
7482 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
7483 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
7484 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
7485
53c5240f
PA
74862007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
7487
7488 * linespec.c: Include language.h.
7489 (find_methods): Add language parameter. Call
7490 lookup_symbol_in_language. Pass language down.
7491 (add_matching_methods): Likewise. Call
7492 lookup_symbol_in_language.
7493 (add_constructors): Likewise.
7494 (find_method): Pass sym_class to collect_methods.
7495 (collect_methods): Add sym_class parameter. Pass language
7496 down.
7497 * symtab.c (lookup_symbol): Rename to ...
7498 (lookup_symbol_in_language): ... this. Add language
7499 parameter. Use passed language instead of current_language.
7500 (lookup_symbol): New as wrapper around
7501 lookup_symbol_in_language.
7502 (lookup_symbol_aux): Add language parameter. Use passed
7503 language instead of current_language.
7504 (search_symbols): Indent.
7505 * symtab.h (enum language): Forward declare.
7506 (lookup_symbol_in_language): Declare.
7507 (lookup_symbol): Update description.
7508 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
7509 * ada-lang.c (restore_language): Remove.
7510 (lookup_symbol_in_language): Remove.
7511
8671a17b
PA
75122007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
7513
7514 * breakpoint.c (bpstat_num): Add int *num parameter.
7515 * breakpoint.h (bpstat_num): Likewise.
7516 * infcmd.c (continue_command): Adjust to new bpstat_num
7517 interface.
7518 (program_info): Likewise.
7519
214197f9
UW
75202007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7521
7522 * config/sh/tm-sh.h: Remove file.
7523 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
7524 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
7525 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
7526 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
7527
bac718a6
UW
75282007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7529
7530 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
7531 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
7532 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
7533 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
7534 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
7535 sequence if target_shortname is "remote".
7536
de6a76fd
DJ
75372007-03-27 Anton Blanchard <anton@samba.org>
7538
7539 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
7540 instead of wordsize when looking for the LR in a stack frame.
7541
4fc771b8
DJ
75422007-03-27 Andreas Schwab <schwab@suse.de>
7543 Daniel Jacobowitz <dan@codesourcery.com>
7544
7545 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
7546 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
7547 argument. Update all callers.
7548 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
7549 (dwarf2_frame_set_eh_frame_regnum): Rename to...
7550 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
7551 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
7552 (dwarf2_frame_set_adjust_regnum): ...this.
7553 (dwarf2_frame_eh_frame_regnum): Delete prototype.
7554 * rs6000-tdep.c: Include "dwarf2-frame.h".
7555 (rs6000_adjust_frame_regnum): Define.
7556 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
7557 Register rs6000_adjust_frame_regnum.
7558
7559 * Makefile.in (rs6000-tdep.o): Update dependencies.
7560
9453113a
DJ
75612007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
7562
7563 * Makefile.in: Add support for a "pdf" target.
7564
d2449ee8
DJ
75652007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
7566
7567 * amd64-tdep.c (amd64_init_frame_cache): New function.
7568 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
7569
a72d8a8e
MR
75702007-03-26 Nigel Stephens <nigel@mips.com>
7571 Maciej W. Rozycki <macro@mips.com>
7572
7573 * ui-out.c (ui_out_field_core_addr): Truncate address to
7574 TARGET_ADDR_BIT size before printing.
7575
5200c3f3 75762007-03-22 Nigel Stephens <nigel@mips.com>
a72d8a8e 7577 Maciej W. Rozycki <macro@mips.com>
5200c3f3
L
7578
7579 * remote-mips.c (mips_xfer_memory): Update prototype.
7580
16708cba
JB
75812007-03-22 Joel Brobecker <brobecker@adacore.com>
7582
7583 * symfile.h: #include "symtab.h"
7584
0fe514e3
DP
75852007-03-22 Denis Pilat <denis.pilat@st.com>
7586
7587 * utils.c (pagination_on_command, pagination_off_command):
7588 Remove useless prototypes.
7589
4a52dc15
PM
75902007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
7591
7592 Fix PR pascal/2232.
7593 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
7594 instead of TYPE_NAME for object base class name.
7595
7596
1c86fa97
KB
75972007-03-19 Kevin Buettner <kevinb@redhat.com>
7598
7599 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
7600 Specify frame type in calls to frame_func_unwind().
7601
4e463ff5
DJ
76022007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
7603
7604 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
7605 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
7606 (refine_prologue_limit): Delete.
7607 (skip_prologue): Don't call it. Use extract_unsigned_integer.
7608 Assume lim_pc is set. Correct check for incomplete prologues.
7609 Do not skip clobbers of the frame pointer.
7610 * symtab.c (skip_prologue_using_sal): Fail if there is only one
7611 sal.
7612
348473d5
NF
76132007-03-13 Nathan Froyd <froydnj@codesourcery.com>
7614
7615 * frame.c (frame_pop): Check to see whether there's a frame to
7616 which we can pop first.
7617
a2f9cf0d
NF
76182007-03-13 Nathan Froyd <froydnj@codesourcery.com>
7619
7620 * MAINTAINERS (Write After Approval): Add myself.
7621
569631c6
UW
76222007-03-09 Markus Deuling <deuling@de.ibm.com>
7623
7624 * infrun.c (breakpoints_failed): Remove unnecessary variable.
7625 (handle_inferior_event): Remove unnecessary braces.
7626 * breakpoint.c (bpstat_what): Remove wrong comment.
7627
fe5febed
UW
76282007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
7629
7630 * spu-tdep.c (spu_in_function_epilogue_p): New function.
7631 (spu_gdbarch_init): Install it.
7632
9dea8ca2
UW
76332007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7634
7635 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
7636 object types, not 0.
7637
7b3dc0b7
UW
76382007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7639
7640 * spu-tdep.c (spu_frame_align): New function.
7641 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
7642
118dfbaf
UW
76432007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7644
7645 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
7646 (spu_software_single_step): Likewise.
7647 (spu_read_pc, spu_write_pc): New functions.
7648 (spu_gdbarch_init): Install them.
7649
29e4017d
UW
76502007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7651
7652 * cli/cli-dump.c (struct callback_data): load_offset needs to
7653 have signed long type.
7654
6de5b849
JB
76552007-03-07 Joel Brobecker <brobecker@adacore.com>
7656
7657 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
7658 Revert the previous change that had some unexpected side-effects
7659 on mips32.
7660 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
7661 function to get the address of the calling instruction.
7662
7490ba4f
DP
76632007-03-07 Denis Pilat <denis.pilat@st.com>
7664
7665 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
7666 get_selected_frame by deprecated_safe_get_selected_frame.
7667
861fb77c
MK
76682007-03-02 Mark Kettenis <kettenis@gnu.org>
7669
7670 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
7671 "gdb_string.h". Don't include "nbsd-tdep.h".
7672 (SIZEOF_STRUCT_REG): Remove.
7673 (SHNBSD_SIZEOF_GREGS): New.
7674 (shnbsd_supply_gregset, shnbsd_collect_gregset)
7675 (shnbsd_regset_from_core_section): New functions.
7676 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
7677 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
7678 shnbsd_supply_gregset, shnbsd_collect_gregset.
7679 (shnbsd_gregset): New variable.
7680 (shnbsd_init_abi): Set regset_from_core_section.
7681 (GDB_OSABI_NETBSD_CORE): New define.
7682 (shnbsd_core_osabi_sniffer): New function.
7683 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
7684 * Makefile.in (shnbsd-tdep.o): Update dependencies.
7685 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
7686 nbsd-tdep.o.
7687 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
7688
787cbe14
JB
76892007-02-28 Joel Brobecker <brobecker@adacore.com>
7690
7691 * gdbtypes.c (replace_type): Fix typo that caused us to not update
7692 length of the types referenced by the new type CV ring.
7693
35f196d9
DJ
76942007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7695
7696 * frame.c (frame_pop, frame_observer_target_changed): Call
7697 reinit_frame_cache.
7698 (flush_cached_frames): Rename to reinit_frame_cache and delete
7699 old implementation.
7700 * frame.h (flush_cached_frames): Delete prototype and update comment.
7701
7702 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
7703 reinit_frame_cache instead of flush_cached_frames. Do not call
7704 select_frame after reinit_frame_cache.
7705 * corelow.c (core_open): Likewise.
7706 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
7707 * infrun.c (prepare_to_proceed, context_switch)
7708 (handle_inferior_event): Likewise.
7709 * linux-fork.c (fork_load_infrun_state): Likewise.
7710 * ocd.c (ocd_start_remote): Likewise.
7711 * remote-e7000.c (e7000_start_remote): Likewise.
7712 * remote-mips.c (device): Likewise.
7713 * thread.c (switch_to_thread): Likewise.
7714 * tracepoint.c (finish_tfind_command): Likewise.
7715 * gdbarch.c: Regenerated.
7716
c26f2453
JB
77172007-02-28 Jerome Guitton <guitton@adacore.com>
7718 Joel Brobecker <brobecker@adacore.com>
7719
7720 * gdbtypes.c (check_typedef): Do not replace stub type if
7721 the resolved type is not defined in the same objfile.
7722
7d900f1a
DJ
77232007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7724
7725 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
7726
76038652 77272007-02-28 Joel Brobecker <brobecker@adacore.com>
52eea4ce
JB
7728
7729 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
7730 symbol for Ada units when the symbol is defined using 't' rather
7731 than 'Tt' as symbol descriptor.
7732
d74fb156 77332007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1344afe0
UW
7734
7735 * config/mips/tm-nbsd.h: Delete file.
7736 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
7737 * config/sh/tm-nbsd.h: Delete file.
7738 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
7739
f8d225db
JB
77402007-02-28 Joel Brobecker <brobecker@adacore.com>
7741
7742 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
7743 unused WRONG_PARAM value since it was recently deleted.
7744
1bbfb19a
NR
77452007-02-28 Vladimir Prus <vladimir@codesourcery.com>
7746
7747 * varobj.c (varobj_update): Free temporary vectors.
7748
6f7f3f0d
UW
77492007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7750
7751 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
7752 * config/powerpc/tm-linux.h: Delete file.
7753 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
7754 (PROCESS_LINENUMBER_HOOK): Do not undefine.
7755 (TEXT_SEGMENT_BASE): Do not redefine.
7756 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
7757 from config/rs6000/tm-rs6000.h.
7758 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7759 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
7760 (TEXT_SEGMENT_BASE): Remove.
7761 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
7762 (rs6000_in_solib_return_trampoline): Remove.
7763 (SKIP_TRAMPOLINE_CODE): Remove.
7764 (rs6000_skip_trampoline_code): Remove.
7765 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
7766 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
7767 (FP0_REGNUM): Remove.
7768 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
7769 (rs6000_set_host_arch_hook): Remove.
7770 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
7771 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
7772 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
7773 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
7774 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
7775 * rs6000-nat.c: Include "rs6000-tdep.h".
7776 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
7777 (set_host_arch): Rename to ...
7778 (rs6000_create_inferior): ... this. Make public.
7779 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
7780 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
7781 (rs6000_create_inferior): Remove.
7782 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
7783 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
7784 set_gdbarch_in_solib_return_trampoline, and
7785 set_gdbarch_skip_trampoline_code.
7786 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
7787 from config/rs6000/tm-rs6000.h.
7788
63050a44 77892007-02-27 Joel Brobecker <brobecker@adacore.com>
05279ca0
JB
7790
7791 * buildsym.c (record_producer): Do nothing if no producer is provided.
7792
63050a44 77932007-02-27 Nick Roberts <nickrob@snap.net.nz>
e0b75a46
NR
7794
7795 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
7796 to check changelist is non-NULL. Call error if the frontend tries
7797 to update a non-root variable.
7798
7799 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
7800
93d42b30
DJ
78012007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7802
7803 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
7804 (dwarf2_frame_sniffer): Update.
7805 (dwarf2_signal_frame_this_id): New function.
7806 (dwarf2_signal_frame_unwind): Use it.
7807 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
7808 * frame.c (frame_func_unwind): Add this_type argument.
7809 (get_frame_func): Update.
7810 (frame_unwind_address_in_block): Add this_type argument and check it.
7811 Fix a typo.
7812 (get_frame_address_in_block): Update.
7813 * frame.h (enum frame_type): Move higher in the file.
7814 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
7815 argument.
7816
7817 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
7818 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
7819 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
7820 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
7821 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
7822 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
7823 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
7824 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
7825 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
7826 frame_func_unwind and frame_unwind_address_in_block to specify
7827 the frame type. Use frame_unwind_address_in_block instead of
7828 frame_pc_unwind in sniffers.
7829
206415a3
DJ
78302007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7831
7832 * frame.c (deprecated_selected_frame): Rename to...
7833 (selected_frame): ...this. Make static.
7834 (get_selected_frame, select_frame): Update.
7835 * frame.h (deprected_select_frame): Delete.
7836 (deprecated_safe_get_selected_frame): Update comments.
7837
7838 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
7839 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
7840 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
7841 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
7842 tui/tui.c: Replace references to deprecated_selected_frame.
7843
7313566f
FF
78442007-02-27 Fred Fish <fnf@specifix.com>
7845
7846 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
7847 directly decrement the stack pointer, accumulate their operand into
7848 the stack offset, and mark the function as not being frameless.
7849
b6d373df
DJ
78502007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7851
7852 * arch-utils.c (selected_byte_order): New.
7853 * arch-utils.h (selected_byte_order): New prototype.
7854 * remote-sim.c (gdbsim_open): Use selected_byte_order.
7855
2711e456
DJ
78562007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7857
7858 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
7859 (default_symfile_offsets): Check VMA here. Update section VMAs.
7860
baef701f
DJ
78612007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7862
7863 * remote.c (init_remote_state): Add special handling for placeholder
7864 registers.
7865
05a4558a
DJ
78662007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7867
7868 * Makefile.in (XMLFILES): Include $(TDEP_XML).
7869 (filenames_h): New variable.
7870 (clean): Clean up xml-builtin.c and stamp-xml.
7871 (arm-linux-nat.o): Update.
7872 * config/arm/linux.mh (TDEP_XML): Define.
7873 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
7874 (arm_linux_has_wmmx_registers): New.
7875 (GET_THREAD_ID): Fix typo.
7876 (IWMMXT_REGS_SIZE): Define.
7877 (fetch_wmmx_regs, store_wmmx_regs): New.
7878 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
7879 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
7880 (super_xfer_partial, arm_linux_xfer_partial): New.
7881 (_initialize_arm_linux_nat): Use them.
7882 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
7883 (xml_builtin_xfer_partial): New function.
7884 * xml-support.h (xml_builtin_xfer_partial): New prototype.
7885 * NEWS: Update mention of iWMMXt support.
7886
ff6f572f
DJ
78872007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7888
7889 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
7890 if there are no FPA registers.
7891 (arm_dwarf_reg_to_regnum): New function.
7892 (arm_register_type, arm_register_name): Return minimal values for
7893 unsupported registers.
7894 (arm_register_sim_regno): Handle iWMMXt registers.
7895 (arm_gdbarch_init): Record missing FPA registers if indicated by
7896 a target description. Recognize iWMMXt registers. Only register
7897 "info float" for FPA. Use ARM_NUM_REGS. Register
7898 arm_dwarf_reg_to_regnum.
7899 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
7900 constants.
7901 (struct gdbarch_tdep): Add have_fpa_registers.
7902 * features/xscale-iwmmxt.xml: Update capitalization.
7903 * regformats/arm-with-iwmmxt.dat: Regenerated.
7904
c077150c
KB
79052007-02-24 Kevin Buettner <kevinb@redhat.com>
7906
7907 * NEWS (New targets): Add entry for the Toshiba Media Processor.
7908
01c996c1
KB
79092007-02-23 Kevin Buettner <kevinb@redhat.com>
7910
7911 * MAINTAINERS (mep): New target.
7912
aeb43123
KB
79132007-02-23 Kevin Buettner <kevinb@redhat.com>
7914
7915 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
7916 Richard Sandiford:
7917 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
7918 (mep-tdep.o): New rule.
7919 * configure.tgt (mep-*-*): New target.
7920 * mep-tdep.c: New file.
7921 * config/mep/mep.mt: New file.
7922
115d86cf
UW
79232007-02-22 Markus Deuling <deuling@de.ibm.com>
7924
7925 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
7926 BREAKPOINT_HIT and STOP_UNKNOWN.
7927
fef862e5
UW
79282007-02-22 Markus Deuling <deuling@de.ibm.com>
7929
7930 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
7931
9a7d5afb
JB
79322007-02-20 Joel Brobecker <brobecker@adacore.com>
7933
7934 * gdb_expat.h (XMLCALL): Define if not already defined.
7935
81de920d
AS
79362007-02-20 Andreas Schwab <schwab@suse.de>
7937
7938 * Makefile.in (symfile.o): Update dependencies.
7939
cb5c8c39
DJ
79402007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7941
7942 * MAINTAINERS: Disable -Werror for cris simulator. Build
7943 sparc64-solaris2.10 instead of the broken sparc-elf.
7944 * solib-frv.c: Include "solib.h".
7945 * Makefile.in (solib-frv.o): Update.
7946 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
7947 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
7948 (xtensa_frame_this_id, xtensa_frame_prev_register)
7949 (xtensa_push_dummy_call): Use %p.
7950
e6bb342a
DJ
79512007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7952
7953 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
7954 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
7955 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
7956 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
7957 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
7958 (sparc-linux-tdep.o): Update.
7959
ff7a4c00
MG
79602007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
7961
7962 * xtensa-tdep.h (xtensa_reg_mask_t): New.
7963 (xtensa_mask_t): Change mask field to be a separate array.
7964 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
7965 (xtensa_pseudo_register_write, xtensa_unwind_pc)
7966 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
7967 (xtensa_breakpoint_from_pc): Remove implicit type casting.
7968 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
7969 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
7970 (mask14, mask15): Rename to
7971 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
7972 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
7973 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
7974 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
7975 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
7976 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
7977 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
7978 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
7979 (xtensa_submask14, xtensa_submask15): New.
7980 (rmap): Follow strict aliasing rules doing static initialization.
7981
d9cc5895
DJ
79822007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
7983
7984 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
7985 handling from here...
7986 (tdesc_register_type): ...to here.
7987 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
7988 * features/arm-core.xml: Use code_ptr and data_ptr.
7989
8756216b
DP
79902007-02-13 Denis Pilat <denis.pilat@st.com>
7991
7992 * varobj.h (enum varobj_update_error): New enum.
7993 * varobj.c (struct varobj_root): Add is_valid member.
7994 (varobj_get_type): Check for invalid varobj.
7995 (varobj_get_attributes): Likewise.
7996 (variable_editable):Likewise.
7997 (varobj_update): Likewise. Use varobj_update_error.
7998 (new_root_variable): Set root varobj as valid by default.
7999 (varobj_invalidate): New function.
8000 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8001 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8002 Use varobj_update_error.
8003
fe8e67fd
PM
80042007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8005
8006 Fix PR pascal/2223.
8007 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8008 Pascal language marker.
8009 * dwarf2read.c (set_cu_language): Likewise.
8010
c44537cf
CV
80112007-02-12 Corinna Vinschen <vinschen@redhat.com>
8012
8013 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8014 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8015 instead of target_terminal_init since inferior_ptid isn't set yet.
8016
20dad8ea
PA
80172007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8018
8019 * MAINTAINERS (Write After Approval): Add myself.
8020
4ac94eda
FF
80212007-02-09 Fred Fish <fnf@specifix.com>
8022
8023 Based on work by Apple Computer, Inc.
8024 * event-top.c (async_request_quit): Call quit() whenever either
8025 quit_flag is set or immediate_quit is set.
8026
b260b6c1
GDR
80272007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8028
8029 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8030 type to a pointer to const struct block.
8031 (ada_lookup_symbol_list): Don't cast away constness when calling
8032 remove_out_of_scope_renamings.
8033
80342007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8035
8036 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8037 address of 'filename'; it is always non null.
8038
0f5d55d8
JB
80392007-02-09 Joel Brobecker <brobecker@adacore.com>
8040
8041 * exec.c (add_to_section_table): Do not discard empty sections.
8042
fb1e4ffc
DJ
80432007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8044
8045 * features/Makefile, features/arm-with-iwmmxt.xml,
8046 features/gdbserver-regs.xsl, features/number-regs.xsl,
8047 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8048 * regformats/arm-with-iwmmxt.dat: Generate.
8049 * NEWS: Mention iWMMXt.
8050
123dc839
DJ
80512007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8052
8053 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8054 (xml-tdesc.o): Update.
8055 * xml-support.c: Add a comment.
8056 (gdb_xml_enums_boolean): New variable.
8057 (gdb_xml_parse_attr_enum): Use strcasecmp.
8058 * xml-support.h (gdb_xml_enums_boolean): Declare.
8059 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8060 next_regnum, and current_union.
8061 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8062 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8063 (field_attributes, union_children, reg_attributes, union_attributes)
8064 (vector_attributes, feature_attributes, feature_children): New.
8065 (target_children): Make static. Add <feature>.
8066 (tdesc_elements): Make static.
8067 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8068 (struct tdesc_feature, tdesc_feature_p): New types.
8069 (struct target_desc): Add features member.
8070 (struct tdesc_arch_data, tdesc_data): New.
8071 (target_find_description): Clarify error message. Warn about
8072 ignored register descriptions.
8073 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8074 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8075 (tdesc_data_cleanup, tdesc_numbered_register)
8076 (tdesc_numbered_register_choices, tdesc_find_register)
8077 (tdesc_register_name, tdesc_register_type)
8078 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8079 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8080 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8081 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8082 (tdesc_create_feature, tdesc_record_type): New.
8083 (free_target_description): Free features.
8084 (_initialize_target_descriptions): Initialize tdesc_data.
8085 * arch-utils.c (default_remote_register_number): New.
8086 * arch-utils.h (default_remote_register_number): New prototype.
8087 * target-descriptions.h (set_tdesc_pseudo_register_name)
8088 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8089 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8090 (tdesc_numbered_register, tdesc_numbered_register_choices)
8091 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8092 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8093 (tdesc_create_reg): Declare.
8094 * gdbarch.sh (remote_register_number): New entry.
8095 * gdbarch.c, gdbarch.h: Regenerate.
8096 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8097 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8098
8099 * arm-tdep.c (arm_register_aliases): New.
8100 (arm_register_name_strings): Rename to...
8101 (arm_register_names): ...this. Make const. Delete the old version.
8102 (current_option, arm_register_byte): Delete.
8103 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8104 (value_of_arm_user_reg): New.
8105 (arm_gdbarch_init): Verify any described registers. Call
8106 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8107 for standard register names.
8108 (_initialize_arm_tdep): Do not adjust arm_register_names.
8109 * user-regs.c (struct user_reg): Add baton member.
8110 (append_user_reg, user_reg_add_builtin, user_regs_init)
8111 (user_reg_add, value_of_user_reg): Use a baton for user
8112 register functions.
8113 * std-regs.c: Update.
8114 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8115 (user_reg_add): Add baton argument.
8116 * NEWS: Mention target description register support.
8117 * features/arm-core.xml, features/arm-fpa.xml: New.
8118 * eval.c (evaluate_subexp_standard): Allow ptype $register
8119 when the program is not running.
8120
87604222
NR
81212007-02-09 Nick Roberts <nickrob@snap.net.nz>
8122
8123 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8124
ee4f0f76
DJ
81252007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8126
8127 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8128 info->disassembler_options to "any".
8129
7af9851d
DJ
81302007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8131
8132 * varobj.c (install_new_value): Only call value_get_print_value
8133 if changeable.
8134
8944021f
DJ
81352007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8136
8137 Reported by timeless@gmail.com:
8138 * gdb/target.c (target_flash_erase): Do not return void value.
8139 (target_flash_done): Likewise.
8140 * gdb/cli/cli-cmds.c (source_command): Likewise.
8141
81422007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 8143
4ac94eda 8144 Based on work by Apple Computer, Inc.
5f960e00
FF
8145 * event-top.c (handle_sigint): Set quit_flag.
8146 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8147 if quit_flag has already been reset.
8148
4998c1df
DJ
81492007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8150
8151 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8152 up.
8153
79da184e
FF
81542007-02-08 Fred Fish <fnf@specifix.com>
8155
8156 * defs.h (request_quit): Remove declaration.
8157 * utils.c (request_quit): Remove definition.
8158
3c77c82a
DJ
81592007-02-08 Joel Brobecker <brobecker@gnat.com>
8160 Jan Kratochvil <jan.kratochvil@redhat.com>
8161 Daniel Jacobowitz <dan@codesourcery.com>
8162
8163 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8164 (skip_prologue): Allow bl->blrl used by PIC code.
8165
c1b6e682
DJ
81662007-02-08 Mark Kettenis <kettenis@gnu.org>
8167 Daniel Jacobowitz <dan@codesourcery.com>
8168
8169 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8170 initialize tmp_obstack.
8171 * p-valprint.c (pascal_object_print_value_fields)
8172 (pascal_object_print_value): Likewise.
8173
fe5dedf4
DJ
81742007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8175
8176 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8177
3e461478
MK
81782007-02-08 Mark Kettenis <kettenis@gnu.org>
8179
8180 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8181 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8182
fc6e0168
DJ
81832007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8184
8185 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8186 (xml_cache): New.
8187 (tdesc_parse_xml): Cache expanded descriptions.
8188
108546a0
DJ
81892007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8190
8191 * Makefile.in (XMLFILES): New.
8192 (COMMON_OBS): Add xml-builtin.o.
8193 (xml-builtin.c, stamp-xml): New rules.
8194 (xml-tdesc.o): Update.
8195 * features/feature_to_c.sh: New file.
8196 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8197 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8198 (gdb_xml_start_element): Initialize scope after possibly reallocating
8199 scopes. Move cleanup later. Handle the XInclude description
8200 specially.
8201 (gdb_xml_end_element): Only parse the body if there is a current element.
8202 Call XML_DefaultCurrent if there is no element.
8203 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8204 (struct xinclude_parsing_data, xinclude_start_include)
8205 (xinclude_end_include, xml_xinclude_default)
8206 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8207 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8208 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8209 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8210 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8211 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8212 XInclude directives. Use the compiled in DTD.
8213 (fetch_xml_from_file): Add baton argument. Treat it as a containing
8214 directory name. Do not warn here.
8215 (file_read_description_xml): Update call. Warn here instead. Pass
8216 a dirname as baton.
8217 (fetch_available_features_from_target): New.
8218 (target_read_description_xml): Use it.
8219 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
8220 to handle XInclude.
8221 * features/xinclude.dtd: New file.
8222
b5057acd
DJ
82232007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8224
8225 * linux-thread-db.c (check_for_thread_db): Return early if we have
8226 no libthread_db support.
8227
6a089cf2
DJ
82282007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8229
8230 * mi/mi-parse.h: Include <sys/time.h>.
8231
9fbcbb40
NR
82322007-02-05 Nick Roberts <nickrob@snap.net.nz>
8233
8234 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
8235 instead of print_variable_value to print values.
8236
b3d2152a
NR
82372007-02-03 Nick Roberts <nickrob@snap.net.nz>
8238
8239 * mi/mi-main.c: Numerous formatting changes.
8240 (mi_cmd_data_write_register_values): Replace clause inadvertantly
8241 removed in my previous change.
8242
79f0a97a
NR
82432007-02-03 Eli Zaretskii <eliz@gnu.org>
8244
8245 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
8246 Use 1000000L instead of 1000000.
8247
95a98c01 82482007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
8249
8250 Based on work by Apple Computer, Inc.
8251
8252 * configure.ac: Test for sys/resource.h and getrusage.
8253 * configure, config.in: Regenerate.
8254
8255 * mi/mi-main.c: Include <sys/resource.h> if present.
8256 (rusage): Declare if HAVE_GETRUSAGE.
8257 (current_command_ts, do_timings): New static variables.
8258 (timestamp, print_diff_now, print_diff, timeval_diff):
8259 New static timing functions.
8260 (mi_cmd_enable_timings): New function for new MI command.
8261 (captured_mi_execute_command, mi_execute_async_cli_command):
8262 Call timing functions.
8263
8264 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
8265 -enable-timings.
8266
8267 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
8268
8269 * mi/mi-parse.h: (mi_timestamp): New structure.
8270 (mi_parse): Add mi_timestamp* member.
8271
99b3d574
DP
82722007-02-02 Denis Pilat <denis.pilat@st.com>
8273
8274 * thread.c (make_cleanup_restore_current_thread): New function.
8275 (info_threads_command): Use of make_cleanup_restore_current_thread
8276 to restore the current thread and the selected frame.
8277 (restore_selected_frame): New function.
8278 (struct current_thread_cleanup): Add frame_id field.
8279 (do_restore_current_thread_cleanup): Add restoring of the selected
8280 frame.
8281 (make_cleanup_restore_current_thread): Likewise.
8282 (thread_apply_all_command): backup the selected frame while
8283 entering the function and restore it at exit.
8284 (thread_apply_command): Likewise.
8285
d3c598de
DP
82862007-02-02 Denis Pilat <denis.pilat@st.com>
8287
8288 * MAINTAINERS (Write After Approval): Add myself to the list.
8289
b69733ab 82902007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
8291
8292 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
8293 (m32r_store_register): Ditto.
8294
b69733ab 82952007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
8296
8297 * ser-mingw.c (pipe_windows_open)
8298 (pipe_windows_read, pipe_windows_write): Declare
8299 variables at the top of the function.
8300
8da61cc4
DJ
83012007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8302
8303 * doublest.c (floatformat_from_length): Use the right element from
8304 gdbarch floatformats.
8305 (floatformat_from_type, extract_typed_floating)
8306 (store_typed_floating): Likewise.
8307 * doublest.h: Remove declarations for undefined floatformat arrays.
8308 * gdbarch.sh (float_format, double_format, long_double_format): Change
8309 to pairs.
8310 (pformat): Update for pairs.
8311 * gdbarch.c, gdbarch.h: Regenerated.
8312 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
8313 (floatformats_ieee_double_littlebyte_bigword)
8314 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
8315 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
8316 (floatformats_vax_d): New variables.
8317 (builtin_type_ieee_single, builtin_type_ieee_double)
8318 (builtin_type_arm_ext, builtin_type_ia64_spill)
8319 (builtin_type_ia64_quad): Replace arrays with individual types.
8320 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
8321 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
8322 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
8323 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
8324 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
8325 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
8326 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
8327 unused and endian-specific types.
8328 (recursive_dump_type): Update for floatformat pairs.
8329 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
8330 (build_gdbtypes): Use build_flt.
8331 (_initialize_gdbtypes): Update set of initialized types.
8332 * gdbtypes.h: Update declarations to match gdbtypes.c.
8333 (struct main_type): Store a pointer to two floatformats.
8334 * arch-utils.c (default_float_format, default_double_format): Delete.
8335 * arch-utils.h (default_float_format, default_double_format): Delete.
8336
8337 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8338 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
8339 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
8340 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
8341 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
8342
87680a14
JB
83432007-01-29 Joel Brobecker <brobecker@adacore.com>
8344
8345 * target.c (maintenance_print_target_stack): New function.
8346 (initialize_targets): Add new "maintenance print target-stack"
8347 command.
8348
1c3d648d
MK
83492007-01-28 Mark Kettenis <kettenis@gnu.org>
8350
8351 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
8352
607269ae
DJ
83532007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
8354
8355 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
8356 (struct dwarf2_loclist_baton): Likewise.
8357
40c03ae8
EZ
83582007-01-27 Eli Zaretskii <eliz@gnu.org>
8359
8360 * cli/cli-script.c: Include breakpoint.h.
8361 (build_command_line): Require arguments only for if and while
8362 commands.
8363 (get_command_line, execute_user_command, execute_control_command):
8364 Fix wording of warning messages.
8365 (print_command_lines): Print breakpoint commands.
8366 (execute_control_command): Call commands_from_control_command to
8367 handle the `commands' command inside a body of a flow-control
8368 command.
8369 (read_next_line): Recognize the `commands' command and build a
8370 command line structure for it.
8371 (recurse_read_control_structure, read_command_lines): Handle
8372 `commands' similarly to `if' and `while'.
8373
8374 * breakpoint.c (get_number_trailer): Document the special meaning
8375 of NULL as the first argument PP.
8376 (commands_from_control_command): New function.
8377
8378 * breakpoint.h (commands_from_control_command): Add prototype.
8379
8380 * defs.h (commands_control): New enumerated value for enum
8381 command_control_type.
8382
4b9eee8c
JB
83832007-01-26 Joel Brobecker <brobecker@adacore.com>
8384
8385 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
8386 (ada_exception_sal): Update accordingly.
8387
e1f48ead
JK
83882007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8389
8390 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
8391 * NEWS: Describe CHAR array vs. string identifcation rules.
8392
e150acc7
PB
83932007-01-25 Paul Brook <paul@codesourcery.com>
8394
8395 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
8396
10fb19b6
JB
83972007-01-24 Jim Blandy <jimb@codesourcery.com>
8398
8399 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
8400 expression is empty, bother to return the 'optimized out' value we
8401 construct. (Thanks to Carl Burch.)
8402
85d93f1d
VP
84032007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8404
8405 * varobj.c (c_value_of_root, c_value_of_child)
8406 (cplus_describe_child): Don't call release_value.
8407
fcbd8a5c
TS
84082007-01-24 Thiemo Seufer <ths@mips.com>
8409
8410 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
8411 initialization.
8412
2024f65a
VP
84132007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8414
8415 Refactor getting children name, value and type access
8416 for varobjs in C++.
8417 * varobj.c (get_type_deref): Remove.
8418 (adjust_value_for_child_access): New.
8419 (c_number_of_children): Use the above.
8420 (c_describe_child): Likewise.
8421 (enum accessibility): New.
8422 (match_accessibility): New function.
8423 (cplus_describe_child): New function.
8424 (cplus_name_of_child, cplus_value_of_child)
8425 (cplus_type_of_child): Reimplement in terms
8426 of cplus_describe_child.
8427 (cplus_number_of_children): Use
8428 adjust_value_for_child_access.
8429
6e2a9270
VP
84302007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8431
8432 Fix computation of the 'editable' attribute and
8433 value changeability for for references.
8434 * varobj.c (get_value_type): New function.
8435 (c_variable_editable): Use get_value_type.
8436 (varobj_value_is_changeable): Likewise.
8437
56163ce1
JB
84382007-01-24 Joel Brobecker <brobecker@adacore.com>
8439
8440 * source.c (find_and_open_source): Try rewriting the source
8441 path inside filename if dirname is NULL.
8442
8c6860bb
JB
84432007-01-24 Joel Brobecker <brobecker@adacore.com>
8444
8445 * dwarf2read.c (add_partial_symbol): Create an extra partial
8446 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
8447 (new_symbol): Likewise for symbols.
8448
6db6d2ca
NR
84492007-01-24 Nick Roberts <nickrob@snap.net.nz>
8450
8451 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
8452
7d85ee02
VP
84532007-01-23 Vladimir Prus <vladimir@codesourcery.com>
8454
8455 * value.c (value_primitive_field): Copy the full 'location'
8456 contents, instead of assuming that copying ADDRESS will
8457 bring over everything in the union. Remove obsolete comment.
8458
f79b9530
DJ
84592007-01-23 Masaki Muranaka <monaka@monami-software.com>
8460
8461 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
8462 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
8463 (m32c_m16c_pointer_to_address): Separate code from declarations.
8464
08d8bcd7
DJ
84652007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
8466
8467 * target.c (update_current_target): Correct typo.
8468
57fdbbbe
CV
84692007-01-22 Masaki Muranaka <monaka@monami-software.com>
8470
8471 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
8472 declaration.
8473
58894217
JK
84742007-01-11 Andrew Cagney <cagney@redhat.com>
8475 Daniel Jacobowitz <dan@codesourcery.com>
8476 Jan Kratochvil <jan.kratochvil@redhat.com>
8477
8478 * dwarf2-frame.c (execute_cfa_program): New support of
8479 `DW_CFA_GNU_negative_offset_extended'.
8480
9ebce043
DJ
84812007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
8482
8483 * NEWS: Mention flash support for "load" and new remote packets.
8484
973d738b
DJ
84852007-01-21 Markus Deuling <deuling@de.ibm.com>
8486
8487 * breakpoint.c (delete_command): Skip redundant loop iterations.
8488
7b9ee6a8
DJ
84892007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
8490
8491 * gdbarch.sh (register_type): Update comment.
8492 * gdbarch.h: Regenerated.
8493 * arch-utils.c (generic_register_size): Call register_type.
8494 * ia64-tdep.c (ia64_extract_return_value): Likewise.
8495 * m32c-tdep.c (check_for_saved): Likewise.
8496 * mips-tdep.c (mips_print_register, print_gp_register_row)
8497 (mips_print_registers_info): Likewise.
8498 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
8499 Likewise.
8500 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
8501 (sh64_do_register, sh64_print_register)
8502 (sh64_media_print_registers_info): Likewise.
8503 * tui/tui-regs.c (tui_register_format): Likewise.
8504
11309657
DJ
85052007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
8506
8507 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
8508
8509 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
8510 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
8511 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
8512 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8513 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
8514 (make_symbol_completion_list): Likewise.
8515
cb1df416
DJ
85162007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8517 Daniel Jacobowitz <dan@codesourcery.com>
8518
8519 * buildsym.c (end_symtab): Use preallocated symtab if available.
8520 Fill in SYMBOL_SYMTAB.
8521 * buildsym.h (struct subfile): Add symtab member.
8522 * dwarf2read.c (struct dwarf2_cu): Add line_header.
8523 (struct file_entry): Add symtab.
8524 (free_cu_line_header): New function.
8525 (read_file_scope): Use it. Save line_header in the cu. Process
8526 lines before DIEs.
8527 (add_file_name): Initialize new symtab member.
8528 (dwarf_decode_lines): Create symtabs for included files.
8529 (new_symbol): Set SYMBOL_SYMTAB.
8530 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
8531 (search_symbols): Likewise.
8532 * symtab.h (struct symbol): Add symtab member.
8533 (SYMBOL_SYMTAB): Define.
8534
727da900
DJ
85352007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
8536
8537 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
8538
7b6b9e83
DJ
85392007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
8540
8541 * arch-utils.c (show_endian): Correct reversed condition.
8542
e767400c
JK
85432007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8544
8545 * MAINTAINERS (Write After Approval): Add myself.
8546
b20d8971
VP
85472007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
8548 Vladimir Prus <vladimir@codesourcery.com>
8549
8550 Fix 'selected frame' varobjs.
8551 * varobj.c (struct varobj): Remove the error field.
8552 (varobj_set_value): Don't check var->error.
8553 (install_new_value): Don't set var->error.
8554 (varobj_update): Always pass the new value
8555 of the root via install_new_value.
8556 (create_child): Don't set error field.
8557 (new_variable): Likewise.
8558 (c_value_of_root): Always reevaluate the value
8559 of selected frame varobjs in the selected frame.
8560 Don't call reinit_frame_cache.
8561
7ef2b397
JB
85622007-01-15 Joel Brobecker <brobecker@adacore.com>
8563
8564 * source.c (_initialize_source): Improve the help text of
8565 the substitute-path commands.
8566
1208538e
MK
85672007-01-14 Mark Kettenis <kettenis@gnu.org>
8568
8569 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
8570 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
8571 (frv_skip_prologue): Remove prototypes.
8572 (frv_adjust_breakpoint_address): Renamed from
8573 frv_gdbarch_adjust_breakpoint_address.
8574 (frv_gdbarch_init): Adjust.
8575
765f065a
MK
85762007-01-13 Mark Kettenis <kettenis@gnu.org>
8577
5e66aab2
MK
8578 * gdbarch.sh (deprecated_extract_return_value)
8579 (deprecated_store_return_value): Remove.
8580 (extract_return_value, store_return_value): Remove default values.
8581 * gdbarch.c, gdbarch.h: Regenerate.
8582 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
8583 (legacy_store_return_value): Remove.
8584 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
8585 Remove.
8586
56178203
MK
8587 * mi/mi-main.c: Remove obsolete comment.
8588
23303b2e
MK
8589 * regcache.c, regcache.h (deprecated_register_bytes)
8590 (deprecated_read_register_bytes)
8591 (deprecated_write_register_bytes): Remove.
8592
765f065a
MK
8593 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
8594 Don't forget to move destination pointer.
8595
610acfff
MK
85962007-01-01 Mark Kettenis <kettenis@gnu.org>
8597
8598 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
8599
12102450
UW
86002007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
8601
8602 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
8603 past entry function with recent newlib.
8604
c8b2f53c
VP
86052007-01-11 Vladimir Prus <vladimir@codesourcery.com>
8606
8607 * gdb.texinfo (GDB/MI Variable Objects): Improve the
8608 introduction. Specify -var-update more exactly.
8609
d57df5e4
DJ
86102007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
8611
8612 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
8613
03f597d5
JB
86142007-01-10 Jim Blandy <jimb@codesourcery.com>
8615
8616 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
8617 the Global Maintainers' invitation to be a global maintainer.
8618
fd48f117
DJ
86192007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
8620
8621 * infrun.c (singlestep_pc): New variable.
8622 (resume): Set singlestep_pc.
8623 (context_switch): Add a debugging message. Flush the frame cache.
8624 (handle_inferior_event): Add debugging messages. Handle thread
8625 hops when a software single step has completed. Let context_switch
8626 handle flushing the frame cache.
8627
23181151
DJ
86282007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8629
8630 * NEWS: Mention target descriptions, "set tdesc filename",
8631 "unset tdesc filename", "show tdesc filename", and
8632 qXfer:features:read.
8633 * arch-utils.c (choose_architecture_for_target): New function.
8634 (gdbarch_info_fill): Call it.
8635 * target-descriptions.c (struct property): Make members non-const.
8636 (struct target_desc): Add arch member.
8637 (target_description_filename): New variable.
8638 (target_find_description): Try via XML first.
8639 (tdesc_architecture): New.
8640 (free_target_description, make_cleanup_free_target_description): New.
8641 (set_tdesc_property): Call xstrdup.
8642 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
8643 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
8644 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
8645 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
8646 * target-descriptions.h (tdesc_architecture)
8647 (make_cleanup_free_target_description, set_tdesc_architecture): New
8648 prototypes.
8649 * Makefile.in (SFILES): Add xml-tdesc.c.
8650 (COMMON_OBS): Add xml-tdesc.o.
8651 (target-descriptions.o): Update.
8652 (xml-tdesc.o): New rule.
8653 * xml-tdesc.c, xml-tdesc.h: New files.
8654 * remote.c (PACKET_qXfer_features): New enum.
8655 (remote_protocol_features): Add qXfer:features:read.
8656 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
8657 (_initialize_remote): Register qXfer:features:read.
8658 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
8659 * features/gdb-target.dtd: New file.
8660
3e9cb5f4
DJ
86612007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8662
8663 * copyright.sh: Clarify error.
8664
818f79f6
DJ
86652007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8666
8667 * symtab.c (matching_bfd_sections): Fix VMA matching for
8668 prelinked objects.
8669
f7a6bb70
DJ
86702007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8671
8672 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
8673 nested symbols.
8674
20ac0504
DJ
86752007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8676
8677 Updated copyright notices for most files.
8678
85bb0718
DJ
86792007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8680
8681 * copyright.sh (prunes): Add step-line.inp and step-line.c.
8682
aa28a74e
DJ
86832007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8684
8685 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
8686 exec_prefix.
8687 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
8688 '${prefix}'.
8689 * configure, config.in: Regenerate.
8690 * defs.h (debug_file_directory): Declare.
8691 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
8692 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
8693 relocate it if DEBUGDIR_RELOCATABLE.
8694 * symfile.c (debug_file_directory): Make non-static.
8695 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
8696 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
8697 (_initialize_symfile): Don't initialize debug_file_directory here.
8698
1cfd2c3e
JB
86992007-01-09 Jim Blandy <jimb@codesourcery.com>
8700
8701 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
8702 statements.
8703
5efde112
DJ
87042007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8705
8706 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
8707 frame_unwind_register to recurse.
8708 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
8709 (alpha_heuristic_frame_prev_register): Likewise.
8710 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
8711 * m32c-tdep.c (m32c_prev_register): Likewise.
8712 * frame.c (frame_register_unwind_location): Remove FIXME.
8713
4de1f557
DJ
87142007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8715 Eli Zaretskii <eliz@gnu.org>
8716
8717 * copyright.sh: New file.
8718
ca4ca11e
DJ
87192007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
8720
8721 * configure.ac: Check for XML_StopParser.
8722 * xml-support.c (gdb_xml_body_text): Check for an error.
8723 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
8724 (gdb_xml_end_element_wrapper): Likewise.
8725 * config.in, configure: Regenerated.
8726
57e66780
DJ
87272007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8728
8729 * varobj.c (install_new_value): Always update print_value.
8730 (value_get_print_value): Immediately return NULL for missing
8731 values.
8732
b523a1fd
JB
87332007-01-08 Jim Blandy <jimb@codesourcery.com>
8734
8735 * configure.ac: Tighten pattern for extracting value of
8736 DEPRECATED_TM_FILE from the target makefile fragment.
8737 * configure: Regenerated.
8738
3d799a95
DJ
87392007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8740
8741 * linux-nat.c (struct simple_pid_list): Add status.
8742 (add_to_pid_list): Record the PID's status.
8743 (linux_record_stopped_pid): Likewise. Make static.
8744 (pull_pid_from_list): Return the saved status.
8745 (linux_nat_handle_extended): Deleted.
8746 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
8747 Make static. Handle non-SIGSTOP for a new thread's first signal.
8748 (flush_callback): Handle unexpected pending signals.
8749 (linux_nat_wait): Update calls to changed functions.
8750 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
8751 Remove prototypes for newly static functions.
8752
9acbedc0
UW
87532007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8754
8755 * gdbarch.sh (value_from_register): New gdbarch function.
8756 * gdbarch.c, gdbarch.h: Regenerate.
8757 * findvar.c (default_value_from_register): New function.
8758 (value_from_register): Use gdbarch_value_from_register.
8759 * value.h (default_value_from_register): Declare.
8760 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
8761 spu_value_to_register): Remove.
8762 (spu_value_from_register): New function.
8763 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8764 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8765 Call set_gdbarch_value_from_register.
8766 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
8767 s390_value_to_register): Remove.
8768 (s390_value_from_register): New function.
8769 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
8770 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
8771 Call set_gdbarch_value_from_register.
8772
f822c95b
DJ
87732007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
8774
8775 * NEWS: Add "set sysroot" and "show sysroot".
8776 * solib.c (solib_absolute_prefix): Delete. Replace
8777 all uses with gdb_sysroot.
8778 (_initialize_solib): Add "set sysroot" and "show sysroot".
8779 Make "solib-absolute-prefix" an alias to it.
8780
00fa51f6
UW
87812007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
8782
8783 * frame.c (get_frame_register_bytes): New function.
8784 (put_frame_register_bytes): Likewise.
8785 * frame.h (get_frame_register_bytes): Declare.
8786 (put_frame_register_bytes): Likewise.
8787 * findvar.c (value_from_register): Always construct lval_register
8788 values. Use get_frame_register_bytes.
8789 * valops.c (value_assign): Use get_frame_register_bytes and
8790 put_frame_register_bytes.
8791
a95c9d06
JB
87922007-01-08 Jim Blandy <jimb@codesourcery.com>
8793
8794 * MAINTAINERS: Update Stan Shebs' email address.
8795
4ed6b5be
JB
87962007-01-07 Joel Brobecker <brobecker@adacore.com>
8797
8798 * ada-lang.c (is_known_support_routine): Improve the implementation.
8799
9bbc9174
JB
88002007-01-06 Joel Brobecker <brobecker@adacore.com>
8801
8802 * ada-lang.c: Add include of source.h.
8803 (is_known_support_routine): Improve the check verifying that the file
8804 associated to this frame exists.
8805 * Makefile.in (ada-lang.o): Add dependency on source.h.
8806
44a81774
JB
88072007-01-07 Jim Blandy <jimb@codesourcery.com>
8808
8809 * ax-general.c (ax_const_l): Select proper opcode for the given
8810 value.
8811
fcd19eb1 88122007-01-05 Vladimir Prus <vladimir@codesourcery.com>
6fe1a487
NR
8813
8814 * varobj.c (c_value_of_root): Don't select frame if variable
8815 object is out of scope.
8816
fcd19eb1 88172007-01-05 Nick Roberts <nickrob@snap.net.nz>
3fa6deb5
NR
8818
8819 * varobj.c (struct varobj): New member print_value.
8820 (install_new_value): Compare last printed value with current one
8821 instead of contents.
8822 (new_variable): Initialize var->print_value to NULL.
8823 (free_variable): Free var->print_value.
8824 (value_get_print_value): New function derived from
8825 c_value_of_variable.
8826 (c_value_of_variable): Use value_get_print_value.
8827
92a56b20
JB
88282007-01-05 Joel Brobecker <brobecker@adacore.com>
8829
8830 * i386-tdep.c (i386_analyze_stack_align): Add comment.
8831
0e420bd8
JB
88322007-01-05 Joel Brobecker <brobecker@adacore.com>
8833
8834 * NEWS: Add entries for new catch commands.
8835
b69733ab 88362007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
8837
8838 * dwarf2read.c (partial_die_info): Add field has_byte_size.
8839 (add_partial_symbol): Correct identification of external references.
8840 (process_structure_scope): Likewise.
8841 (read_partial_die): Handle DW_AT_byte_size attribute.
8842
88432007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
8844
8845 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
8846
8e38af42
NR
88472007-01-05 Nick Roberts <nickrob@snap.net.nz>
8848
8849 * varobj.c (get_type_deref): Fix variable objects for references to
8850 pointers.
8851
d1c79ecd
DJ
88522007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8853
8854 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
8855 with no symbols.
8856
e776119f
DJ
88572007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8858
8859 * memory-map.c (struct_memory_map_parsing_data): Remove most
8860 members. Make property_name an array.
8861 (free_memory_map_parsing_data, memory_map_start_element)
8862 (memory_map_end_element, memory_map_character_data): Delete.
8863 (memory_map_start_memory, memory_map_end_memory)
8864 (memory_map_start_property, memory_map_end_property): New functions.
8865 (property_attributes, memory_children, memory_type_enum)
8866 (memory_attributes, memory_map_children, memory_map_elements): New.
8867 (parse_memory_map): Rewrite.
8868 * xml-support.c (debug_xml): New.
8869 (xml_get_required_attribute, xml_get_integer_attribute)
8870 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
8871 Delete.
8872 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
8873 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
8874 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
8875 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
8876 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
8877 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
8878 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
8879 New.
8880 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
8881 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
8882 (enum gdb_xml_element_flag, struct gdb_xml_element)
8883 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
8884 (struct gdb_xml_enum): New.
8885 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
8886 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
8887 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
8888 (xml_get_required_attribute, xml_get_integer_attribute)
8889 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
8890 * Makefile.in (xml_support_h, xml-support.o): Update.
8891
5e572bb4
DJ
88922007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8893
8894 * Makefile.in (eval.o): Update dependencies.
8895 * eval.c: Include "ui-out.h" and "exceptions.h".
8896 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
8897 Use value_zero if an error occurs when avoiding side effects.
8898 * varobj.c (c_value_of_root): Initialize new_val.
8899
74a44383
DJ
89002007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8901
8902 * varobj.c (varobj_list_children): Stop if the number of children is
8903 unknown.
8904 (c_number_of_children):
8905
e8d2d628
MK
89062007-01-04 Mark Kettenis <kettenis@gnu.org>
8907
8908 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
8909 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
8910 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
8911 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
8912 sizeof, instead of hardcoded constants.
8913
c941839d
DJ
89142007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8915
8916 * CONTRIBUTE: Use sourceware.org.
8917
303b6f5d 89182007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 8919
303b6f5d
DJ
8920 * buildsym.c (start_subfile): Handle producer.
8921 (record_producer): New function.
8922 * buildsym.h (struct subfile): Include producer.
8923 (record_producer): New prototype.
8924 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
8925 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
8926 armcc_cfa_offsets_reversed.
8927 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
8928 (dwarf2_frame_find_quirks): New function.
8929 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
8930 (decode_frame_entry_1): Record the CIE version. Record the
8931 augmentation. Skip armcc augmentations.
8932 * dwarf2read.c (read_file_scope): Save the producer.
8933 * symtab.h (struct symtab): Rename unused version member to
8934 producer.
2d0720d9 8935
aa79a185
DJ
89362007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
8937
8938 * configure.ac (build_warnings): Use -Wall and
8939 -Wdeclaration-after-statement.
8940 * configure: Regenerated.
8941
bbec2603
VP
89422007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8943
8944 Simplify access to variours properties of child
8945 variable objects in C.
8946 * varobj.c (value_struct_element_index): New function.
8947 (c_describe_child): New function.
8948 (c_name_of_child, c_value_of_child)
8949 (c_type_of_child): Rewrite to use c_describe_child.
8950
28335dcc
VP
89512007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8952
8953 gdb/
8954 * varobj.c: Include "vec.h".
8955 (varobj_p): New typedef, declare vector of those.
8956 (struct varobj): Use vector for the 'children' member.
8957 (child_exists): Remove.
8958 (save_child_in_parent): Remove.
8959 (remove_child_from_parent): Remove.
8960 (struct varobj_child): Remove.
8961 (struct vstack): Remove.
8962 (vpush, vpop): Remove.
8963 (varobj_list_children): Adjust to work work vector.
8964 (varobj_update): Likewise. Use vectors for
8965 working stack and result.
8966 (delete_variable_1): Likewise.
8967 * Makefile.in (varobj.o): Update dependencies.
8968
b2c2bd75
VP
89692007-01-04 Vladimir Prus <vladimir@codesourcery.com>
8970
8971 Port from Apple's version.
8972 gdb/
8973 * varobj.c (type_changeable): Rename to...
8974 (varobj_value_is_changeable_p): ...this. Adjust all callers.
8975 (is_root_p): New function. Use it everywhere.
8976
bdfb3870
JB
89772007-01-04 Jim Blandy <jimb@codesourcery.com>
8978
8979 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
8980 then plain 'fixup'.
8981
5d15052e
JB
89822007-01-04 Joel Brobecker <brobecker@adacore.com>
8983
8984 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
8985
53103997
JB
89862007-01-04 Joel Brobecker <brobecker@adacore.com>
8987
8988 * hpread.c (hpread_type_lookup): Fix compilation failure.
8989
27fd2f50
Q
89902007-01-04 Qinwei <qinwei@sunnorth.com.cn>
8991
8992 * NEWS: New port to S+core.
8993 * MAINTAINERS (Write After Approval, Responsible Maintainers):
8994 Add myself.
8995
8996 * Makefile.in: Add dependencies for S+core files.
8997 * configure.tgt (score*, score-*-*): Add S+core target.
8998 * config/score/embed.mt: New file.
8999 * score-tdep.c: New file.
9000 * score-tdep.h: New file.
9001
a6cfbe68
JB
90022007-01-04 Joel Brobecker <brobecker@adacore.com>
9003
9004 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9005 the appropriate type rather than a bogus void type.
9006
67cf15b7 90072007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
9008
9009 * ada-lang.h (ada_find_printable_frame): Remove.
9010 (ada_exception_catchpoint_p, ada_decode_exception_location)
9011 (ada_decode_assert_location): Add declaration.
9012 * ada-lang.c: Add include of annotate.h and valprint.h.
9013 (exception_catchpoint_kind): New enum.
9014 (function_name_from_pc, is_known_support_routine)
9015 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9016 (ada_exception_name_addr_1, ada_exception_name_addr)
9017 (print_it_exception, print_one_exception, print_mention_exception)
9018 (print_it_catch_exception, print_one_catch_exception)
9019 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9020 (print_it_catch_exception_unhandled)
9021 (print_one_catch_exception_unhandled)
9022 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9023 (print_one_catch_assert, print_mention_catch_assert)
9024 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9025 (ada_get_next_arg, catch_ada_exception_command_split)
9026 (ada_exception_sym_name, ada_exception_sym_name)
9027 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9028 (ada_parse_catchpoint_condition, ada_exception_sal)
9029 (ada_decode_exception_location)
9030 (ada_decode_assert_location): New function.
9031 (catch_exception_unhandled_breakpoint_ops): New global variable.
9032 (catch_assert_breakpoint_ops): New global variable.
9033 * breakpoint.c: Add include of ada-lang.h.
9034 (print_one_breakpoint): Do not print the condition for Ada
9035 exception catchpoints.
9036 (create_ada_exception_breakpoint): New function.
9037 (catch_ada_exception_command, catch_assert_command): New function.
9038 (catch_command_1): Add support for the new "catch exception" and
9039 "catch assert" commands.
9040 (_initialize_breakpoint): Add help description for the new catch
9041 commands.
9042 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9043 valprint.h.
9044 (breakpoint.o): Add dependency on ada-lang.h.
9045
05cfdb42
DJ
90462007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9047
9048 * coffread.c (cs_to_section): If bfd_section is found, always
9049 return its section index.
9050 (coff_symtab_read): Determine the minimal_symbol_type using the
9051 bfd_section flags.
9052
2e03ee74
DJ
90532007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9054 Daniel Jacobowitz <dan@codesourcery.com>
9055
9056 * Makefile.in (top.o): Update.
9057 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9058 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9059 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9060 New.
9061 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9062
1c63d086
MK
90632007-01-03 Mark Kettenis <kettenis@gnu.org>
9064
9065 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9066 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9067
d5d6fca5
DJ
90682007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9069
9070 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9071 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9072 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9073 greater than or equal to zero.
9074 * m2-typeprint.c (m2_array): Likewise.
9075 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9076 * gdbtypes.c (copy_type_recursive): Correct == typo.
9077 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9078 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9079 greater than zero.
9080 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9081 (default_macro_scope): Remove unused variable.
9082 * prologue-value.h (pv_area_find_reg): Don't name an argument
9083 "register".
9084 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9085 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9086 type.
9087 (cleanup_sigint_signal_handler): Remove casts.
9088 * valprint.c (val_print): Use a volatile local for the modified
9089 argument.
9090 * varobj.c (languages): Remove extra array dimension.
9091 (varobj_create): Correct access to languages array.
9092 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9093 missing braces.
9094 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9095 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9096 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9097 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9098 (mi_cmd_data_write_memory): Likewise.
9099 * signals/signals.c (target_signal_to_string): Cast to int before
9100 comparing.
9101 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9102 Update all callers.
9103
0d5de010
DJ
91042007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9105
9106 * NEWS: Mention pointer to member improvements.
9107 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9108 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9109 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9110 * c-typeprint.c (c_print_type): Update for new type codes.
9111 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9112 (c_type_print_base): Likewise.
9113 (c_type_print_args): Rewrite.
9114 * c-valprint.c (c_val_print): Update for new type codes. Remove
9115 support for references to members. Treat methods like functions.
9116 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9117 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9118 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9119 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9120 (struct cp_abi_ops): Add corresponding members.
9121 * cp-valprint.c (cp_print_class_method): Delete.
9122 (cp_find_class_member): New function.
9123 (cp_print_class_member): Use it. Simplify support for bogus
9124 member pointers.
9125 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9126 lookup_methodptr_type.
9127 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9128 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9129 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9130 pointer support.
9131 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9132 references returned by user defined operators.
9133 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9134 (f_type_print_varspec_suffix): Remove support for member pointers.
9135 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9136 and adjusted.
9137 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9138 (lookup_methodptr_type): New.
9139 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9140 (recursive_dump_type): Update for new types.
9141 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9142 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9143 (lookup_memberptr_type, lookup_methodptr_type)
9144 (smash_to_memberptr_type): New prototypes.
9145 (smash_to_method_type): Formatting fix.
9146 (lookup_member_type, smash_to_member_type): Delete prototypes.
9147 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9148 Do not rely on debug information for the vptr or the method's
9149 enclosing type. Handle function descriptors for IA64.
9150 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9151 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9152 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9153 (gnuv3_method_ptr_to_value): New.
9154 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9155 * hpread.c (hpread_type_lookup): Update for new types.
9156 * infcall.c (value_arg_coerce): Likewise.
9157 * m2-typeprint.c (m2_print_type): Remove explicit support
9158 for member pointers.
9159 * m2-valprint.c (m2_val_print): Likewise.
9160 * p-typeprint.c (pascal_type_print_varspec_prefix)
9161 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9162 * p-valprint.c (pascal_val_print): Likewise.
9163 (pascal_object_print_class_method, pascal_object_print_class_member):
9164 Delete.
9165 * p-lang.h (pascal_object_print_class_method)
9166 (pascal_object_print_class_member): Delete prototypes.
9167 * stabsread.c (read_type): Update for new types.
9168 * typeprint.c (print_type_scalar): Likewise.
9169 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9170 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9171 argument. Construct a pointer to member if the address of a
9172 function or data member is requested.
9173 (value_cast_pointers): Don't modify the input value.
9174 (value_cast): Adjust pointer to member handling for new types.
9175 Allow null pointer to member constants. Don't modify the input
9176 value.
9177 (value_ind): Remove pointer to member check. Handle function
9178 descriptors for function pointers.
9179 (value_struct_elt, value_find_oload_method_list, check_field):
9180 Remove pointer to member checks.
9181 * value.c (unpack_long): Allow pointers to data members.
9182 (value_from_longest): Allow member pointers.
9183 * value.h (value_aggregate_elt): Add want_address.
9184 * varobj.c (c_variable_editable): Remove check for members.
9185 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9186 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9187 in virtual tables.
9188 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9189 * c-lang.h (cp_print_class_method): Delete prototype.
9190 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9191 * mips-tdep.c (mips_gdbarch_init): Likewise.
9192 * gdbarch.c, gdbarch.h: Regenerated.
9193
d217aaed
MK
91942007-01-01 Mark Kettenis <kettenis@gnu.org>
9195
9196 * rs6000-tdep.c (rs6000_use_struct_convention)
9197 (rs6000_extract_return_value, rs6000_store_return_value)
9198 (rs6000_extract_struct_value_address): Remove.
9199 (rs6000_return_value): New function.
9200 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9201 store_return_value, deprecated_extract_struct_value_address and
9202 deprecated_use_struct_convention. Use rs6000_return_value
9203 instead.
9204
02296b29
NR
92052007-01-02 Nick Roberts <nickrob@snap.net.nz>
9206
9207 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9208 -display-disable, -display-enable, -display-insert and
9209 -display-list.
9210
b69733ab 92112007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
9212
9213 * breakpoint.c (remove_breakpoint): Remove dead code.
9214
92152007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
9216
9217 * varobj.c: Include block.h.
9218 (c_value_of_root): Check scope within nested statements.
9219
9f3a1602
MK
92202007-01-01 Mark Kettenis <kettenis@gnu.org>
9221
9222 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
9223 regcache_cooked_write_signed instead of
9224 deprecated_write_register_bytes.
9225
12349ccd
JB
92262007-01-01 Joel Brobecker <brobecker@adacore.com>
9227
9228 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
9229
8c48ebcf
JB
92302007-01-01 Joel Brobecker <brobecker@adacore.com>
9231
9232 Followed the Start of New Year Procedure:
9233 * ChangeLog-2006: New file, containing all the entries for 2006.
9234 * ChangeLog: Removed all 2006 entries, and changed the reference
9235 to the previous ChangeLog to point to ChangeLog 2006.
9236 * top.c (print_gdb_version): Update copyright year.
9237
154927ff
MK
92382007-01-01 Mark Kettenis <kettenis@gnu.org>
9239
9240 * Makefile.in (remote-sds.o): Remove.
9241 * remote-sds.c: Delete.
9242
8c48ebcf 9243For older changes see ChangeLog-2006.
c906108c
SS
9244\f
9245Local Variables:
9246mode: change-log
9247left-margin: 8
9248fill-column: 74
9249version-control: never
57da7796 9250coding: utf-8
c906108c 9251End:
This page took 1.336286 seconds and 4 git commands to generate.