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