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