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