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