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