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