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