2003-06-13 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-06-13 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4 when deprecated REGISTER macros can be deleted.
5 * gdbarch.h, gdbarch.c: Re-generate.
6
7 2003-06-13 Jim Blandy <jimb@redhat.com>
8
9 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
10 Linux entry point symbols for _dl_debug_state, too.
11
12 2003-06-13 Andrew Cagney <cagney@redhat.com>
13
14 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
15 available, do not use the FP register, and always save the TOS.
16 * dummy-frame.c (dummy_frame_this_id): Do not assert
17 SAVE_DUMMY_FRAME_TOS.
18 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
19 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
20 (i386_push_dummy_call): Add 8 to the returned SP.
21 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
22 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
23 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
24 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
25 (x86_64_push_dummy_call): Return "sp + 16".
26 (x86_64_init_abi): Do not set save_dummy_frame_tos.
27 * alpha-tdep.c (alpha_gdbarch_init): Do not set
28 save_dummy_frame_tos.
29
30 2003-06-13 Jim Blandy <jimb@redhat.com>
31
32 * frv-tdep.c (frv_use_struct_convention): Delete static
33 declaration for function deleted in my change of 2003-06-12.
34
35 2003-06-13 Theodore A. Roth <troth@openavr.org>
36
37 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
38 (avr_pointer_to_address): Shift code addrs left 1 bit.
39 (avr_convert_from_func_ptr_addr): Delete function since operation is
40 better handled by avr_address_to_pointer and avr_pointer_to_address.
41 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
42
43 2003-06-13 Mark Kettenis <kettenis@gnu.org>
44
45 From Kelley Cook <kelleycook@wideopenwest.com>:
46 * configure.host: Accept i[34567]86 variants.
47 * configure.tgt: Likewise.
48 * nlm/configure.in: Likewise.
49 * nlm/configure: Regenerated.
50
51 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
52
53 * arm-tdep.c (solib-svr4.h): Dont' include it.
54 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
55 * arm-linux-tdep.c: ... here. Make static.
56 (arm_linux_init_abi): Register it.
57 (solib-svr4.h): Include it.
58 * Makefile.in: Update dependencies.
59 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
60 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
61
62 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
63
64 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
65 indicate registers used for return values.
66 (struct frame_extra_info): Drop args_pointer and locals_pointer.
67 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
68 members.
69 (h8300_init_extra_frame_info): Ditto.
70 (h8300_frame_locals_address): Removed.
71 (h8300_frame_args_address): Removed.
72 (h8300_extract_return_value): Use new regcache structure. Only care
73 for 16 bit CPUs.
74 (h8300h_extract_return_value): Same function for 32 bit CPUs.
75 (h8300_store_return_value): Use new regcache structure. Only care
76 for 16 bit CPUs.
77 (h8300h_store_return_value): Same function for 32 bit CPUs.
78 (h8300_store_struct_return): Removed.
79 (h8300_extract_struct_value_address): Use new regcache structure.
80 (h8300h_extract_struct_value_address): Removed.
81 (h8300_push_dummy_code): New function.
82 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
83 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
84 set_gdbarch_store_return_value architecture dependent.
85 Call set_gdbarch_push_dummy_code and
86 set_gdbarch_extract_struct_value_address.
87 Remove calls to set_gdbarch_frame_args_address,
88 set_gdbarch_frame_locals_address,
89 set_gdbarch_deprecated_store_struct_return,
90 set_gdbarch_deprecated_extract_return_value,
91 set_gdbarch_deprecated_extract_struct_value_address,
92 set_gdbarch_deprecated_call_dummy_words and
93 set_gdbarch_deprecated_sizeof_call_dummy_words.
94
95 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
96
97 * h8300-tdep.c (h8300_register_byte): Remove.
98 (h8300h_register_byte): Remove.
99 (h8300_register_virtual_type): Remove. Substitute by...
100 (h8300_register_type): New function.
101 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
102 (h8300h_extract_struct_value_address): Ditto.
103 (h8300_gdbarch_init): Drop calls to
104 set_gdbarch_deprecated_register_byte and
105 set_gdbarch_deprecated_register_virtual_type.
106 Add call to set_gdbarch_register_type.
107
108 2003-06-13 Andrew Cagney <cagney@redhat.com>
109
110 * gdbarch.sh: Update comments on registers.
111 (deprecated_register_byte): Rename register_byte.
112 (deprecated_register_raw_size): Rename register_raw_size.
113 (deprecated_register_virtual_size): Rename register_virtual_size.
114 (deprecated_register_virtual_type): Rename register_virtual_type.
115 * gdbarch.h, gdbarch.c: Re-generate.
116 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
117 * vax-tdep.c (vax_gdbarch_init): Update.
118 * v850-tdep.c (v850_gdbarch_init): Update.
119 * sparc-tdep.c (sparc_gdbarch_init): Update.
120 * sh-tdep.c (sh_gdbarch_init): Update.
121 * s390-tdep.c (s390_gdbarch_init): Update.
122 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
123 * ns32k-tdep.c: Update.
124 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
125 * mips-tdep.c (mips_gdbarch_init): Update.
126 * mcore-tdep.c (mcore_gdbarch_init): Update.
127 * m68k-tdep.c (m68k_gdbarch_init): Update.
128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
129 * ia64-tdep.c (ia64_gdbarch_init): Update.
130 * hppa-tdep.c (hppa_gdbarch_init): Update.
131 * h8300-tdep.c (h8300_gdbarch_init): Update.
132 * frv-tdep.c (frv_gdbarch_init): Update.
133 * cris-tdep.c (cris_gdbarch_init): Update.
134 * avr-tdep.c (avr_gdbarch_init): Update.
135 * alpha-tdep.c (alpha_gdbarch_init): Update.
136 * arm-tdep.c (arm_gdbarch_init): Update.
137
138 2003-06-13 Andrew Cagney <cagney@redhat.com>
139
140 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
141 mips_o32_use_struct_convention with always_use_struct_convention.
142
143 2003-06-12 David Carlton <carlton@kealia.com>
144
145 * cp-namespace.c (cp_set_block_scope): Comment out
146 processing_has_namespace_info branch.
147
148 2003-06-12 Jim Blandy <jimb@redhat.com>
149
150 Recognize and skip 64-bit PowerPC Linux linkage functions.
151 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
152 insn_pattern, insns_match_pattern, d_field, ds_field): New
153 functions, macros, and types for working with PPC instructions.
154 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
155 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
156 ppc64_skip_trampoline_code): New functions, variables, and macros
157 for recognizing and skipping linkage functions.
158 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
159 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
160
161 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
162 register offsets for both the 32- and 64-bit interfaces.
163
164 Actually finish the job started by my change of 2003-05-29.
165 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
166 other #definition of this.
167 (ppc_linux_skip_trampoline_code): Remove declaration.
168 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
169 static.
170 (ppc_linux_init_abi): Register it as the skip_trampoline_code
171 method for GDBARCH.
172
173 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
174 'long' on ppc64-*-linux*.
175
176 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
177 isn't #defined, assume the register doesn't exist: act as if
178 tdep->ppc_mq_regnum were -1.
179
180 * configure.host, configure.tgt: Add entries for
181 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
182 powerpc/linux.mt.
183 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
184 New files.
185
186 * arch-utils.c (always_use_struct_convention): New function.
187 * arch-utils.h (always_use_struct_convention): New prototype.
188 * alpha-tdep.c (alpha_use_struct_convention): Delete.
189 (alpha_gdbarch_init): Register always_use_struct_convention,
190 instead of alpha_use_struct_convention.
191 * cris-tdep.c (cris_use_struct_convention): Delete.
192 (cris_gdbarch_init): Register always_use_struct_convention,
193 instead of cris_use_struct_convention.
194 * frv-tdep.c (frv_use_struct_convention): Delete.
195 (frv_gdbarch_init): Register always_use_struct_convention,
196 instead of frv_use_struct_convention.
197 * h8300-tdep.c (h8300_use_struct_convention): Delete.
198 (h8300_gdbarch_init): Register always_use_struct_convention,
199 instead of h8300_use_struct_convention.
200 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
201 (mips_o32_gdbarch_init): Register always_use_struct_convention,
202 instead of mips_o32_use_struct_convention.
203
204 2003-06-12 Andrew Cagney <cagney@redhat.com>
205
206 * wince.c: Include "mips-tdep.h".
207 * mips-tdep.h (mips_next_pc): Declare.
208 * mcore-tdep.c: Make more local functions static.
209 * Makefile.in (wince.o): Update dependencies.
210
211 2003-06-12 David Carlton <carlton@kealia.com>
212
213 * symtab.c (lookup_symbol_aux_minsyms): Replace
214 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
215 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
216 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
217 SYMBOL_NATURAL_NAME.
218
219 2003-06-12 Andreas Schwab <schwab@suse.de>
220
221 * Makefile.in (tuiDisassem.o): Update dependencies.
222
223 2003-06-12 David Carlton <carlton@bactrian.org>
224
225 * symtab.h: Delete declaration of make_symbol_overload_list.
226 Add declaration of lookup_partial_symbol.
227 * symtab.c (remove_params): Move to cp-support.c.
228 (overload_list_add_symbol, make_symbol_overload_list)
229 (sym_return_val_size, sym_return_val_index): Ditto.
230 (lookup_partial_symbol): Make extern.
231 * cp-support.h: Add declaration of make_symbol_overload_list.
232 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
233 symtab.h, and block.h.
234 (remove_params): Move here from symtab.c.
235 (overload_list_add_symbol, make_symbol_overload_list)
236 (sym_return_val_size, sym_return_val_index): Ditto.
237 * valops.c: Include cp-support.h.
238 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
239 frame_h, and block_h.
240 (valops.o): Depend on cp_support_h.
241
242 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
243
244 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
245 substitute by NUM_REGS throughout.
246 (h8300_register_name): Only care for H8/300 and H8/300H registers.
247 (h8300s_register_name): New function for H8S registers.
248 (h8300sx_register_name): Ditto for H8SX registers.
249 (h8300_print_register): Revise register printing, avoid depending
250 on 32 bit long.
251 (h8300_register_byte): Only care for H8/300 registers.
252 (h8300h_register_byte): New function for any other architecture.
253 (h8300_register_raw_size): Remove.
254 (h8300_register_virtual_type): Revise to return actually useful
255 type.
256 (h8300_extract_struct_value_address): Only care for H8/300 registers.
257 (h8300h_extract_struct_value_address): New function for any other
258 architecture.
259 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
260 set_gdbarch_register_name, set_gdbarch_register_byte,
261 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
262 Remove calls to set_gdbarch_deprecated_register_size,
263 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
264 set_gdbarch_deprecated_max_register_raw_size,
265 set_gdbarch_register_virtual_size and
266 set_gdbarch_deprecated_max_register_virtual_size entirely.
267 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
268 set_gdbarch_long_double_bit.
269
270 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
271
272 * doublest.c (convert_doublest_to_floatformat): When dealing
273 with the implied integer bit, only alter mant_bits if we are
274 processing a full 32 bits of mantissa.
275
276 2003-06-11 David Carlton <carlton@bactrian.org>
277
278 * dictionary.h: New.
279 * dictionary.c: New.
280 * block.h: Add opaque declaration for struct dictionary.
281 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
282 'sym' members.
283 (BLOCK_DICT): New macro.
284 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
285 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
286 BLOCK_SHOULD_SORT.
287 (ALL_BLOCK_SYMBOLS): Update definition.
288 * Makefile.in (SFILES): Add dictionary.c.
289 (dictionary_h): New.
290 (COMMON_OBS): Add dictionary.o.
291 (dictionary.o): New.
292 (ada-lang.o): Depend on dictionary_h.
293 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
294 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
295 (mi-cmd-stack.o): Ditto.
296 (gdbtk-cmds.o): Update dependencies.
297 (gdbtk-stack.o): Ditto.
298 * ada-lang.c: Include dictionary.h.
299 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
300 (fill_in_ada_prototype, debug_print_block): Ditto.
301 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
302 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
303 'is_sorted'.
304 * mdebugread.c: Include dictionary.h.
305 (struct parse_stack): Delete 'maxsyms' member.
306 (parse_symbol): Update calls to new_block. Delete calls to
307 shrink_block. Use dictionary methods.
308 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
309 Update calls to new_symtab. Don't maintain maxsyms data.
310 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
311 (add_symbol): Just call dict_add_symbol.
312 (new_symtab): Delete 'maxsyms' argument.
313 (new_symtab): Update calls to new_block.
314 (new_block): Delete 'maxsyms' argument; add 'function' argument.
315 (shrink_block): Delete function.
316 (fixup_sigtramp): Update call to new_block. Add symbol via
317 dict_add_symbol.
318 * jv-lang.c: Include dictionary.h.
319 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
320 appropriately. Set class_symtab->free_func. Make sure the
321 blockvector is big enough to hold two blocks.
322 (add_class_symtab_symbol): Use dictionary methods.
323 (free_class_block): New function.
324 (type_from_class): Replace explicit iteration by
325 ALL_BLOCK_SYMBOLS.
326 * symtab.h (struct symtab): Replace 'free_ptr' method by
327 'free_func'.
328 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
329 sort_symtab_syms.
330 * dwarfread.c (psymtab_to_symtab_1): Delete call to
331 sort_symtab_syms.
332 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
333 Include dictionary.h.
334 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
335 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
336 sort_symtab_syms.
337 * objfiles.c: Include dictionary.h.
338 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
339 * buildsym.c: Include dictionary.h.
340 (finish_block): Use dictionary methods.
341 (end_symtab): Set free_func to NULL, not free_ptr.
342 * tracepoint.c: Include dictionary.h.
343 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
344 (scope_info): Ditto.
345 * stack.c: Include dictionary.h.
346 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
347 (print_block_frame_labels, print_frame_arg_vars)
348 (print_frame_args): Ditto.
349 * symmisc.c (free_symtab_block): Use dictionary methods.
350 (dump_symtab): Ditto.
351 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
352 Include dictionary.h.
353 * symfile.h: Delete declarations of sort_block_syms,
354 sort_symtab_syms.
355 * symfile.c (sort_block_syms): Delete.
356 (sort_symtab_syms): Delete.
357 * symtab.c: Include dictionary.h.
358 (lookup_block_symbol): Use dictionary iterators.
359 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
360 (search_symbols, make_symbol_completion_list): Ditto.
361 (make_symbol_overload_list): Ditto.
362 * valops.c (value_of_local): Use dict_empty.
363 Include dictionary.h.
364
365 2003-06-11 J. Brobecker <brobecker@gnat.com>
366
367 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
368
369 2003-06-11 David Carlton <carlton@bactrian.org>
370
371 * block.h (BLOCK_SHOULD_SORT): Delete.
372 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
373 blocks.
374 * ada-lang.c (ada_add_block_symbols): Ditto.
375 * symfile.c (sort_block_syms): Delete.
376 (sort_symtab_syms): Ditto.
377 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
378 declarations.
379 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
380 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
381 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
382 * dwarfread.c (psymtab_to_symtab_1): Ditto.
383 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
384 * mdebugread.c (psymtab_to_symtab_1): Ditto.
385 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
386
387 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
388
389 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
390 bits to 128.
391
392 2003-06-11 Andrew Cagney <cagney@redhat.com>
393
394 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
395 REGISTER_CONVERTIBLE.
396 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
397 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
398 * gdbarch.h, gdbarch.c: Re-generate.
399 * arch-utils.h (deprecated_register_convertible_not): Rename
400 generic_register_convertible_not.
401 * arch-utils.c (deprecated_register_convertible_not): Rename
402 generic_register_convertible.
403 (legacy_convert_register_p, legacy_register_to_value): Update.
404 * sh-tdep.c (sh64_push_arguments): Update.
405 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
406 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
407 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
408 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
409 * arch-utils.c (legacy_value_to_register): Update.
410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
411 (rs6000_register_convert_to_raw): Make parameter "from" const.
412 * mips-tdep.c (mips_gdbarch_init): Update.
413 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
414 * infcmd.c (default_print_registers_info): Update.
415 * ia64-tdep.c (ia64_gdbarch_init): Update.
416 (ia64_register_convert_to_raw): Make parameter "from" const.
417 * i386-tdep.c (i386_gdbarch_init): Update.
418 (i386_register_convert_to_raw): Update.
419
420 2003-06-11 Andrew Cagney <cagney@redhat.com>
421
422 * remote-fileio.c: Include "remote-fileio.h".
423 * Makefile.in (remote-fileio.o): Update dependencies.
424 (remote_fileio_h): Fix typo.
425
426 2003-06-11 Andrew Cagney <cagney@redhat.com>
427
428 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
429 (xstormy16_save_dummy_frame_tos): Make static.
430 (_initialize_xstormy16_tdep): Add declaration.
431 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
432 * v850-tdep.c: Make local functions static.
433 (_initialize_v850_tdep): Add declaration.
434 * sparc-tdep.c: Make local functions static.
435 (_initialize_sparc_tdep): Add declaration.
436 * sh-tdep.c: Make local functions static.
437 (_initialize_sh_tdep): Add declaration.
438 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
439 * s390-tdep.c: Make local functions static.
440 (_initialize_s390_tdep): Add declaration.
441 * dbxread.c (find_stab_function_addr): Make static.
442 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
443 * ocd.c (_initialize_remote_ocd): Add declaration.
444 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
445 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
446 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
447 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
448 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
449 * remote-array.c (_initialize_array): Add declaration.
450 (_initialize_remote_monitors): Add declaration.
451 * remote-mips.c: Make local functions static.
452 (_initialize_remote_mips): Add declaration.
453 * mcore-tdep.c: Make all local functions static.
454 (_initialize_mcore_tdep): Add declaration.
455 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
456 * abug-rom.c (_initialize_abug_rom): Add declaration.
457 * rom68k-rom.c (_initialize_rom68k): Add declaration.
458 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
459 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
460 * remote-est.c (_initialize_est): Add declaration.
461 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
462 (m68hc11_call_dummy_address): Make static.
463 * ia64-tdep.c: Make local functions static.
464 (_initialize_ia64_tdep): Add declaration.
465 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
466 * monitor.c (monitor_wait_filter): Make static.
467 (_initialize_remote_monitors): Add declaration.
468 * remote-hms.c (_initialize_remote_hms): Add declaration.
469 * remote-e7000.c (fetch_regs_from_dump): Make static.
470 (expect_n): Make static.
471 (_initialize_remote_e7000): Add declaration.
472 * ser-e7kpc.c: Always include "defs.h".
473 (_initialize_ser_e7000pc): Add declaration.
474 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
475 * cris-tdep.c: Make all but one function static.
476 (_initialize_cris_tdep): Add declaration.
477 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
478 * solib.c (update_solib_list): Make static.
479 (_initialize_solib): Add declaration.
480 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
481 (_initialize_avr_tdep): Add declaration.
482 * remote-rdi.c (voiddummy): Make static.
483 (_initialize_remote_rdi): Add declaration.
484 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
485 * remote-rdp.c (send_rdp): Make static.
486 (_initialize_remote_rdp): Add declaration.
487 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
488
489 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
490
491 * remote-fileio.c: Make ari happy.
492
493 2003-06-10 J. Brobecker <brobecker@gnat.com>
494
495 * rs6000-nat.c (child_xfer_memory): Compute the right address when
496 fetching the trailing bytes of the buffer we are about to write.
497
498 2003-06-10 Andrew Cagney <cagney@redhat.com>
499
500 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
501 * Makefile.in (remote-fileio.o): Update dependencies.
502 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
503 include <setjmp.h>, or <sys/types.h> conditional on USG.
504 (remote_fio_jmp_buf): Delete global variable.
505
506 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
507 Martin M. Hunt <hunt@redhat.com>
508
509 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
510 (SFILES): Add remote-fileio.c.
511 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
512 dependencies for building remote.o.
513 * remote-fileio.c: New file implementing the remote File-I/O protocol.
514 * remote-fileio.h: New header file defining remote File-I/O interface.
515 * remote.c (remote_write_bytes, remote_read_bytes): Remove
516 static storage class.
517 (remote_wait, remote_async_wait): Call remote_fileio_request() on
518 'F' packet.
519 (_initialize_remote): Call initialize_remote_fileio().
520 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
521 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
522 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
523 (captured_main): Initialize new ui_files.
524 * ui-file.c: Add read and fgets input functions.
525 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
526 (null_file_read): New function.
527 (ui_file_read): New function.
528 (set_ui_file_read): New function.
529 (stdio_file_read): New function.
530 * ui-file.h: New type ui_file_read_ftype.
531 (set_ui_file_read): Declare.
532 (ui_file_read): Declare.
533
534 2003-06-09 Andrew Cagney <cagney@redhat.com>
535
536 * frame.h (deprecated_unwind_get_saved_register): Rename
537 generic_unwind_get_saved_register, update comments.
538 * mips-tdep.c (mips_get_saved_register): Update.
539 * frame.c (deprecated_unwind_get_saved_register): Update.
540
541 2003-06-09 Andrew Cagney <cagney@redhat.com>
542
543 * vax-tdep.c (vax_frame_locals_address): Delete function.
544 (vax_gdbarch_init): Do not set frame_locals_address.
545 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
546 (m68hc11_gdbarch_init): Do not set frame_locals_address.
547 * s390-tdep.c (s390_frame_args_address): Delete function.
548 (s390_gdbarch_init): Do not set frame_args_address or
549 frame_locals_address.
550 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
551 (ns32k_gdbarch_init): Do not set frame_locals_address.
552 * hppa-tdep.c (hppa_frame_args_address): Delete function.
553 (hppa_frame_locals_address): Delete function.
554 (hppa_gdbarch_init): Do not set frame_args_address, or
555 frame_locals_address.
556 * arm-tdep.c (arm_frame_args_address): Delete.
557 (arm_frame_locals_address): Delete.
558 (arm_gdbarch_init): Do not set frame_args_address, or
559 frame_locals_address.
560
561 2003-06-09 Andrew Cagney <cagney@redhat.com>
562
563 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
564 * gdbarch.h, gdbarch.c: Re-generate.
565 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
566 * arch-utils.c (frame_num_args_unknown): Delete function.
567 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
568 (frame_info): Use FRAME_NUM_ARGS_P.
569 * arm-tdep.c (arm_frame_num_args): Delete function.
570 (arm_gdbarch_init): Do not set frame_num_args.
571 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
572 * hppa-tdep.c (hppa_frame_num_args): Delete function.
573 (hppa_gdbarch_init): Do not set frame_num_args.
574 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
576 frame_num_args to default frame_num_args_unknown.
577 * v850-tdep.c (v850_gdbarch_init): Ditto.
578 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
579 * sh-tdep.c (sh_gdbarch_init): Ditto.
580 * s390-tdep.c (s390_gdbarch_init): Ditto.
581 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
582 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
583 * mips-tdep.c (mips_gdbarch_init): Ditto.
584 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
585 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
587 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
588 * i386-tdep.c (i386_gdbarch_init): Ditto.
589 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
590 * frv-tdep.c (frv_gdbarch_init): Ditto.
591 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
592 * cris-tdep.c (cris_gdbarch_init): Ditto.
593 * avr-tdep.c (avr_gdbarch_init): Ditto.
594 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
595
596 2003-06-09 Andrew Cagney <cagney@redhat.com>
597
598 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
599 (print_frame_args): Moved to "stack.c".
600 * stack.c: Include "gdb_assert.h".
601 (print_frame_nameless_args): Moved from "printcmd.c", made static.
602 (print_frame_args): Moved from "printcmd.c".
603 * frame.h (print_frame_args): Delete declaration.
604 * Makefile.in (stack.o): Update dependencies.
605
606 2003-06-08 Andrew Cagney <cagney@redhat.com>
607
608 * frame.c (get_prev_frame): Remove reference to
609 frame_args_address_correct in comments.
610 * frame-base.c (default_frame_args_address): Delete code
611 conditional on FRAME_ARGS_ADDRESS_CORRECT.
612 * vax-tdep.c (vax_frame_args_address_correct): Delete.
613 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
614 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
615 (vax_frame_args_address_correct): Delete declaration.
616
617 2003-06-08 Andrew Cagney <cagney@redhat.com>
618
619 * gdbarch.sh (UNWIND_SP): Add.
620 * gdbarch.h, gdbarch.c: Re-generate.
621 * frame.c (frame_sp_unwind): New function.
622 (get_frame_sp): New function.
623 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
624 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
625 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
626 value.
627 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
628 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
629
630 2003-06-08 Andrew Cagney <cagney@redhat.com>
631
632 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
633 REMOTE_BREAKPOINT.
634 * remote.c: Update.
635 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
636 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
637 * config/m68k/tm-sun3.h: Update.
638 * config/m68k/tm-m68klynx.h: Update.
639 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
640
641 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
642 trad_frame". Update comments.
643 * d10v-tdep.c (struct d10v_unwind_cache): Update.
644 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
645 (trad_frame_register_value, trad_frame_prev_register): Update.
646
647 2003-06-08 Andrew Cagney <cagney@redhat.com>
648
649 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
650 from GCC's acinclude.m4.
651 * configure.in: Check for getopt's delcaration.
652 * aclocal.m4, config.in, configure: Re-generate.
653 * main.c (error_init): Delete declaration.
654 * defs.h (error_init): Declare.
655 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
656 (rs6000_convert_from_func_ptr_addr): Make static.
657 (_initialize_rs6000_tdep): Add declaration.
658 * cli/cli-cmds.c (dont_repeat): Delete declaration.
659 (show_commands, set_verbose, show_history): Delete declaration.
660 * top.h (set_verbose): Add declaration.
661 (show_history, set_history, show_commands): Add declaration.
662 (do_restore_instream_cleanup): Add declaration.
663 * objc-lang.c (specialcmp): Make static.
664 (print_object_command): Make static.
665 (find_objc_msgsend): Make static.
666 (find_objc_msgcall_submethod_helper): Make static.
667 (find_objc_msgcall_submethod): Make static.
668 (_initialize_objc_language): Add declaration.
669 (find_implementation_from_class): Make static.
670 (find_implementation): Make static.
671 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
672 * objc-lang.h (lookup_struct_typedef): Add declaration.
673 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
674 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
675 (do_restore_user_call_depth): Make static.
676 (do_restore_instream_cleanup): Delete declaration.
677 (dont_repeat): Delete declaration.
678 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
679 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
680 * reggroups.c (_initialize_reggroup): Add declaration.
681 * cp-support.c (_initialize_cp_support): Add declaration.
682 * cp-abi.c (_initialize_cp_abi): Add declaration.
683 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
684 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
685 (_initialize_gnu_v3_abi): Add declaration.
686 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
687 (_initialize_gnu_v2_abi): Add declaration.
688 * frame-base.c (_initialize_frame_base): Add declaration.
689 * doublest.c (floatformat_from_length): Make static.
690 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
691 * frame.c (create_sentinel_frame): Make static.
692 (_initialize_frame): Add declaration.
693 * top.c (do_catch_errors): Make static.
694 (gdb_rl_operate_and_get_next_completion): Make static.
695 * typeprint.c: Include "typeprint.h".
696 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
697 (sentinel_frame_this_id): Make static.
698 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
699 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
700 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
701 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
702 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
703 * maint.c (maintenance_print_architecture): Make static.
704 * signals/signals.c (_initialize_signals): Add declaration.
705 * std-regs.c (_initialize_frame_reg): Add declaration.
706 * jv-exp.y (push_variable): ISO C definition.
707 (push_qualified_expression_name): Ditto.
708 * memattr.c (_initialize_mem): Add declaration.
709 * remote.c (remote_check_watch_resources): Make static.
710 (remote_stopped_by_watchpoint): Make static.
711 (remote_stopped_data_address): Make static.
712 * d10v-tdep.c (nr_dmap_regs): Make static.
713 (a0_regnum): Make static.
714 (d10v_frame_unwind_cache): Make static.
715 (d10v_frame_p): Make static.
716 * osabi.c (show_osabi): Make static.
717 (_initialize_gdb_osabi): Add extern declaration.
718 * gdbtypes.c (make_qualified_type): Make static.
719 (safe_parse_type): Make static.
720 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
721 * macrotab.c (macro_bcache_free): Make static.
722 * interps.c (interp_set_quiet): Make static.
723 (interpreter_exec_cmd): Make static.
724 * stack.h (select_frame_command): New file.
725 * stack.c: Include "stack.h".
726 (select_frame_command_wrapper): Delete function.
727 (select_frame_command): Make global.
728 * infcall.c: Include "infcall.h".
729 * linespec.c: Include "linespec.h".
730 * symfile.c (sections_overlap): Make static.
731 * cp-support.h (cp_initialize_namespace): ISO C declaration.
732 * charset.c (_initialize_charset): Add missing prototype.
733 * regcache.c (init_legacy_regcache_descr): Make static.
734 (do_regcache_xfree): Make static.
735 (regcache_xfer_part): Make static.
736 (_initialize_regcache): Add missing prototype.
737 * breakpoint.c (parse_breakpoint_sals): Make static.
738 (breakpoint_sals_to_pc): Make static.
739 * interps.h (clear_interpreter_hooks): ISO C declaration.
740 * Makefile.in (stack_h): Define.
741 (stack.o, typeprint.o, mi-main.o): Update dependencies.
742 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
743
744 2003-06-08 Andrew Cagney <cagney@redhat.com>
745
746 * Makefile.in (d10v-tdep.o): Update dependencies.
747 (SFILES): Add trad-frame.c.
748 (trad_frame_h): Define.
749 (COMMON_OBS): Add trad-frame.o.
750 (trad-frame.o): Specify dependencies.
751 * d10v-tdep.c: Include "trad-frame.h".
752 (saved_regs_unwinder): Delete function.
753 (d10v_frame_prev_register): Use trad_frame_prev_register.
754 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
755 trad_frame", delete "regs" and "prev_sp".
756 (prologue_find_regs): Use trad-frame.
757 * trad-frame.h, trad-frame.c: New files.
758
759 2003-06-08 Mark Kettenis <kettenis@gnu.org>
760
761 * dwarf2cfi.c, dwarf2cfi.h: Remove.
762
763 2003-06-07 Adam Fedor <fedor@gnu.org>
764
765 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
766 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
767 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
768 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
769 resolve_msgsend_super, resolve_msgsend_super_stret):
770 Use it.
771
772 2003-06-07 Andrew Cagney <cagney@redhat.com>
773
774 * symfile.h: Re-indent, clean up comments.
775
776 2003-06-07 Andrew Cagney <cagney@redhat.com>
777
778 * inferior.h (deprecated_write_sp): Replace
779 generic_target_write_sp.
780 * regcache.c (deprecated_write_sp): Replace
781 generic_target_write_sp.
782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
783 * vax-tdep.c (vax_gdbarch_init): Update.
784 * v850-tdep.c (v850_gdbarch_init): Update.
785 * sparc-tdep.c (sparc_gdbarch_init): Update.
786 * sh-tdep.c (sh_gdbarch_init): Update.
787 * s390-tdep.c (s390_gdbarch_init): Update.
788 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
789 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
790 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
791 * mcore-tdep.c (mcore_gdbarch_init): Update.
792 * m68k-tdep.c (m68k_gdbarch_init): Update.
793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
794 * ia64-tdep.c (ia64_gdbarch_init): Update.
795 * h8300-tdep.c (h8300_gdbarch_init): Update.
796 * frv-tdep.c (frv_gdbarch_init): Update.
797 * cris-tdep.c (cris_gdbarch_init): Update.
798 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
799
800 2003-06-07 Andrew Cagney <cagney@redhat.com>
801
802 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
803 Assert that PC_REGNUM is valid.
804 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
805
806 2003-06-07 Andrew Cagney <cagney@redhat.com>
807
808 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
809 * gdbarch.h, gdbarch.c: Regenerate.
810 * mn10300-tdep.c: Include "gdb_assert.h".
811 (mn10300_read_fp): New function.
812 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
813 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
814 * ia64-tdep.c: Include "gdb_assert.h".
815 (ia64_read_fp): New function.
816 (ia64_gdbarch_init): Set deprecated_target_read_fp to
817 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
818 * regcache.c (generic_target_read_sp): Delete function.
819 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
820 * inferior.h (generic_target_read_sp): Delete declaration.
821 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
822 generic_target_read_sp.
823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
824 * sparc-tdep.c (sparc_gdbarch_init): Ditto
825 * sh-tdep.c (sh_gdbarch_init): Ditto.
826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
827 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
828
829 2003-06-07 Andrew Cagney <cagney@redhat.com>
830
831 * gdbarch.sh: Comment each field of startup_gdbarch.
832 * gdbarch.h, gdbarch.c: Re-generate.
833
834 2003-06-07 Andrew Cagney <cagney@redhat.com>
835
836 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
837 * gdbarch.h, gdbarch.c: Re-generate.
838 * regcache.c: Update comments on read_pc et.al.
839 (generic_target_read_pc): Delete function.
840 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
841 * inferior.h (generic_target_read_pc): Delete declaration.
842 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
843 generic_target_read_pc.
844 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
845 * sh-tdep.c (sh_gdbarch_init): Ditto.
846 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
848
849 2003-06-07 Andrew Cagney <cagney@redhat.com>
850
851 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
852 "index" with "special_local_sect". Use strcmp instead of STREQ.
853 Append period to coments.
854
855 2003-06-06 Mark Mitchell <mark@codesourcery.com>
856
857 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
858 (elfstab_offset_sections): Likewise.
859 * gdb-stabs.h (stab_section_info): Likewise.
860 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
861 * objfiles.c (objfile_relocate): Likewise.
862 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
863 * remote.c (get_offsets): Likewise.
864 (remote_cisco_objfile_relocate): Likewise.
865 * somread.c (som_symfile_offsets): Likewise.
866 * symfile.c (alloc_section_addr_info): New function.
867 (build_section_addr_info_from_section_tab): Use it.
868 (free_section_addr_info): Adjust.
869 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
870 (syms_from_objfile): Allocate local_addr dynamically.
871 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
872 dynamically.
873 (add_symbol_file_command): Allocate sect_opts dynamically.
874 (reread_symbols): Avoid use of SECT_OFF_MAX.
875 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
876 (alloc_section_addr_info): Declare it.
877 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
878 * win32-nat.c (solib_symbols_add): Allocate section_addrs
879 dynamically.
880 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
881
882 2003-06-06 Andrew Cagney <cagney@redhat.com>
883
884 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
885 (d10v_frame_unwind_cache): Do not set "return_pc".
886
887 2003-06-06 Michael Snyder <msnyder@redhat.com>
888
889 * h8300-tdep.c: Make tidy (long lines).
890
891 2003-06-06 Michal Ludvig <mludvig@suse.cz>
892
893 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
894 to regcache_collect().
895
896 2003-06-05 J. Brobecker <brobecker@gnat.com>
897
898 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
899 pc_in_sigtramp multiarch method.
900 (hppa_hpux_som_init_abi): Use it.
901 (hppa_hpux_elf_init_abi): Likewise.
902 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
903 macro has been multiarched.
904 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
905 macro here, as hppa64 isn't multiarched yet.
906
907 2003-06-05 Andrew Cagney <cagney@redhat.com>
908
909 * Makefile.in (value_h): Add $(frame_h).
910 * value.h: Include "frame.h".
911 (struct value): Replace "frame_addr" with "frame_id".
912 (VALUE_FRAME_ID): Replace VALUE_FRAME.
913 * values.c (allocate_value): Use VALUE_FRAME_ID.
914 (value_copy): Use VALUE_FRAME_ID.
915 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
916 * valops.c (value_assign): Update. Use frame_find_by_id.
917
918 2003-06-05 Michal Ludvig <mludvig@suse.cz>
919
920 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
921 in each pass.
922
923 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
924
925 * thread-db.c (check_event): For create/death event breakpoints,
926 loop through all messages to ensure that we read the message
927 corresponding to the breakpoint we are at.
928
929 2003-06-04 Michael Snyder <msnyder@redhat.com>
930
931 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
932
933 2003-06-04 Mark Kettenis <kettenis@gnu.org>
934
935 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
936 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
937 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
938 when handling .eh_frame sections.
939
940 2003-06-04 J. Brobecker <brobecker@gnat.com>
941
942 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
943 prepare_to_proceed procedure instead of the hppa-specific one.
944 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
945
946 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
947
948 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
949 * config.in: Regenerated.
950 * configure.in: Add test for syscall function and check for
951 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
952 * configure: Regenerated.
953 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
954 <sys/syscall.h>.
955 (kill_lwp): New function that uses tkill syscall or
956 uses kill, depending on whether threading model is nptl or not.
957 All callers of kill() changed to use kill_lwp().
958 (lin_lwp_wait): Make special check when WIFEXITED occurs to
959 see if all threads have already exited in the nptl model.
960 (stop_and_resume_callback): New callback function used by the
961 lin_lwp_wait thread exit handling code.
962 (stop_wait_callback): Check for threads already having exited and
963 delete such threads fromt the lwp list when discovered.
964 (stop_callback): Don't assert retcode of kill call.
965
966 Roland McGrath <roland@redhat.com>
967 * i386-linux-nat.c (ps_get_thread_area): New function needed by
968 nptl libthread_db.
969
970 2003-06-03 Richard Henderson <rth@redhat.com>
971
972 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
973 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
974 (alpha_sigtramp_frame_prev_register): Likewise.
975 (alpha_heuristic_frame_prev_register): Likewise.
976 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
977
978 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
979 alpha-specific register id names.
980 (alpha_mdebug_frame_unwind_cache): Likewise.
981 (alpha_mdebug_frame_prev_register): Likewise.
982
983 2003-06-03 Richard Henderson <rth@redhat.com>
984
985 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
986 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
987 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
988 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
989 unwind routines.
990 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
991 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
992 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
993
994 * alpha-linux-tdep.c: Remove unnecessary includes.
995 * Makefile.in (alpha-linux-tdep.o): Update.
996
997 2003-06-03 Richard Henderson <rth@redhat.com>
998
999 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
1000 (alphabsd_fill_fpreg): Likewise.
1001
1002 2003-06-03 J. Brobecker <brobecker@gnat.com>
1003
1004 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
1005 references to struct frame_info fields by calls to the equivalent
1006 accessors. Necessary now that frame_info is opaque.
1007
1008 2003-06-03 J. Brobecker <brobecker@gnat.com>
1009
1010 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
1011 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
1012 structure, field no longer exists.
1013
1014 2003-06-03 J. Brobecker <brobecker@gnat.com>
1015
1016 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1017 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
1018
1019 2003-06-03 J. Brobecker <brobecker@gnat.com>
1020
1021 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
1022 references to struct frame_info fields by calls to the equivalent
1023 accessors. Necessary now that frame_info is opaque.
1024
1025 2003-06-03 J. Brobecker <brobecker@gnat.com>
1026
1027 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
1028 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
1029 structure, field no longer exists.
1030
1031 2003-06-03 Theodore A. Roth <troth@openavr.org>
1032
1033 * remote.c (init_remote_state): Compute sizeof_g_packet by
1034 accumulation of the size of all registers instead of blindly using
1035 DEPRECATED_REGISTER_BYTES.
1036
1037 2003-06-03 Michael Snyder <msnyder@redhat.com>
1038
1039 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
1040 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
1041 for h8300sx.
1042
1043 2003-06-03 J. Brobecker <brobecker@gnat.com>
1044
1045 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
1046 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1047
1048 2003-06-03 Andrew Cagney <cagney@redhat.com>
1049
1050 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
1051 (sparc_convert_to_raw): Delete function.
1052 (sparc_gdbarch_init): Do not set register_convert_to_raw or
1053 register_convert_to_virtual.
1054
1055 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
1056
1057 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
1058 layer if not dealing with a statically-linked threaded program.
1059
1060 2003-06-03 Kris Warkentin <kewarken@qnx.com>
1061
1062 * solib.c (solib_open): Update comment to reflect actual search order.
1063
1064 2003-06-03 Andrew Cagney <cagney@redhat.com>
1065
1066 * frame.c (get_frame_memory_signed): New function.
1067 (get_frame_memory, get_frame_memory_unsigned): New function.
1068 (get_frame_arch): New function.
1069 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
1070 (get_frame_memory, get_frame_unsigned_memory): Declare.
1071 * d10v-tdep.c (d10v_frame_unwind_cache): Use
1072 get_frame_memory_unsigned and get_frame_arch.
1073 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
1074
1075 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
1076
1077 * MAINTAINERS (write after approval): Add myself.
1078
1079 2003-06-03 Jim Blandy <jimb@redhat.com>
1080
1081 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
1082 elements of gregset_t are 64 bits each, but access registers
1083 are still 32 bits, so they're packed two per gregset_t
1084 element. Unpack/pack them properly.
1085
1086 2003-06-02 David Carlton <carlton@bactrian.org>
1087
1088 * linespec.c (find_methods): Break out code into
1089 add_matching_methods and add_constructors.
1090 (add_matching_methods): New.
1091 (add_constructors): Ditto.
1092
1093 2003-06-02 Andrew Cagney <cagney@redhat.com>
1094
1095 * sparc-tdep.c (sparc_print_registers): Delete call to
1096 REGISTER_CONVERTIBLE.
1097 (sparc_gdbarch_init): Do not set register_convertible.
1098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1099 * frv-tdep.c (frv_gdbarch_init): Ditto.
1100 * cris-tdep.c (cris_gdbarch_init): Ditto.
1101
1102 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
1103
1104 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
1105 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
1106 (syms_from_objfile): Ditto.
1107
1108 2003-06-03 Andreas Schwab <schwab@suse.de>
1109
1110 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
1111 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
1112
1113 2003-06-02 Richard Henderson <rth@redhat.com>
1114
1115 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
1116 a member of all_reggroup.
1117
1118 2003-06-02 Richard Henderson <rth@redhat.com>
1119
1120 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
1121 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
1122 (alpha_lds, alpha_sts): New.
1123 (alpha_convert_register_p): Change from _register_convertible.
1124 (alpha_register_to_value): Change from _convert_to_virtual;
1125 restructure and fail for type sizes other than 4 or 8.
1126 (alpha_value_to_register): Similarly.
1127 (alpha_extract_return_value): Use alpha_sts.
1128 (alpha_store_return_value): Use alpha_lds.
1129 (alpha_gdbarch_init): Update hooks.
1130
1131 2003-06-02 Richard Henderson <rth@redhat.com>
1132
1133 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
1134 regnum identifiers.
1135 (alpha_sigtramp_register_address): Likewise.
1136
1137 2003-06-02 Richard Henderson <rth@redhat.com>
1138
1139 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
1140 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
1141 * alpha-tdep.h: Declare them.
1142
1143 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
1144 Remove zerobuf. Don't error on UNIQUE.
1145 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
1146 (ALPHA_REGSET_UNIQUE): Provide default.
1147 (supply_gregset): Use alpha_supply_int_regs.
1148 (fill_gregset): Use alpha_fill_int_regs.
1149 (supply_fpregset): Use alpha_supply_fp_regs.
1150 (fill_fpregset): Use alpha_fill_fp_regs.
1151 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
1152 (alphabsd_supply_reg): Use alpha_supply_int_regs.
1153 (alphabsd_fill_reg): Use alpha_fill_int_regs.
1154 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
1155 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
1156 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
1157
1158 2003-06-02 Richard Henderson <rth@redhat.com>
1159
1160 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
1161
1162 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
1163 (alpha_store_return_value): Likewise.
1164
1165 2003-06-02 David Carlton <carlton@math.stanford.edu>
1166
1167 * block.c (contained_in): Add 'const' to arguments.
1168 (block_function): Ditto.
1169 * block.h: Update declarations for block_function and
1170 contained_in.
1171
1172 2003-06-02 David Carlton <carlton@math.stanford.edu>
1173
1174 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
1175 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
1176 * p-valprint.c (pascal_val_print): Ditto.
1177 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
1178
1179 2003-06-02 Richard Henderson <rth@redhat.com>
1180
1181 * alpha-tdep.c (alpha_push_dummy_call): Use
1182 builtin_type_ieee_double_little instead of builtin_type_double.
1183
1184 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
1185 sign-extension of 32-bit values.
1186 (alpha_store_return_value): Similarly.
1187
1188 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
1189 (alpha_extract_return_value): Likewise.
1190 (alpha_store_return_value): Likewise.
1191
1192 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
1193 (alpha_store_return_value): Error on IEEE Quad floats.
1194
1195 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
1196 (alpha_extract_struct_value_address): Likewise.
1197 (alpha_store_return_value): Likewise.
1198 (alpha_store_struct_return): Remove.
1199 (alpha_gdbarch_init): Update hook registration to match.
1200
1201 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
1202 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
1203 macros where appropriate.
1204 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
1205 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
1206
1207 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
1208 for SP, GP; void_func_ptr for PC; non-language-specific types
1209 for all others.
1210 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
1211
1212 2003-06-02 Richard Henderson <rth@redhat.com>
1213
1214 * top.h (lim_at_start): Declare.
1215 * main.c (captured_main): Set it.
1216 * top.c (lim_at_start): Define.
1217 (command_loop): Use it instead of &environ.
1218 * event-top.c (command_handler): Likewise.
1219
1220 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
1221
1222 * mipsnbsd-tdep.c: Update copyright years.
1223 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
1224
1225 2003-06-01 Richard Henderson <rth@redhat.com>
1226
1227 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
1228 (alpha-linux-tdep.o): Update dependencies.
1229 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
1230 * alpha-mdebug-tdep.c: Remove unneeded includes.
1231
1232 2003-06-01 Richard Henderson <rth@redhat.com>
1233
1234 * alpha-tdep.c (alpha_register_reggroup_p): New.
1235 (alpha_gdbarch_init): Register it.
1236
1237 2003-06-02 Andrew Cagney <cagney@redhat.com>
1238
1239 * dwarfread.c: Eliminate "register"
1240 (decode_die_type): Eliminate assignment within "if".
1241 (struct_type, decode_array_element_type): Ditto.
1242 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
1243 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
1244 (decode_modified_type, completedieinfo): Ditto.
1245 * block.c: Eliminate "register".
1246 (blockvector_for_pc_sect): Eliminate assignment within "if".
1247 * cp-support.h (struct symbol): Opaque declaration.
1248 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
1249
1250 2003-06-01 Richard Henderson <rth@redhat.com>
1251
1252 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
1253 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
1254
1255 2003-06-01 Adam Fedor <fedor@gnu.org>
1256
1257 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
1258 * gdbarch.[ch]: Regenerate.
1259 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
1260 (hppa_gdbarch_init): Set it in the gdbarch vector.
1261 * i386-tdep.c (i386_fetch_pointer_argument): New
1262 (i386_gdbarch_init): Set it into gdbarch.
1263 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
1264 (rs6000_gdbarch_init): Set it in gdbarch.
1265 * sparc-tdep.c (sparc_fetch_pointer_argument): New
1266 (sparc_gdbarch_init): Set it in gdbarch.
1267
1268 2003-06-01 Andrew Cagney <cagney@redhat.com>
1269
1270 * defs.h (extract_address): Delete declaration.
1271 * findvar.c (extract_address): Delete function.
1272 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
1273 extract_address with the inline equivalent,
1274 extract_unsigned_integer.
1275 (xstormy16_extract_struct_value_address): Ditto.
1276 (xstormy16_pointer_to_address): Ditto.
1277 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
1278 * v850-tdep.c (v850_push_arguments): Ditto.
1279 (v850_extract_return_value): Ditto.
1280 (v850_extract_struct_value_address): Ditto.
1281 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
1282 (sparcnbsd_get_longjmp_target_64): Ditto.
1283 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
1284 (get_longjmp_target): Ditto.
1285 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
1286 (sh64_extract_struct_value_address): Ditto.
1287 (sh_push_arguments): Ditto.
1288 (sh64_push_arguments): Ditto.
1289 * remote-vxsparc.c (vx_read_register): Ditto.
1290 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
1291 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
1292 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
1293 * mipsv4-nat.c (get_longjmp_target): Ditto.
1294 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
1295 * mips-nat.c (get_longjmp_target): Ditto.
1296 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
1297 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
1298 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
1299 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
1300 * irix5-nat.c (get_longjmp_target): Ditto.
1301 * irix4-nat.c (get_longjmp_target): Ditto.
1302 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
1303 (ia64_push_arguments): Ditto.
1304 * hpux-thread.c (hpux_thread_store_registers): Ditto.
1305 * h8300-tdep.c (h8300_push_arguments): Ditto.
1306 (h8300_store_return_value): Ditto.
1307 (h8300_extract_struct_value_address): Ditto.
1308 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
1309 (frv_push_arguments): Ditto.
1310 * avr-tdep.c (avr_pointer_to_address): Ditto.
1311 (avr_push_arguments): Ditto.
1312 * arm-tdep.c (arm_push_dummy_call): Ditto.
1313 (arm_get_longjmp_target): Ditto.
1314 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1315 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
1316 (alpha_get_longjmp_target): Ditto.
1317
1318 * solib-irix.c (extract_mips_address): Inline extract_address,
1319 replacing it with extract_signed_integer.
1320 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
1321 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
1322 (first_link_map_member, open_symbol_file_object): Ditto.
1323 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
1324 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
1325 (LM_NEXT, LM_NAME): Ditto.
1326
1327 2003-06-01 Richard Henderson <rth@redhat.com>
1328
1329 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
1330 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
1331 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
1332 (alpha_cannot_store_register): Likewise.
1333 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
1334 * alpha-nat.c (supply_gregset): Likewise.
1335 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
1336
1337 2003-06-01 Andrew Cagney <cagney@redhat.com>
1338
1339 * infcall.c (call_function_by_hand): Update comment on
1340 DEPRECATED_DUMMY_WRITE_SP.
1341
1342 * mips-tdep.c (mips_gdbarch_init): Do not set
1343 deprecated_dummy_write_sp.
1344 (mips_eabi_push_dummy_call): Set the SP register.
1345 (mips_o64_push_dummy_call): Set the SP register.
1346 (mips_o32_push_dummy_call): Set the SP register.
1347 (mips_n32n64_push_dummy_call): Set the SP register.
1348
1349 2003-06-01 Richard Henderson <rth@redhat.com>
1350
1351 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
1352 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
1353 (supply_gregset): Likewise.
1354 * alpha-tdep.c (alpha_store_return_value): Likewise.
1355 (alpha_get_longjmp_target): Likewise.
1356 (alpha_register_name): Constify array.
1357 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
1358 deprecated_register_size, deprecated_register_bytes,
1359 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
1360 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
1361 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
1362
1363 2003-06-01 Richard Henderson <rth@redhat.com>
1364
1365 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
1366 from arg_reg_buffer to regcache to avoid double conversion.
1367
1368 2003-06-01 Mark Kettenis <kettenis@gnu.org>
1369
1370 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
1371 SP_REGNUM.
1372 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
1373 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
1374
1375 2003-06-01 Richard Henderson <rth@redhat.com>
1376
1377 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
1378 (decode_frame_entry): Set it. Skip FDE augmentation.
1379
1380 2003-06-01 Richard Henderson <rth@redhat.com>
1381
1382 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
1383 not overlapping PC_REGNUM.
1384
1385 2003-06-01 Richard Henderson <rth@redhat.com>
1386
1387 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
1388 alpha_push_arguments. Don't dump argument register data to
1389 the target stack. Fix float and 128-bit long double semantics.
1390 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
1391 (alpha_fix_call_dummy): Remove.
1392 (alpha_call_dummy_words): Remove.
1393 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
1394
1395 2003-06-01 Richard Henderson <rth@redhat.com>
1396
1397 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
1398
1399 2003-06-01 Andrew Cagney <cagney@redhat.com>
1400
1401 * mips-tdep.c (is_mips16_addr): New function.
1402 (make_mips16_addr, unmake_mips16_addr): New functions.
1403 (pc_is_mips16, mips_fetch_instruction): Use.
1404 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
1405 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
1406 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
1407 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
1408 TARGET_MIPS.
1409 * config/mips/tm-mips.h: Update copyright.
1410 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
1411 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
1412 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
1413 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
1414 (TM_PRINT_INSN_MACH): Delete.
1415 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
1416
1417 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
1418 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
1419 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
1420 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
1421 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
1422 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
1423 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
1424 mips*-*-riscos* and mips*-*-sysv* onto mips.
1425 * config/mips/mips64.mt: New file.
1426 * config/mips/mips.mt: New file.
1427 * config/mips/littlemips.mt: Delete file.
1428 * config/mips/decstation.mt: Delete file.
1429 * config/mips/vr4300el.mt: Delete file.
1430 * config/mips/vr5000el.mt: Delete file.
1431 * config/mips/vr5000.mt: Delete file.
1432 * config/mips/vr4100.mt: Delete file.
1433 * config/mips/vr4xxxel.mt: Delete file.
1434 * config/mips/vr4300.mt: Delete file.
1435 * config/mips/vr4xxx.mt: Delete file.
1436 * config/mips/bigmips.mt: Delete file.
1437 * config/mips/bigmips64.mt: Delete file.
1438 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
1439 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
1440 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
1441 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
1442 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
1443 "tm-bigmips.h".
1444 * config/mips/tm-irix3.h: Ditto.
1445 * config/mips/tm-mipsv4.h: Ditto.
1446 * config/mips/tm-embed.h: Ditto.
1447 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
1448 "tm-bigmips64.h".
1449 * config/mips/tm-vr5000el.h: Delete file.
1450 * config/mips/tm-tx39l.h: Delete file.
1451 * config/mips/tm-vr4300el.h: Delete file.
1452 * config/mips/tm-vr4xxxel.h: Delete file.
1453 * config/mips/tm-vr4300.h: Delete file.
1454 * config/mips/tm-vr4100.h: Delete file.
1455 * config/mips/tm-vr4xxx.h: Delete file.
1456 * config/mips/tm-vr5000.h: Delete file.
1457 * config/mips/tm-embedl64.h: Delete file.
1458 * config/mips/tm-embedl.h: Delete file.
1459 * config/mips/tm-embed64.h: Delete file.
1460 * config/mips/tm-bigmips64.h: Delete file.
1461 * config/mips/tm-bigmips.h: Delete file.
1462
1463 2003-06-01 Mark Kettenis <kettenis@gnu.org>
1464
1465 Fix gdb/1216.
1466 * shnbsd-nat.c: Include "sh-tdep.h".
1467
1468 From Richard Henderson <rth@redhat.com>:
1469 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
1470
1471 2003-05-31 Andrew Cagney <cagney@redhat.com>
1472
1473 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
1474 forward declaration.
1475 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
1476 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
1477 (mips_find_saved_regs): Use set_reg_offset.
1478 (mips_frame_init_saved_regs): Delete function.
1479 (mips_pop_frame): Call mips_find_saved_regs instead of
1480 DEPRECATED_FRAME_INIT_SAVED_REGS.
1481
1482 2003-05-31 Andrew Cagney <cagney@redhat.com>
1483
1484 * mips-tdep.c (mips_gdbarch_init): Do not set
1485 deprecated_max_register_raw_size, register_virtual_size, and
1486 deprecated_max_register_virtual_size.
1487
1488 2003-05-31 Mark Kettenis <kettenis@gnu.org>
1489
1490 * i386-tdep.c: Include "dwarf2-frame.h".
1491 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
1492 * Makefile.in (i386-tdep.o): Update dependencies.
1493
1494 * dwarf2-frame.c, dwarf2-frame.h: New files.
1495 * Makefile.in (SFILES): Add dwarf2-frame.c.
1496 (dwarf2_frame_h): Define.
1497 (COMMON_OBS): Add dwarf2-frame.o.
1498 (dwarf2-frame.o): Add dependencies.
1499
1500 2003-05-31 Andreas Jaeger <aj@suse.de>
1501
1502 * x86-64-linux-nat.c: Fix comment.
1503
1504 2003-05-31 Mark Kettenis <kettenis@gnu.org>
1505
1506 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
1507 function signature.
1508
1509 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
1510 have a sigcontext_addr handler.
1511 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
1512 sigcontext_addr handler.
1513
1514 2003-05-31 Andrew Cagney <cagney@redhat.com>
1515
1516 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
1517 (print_fp_register_row): Replace do_fp_register_row.
1518 (mips_print_fp_register): Add "file" and "frame" parameters.
1519 (mips_print_register): Add "file" and "frame" parameters.
1520 (mips_print_registers_info): Replace mips_do_registers_info.
1521 (mips_gdbarch_init): Set print_registers_info instead of
1522 deprecated_do_registers_info.
1523 (mips_read_fp_register_single): Add "frame" parameter.
1524 (mips_read_fp_register_double): Add "frame" parameter.
1525
1526 2003-05-31 Mark Kettenis <kettenis@gnu.org>
1527
1528 * i386-tdep.c (i386_register_name): Check for MMX registers first.
1529 Fixes a bug where GDB would print the wrong register names for
1530 targets without SSE.
1531
1532 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
1533 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
1534 registers.
1535
1536 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
1537 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
1538 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1539 TDEP->sc_sp_offset.
1540
1541 From Michal Ludvig <mludvig@suse.cz>:
1542 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
1543 and `sc_num_regs'.
1544 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1545 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
1546 I386_ST0_REGNUM): Move here from...
1547 * i386-tdep.c: ... here.
1548 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
1549 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
1550 registers if possible.
1551 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
1552 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
1553 Remove variables.
1554 (i386bsd_sc_reg_offset): New variable.
1555 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
1556 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1557 TDEP->sc_sp_offset.
1558 (i386fbsd_sc_reg_offset): New variable.
1559 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
1560 TDEP->sc_num_regs.
1561 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
1562 variables.
1563 (i386fbsd4_sc_reg_offset): New variable.
1564 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
1565 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1566 TDEP->sc_sp_offset.
1567 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
1568 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
1569 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
1570 Remove variables.
1571 (i386nbsd_sc_reg_offset): New variable.
1572 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
1573 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1574 TDEP->sc_sp_offset.
1575 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
1576 Remove variables.
1577 (i386obsd_sc_reg_offset): New variable.
1578 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
1579 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1580 TDEP->sc_sp_offset.
1581 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
1582 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
1583 for frame pointer offset in `struct sigcontext'.
1584
1585 2003-05-31 Andrew Cagney <cagney@redhat.com>
1586
1587 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
1588 architecture methods call_dummy_words, sizeof_call_dummy_words,
1589 push_return_address, store_struct_return, and fix_call_dummy. Set
1590 push_dummy_call instead of deprecated_push_arguments.
1591 (mips_store_struct_return): Delete function.
1592 (mips_fix_call_dummy): Delete function.
1593 (mips_push_return_address): Delete function.
1594 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
1595 RA_REGNUM and T9_REGNUM.
1596 (mips_n32n64_push_dummy_call): Ditto for
1597 mips_n32n64_push_arguments.
1598 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
1599 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
1600
1601 2003-05-31 Andrew Cagney <cagney@redhat.com>
1602
1603 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
1604 "dummy_addr" to "bp_addr".
1605 * infcall.c (call_function_by_hand): Pass "funaddr" to
1606 gdbarch_push_dummy_call.
1607 * gdbarch.h, gdbarch.c: Re-generate.
1608 * i386-tdep.c (i386_push_dummy_call): Update.
1609 * arm-tdep.c (arm_push_dummy_call): Update.
1610 * d10v-tdep.c (d10v_push_dummy_call): Update.
1611
1612 2003-05-31 Mark Kettenis <kettenis@gnu.org>
1613
1614 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
1615 variable declarations.
1616 (x86_64_register_number, x86_64_register_name): Remove prototypes.
1617 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
1618 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
1619 x86_64_init_frame_pc, x86_64_init_frame_pc,
1620 x86_64_function_has_prologue): Remove prototypes.
1621 (X86_64_NUM_GREGS): New define.
1622 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
1623 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
1624 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
1625 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
1626 XMM1_REGNUM): Remove defines.
1627 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
1628 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
1629 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
1630 X86_64_XMM1_REGNUM): New defines.
1631 (struct x86_64_register_info): Renamed from `struct
1632 register_info'. Remove `size' member.
1633 (x86_64_register_info_table): Remove variable.
1634 (x86_64_register_info): New variable.
1635 (X86_64_NUM_REGS): New define.
1636 (X86_64_NUM_GREGS): Remove define.
1637 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
1638 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
1639 Remove variables.
1640 (x86_54_dwarf2_reg_to_regnum): Remove function.
1641 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
1642 (x86_64_dwarf_reg_to_regnum): New function.
1643 (x86_64_register_name): Rewrite.
1644 (x86_64_register_raw_size): Remove function.
1645 (x86_64_register_byte_table): Remove variable.
1646 (x86_64_register_byte): Remove function.
1647 (x86_64_register_virtual_type): Remove function.
1648 (x86_64_register_type): New function.
1649 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
1650 x86_64_register_convert_to_raw): Remove functions.
1651 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
1652 (x86_64_use_struct_convention): Make static. Adjust for renamed
1653 defines.
1654 (x86_64_frame_init_saved_regs): Remove function.
1655 (x86_64_push_arguments): Make static. Change to accept a regcache
1656 as argument.
1657 (x86_64_store_return_value, x86_64_extract_return_value): Make
1658 static. Rewrite based on i386 counterparts.
1659 (x86_64_push_dummy_call): New function.
1660 (X86_64_NUM_SAVED_REGS): New define.
1661 (x86_64_register_number): Remove function.
1662 (x86_64_store_struct_return): Remove function.
1663 (x86_64_frameless_function_invocation,
1664 x86_64_function_has_prologue): Remove functions.
1665 (PROLOG_BUFSIZE): Remove define.
1666 (struct x86_64_frame_cache): New structure.
1667 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
1668 x86_64_frame_cache, x86_64_frame_this_id,
1669 x86_64_frame_prev_register, x86_64_frame_p,
1670 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
1671 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
1672 functions.
1673 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
1674 variables.
1675 (x86_64_skip_prologue): Rewrite in terms of
1676 x86_64_analyze_prologue.
1677 (x86_64_frame_base_address): New function.
1678 (x86_64_frame_base): New variable.
1679 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
1680 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
1681 set deprecated_fp_regnum, deprecated_register_size,
1682 deprecated_register_bytes, register_raw_size, register_byte,
1683 register_virtual_type, register_convertiable,
1684 register_convert_to_virtual, convert_to_raw,
1685 deprecated_get_saved_register, deprecated_target_read_fp,
1686 deprecated_push_arguments, deprecated_push_return_address,
1687 deprecated_pop_frame, deprecated_store_struct_return,
1688 deprecated_frame_init_saved_regs, deprecated_frame_chain,
1689 frameless_function_invocation, deprecated_frame_saved_pc,
1690 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
1691 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
1692 deprecated_init_frame_pc and virtual_frame_pointer. Call
1693 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
1694 and x86_64_frame_p. Call frame_base_set_default to register
1695 x86_64_frame_base.
1696 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
1697 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
1698 (_initialize_x86_64_tdep): Remove function.
1699 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
1700 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
1701 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
1702 define.
1703 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
1704 (x86_64_linux_sigcontext_addr): Rewrite.
1705 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
1706 x86_64_linux_frame_saved_pc): Remove functions.
1707 (x86_64_linux_pc_in_sigtramp): Renamed from
1708 x86_64_linux_in_sigtramp. Try harder to recognize a signal
1709 trampoline.
1710 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
1711 Remove_functions.
1712 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
1713 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
1714 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
1715 (x86_64_regmap): Rename to regmap.
1716 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
1717 x86_64_num_gregs.
1718 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
1719 x86_64_regmap.
1720 (x86_64_fxsave_offset): Remove function.
1721 (supply_fpregset): Simply call x86_64_supply_fxsave.
1722 (fill_fpregset): Simply call x86_64_fill_fxsave.
1723 (fetch_inferior_registers, store_inferior_registers): Avoid
1724 asignment in if-statement.
1725 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
1726 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
1727 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
1728 (fetch_core_registers): Remove function.
1729 (linux_elf_core_fns): Remove.
1730 (offsetoff): Don't define.
1731 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
1732 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
1733 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
1734 add core-regset.o.
1735 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
1736 protection against multiple includes instead of NM_X86_64_h. Add
1737 various comments. Include "config/nm-linux.h". Don't include
1738 <signal.h>.
1739 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
1740 GET_THREAD_SIGNALS): Remove defines.
1741 (x86_64_register_u_addr, kernel_u_size,
1742 lin_thread_get_thread_signals): Remove prototypes.
1743 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
1744 [HAVE_LINK_H]: Don't include "solib.h".
1745 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
1746 * config/i386/tm-x86-64linux.h: Fix comments.
1747 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
1748 x86-64-tdep.o): Update dependencies.
1749
1750 2003-05-30 Andrew Cagney <cagney@redhat.com>
1751
1752 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
1753 Change parameter type to a "struct regcache *".
1754
1755 * gdbarch.sh: Regardless of the multi-arch level, always define
1756 the macro when not already defined.
1757 * gdbarch.h, gdbarch.c: Re-generate.
1758
1759 2003-05-30 Richard Henderson <rth@redhat.com>
1760
1761 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
1762 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
1763 (alpha_mdebug_frame_this_id): Likewise.
1764 (alpha_mdebug_frame_prev_register): Likewise.
1765 (alpha_mdebug_frame_base_address): Likewise.
1766 (alpha_mdebug_frame_locals_address): Likewise.
1767 (alpha_mdebug_frame_args_address): Likewise.
1768 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
1769 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
1770 (alpha_heuristic_frame_unwind_cache): Make static; add missing
1771 loop increment.
1772 (alpha_heuristic_frame_this_id): Make static.
1773 (alpha_heuristic_frame_prev_register): Likewise.
1774 (alpha_heuristic_frame_base_address): Likewise.
1775 * alpha-tdep.h: Update.
1776
1777 2003-05-30 Mark Kettenis <kettenis@gnu.org>
1778
1779 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
1780 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
1781 defenitions.
1782 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
1783 * i386-tdep.c: Mark functions that are 64-bit safe as such.
1784 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1785 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
1786 I386_ST0_REGNUM): New defines.
1787 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
1788 codestream_get): Remove define.
1789 (codestream_next_addr, condestream_addr, condestream_buf,
1790 codestream_off, codestream_cnt): Remove variables.
1791 (codestream_fill, codestream_seek, codestream_read): Remove
1792 functions.
1793 (i386_follow_jump): Rewrite to avoid usage of removed codestream
1794 functionality.
1795 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
1796 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
1797 i386_frame_saved_pc, i386_saved_pc_after_call,
1798 i386_frame_num_args, i386_frame_init_saved_regs,
1799 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
1800 i386_push_arguments): Remove functions.
1801 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
1802 functionality. Use i386_analyze_prologue instead of
1803 i386_get_frame_setup.
1804 (I386_NUM_SAVED_REGS): New define.
1805 (struct i386_frame_cache): New structure.
1806 (i386_alloc_frame_cache, i386_analyze_struct_return,
1807 i386_skip_probe, i386_analyze_frame_setup,
1808 i386_analyze_register_saves, i386_analyze_prologue,
1809 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
1810 i386_frame_prev_register, i386_sigtramp_frame_cache,
1811 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
1812 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
1813 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
1814 New functions.
1815 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
1816 New variables.
1817 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
1818 I386_EAX_REGNUM and I386_EDX_REGNUM.
1819 (i386_extract_return_value, i386_store_return_value): Use
1820 I386_ST0_REGNUM where appropriate.
1821 (i386_extract_struct_value_address): Rewrite to use extract_address.
1822 (i386_svr4_pc_in_sigtramp): Add comment.
1823 (i386_svr4_sigcontext_addr): Rewrite.
1824 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
1825 TDEP->sc_sp_offset.
1826 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
1827 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
1828 of new defines. Set push_dummy_call, don't set
1829 deprecated_push_arguments, deprecated_push_return_address,
1830 deprecated_pop_frame. Don't set parm_boundary. Don't set
1831 deprecated_frame_chain, deprecated_frame_saved_pc,
1832 deprecated_saved_pc_after_call. Set unwind_dummy_id,
1833 save_dummy_frame_tos, unwind_pc. Call
1834 frame_unwind_append_predicate and frame_base_set_default. Don't
1835 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
1836 Don't set frameless_function_invocation. Don't set
1837 deprecated_register_bytes, deprecated_register_size,
1838 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
1839 * i386-linux-tdep.c: Fix formatting in some comments.
1840 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
1841 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
1842 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
1843 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
1844 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
1845 redundant parentheses.
1846 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
1847 (i386_linux_sigcontext_addr): Use it. Rewrite.
1848 (find_minsym_and_objfile): Change name of second argument.
1849 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
1850 changed. Use frame_pc_unwind instead of
1851 DEPRECATED_SAVED_PC_AFTER_CALL.
1852 (i386_linux_init_abi): Don't set deprecated_register_bytes.
1853 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
1854 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
1855 unwinder.
1856 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
1857 "dummy-frame.h".
1858 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
1859 (_initialize_i386_cygwin_tdep): New prototype.
1860 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
1861 deprecated_frame_chain_valid.
1862 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
1863 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
1864 Rely on the SVR4 defaults.
1865 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
1866 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
1867
1868 2003-05-30 Andrew Cagney <cagney@redhat.com>
1869
1870 * infcall.c (call_function_by_hand): Always call
1871 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
1872
1873 2003-05-30 Richard Henderson <rth@redhat.com>
1874
1875 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
1876 increment.
1877
1878 2003-05-29 Jim Blandy <jimb@redhat.com>
1879
1880 Use gdbarch methods for solib stuff on PowerPC Linux.
1881 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
1882 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
1883 show through.
1884 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1885 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
1886 giving the same effect as the #definitions above.
1887
1888 2003-05-29 Adam Fedor <fedor@gnu.org>
1889
1890 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
1891 (find_implementation_from_class): Replace it with the standard
1892 case i.e. do nothing.
1893
1894 2003-05-29 Richard Henderson <rth@redhat.com>
1895
1896 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
1897 (alpha_linux_sigtramp_offset): Use it. Make static.
1898 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
1899 update for new frame model.
1900 * alpha-mdebug-tdep.c: New file.
1901 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
1902 (alpha_osf1_init_abi): Install it.
1903 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
1904 (linked_proc_desc_table): Remove.
1905 (alpha_frame_past_sigtramp_frame): Remove.
1906 (alpha_dynamic_sigtramp_offset): Remove.
1907 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
1908 (alpha_proc_desc_is_dyn_sigtramp): Remove.
1909 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
1910 (push_sigtramp_desc): Remove.
1911 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
1912 (alpha_cannot_store_register): Likewise.
1913 (alpha_sigcontext_addr): Remove.
1914 (alpha_find_saved_regs): Remove.
1915 (alpha_frame_init_saved_regs): Remove.
1916 (alpha_init_frame_pc_first): Remove.
1917 (read_next_frame_reg): Remove.
1918 (alpha_frame_saved_pc): Remove.
1919 (alpha_saved_pc_after_call): Remove.
1920 (temp_proc_desc, temp_saved_regs): Remove.
1921 (alpha_about_to_return): Remove.
1922 (cached_proc_desc): Remove.
1923 (alpha_frame_chain): Remove.
1924 (alpha_print_extra_frame_info): Remove.
1925 (alpha_init_extra_frame_info): Remove.
1926 (alpha_frame_locals_address): Remove.
1927 (alpha_frame_args_address): Remove.
1928 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
1929 (alpha_push_dummy_frame): Remove.
1930 (alpha_pop_frame): Remove.
1931 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
1932 (alpha_read_insn): New.
1933 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
1934 for different insn encodings.
1935 (alpha_in_lenient_prologue): Remove.
1936 (struct alpha_sigtramp_unwind_cache): New.
1937 (alpha_sigtramp_frame_unwind_cache): New.
1938 (alpha_sigtramp_register_address): New.
1939 (alpha_sigtramp_frame_this_id): New.
1940 (alpha_sigtramp_frame_prev_register): New.
1941 (alpha_sigtramp_frame_unwind): New.
1942 (alpha_sigtramp_frame_p): New.
1943 (struct alpha_heuristic_unwind_cache): New.
1944 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
1945 don't count nop insns that occur between functions.
1946 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
1947 heuristic_proc_desc, but without the mdebug wrapping.
1948 (alpha_heuristic_frame_this_id): New.
1949 (alpha_heuristic_frame_prev_register): New.
1950 (alpha_heuristic_frame_unwind): New.
1951 (alpha_heuristic_frame_p): New.
1952 (alpha_heuristic_frame_base_address): New.
1953 (alpha_heuristic_frame_base): New.
1954 (alpha_unwind_dummy_id): New.
1955 (alpha_unwind_pc): New.
1956 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
1957 frame related deprecated initializations; install replacements.
1958 (alpha_dump_tdep): Remove.
1959 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
1960 (alpha_read_insn, alpha_after_prologue,
1961 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
1962 alpha_heuristic_frame_prev_register,
1963 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
1964 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1965 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
1966 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
1967
1968 2003-05-29 Andrew Cagney <cagney@redhat.com>
1969
1970 * gdb_assert.h (gdb_assert_fail): Provide different definitions
1971 dependant on the availability of ASSERT_FUNCTION.
1972 (ASSERT_FUNCTION): Do not define when there is no function name.
1973
1974 2003-05-29 Kevin Buettner <kevinb@redhat.com>
1975
1976 From Jimi X <jimix@watson.ibm.com>:
1977 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
1978
1979 2003-05-28 Jim Blandy <jimb@redhat.com>
1980
1981 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
1982 argument to ptrace to int; the system headers should give it the
1983 right type, and pointers don't fit in ints on powerpc64-*-*.
1984
1985 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
1986
1987 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
1988 DW_TAG_catch_block.
1989
1990 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
1991
1992 * stabsread.c (dbx_lookup_type): Make static.
1993 (read_type): Ditto.
1994 (add_undefined_type): Ditto.
1995 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
1996 not export.
1997
1998 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
1999
2000 * hpread.c (hpread_has_name): Make static.
2001 (hpread_psymtab_to_symtab): Ditto.
2002 (file_exists): Ditto.
2003 (hpread_call_pxdb): Ditto.
2004 (hpread_pxdb_needed): Ditto.
2005 (hpread_quick_traverse): Ditto.
2006 (hpread_get_header): Ditto.
2007 (hpread_get_lntt): Ditto.
2008 (hpread_get_slt): Ditto.
2009 (class_of): Ditto.
2010
2011 2003-05-25 Andreas Schwab <schwab@suse.de>
2012
2013 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
2014 stack_align and deprecated_extra_stack_alignment_needed.
2015 (m68k_stack_align): Delete.
2016
2017 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
2018 (m68k_register_virtual_size): Likewise.
2019 (altos_skip_prologue): Remove obsolete function.
2020 (isi_frame_num_args): Likewise.
2021 (news_frame_num_args): Likewise.
2022 (m68k_fix_call_dummy): Make static.
2023 (m68k_push_dummy_frame): Likewise.
2024 (m68k_pop_frame): Likewise.
2025 (m68k_skip_prologue): Likewise.
2026 (m68k_frame_init_saved_regs): Likewise.
2027 (m68k_saved_pc_after_call): Likewise.
2028 (m68k_get_longjmp_target): Make multi-arch.
2029 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
2030 structure. Register m68k_get_longjmp_target if enabled.
2031 * m68k-tdep.h (struct gdbarch_tdep): Define.
2032 * config/m68k/tm-m68k.h: Don't include "regcache.h".
2033
2034 * Makefile.in (config.status): Also depend on configure.tgt
2035 and configure.host.
2036 (m68klinux-tdep.o): Update dependencies.
2037 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
2038 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
2039 (M68K_LINUX_JB_PC): Define.
2040 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
2041 and take additional parameter.
2042 (m68k_linux_sigtramp_saved_pc): Update.
2043 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
2044 m68k_linux_pc_in_sigtramp, in_plt_section,
2045 find_solib_trampoline_target.
2046 * config/m68k/tm-linux.h: Don't include any tm headers.
2047 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
2048 (JB_ELEMENT_SIZE): Likewise.
2049 (JB_PC): Likewise.
2050 (GET_LONGJMP_TARGET): Likewise.
2051 (IN_SIGTRAMP): Likewise.
2052 (SVR4_SHARED_LIBS): Define this and include "solib.h".
2053
2054 2003-05-25 Mark Kettenis <kettenis@gnu.org>
2055
2056 * sparc-tdep.c (sparc32_do_push_arguments): New function.
2057 (sparc32_push_arguments): Re-implement by calling
2058 sparc32_do_push_arguments.
2059
2060 2003-05-25 Mark Kettenis <kettenis@gnu.org>
2061
2062 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
2063 SPARC_O1_REGNUM): New defines.
2064 (sparc32_extract_return_value): Rewrite to operate on a regcache.
2065 (sparc32_store_return_value): New function.
2066 (sparc_extract_struct_value_address): Rewrite to operate on a
2067 regcache.
2068 (sparc_gdbarch_init): Don't set
2069 deprecated_extract_struct_value_address. Set
2070 extract_struct_value_address instead. Don't set
2071 deprecated_extract_return_value and deprecated_store_return_value
2072 for 32-bit targets. Set extract_return_value and
2073 store_return_value instead.
2074 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
2075 DEPRECTAED_EXTRACT_RETURN_VALUE,
2076 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
2077 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2078 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
2079 (sparc_store_return_value): Remove prototype.
2080 (sparc32_store_return_value): New prototype.
2081 (sparc32_extract_return_value, sparc_extract_struct_value_address):
2082 Adjust prototypes.
2083
2084 2003-05-24 Mark Kettenis <kettenis@gnu.org>
2085
2086 * sparcnbsd-tdep.c: Include "gdb_string.h".
2087
2088 2003-05-23 Andrew Cagney <cagney@redhat.com>
2089
2090 * p-valprint.c (pascal_val_print): Replace extract_address with
2091 the inline equivalent extract_unsigned_integer.
2092 * jv-valprint.c (java_value_print): Ditto.
2093 * ada-valprint.c (ada_val_print_1): Ditto.
2094 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
2095
2096 2003-05-23 Theodore A. Roth <troth@openavr.org>
2097
2098 * blockframe.c (frameless_look_for_prologue): Remove unused
2099 after_prologue variable.
2100
2101 2003-05-23 Mark Kettenis <kettenis@gnu.org>
2102
2103 * blockframe.c (get_pc_function_start): Rewrite to avoid
2104 asignments in if-statements.
2105
2106 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
2107
2108 Committed by Elena Zannoni <ezannoni@redhat.com>.
2109 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
2110 files, don't relocate absolute symbols (and do use mst_abs).
2111
2112 2003-05-23 Andrew Cagney <cagney@redhat.com>
2113
2114 * objc-lang.c: Include "gdb_assert.h".
2115 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
2116 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
2117 (gdb_check, gdb_check_fatal): Delete functions.
2118 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
2119 gdb_assert.
2120 (parse_selector, parse_method, find_methods, find_imps): Ditto.
2121 * Makefile.in (objc-lang.o): Update dependencies.
2122
2123 2003-05-22 Ian Lance Taylor <ian@airs.com>
2124
2125 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
2126 with fprintf_filtered, not fprintf_unfiltered.
2127
2128 2003-05-22 Andrew Cagney <cagney@redhat.com>
2129
2130 * stack.c (frame_info): Inline extract_address, replacing it with
2131 extract_unsigned_integer.
2132 * findvar.c (unsigned_pointer_to_address): Ditto.
2133 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
2134 * dwarf2expr.c (dwarf2_read_address): Ditto.
2135 * frame.c (frame_pc_unwind): Update comment.
2136 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
2137
2138 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
2139
2140 * infptrace.c (detach): Call print_sys_errmsg rather than
2141 perror_with_name to issue warning message when errno is non-zero
2142 after calling ptrace detach.
2143
2144 2003-05-21 J. Brobecker <brobecker@gnat.com>
2145
2146 * config/pa/tm-hppa.h: Delete some unused macros. Move some
2147 macro definitions from here...
2148 * hppa-tdep.c: ...to there.
2149
2150 2003-05-20 Kevin Buettner <kevinb@redhat.com>
2151
2152 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
2153 register_ptrace_addr(). Fix all callers.
2154
2155 2003-05-21 Andreas Schwab <schwab@suse.de>
2156
2157 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2158 dependencies.
2159 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
2160 end.
2161 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
2162 (_initialize_m68k_linux_tdep): New function.
2163 (m68k_linux_frame_saved_pc): Make static.
2164 (m68k_linux_extract_return_value): Likewise.
2165 (m68k_linux_store_return_value): Likewise.
2166 (m68k_linux_extract_struct_value_address): Likewise.
2167 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
2168 Remove.
2169 (DEPRECATED_STORE_RETURN_VALUE): Remove.
2170 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2171 (DEPRECATED_FRAME_SAVED_PC): Remove.
2172
2173 2003-05-20 Kris Warkentin <kewarken@qnx.com>
2174
2175 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
2176 regset numbering rather than our own.
2177
2178 2003-05-19 David Carlton <carlton@bactrian.org>
2179
2180 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
2181
2182 2003-05-19 David Carlton <carlton@bactrian.org>
2183
2184 Partial fix for PR c++/827.
2185 * cp-support.h: Include symtab.h.
2186 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
2187 * cp-namespace.c: Update contributors.
2188 (cp_lookup_symbol_nonlocal): New.
2189 (lookup_namespace_scope, cp_lookup_symbol_namespace)
2190 (lookup_symbol_file): Ditto.
2191 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
2192 * block.h: Declare block_scope, block_using, block_global_block.
2193 * block.c (block_scope): New.
2194 (block_using, block_global_block): Ditto.
2195 * Makefile.in (cp_support_h): Depend on symtab_h.
2196 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
2197
2198 2003-05-19 David Carlton <carlton@bactrian.org>
2199
2200 * language.h (struct language_defn): Add 'la_value_of_this'
2201 and 'la_lookup_symbol_nonlocal' members.
2202 * symtab.h: Declare basic_lookup_symbol_nonlocal,
2203 lookup_symbol_static, lookup_symbol_global,
2204 lookup_symbol_aux_block.
2205 * symtab.c (lookup_symbol_aux): Call language hooks to determine
2206 if we should search fields of this and how to do static/global
2207 lookup.
2208 (lookup_symbol_aux_block): Make extern.
2209 (basic_lookup_symbol_nonlocal): New.
2210 (lookup_symbol_static, lookup_symbol_global): Ditto.
2211 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
2212 'la_lookup_symbol_nonlocal' members.
2213 * c-lang.c (c_language_defn, cplus_language_defn)
2214 (asm_language_defn, minimal_language_defn): Ditto.
2215 * jv-lang.c (java_language_defn): Ditto.
2216 * language.c (unknown_language_defn, auto_language_defn)
2217 (local_language_defn): Ditto.
2218 * m2-lang.c (m2_language_defn): Ditto.
2219 * objc-lang.c (objc_language_defn): Ditto.
2220 * scm-lang.c (scm_language_defn): Ditto.
2221 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
2222 * p-lang.c (pascal_language_defn): Ditto for both.
2223 * Makefile.in (f-lang.o): Depend on value_h.
2224 (p-lang.o): Ditto.
2225
2226 2003-05-19 David Carlton <carlton@bactrian.org>
2227
2228 * block.h: Declare block_static_block.
2229 * block.c (block_static_block): New.
2230 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
2231 lookup_symbol_aux_local, calling block_static_block instead.
2232 (lookup_symbol_aux_local): Delete 'static_block' argument.
2233
2234 2003-05-19 David Carlton <carlton@bactrian.org>
2235
2236 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
2237
2238 2003-05-19 Michal Ludvig <mludvig@suse.cz>
2239
2240 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
2241 register numbers mapping.
2242
2243 2003-05-18 Adam Fedor <fedor@gnu.org>
2244
2245 * symtab.c (completion_list_objc_symbol): New function.
2246 (make_symbol_completion_list): Use it to add ObjC symbols
2247 when looking though the list.
2248 (language_search_unquoted_string): New function.
2249 (make_file_symbol_completion_list): Use it.
2250
2251 2003-05-18 Andreas Schwab <schwab@suse.de>
2252
2253 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
2254 dependencies.
2255 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
2256 as m68k_linux_extract_return_value.
2257 (DEPRECATED_STORE_RETURN_VALUE): Define as
2258 m68k_linux_store_return_value.
2259 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2260 m68k_linux_extract_struct_value_address.
2261 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
2262 get_next_frame, get_frame_base, get_frame_pc.
2263 (m68k_linux_frame_saved_pc): Use get_frame_base.
2264 (m68k_linux_extract_return_value): New function.
2265 (m68k_linux_store_return_value): New function.
2266 (m68k_linux_extract_struct_value_address): New function.
2267 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
2268
2269 * c-exp.y (typebase): Remove duplicate occurence of
2270 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
2271 of lookup_signed_typename.
2272
2273 2003-05-18 Mark Kettenis <kettenis@gnu.org>
2274
2275 * dwarf2loc.c (find_location_expression): Change type of second
2276 argument to `size_t *'.
2277 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
2278 for size variable.
2279
2280 2003-05-18 David Carlton <carlton@bactrian.org>
2281
2282 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
2283 'linkage_name'. Add comment.
2284 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
2285 'linkage_name'.
2286 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
2287 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
2288 (lookup_block_symbol): Ditto.
2289
2290 2003-05-16 Andrew Cagney <cagney@redhat.com>
2291
2292 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
2293 * gdbarch.h, gdbarch.c: Re-generate.
2294 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
2295 * TODO (REGISTER_BYTES): Delete reference.
2296 * alpha-tdep.c (alpha_gdbarch_init): Update.
2297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2298 * x86-64-tdep.c (x86_64_init_abi): Update.
2299 * vax-tdep.c (vax_gdbarch_init): Update.
2300 * v850-tdep.c (v850_gdbarch_init): Update.
2301 * sparc-tdep.c (sparc_gdbarch_init): Update.
2302 * sh-tdep.c (sh_gdbarch_init): Update.
2303 * s390-tdep.c (s390_gdbarch_init): Update.
2304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2305 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2306 (ns32k_gdbarch_init_32382): Update.
2307 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2308 * mcore-tdep.c (mcore_gdbarch_init): Update.
2309 * m68k-tdep.c (m68k_gdbarch_init): Update.
2310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2311 * ia64-tdep.c (ia64_gdbarch_init): Update.
2312 * i386-tdep.c (i386_gdbarch_init): Update.
2313 * i386-linux-tdep.c (i386_linux_init_abi): Update.
2314 * hppa-tdep.c (hppa_gdbarch_init): Update.
2315 * h8300-tdep.c (h8300_gdbarch_init): Update.
2316 * frv-tdep.c (frv_gdbarch_init): Update.
2317 * cris-tdep.c (cris_gdbarch_init): Update.
2318 * avr-tdep.c (avr_gdbarch_init): Update.
2319 * arm-tdep.c (arm_gdbarch_init): Update.
2320 * sparc-tdep.c (sparc_pop_frame): Update.
2321 * rs6000-tdep.c (rs6000_pop_frame): Update.
2322 * remote.c (init_remote_state): Update.
2323 (remote_prepare_to_store): Update.
2324 * remote-vx.c (vx_prepare_to_store): Update.
2325 * remote-sds.c (sds_fetch_registers): Update.
2326 (sds_prepare_to_store): Update.
2327 * remote-array.c: Update.
2328 * regcache.c (init_legacy_regcache_descr): Update.
2329 (init_regcache_descr): Update.
2330 * mips-tdep.c (mips_eabi_extract_return_value): Update.
2331 (mips_o64_extract_return_value): Update.
2332 * irix5-nat.c (fetch_core_registers): Update.
2333 * irix4-nat.c (fetch_core_registers): Update.
2334 * i386-tdep.h: Update.
2335 * hppa-tdep.c (pa_do_registers_info): Update.
2336 (pa_do_strcat_registers_info): Update.
2337 * cris-tdep.c (cris_register_bytes_ok): Update.
2338 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2339 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
2340 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
2341 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
2342 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
2343 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
2344 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
2345 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
2346 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
2347 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
2348 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
2349 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
2350 (REGISTER_BYTES_OK): Update.
2351 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
2352 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
2353
2354 2003-05-16 Ian Lance Taylor <ian@airs.com>
2355
2356 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
2357 (vax_print_insn, print_insn_arg): Remove static functions.
2358 (vax_gdbarch_init): Call set_gdbarch_print_insn with
2359 print_insn_vax from opcodes library.
2360 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
2361
2362 2003-05-15 Andrew Cagney <cagney@redhat.com>
2363
2364 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
2365 * target.h (memory_breakpoint_from_pc): Delete declaration.
2366 * mem-break.c (memory_breakpoint_from_pc): Delete function.
2367 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
2368 * monitor.c (monitor_insert_breakpoint): Use
2369 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
2370 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
2371 * gdbarch.h, gdbarch.c: Re-generate.
2372 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
2373 (sparc_gdbarch_init): Set breakpoint_from_pc to
2374 sparc_breakpoint_from_pc.
2375 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
2376 (BREAKPOINT_FROM_PC): Define.
2377 (sparc_breakpoint_from_pc): Declare.
2378 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
2379 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
2380 (BREAKPOINT_FROM_PC): Define.
2381 (BREAKPOINT): Delete macro.
2382 * target.h: Update comment.
2383 * s390-tdep.c (s390_gdbarch_init): Update comments.
2384 * remote.c: Update comments.
2385 * remote-mips.c: Update comments.
2386 * proc-api.c (write_with_trace): Do not check for a breakpoint.
2387 * mem-break.c: Update comment.
2388 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
2389 (ia64_memory_insert_breakpoint): Update.
2390 * config/sparc/tm-sparc.h: Update comment.
2391 * config/pa/tm-hppa64.h: Update comment.
2392 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
2393 (rs6000_breakpoint_from_pc): Update.
2394 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
2395 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
2396 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
2397 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
2398 (mips_breakpoint_from_pc): Update.
2399 (mips_dump_tdep): Update.
2400
2401 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
2402 * minsyms.c (lookup_minimal_symbol): Inline
2403 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
2404
2405 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
2406 * p-valprint.c (pascal_object_print_value_fields): Ditto.
2407 * p-lang.c (pascal_printstr): Ditto.
2408 * objc-lang.c (objc_printstr): Ditto.
2409 * m2-lang.c (m2_printstr): Ditto.
2410 * jv-valprint.c (java_print_value_fields): Ditto.
2411 * f-lang.c (f_printstr): Ditto.
2412 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
2413 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
2414 for repeat_count_threshold.
2415 * Makefile.in (cp-valprint.o): Update dependencies.
2416
2417 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
2418
2419 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
2420 (examine_prologue): Support looking through leaf functions, knowing
2421 they start with mov r2,r12. Support skipping over indirect stores
2422 of the input registers. Upon hitting a non-nop branch instruction
2423 or predicated instruction, bail out by setting lim_pc to the current
2424 pc value in the loop. At the end, if the lim_pc value is still
2425 beyond our calculated value and we have trust_limit set,
2426 use the lim_pc value.
2427
2428 2003-05-15 Andrew Cagney <cagney@redhat.com>
2429
2430 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
2431 generic_find_dummy_frame.
2432 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
2433 (deprecated_generic_find_dummy_frame): Update.
2434 (deprecated_read_register_dummy): Update.
2435 * frame.c (deprecated_generic_get_saved_register): Update.
2436
2437 2003-05-15 Theodore A. Roth <troth@openavr.org>
2438
2439 * avr-tdep.c (avr_breakpoint_from_pc): New function.
2440 (avr_gdbarch_init): Set breakpoint_from_pc method.
2441
2442 2003-05-15 Andrew Cagney <cagney@redhat.com>
2443
2444 * regcache.c (build_regcache): Set deprecated_register_valid
2445 directly.
2446 (deprecated_grub_regcache_for_register_valid): Delete function.
2447 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
2448 declaration.
2449
2450 2003-05-15 David Carlton <carlton@bactrian.org>
2451
2452 Committed by Elena Zannoni <ezannoni@redhat.com>
2453 * symtab.c (lookup_symbol_aux): Delete calls to
2454 lookup_symbol_aux_minsyms.
2455 (lookup_symbol_aux_minsyms): Comment out function and
2456 prototype. Delete lookup by mangled name.
2457
2458 2003-05-14 Kevin Buettner <kevinb@redhat.com>
2459
2460 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
2461 correctly indicate an empty stack and ``stack_allocated'' to the
2462 indicate the number of elements initially allocated.
2463 (dwarf_expr_grow_stack): Simplify method for computing new
2464 stack size. Don't loop infinitely if ``stack_len'' is zero.
2465 (execute_stack_op): Move ``ctx->in_reg'' initialization
2466 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
2467 be used in conjuction with DW_OP_piece. Revise error message
2468 accordingly.
2469
2470 2003-05-14 Theodore A. Roth <troth@openavr.org>
2471
2472 * MAINTAINERS: Update my email address.
2473 * avr-tdep.c: Ditto.
2474
2475 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
2476
2477 * symtab.h (enum domain_enum): Rename from namespace_enum.
2478 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
2479 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
2480 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
2481 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
2482 TYPES_NAMESPACE, METHODS_NAMESPACE.
2483 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
2484 (struct symbol, struct partial_symbol): Rename field
2485 'namespace_enum namespace' to 'domain_enum domain'.
2486 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
2487 Delete old define kludge for namespace.
2488
2489 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
2490 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
2491 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
2492 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
2493 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
2494 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
2495 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
2496 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
2497 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
2498 occurrences of the above.
2499
2500 2003-05-14 Ian Lance Taylor <ian@airs.com>
2501
2502 * Makefile.in (install-only): Use $(SHELL) when running
2503 mkinstalldirs.
2504
2505 2003-05-13 Ian Lance Taylor <ian@airs.com>
2506
2507 * MAINTAINERS (write after approval): Add myself.
2508
2509 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
2510 second and third arguments.
2511 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2512 * ser-unix.c (_initialize_ser_hardwire): Likewise.
2513
2514 2003-05-13 Andrew Cagney <cagney@redhat.com>
2515
2516 * defs.h (store_address): Delete declaration.
2517 findvar.c (store_address): Delete function.
2518 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
2519 store_unsigned_integer.
2520 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
2521 * v850-tdep.c (v850_push_arguments): Ditto.
2522 * sparc-tdep.c (sparc_get_saved_register): Ditto.
2523 * sh-tdep.c (sh64_get_saved_register): Ditto.
2524 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
2525 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
2526 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
2527 (mips_get_saved_register): Ditto.
2528 * ia64-tdep.c (ia64_get_saved_register): Ditto.
2529 (find_func_descr, ia64_push_arguments): Ditto.
2530 * i386-tdep.c (i386_push_arguments): Ditto.
2531 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2532 * frv-tdep.c (frv_push_arguments): Ditto.
2533 * frame.c (legacy_saved_regs_prev_register): Ditto.
2534 (deprecated_generic_get_saved_register): Ditto.
2535 * findvar.c (unsigned_address_to_pointer): Ditto.
2536 * dwarf2read.c (dwarf2_const_value): Ditto.
2537 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2538 * alpha-tdep.c (alpha_push_arguments): Ditto.
2539
2540 2003-05-12 J. Brobecker <brobecker@gnat.com>
2541
2542 * NEWS: Mention that the hppa-hpux port has been partially
2543 multiarched (32bit ABIT only, so far).
2544
2545 2003-05-11 Andrew Cagney <cagney@redhat.com>
2546
2547 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
2548 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
2549 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
2550 sim/testsuite/sim/arm/misaligned2.ms, and
2551 sim/testsuite/sim/arm/misaligned3.ms.
2552 * disasm.h (struct ui_file): Add opaque struct declaration.
2553 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
2554 * frame.h (struct ui_file): Ditto.
2555
2556 2003-05-11 Mark Kettenis <kettenis@gnu.org>
2557
2558 * value.h: Pretty print.
2559
2560 2003-05-10 Mark Kettenis <kettenis@gnu.org>
2561
2562 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
2563
2564 2003-05-08 Andrew Cagney <cagney@redhat.com>
2565
2566 * regcache.h (max_register_size): Delete declaration.
2567 * regcache.c (max_register_size): Delete function.
2568 (struct regcache_descr): Delete field "max_register_size".
2569 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
2570 registers fit in MAX_REGISTER_SIZE.
2571 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
2572 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
2573 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
2574 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
2575 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
2576 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
2577 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
2578 * dve3900-rom.c, hppa-tdep.c: Ditto.
2579
2580 2003-05-08 David Carlton <carlton@math.stanford.edu>
2581
2582 * valops.c (push_word): Fix typo.
2583
2584 2003-05-08 Andrew Cagney <cagney@redhat.com>
2585
2586 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
2587 * gdbarch.h: Re-generate.
2588 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
2589 (legacy_max_register_raw_size): Delete declaration.
2590 * regcache.c (legacy_max_register_raw_size): Delete function.
2591 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
2592 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
2593 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
2594 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
2595 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
2596 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
2597 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
2598 * findvar.c, dwarf2cfi.c: Ditto.
2599
2600 2003-05-08 Andrew Cagney <cagney@redhat.com>
2601
2602 * mips-tdep.c (read_signed_register): New function, moved to here
2603 from "regcache.c".
2604 (read_signed_register_pid): Ditto.
2605 * regcache.c (read_signed_register_pid): Delete function, moved to
2606 "mips-tdep.c".
2607 (read_signed_register): Ditto.
2608 * regcache.h (read_signed_register): Delete declaration.
2609 (read_signed_register_pid): Delete declaration.
2610
2611 2003-05-08 Andrew Cagney <cagney@redhat.com>
2612
2613 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
2614 * gdbarch.h: Re-generate.
2615 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
2616 (legacy_max_register_virtual_size): Delete declaration.
2617 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
2618 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2619 * tracepoint.c (memrange_sortmerge): Ditto.
2620 * sparc-tdep.c (sparc_print_registers): Ditto.
2621 * regcache.c (legacy_max_register_virtual_size): Delete function.
2622
2623 2002-05-08 J. Brobecker <brobecker@gnat.com>
2624
2625 * fork-child.c (escape_bang_in_quoted_argument): New function.
2626 (fork_inferior): Escape '!' characters in quoted arguments
2627 only when needed.
2628
2629 2003-05-08 J. Brobecker <brobecker@gnat.com>
2630
2631 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
2632 the language of the CU is not currently supported by GDB.
2633
2634 2003-05-08 J. Brobecker <brobecker@gnat.com>
2635
2636 * defs.h (language): Add language_minimal enum value.
2637 * c-lang.c (minimal_language_defn): New language definition.
2638 (_initialize_c_language): Add the new minimal language to the list
2639 of languages known to GDB.
2640
2641 2003-05-08 Kevin Buettner <kevinb@redhat.com>
2642
2643 * frame.c (get_frame_type): Don't attempt to lazily initialize
2644 frame's unwinder for legacy frames.
2645
2646 2003-05-07 Andrew Cagney <cagney@redhat.com>
2647
2648 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
2649 and "regcache" parameters.
2650 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
2651
2652 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
2653
2654 * dwarf2read.c (dwarf_decode_lines): Only use output of
2655 check_cu_functions() when calling record_line(). Do not update
2656 the current address.
2657
2658 2003-05-07 Andrew Cagney <cagney@redhat.com>
2659
2660 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
2661 code.
2662
2663 2003-05-07 Jim Blandy <jimb@redhat.com>
2664
2665 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
2666 'maint info symtabs' and 'maint info psymtabs'.
2667 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
2668 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
2669 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
2670 Declarations updated.
2671 * maint.c (maintenance_list_command): Delete.
2672 (_initialize_maint_cmds): Update calls to add_cmd.
2673 * gdbcmd.h (maintenancelistlist): Delete declaration.
2674 * cli/cli-cmds.c (maintenancelistlist): Delete.
2675 (init_cmd_lists): Don't initialize it.
2676 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
2677
2678 2003-05-07 Andrew Cagney <cagney@redhat.com>
2679
2680 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
2681 "regcache".
2682 (d10v_print_registers_info): Update.
2683 (d10v_dmap_register, d10v_imap_register): Delete functions.
2684 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
2685 and "imap_register".
2686 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
2687 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
2688 * arch-utils.c (generic_remote_translate_xfer_address): Add
2689 "regcache" and "gdbarch" parameters.
2690 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
2691 parameter. Change class to multi-arch.
2692 * gdbarch.h, gdbarch.c: Re-generate.
2693 * remote.c (remote_xfer_memory): Use
2694 gdbarch_remote_translate_xfer_address.
2695
2696 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
2697
2698 * infrun.c (prev_pc): Move declaration ahead of proceed().
2699 (proceed): Refresh prev_pc value before resuming.
2700 (stop_stepping): Remove code to refresh prev_pc.
2701
2702 2003-05-06 Kris Warkentin <kewarken@qnx.com>
2703
2704 * nto-tdep.c: Removed stray comment.
2705
2706 2003-05-06 Kris Warkentin <kewarken@qnx.com>
2707
2708 * i386-nto-tdep.c: Fix old K&R function definitions.
2709 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
2710 Also change add_show_from_set() call to add_setshow_cmd().
2711 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
2712
2713 2003-05-05 Andrew Cagney <cagney@redhat.com>
2714
2715 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
2716 (fprint_dummy_frames): New function.
2717 (maintenance_print_dummy_frames): New function.
2718 (_initialize_dummy_frame): Add command "maint print dummy-frames".
2719 * frame.c (fprint_frame_id): Make global.
2720 * frame.h (fprint_frame_id): Declare.
2721 * Makefile.in (dummy-frame.o): Update dependencies.
2722
2723 2003-05-05 Andrew Cagney <cagney@redhat.com>
2724
2725 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
2726 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
2727 SIZEOF_CALL_DUMMY_WORDS.
2728 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
2729 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
2730 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
2731 CALL_DUMMY_BREAKPOINT_OFFSET.
2732 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
2733 CALL_DUMMY_START_OFFSET.
2734 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
2735 * gdbarch.h, gdbarch.c: Re-generate.
2736 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
2737 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
2738 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
2739 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
2740 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
2741 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
2742 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2743 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
2744 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
2745 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
2746 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
2747 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
2748 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
2749 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
2750 * config/sparc/tm-sparc.h: Update.
2751
2752 2003-05-05 Kris Warkentin <kewarken@qnx.com>
2753
2754 * configure.tgt: Add i[3456]86-*-nto*.
2755 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
2756 * nto-tdep.c: New file. Neutrino target support routines.
2757 * nto-tdep.h: New file. Neutrino target header.
2758 * config/tm-qnxnto.h: New file.
2759 * config/i386/i386nto.mt: New file.
2760 * config/i386/tm-i386nto.h: New file.
2761
2762 2003-05-04 Andrew Cagney <cagney@redhat.com>
2763
2764 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
2765 (load_infrun_state): Ditto.
2766 (struct thread_info): Drop "prev_func_name" field.
2767 * thread.c (load_infrun_state): Update.
2768 (save_infrun_state): Update.
2769 * infrun.c (prev_func_name): Delete variable.
2770 (init_wait_for_inferior): Do not clear prev_func_name.
2771 (stop_stepping, keep_going, context_switch): Do not swap
2772 prev_func_name.
2773 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
2774 instead of PC_IN_SIGTRAMP.
2775
2776 2003-05-04 Andrew Cagney <cagney@redhat.com>
2777
2778 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2779 REGISTER_BYTE with register_offset_hack.
2780 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
2781 that REGISTER_BYTE is consistent with the regcache.
2782 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
2783 * gdbarch.h, gdbarch.c: Regenerate.
2784
2785 2003-05-04 Mark Kettenis <kettenis@gnu.org>
2786
2787 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
2788 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
2789
2790 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
2791
2792 2003-05-03 J. Brobecker <brobecker@gnat.com>
2793
2794 From Thierry Schneider <tpschneider1@yahoo.com>
2795 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
2796 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
2797 (mi-cmd-symbol.o): Add rule.
2798
2799 2003-05-03 Andrew Cagney <cagney@redhat.com>
2800
2801 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
2802 comments noteing that it replaces the old FIX_CALL_DUMMY code.
2803 * gdbarch.h, gdbarch.c: Re-generate.
2804 * d10v-tdep.c (d10v_push_dummy_code): New function.
2805 (d10v_gdbarch_init): Set push_dummy_code.
2806 * infcall.c (legacy_push_dummy_code): New function.
2807 (generic_push_dummy_code): New function.
2808 (push_dummy_code): New function.
2809 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
2810 instead of dummy_addr, to push_dummy_call. Move call to
2811 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
2812 switch.
2813 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
2814
2815 2003-05-03 Andrew Cagney <cagney@redhat.com>
2816
2817 * disasm.h (print_insn): Declare.
2818 * disasm.c (init_gdb_disassemble_info): New function.
2819 (gdb_disassembly): Call init_gdb_disassemble_info.
2820 (gdb_print_insn): New function.
2821 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
2822 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
2823 * mcore-tdep.c: Include "disasm.h"
2824 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
2825 * d10v-tdep.c: Include "disasm.h".
2826 (display_trace): Call gdb_print_insn, instead of print_insn.
2827 (print_insn): Delete function.
2828 * printcmd.c: Include "disasm.h".
2829 (print_insn): Delete function.
2830 (print_formatted): Call gdb_print_insn, instead of print_insn.
2831 * Makefile.in (printcmd.o): Update dependencies.
2832 (mcore-tdep.o, d10v-tdep.o): Ditto.
2833
2834 2003-05-02 Andrew Cagney <cagney@redhat.com>
2835
2836 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
2837 PC_REGNUM, re-indent.
2838 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
2839 PC_REGNUM isn't set.
2840
2841 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
2842 * gdbarch.h, gdbarch.c: Re-generate.
2843 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
2844 register_virtual_size, pc_regnum, or register_bytes.
2845 (D10V_PC_REGNUM): Rename _PC_REGNUM.
2846 (d10v_register_type): Use D10V_PC_REGNUM.
2847 (d10v_print_registers_info, d10v_read_pc): Ditto.
2848 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
2849 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
2850
2851 2003-05-02 David Carlton <carlton@bactrian.org>
2852
2853 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
2854 the name with mstrsave.
2855
2856 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
2857
2858 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
2859 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
2860 (host_charset_name, target_charset_name): New vars for use by
2861 set/show commands.
2862 (host_charset_enum, target_charset_enum): New enums for set/show
2863 commands.
2864 (set_charset_sfunc, set_host_charset_sfunc,
2865 set_target_charset_sfunc): New functions.
2866 (set_host_charset, set_target_charset): Make static.
2867 (list_charsets, set_host_charset_command,
2868 set_target_charset_command): Delete functions.
2869 (show_charset_command): Rewrite as....
2870 (show_charset): Hook this up with the set/show command mechanism.
2871 (_initialize_charset): Change names of charsets to match the
2872 set/show enums. Use host_charset_name and target_charset_name.
2873 Use set/show mechanism for charset, host-charset, target-charset
2874 commands. Do not make 'show host-charset' and 'show
2875 target-charset' be aliases of 'show charset'.
2876
2877 * charset.h (set_host_charset, set_target_charset): Don't export,
2878 they are not used outside the file.
2879
2880 2003-05-01 Andrew Cagney <cagney@redhat.com>
2881
2882 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
2883 (gdb_disassembly): Make "di" non static, always initialize and
2884 cleanup. Always use dis_asm_read_memory.
2885 (gdb_dis_asm_read_memory): Delete function.
2886
2887 2003-05-01 Andrew Cagney <cagney@redhat.com>
2888
2889 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
2890 (d10v_gdbarch_init): Set frame_align instead of stack_align.
2891
2892 2003-04-30 Andrew Cagney <cagney@redhat.com>
2893
2894 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
2895 "tm_print_insn_info".
2896 (TARGET_PRINT_INSN_INFO): Delete macro.
2897 (dis_asm_read_memory): Delete function declaration.
2898 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2899 (tm_print_insn_info): Delete variable definition.
2900 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
2901 * gdbarch.h, gdbarch.c: Re-generate.
2902 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
2903 "deprecated_tm_print_insn_info".
2904 * mcore-tdep.c (mcore_dump_insn): Ditto.
2905 * mips-tdep.c (mips_gdbarch_init): Ditto.
2906 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
2907 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
2908 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
2909 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
2910 instead of TARGET_PRINT_INSN_INFO, add comment.
2911 * s390-tdep.c (s390_get_frame_info): Instead of
2912 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
2913 (s390_check_function_end, s390_is_sigreturn): Ditto.
2914 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
2915 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2916 * disasm.c: Include "gdbcore.h".
2917 (_initialize_disasm): New function, initialize
2918 "deprecated_tm_print_insn_info".
2919 (deprecated_tm_print_insn_info): New variable.
2920 (dis_asm_read_memory): Moved from "corefile.c", made static.
2921 (dis_asm_print_address, dis_asm_memory_error): Ditto.
2922 * Makefile.in (disasm.o): Update dependencies.
2923
2924 2003-04-30 Andrew Cagney <cagney@redhat.com>
2925
2926 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
2927
2928 2003-04-29 Adam Fedor <fedor@gnu.org>
2929
2930 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
2931 * infcall.c (find_function_addr): Make non-static.
2932 * infcall.h (find_function_addr): Declare.
2933 * Makefile.in (eval.o): Update dependencies.
2934
2935 2003-04-28 Adam Fedor <fedor@gnu.org>
2936
2937 * symtab.c (symbol_find_demangled_name): Check for and demangle
2938 ObjC symbols.
2939 (symbol_init_demangled_name): Init for language_objc as well.
2940
2941 2003-04-28 Andrew Cagney <cagney@redhat.com>
2942
2943 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
2944 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
2945 * gdbarch.h, gdbarch.c: Re-generate.
2946 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
2947 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
2948 * inferior.h (deprecated_read_fp): Rename read_fp.
2949 (generic_target_read_fp): Delete declaration.
2950 * regcache.c (generic_target_read_fp): Delete function.
2951 (deprecated_read_fp): Replace read_fp, use
2952 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
2953 * d10v-tdep.c (d10v_read_fp): Delete function.
2954 (d10v_gdbarch_init): Do not set deprecated_read_fp.
2955
2956 * sparc-tdep.c (sparc_gdbarch_init): Do not set
2957 deprecated_target_read_fp to generic_target_read_fp.
2958 * sh-tdep.c (sh_gdbarch_init): Ditto.
2959 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2961 * frv-tdep.c (frv_gdbarch_init): Ditto.
2962
2963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
2964 deprecated_fp_regnum.
2965 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2966 * vax-tdep.c (vax_gdbarch_init): Ditto.
2967 * v850-tdep.c (v850_gdbarch_init): Ditto.
2968 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2969 * sh-tdep.c (sh_gdbarch_init): Ditto.
2970 * s390-tdep.c (s390_gdbarch_init): Ditto.
2971 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2972 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2973 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2974 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2976 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2977 * i386-tdep.c (i386_gdbarch_init): Ditto.
2978 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2979 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2980 * frv-tdep.c (frv_gdbarch_init): Ditto.
2981 * cris-tdep.c (cris_gdbarch_init): Ditto.
2982 * avr-tdep.c (avr_gdbarch_init): Ditto.
2983 * arm-tdep.c (arm_gdbarch_init): Ditto.
2984 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2985
2986 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
2987 * v850-tdep.c (v850_gdbarch_init): Ditto.
2988 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2989 * sh-tdep.c (sh_gdbarch_init): Ditto.
2990 * s390-tdep.c (s390_gdbarch_init): Ditto.
2991 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2992 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2993 * mips-tdep.c (mips_gdbarch_init): Ditto.
2994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2995 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2996 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2997 * frv-tdep.c (frv_gdbarch_init): Ditto.
2998 * avr-tdep.c (avr_gdbarch_init): Ditto.
2999 * arm-tdep.c (arm_gdbarch_init): Ditto.
3000
3001 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
3002 DEPRECATED_FP_REGNUM.
3003 (vax_push_dummy_frame, vax_pop_frame): Ditto.
3004 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
3005 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3006 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
3007 (sparc32_register_virtual_type): Ditto.
3008 * sh-tdep.c (sh64_frame_chain): Ditto.
3009 (sh64_get_saved_register, sh64_pop_frame): Ditto.
3010 (sh_nofp_frame_init_saved_regs): Ditto.
3011 (sh64_nofp_frame_init_saved_regs): Ditto.
3012 (sh_fp_frame_init_saved_regs): Ditto.
3013 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3014 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3015 * procfs.c (procfs_fetch_registers): Ditto.
3016 (procfs_store_registers): Ditto.
3017 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
3018 (store_inferior_registers, fetch_core_registers): Ditto.
3019 (fetch_kcore_registers, clear_regs): Ditto.
3020 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
3021 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
3022 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
3023 * nlm/i386.c (do_status): Ditto.
3024 * mipsv4-nat.c (supply_gregset): Ditto.
3025 * mips-tdep.c: Ditto for comments.
3026 * mips-nat.c (fetch_inferior_registers): Ditto.
3027 (store_inferior_registers, fetch_core_registers): Ditto.
3028 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
3029 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
3030 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
3031 (i386_do_pop_frame, i386_register_type): Ditto.
3032 * hppa-tdep.c (hppa_frame_chain): Ditto.
3033 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
3034 (hppa_pop_frame, hppa_read_fp): Ditto.
3035 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
3036 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
3037 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
3038 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
3039 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
3040 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
3041 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
3042 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
3043 * blockframe.c: Ditto for comments.
3044 * arch-utils.h: Ditto for comments.
3045 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
3046 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
3047 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
3048 * alpha-tdep.h: Ditto for comments.
3049 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
3050 (alpha_cannot_store_register): Ditto.
3051 (alpha_push_dummy_frame): Ditto.
3052 * alpha-nat.c (supply_gregset): Ditto.
3053
3054 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
3055 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
3056 * config/sparc/tm-sparc.h: Update comment.
3057
3058 * hppa-tdep.c (hppa_init_extra_frame_info): Use
3059 deprecated_read_fp instead of TARGET_READ_FP.
3060 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
3061 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
3062 * sparc-tdep.c (sparc_init_extra_frame_info): Use
3063 deprecated_read_fp instead of read_fp.
3064 * s390-tdep.c (s390_push_arguments): Ditto.
3065 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3066 * frame.h: Ditto in comments.
3067 * frame.c (legacy_get_prev_frame): Ditto.
3068 * dummy-frame.c (dummy_frame_this_id): Ditto.
3069 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3070
3071 2003-04-28 Andrew Cagney <cagney@redhat.com>
3072
3073 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
3074 * gdbarch.h, gdbarch.c: Re-generate.
3075 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
3076 * vax-tdep.c (_initialize_vax_tdep): Update.
3077 * v850-tdep.c (_initialize_v850_tdep): Update.
3078 * sparc-tdep.c (_initialize_sparc_tdep): Update.
3079 * s390-tdep.c (_initialize_s390_tdep): Update.
3080 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
3081 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
3082 * mips-tdep.c (_initialize_mips_tdep): Update.
3083 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3084 * m68k-tdep.c (_initialize_m68k_tdep): Update.
3085 * ia64-tdep.c (_initialize_ia64_tdep): Update.
3086 * hppa-tdep.c (_initialize_hppa_tdep): Update.
3087 * h8300-tdep.c (_initialize_h8300_tdep): Update.
3088 * frv-tdep.c (_initialize_frv_tdep): Update.
3089 * cris-tdep.c (cris_delayed_get_disassembler): Update.
3090 (_initialize_cris_tdep): Update.
3091 * arch-utils.c (legacy_print_insn): Update.
3092 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3093
3094 2003-04-26 Adam Fedor <fedor@gnu.org>
3095
3096 * linespec.c (decode_objc): New function to decode ObjC calls
3097 (decode_line_1): Check for ObjC calls (using decode_objc)
3098 * Makefile (linespec.o): Update dependencies.
3099
3100 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
3101
3102 * breakpoint.h (struct breakpoint_ops): New.
3103 (struct breakpoint): Add ops member.
3104
3105 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
3106 (mention): Use new breakpoint ops member.
3107 (set_raw_breakpoint): Initialize ops field to NULL.
3108 (print_exception_catchpoint, print_one_exception_catchpoint)
3109 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
3110 (gnu_v3_exception_catchpoint_ops): New.
3111 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
3112
3113 2003-04-25 Adam Fedor <fedor@gnu.org>
3114
3115 * Makefile.in (COMMON_OBS): Add objc-lang.o
3116
3117 2003-04-25 Andrew Cagney <cagney@redhat.com>
3118
3119 * d10v-tdep.c (print_insn): Delete function.
3120 (display_trace): Use TARGET_PRINT_INSN.
3121 (_initialize_d10v_tdep): Do not set tm_print_insn.
3122 (d10v_gdbarch_init): Set print_insn.
3123
3124 2003-04-25 Andrew Cagney <cagney@redhat.com>
3125
3126 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
3127 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
3128 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
3129 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
3130 (nr_dmap_regs, a0_regnum): ... new functions.
3131 (d10v_print_registers_info): Use a0_regnum, use register_size.
3132 (d10v_register_byte): Delete function.
3133 (d10v_register_raw_size): Delete function.
3134 (d10v_register_type): Use a0_regnum.
3135 (d10v_print_registers_info): Use a0_regnum.
3136 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
3137 (d10v_gdbarch_init): Do not set register_byte or
3138 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
3139 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
3140 extract_address.
3141 (trace_command): Use XCALLOC.
3142 (print_insn): Delete reference to tm_print_insn.
3143 (saved_regs_unwinder): Use store_unsigned_integer instead of
3144 store_address.
3145 * frame.h (FRAME_OBSTACK_CALLOC): Define
3146
3147 2003-04-25 David Carlton <carlton@bactrian.org>
3148
3149 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
3150
3151 2003-04-24 Adam Fedor <fedor@gnu.org>
3152
3153 * objc-lang.c: Include "valprint.h"
3154 * Makefile.in (objc-lang.o): Update dependencies.
3155
3156 2003-04-24 Adam Fedor <fedor@gnu.org>
3157
3158 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
3159 architecture dependant compilation and mark as unimplemented
3160 (until they get put in the gdbarch vector).
3161
3162 2003-04-23 David Carlton <carlton@bactrian.org>
3163
3164 * cp-support.c (cp_find_first_component): Accept 'operator' in
3165 more locations.
3166
3167 2003-04-23 Andrew Cagney <cagney@redhat.com>
3168
3169 * infcall.c (call_function_by_hand): Eliminate redundant
3170 indentation. Move "saved_async" and "old_cleanups" to where they
3171 are needed.
3172
3173 2003-04-23 Andrew Cagney <cagney@redhat.com>
3174
3175 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
3176 and "buffer". Move the "name" code to where it is needed.
3177
3178 2003-04-23 Andrew Cagney <cagney@redhat.com>
3179
3180 * infcall.c (call_function_by_hand): Move variables "start_sp",
3181 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
3182 code to ON_STACK switch branch.
3183
3184 2003-04-23 Andrew Cagney <cagney@redhat.com>
3185
3186 * infcall.c (call_function_by_hand): Make declaration of "i",
3187 "sal", "bpt" and "old_sp" more local to their use. Delete #if
3188 lint.
3189
3190 2003-04-23 Andrew Cagney <cagney@redhat.com>
3191
3192 * infcall.c (call_function_by_hand): Delete variable
3193 "n_method_args". Localize "param_type"'s declaration to the loop
3194 that it is used. Reinstate code assigning to said variable -
3195 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
3196 Rationalize code using "param_type".
3197
3198 2003-04-22 Andrew Cagney <cagney@redhat.com>
3199
3200 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
3201 compute the breakpoint address. Only call FIX_CALL_DUMMY when
3202 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
3203 to DEPRECATED_PUSH_RETURN_ADDRESS.
3204
3205 2003-04-22 Kevin Buettner <kevinb@redhat.com>
3206
3207 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
3208 on the DWARF2 register number prior to fetching a register.
3209
3210 2003-04-22 J. Brobecker <brobecker@gnat.com>
3211
3212 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
3213 Update all the tests using SOFT_FLOAT considering the fact that
3214 this macro was always set to 0.
3215 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
3216 considering the fact that this macro was always set to 0.
3217 * hppa-tdep.h (hppa_store_return_value): Likewise.
3218 (hppa_extract_return_value): Likewise.
3219
3220 2003-04-22 J. Brobecker <brobecker@gnat.com>
3221
3222 * config/pa/tm-hppa.h: Remove obsolete code, was used by
3223 the hppa-pro target only.
3224
3225 2003-04-21 J. Brobecker <brobecker@gnat.com>
3226
3227 Ongoing multi-arch conversion effort for HP/UX:
3228 * config/pa/tm-hppa.h: Move all macro that are no longer
3229 defined now that GDB_MULTI_ARCH is now set to 1 from here...
3230 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
3231
3232 2003-04-21 J. Brobecker <brobecker@gnat.com>
3233
3234 * config/pa/tm-hppa.h: Obsolete a section that was only used
3235 for hppa-pro.
3236
3237 2003-04-21 J. Brobecker <brobecker@gnat.com>
3238
3239 Ongoing multi-arch conversion for HP/UX.
3240 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
3241 if already defined (allows hppa64 to stay non-multiarched for now).
3242 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
3243
3244 2003-04-21 Andrew Cagney <cagney@redhat.com>
3245
3246 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
3247
3248 2003-04-21 Andrew Cagney <cagney@redhat.com>
3249
3250 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
3251 "i386_num_mmx_regs".
3252
3253 2003-04-21 Andrew Cagney <cagney@redhat.com>
3254
3255 * infcall.c: New file.
3256 * infcall.h: New file.
3257 * valarith.c: Include "infcall.h".
3258 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
3259 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
3260 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
3261 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
3262 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
3263 (SFILES): Add "infcall.c"
3264 (COMMON_OBS): Add "infcall.o".
3265 (infcall.o): Specify dependencies.
3266 * value.h (call_function_by_hand): Delete declaration.
3267 * inferior.h (run_stack_dummy): Delete declaration.
3268 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
3269 (run_stack_dummy): Move to "infcall.c", merged into
3270 call_function_by_hand.
3271 * valops.c (call_function_by_hand): Moved to "infcall.c".
3272 (find_function_addr, value_arg_coerce): Ditto.
3273 (unwindonsignal_p, coerce_float_to_double): Ditto.
3274 (_initialize_valops): Move "set/show coerce-float-to-double", and
3275 "set/show unwindonsignal" commands to "infcall.c".
3276 * v850-tdep.c, target.h: Update comments.
3277 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
3278 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
3279 (sh64_init_extra_frame_info): Update comments.
3280 * mn10300-tdep.c: Update comments.
3281 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
3282 * config/sparc/tm-sparc.h: Update comments.
3283 * breakpoint.h: Update comments.
3284 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
3285 * arm-tdep.c: Update comment.
3286
3287 2003-04-19 Mark Kettenis <kettenis@gnu.org>
3288
3289 * i386-tdep.c (i386_num_register_names): New variable.
3290 (i386_num_mmx_regs): Renamed from mmx_num_regs.
3291 (MM0_REGNUM): Remove redundant parentheses in define.
3292 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
3293 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
3294 i386_mxcsr_regnum_p): Remove redundant parentheses.
3295 (i386_register_name): Use i386_num_register_names.
3296
3297 * i386-tdep.c (i386_extract_return_value,
3298 i386_store_return_value): Correct check for availability of
3299 floating-point registers.
3300
3301 * i386-tdep.c (i386_frame_num_args): Remove function.
3302 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
3303
3304 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
3305 mmx_regnum_to_fp_regnum. Adjust all callers.
3306
3307 * i386-tdep.c (i386_get_longjmp_target): Use
3308 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
3309 and TARGET_CHAR_BIT. Use extract_typed_address instead of
3310 extract_address.
3311
3312 2003-04-19 Mark Kettenis <kettenis@gnu.org>
3313
3314 * core-regset.c: Update comments to reflect reality. Re-order
3315 includes.
3316 (fetch_core_registers): Use switch instead of if. Remove
3317 redundant prototype.
3318
3319 2003-04-18 Jim Blandy <jimb@redhat.com>
3320
3321 * s390-tdep.c (s390_frame_align): New function.
3322 (s390_gdbarch_init): Register it with the gdbarch object.
3323
3324 2003-04-17 Richard Henderson <rth@redhat.com>
3325
3326 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
3327
3328 2003-04-17 Michael Snyder <msnyder@redhat.com>
3329 Karen Bennet <bennet@redhat.com>
3330
3331 Committed by Elena Zannoni <ezannoni@redhat.com>
3332 * gdb_gcore.sh: New script to create a core dump of a process.
3333
3334 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
3335
3336 * values.c (value_being_returned): Don't fetch the return
3337 value if the return type is void.
3338
3339 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
3340
3341 * thread-db.c: Reindented.
3342
3343 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
3344
3345 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
3346 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
3347 as types.
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373 2003-04-16 Kevin Buettner <kevinb@redhat.com>
3374
3375 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
3376 the size of ``long double'' to 16, instead of 8.
3377
3378 2003-04-16 Mark Kettenis <kettenis@gnu.org>
3379
3380 * i386-linux-nat.c: Add some whitespace to make things more
3381 readable.
3382 (fetch_register, store_register, fetch_inferior_registers,
3383 store_inferior_registers): Get rid of assignment in if-statement.
3384 (store_register): Fix typo in error message.
3385
3386 2003-04-16 Andrew Cagney <cagney@redhat.com>
3387
3388 * utils.c (xmmalloc): Always allocate something, matches
3389 libiberty/xmalloc's semantics.
3390 (xmrealloc, xmcalloc): Ditto.
3391
3392 2003-04-16 Andrew Cagney <cagney@redhat.com>
3393
3394 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
3395 update comments.
3396 (get_frame_type): Initialize unwind and type when needed.
3397 (get_frame_id, frame_register_unwind): Ditto.
3398
3399 2003-04-16 Andrew Cagney <cagney@redhat.com>
3400
3401 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
3402 obsolete.
3403 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
3404 * sparcl-stub.c: Obsolete file.
3405 * config/sparc/tm-sparclet.h: Obsolete file.
3406 * sparclet-stub.c: Obsolete file.
3407 * sparclet-rom.c: Obsolete file.
3408 * sparcl-tdep.c: Obsolete file.
3409 * config/sparc/tm-sparclite.h: Obsolete file.
3410 * config/sparc/sparclite.mt: Obsolete file.
3411 * config/sparc/sparclet.mt: Obsolete file.
3412 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
3413 sparc86x-*-* obsolete.
3414
3415 2003-04-15 David Carlton <carlton@math.stanford.edu>
3416
3417 * Makefile.in (SFILES): Add cp-namespace.c.
3418 (COMMON_OBS): Add cp-namespace.o.
3419 (block.o): Depend on gdb_obstack_h and cp_support_h.
3420 (buildsym.o): Depend on cp_support_h.
3421 (cp-namespace.o): New.
3422 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
3423 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
3424 (dwarf2read.o): Depend on cp_support_h.
3425 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
3426 * dwarf2read.c (process_die): Set processing_has_namespace_info,
3427 processing_current_namespace.
3428 (read_namespace): Update processing_current_namespace; check for
3429 anonymous namespaces.
3430 (dwarf2_name): New function.
3431 (dwarf2_extension): Ditto.
3432 * cp-support.h: Update copyright, contributors.
3433 Add inclusion guards.
3434 Add opaque declaration for structs obstack, block, symbol.
3435 (struct using_direct): New struct.
3436 Add declarations for cp_find_first_component,
3437 cp_entire_prefix_len, processing_has_namespace_info,
3438 processing_current_namespace, cp_is_anonymous,
3439 cp_add_using_directive, cp_initialize_namespace,
3440 cp_finalize_namespace, cp_set_block_scope,
3441 cp_scan_for_anonymous_namespaces.
3442 * cp-namespace.c: New file.
3443 * cp-support.c: Update copyright.
3444 Include ctype.h, gdb_assert.h, gdbcmd.h.
3445 New variable maint_cplus_cmd_list.
3446 (cp_find_first_component): New function.
3447 (cp_entire_prefix_len, maint_cplus_command)
3448 (first_component_command, _initialize_cp_support): Ditto.
3449 * buildsym.c: Include cp-support.h.
3450 New variable using_list.
3451 (add_symbol_to_list): Check for anonymous namespaces.
3452 (finish_block): Set block's scope.
3453 (start_symtab): Initialize C++ namespace support.
3454 (end_symtab): Finalize C++ namespace support.
3455 * block.h: Add opaque declarations for structs
3456 block_namespace_info, using_direct, and obstack.
3457 Add declarations for block_set_scope and block_set_using.
3458 (struct block): Add 'language_specific' member.
3459 (BLOCK_NAMESPACE): New macro.
3460 * block.c: Include gdb_obstack.h and cp-support.h.
3461 (struct block_namespace_info): New struct.
3462 (block_set_scope): New function.
3463 (block_set_using, block_initialize_namespace): Ditto.
3464
3465 2003-04-14 Kevin Buettner <kevinb@redhat.com>
3466
3467 * solib-svr4.c (svr4_have_link_map_offsets): New function.
3468 (locate_base): Return early if there aren't any link map offsets.
3469 (svr4_solib_create_inferior_hook): Warn if shared library support
3470 is unavailable.
3471
3472 2003-04-14 David Carlton <carlton@math.stanford.edu>
3473
3474 * symtab.c (symbol_set_names): Add prefix when storing Java names
3475 in hash table. Fix for PR java/1039.
3476
3477 2003-04-14 David Carlton <carlton@math.stanford.edu>
3478
3479 * symtab.c (symbol_set_names): Rename 'name' arg to
3480 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
3481 * symtab.h: Change 'name' argument in declaration of
3482 symbol_set_names to 'linkage_name'.
3483 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
3484
3485 2003-04-14 Andrew Cagney <cagney@redhat.com>
3486
3487 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
3488 return the fully sign-extended register value.
3489 (get_frame_pointer): Ditto.
3490 (mips_pop_frame): Initialize "proc_desc" after checking for a
3491 dummy frame.
3492
3493 2003-04-14 Andrew Cagney <cagney@redhat.com>
3494
3495 * mips-tdep.c (mips_push_dummy_frame): Delete function.
3496 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
3497 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
3498 (mips_push_register): Delete function.
3499 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
3500 PUSH_FP_REGNUM.
3501
3502 2003-04-14 Jim Blandy <jimb@redhat.com>
3503
3504 * symmisc.c: #include "gdb_regex.h".
3505 (maintenance_list_symtabs, maintenance_list_psymtabs): New
3506 functions.
3507 * maint.c (maintenance_list_command): New function.
3508 (_initialize_maint_cmds): Register the above as commands.
3509 * symtab.h (maintenance_list_symtabs,
3510 maintenance_list_psymtabs): New declarations.
3511 * cli/cli-cmds.c (maintenancelistlist): New variable.
3512 (init_cmd_lists): Initialize it.
3513 * cli/cli-cmds.h (maintenancelistlist): New declaration.
3514 * gdbcmd.h (maintenancelistlist): New declaration.
3515 * Makefile.in (symmisc.o): Update dependencies.
3516
3517 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
3518
3519 * s390-nat.c: Include asm/types.h for addr_t.
3520
3521 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
3522
3523 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
3524 actually incoming type.
3525
3526 2003-04-13 Andrew Cagney <cagney@redhat.com>
3527
3528 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
3529 get_next_frame and get_frame_saved_regs.
3530
3531 2003-04-13 Andrew Cagney <cagney@redhat.com>
3532
3533 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
3534 of gdbarch_num_regs.
3535
3536 2003-04-13 Andrew Cagney <cagney@redhat.com>
3537
3538 * frame.h: Mention what replaced what in "struct frame_info".
3539 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
3540 deprecated_update_frame_base_hack and
3541 deprecated_update_frame_pc_hack.
3542 * hppa-tdep.c: Ditto.
3543
3544 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
3545
3546 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
3547 to read_reg and update its comment. Remove regnum member.
3548 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
3549 Don't call read_reg when setting in_reg. Call read_reg to get
3550 the frame base if it's in a register. Return the register number
3551 on the stack instead of in the context. Remove extra arguments
3552 to read_reg.
3553 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
3554 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
3555 the register number on the expression stack.
3556 (needs_frame_read_reg): Remove extra arguments.
3557
3558 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
3559
3560 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
3561 made non-static.
3562 (execute_stack_op): All callers updated.
3563 * dwarf2expr.h: Add prototype for dwarf2_read_address.
3564 * dwarf2loc.c (find_location_expression): New function.
3565 (dwarf_expr_frame_base): Call it.
3566 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
3567 (dwarf2_tracepoint_var_ref): New function, broken out from
3568 locexpr_tracepoint_var_ref.
3569 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
3570 Make static.
3571 (loclist_read_variable, loclist_read_needs_frame): New functions.
3572 (loclist_describe_location, loclist_tracepoint_var_ref): New
3573 functions.
3574 (dwarf2_loclist_funcs): New struct location_funcs.
3575 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
3576 (struct dwarf2_locexpr_baton): Add comments.
3577 (dwarf2_loclist_funcs): New extern.
3578 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
3579 base_address and base_known.
3580 (dwarf_loc_buffer): New variable.
3581 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
3582 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
3583 (dwarf2_has_info): Initialize dwarf_loc_offset.
3584 (dwarf2_build_psymtabs): Read in .debug_loc.
3585 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
3586 DWARF_LOC_SIZE.
3587 (psymtab_to_symtab_1): Likewise. Move base address calculation
3588 here, from...
3589 (dwarf2_get_pc_bounds): ... here. Use the base address from
3590 cu_header.
3591 (dwarf2_symbol_mark_computed): Handle location lists.
3592
3593 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
3594
3595 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
3596 if the linkage name demangled successfully.
3597
3598 2003-04-13 Mark Kettenis <kettenis@gnu.org>
3599
3600 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
3601 disassmbly_flavour): Removed.
3602
3603 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
3604
3605 2003-04-13 Mark Kettenis <kettenis@gnu.org>
3606
3607 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
3608
3609 2003-04-12 Andrew Cagney <cagney@redhat.com>
3610
3611 * frame.h (struct frame_info): Move definition from here ...
3612 * frame.c (struct frame_info): ... to here.
3613
3614 2003-04-12 Andrew Cagney <cagney@redhat.com>
3615
3616 * gdbthread.h (save_infrun_state): Delete parameter
3617 "prev_func_start".
3618 (struct thread_info): Delete field "prev_func_start".
3619 (load_infrun_state): Ditto.
3620 * thread.c (load_infrun_state, save_infrun_state): Update.
3621 * infrun.c (prev_func_start): Delete variable.
3622 (context_switch, init_wait_for_inferior): Update.
3623 (stop_stepping, keep_going): Update.
3624
3625 2003-04-12 Andrew Cagney <cagney@redhat.com>
3626
3627 * gdbarch.sh: Add missing opaque declarations.
3628 * gdbarch.h: Regnerate.
3629 * symtab.h: Add missing opaque declarations.
3630 * value.h, target.h, symfile.h, stabsread.h: Ditto.
3631 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
3632 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
3633 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
3634 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
3635 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
3636 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
3637 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
3638 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
3639 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
3640 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
3641 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
3642 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
3643
3644 2003-04-11 Andrew Cagney <cagney@redhat.com>
3645
3646 * frame.c (get_frame_id): Return this frame's "id".
3647 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
3648 function start.
3649 (legacy_saved_regs_this_id): Replace function body with
3650 internal-error.
3651 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
3652 FRAME_OBSTACK_ZALLOC.
3653 (create_new_frame): Mark the frame ID as valid.
3654
3655 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
3656
3657 * Makefile.in (libbfd_h): Added missing setting.
3658 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
3659 according to the selected ABI.
3660
3661 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
3662
3663 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
3664
3665 2003-04-11 Andrew Cagney <cagney@redhat.com>
3666
3667 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
3668 SAVED_PC_AFTER_CALL.
3669 * gdbarch.h, gdbarch.c: Regenerate.
3670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3671 * x86-64-tdep.c (x86_64_init_abi): Update.
3672 * vax-tdep.c (vax_gdbarch_init): Update.
3673 * v850-tdep.c (v850_gdbarch_init): Update.
3674 * sparc-tdep.c (sparc_gdbarch_init): Update.
3675 * sh-tdep.c (sh_gdbarch_init): Update.
3676 * s390-tdep.c (s390_gdbarch_init): Update.
3677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3678 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3680 * mips-tdep.c (mips_gdbarch_init): Update.
3681 * mcore-tdep.c (mcore_gdbarch_init): Update.
3682 * m68k-tdep.c (m68k_gdbarch_init): Update.
3683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3684 * ia64-tdep.c (ia64_gdbarch_init): Update.
3685 (ia64_saved_pc_after_call): Update declaration.
3686 * i386ly-tdep.c (i386lynx_init_abi): Update.
3687 * i386-tdep.c (i386_gdbarch_init): Update.
3688 * hppa-tdep.c (hppa_gdbarch_init): Update.
3689 * h8300-tdep.c (h8300_gdbarch_init): Update.
3690 * frv-tdep.c (frv_gdbarch_init): Update.
3691 * cris-tdep.c (cris_gdbarch_init): Update.
3692 * avr-tdep.c (avr_gdbarch_init): Update.
3693 * arm-tdep.c (arm_gdbarch_init): Update.
3694 * alpha-tdep.c (alpha_gdbarch_init): Update.
3695 * ns32knbsd-nat.c (frame_num_args): Update.
3696 * ns32k-tdep.c (umax_frame_num_args): Update.
3697 * mips-tdep.c (mips_init_frame_pc_first): Update.
3698 * infrun.c (step_over_function): Update.
3699 * i386-linux-tdep.c (skip_hurd_resolver): Update.
3700 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
3701 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
3702 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3703 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3704 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
3705 * arm-linux-tdep.c (skip_hurd_resolver): Update.
3706 * arch-utils.c (init_frame_pc_default): Update.
3707 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3708 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
3709 declaration.
3710
3711 2003-04-11 Andrew Cagney <cagney@redhat.com>
3712
3713 * i387-tdep.c: Update copyright.
3714 (i387_to_double): Delete function.
3715 (double_to_i387): Delete function.
3716
3717 2003-04-10 Andrew Cagney <cagney@redhat.com>
3718
3719 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
3720 frame's function's address. Simplify.
3721 (d10v_frame_unwind_cache): Check that the frame's function is
3722 non-zero.
3723
3724 2003-04-10 Jim Blandy <jimb@redhat.com>
3725
3726 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
3727 call to set_gdbarch_deprecated_push_arguments.
3728
3729 2003-04-10 Andrew Cagney <cagney@redhat.com>
3730
3731 * frame.c (fprint_frame_id): New function.
3732 (fprint_frame_type, fprint_frame): New function.
3733 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
3734 (create_sentinel_frame, get_frame_id): Ditto.
3735 (frame_id_p, frame_id_eq): Ditto.
3736 (frame_id_inner, create_new_frame): Ditto.
3737 (legacy_get_prev_frame, get_prev_frame): Ditto.
3738 (deprecated_update_frame_pc_hack): Ditto.
3739 (frame_register_unwind): Ditto.
3740 (deprecated_update_frame_base_hack): Ditto.
3741
3742 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
3743
3744 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
3745 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
3746 frame_chain function.
3747 * Makefile.in: Add dependencies due to above change.
3748
3749 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
3750
3751 * blockframe.c (legacy_frame_chain_valid): Move call to
3752 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
3753 inside_entry_file.
3754
3755 2003-04-09 Andrew Cagney <cagney@redhat.com>
3756
3757 * frame.h (struct frame_id): Replace "pc" and "base" with
3758 "stack_addr" and "code_addr". Update comments.
3759 (frame_id_build): Update parameter names and comment.
3760 (struct frame_info): Replace "id_p" and "id" with "this_id".
3761 * dummy-frame.c (dummy_frame_this_id): Update.
3762 * breakpoint.c (print_one_breakpoint): Update.
3763 * frame.c (get_frame_id): Update.
3764 (get_frame_base, frame_id_build): Update.
3765 (create_sentinel_frame, legacy_get_prev_frame): Update.
3766 (deprecated_update_frame_base_hack): Update.
3767 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
3768 (frame_id_inner): Ditto.
3769
3770 2003-04-09 Andrew Cagney <cagney@redhat.com>
3771
3772 * defs.h (gdb_print_host_address): Make "addr" parameter a
3773 pointer constant.
3774 * utils.c (gdb_print_host_address): Update.
3775
3776 2003-04-09 Kevin Buettner <kevinb@redhat.com>
3777
3778 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
3779 register number for R0 is 0.
3780
3781 2003-04-09 J. Brobecker <brobecker@gnat.com>
3782
3783 * frame.h (struct gdbarch): Add opaque structure definition
3784 to avoid a compilation warning on LynxOS 4.0.
3785
3786 2003-04-09 Andrew Cagney <cagney@redhat.com>
3787
3788 * frame.h (struct frame_info): Delete field "pc". Replace
3789 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
3790 structure.
3791 * frame.c (frame_pc_unwind): Update.
3792 (create_sentinel_frame): Do not set "pc".
3793 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
3794 (get_frame_pc): Call frame_pc_unwind.
3795 (deprecated_update_frame_pc_hack): Update.
3796 (create_new_frame): Use "pc" not "->pc".
3797
3798 2003-04-09 Andrew Cagney <cagney@redhat.com>
3799
3800 * frame.c (get_frame_id): Eliminate code updating "frame".
3801 (legacy_get_prev_frame): Ditto.
3802 (get_frame_base): Return id.base directly.
3803 (deprecated_update_frame_base_hack): Update "id.base".
3804 * frame.h (struct frame_info): Delete field "frame".
3805
3806 2003-04-09 Andrew Cagney <cagney@redhat.com>
3807
3808 * NEWS: Mention that the "Sequent family" is obsolete.
3809 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
3810 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3811 * configure.host: Obsolete i[3456]86-sequent-bsd*,
3812 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3813 * config/i386/tm-ptx4.h: Obsolete file.
3814 * config/i386/tm-ptx.h: Obsolete file.
3815 * symm-tdep.c: Obsolete file.
3816 * config/i386/symmetry.mt: Obsolete file.
3817 * config/i386/tm-symmetry.h: Obsolete file.
3818 * symm-nat.c: Obsolete file.
3819 * config/i386/nm-symmetry.h: Obsolete file.
3820 * config/i386/xm-symmetry.h: Obsolete file.
3821 * config/i386/symmetry.mh: Obsolete file.
3822 * config/i386/nm-ptx4.h: Obsolete file.
3823 * config/i386/ptx4.mh: Obsolete file.
3824 * config/i386/ptx.mt: Obsolete file.
3825 * config/i386/ptx.mh: Obsolete file.
3826 * config/i386/xm-ptx4.h: Obsolete file.
3827 * config/i386/xm-ptx.h: Obsolete file.
3828
3829 2003-04-09 Andrew Cagney <cagney@redhat.com>
3830
3831 Obsolete mips*-*-mach3*.
3832 * NEWS: Mention that mips*-*-mach3* is obsolete.
3833 * m3-nat.c: Obsolete file.
3834 * config/nm-m3.h: Obsolete file.
3835 * config/mips/tm-mipsm3.h: Obsolete file.
3836 * config/mips/mipsm3.mt: Obsolete file.
3837 * config/mips/mipsm3.mh: Obsolete file.
3838 * config/mips/xm-mipsm3.h: Obsolete file.
3839 * mipsm3-nat.c: Obsolete file.
3840 * configure.host: Obsolete mips-dec-mach3*.
3841 * configure.tgt: Obsolete mips*-*-mach3*.
3842
3843 2003-04-09 Andrew Cagney <cagney@redhat.com>
3844
3845 * doublest.h: Update copyright.
3846 (deprecated_store_floating, deprecated_extract_floating): Rename
3847 store_floating and extract_floating. Update comments.
3848 * doublest.c: Update copyright.
3849 (extract_floating_by_length): Replace extract_floating.
3850 (store_floating_by_length): Replace store_floating.
3851 (deprecated_extract_floating): New function.
3852 (deprecated_store_floating): New function.
3853 (extract_typed_floating): Call extract_floating_by_length.
3854 (store_typed_floating): Call store_floating_by_length.
3855 * x86-64-tdep.c (x86_64_store_return_value): Update.
3856 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
3857 (sh64_extract_return_value): Update.
3858 (sh_sh4_register_convert_to_virtual): Update.
3859 (sh_sh64_register_convert_to_virtual): Update.
3860 (sh_sh4_register_convert_to_raw): Update.
3861 (sh_sh64_register_convert_to_raw): Update.
3862 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
3863 (rs6000_register_convert_to_raw): Update.
3864 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
3865 (ia64_register_convert_to_raw): Update.
3866 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
3867 (REGISTER_CONVERT_TO_VIRTUAL): Update.
3868 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
3869 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
3870 (alpha_register_convert_to_raw): Update.
3871
3872 2003-04-08 Andrew Cagney <cagney@redhat.com>
3873
3874 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
3875 * gdbarch.h, gdbarch.c: Re-generate.
3876 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
3877 (d10v_gdbarch_init): Do not set saved_pc_after_call.
3878 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
3879 conditionally, use frame_pc_unwind as an alternative. Add
3880 comments.
3881 * arch-utils.c (init_frame_pc_default): Only call
3882 SAVED_PC_AFTER_CALL when available.
3883
3884 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
3885
3886 * infrun.c (stop_soon): Rename from stop_soon_quietly.
3887 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
3888 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
3889 (start_remote): Ditto.
3890 (handle_inferior_event): Ditto.
3891 (save_inferior_status): Ditto.
3892 (restore_inferior_status): Ditto.
3893 * infcmd.c (attach_command): Ditto.
3894 * fork-child.c (startup_inferior): Ditto.
3895 * inferior.h (stop_soon): Rename from stop_soon_quietly.
3896 * alpha-tdep.c (heuristic_proc_start): Ditto.
3897 * mips-tdep.c (heuristic_proc_start): Ditto.
3898 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
3899 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
3900 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
3901 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
3902 * remote-vx.c (vx_create_inferior): Ditto.
3903
3904 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
3905
3906 * infrun.c (stop_soon_quietly): Make it an enum, to better
3907 override the default behavior of handle_inferior_event.
3908 (clear_proceed_status): Update uses of stop_soon_quietly to
3909 reflect that it is now an enum.
3910 (start_remote): Ditto.
3911 (handle_inferior_event): Change logic a bit if stop_soon_quietly
3912 is set to handle the new GNU/Linux kernel behavior for
3913 attach/sigstop. Update uses of stop_soon_quietly.
3914 * inferior.h (enum stop_kind): New enum.
3915 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
3916 Reset normal handle_inferior_event behavior, afterwards.
3917 * fork-child.c (startup_inferior): Update.
3918 * alpha-tdep.c (heuristic_proc_start): Update.
3919 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3920 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
3921 * solib-osf.c (osf_solib_create_inferior_hook): Update.
3922 * solib-irix.c (irix_solib_create_inferior_hook): Update.
3923 * remote-vx.c (vx_create_inferior): Update.
3924 * mips-tdep.c (heuristic_proc_start): Update.
3925
3926 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
3927
3928 * disasm.c (dump_insns): Move variables inside loop, or they will
3929 be freed more than once, causing wild memory corruptions.
3930 (gdb_disassembly): Look for the substring "-thread",
3931 instead of "-threads" in the target name, to make sure to find
3932 the 'multi-thread' target. Also, make sure we do the right thing
3933 with the "core" target.
3934
3935 2003-04-07 Kevin Buettner <kevinb@redhat.com>
3936
3937 * mips-tdep.c (mips_print_fp_register): New function, created from
3938 do_fp_register_row(). Registers are now (also) printed as hex.
3939 Only one register is printed per row.
3940 (mips_print_register, do_fp_register_row): Print floating point
3941 registers with mips_print_fp_register().
3942
3943 2003-04-06 Andrew Cagney <cagney@redhat.com>
3944
3945 * valprint.h (inspect_it): Add extern declaration.
3946 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
3947 (selectors_info, classes_info): Ditto.
3948 (find_objc_msgcall): Fix indentation.
3949 (objc_printstr): Delete extern declarations.
3950
3951 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
3952
3953 2003-04-06 Andrew Cagney <cagney@redhat.com>
3954
3955 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
3956 Update comment.
3957 * frame.c (legacy_saved_regs_this_id): Update.
3958 (legacy_get_prev_frame): Update.
3959 * xstormy16-tdep.c: Update comment.
3960 * sparc-tdep.c (sparc_frame_chain): Update comment.
3961 * blockframe.c (legacy_frame_chain_valid): Update.
3962
3963 2003-04-06 Andrew Cagney <cagney@redhat.com>
3964
3965 * valprint.c (val_print_type_code_int): Delete #ifdef
3966 PRINT_TYPELESS_INTEGER code.
3967
3968 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
3969 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
3970 multi-arch definition.
3971 * gdbarch.h: Re-generate.
3972
3973 2003-04-05 Andrew Cagney <cagney@redhat.com>
3974
3975 Eliminate FRAME_FIND_SAVED_REGS.
3976 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3977 Change FSR parameter to a pointer.
3978 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
3979 Assume FSR parameter is a pointer.
3980 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3981 Make fsr a pointer.
3982 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
3983 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
3984 saved_regs a pointer.
3985 (hppa_frame_saved_pc): Ditto.
3986 (find_dummy_frame_regs): Make frame_saved_regs a pointer
3987 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
3988 pointer.
3989 (restore_pc_queue): Make fsr a pointer.
3990 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
3991 (hppa_frame_chain): Make saved_regs a pointer, call
3992 hppa_frame_init_saved_regs.
3993 * sparc-tdep.c: Include "gdb_assert.h".
3994 (sparc_frame_find_saved_regs): Replace internal_error with
3995 gdb_assert.
3996 * remote-vxsparc.c (vx_read_register): Delete reference to
3997 FRAME_FIND_SAVED_REGS.
3998 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
3999 * gdbarch.h: Regenerate.
4000 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4001 (deprecated_get_frame_saved_regs): Delete declaration.
4002 (struct frame_saved_regs): Delete definition.
4003 * frame.c (deprecated_get_frame_saved_regs): Delete function.
4004 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
4005 (hppa_frame_find_saved_regs): Delete declaration.
4006 (FRAME_FIND_SAVED_REGS): Delete macro.
4007 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
4008 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
4009 FRAME_FIND_SAVED_REGS in comment.
4010
4011 2003-04-05 Andrew Cagney <cagney@redhat.com>
4012
4013 * frame.c (frame_func_unwind, get_frame_func): New functions.
4014 * frame.h (get_frame_func, frame_func_unwind): Declare.
4015 (struct frame_info): Add field "prev_func" for caching the
4016 previous frame's function address.
4017 * arm-tdep.c (arm_frameless_function_invocation): Combine
4018 get_pc_function_start and get_frame_pc into get_frame_func.
4019 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4020 (sh64_nofp_frame_init_saved_regs): Ditto.
4021 * s390-tdep.c (s390_function_start): Ditto.
4022 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
4023 (rs6000_frameless_function_invocation): Ditto.
4024 (rs6000_frame_saved_pc): Ditto.
4025 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
4026 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
4027 * i386-tdep.c (i386_frameless_signal_p): Ditto.
4028 (i386_frame_init_saved_regs): Ditto.
4029 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
4030 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
4031 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
4032 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4033 * blockframe.c (frameless_look_for_prologue): Ditto.
4034
4035 2003-04-05 Andrew Cagney <cagney@redhat.com>
4036
4037 * frame.c (legacy_get_prev_frame): Link prev to next at the
4038 function start. Update comments.
4039
4040 2003-04-05 Andrew Cagney <cagney@redhat.com>
4041
4042 * frame.c (get_frame_id): Update comment.
4043 (legacy_get_prev_frame): Update comment.
4044 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
4045 * gdbarch.h: Regenerate.
4046 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
4047 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
4048
4049 2003-04-05 Andrew Cagney <cagney@redhat.com>
4050
4051 * stack.c (print_frame_info): Use get_frame_pc.
4052
4053 2003-04-04 Andrew Cagney <cagney@redhat.com>
4054
4055 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
4056 the frame's type from the unwinder.
4057 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
4058 (create_new_frame, legacy_get_prev_frame): When the unwinder's
4059 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
4060 (get_frame_base_address): Use get_frame_type.
4061 (get_frame_locals_address, get_frame_args_address): Ditto.
4062 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
4063 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
4064 (struct frame_info): Add comment explaining why the frame contains
4065 a "type" field.
4066 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
4067 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
4068 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
4069 NORMAL_FRAME.
4070 * frame-unwind.h: Include "frame.h".
4071 (struct frame_unwind): Add "type" field.
4072 * Makefile.in (frame_unwind_h): Add $(frame_h).
4073
4074 2003-04-04 Andrew Cagney <cagney@redhat.com>
4075
4076 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
4077 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
4078 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
4079 get_frame_base.
4080 (d10v_unwind_dummy_id): Use frame_id_build.
4081 * frame.c (find_frame_sal): Use get_frame_pc.
4082 (create_new_frame): Use deprecated_update_frame_pc_hack and
4083 deprecated_update_frame_base_hack.
4084 (create_sentinel_frame): Add comment about ->pc going away.
4085 (get_prev_frame): Add comment about ->pc going away.
4086 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
4087 frame_id_build, deprecated_update_frame_pc_hack and
4088 deprecated_update_frame_base_hack.
4089 (select_frame): Use get_frame_pc.
4090 (legacy_saved_regs_this_id): Use frame_id_build.
4091
4092 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
4093
4094 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
4095 signed integer case.
4096 (classify_argument): Handle enumerations and references.
4097
4098 2003-04-04 Andrew Cagney <cagney@redhat.com>
4099
4100 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
4101 ID to NULL.
4102
4103 2003-04-01 Adam Fedor <fedor@gnu.org>
4104
4105 * gdb/objc-lang.c (selectors_info): Replace calls to
4106 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
4107 SYMBOL_NATURAL_NAME.
4108 (classes_info, find_methods): Likewise.
4109
4110 2003-04-03 Kevin Buettner <kevinb@redhat.com>
4111
4112 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
4113 ``mach'' to the value determined by bfd_default_set_arch_mach().
4114
4115 2003-04-02 Bob Rossi <bob_rossi@cox.net>
4116
4117 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
4118 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
4119 (mi-cmd-file.o): Update dependencies.
4120
4121 2003-04-01 Kevin Buettner <kevinb@redhat.com>
4122
4123 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4124 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
4125
4126 2003-04-01 Adam Fedor <fedor@gnu.org>
4127
4128 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
4129 * language.h (struct language_defn): Add la_demangle.
4130 (language_demangle): Declare.
4131 * language.c (language_demangle): New function.
4132 (unk_lang_demangle): Likewise.
4133 (unknown_language_defn, auto_language_defn, local_language_defn):
4134 Add ukn_lang_demangle.
4135 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
4136 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
4137 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
4138 (cplus_language_defn): Add cplus_demangle for la_demangle element.
4139 * jv-lang.c (java_demangle): New function
4140 (java_language_defn): Use it for la_demangle element.
4141 * objc-lang.c (objc_demangle): Add options argument
4142 (objc_language_defn): Use objc_demangle for la_demangle element.
4143 * maint.c (maintenance_demangle): Replace switch with
4144 call to language_demangle.
4145 * utils.c (fprintf_symbol_filtered): Likewise.
4146
4147 2003-04-01 Andrew Cagney <cagney@redhat.com>
4148
4149 * printcmd.c (print_frame_nameless_args): Delete #ifdef
4150 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
4151 PRINT_TYPELESS_INTEGER.
4152 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
4153 PUSH_RETURN_ADDRESS.
4154
4155 2003-04-01 Andrew Cagney <cagney@redhat.com>
4156
4157 * Makefile.in (d10v-tdep.o): Update dependencies.
4158 * d10v-tdep.c: Include "frame-base.h".
4159 (d10v_frame_unwind): Make constant.
4160 (d10v_frame_base_address): New function.
4161 (d10v_frame_base): New variable.
4162 (d10v_gdbarch_init): Set frame_base default.
4163 (struct d10v_unwind_cache): Add the field "prev_sp". Update
4164 comment for base.
4165 (d10v_frame_unwind_cache): Set and use "prev_sp".
4166 (d10v_frame_this_id): Use the previous frame's inner most stack
4167 address and this frame's func address for the frame ID. Use
4168 frame_id_build. Don't analyze beyond the current instruction.
4169
4170 2003-04-01 Andrew Cagney <cagney@redhat.com>
4171
4172 * frame.h (get_frame_locals_address, get_frame_args_address):
4173 Refer to the base address, instead of the address of the first
4174 local or parameter.
4175
4176 2003-04-01 Andrew Cagney <cagney@redhat.com>
4177
4178 Add frame debug info addresses:
4179 * frame-base.c: New file.
4180 * frame-base.h: New file.
4181 * frame.h (struct frame_base): Add opaque declaration.
4182 (get_frame_base): Update comment.
4183 (get_frame_base_address): Declare.
4184 (get_frame_locals_address): Declare.
4185 (get_frame_args_address): Declare.
4186 (struct frame_info): Add "base" and "base_cache". Update
4187 comments on the unwinder.
4188 * frame.c: Include "frame-base.h".
4189 (get_frame_locals_address): New function.
4190 (get_frame_base_address): New function.
4191 (get_frame_args_address): New function.
4192 * findvar.c (read_var_value): Use get_frame_locals_address and
4193 get_frame_args_address.
4194 * stack.c (frame_info): Use get_frame_locals_address and
4195 get_frame_args_address.
4196 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
4197 moved to "frame-base.c".
4198 * printcmd.c (print_frame_nameless_args): Ditto.
4199 * symtab.h (address_class): Update comments.
4200 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
4201 get_frame_base_address.
4202 * dwarf2expr.c (execute_stack_op): Ditto.
4203 * Makefile.in (frame_base_h): Define.
4204 (frame.o): Update dependencies.
4205 (frame-base.o): Add dependencies.
4206 (SFILES): Add frame-base.c.
4207 (COMMON_OBS): Add frame-base.o.
4208
4209 2003-04-01 Andrew Cagney <cagney@redhat.com>
4210
4211 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
4212 CALL_DUMMY_LENGTH): Ditto.
4213 * gdbarch.c: Re-generate.
4214 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
4215 (CALL_DUMMY_LENGTH): Delete macro.
4216 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
4217 * arm-tdep.c (arm_gdbarch_init): Ditto.
4218 * avr-tdep.c (avr_gdbarch_init): Ditto.
4219 * cris-tdep.c (cris_gdbarch_init): Ditto.
4220 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4221 * frv-tdep.c (frv_gdbarch_init): Ditto.
4222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4223 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4224 * i386-tdep.c (i386_gdbarch_init): Ditto.
4225 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4227 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4228 * mips-tdep.c (mips_gdbarch_init): Ditto.
4229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4230 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4231 * s390-tdep.c (s390_gdbarch_init): Ditto.
4232 * sh-tdep.c (sh_gdbarch_init): Ditto.
4233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4234 * v850-tdep.c (v850_gdbarch_init): Ditto.
4235 * vax-tdep.c (vax_gdbarch_init): Ditto.
4236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4237
4238 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
4239
4240 * frame.c (get_prev_frame): Disable call to inside_entry_file().
4241
4242 2003-04-01 Andrew Cagney <cagney@redhat.com>
4243
4244 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
4245 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4246 * gdbarch.h, gdbarch.c: Re-generate.
4247 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4248 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4249 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4250 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4251 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4252 * infcmd.c (run_stack_dummy): Simplify assuming
4253 CALL_DUMMY_BREAKPOINT_OFFSET_P.
4254 * infrun.c (handle_inferior_event): Ditto.
4255 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4256 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
4257 * arm-tdep.c (arm_gdbarch_init): Ditto.
4258 * avr-tdep.c (avr_gdbarch_init): Ditto.
4259 * cris-tdep.c (cris_gdbarch_init): Ditto.
4260 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4261 * frv-tdep.c (frv_gdbarch_init): Ditto.
4262 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4263 * i386-tdep.c (i386_gdbarch_init): Ditto.
4264 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4266 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4267 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4268 * mips-tdep.c (mips_gdbarch_init): Ditto.
4269 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4270 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4271 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4272 * s390-tdep.c (s390_gdbarch_init): Ditto.
4273 * sh-tdep.c (sh_gdbarch_init): Ditto.
4274 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4275 * v850-tdep.c (v850_gdbarch_init): Ditto.
4276 * vax-tdep.c (vax_gdbarch_init): Ditto.
4277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4278
4279 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * symfile.c (symfile_relocate_debug_section): Update call to
4282 bfd_simple_get_relocated_section_contents.
4283
4284 2003-03-31 Andrew Cagney <cagney@redhat.com>
4285
4286 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
4287 * gdbarch.h, gdbarch.c: Regenerate.
4288 * inferior.h (FIX_CALL_DUMMY): Delete macro.
4289 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
4290 available.
4291 * frame.h (generic_fix_call_dummy): Delete declaration.
4292 * dummy-frame.h: Update comment.
4293 * dummy-frame.c (generic_fix_call_dummy): Delete function.
4294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4295 fix_call_dummy.
4296 * sh-tdep.c (sh_gdbarch_init): Ditto.
4297 * s390-tdep.c (s390_gdbarch_init): Ditto.
4298 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4299 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4301 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4302 * i386-tdep.c (i386_gdbarch_init): Ditto.
4303 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4304 * frv-tdep.c (frv_gdbarch_init): Ditto.
4305 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4306 * cris-tdep.c (cris_gdbarch_init): Ditto.
4307 * avr-tdep.c (avr_gdbarch_init): Ditto.
4308 * arm-tdep.c (arm_gdbarch_init): Ditto.
4309
4310 2003-03-31 J. Brobecker <brobecker@gnat.com>
4311
4312 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
4313 (INIT_FRAME_AP): Likewise.
4314 (EXTRA_FRAME_INFO): Likewise.
4315
4316 2003-03-31 Andrew Cagney <cagney@redhat.com>
4317
4318 * gdbarch.sh: Include "symfile.h".
4319 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
4320 * gdbarch.h, gdbarch.c: Re-generate.
4321 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
4322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4323 call_dummy_address, the default is at entry_point_address.
4324 * v850-tdep.c (v850_gdbarch_init): Ditto.
4325 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4326 * sh-tdep.c (sh_gdbarch_init): Ditto.
4327 * s390-tdep.c (s390_gdbarch_init): Ditto.
4328 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4330 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4331 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4332 * i386-tdep.c (i386_gdbarch_init): Ditto.
4333 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4334 * frv-tdep.c (frv_gdbarch_init): Ditto.
4335 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4336 * cris-tdep.c (cris_gdbarch_init): Ditto.
4337 * arm-tdep.c (arm_gdbarch_init): Ditto.
4338
4339 2003-03-31 Andrew Cagney <cagney@redhat.com>
4340
4341 * gdbarch.sh (CALL_DUMMY_P): Delete.
4342 * gdbarch.h, gdbarch.c: Re-generate.
4343 * inferior.h (CALL_DUMMY_P): Delete macro.
4344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4345 * vax-tdep.c (vax_gdbarch_init): Update.
4346 * v850-tdep.c (v850_gdbarch_init): Update.
4347 * sparc-tdep.c (sparc_gdbarch_init): Update.
4348 * sh-tdep.c (sh_gdbarch_init): Update.
4349 * s390-tdep.c (s390_gdbarch_init): Update.
4350 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4351 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4352 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4353 * mips-tdep.c (mips_gdbarch_init): Update.
4354 * mcore-tdep.c (mcore_gdbarch_init): Update.
4355 * m68k-tdep.c (m68k_gdbarch_init): Update.
4356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4357 * ia64-tdep.c (ia64_gdbarch_init): Update.
4358 * i386-tdep.c (i386_gdbarch_init): Update.
4359 * h8300-tdep.c (h8300_gdbarch_init): Update.
4360 * frv-tdep.c (frv_gdbarch_init): Update.
4361 * d10v-tdep.c (d10v_gdbarch_init): Update.
4362 * cris-tdep.c (cris_gdbarch_init): Update.
4363 * breakpoint.c (deprecated_frame_in_dummy): Update.
4364 * avr-tdep.c (avr_gdbarch_init): Update.
4365 * alpha-tdep.c (alpha_gdbarch_init): Update.
4366 * arm-tdep.c (arm_gdbarch_init): Update.
4367 * dummy-frame.c (dummy_frame_this_id): Update comments.
4368 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
4369 * frame.c (legacy_get_prev_frame): Ditto.
4370 * valops.c (call_function_by_hand): Delete function.
4371 (hand_function_call): Rename to call_function_by_hand
4372
4373 2003-03-30 Andrew Cagney <cagney@redhat.com>
4374
4375 2002-11-10 Klee Dienes <kdienes@apple.com>
4376 * value.h (struct value): Update comment.
4377
4378 2003-03-30 Andrew Cagney <cagney@redhat.com>
4379
4380 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
4381 D10V_FP_REGNUM.
4382 (d10v_gdbarch_init): Do not set fp_regnum.
4383
4384 * frame.c (get_frame_base): Force ID initialization.
4385 (get_prev_frame): Move computation of the frame ID from here ...
4386 (get_frame_id): ... to here.
4387 (legacy_get_prev_frame): Mark the frame ID as valid.
4388 * frame.h (struct frame_info): Add field "id_p".
4389
4390 2003-03-30 Mark Kettenis <kettenis@gnu.org>
4391
4392 * i386-tdep.c (i386_store_struct_return): Removed.
4393 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
4394
4395 2003-03-30 Andrew Cagney <cagney@redhat.com>
4396
4397 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
4398 * gdbarch.h, gdbarch.c: Regenerate.
4399 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
4400 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4401 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4402 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4403 * i386-tdep.c (i386_gdbarch_init): Ditto.
4404 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4405 * cris-tdep.c (cris_gdbarch_init): Ditto.
4406 * vax-tdep.c (vax_gdbarch_init): Ditto.
4407 * s390-tdep.c (s390_gdbarch_init): Ditto.
4408 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4410 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4411 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
4412 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4413 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
4414 * sparc-tdep.c (sparc_gdbarch_init): Update.
4415 * sh-tdep.c (sh_gdbarch_init): Update.
4416 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4417 * mips-tdep.c (mips_gdbarch_init): Update.
4418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4419 * ia64-tdep.c (ia64_gdbarch_init): Update.
4420 * frv-tdep.c (frv_gdbarch_init): Update.
4421 * avr-tdep.c (avr_gdbarch_init): Update.
4422 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
4423 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
4424 instead of when push_dummy_call is not available.
4425
4426 2003-03-30 Andrew Cagney <cagney@redhat.com>
4427
4428 * infttrace.c: Include "gdbthread.h".
4429 (parent_attach_all): Fix function signature.
4430 (call_ptrace): Update call.
4431 * Makefile.in (infttrace.o): Update dependencies.
4432
4433 2003-03-30 Andrew Cagney <cagney@redhat.com>
4434
4435 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
4436 PUSH_RETURN_ADDRESS.
4437 * gdbarch.h, gdbarch.c: Regenerate.
4438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4439 * x86-64-tdep.c (x86_64_init_abi): Update.
4440 * v850-tdep.c (v850_gdbarch_init): Update.
4441 * sparc-tdep.c (sparc_gdbarch_init): Update.
4442 * sh-tdep.c (sh_gdbarch_init): Update.
4443 * s390-tdep.c (s390_gdbarch_init): Update.
4444 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4445 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4446 * mips-tdep.c (mips_gdbarch_init): Update.
4447 * mcore-tdep.c (mcore_gdbarch_init): Update.
4448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4449 * ia64-tdep.c (ia64_gdbarch_init): Update.
4450 * i386-tdep.c (i386_gdbarch_init): Update.
4451 * h8300-tdep.c (h8300_gdbarch_init): Update.
4452 * frv-tdep.c (frv_gdbarch_init): Update.
4453 * cris-tdep.c (cris_gdbarch_init): Update.
4454 * avr-tdep.c (avr_gdbarch_init): Update.
4455 * arm-tdep.c (arm_gdbarch_init): Update.
4456 * valops.c (hand_function_call): Update.
4457
4458 2003-03-29 Andrew Cagney <cagney@redhat.com>
4459
4460 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
4461 sizeof_call_dummy_words.
4462 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
4463 define.
4464 * gdbarch.h: Regenerate.
4465
4466 2003-03-29 Andrew Cagney <cagney@redhat.com>
4467
4468 * infttrace.h: New file.
4469 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
4470 (hpread_get_textlow): Detect an uninitialized dn_bufp.
4471 (hpread_read_doc_function_type): Detect an initialized type1.
4472 (hpread_quick_traverse): Initialize mod_name_string.
4473 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
4474 (som_solib_get_solib_by_pc): Declare.
4475 (so_lib_thread_start_addr): Declare.
4476 (no_shared_libraries): Declare.
4477 * somread.c (init_import_symbols): Make static. Add forward
4478 declaration.
4479 * config/pa/nm-hppah.h: Include "infttrace.h" for
4480 parent_attach_all.
4481 (hppa_insert_hw_watchpoint): Declare.
4482 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
4483 * hppah-nat.c: Include "gdb_string.h".
4484 (parent_attach_all): Delete extern declaration, moved to
4485 "infttrace.h".
4486 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
4487 int.
4488 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
4489 * Makefile.in (infttrace_h): Define.
4490 (hpread.o): Update dependencies.
4491 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
4492 * hppa-hpux-tdep.c: Include "gdb_string.h".
4493 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
4494 * infrun.c (handle_inferior_event): Always initialize
4495 stepped_after_stopped_by_watchpoint. Add default and remove
4496 fallthrough in switch statement.
4497 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
4498 parameter to int.
4499 (hppa_remove_hw_watchpoint): Ditto.
4500
4501 2003-03-29 Andrew Cagney <cagney@redhat.com>
4502
4503 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
4504 offset.
4505
4506 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
4507
4508 * arm-tdep.c (arm_push_arguments): Delete.
4509 (struct stack_item): New type.
4510 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
4511 (arm_store_struct_return): Delte.
4512 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
4513 arm_push_arguments or arm_store_struct_return.
4514
4515 2003-03-28 Andrew Cagney <cagney@redhat.com>
4516
4517 * Makefile.in (d10v-tdep.o): Update dependencies.
4518 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
4519 * d10v-tdep.c: Include "remote.h".
4520 (target_resume_hook): Delete extern declaration.
4521 (target_wait_loop_hook): Ditto.
4522 (tdisassemble_command): Eliminate assignment in "if" conditional.
4523 (d10v_ts2_register_sim_regno): Eliminate call to
4524 legacy_register_sim_regno.
4525 (d10v_ts3_register_sim_regno): Ditto.
4526
4527 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
4528
4529 * thread.c: Reindented.
4530 * lin-lwp.c: Ditto.
4531 * linux-proc.c: Ditto.
4532
4533 2003-03-28 Bob Rossi <bob_rossi@cox.net>
4534
4535 * MAINTAINERS (write after approval): Add myself.
4536
4537 2003-03-27 Theodore A. Roth <troth@openavr.org>
4538
4539 * objc-exp.y: Add missing semi-colons.
4540
4541 2003-03-27 Andrew Cagney <cagney@redhat.com>
4542
4543 * regcache.c (write_sp): Delete function and references.
4544 * inferior.h (write_sp): Delete declaration.
4545 * valops.c (hand_function_call): Replace write_sp with
4546 TARGET_WRITE_SP.
4547 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
4548 (sparc_pop_frame): Ditto.
4549
4550 2003-03-27 Andrew Cagney <cagney@redhat.com>
4551
4552 * NEWS: Mention removal of support for hppa*-*-bsd* and
4553 hppa*-*-osf* natives, and hppa*-*-pro* target.
4554 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
4555 * config/pa/xm-pa.h: Obsolete file.
4556 * config/pa/xm-hppab.h: Obsolete file.
4557 * config/pa/nm-hppab.h: Obsolete file.
4558 * config/pa/tm-hppab.h: Obsolete file.
4559 * config/pa/tm-hppao.h: Obsolete file.
4560 * config/pa/nm-hppao.h: Obsolete file.
4561 * config/pa/tm-pro.h: Obsolete file.
4562 * config/pa/hppaosf.mt: Obsolete file.
4563 * config/pa/hppaosf.mh: Obsolete file.
4564 * config/pa/hppapro.mt: Obsolete file.
4565 * config/pa/hppabsd.mt: Obsolete file.
4566 * config/pa/hppabsd.mh: Obsolete file.
4567 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
4568 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
4569 hppa*-*-osf*.
4570
4571 2003-03-27 Andrew Cagney <cagney@redhat.com>
4572
4573 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
4574 push_arguments. Don't set push_return_address or write_sp.
4575 (d10v_push_dummy_call): Replace d10v_push_arguments.
4576 (d10v_push_return_address, d10v_write_sp): Delete function,
4577 handled by push_dummy_call.
4578
4579 2003-03-26 Andrew Cagney <cagney@redhat.com>
4580
4581 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
4582 (push_dummy_call): New pure multi-arch replacement with gdbarch,
4583 regcache and dummy_addr parameters.
4584 * gdbarch.h, gdbarch.c: Re-generate.
4585 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
4586 available; assume it will handle stack alignment and return
4587 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
4588 legacy_push_arguments.
4589 (legacy_push_arguments): Rename default_push_arguments.
4590 * value.h (legacy_push_arguments): Rename default_push_arguments.
4591 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
4592 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
4593 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
4594 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
4595 * config/i386/tm-symmetry.h: Update.
4596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4597 * x86-64-tdep.c (x86_64_init_abi): Update.
4598 * v850-tdep.c (v850_gdbarch_init): Update.
4599 * sparc-tdep.c (sparc_gdbarch_init): Update.
4600 * sh-tdep.c (sh_gdbarch_init): Update.
4601 * s390-tdep.c (s390_gdbarch_init): Update.
4602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4603 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4604 * mips-tdep.c (mips_gdbarch_init): Update.
4605 * mcore-tdep.c (mcore_gdbarch_init): Update.
4606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4607 * ia64-tdep.c (ia64_gdbarch_init): Update.
4608 * i386-tdep.c (i386_gdbarch_init): Update.
4609 * hppa-tdep.c (hppa_gdbarch_init): Update.
4610 * h8300-tdep.c (h8300_gdbarch_init): Update.
4611 * frv-tdep.c (frv_gdbarch_init): Update.
4612 * d10v-tdep.c (d10v_gdbarch_init): Update.
4613 * cris-tdep.c (cris_gdbarch_init): Update.
4614 * avr-tdep.c (avr_gdbarch_init): Update.
4615 * arm-tdep.c (arm_gdbarch_init): Update.
4616 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4617 * alpha-tdep.c (alpha_gdbarch_init): Update.
4618
4619 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
4620
4621 * signals/signals.c (do_target_signal_to_host): Correct realtime
4622 signal range test.
4623
4624 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
4625
4626 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
4627 (struct sal_chain, map_catch_names): Remove.
4628 (catch_exception_command_1): Don't call
4629 handle_gnu_4_16_catch_command.
4630
4631 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
4632
4633 From Mark Dettinger <dettinge@de.ibm.com>:
4634 * dwarf2cfi.c (read_2u): Increment pointer by two.
4635
4636 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
4637
4638 * signals/signals.c: Fix typos in last change.
4639
4640 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
4641
4642 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
4643 not already defined. Use __SIGRTMIN if available.
4644 (target_signal_from_host): Remove SIGRTMIN block.
4645 (do_target_signal_to_host): Remove SIGRTMIN block; check that
4646 the signal is within the realtime range.
4647
4648 2003-03-25 Adam Fedor <fedor@gnu.org>
4649
4650 * Makefile.in (infrun.o): Add $(language_h)
4651 * infrun.c (handle_inferior_event): Use skip_language_trampoline
4652 for language specific trampolines.
4653 * language.h (struct language_defn): Add skip_trampoline.
4654 (skip_language_trampoline): Declare.
4655 * language.c (unk_lang_trampoline, skip_language_trampoline):
4656 New functions.
4657 (unknown_language_defn, auto_language_defn, local_language_defn):
4658 Add ukn_lang_trampoline.
4659 * ada-lang.c (ada_language_defn): Add NULL for language
4660 specific skip_trampoline.
4661 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
4662 scm-lang.c: Likewise.
4663 * objc-lang.c (objc_skip_trampoline): New function.
4664 (objc_language_defn): Add objc_skip_trampoline.
4665
4666 2003-03-25 Andrew Cagney <cagney@redhat.com>
4667
4668 * frame.c (get_prev_frame): Delay validating a frame's ID -
4669 non-NULL, didn't go backwards - until an attempt to unwind it to
4670 the previous frame.
4671
4672 2003-03-25 Andrew Cagney <cagney@redhat.com>
4673
4674 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
4675 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
4676 * gdbarch.h, gdbarch.c: Re-generate.
4677 * config/sparc/tm-sparc.h
4678 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
4679 * sparc-tdep.c (sparc_gdbarch_init): Set
4680 deprecated_extra_stack_alignment_needed.
4681 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
4682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
4683 extra_stack_alignment_needed.
4684 * v850-tdep.c (v850_gdbarch_init): Ditto.
4685 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4686 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4687 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4688 * cris-tdep.c (cris_gdbarch_init): Ditto.
4689 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4691
4692 2003-03-25 Andrew Cagney <cagney@redhat.com>
4693
4694 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
4695 STORE_STRUCT_RETURN.
4696 * gdbarch.h, gdbarch.c: Regenerate.
4697 * d10v-tdep.c (d10v_store_struct_return): Delete function.
4698 (d10v_push_arguments): Set the struct return register.
4699 (d10v_gdbarch_init): Update.
4700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4701 * x86-64-tdep.c (x86_64_init_abi): Update.
4702 * vax-tdep.c (vax_gdbarch_init): Update.
4703 * v850-tdep.c (v850_gdbarch_init): Update.
4704 * sparc-tdep.c (sparc_gdbarch_init): Update.
4705 * sh-tdep.c (sh_gdbarch_init): Update.
4706 * s390-tdep.c (s390_gdbarch_init): Update.
4707 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4708 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4709 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4710 * mips-tdep.c (mips_gdbarch_init): Update.
4711 * mcore-tdep.c (mcore_gdbarch_init): Update.
4712 * m68k-tdep.c (m68k_gdbarch_init): Update.
4713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4714 * ia64-tdep.c (ia64_gdbarch_init): Update.
4715 * i386-tdep.c (i386_gdbarch_init): Update.
4716 * hppa-tdep.c (hppa_gdbarch_init): Update.
4717 * h8300-tdep.c (h8300_gdbarch_init): Update.
4718 * frv-tdep.c (frv_gdbarch_init): Update.
4719 * cris-tdep.c (cris_gdbarch_init): Update.
4720 * avr-tdep.c (avr_gdbarch_init): Update.
4721 * arm-tdep.c (arm_gdbarch_init): Update.
4722 * alpha-tdep.c (alpha_gdbarch_init): Update.
4723
4724 2003-03-25 Andrew Cagney <cagney@redhat.com>
4725
4726 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
4727 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
4728 CALL_DUMMY_STACK_ADJUST with a predicate variable.
4729 * gdbarch.h, gdbarch.c: Regenerate.
4730 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4731 call_dummy_stack_adjust_p.
4732 * vax-tdep.c (vax_gdbarch_init): Ditto.
4733 * v850-tdep.c (v850_gdbarch_init): Ditto.
4734 * sh-tdep.c (sh_gdbarch_init): Ditto.
4735 * s390-tdep.c (s390_gdbarch_init): Ditto.
4736 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4737 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4739 * mips-tdep.c (mips_gdbarch_init): Ditto.
4740 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4741 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4743 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4744 * i386-tdep.c (i386_gdbarch_init): Ditto.
4745 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4746 * frv-tdep.c (frv_gdbarch_init): Ditto.
4747 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4748 * cris-tdep.c (cris_gdbarch_init): Ditto.
4749 * avr-tdep.c (avr_gdbarch_init): Ditto.
4750 * arm-tdep.c (arm_gdbarch_init): Ditto.
4751 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4752 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
4753 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
4754 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
4755 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
4756 call_dummy_stack_adjust_p.
4757 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
4758 (CALL_DUMMY_STACK_ADJUST): Delete macro.
4759 * sparc-tdep.c (sparc32_push_arguments): Update.
4760 * valops.c (hand_function_call): Update.
4761
4762 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
4763
4764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
4765 set_gdbarch_char_signed.
4766
4767 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
4768
4769 PR cli/548
4770 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
4771
4772 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
4773
4774 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
4775 (_initialize_arm_tdep): Don't set tm_print_insn.
4776
4777 2003-03-24 Adam Fedor <fedor@gnu.org>
4778
4779 * Makefile.in (YYOBJ): Add objc-exp.tab.o
4780 * objc-lang.h: Add multiple inclusion protection.
4781 (start_msglist, add_msglist, end_msglist): Additional declarations.
4782
4783 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
4784
4785 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
4786 value was renamed to ARM_FLOAT_SOFT_FPA.
4787
4788 2003-03-23 Andrew Cagney <cagney@redhat.com>
4789
4790 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
4791 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
4792 * gdbarch.h, gdbarch.c: Regenerate.
4793 * valops.c (hand_function_call): Update.
4794 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4795 * frame.c (legacy_saved_regs_this_id): Update.
4796 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
4797 * dummy-frame.h: Update.
4798 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
4799 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4800 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
4801 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
4802 * config/m68k/tm-sun3.h: Update.
4803 * blockframe.c (inside_main_func, frame_chain_valid): Update.
4804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4805 * x86-64-tdep.c (x86_64_init_abi): Update.
4806 * vax-tdep.c (vax_gdbarch_init): Update.
4807 * v850-tdep.c (v850_gdbarch_init): Update.
4808 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
4809 * sh-tdep.c (sh_gdbarch_init): Update.
4810 * s390-tdep.c (s390_gdbarch_init): Update.
4811 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4812 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
4813 (frame_get_saved_regs): Update.
4814 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4815 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4816 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4817 * mips-tdep.c (mips_gdbarch_init): Update.
4818 * mcore-tdep.c (mcore_gdbarch_init): Update.
4819 * m68k-tdep.c (m68k_gdbarch_init): Update.
4820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4821 * ia64-tdep.c (ia64_gdbarch_init): Update.
4822 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
4823 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4824 (i386_interix_back_one_frame): Update.
4825 * hppa-tdep.c (hppa_gdbarch_init): Update.
4826 (hppa_init_extra_frame_info): Update.
4827 * h8300-tdep.c (h8300_gdbarch_init): Update.
4828 * frv-tdep.c (frv_gdbarch_init): Update.
4829 * cris-tdep.c (cris_gdbarch_init): Update.
4830 * avr-tdep.c (avr_gdbarch_init): Update.
4831 * arm-tdep.c (arm_gdbarch_init): Update.
4832 * alpha-tdep.c (alpha_gdbarch_init): Update.
4833
4834 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4835
4836 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
4837 (arm_get_fp_model): Declare.
4838 * arm-tdep.c (fp_model_strings): New string array.
4839 (arm_fp_model, current_fp_model): New variables.
4840 (arm_get_fp_model): New function.
4841 (arm_set_fp): New function.
4842 (set_fp_model_sfunc): New function.
4843 (show_fp_model): New function.
4844 (_initialize_arm_tdep): Add new command to set/show the FPU.
4845 (arm_extract_return_value): Use arm_get_fp_model.
4846 (arm_store_return_value): Likewise.
4847 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
4848 to initialize the floating-point data types.
4849 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
4850 model is FPA.
4851
4852 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4853
4854 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
4855 the current setting of each value.
4856 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
4857 new_set and new_show. Use add_setshow_cmd_full and
4858 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
4859 commands and add new version as subcommands of "set/show arm".
4860
4861 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4862
4863 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
4864 (set_arm_command, show_arm_command): New functions.
4865 (_initialize_arm_tdep): Add them.
4866 (num_disassembly_options): Renamed from num_flavor_options.
4867 (valid_disassembly_styles): Renamed from valid_flavors.
4868 (disassembly_style): Renamed from disassembly_flavor.
4869 (set_disassembly_style_sfunc): Renamed from
4870 set_disassembly_flavor_sfunc.
4871 (set_disassembly_style): Renamed from set_disassembly_flavor.
4872 (arm_othernames): Updated.
4873 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
4874 command. Add "set/show arm disassembly" commands. Deprecate
4875 "othernames" command.
4876
4877 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4878
4879 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
4880 (arm-tdep.o): Depend on elf_arm_h.
4881
4882 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4883
4884 * Makefile.in (coff_internal_h): Define.
4885 (arm-tdep.o): Update dependencies.
4886
4887 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4888
4889 * arm-tdep.c (prologue_cache): Delete.
4890 (check_prologue_cache, save_prologue_cache): Delete.
4891 (arm_scan_prologue): Don't check or update the prologue_cache.
4892 (arm_gdb_arch_init): Don't initialize it.
4893 (_initialize_arm_tdep): Likewise.
4894
4895 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
4896
4897 * MAINTAINERS (tui): Maintainer of tui code.
4898
4899 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
4900
4901 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
4902 (i386-cygwin-tdep.o): Add dependencies.
4903 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
4904 * i386-cygwin-tdep.c: New file.
4905 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
4906 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
4907
4908 2003-03-20 Andrew Cagney <cagney@redhat.com>
4909
4910 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
4911 (handle_inferior_event): Remove code calling
4912 DYNAMIC_TRAMPOLINE_NEXTPC.
4913
4914 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
4915 already has a full path.
4916
4917 * main.c (gdb_main): Return 1.
4918 (captured_main): Call error to report an invalid interpreter.
4919
4920 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4921 * alpha-osf1-tdep.c: Include "gdb_string.h".
4922
4923 2003-03-19 J. Brobecker <brobecker@gnat.com>
4924
4925 Continuing work to convert the hppa targets to multiarch partial.
4926
4927 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
4928 method, now that hppa_push_dummy_frame has a conformant prototype.
4929 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
4930 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
4931 for the switch to multiarch partial.
4932
4933 2003-03-19 Kevin Buettner <kevinb@redhat.com>
4934
4935 * mdebugread.c (parse_symbol): For stEnd, we're done counting
4936 when iss is issNull.
4937
4938 2003-03-18 Kevin Buettner <kevinb@redhat.com>
4939
4940 * mips-tdep.c (mips_register_name): Fix fencepost error involving
4941 NUM_REGS bounds check.
4942
4943 2003-03-18 Kevin Buettner <kevinb@redhat.com>
4944
4945 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
4946 * mips-tdep.c (gdb_assert.h): Include.
4947 (mips_generic_reg_names, mips_processor_reg_names): Make static.
4948 (mips_register_name): Handle integer registers explicitly. Add
4949 bounds checking.
4950 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
4951 (mips_lsi33k_reg_names): Don't list integer registers; they're
4952 handled by mips_register_name() now.
4953 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
4954 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
4955 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
4956 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
4957 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
4958
4959 2003-03-18 Andrew Cagney <cagney@redhat.com>
4960
4961 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
4962 a void pointer.
4963 * gdbtypes.h (print_scalar_formatted): Update declaration.
4964 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
4965
4966 2003-03-18 J. Brobecker <brobecker@gnat.com>
4967
4968 * infrun.c (observer.h): Add #include.
4969 (normal_stop): Add call to observer_notify_normal_stop.
4970 * Makefile.in (infrun.o): Add dependency on observer.h.
4971
4972 2003-03-18 J. Brobecker <brobecker@gnat.com>
4973
4974 Continuing work to convert the hppa targets to multiarch partial.
4975 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
4976 parameter. Reformat comment.
4977 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
4978 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
4979 to match new profile.
4980
4981 2003-03-18 J. Brobecker <brobecker@gnat.com>
4982
4983 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
4984 appear to be working in any case.
4985
4986 2003-03-18 J. Brobecker <brobecker@gnat.com>
4987
4988 * observer.c (observer_test_first_observer): New static variable.
4989 (observer_test_second_observer): Likewise.
4990 (observer_test_third_observer): Likewise.
4991 (observer_test_first_notification_function): New static function.
4992 (observer_test_second_notification_function): Likewise.
4993 (observer_test_third_notification_function): Likewise.
4994
4995 2003-03-17 J. Brobecker <brobecker@gnat.com>
4996
4997 * hppa-tdep.c (gdb_assert.h): Add missing #include.
4998 * somsolib.c (gdb_assert.h): Likewise.
4999 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
5000 (somsolib.o): Likewise.
5001
5002 2003-03-17 Andrew Cagney <cagney@redhat.com>
5003
5004 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
5005 BFD. Simplify setting of di.endian.
5006
5007 2003-03-17 Andrew Cagney <cagney@redhat.com>
5008
5009 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
5010 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
5011
5012 From Elena Zannoni <ezannoni@redhat.com>
5013 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
5014 vector and floating-point parameters.
5015 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
5016 convention.
5017 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
5018
5019 2003-03-17 Fernando Nasser <fnasser@redhat.com>
5020
5021 * MAINTAINERS: Remove my name from several maintainership roles.
5022
5023 2003-03-17 Andrew Cagney <cagney@redhat.com>
5024
5025 Fix frame off-by-one bug.
5026 * frame-unwind.h (frame_this_id_ftype): Replace
5027 frame_unwind_id_ftype.
5028 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
5029 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
5030 with "prev_register".
5031 * frame-unwind.c (frame_unwind_find_by_pc): Return
5032 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
5033 comment.
5034 * dummy-frame.c (cached_find_dummy_frame): Delete function.
5035 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
5036 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
5037 (dummy_frame_unwind): Update.
5038 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5039 sentinel_frame_register_unwind.
5040 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
5041 (sentinel_frame_unwinder): Update.
5042 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
5043 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
5044 * frame.c (create_sentinel_frame): Update. Initialize
5045 "prologue_cache" instead of "unwind_cache".
5046 (frame_register_unwind): Call this frame's prev_register with the
5047 next frame and this frame's prologue cache.
5048 (get_prev_frame): Simplify. Always call prev frame's this_id with
5049 this frame and prev frame's prologue cache. Document that this
5050 call is shifted one to the left when compared to the
5051 frame_register_unwind call.
5052 (legacy_saved_regs_prev_register): Replace
5053 frame_saved_regs_register_unwind.
5054 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
5055 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
5056 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
5057 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
5058 (d10v_frame_unwind): Update.
5059 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
5060 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
5061 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
5062 "saved_regs" with "this_saved_regs".
5063
5064 2003-03-16 Andrew Cagney <cagney@redhat.com>
5065
5066 * frame.c (frame_pop): Don't call target_store_registers. Fix
5067 problem reported by Mark Kettenis.
5068
5069 2003-03-16 Mark Kettenis <kettenis@gnu.org>
5070
5071 * i386-tdep.c (i386_register_type): Renamed from
5072 i386_register_virtual_type. Adjust function signature.
5073 (i386_gdbarch_init): Set register_type instead of
5074 deprecated_max_register_raw_size,
5075 deprecated_max_register_virtual_size and register_virtual_type.
5076
5077 2003-03-14 Andrew Cagney <cagney@redhat.com>
5078
5079 * frame.c (get_prev_frame): When a legacy frame, always call
5080 legacy_get_prev_frame. Simplify unwind code using assumption that
5081 the unwinder is new.
5082 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
5083 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
5084 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
5085
5086 2003-03-14 Andrew Cagney <cagney@redhat.com>
5087
5088 * frame.c (get_saved_register): Delete function.
5089 * frame.h (get_saved_register): Delete declaration.
5090 * xstormy16-tdep.c: Update comment.
5091 * regcache.h: Update comments.
5092 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
5093 get_saved_register and extract_address, use
5094 frame_read_unsigned_register.
5095 (sparc_frame_saved_pc): Ditto.
5096 (sparc_get_saved_register): Instead of get_saved_register, use
5097 frame_register.
5098 (sparc_pop_frame): Ditto.
5099 * findvar.c: Update comments.
5100 (value_of_register): Call frame_register instead of
5101 get_saved_register.
5102 (value_from_register): Ditto.
5103 * config/sparc/tm-sparc.h: Update comment.
5104 * breakpoint.c: Update comment.
5105
5106 2003-03-14 Andrew Cagney <cagney@redhat.com>
5107
5108 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
5109 GET_SAVED_REGISTER.
5110 * gdbarch.h, gdbarch.c: Re-generate.
5111 * frame.h: Update comments.
5112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5113 * x86-64-tdep.c (x86_64_init_abi): Update.
5114 * sparc-tdep.c (sparc_gdbarch_init): Update.
5115 * sh-tdep.c (sh_gdbarch_init): Update.
5116 * mips-tdep.c (mips_gdbarch_init): Update.
5117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5118 * cris-tdep.c (cris_gdbarch_init): Update.
5119 * ia64-tdep.c (ia64_gdbarch_init): Update.
5120 * frame.c (frame_register): Update.
5121 (get_saved_register): Update.
5122 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
5123
5124 2003-03-13 Andrew Cagney <cagney@redhat.com>
5125
5126 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
5127 * gdbarch.h, gdbarch.c: Regenerate.
5128 * valops.c (hand_function_call): Update comment.
5129 * stack.c (return_command): Update comment.
5130 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
5131 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
5132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5133 * x86-64-tdep.c (x86_64_init_abi): Update.
5134 * vax-tdep.c (vax_gdbarch_init): Update.
5135 * v850-tdep.c (v850_gdbarch_init): Update.
5136 * sparc-tdep.c (sparc_gdbarch_init): Update.
5137 * sh-tdep.c (sh_gdbarch_init): Update.
5138 * s390-tdep.c (s390_gdbarch_init): Update.
5139 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5140 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5142 * mips-tdep.c (mips_gdbarch_init): Update.
5143 * mcore-tdep.c (mcore_gdbarch_init): Update.
5144 * m68k-tdep.c (m68k_gdbarch_init): Update.
5145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5146 * ia64-tdep.c (ia64_gdbarch_init): Update.
5147 * i386-tdep.c (i386_gdbarch_init): Update.
5148 * hppa-tdep.c (hppa_gdbarch_init): Update.
5149 * h8300-tdep.c (h8300_gdbarch_init): Update.
5150 * frv-tdep.c (frv_gdbarch_init): Update.
5151 * cris-tdep.c (cris_gdbarch_init): Update.
5152 * avr-tdep.c (avr_gdbarch_init): Update.
5153 * arm-tdep.c (arm_gdbarch_init): Update.
5154 * alpha-tdep.c (alpha_gdbarch_init): Update.
5155
5156 2003-03-13 Andrew Cagney <cagney@redhat.com>
5157
5158 * frame.c (legacy_frame_p): New function.
5159 (get_prev_frame): Use legacy_frame_p.
5160 * frame.h (legacy_frame_p): Declare.
5161
5162 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
5163
5164 * MAINTAINERS (write after approval): Alphabetically
5165 listing corrected.
5166
5167 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
5168
5169 * MAINTAINERS (write after approval): Add myself.
5170
5171 2003-03-12 Andrew Cagney <cagney@redhat.com>
5172
5173 * frame.c (get_prev_frame): Rename the frame parameter to
5174 "this_frame".
5175 (get_next_frame, legacy_get_prev_frame): Ditto.
5176
5177 2003-03-12 Andrew Cagney <cagney@redhat.com>
5178
5179 * frame.c (get_current_frame): Check target_has_registers before
5180 checking target_has_stack.
5181 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
5182 instead of deprecated_selected_frame.
5183 * findvar.c (value_of_register): Pass "frame", not
5184 deprecated_selected_frame, to value_of_builtin_reg.
5185
5186 2003-03-12 Andrew Cagney <cagney@redhat.com>
5187
5188 * regcache.c (regcache_cooked_write_signed): New function.
5189 (regcache_cooked_write_unsigned): New function.
5190 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
5191 (regcache_cooked_read_signed): Fix regnum in range assertion.
5192 * regcache.h (regcache_cooked_write_signed): Declare.
5193 (regcache_cooked_write_unsigned): Declare.
5194
5195 2003-03-12 Andrew Cagney <cagney@redhat.com>
5196
5197 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
5198 * gdbarch.h, gdbarch.c: Re-generate.
5199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5200 * x86-64-tdep.h: Update.
5201 * x86-64-tdep.c (x86_64_init_abi): Update.
5202 * v850-tdep.c (v850_gdbarch_init): Update.
5203 * sparc-tdep.c (sparc_gdbarch_init): Update.
5204 * sh-tdep.c (sh_gdbarch_init): Update.
5205 * s390-tdep.c (s390_gdbarch_init): Update.
5206 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5207 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5208 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5210 * mips-tdep.c (mips_gdbarch_init): Update.
5211 * mcore-tdep.c (mcore_gdbarch_init): Update.
5212 * m68k-tdep.c (m68k_gdbarch_init): Update.
5213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5214 * ia64-tdep.c (ia64_gdbarch_init): Update.
5215 * i386-tdep.c (i386_gdbarch_init): Update.
5216 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5217 * hppa-tdep.c (hppa_gdbarch_init): Update.
5218 * h8300-tdep.c (h8300_gdbarch_init): Update.
5219 * frv-tdep.c (frv_gdbarch_init): Update.
5220 * cris-tdep.c (cris_gdbarch_init): Update.
5221 * avr-tdep.c (avr_gdbarch_init): Update.
5222 * arm-tdep.c (arm_gdbarch_init): Update.
5223 * alpha-tdep.c (alpha_gdbarch_init): Update.
5224 * sh-tdep.c (sh_init_extra_frame_info): Update.
5225 (sh64_init_extra_frame_info): Update.
5226 * ns32knbsd-nat.c (frame_num_args): Update.
5227 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
5228 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
5229 (xstormy16_frame_chain_valid): Update.
5230 * vax-tdep.c (vax_saved_pc_after_call): Update.
5231 * v850-tdep.c (v850_frame_chain): Update.
5232 (v850_pop_frame): Update.
5233 (v850_init_extra_frame_info): Update.
5234 * sparc-tdep.c (setup_arbitrary_frame): Update.
5235 * ns32k-tdep.c (umax_frame_num_args): Update.
5236 * s390-tdep.c (s390_pop_frame_regular): Update.
5237 * mn10300-tdep.c (mn10300_frame_chain): Update.
5238 (mn10300_pop_frame_regular): Update.
5239 (mn10300_init_extra_frame_info): Update.
5240 * mips-tdep.c (mips_init_frame_pc_first): Update.
5241 (mips_frame_chain): Update.
5242 (mips_pop_frame): Update.
5243 * mcore-tdep.c (mcore_frame_chain): Update.
5244 (mcore_pop_frame): Update.
5245 (mcore_init_extra_frame_info): Update.
5246 * arch-utils.c (init_frame_pc_default): Update.
5247 * m68k-tdep.c (isi_frame_num_args): Update.
5248 (delta68_frame_num_args): Update.
5249 (news_frame_num_args): Update.
5250 * ia64-tdep.c (ia64_pop_frame_regular): Update.
5251 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5252 (alpha_frame_chain): Update.
5253 (alpha_pop_frame): Update.
5254 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
5255 (hppa_init_extra_frame_info): Update.
5256 (hppa_frame_chain): Update.
5257 (hppa_frame_chain_valid): Update.
5258 * cris-tdep.c (cris_init_extra_frame_info): Update.
5259 * avr-tdep.c (avr_init_extra_frame_info): Update.
5260 * arm-tdep.c (arm_frame_chain_valid): Update.
5261 (arm_init_extra_frame_info): Update.
5262 (arm_pop_frame): Update.
5263 * frame.c (frame_pc_unwind): Update.
5264 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
5265 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5266 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5267 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
5268 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
5269 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
5270
5271 2003-03-12 Andrew Cagney <cagney@redhat.com>
5272
5273 Eliminate the need for POP_FRAME.
5274 * frame.c (do_frame_unwind_register): New function.
5275 (frame_pop): When no POP_FRAME, pop the frame using register
5276 unwind and a scratch regcache.
5277 (frame_saved_regs_pop): Delete function.
5278 (trad_frame_unwinder): Update.
5279 * d10v-tdep.c (d10v_frame_pop): Delete function.
5280 (d10v_frame_unwind): Update.
5281 * sentinel-frame.c (sentinel_frame_pop): Delete function.
5282 (sentinel_frame_unwinder): Update.
5283 * dummy-frame.c (dummy_frame_pop): Delete function.
5284 (dummy_frame_unwind): Update.
5285 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
5286 (struct frame_unwind): Update.
5287
5288 2003-03-11 Kevin Buettner <kevinb@redhat.com>
5289
5290 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
5291 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
5292 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
5293 Do range checks on register number obtained from debugging info.
5294 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
5295 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
5296 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
5297 mapping function.
5298 (do_fp_register_row): Fix typo which caused double type to be
5299 used when attempting to unpack a float.
5300
5301 2003-03-11 J. Brobecker <brobecker@gnat.com>
5302
5303 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
5304
5305 2003-03-11 Andrew Cagney <cagney@redhat.com>
5306
5307 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
5308 frame. Problem found by Corinna Vinschen.
5309
5310 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
5311
5312 * doublest.c (floatformat_from_length): Accept also
5313 the real size of 'long double' type.
5314
5315 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
5316
5317 From Klee Dienes <kdienes@apple.com>:
5318 * breakpoint.c (bpstat_copy): Copy the command lines as well
5319 as the old value, to match what is freed in bpstat_clear.
5320
5321 2003-03-10 David Carlton <carlton@math.stanford.edu>
5322
5323 * minsyms.c (add_minsym_to_hash_table): Replace
5324 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5325 (compare_minimal_symbols, compact_minimal_symbols)
5326 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
5327 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
5328 of DEPRECATED_SYMBOL_MATCHES_NAME.
5329 (lookup_minimal_symbol_solib_trampoline): Ditto.
5330
5331 2003-03-10 Andrew Cagney <cagney@redhat.com>
5332
5333 * regcache.h (regcache_cooked_read_ftype): Define.
5334 (regcache_save, regcache_restore): Add a cooked_read parameter.
5335 * regcache.c (regcache_save, regcache_restore): Update.
5336 (do_cooked_read): New function.
5337 (regcache_cpy): Pass do_cooked_read to regcache_save and
5338 regcache_restore.
5339
5340 2003-03-10 Andrew Cagney <cagney@redhat.com>
5341
5342 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
5343 * gdbarch.h, gdbarch.c: Re-generate.
5344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5345 * x86-64-tdep.h: Update.
5346 * x86-64-tdep.c (x86_64_init_abi): Update.
5347 * v850-tdep.c (v850_gdbarch_init): Update.
5348 * sparc-tdep.c (sparc_gdbarch_init): Update.
5349 * sh-tdep.c (sh_gdbarch_init): Update.
5350 * s390-tdep.c (s390_gdbarch_init): Update.
5351 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5352 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5353 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5354 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5355 * mips-tdep.c (mips_gdbarch_init): Update.
5356 * mcore-tdep.c (mcore_gdbarch_init): Update.
5357 * m68k-tdep.c (m68k_gdbarch_init): Update.
5358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5359 * ia64-tdep.c (ia64_gdbarch_init): Update.
5360 * i386-tdep.c (i386_gdbarch_init): Update.
5361 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5362 * hppa-tdep.c (hppa_gdbarch_init): Update.
5363 * h8300-tdep.c (h8300_gdbarch_init): Update.
5364 * frv-tdep.c (frv_gdbarch_init): Update.
5365 * cris-tdep.c (cris_gdbarch_init): Update.
5366 * avr-tdep.c (avr_gdbarch_init): Update.
5367 * arm-tdep.c (arm_gdbarch_init): Update.
5368 * alpha-tdep.c (alpha_gdbarch_init): Update.
5369 * sh-tdep.c (sh_init_extra_frame_info): Update.
5370 (sh64_init_extra_frame_info): Update.
5371 * ns32knbsd-nat.c (frame_num_args): Update.
5372 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
5373 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
5374 (xstormy16_frame_chain_valid): Update.
5375 * vax-tdep.c (vax_saved_pc_after_call): Update.
5376 * v850-tdep.c (v850_frame_chain): Update.
5377 (v850_pop_frame): Update.
5378 (v850_init_extra_frame_info): Update.
5379 * sparc-tdep.c (setup_arbitrary_frame): Update.
5380 * ns32k-tdep.c (umax_frame_num_args): Update.
5381 * s390-tdep.c (s390_pop_frame_regular): Update.
5382 * mn10300-tdep.c (mn10300_frame_chain): Update.
5383 (mn10300_pop_frame_regular): Update.
5384 (mn10300_init_extra_frame_info): Update.
5385 * mips-tdep.c (mips_init_frame_pc_first): Update.
5386 (mips_frame_chain): Update.
5387 (mips_pop_frame): Update.
5388 * mcore-tdep.c (mcore_frame_chain): Update.
5389 (mcore_pop_frame): Update.
5390 (mcore_init_extra_frame_info): Update.
5391 * arch-utils.c (init_frame_pc_default): Update.
5392 * m68k-tdep.c (isi_frame_num_args): Update.
5393 (delta68_frame_num_args): Update.
5394 (news_frame_num_args): Update.
5395 * ia64-tdep.c (ia64_pop_frame_regular): Update.
5396 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5397 (alpha_frame_chain): Update.
5398 (alpha_pop_frame): Update.
5399 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
5400 (hppa_init_extra_frame_info): Update.
5401 (hppa_frame_chain): Update.
5402 (hppa_frame_chain_valid): Update.
5403 * cris-tdep.c (cris_init_extra_frame_info): Update.
5404 * avr-tdep.c (avr_init_extra_frame_info): Update.
5405 * arm-tdep.c (arm_frame_chain_valid): Update.
5406 (arm_init_extra_frame_info): Update.
5407 (arm_pop_frame): Update.
5408 * frame.c (frame_pc_unwind): Update.
5409 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
5410 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5411 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5412 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
5413 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
5414 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
5415
5416 2003-03-10 Andrew Cagney <cagney@redhat.com>
5417
5418 * gdbarch.sh (gdbarch_unwind_pc): New method.
5419 * gdbarch.h, gdbarch.c: Regenerate.
5420 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
5421 but use read_pc and FRAME_SAVED_PC as fall backs.
5422 (frame_saved_regs_pc_unwind): Delete function.
5423 (trad_frame_unwinder): Update.
5424 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
5425 (struct frame_unwind): Update.
5426 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
5427 (dummy_frame_unwind): Update.
5428 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
5429 (sentinel_frame_unwinder): Update.
5430 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
5431 (d10v_frame_unwind): Update.
5432 (d10v_unwind_pc): New function.
5433 (d10v_gdbarch_init): Set unwind_pc.
5434
5435 2003-03-10 Andrew Cagney <cagney@redhat.com>
5436
5437 * gdbarch.h: Re-generate.
5438
5439 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
5440 PC.
5441 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
5442 the PC register.
5443
5444 2003-03-08 Mark Kettenis <kettenis@gnu.org>
5445
5446 * gdbarch.sh (save_dummy_frame_tos): Add comment.
5447
5448 2003-03-08 Andrew Cagney <cagney@redhat.com>
5449
5450 * cli-out.c: Update copyright.
5451 (cli_out_data): Define typedef. Use instead of ui_out_data.
5452
5453 2003-03-08 Andrew Cagney <cagney@redhat.com>
5454
5455 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
5456 the result.
5457
5458 2003-03-07 Andrew Cagney <cagney@redhat.com>
5459
5460 * gdbarch.sh: Don't generate two macro definitions when an
5461 undefined macro taking no arguments.
5462 * gdbarch.h: Regenerate.
5463
5464 2002-03-07 Michal Ludvig <mludvig@suse.cz>
5465
5466 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
5467 (x86_64_unwind_dummy_id): New functions.
5468 (x86_64_init_abi): Register these two new functions.
5469
5470 2003-03-07 Michal Ludvig <mludvig@suse.cz>
5471
5472 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
5473 (x86_64_skip_prologue): Move prologue detection to
5474 separate function.
5475 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
5476
5477 2003-03-05 Andrew Cagney <cagney@redhat.com>
5478
5479 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
5480 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
5481 * frame.c (get_prev_frame): Restructure the frame ID unwind code
5482 to use unwind_dummy_id when a dummy frame.
5483 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
5484 predicate.
5485 * gdbarch.h, gdbarch.c: Regneerate.
5486
5487 2003-03-05 Andrew Cagney <cagney@redhat.com>
5488
5489 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
5490 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
5491 Do not use d10v_read_sp or d10v_read_fp when obtaining register
5492 values.
5493
5494 2003-03-05 Andrew Cagney <cagney@redhat.com>
5495
5496 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
5497 (struct d10v_unwind_cache): Delete field "frameless". Replace
5498 "next_addr" with "sp_offset". Add "r11_offset".
5499 (d10v_frame_unwind_cache): Update.
5500 (prologue_find_regs): Update. When "mv r11, sp", save the
5501 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
5502 RN was saved in r11_offset.
5503
5504 2003-03-05 Andrew Cagney <cagney@redhat.com>
5505
5506 * frame.c (deprecated_update_frame_pc_hack): Also update the the
5507 cached PC value in the next frame.
5508
5509 2003-03-05 Andrew Cagney <cagney@redhat.com>
5510
5511 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
5512 "id_unwind_cache" with "id".
5513 (frame_id_unwind): Delete declaration.
5514 * frame.c (frame_id_unwind): Delete function.
5515 (get_prev_frame): Call the frame id unwind method directly. Store
5516 the returned next frame's ID value in NEXT_FRAME. Note that there
5517 is a problem with the wrong unwind ID being called with the wrong
5518 unwind cache.
5519
5520 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
5521
5522 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
5523
5524 2003-03-05 James Ingham <jingham@apple.com>
5525 Daniel Jacobowitz <drow@mvista.com>
5526
5527 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
5528 (auto_cp_abi): New variable.
5529 (current_cp_abi, num_cp_abis): Make static.
5530 (CP_ABI_MAX): Define.
5531 (cp_abis): Turn into an array.
5532 (value_virtual_fn_field): Fix formatting.
5533 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
5534 takes a pointer.
5535 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
5536 (list_cp_abis, _initialize_cp_abi): New functions.
5537 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
5538 declarations for cp_abis, num_cp_abis, current_cp_abi, and
5539 switch_to_cp_abi. Update prototype for register_cp_abi.
5540 * Makefile.in (cp-abi.o): Update dependencies.
5541 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
5542 instead of switch_to_cp_abi.
5543 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
5544 register_cp_abi.
5545 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
5546 register_cp_abi.
5547 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
5548
5549 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
5550
5551 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
5552 * dwarf2loc.c: Include "regcache.h".
5553 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
5554 register_size.
5555 * Makefile.in (dwarf2loc.o): Update dependencies.
5556
5557 2003-03-04 Theodore A. Roth <troth@openavr.org>
5558
5559 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
5560 number of io registers reported by remote target is not a multiple of
5561 step.
5562
5563 2003-03-04 David Carlton <carlton@math.stanford.edu>
5564
5565 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
5566 (lookup_symbol_aux_psymtabs): Update call to
5567 lookup_partial_symbol.
5568 (lookup_transparent_type, find_main_psymtab)
5569 (make_symbol_overload_list): Ditto.
5570
5571 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
5572
5573 * MAINTAINERS (Write after approval): Update my email address.
5574
5575 2003-03-03 Andrew Cagney <cagney@redhat.com>
5576
5577 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
5578 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
5579 predicate. Replace MAX_REGISTER_RAW_SIZE.
5580 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
5581 MAX_REGISTER_VIRTUAL_SIZE.
5582 * regcache.c (legacy_max_register_raw_size): New function.
5583 (legacy_max_register_virtual_size): New function.
5584 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
5585 (MAX_REGISTER_RAW_SIZE): Define.
5586 (legacy_max_register_raw_size): Declare.
5587 (legacy_max_register_virtual_size): Declare.
5588 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5589 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
5590 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5591 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
5592 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5593 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
5594 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
5595 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
5596 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
5597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5598 * vax-tdep.c (vax_gdbarch_init): Update.
5599 * v850-tdep.c (v850_gdbarch_init): Update.
5600 * sparc-tdep.c (sparc_gdbarch_init): Update.
5601 * sh-tdep.c (sh_gdbarch_init): Update.
5602 * s390-tdep.c (s390_gdbarch_init): Update.
5603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5606 * mips-tdep.c (mips_gdbarch_init): Update.
5607 * mcore-tdep.c (mcore_gdbarch_init): Update.
5608 * m68k-tdep.c (m68k_gdbarch_init): Update.
5609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5610 * ia64-tdep.c (ia64_gdbarch_init): Update.
5611 * i386-tdep.c (i386_gdbarch_init): Update.
5612 * hppa-tdep.c (hppa_gdbarch_init): Update.
5613 * h8300-tdep.c (h8300_gdbarch_init): Update.
5614 * frv-tdep.c (frv_gdbarch_init): Update.
5615 * cris-tdep.c (cris_gdbarch_init): Update.
5616 * avr-tdep.c (avr_gdbarch_init): Update.
5617 * arm-tdep.c (arm_gdbarch_init): Update.
5618 * alpha-tdep.c (alpha_gdbarch_init): Update.
5619 * d10v-tdep.c (d10v_gdbarch_init): Do not set
5620 max_register_raw_size or max_register_virtual_size.
5621
5622 2003-03-03 David Carlton <carlton@math.stanford.edu>
5623
5624 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
5625 SYMBOL_MATCHES_NAME, add comment.
5626 (SYMBOL_MATCHES_NATURAL_NAME): New.
5627 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
5628 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
5629 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
5630 * symtab.c (lookup_partial_symbol): Use
5631 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
5632 unhelpful comment.
5633 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
5634 SYMBOL_MATCHES_NAME.
5635 Fix for PR c++/33.
5636
5637 2003-03-03 David Carlton <carlton@math.stanford.edu>
5638
5639 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
5640 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
5641 by regexp matching against SYMBOL_NATURAL_NAME.
5642
5643 2003-03-03 David Carlton <carlton@math.stanford.edu>
5644
5645 * linespec.c (find_method): Extract code into collect_methods.
5646 (collect_methods): New.
5647
5648 2003-03-02 Mark Kettenis <kettenis@gnu.org>
5649
5650 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
5651 get_frame_base.
5652
5653 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
5654 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5655
5656 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
5657
5658 * arch-utils.c (generic_register_byte): Fix to use the loop index
5659 and not regnum when summing the size of all registers up to regnum.
5660
5661 2003-03-01 Andrew Cagney <cagney@redhat.com>
5662
5663 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
5664 FRAME_INIT_SAVED_REGS.
5665 * gdbarch.h, gdbarch.c: Regenerate.
5666 * stack.c (frame_info): Update.
5667 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
5668 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
5669 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
5670 * ns32k-tdep.c (ns32k_pop_frame): Update.
5671 * mips-tdep.c (mips_pop_frame): Update.
5672 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
5673 * ia64-tdep.c (ia64_frame_chain): Update.
5674 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
5675 (ia64_frameless_function_invocation): Update.
5676 (ia64_init_extra_frame_info): Update.
5677 (ia64_pop_frame_regular): Update.
5678 * frame.h (struct frame_info): Update comment.
5679 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
5680 * frame.c (frame_saved_regs_register_unwind): Update.
5681 (frame_saved_regs_register_unwind): Update.
5682 (deprecated_generic_get_saved_register): Update.
5683 * cris-tdep.c: Update comment.
5684 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
5685 Rename macro.
5686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5687 * x86-64-tdep.c (x86_64_init_abi): Update.
5688 * vax-tdep.c (vax_gdbarch_init): Update.
5689 * v850-tdep.c (v850_gdbarch_init): Update.
5690 * sparc-tdep.c (sparc_gdbarch_init): Update.
5691 * sh-tdep.c (sh_gdbarch_init): Update.
5692 * s390-tdep.c (s390_gdbarch_init): Update.
5693 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5694 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5695 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5696 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5697 * mips-tdep.c (mips_gdbarch_init): Update.
5698 * mcore-tdep.c (mcore_gdbarch_init): Update.
5699 * m68k-tdep.c (m68k_gdbarch_init): Update.
5700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5701 * ia64-tdep.c (ia64_gdbarch_init): Update.
5702 * i386-tdep.c (i386_gdbarch_init): Update.
5703 * frv-tdep.c (frv_gdbarch_init): Update.
5704 * avr-tdep.c (avr_gdbarch_init): Update.
5705 * arm-tdep.c (arm_gdbarch_init): Update.
5706 * alpha-tdep.c (alpha_gdbarch_init): Update.
5707
5708 2003-03-01 Andrew Cagney <cagney@redhat.com>
5709
5710 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
5711 option enum and switch. When no windows, set the interpreter to
5712 INTERP_CONSOLE.
5713
5714 2003-03-01 Andrew Cagney <cagney@redhat.com>
5715
5716 * main.c (captured_main): Replace magic option characters with an
5717 enum.
5718
5719 2003-03-01 Andrew Cagney <cagney@redhat.com>
5720
5721 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
5722 INIT_EXTRA_FRAME_INFO.
5723 * gdbarch.h, gdbarch.c: Regenerate.
5724 * arm-tdep.c: Update comments.
5725 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
5726 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
5727 * frame.h, avr-tdep.c: Ditto.
5728 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
5729 (create_new_frame, legacy_get_prev_frame): Ditto.
5730 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
5731 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
5732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
5733 deprecated_init_extra_frame_info instead of init_extra_frame_info.
5734 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5735 * v850-tdep.c (v850_gdbarch_init): Ditto.
5736 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5737 * sh-tdep.c (sh_gdbarch_init): Ditto.
5738 * s390-tdep.c (s390_gdbarch_init): Ditto.
5739 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
5740 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5741 * mips-tdep.c (mips_gdbarch_init): Ditto.
5742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5744 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5745 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
5746 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5747 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5748 * frv-tdep.c (frv_gdbarch_init): Ditto.
5749 * cris-tdep.c (cris_gdbarch_init): Ditto.
5750 * avr-tdep.c (avr_gdbarch_init): Ditto.
5751 * arm-tdep.c (arm_gdbarch_init): Ditto.
5752 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5753 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5754
5755 2003-03-01 Andrew Cagney <cagney@redhat.com>
5756
5757 * gdbarch.sh (register_type): New function with predicate.
5758 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
5759 * gdbarch.h, gdbarch.c: Re-generate.
5760 * arch-utils.c (generic_register_byte): Use generic_register_size.
5761 (generic_register_size): When available, use
5762 gdbarch_register_type.
5763 * regcache.c (init_regcache_descr): When available, initialize the
5764 register type array using gdbarch_register_type. If the
5765 architecture supplies gdbarch_register_type, do not use the legacy
5766 regcache layout.
5767 * d10v-tdep.c (d10v_register_type): Replace
5768 d10v_register_virtual_type.
5769 (d10v_gdbarch_init): Set register_type instead of
5770 register_virtual_type.
5771
5772 2003-03-01 Andrew Cagney <cagney@redhat.com>
5773
5774 * Makefile.in (ax-gdb.o): Update dependencies.
5775 * ax-gdb.c: Include "regcache.h".
5776 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
5777 * findvar.c (value_of_register): Ditto.
5778 * infcmd.c (default_print_registers_info): Ditto.
5779
5780 2003-03-01 Mark Kettenis <kettenis@gnu.org>
5781
5782 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
5783 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5784
5785 2003-03-01 Mark Kettenis <kettenis@gnu.org>
5786
5787 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
5788 of STREQ.
5789
5790 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
5791
5792 * Makefile.in (dwarf2loc.o): Update dependencies.
5793 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
5794 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
5795 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
5796 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
5797 (locexpr_tracepoint_var_ref): New function.
5798 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
5799
5800 2003-02-28 Andrew Cagney <cagney@redhat.com>
5801
5802 * regcache.c (register_size): New function.
5803 * regcache.h (register_size): Declare
5804 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
5805 max_register_size instead of MAX_REGISTER_RAW_SIZE.
5806
5807 2003-02-28 David Carlton <carlton@math.stanford.edu>
5808
5809 * linespec.c (decode_compound): Extract code into find_method.
5810 (find_method): New.
5811
5812 2003-02-28 J. Brobecker <brobecker@gnat.com>
5813
5814 * Makefile.in: Add rules to build and link in observer.o.
5815
5816 2003-02-27 J. Brobecker <brobecker@gnat.com>
5817
5818 * observer.c: Minor comments edits.
5819
5820 2003-02-27 J. Brobecker <brobecker@gnat.com>
5821
5822 * observer.h, observer.c: New file.
5823
5824 2003-02-27 Andrew Cagney <cagney@redhat.com>
5825
5826 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
5827
5828 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
5829
5830 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
5831 (M6812_OP_STS_EXT): Likewise.
5832 (m6811_prologue): Use the above to recognize prologue.
5833 (m6812_prologue): Likewise.
5834
5835 2003-02-27 David Carlton <carlton@math.stanford.edu>
5836
5837 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
5838 SYMBOL_PRINT_NAME.
5839 (compare_psymbols): Ditto.
5840 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
5841
5842 2003-02-27 Michael Snyder <msnyder@redhat.com>
5843
5844 * f-lang.c (build_fortran_types): New function.
5845 (_initialize_f_language): Gdbarch-register built-in fortran types.
5846 * doublest.c (extract_floating): Fix warning text.
5847
5848 2003-02-27 Andrew Cagney <cagney@redhat.com>
5849
5850 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
5851 predicate. Replaces PUSH_DUMMY_FRAME.
5852 * gdbarch.h, gdbarch.c: Regnerate.
5853 * valops.c (hand_function_call): Update. Call
5854 generic_push_dummy_frame directly.
5855 * vax-tdep.c (vax_gdbarch_init): Update.
5856 * sparc-tdep.c (sparc_gdbarch_init): Update.
5857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5858 * m68k-tdep.c (m68k_gdbarch_init): Update.
5859 * hppa-tdep.c (hppa_gdbarch_init): Update.
5860 * alpha-tdep.c (alpha_gdbarch_init): Update.
5861 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5862 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5863 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
5864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
5865 push_dummy_frame to generic_push_dummy_frame.
5866 * v850-tdep.c (v850_gdbarch_init): Ditto.
5867 * sh-tdep.c (sh_gdbarch_init): Ditto.
5868 * s390-tdep.c (s390_gdbarch_init): Ditto.
5869 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5870 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5871 * mips-tdep.c (mips_gdbarch_init): Ditto.
5872 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5874 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5875 * i386-tdep.c (i386_gdbarch_init): Ditto.
5876 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5877 * frv-tdep.c (frv_gdbarch_init): Ditto.
5878 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5879 * cris-tdep.c (cris_gdbarch_init): Ditto.
5880 * avr-tdep.c (avr_gdbarch_init): Ditto.
5881 * arm-tdep.c (arm_gdbarch_init): Ditto.
5882
5883 2003-02-26 Kevin Buettner <kevinb@redhat.com>
5884
5885 * mips-tdep.c (show_mips_abi): New function.
5886 (_initialize_mips_tdep): Use show_mips_abi() to implement the
5887 command ``show mips abi''.
5888
5889 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
5890
5891 From Elena Zannoni <ezannoni@redhat.com>
5892 * dbxread.c (process_one_symbol): Only record line 0 if one or
5893 more sline entries have been seen for the function.
5894
5895 2003-02-26 Michael Chastain <mec@shout.net>
5896
5897 * configure: Regenerate with autoconf 000227.
5898
5899 2003-02-26 Michael Chastain <mec@shout.net>
5900
5901 Close PR build/660.
5902 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
5903 for old libc5/glibc.
5904 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
5905
5906 2003-02-26 Kris Warkentin <kewarken@qnx.com>
5907
5908 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
5909 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
5910
5911 2003-02-26 Michael Chastain <mec@shout.net>
5912
5913 * configure.in: New variable HAVE_UINTPTR_T.
5914 * configure, config.in: Regenerated.
5915
5916 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
5917
5918 Fix PR build/1097.
5919 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
5920
5921 2003-02-25 Andrew Cagney <cagney@redhat.com>
5922
5923 * frame.c (get_prev_frame): Add comment on check for
5924 inside_entry_func. Only check for inside_entry_file when not a
5925 dummy and not a sentinel. Check that the new frame is not inner
5926 to the old frame.
5927
5928 2003-02-25 Andrew Cagney <cagney@redhat.com>
5929
5930 * frame.c (frame_debug): New variable.
5931 (_initialize_frame): Add "set/show debug frame" command.
5932 (get_prev_frame): When frame_debug, print reason why unwind
5933 failed.
5934
5935 2003-02-25 Michael Chastain <mec@shout.net>
5936
5937 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
5938 to avoid uintptr_t definition problems.
5939
5940 2003-02-25 David Carlton <carlton@math.stanford.edu>
5941
5942 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
5943 (SYMBOL_LINKAGE_NAME): Ditto.
5944 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
5945 SYMBOL_LINKAGE_NAME.
5946 (struct general_symbol_info): Expand comment.
5947 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
5948 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
5949 (SYMBOL_MATCHES_REGEXP): Ditto.
5950 * symtab.c (symbol_natural_name): New function.
5951 * objfiles.h: Replace all uses of SYMBOL_NAME by
5952 DEPRECATED_SYMBOL_NAME.
5953 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
5954 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
5955 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
5956 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
5957 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
5958 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
5959 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
5960 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
5961 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
5962 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
5963 * ada-exp.y: Ditto.
5964 * ada-exp.y: Update copyright.
5965 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
5966 * cp-valprint.c: Ditto.
5967
5968 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
5969
5970 * infptrace.c (detach): Do not flag error if ptrace detach fails
5971 and errno is set to ESRCH.
5972
5973 2003-02-24 Andrew Cagney <cagney@redhat.com>
5974
5975 * infptrace.c (udot_info): Change type of udot_off to long. Use
5976 paddr when printing udot_off's value.
5977
5978 2003-02-24 David Carlton <carlton@math.stanford.edu>
5979
5980 * symtab.c (make_symbol_overload_list): Only read in partial
5981 symtabs containing a matching partial symbol.
5982
5983 2003-02-24 David Carlton <carlton@math.stanford.edu>
5984
5985 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
5986 do the comparison, not strcmp.
5987 * symfile.c (compare_psymbols): Ditto.
5988 * defs.h: Declare strcmp_iw_ordered.
5989 * utils.c (strcmp_iw_ordered): New function.
5990
5991 2003-02-24 Jim Blandy <jimb@redhat.com>
5992
5993 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
5994 support, shared libs): Remove my name from here, to better reflect
5995 reality.
5996
5997 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5998
5999 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
6000 (target_ops): Add to_have_continuable_watchpoint.
6001 * target.c (update_current_target): Add INHERIT line for
6002 to_have_continuable_watchpoint.
6003 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
6004 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
6005 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
6006 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
6007
6008 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
6009
6010 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
6011 maintainership.
6012
6013 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6014
6015 * solib.c (solib_open): Call target defined search function after
6016 failing with solib-search-path.
6017 * solist.h (target_so_ops): Add find_and_open_solib function hook and
6018 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
6019
6020 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6021
6022 * MAINTAINERS: Add myself to Write After section.
6023
6024 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
6025
6026 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
6027
6028 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
6029
6030 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
6031 (m68hc11_add_reggroups): New function.
6032 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
6033 (m68hc11_gdbarch_init): Install the reggroups.
6034 (_initialize_m68hc11_tdep): Initialize them.
6035
6036 2003-02-21 James E Wilson <wilson@tuliptree.org>
6037
6038 * MAINTAINERS: Update my email address.
6039
6040 2003-02-21 David Carlton <carlton@math.stanford.edu>
6041
6042 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
6043
6044 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
6045
6046 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
6047 * symtab.h: Add opaque declarations of struct axs_value and
6048 struct agent_expr.
6049 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
6050 (struct location_funcs): New type.
6051 (struct symbol): Add "loc" to aux_value.
6052 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
6053 * dwarf2read.c: Include "dwarf2expr.h".
6054 (dwarf2_symbol_mark_computed): New function.
6055 (read_func_scope): Use it.
6056 (var_decode_location): New function.
6057 (new_symbol): Use it.
6058 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
6059
6060 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
6061 (dwarf2expr_h, dwarf2loc_h): New variables.
6062 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
6063 (dwarf2expr.o, dwarf2loc.o): New rules.
6064 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
6065 * buildsym.c (finish_block): Handle LOC_COMPUTED and
6066 LOC_COMPUTED_ARG.
6067 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6068 * m2-exp.y (yylex): Likewise.
6069 * printcmd.c (address_info, print_frame_args): Likewise.
6070 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
6071 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6072 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
6073 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
6074 * symtab.c (lookup_block_symbol): Likewise.
6075
6076 2003-02-20 Adam Fedor <fedor@gnu.org>
6077
6078 * symtab.h: Remove objc_specific struct
6079 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
6080 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
6081 Have language_objc use cplus_specific struct.
6082
6083 2003-02-20 Tom Tromey <tromey@redhat.com>
6084
6085 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
6086 TYPE_NAME, when printing a String value. PR java/1075.
6087
6088 2003-02-20 Adam Fedor <fedor@gnu.org>
6089
6090 * objc-lang.h (find_methods): Remove declaration.
6091 * objc-lang.c (find_methods): Make static.
6092
6093 2003-02-20 Christopher Faylor <cgf@redhat.com>
6094
6095 * win32-nat.c (get_image_name): Check return value from
6096 ReadProcessMemory.
6097 (child_xfer_memory): Ditto.
6098
6099 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6100
6101 * configure.in (TARGET_SYSTEM_ROOT): Set default to
6102 ${exec_prefix}/${target_alias}/sys-root. Match explicit
6103 '${exec_prefix}' (in addition to the expansion thereof) as
6104 relocatable.
6105 * configure: Rebuilt.
6106
6107 2003-02-20 David Carlton <carlton@math.stanford.edu>
6108
6109 * symtab.c (search_symbols): Revert the search_symbols part of my
6110 2002-12-23 patch. Add comment.
6111
6112 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6113
6114 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
6115 * dbxread.c (elfstab_build_psymtabs): Don't call
6116 install_minimal_symbols.
6117 (stabsect_build_psymtabs): Likewise.
6118 * elfread.c (elf_symfile_read): Call install_minimal_symbols
6119 earlier.
6120 * somread.c (som_symfile_read): Call install_minimal_symbols
6121 and do_cleanups earlier.
6122 * nlmread.c (nlm_symfile_read): Likewise.
6123 * mdebugread.c (elfmdebug_build_psymtabs): Call
6124 install_minimal_symbols and make appropriate cleanups.
6125
6126 2003-02-20 Kevin Buettner <kevinb@redhat.com>
6127
6128 * solib.c (reload_shared_libraries): New function.
6129 (_initialize_solib): Add callbacks for ``set solib-search-path''
6130 and ``set solib-absolute-prefix''.
6131
6132 2003-02-20 David Carlton <carlton@math.stanford.edu>
6133
6134 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
6135 expand comment.
6136 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
6137 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
6138 * ada-typeprint.c (ada_typedef_print): Ditto.
6139 * ax-gdb.c (gen_var_ref): Ditto.
6140 * breakpoint.c (print_one_breakpoint): Ditto.
6141 * buildsym.c (finish_block): Ditto.
6142 * c-valprint.c (c_val_print): Ditto.
6143 * expprint.c (print_subexp): Ditto.
6144 * findvar.c (locate_var_value): Ditto.
6145 * infcmd.c (jump_command): Ditto.
6146 * linespec.c (decode_line_2, decode_compound): Ditto.
6147 * maint.c (maintenance_translate_address): Ditto.
6148 * objc-lang.c (compare_selectors, compare_classes): Ditto.
6149 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
6150 Ditto.
6151 * p-valprint.c (pascal_val_print): Ditto.
6152 * stabsread.c (define_symbol): Ditto.
6153 * stack.c (print_frame, frame_info, print_block_frame_locals)
6154 (print_frame_arg_vars, return_command): Ditto.
6155 * symfile.c (compare_symbols, compare_psymbols): Ditto.
6156 * symmisc.c (print_symbol): Ditto.
6157 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
6158 (compare_search_syms, print_symbol_info, print_msymbol_info)
6159 (rbreak_command): Ditto.
6160 * tracepoint.c (tracepoints_info): Ditto.
6161 * typeprint.c (typedef_print): Ditto.
6162 * valops.c (value_of_variable, hand_function_call): Ditto.
6163 * cli/cli-cmds.c (edit_command, list_command): Ditto.
6164 * ada-typeprint.c: Update Copyright.
6165 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
6166 * tracepoint.c, cli/cli-cmds.c: Ditto.
6167
6168 2003-02-20 Kevin Buettner <kevinb@redhat.com>
6169
6170 * frame.c (generic_unwind_get_saved_register): Make non-static.
6171 * frame.h (generic_unwind_get_saved_register): Declare.
6172 * mips-tdep.c (read_next_frame_reg): Fetch register from
6173 current regcache when frame is NULL.
6174 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
6175 that must be NULL.
6176 (mips_get_saved_register): Call generic_unwind_get_saved_register()
6177 instead of frame_register_unwind().
6178
6179 2003-02-20 Andrew Cagney <ac131313@redhat.com>
6180
6181 * remote-sim.c (gdbsim_insert_breakpoint)
6182 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
6183 code.
6184
6185 2003-02-20 Andrew Cagney <ac131313@redhat.com>
6186
6187 * remote.c (_initialize_remote): Add commands "set/show remote
6188 hardware-watchpoint-limit" and "set/show remote
6189 hardware-breakpoint-limit".
6190 (remote_hw_watchpoint_limit): Initialize to -1.
6191 (remote_hw_breakpoint_limit): Ditto.
6192 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
6193
6194 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
6195
6196 * coff-pe-read.c: New file - support reading of minimal symbols from a
6197 portable executable using the export table.
6198 * coff-pe-read.h: New file.
6199 * coffread.c: Include coff-pe-read.h.
6200 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
6201 debugging symbols found.
6202 * Makefile.in (SFILES): Add coff-pe-read.o.
6203 (coff_pe_read_h): Define.
6204 (COMMON_OBS): Add coff-pe-read.o.
6205 (coffread.o): Add coff_pe_read_h dependency.
6206 (coff-pe-read.o): New target.
6207
6208 2003-02-19 David Carlton <carlton@math.stanford.edu>
6209
6210 * Makefile.in (SFILES): Add block.c.
6211 (block_h): New.
6212 (COMMON_OBS): Add block.o.
6213 (block.o): New.
6214 (x86-64-tdep.o): Add $(block_h).
6215 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
6216 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
6217 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
6218 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
6219 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
6220 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
6221 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
6222 * value.h: Add opaque declaration for struct block.
6223 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
6224 * ada-lang.h: Ditto.
6225 * x86-64-tdep.c: #include "block.h"
6226 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
6227 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
6228 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
6229 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
6230 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
6231 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
6232 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
6233 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
6234 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
6235 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
6236 * symtab.c (block_function): Ditto.
6237 (contained_in): Ditto.
6238 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
6239 block.h. Add opaque declaration for struct block.
6240 * symtab.h: Move block_function and contained_in declarations to
6241 block.h. Add opaque declarations for struct block, struct
6242 blockvector.
6243 (struct block): Move to block.h.
6244 (struct blockvector): Ditto.
6245 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
6246 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
6247 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
6248 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
6249 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
6250 Ditto.
6251 * block.c: New file.
6252 * block.h: New file.
6253
6254 2003-02-19 Theodore A. Roth <troth@openavr.org>
6255
6256 * avr-tdep.c (avr_extract_return_value): Remove function.
6257 (avr_store_return_value): Remove function.
6258 (avr_extract_struct_value_address): Remove function.
6259 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
6260
6261 2003-02-19 Andrew Cagney <ac131313@redhat.com>
6262
6263 * rs6000-tdep.c: Include "gdb_assert.h".
6264 (registers_e500): Add "acc" and "spefscr".
6265 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
6266 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
6267 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
6268 really is "r0".
6269 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
6270
6271 2003-02-18 Keith Seitz <keiths@redhat.com>
6272
6273 * Makefile.in: Add gdbtk-interps.c.
6274
6275 2003-02-18 Kevin Buettner <kevinb@redhat.com>
6276
6277 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
6278 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
6279
6280 2003-02-18 Andrew Cagney <cagney@redhat.com>
6281
6282 * symtab.h (struct objfile): Add opaque declaration.
6283
6284 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
6285
6286 From Jim Ingham <jingham@apple.com>:
6287 * dbxread.c (process_one_symbol): Use last_function_start rather
6288 than function_start_offset to find the real beginning of the
6289 current function. The latter is just the text section offset on
6290 some systems, the former is always the real function start.
6291
6292 2003-02-17 Andrew Cagney <cagney@redhat.com>
6293
6294 * configure.in: Revert ${target} != ${host}.
6295
6296 2003-02-17 Andrew Cagney <ac131313@redhat.com>
6297
6298 * configure.in (Makefile): Use the test ${target} != ${host},
6299 instead of the absence of the "nm.h" file, to determine of the
6300 configuration non-native.
6301 * configure: Regenerate.
6302
6303 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
6304
6305 From Brian Ford <ford@vss.fsi.com>
6306
6307 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
6308 conditionalize tui_active test.
6309 (lookup_cmd_1): Ditto.
6310
6311 2003-02-14 Mark Kettenis <kettenis@gnu.org>
6312
6313 * configure.in: Add check for _etext.
6314 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
6315 available.
6316 * config.in, configure: regenerated.
6317
6318 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
6319
6320 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
6321
6322 2003-02-14 Andrew Cagney <ac131313@redhat.com>
6323
6324 * main.c (tui_version): Delete variable.
6325 (captured_main): When --tui, set interpreter_p to "tui" instead of
6326 enabling tui_version.
6327 * printcmd.c (display_command) [TUI]: Test tui_active instead of
6328 tui_version.
6329 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
6330 * cli/cli-cmds.c (disassemble_command): Ditto.
6331 * defs.h (tui_version): Delete declaration.
6332 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
6333 (tui-interp.o): Add rules.
6334 (SUBDIR_TUI_OBS): Add "tui-interp.o".
6335
6336 2003-02-14 Christopher Faylor <cgf@redhat.com>
6337
6338 * win32-nat.c (register_loaded_dll): Correctly set address range for
6339 just-loaded dll.
6340
6341 2003-02-12 Jason Molenda (jmolenda@apple.com)
6342
6343 * symmisc.c (print_objfile_statistics): Include information about
6344 the number of psymtabs and symtabs in each object file.
6345
6346 2003-02-13 Keith R Seitz <keiths@redhat.com>
6347
6348 * main.h (struct captured_main_args): Add interpreter_p.
6349 * main.c (captured_main): Initialize interpreter_p from context.
6350 * gdb.c (main): Set interpreter_p argument.
6351 * Makefile.in (gdb.o): Add dependency for interps.h.
6352
6353 2003-02-12 Andrew Cagney <ac131313@redhat.com>
6354
6355 * event-top.c (cli_command_loop): Delete declaration.
6356 (_initialize_event_loop): Delete function setting event_loop_hook.
6357 * event-top.h (cli_command_loop): Declare. Update copyright.
6358 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
6359 * interps.c (current_interp_command_loop): When event_loop_p, call
6360 cli_command_loop.
6361
6362 2003-02-12 Andrew Cagney <ac131313@redhat.com>
6363
6364 * interps.h (interp_command_loop_ftype): Change return type to
6365 void.
6366
6367 2003-02-12 Michal Ludvig <mludvig@suse.cz>
6368
6369 * x86-64-tdep.c (x86_64_extract_return_value)
6370 (x86_64_store_return_value): Use regcache instead of regbuf.
6371 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
6372 * x86-64-linux-nat.c (fill_gregset): Use regcache.
6373
6374 2003-02-11 Andrew Cagney <ac131313@redhat.com>
6375
6376 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
6377 * aclocal.m4: Regenerate.
6378 * configure: Regenerate.
6379
6380 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
6381 TCL_LD_SEARCH_FLAGS.
6382
6383 2003-02-10 Michal Ludvig <mludvig@suse.cz>
6384
6385 * dwarf2cfi.c: Reindented.
6386
6387 2003-02-09 Andrew Cagney <ac131313@redhat.com>
6388
6389 * interps.c (clear_interpreter_hooks): Convert function definition
6390 to ISO C.
6391
6392 2003-02-07 David Carlton <carlton@math.stanford.edu>
6393
6394 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
6395
6396 2003-02-07 Kevin Buettner <kevinb@redhat.com>
6397
6398 * gdbtypes.h (struct main_type): Move ``length'' field from here...
6399 (struct type): ...to here.
6400 (TYPE_LENGTH): Adjust to reflect different location of ``length''
6401 field.
6402 * gdbtypes.c (make_qualified_type): Set length on newly created type.
6403 (replace_type): Set length on all type variants for a given type.
6404
6405 2003-02-07 Andrew Cagney <ac131313@redhat.com>
6406
6407 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
6408 <sys/stat.h>.
6409 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
6410
6411 2003-02-06 Andrew Cagney <ac131313@redhat.com>
6412
6413 * Makefile.in (symm-nat.o): Update dependencies.
6414 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
6415 (lynx-nat.o, ia64-linux-nat.): Ditto.
6416 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
6417 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
6418 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
6419
6420 * Makefile.in (inflow_h): Define.
6421 (procfs.o, inflow.o, procfs.o): Update dependencies.
6422 * inftarg.c (child_stop): Delete extern declaration of
6423 inferior_process_group. Include "inflow.h".
6424 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
6425 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
6426 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
6427 (our_process_group, inferior_process_group): Extern declarations.
6428
6429 * procfs.c: Include "gdb_assert.h".
6430
6431 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6432 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
6433 * jv-typeprint.c (java_type_print_base): Ditto.
6434 * typeprint.c (typedef_print): Eliminate STREQ.
6435 * cli/cli-script.c (define_command, define_command): Ditto.
6436 * main.c (captured_main): Ditto.
6437 * values.c (lookup_internalvar): Ditto.
6438 * utils.c (safe_strerror, parse_escape): Eliminate assignment
6439 within `if' conditional.
6440 * linespec.c (decode_line_2): Ditto.
6441 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
6442 (bfd_openw_with_cleanup): Ditto.
6443
6444 2003-02-07 Mark Kettenis <kettenis@gnu.org>
6445
6446 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
6447 legacy_extract_return_value and store_return_value to
6448 legacy_return_value.
6449
6450 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
6451
6452 * win32-nat.c (get_relocated_section_addrs): New function. Find
6453 section load addresses for symbol handling in relocated DLLs.
6454 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
6455
6456 2003-02-05 Fred Fish <fnf@intrinsity.com>
6457
6458 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
6459 '=' and '!='.
6460 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
6461 with '&' and '=='.
6462 (angel_RDI_info): Ditto.
6463 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
6464 with '&' and '!='.
6465 (threads_continue_all_with_signals): Ditto.
6466
6467 2003-02-05 Jim Ingham <jingham@apple.com>
6468 Keith Seitz <keiths@redhat.com>
6469 Elena Zannoni <ezannoni@redhat.com>
6470 Andrew Cagney <ac131313@redhat.com>
6471
6472 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
6473 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
6474 (SUBDIR_MI_OBS): Add "mi-interp.o".
6475 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
6476 (SFILES): Add "interps.c".
6477 (COMMON_OBS): Add "interps.o".
6478 (interps_h, mi_main_h): Define.
6479 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
6480 (mi-main.o, main.o, event-top.o): Update dependencies.
6481 * cli/cli-interp.c: New file.
6482 * interps.h, interps.c: New files.
6483 * top.c: (gdb_init): Don't install the default interpreter, handed
6484 by captured_main.
6485 * main.c: Include "interps.h".
6486 (interpreter_p): Note that it should malloc'ed.
6487 (captured_command_loop): Call current_interp_command_loop.
6488 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
6489 xfree and xstrdup when updating interpreter_p. Install the
6490 default interpreter. Add hack to stop mi1's copyright notice
6491 being encoded.
6492 * event-top.h (gdb_setup_readline): Declare.
6493 (gdb_disable_readline): Declare.
6494 * event-top.c: Include "interps.h".
6495 (display_gdb_prompt): Call current_interp_display_prompt_p.
6496 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
6497 gdb_stdlog, and gdb_stdtarg.
6498 (_initialize_event_loop): Don't call gdb_setup_readline.
6499 * cli-out.c (cli_out_set_stream): New function.
6500 * cli-out.h (cli_out_set_stream): Declare.
6501
6502 2003-02-06 Mark Kettenis <kettenis@gnu.org>
6503
6504 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
6505 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
6506 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
6507 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
6508 config/i386/i386v42mp.mt: Removed.
6509
6510 2003-02-05 Mark Kettenis <kettenis@gnu.org>
6511
6512 * configure.tgt (*-*-solaris*): Set gdb_osabi to
6513 GDB_OSABI_SOLARIS.
6514
6515 2003-02-05 Michael Chastain <mec@shout.net>
6516
6517 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
6518 2.12.1 and earlier versions.
6519
6520 2003-02-05 Andrew Cagney <ac131313@redhat.com>
6521
6522 Remove orphaned hosts, targets and files.
6523 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
6524 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
6525 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
6526 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
6527 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
6528 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
6529 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
6530 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
6531 * config/sparc/tm-sp64sim.h: Delete.
6532 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
6533 hosts.
6534 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
6535 mips*-dec-mach3* targets.
6536
6537 2003-02-04 Michael Chastain <mec@shout.net>
6538
6539 * NEWS: Fix typo: sepcifying -> specifying.
6540
6541 2003-02-04 Michael Chastain <mec@shout.net>
6542
6543 * dwarfread.c: Add documentation on the state of dwarf-1,
6544 looking towards obsoletion.
6545
6546 2003-02-03 Michael Chastain <mec@shout.net>
6547
6548 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
6549 gdb/testsuite/gdb.c++/pr-1023.exp.
6550
6551 2003-02-04 Andrew Cagney <ac131313@redhat.com>
6552
6553 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
6554 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
6555
6556 * utils.c (init_page_info): Delete reference to MPW in comments.
6557 * main.c (captured_main): Delete #ifdef MPW.
6558
6559 2003-02-04 Andrew Cagney <ac131313@redhat.com>
6560
6561 * NEWS: Note that the m32r-*-elf* is obsolete.
6562 * monitor.c (monitor_expect): Obsolete reference to m32r.
6563 * configure.tgt: Mark m32r-*-elf* as obsolete.
6564 * MAINTAINERS: Mark m32k as obsolete.
6565 * m32r-rom.c: Obsolete file.
6566 * config/m32r/m32r.mt: Obsolete file.
6567 * config/m32r/tm-m32r.h: Obsolete file.
6568 * m32r-stub.c: Obsolete file.
6569 * m32r-tdep.c: Obsolete file.
6570
6571 2003-02-04 Andrew Cagney <ac131313@redhat.com>
6572
6573 * NEWS: Mention that the z8k-zilog-none is obsolete.
6574 * MAINTAINERS: Mark z8k as obsolete.
6575 * configure.tgt: Obsolete the z8k-*-coff* target.
6576 * config/z8k/z8k.mt: Obsolete file.
6577 * config/z8k/tm-z8k.h: Obsolete file.
6578 * z8k-tdep.c: Obsolete file.
6579
6580 2003-02-04 Andrew Cagney <ac131313@redhat.com>
6581
6582 * NEWS: Mention that the mn10200-elf is obsolete.
6583 * configure.tgt: Obsolete mn10200-*-* target.
6584 * breakpoint.c (update_breakpoints_after_exec): Update comment to
6585 mention that the mn10200 is obsolete.
6586 * breakpoint.h: Ditto.
6587 * MAINTAINERS: Mark the mn10200-elf as obsolete.
6588 * config/mn10200/mn10200.mt: Obsolete file.
6589 * config/mn10200/tm-mn10200.h: Obsolete file.
6590 * mn10200-tdep.c: Obsolete file.
6591
6592 2003-02-04 Andrew Cagney <ac131313@redhat.com>
6593
6594 * MAINTAINERS: Mark h8500 as obsolete.
6595 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
6596 * findvar.c (value_from_register): Ditto.
6597 * h8500-tdep.c: Mark file as obsolete.
6598 * config/h8500/h8500.mt: Ditto.
6599 * config/h8500/tm-h8500.h: Ditto.
6600 * NEWS: Mention that h8500 is obsolete.
6601
6602 2003-02-04 David Carlton <carlton@math.stanford.edu>
6603
6604 * objfiles.c (allocate_objfile): Always set name. Add comment at
6605 start of function.
6606 * jv-lang.c (get_dynamics_objfile): Add comment.
6607
6608 2003-02-04 David Carlton <carlton@math.stanford.edu>
6609
6610 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
6611 * printcmd.c (build_address_symbolic): Replace uses of
6612 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
6613 SYMBOL_NAME, and asm_demangle.
6614 Update copyright.
6615
6616 2003-02-04 David Carlton <carlton@math.stanford.edu>
6617
6618 * linespec.c (decode_compound): Extract code into
6619 lookup_prefix_sym.
6620 (lookup_prefix_sym): New function.
6621
6622 2003-02-04 David Carlton <carlton@math.stanford.edu>
6623
6624 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
6625 FLOAT_COERCION_BADNESS.
6626 * gdbtypes.c (rank_one_type): Replace all uses of
6627 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
6628
6629 2003-02-04 Jim Blandy <jimb@redhat.com>
6630
6631 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
6632 section, let dwarf_macinfo_section point to it, not
6633 dwarf_loc_section.
6634
6635 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
6636
6637 Pointed out by Anton Blanchard <anton@samba.org>.
6638 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
6639 (ppc_linux_at_sigtramp_return_path): Use it.
6640
6641 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
6642
6643 * defs.h (streq): Add prototype.
6644 * utils.c (streq): New function.
6645
6646 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
6647 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
6648 * mdebugread.c (new_symbol): Likewise.
6649 * stabsread.c (define_symbol): Likewise.
6650 * coffread.c (process_coff_symbol): Likewise.
6651 * dwarfread.c (new_symbol): Likewise.
6652
6653 * minsyms.c (prim_record_minimal_symbol_and_info): Use
6654 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
6655 here.
6656 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
6657 SYMBOL_INIT_DEMANGLED_NAME.
6658 * objfiles.c: Include "hashtab.h".
6659 (allocate_objfile): Call htab_set_functions_ex for the
6660 demangled_names_hash.
6661 (free_objfile): Call htab_delete for the demangled_names_hash.
6662 * objfiles.h (struct htab): Add declaration.
6663 (struct objfile): Add demangled_names_hash.
6664 * symfile.c: Include "hashtab.h".
6665 (reread_symbols): Call htab_delete for the demangled_names_hash.
6666 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
6667 SYMBOL_NAME in the bcache.
6668 * symtab.c: Include "hashtab.h". Update comments.
6669 (create_demangled_names_hash, symbol_set_names): New functions.
6670 (symbol_find_demangled_name): New function, broken out from
6671 symbol_init_demangled_names.
6672 (symbol_init_demangled_names): Use it.
6673 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
6674 (SYMBOL_SET_NAMES): New macro.
6675 (symbol_set_names): Add prototype.
6676
6677 2003-02-03 Jim Blandy <jimb@redhat.com>
6678
6679 Use a single, consistent representation for an empty minimal
6680 symbol table in an objfile.
6681 * objfiles.c (terminate_minimal_symbol_table): New function.
6682 (allocate_objfile): Call it.
6683 * objfiles.h (terminate_minimal_symbol_table): New declaration.
6684 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
6685 non-NULL.
6686 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
6687 objfile has minimal symbols, compare minimal_symbol_count to zero,
6688 instead of comparing msymbols with NULL.
6689 * objfiles.c (have_minimal_symbols): Same.
6690 * solib-sunos.c (solib_add_common_symbols): Call
6691 terminate_minimal_symbol_table.
6692 * symfile.c (reread_symbols): Same.
6693
6694 2003-02-03 Kevin Buettner <kevinb@redhat.com>
6695
6696 * s390-tdep.c (s390_address_class_type_flags)
6697 (s390_address_class_type_flags_to_name)
6698 (s390_address_class_name_to_type_flags): New functions.
6699 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
6700 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
6701
6702 2003-02-03 Michael Snyder <msnyder@redhat.com>
6703
6704 * arm-tdep.c: Fix spell-o in comment.
6705
6706 2003-02-03 Michal Ludvig <mludvig@suse.cz>
6707
6708 * dwarf2cfi.c (pointer_encoding): Added new parameter.
6709 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
6710 error messages to contain BFD filename.
6711
6712 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
6713
6714 Fix PR gdb/742 gdb/743 gdb/877
6715 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
6716 (do_mixed_source_and_assembly): Use
6717 make_cleanup_ui_out_tuple_begin_end and
6718 make_cleanup_ui_out_tuple_begin_end.
6719 (do_mixed_source_and_assembly): Ditto.
6720 * thread.c (do_captured_list_thread_ids): Ditto.
6721 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
6722 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
6723 ui_out_tuple_end): Delete prototypes.
6724 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
6725 ui_out_list_end, ui_out_tuple_end): Delete.
6726
6727 From Kevin Buettner <kevinb@redhat.com>:
6728 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
6729 * ui-out.c (make_cleanup_ui_out_table_begin_end)
6730 (do_cleanup_table_end): New functions.
6731 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
6732 Use cleanups to invoke_ui_out_tuple_end().
6733 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
6734 * cli/cli-setshow.c (cmd_show_list): Use
6735 make_cleanup_ui_out_tuple_begin_end.
6736
6737 2003-02-02 Andrew Cagney <ac131313@redhat.com>
6738
6739 * frame.c (frame_unwind_register): New function.
6740 (frame_unwind_unsigned_register): Use.
6741 (frame_unwind_signed_register): Use.
6742 (frame_read_register): New function.
6743 * frame.h (frame_unwind_register): Declare.
6744 (frame_read_register): Declare.
6745
6746 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
6747 and frame_unwind_register instead of read_memory, write_register
6748 and deprecated_write_register_bytes.
6749
6750 2003-02-02 Andrew Cagney <ac131313@redhat.com>
6751
6752 * frame.h: Note that namelen can be negative.
6753 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
6754 NAME's length.
6755
6756 * NEWS: Mention that the d10v's `regs' command is deprecated.
6757 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
6758 (d10v_print_registers_info): New function.
6759 (show_regs): Call d10v_print_registers_info.
6760 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
6761
6762 2003-02-02 Mark Kettenis <kettenis@gnu.org>
6763
6764 * stack.c (print_frame_info): Restore call to annotate_frame_begin
6765 lost in the previous patch.
6766
6767 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6768
6769 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
6770 * stack.c (print_frame_info_base): Output complete FRAME tuple
6771 for synthesized frames.
6772
6773 2003-02-02 Andrew Cagney <ac131313@redhat.com>
6774
6775 * mips-nat.c (zerobuf): Delete.
6776 (fetch_inferior_registers): Alloc local zerobuf.
6777 (fetch_core_registers): Alloc local zerobuf.
6778 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
6779 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
6780 * thread-db.c (thread_db_store_registers): Ditto.
6781 * sh-tdep.c (sh_do_register): Ditto.
6782 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
6783 * remote-sim.c (gdbsim_store_register): Ditto.
6784 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6785 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6786 * monitor.c (monitor_supply_register): Ditto.
6787 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
6788 * mips-nat.c (fetch_inferior_registers): Ditto.
6789 * m68klinux-nat.c (fetch_register): Ditto.
6790 * lynx-nat.c (fetch_inferior_registers): Ditto.
6791 (fetch_inferior_registers): Ditto.
6792 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
6793 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6794 (hpux_thread_store_registers): Ditto.
6795 * hppah-nat.c (fetch_register): Ditto.
6796 * hppab-nat.c (fetch_register): Ditto.
6797 * hppa-tdep.c (pa_register_look_aside): Ditto.
6798 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
6799 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
6800
6801 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6802
6803 * gdbarch.sh: Explictly specify all method levels. When a
6804 variable with an empty level, provide a non-multi-arch default.
6805 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
6806 * gdbarch.h: Re-generate.
6807 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
6808 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
6809
6810 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6811
6812 * defs.h (host_pointer_to_address): Delete declaration.
6813 (address_to_host_pointer): Delete declaration.
6814 * utils.c (host_pointer_to_address): Delete function.
6815 (address_to_host_pointer): Delete function.
6816 * procfs.c (procfs_address_to_host_pointer): New function.
6817 * procfs.c (proc_set_watchpoint): Use.
6818 (procfs_can_use_hw_breakpoint): Update comments.
6819 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
6820 (som_solib_add): Use.
6821 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
6822 * hppa-tdep.c (unwind_command): Use.
6823
6824 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6825
6826 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
6827 strlen d_name.
6828
6829 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
6830 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
6831 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
6832 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
6833 (define_symbol): Update.
6834 * symfile.c (generic_load): Remove references to nindy.
6835 * symtab.c: Remove references to nindy.
6836
6837 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6838
6839 * infcmd.c (print_float_info): Delete code conditional on
6840 FLOAT_INFO.
6841 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
6842 * config/m68k/nm-apollo68b.h: Ditto.
6843 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
6844 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
6845 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
6846
6847 2003-02-01 Mark Kettenis <kettenis@gnu.org>
6848
6849 * config/i386/tm-i386os9k.h: Removed.
6850
6851 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
6852 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
6853 they're identical to i[3456]86-*-sysv* now.
6854 * config/i386/i386v32.mh: Removed.
6855 * config/i386/xm-i386v32.h: Removed.
6856 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
6857
6858 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
6859
6860 * config/i386/i386dgux.mh: Removed.
6861 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
6862
6863 * configure.in: Fix typo.
6864 * configure: Regenerated.
6865
6866 2003-01-31 David Carlton <carlton@math.stanford.edu>
6867
6868 * dwarf2read.c (dwarf2_locate_sections): Set
6869 dwarf_ranges_section.
6870
6871 2003-01-31 Andrew Cagney <ac131313@redhat.com>
6872
6873 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
6874 * utils.c: Update comments documenting legitimate uses of PTR.
6875
6876 * utils.c: Re-indent.
6877
6878 * config/djgpp/fnchange.lst: Delete nindy files.
6879 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
6880 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
6881 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
6882 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
6883 * nindy-share/README, nindy-share/Onindy.c: Delete files.
6884 * nindy-tdep.c, nindy-share/Makefile: Delete files.
6885 * Makefile.in (init.c): Remove nindy references.
6886 (saber_gdb): Delete rule.
6887 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
6888 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
6889 and a68v-nat.c.
6890 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
6891 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
6892 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
6893 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
6894 nindy-share/stop.h.
6895 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
6896 * saber.suppress: Delete file.
6897
6898 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
6899
6900 * dbxread.c (stabs_data): New static variable.
6901 (fill_symbuf): Support an in-memory buffer for stabs data.
6902 (stabs_seek): New function.
6903 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
6904 (read_ofile_symtab): Use stabs_seek.
6905 (elfstab_build_psymtabs): Take an asection* instead of
6906 an offset and size. Relocate the stabs data if necessary.
6907 Save the section* for dbx_psymtab_to_symtab.
6908 * dwarf2read.c: Add section variables for each debug section.
6909 (dwarf2_locate_sections): Fill them in.
6910 (dwarf2_read_section): Take an asection* argument.
6911 Relocate the section contents if necessary.
6912 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
6913 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
6914 it to dwarf2_read_section.
6915 (dwarf2_build_frame_info): Update callers.
6916 * elfread.c (elf_symfile_read): Update call to
6917 elfstab_build_psymtabs.
6918 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
6919 (DBX_STAB_SECTION): New macro.
6920 * stabsread.h (elfstab_build_psymtabs): Update prototype.
6921 * symfile.c (symfile_dummy_outputs): New function.
6922 (symfile_relocate_debug_section): New function.
6923 * symfile.h (symfile_relocate_debug_section): Add prototype.
6924
6925 2003-01-31 Richard Henderson <rth@redhat.com>
6926
6927 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
6928 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
6929 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
6930 * alpha-tdep.c (alpha_register_name): Add "unique".
6931 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
6932 (ALPHA_UNIQUE_REGNUM): New.
6933 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
6934
6935 2003-01-31 Andrew Cagney <ac131313@redhat.com>
6936
6937 * README: Remove reference to Ericsson 1800 monitor.
6938 * Makefile.in (remote-es.o): Delete rule.
6939 (ALLDEPFILES): Delete remote-es.c.
6940 * remote-es.c: Delete file.
6941 * config/m68k/es1800.mt: Delete file.
6942 * config/djgpp/fnchange.lst: Update.
6943 * configure.tgt: Delete m68*-ericsson-* target.
6944
6945 2003-01-31 Adam Fedor <fedor@gnu.org>
6946
6947 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
6948 Remove duplicate/shadowing variable of same name.
6949
6950 2003-01-30 Jim Blandy <jimb@redhat.com>
6951
6952 * symfile.c (find_separate_debug_file): Assert that the objfile's
6953 directory name we compute ends with a slash, and then assume that
6954 that's so everywhere we use it.
6955
6956 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
6957
6958 * valops.c (value_assign): Flush frame cache after stores to memory
6959 also.
6960
6961 2003-01-30 Andrew Cagney <ac131313@redhat.com>
6962
6963 * Makefile.in (mon960-rom.o): Delete rule.
6964 * mon960-rom.c: Delete file.
6965
6966 2003-01-30 Andrew Cagney <ac131313@redhat.com>
6967
6968 * d10v-tdep.c: Include "frame-unwind.h".
6969 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
6970 list.
6971 (next_addr, uses_frame): Delete.
6972 (struct d10v_unwind_cache): Define.
6973 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
6974 Use info instead of next_addr and uses_frame globals.
6975 (d10v_frame_init_saved_regs): Delete function.
6976 (d10v_init_extra_frame_info): Delete function.
6977 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
6978 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
6979 init_frame_pc or frame_saved_pc.
6980 (d10v_pop_frame): Delete function.
6981 (do_d10v_pop_frame): Delete function.
6982 (d10v_frame_chain): Delete function.
6983 (d10v_frame_chain_valid): Delete function.
6984 (d10v_frame_pc_unwind): New function.
6985 (d10v_frame_id_unwind): New function.
6986 (saved_regs_unwinder): New function.
6987 (d10v_frame_register_unwind): New function.
6988 (d10v_frame_pop): New function.
6989 (d10v_frame_unwind): New variable.
6990 (d10v_frame_p): New function.
6991 (d10v_frame_saved_pc): Delete function.
6992 * Makefile.in (d10v-tdep.o): Update dependencies.
6993
6994 2003-01-30 J. Brobecker <brobecker@gnat.com>
6995
6996 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
6997 causing some regressions due to a change in the default value
6998 for this macro.
6999
7000 2003-01-29 Richard Henderson <rth@redhat.com>
7001 Elena Zannoni <ezannoni@redhat.com>
7002 Daniel Jacobowitz <drow@mvista.com>
7003
7004 Fix PR gdb/961.
7005 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
7006 variables.
7007 (RANGES_SECTION): New.
7008 (dwarf_ranges_buffer): New variable.
7009 (struct comp_unit_head): Add member "die".
7010 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
7011 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
7012 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
7013 (dwarf2_locate_sections): Likewise.
7014 (dwarf2_build_psymtabs): Read .debug_ranges.
7015 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
7016 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
7017 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
7018 Look for DW_AT_ranges and return the bounding box.
7019
7020 2003-01-29 Brian Ford <ford@vss.fsi.com>
7021
7022 * win32-nat.c (cygwin_pid): Removed as unused.
7023 (child_attach): Try fall back to Cygwin pid.
7024
7025 2003-01-29 Jim Blandy <jimb@redhat.com>
7026
7027 * objfiles.h (struct objfile): Doc fix.
7028
7029 2003-01-29 Andrew Cagney <ac131313@redhat.com>
7030
7031 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
7032 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
7033 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
7034 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
7035 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
7036 (FRAME_SAVED_PC): Change to a function with predicate.
7037 * gdbarch.h, gdbarch.c: Re-generate.
7038
7039 2003-01-28 Andrew Cagney <ac131313@redhat.com>
7040
7041 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
7042
7043 * complaints.c (complain): Delete function.
7044 * complaints.h (struct deprecated_complaint): Delete definition.
7045 (complain): Delete declaration.
7046
7047 2003-01-28 Kevin Buettner <kevinb@redhat.com>
7048
7049 * mips-tdep.c (mips_init_extra_frame_info): Return early for
7050 dummy frames.
7051
7052 2003-01-27 Andrew Cagney <ac131313@redhat.com>
7053
7054 * sentinel-frame.h, sentinel-frame.c: New files.
7055 * Makefile.in (frame.o): Update dependencies.
7056 (SFILES): Add sentinel-frame.c.
7057 (sentinel_frame_h): Define.
7058 (COMMON_OBS): Add sentinel-frame.o.
7059 (sentinel-frame.o): Specify dependencies.
7060 * frame.c: Include "sentinel-frame.h".
7061 (frame_register_unwind): Rewrite assuming that there is always a a
7062 ->next frame.
7063 (frame_register, generic_unwind_get_saved_register): Ditto.
7064 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
7065 (create_sentinel_frame, unwind_to_current_frame): New functions.
7066 (get_current_frame): Rewrite using create_sentinel_frame and
7067 unwind_to_current_frame. When possible, always create a frame.
7068 (create_new_frame): Set next to the sentinel frame.
7069 (get_next_frame): Rewrite. Don't go below the level 0 frame.
7070 (deprecated_update_frame_pc_hack): Update the next frame's PC and
7071 ID cache when necessary.
7072 (frame_saved_regs_id_unwind): Use frame_relative_level.
7073 (deprecated_generic_get_saved_register): Use frame_relative_level,
7074 get_frame_saved_regs, get_frame_pc, get_frame_base and
7075 get_next_frame.
7076 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
7077 frame_register.
7078
7079 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
7080
7081 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
7082
7083 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
7084
7085 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
7086 (maintenance_set_profile_cmd): Use error () instead of warning ().
7087
7088 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
7089
7090 * configure.in: Check that -pg works if using --enable-profiling.
7091 Check for monstartup and _mcleanup regardless of --enable-profiling.
7092 * maint.c: Check for monstartup and _mcleanup before using them.
7093 * config.in: Regenerated.
7094 * configure: Regenerated.
7095
7096 2003-01-24 Nick Clifton <nickc@redhat.com>
7097
7098 * Add sh2e support:
7099
7100 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
7101
7102 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
7103 (sh2e_show_regs): New.
7104 (sh_gdbarch_init): Handle bfd_mach_sh2e.
7105 * config/sh/tm-sh.h: Added sh2e to comments.
7106
7107 2003-01-23 Jim Blandy <jimb@redhat.com>
7108
7109 * symfile.c (syms_from_objfile): Don't print the "(no debugging
7110 symbols found)" message here; we haven't checked for a separate
7111 debug info file yet, so we don't know yet.
7112 (symbol_file_add_with_addrs_or_offsets): Print it here, after
7113 we've looked everywhere. Also, there's no need to print a special
7114 message when we're loading the separate debug info file: the one
7115 symbol_file_add prints is fine.
7116
7117 2003-01-23 Alexander Larsson <alexl@redhat.com>
7118 Jim Blandy <jimb@redhat.com>
7119
7120 Add support for executables whose debug info has been separated
7121 out into a separate file, leaving only a link behind.
7122 * objfiles.h (struct objfile): New fields: separate_debug_objfile
7123 and separate_debug_objfile_backlink.
7124 (put_objfile_before): New declaration.
7125 * symfile.c: #include "filenames.h".
7126 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
7127 debug info in a separate file, read that, too. Save the addrs
7128 argument, so we can use it again to read the separated debug info;
7129 syms_from_objfile modifies the table we pass it.
7130 (reread_symbols): After re-reading an objfile, call
7131 reread_separate_symbols to refresh its separate debug info
7132 objfile, if it has one.
7133 (reread_separate_symbols, find_separate_debug_file,
7134 get_debug_link_info, separate_debug_file_exists): New functions.
7135 (debug_file_directory): New global var.
7136 (_initialize_symfile): Initialize debug_file_directory, and
7137 provide the new `set debug-file-directory' command to let the user
7138 change it.
7139 * objfiles.c (free_objfile): If this objfile has its debug info in
7140 a separate objfile, free that one too. If this is itself a
7141 separate debug info objfile, clear our parent's backlink.
7142 (put_objfile_before): New function.
7143 * utils.c (gnu_debuglink_crc32): New function.
7144 * defs.h (gnu_debuglink_crc32): New declaration.
7145 * Makefile.in (symfile.o): Note dependency on "filenames.h".
7146 * configure.in: Handle --with-separate-debug-dir config option.
7147 * acinclude.m4 (AC_DEFINE_DIR): New macro.
7148 * acconfig.h (DEBUGDIR): New macro.
7149 * configure, aclocal.m4, config.in: Regenerated.
7150
7151 2003-01-22 Jim Blandy <jimb@redhat.com>
7152
7153 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
7154 like the old symbol_file_add, but taking new arguments: you can
7155 now pass in either a `struct section_addr_info' list to say where
7156 each section is loaded, or a `struct section_offsets' table. Pass
7157 these new arguments through to syms_from_objfile as appropriate.
7158 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7159 with the appropriate quiescent values for the new arguments.
7160
7161 * symfile.c: #include "gdb_assert.h".
7162 (syms_from_objfile): Add the ability to pass in a section offset
7163 table directly, as an alternative to the section_addr_info table.
7164 Document arguments better.
7165 (symbol_file_add): Pass extra arguments to syms_from_objfile.
7166 * symfile.h (syms_from_objfile): Update declaration.
7167 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
7168 syms_from_objfile.
7169 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
7170
7171 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
7172
7173 Original patch by Tom Tromey <tromey@cygnus.com> and
7174 Jason Molenda <jmolenda@apple.com>.
7175 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
7176 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
7177 * NEWS: Mention profiling.
7178 * configure.in (--enable-gdbtk): Fix typo.
7179 (--enable-profiling): New. Set PROFILE_CFLAGS.
7180 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
7181 Fill in function.
7182 (profiling_state): New variable.
7183 (mcleanup_wrapper): New function.
7184 (_initialize_maint): Remove NOTYET, fix call to
7185 add_setshow_boolean_cmd for "maint set profile".
7186 * configure: Regenerated.
7187
7188 2003-01-21 Martin M. Hunt <hunt@redhat.com>
7189
7190 * Makefile.in (install-gdbtk): Install PNG images too.
7191
7192 2003-01-21 Andrew Cagney <ac131313@redhat.com>
7193
7194 * exec.c (text_start): Delete global variable.
7195 (exec_file_attach): Make text_start local to the function.
7196 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
7197 * valops.c (hand_function_call): Delete code that handles
7198 BEFORE_TEXT_END and AFTER_TEXT_END.
7199 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
7200 of CALL_DUMMY_LOCATION.
7201 * gdbarch.c: Regenerate.
7202 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
7203 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
7204 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
7205 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
7206 (text_end): Delete extern declaration.
7207
7208 2003-01-21 Andrew Cagney <ac131313@redhat.com>
7209
7210 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
7211 * blockframe.c (backtrace_below_main): Move to "frame.c".
7212 (frame_chain_valid): Delete check for backtrace_below_main.
7213 (_initialize_blockframe): Delete initialization, move ``set
7214 backtrace-below-main'' command to "frame.c".
7215 (do_flush_frames_sfunc): Delete function.
7216 * frame.c: Include "command.h" and "gdbcmd.h".
7217 (frame_type_from_pc): New function.
7218 (create_new_frame): Use frame_type_from_pc.
7219 (legacy_get_prev_frame): New function.
7220 (get_prev_frame): Rewrite. When an old style frame, call
7221 legacy_get_prev_frame. Otherwize, unwind the PC first.
7222 (_initialize_frame): Add ``set backtrace-below-main'' command.
7223 * Makefile.in (frame.o): Update dependencies.
7224
7225 2003-01-19 Andrew Cagney <ac131313@redhat.com>
7226
7227 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
7228 DEPRECATED_REGISTERS_INFO.
7229
7230 2003-01-19 Andrew Cagney <ac131313@redhat.com>
7231
7232 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
7233 Maintainers'. Update `Various Maintainers'.
7234
7235 2003-01-19 Andrew Cagney <ac131313@redhat.com>
7236
7237 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
7238 * gdbarch.sh (POP_FRAME): Change to function with predicate.
7239 Suppress actual parameters when `-'.
7240 * gdbarch.h, gdbarch.c: Regenerate.
7241
7242 2003-01-19 Andrew Cagney <ac131313@redhat.com>
7243
7244 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
7245 code handling dummy frames.
7246
7247 2003-01-19 Andrew Cagney <ac131313@redhat.com>
7248
7249 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
7250 (struct frame_unwind): Add field pop.
7251 * frame.h (frame_pop): Declare.
7252 * frame.c (frame_saved_regs_pop): New function.
7253 (trad_frame_unwinder): Add frame_saved_regs_pop.
7254 (frame_pop): New function.
7255 * dummy-frame.c (dummy_frame_pop): New function.
7256 (discard_innermost_dummy): New function.
7257 (generic_pop_dummy_frame): Use discard_innermost_dummy.
7258 (dummy_frame_unwind): Add dummy_frame_pop.
7259 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
7260 * valops.c (hand_function_call): Ditto.
7261 * stack.c (return_command): Ditto.
7262
7263 2003-01-18 Andrew Cagney <ac131313@redhat.com>
7264
7265 * cris-tdep.c: Fix function declaration indentation.
7266 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
7267 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
7268 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
7269 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
7270 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
7271 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
7272
7273 2003-01-18 Michael Chastain <mec@shout.net>
7274
7275 * README (Unpacking and Installation -- quick overview):
7276 Warn against ".../gdb-5.3/gdb/configure".
7277
7278 2003-01-18 Andrew Cagney <ac131313@redhat.com>
7279
7280 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
7281 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
7282 (struct frame_unwind): Declare opaque.
7283 (dummy_frame_p): Declare function.
7284 * dummy-frame.c (dummy_frame_id_unwind): Make static.
7285 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
7286 * dummy-frame.c: Include "frame-unwind.h".
7287 (dummy_frame_p): New function.
7288 (dummy_frame_unwind): New variable.
7289 * frame.c: Include "frame-unwind.h".
7290 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
7291 to use the new unwind field.
7292 (set_unwind_by_pc): Delete function.
7293 (create_new_frame, get_prev_frame): Set unwind field using
7294 frame_unwind_find_by_pc.
7295 (trad_frame_unwind, trad_frame_unwinder): New variables.
7296 * frame.h (trad_frame_unwind): Declare variable.
7297 (frame_id_unwind_ftype): Delete declaration.
7298 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
7299 (struct frame_unwind): Declare opaque.
7300 (struct frame_info): Replace the fields id_unwind, pc_unwind and
7301 register_unwind with a single unwind pointer.
7302 * frame-unwind.h, frame-unwind.c: New files.
7303 * Makefile.in (SFILES): Add frame-unwind.c.
7304 (frame_unwind_h): Define.
7305 (COMMON_OBS): Add frame-unwind.o.
7306 (frame-unwind.o): Specify dependencies.
7307 (frame.o, dummy-frame.o): Update dependencies.
7308
7309 2003-01-18 Andrew Cagney <ac131313@redhat.com>
7310
7311 * ada-valprint.c: Eliminate PTR.
7312 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
7313 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
7314 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
7315 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
7316 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
7317 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
7318 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
7319
7320 2003-01-17 Andrew Cagney <ac131313@redhat.com>
7321
7322 * main.c (captured_main): Don't use PTR.
7323 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
7324 * gdbtypes.c (lookup_primitive_typename): Ditto.
7325 (lookup_struct_elt_type): Ditto.
7326 * f-valprint.c (info_common_command): Ditto.
7327 (list_all_visible_commons): Ditto.
7328 * jv-typeprint.c (java_type_print_base): Ditto.
7329
7330 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
7331 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
7332 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
7333 i386-interix-nat.c and i386-interix-tdep.c. Rename
7334 m68klinux-nat.c and m68klinux-tdep.c. Rename
7335 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
7336 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
7337 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
7338 * main.c (captured_main): Use xfree, not free.
7339
7340 2003-01-16 Andrew Cagney <ac131313@redhat.com>
7341
7342 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
7343 ID back using a parameter.
7344 * frame.c (frame_id_unwind): Update call.
7345 (frame_saved_regs_id_unwind): Update.
7346 * dummy-frame.c (dummy_frame_id_unwind): Update function.
7347 * dummy-frame.h (struct frame_id): Add opaque declaration.
7348 (dummy_frame_id_unwind): Update declaration.
7349
7350 2003-01-15 Andrew Cagney <ac131313@redhat.com>
7351
7352 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
7353
7354 2003-01-15 Stephen P. Smith <ischis2@cox.net>
7355
7356 * MAINTAINERS (Stephen P. Smith): Updated email address.
7357
7358 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
7359
7360 Fix PR gdb/898
7361 * breakpoint.c (until_break_command): Add new argument. Use it to
7362 decide whether to stop only at the current frame or not.
7363 * breakpoint.h (until_break_command): Update prototype.
7364 * infcmd.c (until_command): Add new argument to until_break_command
7365 call.
7366 (advance_command): New function.
7367 (_initialize_infcmd): Update help string for 'until' command.
7368 Add new 'advance' command.
7369
7370 2003-01-14 David Carlton <carlton@math.stanford.edu>
7371
7372 * linespec.c (decode_line_1): Normalize comments.
7373 (set_flags): Ditto.
7374 (locate_first_half): Ditto.
7375 (decode_compound): Ditto.
7376 (symtab_from_filename): Ditto.
7377 (decode_all_digits): Ditto.
7378 (decode_dollar): Ditto.
7379 (find_methods): Ditto.
7380 (find_toplevel_char): Ditto.
7381
7382 2003-01-13 Andrew Cagney <ac131313@redhat.com>
7383
7384 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
7385 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
7386 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
7387 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
7388 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
7389 * language.c, language.h, m32r-tdep.c: Update copyright.
7390 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
7391 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
7392 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
7393 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
7394 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
7395 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
7396
7397 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
7398
7399 * stabsread.h (process_later, resolve_cfront_continuation):
7400 Obsolete.
7401 Update copyright years.
7402 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
7403 Update copyright year.
7404 * dbxread.c(struct cont_elem): Obsolete.
7405 (process_later, process_now): Obsolete functions.
7406 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
7407 Update copyright year.
7408 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
7409 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
7410 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
7411 (parse_partial_symbols): Obsolete cfront support.
7412 * stabsread.c
7413 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
7414 macros.
7415 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
7416 read_cfront_baseclasses, read_cfront_member_functions,
7417 resolve_cfront_continuation,read_cfront_static_fields,
7418 copy_cfront_struct_fields): Obsolete functions.
7419 (define_symbol, read_one_struct_field): Obsolete cfront support.
7420 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
7421 Update Copyright year.
7422
7423 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
7424
7425 * stack.c (print_frame_info, print_stack_frame_base_stub,
7426 print_stack_frame_base, show_and_print_stack_frame_stub,
7427 show_and_print_stack_frame, print_only_stack_frame_stub,
7428 print_only_stack_frame): Delete functions.
7429 (print_stack_frame_stub): Call print_frame_info instead of
7430 print_frame_info_base.
7431 (print_frame_info_base): Rename to print_frame_info.
7432 (backtrace_command_1): Call print_frame_info, instead of
7433 print_frame_info_base.
7434 (current_frame_command): Call print_stack_frame, instead of
7435 print_only_stack_frame.
7436 (frame_command): Call print_stack_frame, instead of
7437 show_and_print_stack_frame.
7438 (up_command): Ditto.
7439 (down_command): Ditto.
7440 * frame.h (print_only_stack_frame): Delete prototype.
7441 * infrun.c (normal_stop): Call print_stack_frame, instead of
7442 show_and_print_stack_frame.
7443 * thread.c (info_threads_command): Call print_stack_frame, instead
7444 of print_only_stack_frame.
7445
7446 2003-01-13 Andrew Cagney <ac131313@redhat.com>
7447
7448 * README (Graphical interface to GDB): Update URL. Point at
7449 gdb/links/.
7450
7451 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
7452 version match.
7453
7454 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7455
7456 * symtab.c (find_pc_sect_line): Don't consider end-of-function
7457 lines.
7458
7459 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7460
7461 * thread-db.c (attach_thread): Prototype.
7462 (struct private_thread_info): Remove lwpid. Add thread handle (th),
7463 thread information (ti), and valid flags (th_valid, ti_valid).
7464 (attach_thread): Move target_pid_to_str call to after the thread
7465 is added to GDB's list. Initialize the cache.
7466 (thread_get_info_callback, thread_db_map_id2thr)
7467 (thread_db_get_info): New functions.
7468 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
7469 (thread_db_store_registers, thread_db_thread_alive)
7470 (thread_db_get_thread_local_address): Use them.
7471 (thread_db_pid_to_str): Likewise. Return "Missing" instead
7472 of calling error() for threads in unknown state.
7473
7474 (clear_lwpid_callback): New function.
7475 (thread_db_resume): Use it to clear the cache.
7476
7477 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7478
7479 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
7480 (resume_callback): Remove dead code.
7481
7482 2003-01-13 Andrew Cagney <ac131313@redhat.com>
7483
7484 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
7485 predicate.
7486 * gdbarch.h, gdbarch.c: Regenerate.
7487 * stack.c (frame_info): Only initialize the saved registers when
7488 FRAME_INIT_SAVED_REGS_P.
7489 * frame.c (frame_saved_regs_register_unwind): Assert
7490 FRAME_INIT_SAVED_REGS_P.
7491 (deprecated_generic_get_saved_register): Ditto.
7492
7493 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7494
7495 * source.c (openp): Squelch warning about "filename".
7496
7497 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7498
7499 * source.c (openp): If the file does not exist don't necessarily
7500 search the path.
7501
7502 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7503
7504 Fix PR gdb/872.
7505 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
7506 (integer_types_same_name_p): New function.
7507 (rank_one_type): Use it.
7508 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
7509
7510 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
7511
7512 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
7513 variables.
7514 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
7515 * configure.in: Add --with-sysroot.
7516 * configure: Regenerated.
7517 * main.c (gdb_sysroot): New variable.
7518 (captured_main): Initialize gdb_sysroot.
7519 * defs.h (gdb_sysroot): New extern declaration.
7520 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
7521
7522 2003-01-12 Michael Chastain <mec@shout.net>
7523
7524 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
7525
7526 2003-01-12 Michael Chastain <mec@shout.net>
7527
7528 * top.c (print_gdb_version): Bump copyright year to 2003.
7529
7530 2003-01-12 David Carlton <carlton@bactrian.org>
7531
7532 * linespec.c (symtab_from_filename): Rename variable 's' to
7533 'file_symtab'.
7534
7535 2003-01-12 Andrew Cagney <ac131313@redhat.com>
7536
7537 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
7538 dummy frame.
7539 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
7540
7541 2003-01-12 Andrew Cagney <ac131313@redhat.com>
7542
7543 * d10v-tdep.c: Include "gdb_assert.h".
7544 (d10v_store_return_value): Rewrite to match current interface.
7545 (d10v_extract_struct_value_address): Ditto.
7546 (d10v_extract_return_value): Ditto.
7547 (d10v_gdbarch_init): Set store_restore_value,
7548 extract_struct_value_address and extract_return_value.
7549
7550 2003-01-12 J. Brobecker <brobecker@gnat.com>
7551
7552 * hpread.c (set_namestring): New procedure replacing the
7553 SET_NAMESTRING macro.
7554 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
7555 by calls to set_namestring.
7556
7557 2003-01-11 J. Brobecker <brobecker@gnat.com>
7558
7559 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
7560 a compilation warning.
7561 (hpread_process_one_debug_symbol): Likewise.
7562
7563 2003-01-10 David Carlton <carlton@math.stanford.edu>
7564
7565 * linespec.c (decode_line_1): Rename variable 's' to
7566 'file_symtab'.
7567 (decode_all_digits): Rename argument 's' to 'file_symtab'.
7568 (decode_dollar): Ditto.
7569 (decode_variable): Ditto.
7570 (symbol_found): Ditto.
7571
7572 2003-01-09 Michael Chastain <mec@shout.net>
7573
7574 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
7575
7576 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
7577
7578 * win32-nat.c (set_process_privilege): New function.
7579 (child_attach): Call set_process_privilege() to enable the
7580 SE_DEBUG_NAME user privilege if available in process token.
7581
7582 2003-01-10 J. Brobecker <brobecker@gnat.com>
7583
7584 * hpread.c (hpread_process_one_debug_symbol): Fix a small
7585 compilation error in the previous revision.
7586
7587 2003-01-09 David Carlton <carlton@math.stanford.edu>
7588
7589 * linespec.c: Update copyright.
7590
7591 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
7592
7593 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
7594 than inferior_ptid.
7595 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
7596
7597 2003-01-09 Andrew Cagney <ac131313@redhat.com>
7598
7599 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
7600 Update comments.
7601 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
7602 (frame_saved_regs_zalloc): Update.
7603 (frame_saved_regs_register_unwind): Update.
7604 (create_new_frame): Update.
7605 (get_prev_frame): Update.
7606 (frame_extra_info_zalloc): Update.
7607 (deprecated_get_frame_saved_regs): Update.
7608 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
7609 * cris-tdep.c: Update comment.
7610
7611 * somsolib.h: Fix function indentation.
7612 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
7613 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
7614 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
7615 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
7616 * somsolib.c, inftarg.c: Remove assignment in if conditional.
7617
7618 * infrun.c (follow_fork): Use ISO C definition.
7619 * expprint.c (print_subexp): Use xfree instead of free.
7620 * charset.c: Include "gdb_string.h" instead of <string.h>.
7621 (register_iconv_charsets): Use ISO C definition.
7622 (host_charset, target_charset): Ditto.
7623 * Makefile.in (charset.o): Update dependencies.
7624 (mi-cmd-env.o): Update dependencies.
7625
7626 2003-01-08 Andrew Cagney <cagney@redhat.com>
7627
7628 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
7629 get_frame_base.
7630
7631 2003-01-08 Andrew Cagney <ac131313@redhat.com>
7632
7633 * gdb_mbuild.sh: Add --keep option. When specified, keep the
7634 build directories. Save edited gdb output in Mbuild.log. If a
7635 build fails, remove any final GDB executable.
7636
7637 2003-01-08 Andrew Cagney <ac131313@redhat.com>
7638
7639 * gdb_mbuild.sh: Edit the output of `maint print architecture'
7640 replacing hex constants with function names and stripping leading
7641 file name directory prefixes.
7642
7643 2003-01-08 Andrew Cagney <cagney@redhat.com>
7644
7645 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
7646 get_frame_base.
7647
7648 2003-01-08 David Carlton <carlton@math.stanford.edu>
7649
7650 * linespec.c (decode_line_1): Move code into decode_variable.
7651 (decode_variable): New function.
7652
7653 2003-01-08 Andrew Cagney <ac131313@redhat.com>
7654
7655 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
7656
7657 2003-01-08 Andrew Cagney <cagney@redhat.com>
7658
7659 * cris-tdep.c (cris_frame_init_saved_regs): Use
7660 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
7661 saved_regs buffer.
7662 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7663 (sh64_nofp_frame_init_saved_regs): Ditto.
7664 (sh_fp_frame_init_saved_regs): Ditto.
7665 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
7666 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
7667 * mcore-tdep.c (analyze_dummy_frame): Ditto.
7668 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
7669
7670 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
7671
7672 * minsyms.c (lookup_minimal_symbol): Update comment.
7673 (lookup_minimal_symbol_text): Update comment. Use the hash table.
7674 (lookup_minimal_symbol_solib_trampoline): Likewise.
7675
7676 2003-01-08 Andrew Cagney <cagney@redhat.com>
7677
7678 * d10v-tdep.c (d10v_init_extra_frame_info): Use
7679 frame_relative_level.
7680
7681 * alpha-tdep.c: Use get_frame_extra_info.
7682 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7683 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
7684 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
7685 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
7686
7687 * alpha-tdep.c: Use get_next_frame.
7688 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7689 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
7690 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
7691 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
7692 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
7693 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
7694 * xstormy16-tdep.c: Ditto.
7695
7696 2003-01-07 Andrew Cagney <cagney@redhat.com>
7697
7698 * alpha-tdep.c: Use get_frame_base.
7699 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7700 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
7701 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
7702 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
7703 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
7704 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
7705 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
7706 * config/sparc/tm-sparc.h: Ditto.
7707
7708 2003-01-07 Andrew Cagney <cagney@redhat.com>
7709
7710 * frame.c (deprecated_get_frame_context): New function.
7711 (deprecated_set_frame_context): New function.
7712 * frame.h (deprecated_get_frame_context): Declare.
7713 (deprecated_set_frame_context): Declare.
7714 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
7715 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
7716
7717 2003-01-07 Andrew Cagney <cagney@redhat.com>
7718
7719 * frame.c (deprecated_set_frame_next_hack): New function.
7720 (deprecated_set_frame_prev_hack): New function.
7721 * frame.h (deprecated_set_frame_next_hack): Declare.
7722 (deprecated_set_frame_prev_hack): Declare.
7723 * mcore-tdep.c (analyze_dummy_frame): Use
7724 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
7725 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
7726
7727 2003-01-07 David Carlton <carlton@math.stanford.edu>
7728
7729 * linespec.c (decode_line_1): Move code into decode_dollar.
7730 (decode_dollar): New function.
7731
7732 2003-01-07 Andrew Cagney <cagney@redhat.com>
7733
7734 * arm-tdep.c (arm_init_extra_frame_info): Use
7735 deprecated_update_frame_base_hack.
7736 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
7737 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
7738 (fix_frame_pointer): Ditto.
7739 (mn10300_analyze_prologue): Ditto.
7740
7741 2003-01-07 Andrew Cagney <cagney@redhat.com>
7742
7743 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
7744 extra_info using frame_extra_info_zalloc.
7745 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7746 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
7747 (sh64_init_extra_frame_info): Ditto.
7748 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
7749 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
7750 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
7751 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
7752 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
7753 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
7754 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
7755 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
7756 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
7757 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
7758 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7759 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
7760
7761 * mn10300-tdep.c (analyze_dummy_frame): Use
7762 deprecated_set_frame_extra_info_hack.
7763 * mcore-tdep.c (analyze_dummy_frame): Ditto.
7764
7765 2003-01-07 J. Brobecker <brobecker@gnat.com>
7766
7767 * mdebugread.c (parse_symbol): Skip stProc entries which storage
7768 class is not scText. These do not define "real" procedures.
7769 (parse_partial_symbols): Likewise.
7770
7771 2003-01-06 Michael Snyder <msnyder@redhat.com>
7772
7773 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
7774
7775 2003-01-06 Andrew Cagney <ac131313@redhat.com>
7776
7777 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
7778 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
7779 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
7780 deprecated_frame_xmalloc_with_cleanup.
7781 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
7782 deprecated_frame_xmalloc.
7783 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
7784 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
7785
7786 2003-01-06 Andrew Cagney <cagney@redhat.com>
7787
7788 * x86-64-linux-tdep.c: Include "osabi.h".
7789 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
7790
7791 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
7792
7793 2003-01-06 Andrew Cagney <cagney@redhat.com>
7794
7795 * MAINTAINERS (Target Instruction Set Architectures): Update
7796 arm-elf. Can be built with -Werror, has been multiarched.
7797
7798 * value.h (unpack_long): Make buffer parameter constant.
7799 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
7800 * scm-lang.h (scm_parse): Ditto.
7801 * defs.h (extract_typed_address, extract_address): Ditto.
7802 (extract_long_unsigned_integer): Ditto.
7803 * inferior.h (unsigned_pointer_to_address): Ditto.
7804 (signed_pointer_to_address): Ditto.
7805 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
7806 * gdbarch.h, gdbarch.c: Regenerate.
7807 * findvar.c (extract_long_unsigned_integer): Update.
7808 (extract_address): Update.
7809 (extract_typed_address): Update.
7810 (unsigned_pointer_to_address): Update.
7811 * values.c (unpack_long): Update.
7812 (unpack_double): Update.
7813 (unpack_pointer): Update.
7814 (unpack_field_as_long): Update.
7815 * d10v-tdep.c (d10v_pointer_to_address): Update.
7816 * avr-tdep.c (avr_pointer_to_address): Update.
7817 * scm-lang.c (scm_unpack): Update.
7818 * findvar.c (signed_pointer_to_address): Update.
7819
7820 2003-01-06 Michal Ludvig <mludvig@suse.cz>
7821
7822 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
7823 since it is in i386-tdep.c.
7824
7825 2003-01-06 J. Brobecker <brobecker@gnat.com>
7826
7827 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
7828 failure introduced in the previous change.
7829
7830 2003-01-05 Michael Chastain <mec@shout.net>
7831
7832 * README: Remove references to deleted remote-*.c files:
7833 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
7834 remote-nrom.c, remote-os9k.c, remote-udi.c.
7835
7836 2003-01-05 Mark Kettenis <kettenis@gnu.org>
7837
7838 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
7839 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
7840 i386_get_longjmp_target.
7841
7842 2003-01-05 Andrew Cagney <ac131313@redhat.com>
7843
7844 * arm-tdep.c (prologue_cache): Change to a pointer.
7845 (_initialize_arm_tdep): Allocate prologue_cache.
7846 (check_prologue_cache): Update.
7847 (save_prologue_cache): Update.
7848 (arm_gdbarch_init): Update.
7849
7850 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7851
7852 * stabsread.c (update_method_name_from_physname): Call complaint()
7853 instead of error.
7854
7855 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7856
7857 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
7858 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
7859 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
7860
7861 * blockframe.c: Include "gdbcmd.h" and "command.h".
7862 (backtrace_below_main): New variable.
7863 (file_frame_chain_valid, func_frame_chain_valid)
7864 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
7865 (generic_func_frame_chain_valid): Remove functions.
7866 (frame_chain_valid, do_flush_frames_sfunc): New functions.
7867 (_initialize_blockframe): New function.
7868 * Makefile.in (blockframe.o): Update dependencies.
7869 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
7870 comment. Call frame_chain_valid ().
7871 * frame.h: Remove old prototypes. Add prototype for
7872 frame_chain_valid and update comments to match.
7873 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
7874 Remove old comment.
7875 * gdbarch.h: Regenerated.
7876 * gdbarch.c: Regenerated.
7877
7878 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7879 set_gdbarch_frame_chain_valid.
7880 * avr-tdep.c (avr_gdbarch_init): Likewise.
7881 * cris-tdep.c (cris_gdbarch_init): Likewise.
7882 * frv-tdep.c (frv_gdbarch_init): Likewise.
7883 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7884 * i386-tdep.c (i386_svr4_init_abi): Likewise.
7885 (i386_nw_init_abi): Likewise.
7886 (i386_gdbarch_init): Likewise.
7887 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
7888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7889 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7890 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
7891 * mips-tdep.c (mips_gdbarch_init): Likewise.
7892 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7893 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
7894 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7895 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7896 * s390-tdep.c (s390_gdbarch_init): Likewise.
7897 * sh-tdep.c (sh_gdbarch_init): Likewise.
7898 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7899 * v850-tdep.c (v850_gdbarch_init): Likewise.
7900 * vax-tdep.c (vax_gdbarch_init): Likewise.
7901 * x86-64-tdep.c (x86_64_init_abi): Likewise.
7902
7903 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
7904 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
7905 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
7906 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
7907 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
7908 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
7909 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
7910 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
7911
7912 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7913
7914 * Makefile.in (acconfig_h): Remove incorrect macro.
7915 (config_h): Define.
7916 (osabi.o): Update dependencies.
7917 * configure.tgt: Set gdb_osabi based on target triplet.
7918 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
7919 * configure: Regenerated.
7920 * config.in: Regenerated.
7921 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
7922 (GDB_OSABI_DEFAULT): Define if not already defined.
7923 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
7924 (set_osabi_string): New variables.
7925 (gdbarch_register_osabi): Add new OS ABI to
7926 gdb_osabi_available_names.
7927 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
7928 (set_osabi, show_osabi): New functions.
7929 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
7930
7931 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7932
7933 * arch-utils.c (gdbarch_info_init): Set osabi to
7934 GDB_OSABI_UNINITIALIZED.
7935 * gdbarch.sh: Add osabi to struct gdbarch and to struct
7936 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
7937 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
7938 * gdbarch.c: Regenerated.
7939 * gdbarch.h: Regenerated.
7940 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
7941 there's no BFD.
7942 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
7943 * osabi.h (enum gdb_osabi): Move to defs.h.
7944 (gdbarch_init_osabi): Update prototype.
7945 * defs.h (enum gdb_osabi): Moved here.
7946 * Makefile.in: Update dependencies.
7947
7948 * alpha-tdep.h: Don't include "osabi.h".
7949 (struct gdbarch_tdep): Remove osabi member.
7950 * alpha-tdep.c: Include "osabi.h".
7951 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7952 iterate over arches. Update call to gdbarch_init_osabi.
7953 (alpha_dump_tdep): Don't dump osabi.
7954 * alpha-linux-tdep.c: Include "osabi.h".
7955 * alpha-osf1-tdep.c: Include "osabi.h".
7956 * alphafbsd-tdep.c: Include "osabi.h".
7957 * alphanbsd-tdep.c: Include "osabi.h".
7958
7959 * arm-tdep.h: Don't include "osabi.h".
7960 (struct gdbarch_tdep): Remove osabi member.
7961 * arm-tdep.c: Include "osabi.h".
7962 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7963 iterate over arches. Update call to gdbarch_init_osabi.
7964 (arm_dump_tdep): Don't dump osabi.
7965 * arm-linux-tdep.c: Include "osabi.h".
7966 * armnbsd-tdep.c: Include "osabi.h".
7967
7968 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
7969 Update call to gdbarch_init_osabi.
7970
7971 * i386-tdep.h: Don't include "osabi.h".
7972 (struct gdbarch_tdep): Remove osabi member.
7973 * i386-tdep.c: Include "osabi.h".
7974 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7975 iterate over arches. Update call to gdbarch_init_osabi.
7976 (i386_dump_tdep): Don't dump osabi.
7977 * i386-linux-tdep.c: Include "osabi.h".
7978 * i386-sol2-tdep.c: Include "osabi.h".
7979 * i386bsd-tdep.c: Include "osabi.h".
7980 * i386gnu-tdep.c: Include "osabi.h".
7981 * i386ly-tdep.c: Include "osabi.h".
7982 * i386nbsd-tdep.c: Include "osabi.h".
7983 * i386obsd-tdep.c: Include "osabi.h".
7984
7985 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
7986 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7987 check osabi when iterating over arches. Update call to
7988 gdbarch_init_osabi.
7989 (mips_dump_tdep): Don't dump osabi.
7990
7991 * ns32k-tdep.h: Don't include "osabi.h".
7992 (struct gdbarch_tdep): Remove.
7993 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
7994 gdbarch_lookup_osabi. Don't iterate over arches. Don't
7995 allocate tdep. Update call to gdbarch_init_osabi.
7996 (ns32k_dump_tdep): Remove.
7997 (_initialize_ns32k_tdep): Update call to gdbarch_register.
7998 * ns32knbsd-tdep.c: Include "osabi.h".
7999
8000 * ppc-tdep.h: Don't include "osabi.h".
8001 (struct gdbarch_tdep): Remove osabi member.
8002 * rs6000-tdep.c: Include "osabi.h".
8003 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
8004 osabi when iterating over arches. Update call to
8005 gdbarch_init_osabi.
8006 (rs6000_dump_tdep): Don't dump osabi.
8007 * ppc-linux-tdep.c: Include "osabi.h".
8008 * ppcnbsd-tdep.c: Include "osabi.h".
8009
8010 * sh-tdep.h: Don't include "osabi.h".
8011 (struct gdbarch_tdep): Remove osabi member.
8012 * sh-tdep.c: Include "osabi.h".
8013 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8014 iterate over arches. Update call to gdbarch_init_osabi.
8015 (sh_dump_tdep): Don't dump osabi.
8016 * shnbsd-tdep.c: Include "osabi.h".
8017
8018 * sparc-tdep.c: Include "osabi.h".
8019 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8020 iterate over arches. Update call to gdbarch_init_osabi.
8021 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
8022 tdep structure.
8023
8024 * vax-tdep.h: Don't include "osabi.h".
8025 (struct gdbarch_tdep): Remove.
8026 * vax-tdep.c: Include "osabi.h".
8027 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8028 iterate over arches. Don't allocate tdep. Update call
8029 to gdbarch_init_osabi.
8030 (vax_dump_tdep): Remove.
8031 (_initialize_vax_tdep): Update call to gdbarch_register.
8032
8033 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8034
8035 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
8036 entirely.
8037 (breakpoint_re_set_one): Don't fetch the value for a disabled
8038 watchpoint.
8039
8040 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8041
8042 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
8043 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
8044 (COERCE_FLOAT_TO_DOUBLE): Remove.
8045 * gdbarch.c: Regenerate.
8046 * gdbarch.h: Regenerate.
8047 * Makefile.in: Remove value_h from gdbarch_h.
8048 * valops.c (coerce_float_to_double): New variable.
8049 (default_coerce_float_to_double): Remove.
8050 (standard_coerce_float_to_double): Remove.
8051 (value_arg_coerce): Use coerce_float_to_double.
8052 (_initialize_valops): Add "set coerce-float-to-double".
8053 * value.h (default_coerce_float_to_double): Remove prototype.
8054 (standard_coerce_float_to_double): Remove prototype.
8055
8056 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
8057 prototyped.
8058 * mdebugread.c (parse_symbol): Likewise.
8059 * stabsread.c (define_symbol): Mark all functions as prototyped.
8060
8061 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
8062 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
8063 set_gdbarch_coerce_float_to_double.
8064 * arm-tdep.c (arm_gdbarch_init): Likewise.
8065 * frv-tdep.c (frv_gdbarch_init): Likewise.
8066 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
8067 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
8068 * mips-tdep.c (mips_gdbarch_init): Likewise.
8069 (mips_coerce_float_to_double): Remove.
8070 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8071 (rs6000_coerce_float_to_double): Remove.
8072 * s390-tdep.c (s390_gdbarch_init): Likewise.
8073 * sh-tdep.c (sh_gdbarch_init): Likewise.
8074 (sh_coerce_float_to_double): Remove.
8075 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
8076 (sparc_coerce_float_to_double): Remove.
8077 * v850-tdep.c (v850_gdbarch_init): Likewise.
8078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8079 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8080 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
8081 (hppa_coerce_float_to_double): Remove prototype.
8082 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8083
8084 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8085
8086 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
8087
8088 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8089
8090 Suggested by Stewart Brown <sb24@avaya.com>:
8091 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
8092 in recursive calls. Handle TYPE_CODE_TYPEDEF.
8093 (c_type_print_varspec_suffix): Likewise.
8094
8095 2003-01-04 Mark Kettenis <kettenis@gnu.org>
8096
8097 * configure.in: Don't set and AC_SUBST SUBDIRS.
8098 * configure: Regenerated.
8099
8100 * configure.in: Remove code dealing with shared libraries.
8101 * Makefile.in: Remove HLDFLAGS and HLDENV.
8102 * configure: Regenerated.
8103
8104 2003-01-04 Andrew Cagney <ac131313@redhat.com>
8105
8106 * frame.c (deprecated_frame_xmalloc): New function.
8107 (deprecated_set_frame_saved_regs_hack): New function.
8108 (deprecated_set_frame_extra_info_hack): New function.
8109 * frame.h (deprecated_frame_xmalloc): Declare.
8110 (deprecated_set_frame_saved_regs_hack): Declare.
8111 (deprecated_set_frame_extra_info_hack): Declare.
8112
8113 2003-01-04 Mark Kettenis <kettenis@gnu.org>
8114
8115 * configure.in: Move code that provides the --enable-gdbtk option
8116 right after the code that handles the --enable-tui option, and
8117 polish it somewhat.
8118 * configure: Regenerated.
8119
8120 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
8121 AC_CHECK_FUNCS and remove the old check for pread64.
8122 * acinclude.m4 (AC_GNU_SOURCE): New macro.
8123 * acconfig.h (_GNU_SOURCE): Add.
8124 (HAVE_PREAD64): Remove.
8125 * configure, aclocal.m4, config.in: Regenerated.
8126
8127 2003-01-03 Andrew Cagney <ac131313@redhat.com>
8128
8129 * alpha-tdep.c: Use get_frame_saved_regs.
8130 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8131 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8132 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
8133 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
8134 * vax-tdep.c, xstormy16-tdep.c: Ditto.
8135
8136 2003-01-03 Mark Kettenis <kettenis@gnu.org>
8137
8138 * configure.in: Remove all use of the SUBDIRS variable; add
8139 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
8140 code providing the --enable-multi-ice option, and move it right in
8141 front of the code that checks whether gdbserver is supported.
8142 Polish that too.
8143 * configure: Regenerated.
8144 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
8145 @SUBDIRS@.
8146
8147 2003-01-03 Andrew Cagney <cagney@redhat.com>
8148
8149 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
8150 * avr-tdep.c, cris-tdep.c: Ditto.
8151 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8152 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8153
8154 2003-01-03 Mark Kettenis <kettenis@gnu.org>
8155
8156 * configure.in: Remove --enable-netrom option.
8157 * configure: Regenerated.
8158
8159 2003-01-03 Mark Kettenis <kettenis@gnu.org>
8160
8161 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
8162 declaration for `struct re_pattern_buffer' instead.
8163 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
8164
8165 2003-01-03 J. Brobecker <brobecker@gnat.com>
8166
8167 * mdebugread.c (parse_symbol): Count until the stEnd matching
8168 the structure name.
8169
8170 2003-01-02 Mark Kettenis <kettenis@gnu.org>
8171
8172 * configure.in: Remove --with-cpu option.
8173 subscripts. Remove evil changequotes here.
8174 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
8175 * config.in, configure: Regenerated.
8176
8177 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
8178 * configure.in: Cleanup section that sources GDB and BFD configure
8179 subscripts. Remove evil changequotes here.
8180 * config.in, configure: Regenerated.
8181
8182 2003-01-02 Andrew Cagney <ac131313@redhat.com>
8183
8184 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
8185 frame accessor methods.
8186 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8187 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8188 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
8189 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
8190 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8191 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8192 * z8k-tdep.c: Ditto.
8193
8194 2003-01-02 Mark Kettenis <kettenis@gnu.org>
8195
8196 * configure.in: Remove UI_OUT configuration code.
8197 * ada-lang.c: Update assuming UI_OUT is always true.
8198 * Makefile.in (UIOUT_CFLAGS): Remove.
8199 * configure: Regenerated.
8200 * TODO: Remove blurb about elimination of -DUI_OUT.
8201
8202 * configure.in: Move code that provides the --enable-gdbcli,
8203 --enable-gdbmi options right before the code that handles the
8204 --enable-tui option. Polish a bit.
8205 * configure: Regenerated.
8206
8207 * configure.in: Rewrite check for GNU regex and the
8208 --without-included regex option, and move it into the "Checks for
8209 library functions" section. This makes us use the system regex
8210 again by default on systems with version 2 of the GNU C library.
8211 This was apparently broken.
8212 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
8213 * acconfig.h (USE_INCLUDED_REGEX): Remove.
8214 * config.in, configure: Regenerated.
8215
8216 * configure.in: Move code that provides the --enable-tui option
8217 before the "Checks for libraries" section. Polish the code
8218 somewhat and set need_curses to yes if we build the TUI. Rewrite
8219 code that looks for a library providing termcap functionality to
8220 match more closely what's done in the Readline library, and move
8221 it into to the "Checks for libraries" section.
8222 * configure: Regenerated.
8223 * Makefile.in (TERMCAP): Remove variable.
8224 * config/i386/go32.mh (TERMCAP): Remove variable.
8225
8226 2003-01-02 Andrew Cagney <ac131313@redhat.com>
8227
8228 * MAINTAINERS: Mention gdb_mbuild.sh.
8229 * gdb_mbuild.sh: Rewrite.
8230
8231 2003-01-02 Mark Kettenis <kettenis@gnu.org>
8232
8233 * configure.in: Fix typo in last change.
8234 * config.in, configure: Regenerated.
8235
8236 2003-01-02 Andrew Cagney <ac131313@redhat.com>
8237
8238 * valarith.c (value_binop): Delete obsolete code and comments.
8239 * configure.host: Ditto.
8240 * buildsym.h (make_blockvector): Ditto.
8241 * buildsym.c (make_blockvector): Ditto.
8242 * defs.h (enum language): Ditto.
8243 (chill_demangle): Ditto.
8244 * elfread.c (elf_symtab_read): Ditto.
8245 * dwarfread.c (CHILL_PRODUCER): Ditto.
8246 (set_cu_language): Ditto.
8247 (handle_producer): Ditto.
8248 * expprint.c (print_subexp): Ditto.
8249 * gdbtypes.c (chill_varying_type): Ditto.
8250 * gdbtypes.h (builtin_type_chill_bool): Ditto.
8251 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
8252 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
8253 (chill_varying_type): Ditto.
8254 * language.h (_LANG_chill): Ditto.
8255 * language.c (binop_result_type, integral_type): Ditto.
8256 (character_type, string_type, structured_type): Ditto.
8257 (lang_bool_type, binop_type_check): Ditto.
8258 * stabsread.h (os9k_stabs): Ditto.
8259 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
8260 (define_symbol, read_type, read_struct_fields): Ditto.
8261 (read_array_type, read_enum_type, read_huge_number): Ditto.
8262 (read_range_type, start_stabs): Ditto.
8263 * symfile.c (init_filename_language_table): Ditto.
8264 (add_psymbol_with_dem_name_to_list): Ditto.
8265 * symtab.c (symbol_init_language_specific): Ditto.
8266 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
8267 * symtab.h (struct general_symbol_info): Ditto.
8268 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
8269 * typeprint.c (typedef_print): Ditto.
8270 * utils.c (fprintf_symbol_filtered): Ditto.
8271 * valops.c (value_cast, search_struct_field, value_slice): Delete
8272 obsolete code.
8273 (varying_to_slice): Delete function.
8274 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
8275 (varying_to_slice): Delete declaration.
8276 * MAINTAINERS: Update.
8277
8278 2003-01-02 Mark Kettenis <kettenis@gnu.org>
8279
8280 * configure.in: Reorganize "Checks for library functions section"
8281 a bit. Remove check for `btowc' and `isascii' functions.
8282 * configure: Regenerated.
8283
8284 * acconfig.h (_MSE_INT_H): Remove.
8285 * configure.in: Create "Checks for header files" section, and move
8286 appropriate tests there. Don't check for objlist.h, wchar.h,
8287 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
8288 misdetection fix. Also add "Checks for types", "Checks for
8289 compiler characteristics" and "Checks for library functions"
8290 sections.
8291 * config.in, configure: Regenerated.
8292
8293 * configure.in: Create "Checks for programs" section, and move
8294 appropriate tests there.
8295
8296 2003-01-01 Mark Kettenis <kettenis@gnu.org>
8297
8298 * configure.in: Create "Checks for libraries" section, and move
8299 appropriate tests there. Cleanup check for wctype in libw. Use
8300 AC_SEARCH_LIBS to see whether we need libsocket.
8301 * configure: Regenerated.
8302
8303 For older changes see ChangeLog-2002
8304 \f
8305 Local Variables:
8306 mode: change-log
8307 left-margin: 8
8308 fill-column: 74
8309 version-control: never
8310 End: