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