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