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