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