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