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