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