2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f86f5ca3
PH
12003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2
3 * p-lang.c: Eliminate "register".
4 * c-lang.c: Ditto.
5 * expprint.c: Ditto.
6 * f-lang.c: Ditto.
7 * jv-lang.c: Ditto.
8 * language.c: Ditto.
9 * m2-lang.c: Ditto.
10 * parse.c: Ditto.
11 * scm-lang.c: Ditto.
12 * objc-lang.c: Ditto.
13
83ee270e
NC
142003-09-09 Nick Clifton <nickc@redhat.com>
15
16 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
17
a89aa300
AC
182003-09-04 Andrew Cagney <cagney@redhat.com>
19
20 * avr-tdep.c: Include "dis-asm.h".
21 * cris-tdep.c: Include "dis-asm.h".
22 (cris_delayed_get_disassembler): Use "struct disassemble_info"
23 instead of corresponding typedef.
24 * h8300-tdep.c: Include "dis-asm.h".
25 * ia64-tdep.c: Include "dis-asm.h".
26 * i386-tdep.c: Include "dis-asm.h".
27 (i386_print_insn): Use "struct disassemble_info" instead of
28 corresponding typedef.
29 * m68k-tdep.c: Include "dis-asm.h".
30 * mcore-tdep.c: Include "dis-asm.h".
31 * mips-tdep.c: Include "dis-asm.h".
32 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
33 instead of corresponding typedef.
34 * ns32k-tdep.c: Include "dis-asm.h".
35 * s390-tdep.c: Include "dis-asm.h".
36 * sparc-tdep.c: Include "dis-asm.h".
37 * vax-tdep.c: Include "dis-asm.h".
38 * v850-tdep.c: Include "dis-asm.h".
39 * mn10300-tdep.c: Include "dis-asm.h".
40 * rs6000-tdep.c: Include "dis-asm.h".
41 * xstormy16-tdep.c: Include "dis-asm.h".
42 (_initialize_xstormy16_tdep): Delete "extern" declaration of
43 print_insn_xstormy16.
44 * Makefile.in (v850-tdep.o): Update dependencies.
45 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
46 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
47 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
48 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
49 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
50 (gdbarch_h): Remove $(dis_asm_h).
51 * disasm.c: Include "dis-asm.h".
52 (dis_asm_read_memory): Use "struct disassemble_info" instead of
53 corresponding typedef.
54 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
55 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
56 * gdbarch.sh: Do not include "dis-asm.h".
57 (struct disassemble_info): Declare opaque.
58 (TARGET_PRINT_INSN): Update declaration.
59 * gdbarch.h, gdbarch.c: Re-generate.
60
88a82a65
AC
612003-09-08 Andrew Cagney <cagney@redhat.com>
62
63 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
64 CALL_DUMMY_ADDRESS, change to a predicate.
65 * gdbarch.h, gdbarch.c: Re-generate.
66 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
67 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
68 * infcall.c (call_function_by_hand): Ditto.
69 * sparc-tdep.c (sparc_push_return_address): Ditto.
70 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
71 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
72 CALL_DUMMY_ADDRESS with entry_point_address.
73 * v850-tdep.c (v850_push_return_address): Ditto.
74 * s390-tdep.c (s390_push_return_address): Ditto.
75 * rs6000-tdep.c (ppc_push_return_address): Ditto.
76 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
77 * mcore-tdep.c (mcore_push_return_address): Ditto.
78 * cris-tdep.c (cris_push_return_address): Ditto.
79 * arm-tdep.c (arm_push_return_address): Ditto.
80
3e2c4033
AC
812003-09-08 Andrew Cagney <cagney@redhat.com>
82
83 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
84 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
85 and REG_UNMODIFIED to REG_SAME_VALUE.
86 (execute_cfa_program): Update.
87 (dwarf2_frame_cache): Update. Initialize table to
88 REG_UNSPECIFIED, complain if CFI fails to specify a register's
89 location.
90 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
91
39efb398
AC
922003-09-08 Andrew Cagney <cagney@redhat.com>
93
94 * gnu-nat.c: Remove "inline" function attribute.
95 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
96
f5cb5aca
KB
972003-09-08 Kevin Buettner <kevinb@redhat.com>
98
99 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
100 target.
101
1cb761c7
KB
1022003-09-08 Kevin Buettner <kevinb@redhat.com>
103
104 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
105 (frame_extra_info): Rename this struct to frv_unwind_cache.
106 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
107 Add fields ``prev_sp'' and ``base''.
108 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
109 (frv_saved_pc_after_call, frv_init_extra_frame_info)
110 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
111 Delete.
112 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
113 Revise all callers. Fill in the unwind cache argument and make
114 other adjustments to account for new frame mechanisms.
115 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
116 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
117 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
118 (frv_frame_unwind, frv_frame_base): New structs.
119 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
120 additional arguments expected by this method and adjust function
121 body accordingly.
122 (frv_gdbarch_init): Remove calls to the following functions:
123 set_gdbarch_deprecated_init_frame_pc(),
124 set_gdbarch_deprecated_saved_pc_after_call(),
125 set_gdbarch_deprecated_frame_chain(),
126 set_gdbarch_deprecated_frame_saved_pc(),
127 set_gdbarch_deprecated_frame_init_saved_regs(),
128 set_gdbarch_deprecated_push_arguments(),
129 set_gdbarch_deprecated_push_return_address(),
130 set_gdbarch_deprecated_pop_frame(),
131 set_gdbarch_deprecated_call_dummy_words(),
132 set_gdbarch_deprecated_sizeof_call_dummy_words(),
133 set_gdbarch_deprecated_init_extra_frame_info(),
134 set_gdbarch_deprecated_dummy_write_sp(), and
135 set_gdbarch_deprecated_pc_in_call_dummy().
136 Add calls to the following functions:
137 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
138 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
139 frame_base_set_default().
140 * Makefile.in (frv-tdep.o): Update dependencies.
141
68f6cf99
MK
1422003-09-09 Mark Kettenis <kettenis@gnu.org>
143
144 * dwarf2-frame.c (read_encoded_value): Add support for
145 DW_EH_PE_aligned encoding.
146
73b65bb0
DJ
1472003-09-08 Daniel Jacobowitz <drow@mvista.com>
148
149 * infrun.c (normal_stop): Don't print a message if the inferior
150 has exited.
151
7c8a5605
JB
1522003-09-08 Jim Blandy <jimb@redhat.com>
153
154 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
155 * dbxread.c: #include "gdb_assert.h".
156 (read_dbx_symtab): If the objfile has no .data section, use the
157 section index for the .bss section instead.
158
7dd88986
DJ
1592003-09-08 Daniel Jacobowitz <drow@mvista.com>
160
161 * frame.c (deprecated_safe_get_selected_frame): New function.
162 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
163 * findvar.c (read_var_value): Call it.
164
55ff77ac
CV
1652003-09-08 Corinna Vinschen <vinschen@redhat.com>
166
167 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
168 (sh64-tdep.o): Add dependencies.
169 * configure.tgt: Add FIXME to sh-*-linux*.
170 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
171 (sh_gdbarch_init): Always set correct sh_show_regs function
172 pointer. Call sh64_gdbarch_init() if machine type is sh5.
173 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
174 * sh64-tdep.c: New file, containing all sh64 related code from
175 sh-tdep.c.
176 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
177 * config/sh/linux.mt (TDEPFILES): Ditto.
178 * config/sh/nbsd.mt (TDEPFILES): Ditto.
179 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
180 * config/sh/wince.mt (TDEPFILES): Ditto.
181
bfb39158
DJ
1822003-09-07 Daniel Jacobowitz <drow@mvista.com>
183
184 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
185 (stop_wait_callback): Handle !lp->signalled also.
186 (lin_lwp_has_pending, flush_callback): New functions.
187 (lin_lwp_wait): Call flush_callback.
188 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
189 (linux_proc_pending_signals): New function.
190 * linux-nat.h (linux_proc_pending_signals): Add prototype.
191
9407de8e
DJ
1922003-09-07 Daniel Jacobowitz <drow@mvista.com>
193
194 From Nick Kelsey <nickk@ubicom.com>:
195 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
196 when the stop PC is at the beginning of a function also.
197
2ef47cd0
DJ
1982003-09-06 Daniel Jacobowitz <drow@mvista.com>
199
200 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
201 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
202
6f4492c8
MK
2032003-09-06 Mark Kettenis <kettenis@gnu.org>
204
205 * sol-thread.c: Include "gdb_string.h".
206
d3420b2f
MK
2072003-09-03 Mark Kettenis <m.kettenis@osp.nl>
208
209 * gcore.c: Reorder include files in alphabetical order. Include
210 "gdb_assert.h". Various coding style fixes.
211 (derive_stack_segment, derive_heap_segment): Replace check for
212 non-null BOTTOM and TOP with gdb_assert.
213 (derive_heap_segment): Replace check for successful creation of
214 ZERO with gdb_assert.
215 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
216
5220ea4c
AC
2172003-09-04 Andrew Cagney <cagney@redhat.com>
218
219 * thread-db.c (verbose_dlsym): New function.
220 (thread_db_load): Use verbose_dlsym
221 (thread_db_new_objfile): Print that libthread_db was loaded, and
222 that thread debugging was enabled.
223
6e8c2c06
AC
2242003-09-04 Andrew Cagney <cagney@redhat.com>
225
226 * configure.tgt: Add "mips64*-*-*" target. Delete
227 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
228 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
229 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
230 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
231 mips*-sony-*, and mips64*-*-elf* targets.
232 * config/mips/embedl.mt: Delete file.
233 * config/mips/embedl64.mt: Delete file.
234 * config/mips/mips.mt: Delete file.
235 * config/mips/mips64.mt: Delete file.
236 * config/mips/tm-embed.h: Delete file.
237 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
238 * config/mips/embed64.mt: Delete out-of-date comment.
239
3a3bc038
AC
2402003-09-04 Andrew Cagney <cagney@redhat.com>
241
242 * hppa-tdep.c (hppa_gdbarch_init): Set
243 "have_nonsteppable_watchpoint".
244 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
245 * mips-tdep.c (mips_dump_tdep): Do not print
246 HAVE_NONSTEPPABLE_WATCHPOINT.
247 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
248 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
249 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
250 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
251
a957e642
CV
2522003-09-04 Corinna Vinschen <vinschen@redhat.com>
253
254 * breakpoint.c (watchpoint_check): Remove accidentally checked in
255 unused code. Add comment.
256
a6fbcf2f
CV
2572003-09-04 Corinna Vinschen <vinschen@redhat.com>
258
259 * breakpoint.c (watchpoint_check): Check for pc being in an
260 epilogue if watchpoint frame couldn't be found.
261
c14a44d5
AC
2622003-09-04 Andrew Cagney <cagney@redhat.com>
263
264 * Makefile.in: Re-generate all dependencies.
265
f6c40618
AC
2662003-09-03 Andrew Cagney <cagney@redhat.com>
267
268 * arch-utils.h (legacy_print_insn): Delete declaration.
269 * arch-utils.c (legacy_print_insn): Delete function.
270 * disasm.c (deprecated_tm_print_insn_info): Delete.
271 (_initialize_disasm): Delete function, contained code initializing
272 deprecated_tm_print_insn_info.
273 * gdbarch.sh (deprecated_tm_print_insn): Delete.
274 (deprecated_tm_print_insn_info): Delete.
275 (TARGET_PRINT_INSN): Do not provide a default.
276 * gdbarch.h, gdbarch.c: Re-generate.
277
242e8be5
AC
2782003-09-03 Andrew Cagney <cagney@redhat.com>
279
280 * disasm.c (fprintf_disasm): New function.
281 (gdb_disassemble_info): Call "init_disassemble_info", instead of
282 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
283 reverts 2003-08-14 change.
284 (_initialize_disasm): Call "init_disassemble_info", instead of
285 INIT_DISASSEMBLE_INFO_NO_ARCH.
286
3ffc3dda
MS
2872003-09-03 Michael Snyder <msnyder@redhat.com>
288
289 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
290
52d16ba8
AC
2912003-09-03 Andrew Cagney <cagney@redhat.com>
292
293 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
294 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
295 * symfile.c (syms_from_objfile): Update.
296 (reread_symbols): `Update
297 * exec.c (exec_file_attach): Update.
298 (exec_file_attach): Update.
299 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
300 2003-08-29 change.
301 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
302
eb5492fa
DJ
3032003-09-03 Daniel Jacobowitz <drow@mvista.com>
304
305 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
306 trad-frame.h.
307 (arm_get_cache): Delete macro.
308 (struct arm_prologue_cache): Update comments. Make saved_regs into
309 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
310 to prev_sp.
311 (thumb_scan_prologue): Update for cache changes. Don't call
312 DEPRECATED_PC_IN_CALL_DUMMY.
313 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
314 argument and use it in desperation search for our prologue. Do not
315 search past the specified PC.
316 (arm_make_prologue_cache): Simplify.
317
318 (arm_prologue_this_id, arm_prologue_prev_register)
319 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
320 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
321 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
322 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
323 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
324
325 (arm_frame_chain_valid, arm_find_callers_reg)
326 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
327 (arm_pop_frame): Delete obsolete methods.
328 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
329
330 (arm_gdbarch_init): Update for new frame methods. Register prologue
331 and sigtramp unwinders. Set the default frame base method.
332
333 * Makefile.in (arm-tdep.o): Update dependencies.
334 * varobj.c (find_frame_addr_in_frame_chain): Call
335 get_frame_base_address.
336 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
337
24de872b
DJ
3382003-09-03 Daniel Jacobowitz <drow@mvista.com>
339
340 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
341 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
342 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
343 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
344 Take NEXT_FRAME and CACHE arguments. Call
345 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
346 Set unwound_pc in CACHE instead of modifying the frame argument.
347 Don't bother checking the frame type when looking for sigtramp
348 frames.
349 (arm_make_prologue_cache, arm_frame_chain)
350 (arm_init_extra_frame_info): New functions.
351
9b8d791a
DJ
3522003-09-03 Daniel Jacobowitz <drow@mvista.com>
353
354 * arm-tdep.c (arm_get_cache): Define.
355 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
356 unwound_sp, unwound_pc, and saved_regs.
357 (thumb_scan_prologue): Take a cache instead of the frame.
358 (arm_scan_prologue): Likewise.
359 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
360 instead of a temporary frame.
361 (arm_init_extra_frame_info): Allocate and use a cache.
362 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
363
7ee3275f
AC
3642003-09-03 Andrew Cagney <cagney@redhat.com>
365
366 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
367 * config/mips/wince.mt (TM_CLIBS): Ditto.
368 * config/sh/wince.mt (TM_CLIBS): Ditto.
369 * config/pa/hppa64.mt (TM_CLIBS): Delete.
370 * config/sparc/sp64.mt (CC): Delete.
371
57b29be7
AC
3722003-09-03 Andrew Cagney <cagney@redhat.com>
373
374 * defs.h: Do not include "arch-utils.h".
375 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
376 GDB_MULTI_ARCH_PURE.
377 * configure.in (GDB_MULTI_ARCH): Do not define.
378 * configure, config.in: Regenerate.
379 * configure.tgt: Do not set variable "gdb_multi_arch".
380 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
381 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
382 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
383 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
384 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
385 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
386 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
387 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
388 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
389 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
390 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
391 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
392 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
393 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
394 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
395 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
396 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
397 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
398
12e035e2
MC
3992003-08-30 Michael Chastain <mec@shout.net>
400
401 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
402 * config/m68k/nm-hp300hpux.h: Delete.
403 * config/m68k/tm-hp300hpux.h: Delete.
404 * config/m68k/xm-hp300hpux.h: Delete.
405 * config/m68k/xm-hp300bsd.h: Delete.
406 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
407 tm-hp300hpux.h, xm-hp300hpux.h.
408 * somsolib.c: Remove comment about hp300 shared libraries.
409
bda34dc2
MK
4102003-08-31 Mark Kettenis <kettenis@gnu.org>
411
5bca7895
MK
412 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
413 Only define PTRACE_GET_THREAD_AREA is not already defined.
414 Various style fixes in code and comments and some additional
415 spelling fixes in comments. Move after functions dealing with
416 debug registers.
417 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
418 Fix coding-style.
419
bda34dc2
MK
420 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
421 frame_unwind_register_unsigned instead of
422 frame_unwind_unsigned_register.
423
f86f5ca3 424>>>>>>> current-public.22/gdb/ChangeLog Mon, 08 Sep 2003 21:54:22 -0700 hilfingr (GdbPub/g/3_ChangeLog 1.15.1.2.1.1 644)
c890192f
MK
4252003-08-30 Mark Kettenis <kettenis@gnu.org>
426
427 * configure.in: Search for gethostbyname in libnsl.
428 * configure: Regenerated.
429
60fac5b8
MK
4302003-08-29 Mark Kettenis <kettenis@gnu.org>
431
e294916c
MK
432 * configure.in: Remove redundant AC_MSG_RESULT in check for
433 uintptr_t in stdint.h.
434 * configure: Regenerated.
435
c40d267a
MK
436 * amd64-nat.h (struct regcache): Add opaque declaration.
437
60fac5b8
MK
438 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
439 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
440 Change "register array" to "register cache" in comments.
441 (x86_64_linux_gregset64_reg_offset): New variable.
442 (GETREGS_SUPPLIES): Remove macro.
443 (supply_gregset): Call amd64_supply_native_gregset instead of
444 x86_64_linux_supply_gregset.
445 (fill_gregset): Rename `regno' to `regnum'. Call
446 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
447 (store_regs): Rename `regno' to `regnum'.
448 (store_fpregs): Rename `regno' to `regnum'.
449 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
450 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
451 Reorganize function a bit.
452 (store_inferior_registers): Rename `regno' to `regnum'. Use
453 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
454 Reorganize function a bit.
455 (_initialize_x86_64_linux_nat): New function.
456 * config/i386/x86-64linux.mh.
457
546143b6
AC
4582003-08-29 Andrew Cagney <cagney@redhat.com>
459
460 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
461 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
462 (target_remove_watchpoint): Delete macro.
463 (target_insert_watchpoint): Delete macro.
464 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
465 (remote_mips_stopped_by_watchpoint): Delete declaration.
466 (remote_mips_remove_watchpoint): Delete declaration.
467 (remote_mips_set_watchpoint): Delete declaration.
468 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
469 * remote-mips.c (_initialize_remote_mips): Set
470 "to_insert_watchpoint", "to_stopped_by_watchpoint",
471 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
472 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
473 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
474 (mips_stopped_by_watchpoint): Rename
475 remote_mips_stopped_by_watchpoint.
476 (mips_can_hardware_watchpoint): Rename
477 remote_mips_can_use_hardware_watchpoint, update function
478 signature.
479
7bace51b
MK
4802003-08-29 Mark Kettenis <kettenis@gnu.org>
481
b0f5c6f2
MK
482 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
483 USER_DS. We haven't given them a register number yet.
484
2a6d284d
MK
485 * amd64-nat.h: New file.
486 * amd64-nat.c: New file.
487 * amd64fbsd-nat.c: Include "amd64-nat.h".
488 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
489 (amd64fbsd32_r_reg_offset): New variable.
490 (supply_gregset): Simply call amd64_supply_native_gregset.
491 (fill_gregset): Rename `regno' to `regnum'. Simply call
492 amd64_collect_native_gregset.
493 (fill_fpregset): Rename `regno' to `regnum'.
494 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
495 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
496 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
497 `fpregset_t'. Call amd64_supply_native_gregset instead of
498 supply_gregset. Call x86_64_supply_fxsave instead of
499 supply_fpregset.
500 (store_inferior_registers): Rename `regno' to `regnum'. Replace
501 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
502 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
503 `fpregset_t'. Call amd64_collect_native_gregset instead of
504 fill_gregset. Call x86_64_collect_fxsave instead of
505 fill_fpregset.
506 (_initialize_am64fbsd_nat): Initialize
507 amd64_native_gregset32_reg_offset and
508 amd64_native_gregset64_reg_offset.
509 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
510
a16d75cc
MK
511 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
512 null pointer. Fix typo in comment.
513
7bace51b
MK
514 * regcache.c (supply_register): Reimplement to call
515 regcache_raw_supply.
516 (regcache_collect): Reimplement by calling regcache_raw_collect.
517
9a661b68
MK
5182003-08-28 Mark Kettenis <kettenis@gnu.org>
519
520 * regcache.c (register_buffer): Consitify first argument.
521 (regcache_raw_supply, regcache_raw_collect): New
522 functions.
523
e94cc8fa
DJ
5242003-08-28 Daniel Jacobowitz <drow@mvista.com>
525
526 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
527 by Nathan J. Williams.
528
c64bd0ce
DJ
5292003-08-28 Daniel Jacobowitz <drow@mvista.com>
530
531 * lin-lwp.c (wait_lwp): New function, copied from
532 stop_wait_callback. Clean up.
533 (stop_wait_callback): Use wait_lwp.
534
e5ab0dce
AC
5352003-08-28 Andrew Cagney <cagney@redhat.com>
536
537 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
538 flavour and disassembler options.
539 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
540 (mips_gdbarch_init): Set "print_insn". Delete initialization of
541 deprecated_tm_print_insn_info.
542
a788de9b
AC
5432003-08-27 Andrew Cagney <cagney@redhat.com>
544
545 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
546 Use target_read_memory.
547 (s390_get_frame_info): Update. Do not reference
548 deprecated_tm_print_insn_info.
549 (s390_check_function_end, s390_is_sigreturn): Ditto.
550
36482093
AC
5512003-08-27 Andrew Cagney <cagney@redhat.com>
552
553 * Makefile.in (cris-tdep.o): Update dependencies.
554 * cris-tdep.c: Include "gdb_assert.h".
555 (cris_gdbarch_init): Set print_insn.
556 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
557 (cris_delayed_get_disassembler): Simplify, directly call the
558 disassembler returned by cris_get_disassembler.
559 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
560 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
561 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
562 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
563 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
564 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
565 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
566 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
567 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
568 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
569 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
570 (gdb_print_insn_sparc): Delete function.
571 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
572 deprecated_tm_print_insn_info.
573 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
574 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
575 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
576 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
577 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
578 * s390-tdep.c (gdb_print_insn_s390): Delete function.
579 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
580 (s390_gdbarch_init): Set print_insn.
581
0285512f
AC
5822003-08-27 Andrew Cagney <cagney@redhat.com>
583
584 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
585 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
586 * infcall.c (call_function_by_hand): Convert the entry point
587 address into a code address.
588
cdcd5552
AC
5892003-08-27 Andrew Cagney <cagney@redhat.com>
590
591 * dsrec.c: Include "gdb_string.h".
592 * Makefile.in (dsrec.o): Update dependencies.
593
e85cddad
MC
5942003-08-27 Michael Chastain <mec@shout.net>
595
596 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
597
8bbfbb23
AC
5982003-08-27 Andrew Cagney <cagney@redhat.com>
599
600 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
601 (alpha_osf1_init_abi): Do not set call_dummy_address.
602
ba058b66
DC
6032003-08-27 David Carlton <carlton@kealia.com>
604
605 From Randolph Chung <tausq@debian.org>:
606 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
607 compiles with -Wformat-nonliteral -Werror.
608
87f84c9d
JB
6092003-08-26 Jim Blandy <jimb@redhat.com>
610
611 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
612 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
613 bfd_lookup_symbol, since we only want symbols in code sections.
614 (look_for_base): Pass zero as the SECT_FLAGS argument to
615 bfd_lookup_symbol, since we're not concerned about which section
616 the symbol is in.
617
102d615a
JJ
6182003-08-26 Jeff Johnston <jjohnstn@redhat.com>
619
620 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
621 we are frameless or the return address register is already known.
622
cc7ad3ea
AC
6232003-08-26 Andrew Cagney <cagney@redhat.com>
624
625 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
626 in size. Add comments.
627
af8b88dd
JJ
6282003-08-26 Jeff Johnston <jjohnstn@redhat.com>
629
630 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
631 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
632
e0a4f5a1
JM
6332003-08-26 Jason Merrill <jason@redhat.com>
634
635 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
636 case out of #ifdef MIPS block.
637
4ae9ee8e
DJ
6382003-08-25 Daniel Jacobowitz <drow@mvista.com>
639
640 PR java/1322
641 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
642 available before calling SECT_OFF_TEXT.
3c164570 643 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 644
004d836a
JJ
6452003-08-25 Jeff Johnston <jjohnstn@redhat.com>
646
647 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
648 bof, and nat0-nat127 as pseudo-registers.
649 (ia64_frame_cache): New struct used to cache frame info.
650 (ia64_register_reggroup_p): New routine used to override default
651 register grouping so registers without names are still saved and
652 restored.
653 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
654 pseudo values.
655 (ia64_pseudo_register_read): New routine to read pseudo-registers.
656 (ia64_pseudo_register_write): New routine to write pseudo-registers.
657 (ia64_alloc_frame_cache): New routine to create a new
658 ia64_frame_cache.
659 (examine_prologue): Change prototype to add next_frame pointer.
660 Assume frameless until otherwise proven. Verify that the cfm for
661 current frame matches the cfm that should occur for the prologues
662 alloc insn and if equal, mark as not frameless. At end of routine,
663 if not frameless, calculate registers for the previous frame and store
664 in the cache, if a cache is provided.
665 (ia64_skip_prologue): Use new prototype when calling examine_prologue
666 and pass 0 for next_frame.
667 (ia64_store_return_value): Change to use convert_typed_floating()
668 instead of calling ia64_convert_to_raw().
669 (ia64_extract_return_value): Change to use convert_typed_floating()
670 instead of calling ia64_convert_to_virtual().
671 (ia64_frame_cache): New routine to support new frame model.
672 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
673 (ia64_frame_sniffer): Ditto.
674 (ia64_sigtramp_frame_init_saved_regs): Ditto.
675 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
676 (ia64_sigtramp_frame_prev_register): Ditto.
677 (ia64_sigtramp_frame_sniffer): Ditto.
678 (ia64_frame_base_address): Ditto.
679 (ia64_extract_struct_value_address): Change to issue error message.
680 (ia64_frame_align): New routine to align sp.
681 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
682 (ia64_push_arguments): Removed. Logic moved to
683 ia64_push_dummy_call().
684 (ia64_push_return_address): Ditto.
685 (ia64_unwind_dummy_id): New function.
686 (ia64_unwind_pc): Ditto.
687 (ia64_convert_register_p): Ditto.
688 (ia64_register_to_value): Ditto.
689 (ia64_value_to_register): Ditto.
690 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
691 (ia64_register_byte, ia64_register_raw_size): Ditto.
692 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
693 (ia64_saved_pc_after_call): Ditto.
694 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
695 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
696 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
697 (ia64_register_convert_to_raw): Ditto.
698 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
699 (ia64_init_extra_frame_info): Ditto.
700 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
701 (ia64_gdbarch_init): Remove registering of deprecated functions that
702 are no longer used. Add registration of new gdbarch functions.
703 Remove registering deprecated_write_sp. Replace
704 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
705 Delete set_gdbarch_deprecated_register_convertible(),
706 set_gdbarch_deprecated_register_convert_to_virtual(), and
707 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
708 set_gdbarch_deprecated_register_size(),
709 set_gdbarch_deprecated_register_bytes(),
710 set_gdbarch_pcregnum(),
711 set_gdbarch_deprecated_register_byte(),
712 set_gdbarch_deprecated_register_raw_size(),
713 set_gdbarch_deprecated_max_register_raw_size(),
714 set_gdbarch_deprecated_register_virtual_size(),
715 and set_gdbarch_deprecated_max_register_virtual_size() calls.
716 Replace set_gdbarch_deprecated_extract_return_value() with
717 set_gdbarch_extract_return_value(). Remove calls to:
718 set_gdbarch_deprecated_saved_pc_after_call();
719 set_gdbarch_deprecated_frame_chain(),
720 set_gdbarch_deprecated_frame_saved_pc(),
721 set_gdbarch_deprecated_frame_init_saved_regs(),
722 set_gdbarch_deprecated_get_saved_register(),
723 set_gdbarch_deprecated_call_dummy_words(),
724 set_gdbarch_deprecated_sizeof_call_dummy_words(),
725 set_gdbarch_deprecated_init_extra_frame_info(),
726 set_gdbarch_deprecated_frame_args_address(),
727 set_gdbarch_deprecated_frame_locals_address(),
728 and set_gdbarch_deprecated_dummy_write_sp().
729 Add set_gdbarch_convert_register_p(),
730 set_gdbarch_register_to_value(),
731 set_gdbarch_value_to_register(),
732 set_gdbarch_push_dummy_call(),
733 set_gdbarch_frame_align(),
734 set_gdbarch_unwind_dummy_id(),
735 set_gdbarch_unwind_pc(),
736 frame_unwind_append_sniffer(),
737 frame_unwind_append_sniffer(),
738 and frame_base_set_default().
739
aede7613
CD
7402003-08-25 Chris Demetriou <cgd@broadcom.com>
741
742 * configure.tgt: Document need for special "mipsisa64" handling.
743 (mipsisa64*-*-linux64): Handle as target linux64.
744 (mipsisa64*-*-*): Handle as target embed64.
745
43c3a82e
MC
7462003-08-18 Michael Chastain <mec@shout.net>
747
748 * PROBLEMS: Document pr gdb/1322, the Java anonymous
749 objfile bug.
750
6564f77d
MK
7512003-08-24 Mark Kettenis <kettenis@gnu.org>
752
2de139ba
MK
753 * i387-tdep.h: Update copyright date.
754 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
755
6564f77d
MK
756 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
757 CFLAGS games to reflect reality.
758
42cf1509
AC
7592003-08-24 Andrew Cagney <cagney@redhat.com>
760
761 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
762 GDB_MULTI_ARCH is always non-zero.
763 * osabi.c (_initialize_gdb_osabi): Ditto.
764 (gdbarch_init_osabi): Ditto.
765 * sparc-tdep.c: Ditto for #if code.
766
0485f6ad
MK
7672003-08-23 Mark Kettenis <kettenis@gnu.org>
768
769 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
770 Update comments.
771 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
772 comments.
773 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
774 x86_64_supply_fxsave.
775 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
776 x86_64_supply_fxsave.
777 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
778 x86_64_supply_fxsave.
779
c7716133
AJ
7802003-08-23 Andreas Jaeger <aj@suse.de>
781
782 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
783 i387_supply_fxsave.
784
ed504bdf
MK
7852003-08-23 Mark Kettenis <kettenis@gnu.org>
786
787 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
788 i387_supply_register.
789 (go32_fetch_registers): Adjust call to i387_supply_fsave.
790 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
791 i387_supply_fsave.
792 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
793 i387_supply_fxsave.
794 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
795 i387_supply_fsave.
796 * i386bsd-nat.c (supply_fpregset): Adjust call to
797 i387_supply_fsave.
798 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
799 call to i387_supply_fxsave. Call i387_supply_fsave instead of
800 supply_fpregset.
801 (store_inferior_registers): Remove extraneous whitespace. Call
802 i387_fill_fsave instead of fill_fpregset.
803 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
804 (supply_fpregset): Likewise.
805 * i386v4-nat.c (supply_fpregset): Adjust call to
806 i387_supply_fsave.
807 * i386-interix-nat.c (supply_fpregset): Adjust call to
808 i387_supply_fsave.
809 * i386-linux-nat.c (supply_fpregset): Adjust call to
810 i387_supply_fsave.
811 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
812 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
813 i387supply_fsave and i387_supply_fxsave.
814 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
815 Incorporate code from `i387_supply_register.
816 (i387_supply_register): Remove.
817 (i387_supply_fxsave): Add `regnum' argument.
818 Update comments.
819 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
820 prototype.
821 (i387_supply_register): remove prototype.
822 Update comments.
823
4be5d520
MC
8242003-08-22 Michael Chastain <mec@shout.net>
825
826 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
827 Add lines for files in gdb/testsuite/gdb.cp/* that are
828 still not 8.3 unique.
829
7ed85d26
DJ
8302003-08-22 Daniel Jacobowitz <drow@mvista.com>
831
832 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
833 TYPE_VPTR_FIELDNO is valid.
834
eb0d3137
MK
8352003-08-19 Mark Kettenis <kettenis@gnu.org>
836
837 * utils.c (set_width_command): Remove prototypes.
838 (set_screen_size): New prototype.
839 (init_page_info): Simplify by fetching the screen size from
840 Readline. Call set_screen_size.
841 (set_screen_size): New function.
842 (set_width): Add missing whitespace in comment.
843 (set_width_command): Call set_screen_size.
844 (set_height_command): New function.
845 (initialize_utils): Fix formatting. Make "set height" command
846 call set_height_command. Remove redundant code that turns off
847 pagination if output isn't a terminal. Remove redundant call to
848 set_width_command.
849
7e6d0ac8
MK
8502003-08-22 Mark Kettenis <kettenis@gnu.org>
851
3567a8ea
MK
852 * sparc64-tdep.h (sparc64_regnum): Fix comment.
853 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
854 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
855 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
856 `case' keyword.
857 (sparc64_register_info): Give the reister with number
858 SPARC64_STATE_REGNUM a name.
859 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
860 %asi and %ccr.
861 (sparc64_push_dummy_call): Take BIAS into account when checking
862 stcak alignment.
863 (sparc_software_single_step): Remove assertions that check whether
864 NPC and NNPC were zero.
865 (sparc_supply_rwindow): Make public. Merge functionality with
866 sparc64_supply_rwindow.
867 (sparc_fill_rwindow): Make public. Merge functionality with
868 sparc64_fill_rwindow.
869 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
870 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
871 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
872 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
873 sparc_supply_rwindow instead of sparc64_supply_rwindow.
874
7e6d0ac8
MK
875 * reggroups.c: Add whitespace after declarations of local
876 variables in functions.
877
72e5f484
MC
8782003-08-21 Michael Chastain <mec@shout.net>
879
880 * gdbtypes.h: Change array bound type from an int to enum.
881
435ac228
AC
8822003-08-21 Andrew Cagney <cagney@redhat.com>
883
884 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
885 * config/sparc/tm-sparc.h: Ditto.
886 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
887 unconditionally.
888 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
889
0d0e1a63
MK
8902003-07-13 Mark Kettenis <kettenis@gnu.org>
891
892 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
893 (register_objfile_data, set_objfile_data, objfile_data): New
894 prototypes.
895 * objfiles.c (objfile_alloc_data, objfile_free_data): New
896 prototypes.
897 (allocate_objfile): Call objfile_alloc_data.
898 (free_objfile): Call objfile_free_data.
899 (struct objfile_data): New.
900 (struct objfile_data_registration): New.
901 (struct objfile_data_registry): New.
902 (objfile_data_registry): New variable.
903 (register_objfile_data): New function.
904 (objfile_alloc_data, objfile_free_data): New functions.
905 (set_objfile_data, objfile_data): New functions.
906 * dwarf2-frame.c (dwarf2_frame_data): New variable.
907 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
908 (_initialize_dwarf2_frame): New function and prototype.
909
d90cf509
AC
9102003-08-21 Andrew Cagney <cagney@redhat.com>
911
912 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
913 a specific architecture.
914 * arch-utils.h (set_architecture_from_arch_mach): Delete
915 declaration.
916 (target_architecture_hook): Delete declaration.
917 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
918 (default_float_format): Assume GDB_MULTI_ARCH.
919 (default_double_format): Assume GDB_MULTI_ARCH.
920 (set_endian_from_file): Delete function.
921 (arch_ok): Delete function.
922 (set_arch): Delete function.
923 (set_architecture_from_arch_mach): Delete function.
924 (set_architecture_from_file): Delete function.
925 (set_architecture): Assume GDB_MULTI_ARCH.
926 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
927
8b39fe56
MK
9282003-08-21 Mark Kettenis <kettenis@gnu.org>
929
930 Rewrite FreeBSD/sparc64 native configuration.
931 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
932 * sparc64fbsd-nat.c: New file.
933 * sparc64fbsd-tdep.c: New file.
934 * sparc64-tdep.c sparc64-tdep.h: New files.
935 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
936 sparc64fbsd-tdep.o): New dependencies.
937 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
938 and sparc64fbsd-tdep.c.
939 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
940 * config/sparc/fbsd.mh: Remove copyright notice.
941 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
942 sparcbsd-nat.o.
943 * config/sparc/fbsd.mt: Remove copyright notice.
944 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
945 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
946 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
947 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
948 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
949 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
950 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
951 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
952 "sparc/tm-sp64.h".
953 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
954 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
955
a7f19c79
MC
9562003-08-21 Michael Chastain <mec@shout.net>
957
958 * symtab.h: Add doco on the space critical structures and
959 some measurements of space usage.
960
da08ea5b
MS
9612003-08-21 Michael Snyder <msnyder@redhat.com>
962
963 * tracepoint.c (trace_dump_command): Trace break address
964 is subject to DECR_PC_AFTER_BREAK.
965 (set_traceframe_context): Make "trace_line" an int.
966 Fixes suggested by Mark Newman <mark.newman@lmco.com>
967
6df2bf50
MS
9682003-08-20 Michael Snyder <msnyder@redhat.com>
969
970 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
971 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
972 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
973 argument passing.
974 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
975 functions, replace sh_push_dummy_call.
976 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
977
0955bbf0
MC
9782003-08-20 Michael Chastain <mec@shout.net>
979
980 * gdbtypes.h (struct main_type): Rearrange to save space.
981
260a4188
MS
9822003-08-20 Michael Snyder <msnyder@redhat.com>
983
984 * trad-frame.c: Comment typo fix.
985
8baa6f92
KB
9862003-08-20 Michael Snyder <msnyder@redhat.com>
987 Kevin Buettner <kevinb@redhat.com>
988
989 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
990 (frv_frame_init_saved_regs): Add declaration.
991 (frame_extra_info): Add new field ``saved_regs''.
992 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
993 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
994 Update frame related code.
995 (frv_extract_struct_value_address): Adjust formatting.
996 * Makefile.in (frv-tdep.o): Update dependencies.
997 * config/frv/tm-frv.h (target_insert_watchpoint)
998 (target_remove_watchpoint, target_insert_hw_breakpoint)
999 (target_remove_hw_breakpoint): Delete these macros.
1000 (remote_insert_watchpoint, remote_remove_watchpoint)
1001 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1002 these declarations.
1003
87193939
MC
10042003-08-20 Michael Chastain <mec@shout.net>
1005
1006 * defs.h (ENUM_BITFIELD): New macro.
1007 * symtab.h (ENUM_BITFIELD): Use it.
1008 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1009
062103ba
SA
10102003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1011
1012 * MAINTAINERS (write after approval): Add myself.
1013
8b148df9
AC
10142003-08-18 Andrew Cagney <cagney@redhat.com>
1015
1016 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1017 * gdbarch.h, gdbarch.c: Re-generate.
1018 * infcall.c (call_function_by_hand): Adjust the SP by
1019 frame_red_zone_size before allocating any stack space.
1020 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1021 * x86-64-tdep.c (x86_64_frame_align): New function.
1022 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1023
1024 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1025 Remove code adjusting SP so that it skips over the Red Zone.
1026
954a4db8
MK
10272003-08-18 Mark Kettenis <kettenis@gnu.org>
1028
1029 * NEWS (New native configurations): Mention FreeBSD/amd64.
1030
1a241548
AC
10312003-08-18 Andrew Cagney <cagney@redhat.com>
1032
1033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1034 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1035 "m68k_frame_p".
1036 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1037
f82b2acd
MK
10382003-08-18 Mark Kettenis <kettenis@gnu.org>
1039
1040 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1041
4056d258
ML
10422003-08-18 Michal Ludvig <mludvig@suse.cz>
1043
1044 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1045 Define.
1046 * i386-linux-nat.c: Include "linux-nat.h".
1047 (child_post_startup_inferior): New function.
1048
99ab4326
MK
10492003-08-18 Mark Kettenis <kettenis@gnu.org>
1050
1051 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1052 at the start of a frameless function. This probably fixes PR
1053 backtrace/1338.
1054
c8d5f0d6
MC
10552003-08-17 Michael Chastain <mec@shout.net>
1056
1057 * symfile.c (find_sym_fns): Remove special case for apollo target.
1058
9016a515
DJ
10592003-08-17 Daniel Jacobowitz <drow@mvista.com>
1060
1061 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1062 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1063 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1064 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1065 (linux_supports_tracevforkdone): New function.
1066 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1067 TRACEVFORKDONE.
1068 (child_follow_fork): Handle vfork.
1069 (linux_handle_extended_wait): Likewise. Also handle exec.
1070 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1071 * NEWS: Mention fork tracing.
1072
c538c11c
DJ
10732003-08-17 Daniel Jacobowitz <drow@mvista.com>
1074
1075 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1076
4de4c07c
DJ
10772003-08-17 Daniel Jacobowitz <drow@mvista.com>
1078
1079 * Makefile.in (i386-linux-nat.o): Update dependencies.
1080 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1081 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1082 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1083 * i386-linux-nat.c: Include "linux-nat.h".
1084 (child_post_startup_inferior): New function.
1085 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1086 * infptrace.c (kill_inferior): Wrap in #ifdef.
1087 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1088 attaching to each LWP.
1089 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1090 (init_lin_lwp_ops): Fill in some more operations.
1091 * linux-nat.h (linux_enable_event_reporting)
1092 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1093 prototypes.
1094 * linux-nat.c (linux_enable_event_reporting): New function.
1095 (child_post_attach, linux_child_post_startup_inferior)
1096 (child_post_startup_inferior, child_follow_fork)
1097 (linux_handle_extended_wait, kill_inferior): New functions.
1098
7996bcec
AC
10992003-08-16 Andrew Cagney <cagney@redhat.com>
1100
1101 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1102 * gdbarch.h, gdbarch.c: Re-generate.
1103
3d48a7a0
MK
11042003-08-16 Mark Kettenis <kettenis@gnu.org>
1105
1106 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1107
7989c619
AC
11082003-08-16 Andrew Cagney <cagney@redhat.com>
1109
1110 * NEWS: Mention that "set prompt-escape-char" was deleted.
1111 * top.c (get_prompt_1): Delete function.
1112 (gdb_prompt_escape):
1113 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1114 prompt-escape-char" command.
1115 (MAX_PROMPT_SIZE): Delete macro.
1116 (get_prompt): Simplify, do not call get_prompt_1.
1117
07978cd8
AC
11182003-08-16 Andrew Cagney <cagney@redhat.com>
1119
1120 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1121 -Werror. -Wformat-nonliteral problems.
1122
3ff7cf9e
JB
11232003-08-15 J. Brobecker <brobecker@gnat.com>
1124
1125 Further multiarching work mostly for hppa64-*-hpux11:
1126 * hppa-tdep.h: New file.
1127 * hppa-tdep.c: #include hppa-tdep.c.
1128 (hppa32_num_regs): Renamed from hppa_num_regs.
1129 (hppa64_num_regs): New constant.
1130 (hppa64_call_dummy_breakpoint_offset): New constant.
1131 (hppa32_call_dummy_length): New constant.
1132 (hppa64_call_dummy_length): New constant.
1133 (hppa32_stack_align): Make name 32bit explicit.
1134 (hppa32_register_virtual_type): Likewise.
1135 (hppa32_extract_return_value): Likewise.
1136 (hppa32_use_struct_convention): Likewise.
1137 (hppa32_store_return_value): Likewise.
1138 (hppa64_register_virtual_type): New function.
1139 (hppa64_extract_return_value): New function.
1140 (hppa64_use_struct_convention): New function.
1141 (hppa64_store_return_value): New function.
1142 (hppa_frame_locals_address): Remove declaration, function does
1143 not exist anymore.
1144 (hppa_register_byte): Add support for PA64 ABI.
1145 (hppa_gdbarch_init): Add support for PA64 ABI.
1146 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1147 Make name 32bit explicit.
1148 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1149 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1150 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1151 (hppa64_hpux_frame_base_before_sigtramp): New function.
1152 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1153 * config/pa/tm-hppa64.h: Remove macros that are no longer
1154 necessary now that the gdbarch vector is properly setup.
1155 Transform some macros into function calls. Some minor cleanup.
1156 * config/pa/tm-hppah.h: Update function calls in macros
1157 following the function renaming in hppa-hpux-tdep.c.
1158 * Makefile.in (hppa_tdep_h): New variable.
1159 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1160
5d05ca6d
MS
11612003-08-14 Michael Snyder <msnyder@redhat.com>
1162
1163 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1164
37ba2569
JB
11652003-08-13 J. Brobecker <brobecker@gnat.com>
1166
1167 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1168 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1169 routine.
1170
aed7f26a
MS
11712003-08-13 Michael Snyder <msnyder@redhat.com>
1172
1173 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1174 (frv_saved_pc_after_call): Use deprecated ftype.
1175 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1176 (frv_remote_translate_xfer_address): Remove.
1177 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1178
752d4ac1
JB
11792003-08-13 J. Brobecker <brobecker@gnat.com>
1180
1181 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1182 initialization after the common gdbarch initialization, not before.
1183
1426ac1d
JB
11842003-08-13 J. Brobecker <brobecker@gnat.com>
1185
1186 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1187 (ADDR_BITS_REMOVE): Remove, redundant.
1188
b6fbdd1d
JB
11892003-08-13 J. Brobecker <brobecker@gnat.com>
1190
1191 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1192 gdbarch method to clear the 2 low bits of text addresses.
1193
44160db3
AC
11942003-08-12 Andrew Cagney <cagney@redhat.com>
1195
1196 * Makefile.in (dsrec.o): Update dependencies.
1197 * dsrec.c: Include "gdb_assert.h".
1198 (make_srec): Use snprintf instead of sprintf, use a literal format
1199 string.
1200
bcf7d3ca
AC
12012003-08-12 Andrew Cagney <cagney@redhat.com>
1202
1203 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1204 FRAME_OBSTACK_ZALLOC.
1205
49ed40de
KB
12062003-08-12 Kevin Buettner <kevinb@redhat.com>
1207
1208 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1209 SSE registers.
1210
b246147c
MK
12112003-08-10 Mark Kettenis <kettenis@gnu.org>
1212
1213 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1214 amd64fbsd_sc_reg_offset): Add extern declarations.
1215 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1216 declarations.
1217
d95fdc0d
BE
12182003-08-11 Ben Elliston <bje@wasabisystems.com>
1219
1220 * MAINTAINERS (write after approval): Update my mail address.
1221
cf6a0e73
AC
12222003-08-10 Andrew Cagney <cagney@redhat.com>
1223
1224 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1225
f837910f
MK
12262003-08-10 Mark Kettenis <kettenis@gnu.org>
1227
e2dbbd2d
MK
1228 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1229 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1230 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1231 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1232 i386bsd_sc_reg_offset): Add extern declarations.
1233 * i386obsd-nat.c: Include "i386-tdep.h"
1234 (_initialize_i386obsd_nat): Remove extern declarations.
1235 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1236 declarations.
1237 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1238 declarations.
1239
f837910f
MK
1240 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1241 instead of frame_read_register.
1242 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1243 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1244 SP_REGNUM.
1245 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1246 instead of frame_unwind_unsigned_register. Use
1247 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1248 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1249 instead of read_register. Use builtin_type_void_data_ptr instead
1250 of builtin_type_void_func_ptr when extracting the address of the
1251 jmp_buf.
1252 (i386_extract_return_value, i386_store_return_value,
1253 i386_pseudo_register_read, i386_pseudo_register_write): Use
1254 register_size instead REGISTER_RAW_SIZE.
1255
edcf254d
AC
12562003-08-10 Andrew Cagney <cagney@redhat.com>
1257
1258 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1259 sprintf. Make "name" constant.
1260
26604a34
MK
12612003-08-10 Mark Kettenis <kettenis@gnu.org>
1262
192285c6
MK
1263 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1264 instead of frame_read_register.
f837910f
MK
1265 (i387_print_float_info): Use get_frame_register and
1266 get_frame_register_unsigned instead of frame_register_read.
192285c6 1267
f0925262
MK
1268 * i386fbsd-nat.c: Include "i386-tdep.h".
1269 (child_resume): Make `eflags' an ULONGEST. Use
1270 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1271 instead of register_read and register_write.
1272
a144416f
MK
1273 * i386bsd-nat.c (fetch_inferior_registers,
1274 store_inferior_registers): Don't use && at the end of a line.
1275 (_initialize_i386bsd_nat): Fix typo.
1276
fec74868
MK
1277 * frame.c (_initialize_frame): Add missing backslash.
1278
87232496
MK
1279 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1280 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1281 and supply_register instead of manipulating the register buffer
1282 directly.
1283
c9b9de0b
MK
1284 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1285 * config/i386/nm-i386sol2.h
1286 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1287
26604a34
MK
1288 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1289 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1290 instructions that GCC likes to mingle into the prologue. Fixes
1291 gdb/1253 and gdb/1255.
1292
25d29d70
AC
12932003-08-09 Andrew Cagney <cagney@redhat.com>
1294
1295 Fix GDB PR cli/926.
1296 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1297 * command.h (add_setshow_uinteger_cmd): Declare.
1298 * frame.c (set_backtrace_cmd): New function.
1299 (show_backtrace_cmd): New function.
1300 * frame.c (_initialize_frame): Replace "set/show
1301 backtrace-below-main" with "set/show backtrace past-main". Add
1302 command "set/show backtrace limit".
1303 (backtrace_past_main): Rename "backtrace_below_main".
1304 (backtrace_limit): New variable.
1305 (get_prev_frame): Update. Check the backtrace_limit.
1306
9ebf4acf
AC
13072003-08-09 Andrew Cagney <cagney@redhat.com>
1308
1309 * defs.h (xstrprintf): Declare.
1310 * utils.c (xstrprintf): New function.
1311 * breakpoint.c (insert_breakpoints): Replace sprintf and
1312 non-literal format strings, with xstrprintf and cleanups.
1313 (delete_breakpoint,breakpoint_re_set): Ditto.
1314 (commands_command, insert_breakpoints): Ditto.
1315 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1316 (break_at_finish_command_1): Ditto.
1317
3771659b
AC
13182003-08-09 Andrew Cagney <cagney@redhat.com>
1319
1320 * MAINTAINERS (language support): List Adam Fedor as Objective C
1321 maintainer.
1322
b4263afa
JB
13232003-08-08 J. Brobecker <brobecker@gnat.com>
1324
1325 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1326 are now multiarched.
1327
d84defb1
JB
13282003-08-08 J. Brobecker <brobecker@gnat.com>
1329
1330 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1331 longer necessary now that hppa64 is partially multiarch'ed.
1332
f786f615
AC
13332003-08-08 Andrew Cagney <cagney@redhat.com>
1334
1335 * interps.c (interp_set): Check for a NULL "old_interp".
1336
c938e9b0
L
13372003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1338
1339 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1340 (install-only): Support DESTDIR.
1341 (uninstall): Likewise.
1342 (install-gdbtk): Likewise.
1343
9a146a11
EZ
13442003-08-08 Elena Zannoni <ezannoni@redhat.com>
1345
1346 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1347 contains something meaningful at all times.
1348
1349Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1350
62599e99 1351 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1352
56296155
BC
1353Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1354
62599e99 1355 * MAINTAINERS (write after approval): Added self.
56296155 1356
9710e734
AC
13572003-08-07 Andrew Cagney <cagney@redhat.com>
1358
1359 * inferior.h (AT_SYMBOL): Define.
1360 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1361 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1362 * mips-tdep.c (mips_call_dummy_address): Delete function.
1363 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1364 set call_dummy_address.
1365
98b3ab73
AC
13662003-08-07 Andrew Cagney <cagney@redhat.com>
1367
1368 * language.c (op_error): Delete function.
1369 (binop_type_check): Delete function.
1370 * language.h (type_op_error, range_op_error): Delete macros.
1371 (op_error): Delete declaration.
1372
2fcf52f0
AC
13732003-08-07 Andrew Cagney <cagney@redhat.com>
1374
1375 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1376
abd4220e 13772003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1378
abd4220e 1379 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1380 (x86_64_push_arguments): Skip the red zone.
abd4220e 1381
9dd5f34f
AC
13822003-08-05 Andrew Cagney <cagney@redhat.com>
1383
1384 * reggroups.c (reggroup_next): Check for the final entry.
1385
e5e78edc
AC
13862003-08-04 Andrew Cagney <cagney@redhat.com>
1387
ab4e3d93
AC
1388 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1389 * cli/cli-script.c (define_command): Call query directly, instead
1390 of passing it a buffer.
1391 * ocd.c (ocd_error): Pass error a constant format string.
1392 * remote-mips.c (mips_error): Use fputs_filtered.
1393
1062ca82
AC
1394 * solib-svr4.c (_initialize_svr4_solib): Update
1395 register_gdbarch_data call.
1396 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1397
fcc1c85c
AC
1398 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1399 (register_gdbarch_data): Delete "free" parameter. Update
1400 comments.
1401 * gdbarch.h, gdbarch.c: Re-generate.
1402 * reggroups.c (_initialize_reggroup): Update.
1403 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1404 * frame-base.c (_initialize_frame_base): Update.
1405 * frame-unwind.c (_initialize_frame_unwind): Update.
1406 * user-regs.c (_initialize_user_regs): Update.
1407 * remote.c (_initialize_remote): Update.
1408 * regcache.c (_initialize_regcache): Update.
1409
116f06ea
AC
1410 * regcache.c (xfree_regcache_descr): Delete function.
1411 (_initialize_regcache): Update call to register_gdbarch_data.
1412 (init_regcache_descr, init_legacy_regcache_descr): Use
1413 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1414
e5e78edc
AC
1415 * remote.c (free_remote_state): Delete function.
1416 (_initialize_remote): Update register_gdbarch_data.
1417 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1418 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1419
6c7d17ba
AC
14202003-08-04 Andrew Cagney <cagney@redhat.com>
1421
1422 * reggroups.c (struct reggroup_el): Define.
1423 (struct reggroups): Delete field "nr_group". Replace array
1424 "group" with a "first" to "last" linked list.
1425 (reggroups_init): Update. Allocate using gdbarch's obstack.
1426 (reggroups_free): Delete function.
1427 (add_group): Update. Add "el" parameter.
1428 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1429 (default_groups): Update.
1430 (reggroup_next): Replace reggroups.
1431 (reggroups_dump): Update.
1432 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1433 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1434 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1435
89b7795b
DJ
14362003-08-04 Daniel Jacobowitz <drow@mvista.com>
1437
1438 * Makefile.in (tui-interp.o): Update dependencies.
1439
306d9ac5
DC
14402003-08-04 David Carlton <carlton@kealia.com>
1441
1442 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1443 to internal_error call.
1444 * source.c (forward_search_command): Add "%s" format argument.
1445 (reverse_search_command): Ditto.
1446 * top.c (quit_confirm): Ditto.
1447 * cli/cli-setshow.c (do_setshow_command): Ditto.
1448 * cp-valprint.c (cp_print_class_method): Replace
1449 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1450 (cp_print_class_member): Ditto.
1451 * event-top.c (command_line_handler): Ditto.
1452 * linux-proc.c (linux_info_proc_cmd): Ditto.
1453 * p-typeprint.c (pascal_type_print_base): Ditto.
1454 * p-valprint.c (pascal_object_print_class_method): Ditto.
1455 (pascal_object_print_class_member): Ditto.
1456 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1457 * remote.c (remote_cisco_section_offsets): Ditto.
1458 * top.c (command_line_input): Ditto.
1459 * utils.c (vwarning,error_stream,quit): Ditto.
1460 * valprint.c (print_floating,print_binary_chars)
1461 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1462
57bfe177
AC
14632003-08-04 Andrew Cagney <cagney@redhat.com>
1464
1465 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1466
e546b999
AC
14672003-08-02 Andrew Cagney <cagney@redhat.com>
1468
1469 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1470 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1471 amd64fbsd-nat.c.
1472
91092ee5
AC
14732003-08-02 Andrew Cagney <cagney@redhat.com>
1474
1475 * Makefile.in: Update all dependencies and definitions.
1476
889f28e2
AF
14772003-08-02 Adam Fedor <fedor@gnu.org>
1478
1479 * linespec.c (is_objc_method_format): New function
1480 (decode_line_1, locate_first_half): Use it.
1481 Fixes PR objc/1298
1482
880bc914
AC
14832003-08-01 Andrew Cagney <cagney@redhat.com>
1484
1485 * NEWS: Mention that m32r is multi-arch.
1486 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1487 * configure.tgt: Recognize m32r-*-*.
1488 * config/m32r/tm-m32r.h: Delete file.
1489 * config/m32r/m32r.mt: New file.
1490 * m32r-rom.c (m32r_upload_command): Use hostent only when
1491 gethostname succeeds, in order to avoid a compilation
1492 warning.
1493 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1494 compiler warning.
1495
19f59343
MS
14962003-08-01 Michael Snyder <msnyder@redhat.com>
1497
1498 * sh-tdep.c (sh_frame_align): New gdbarch method.
1499 (sh_gdbarch_init): Set up frame_align method.
1500
4e7d7511
MS
15012003-07-31 Michael Snyder <msnyder@redhat.com>
1502
1503 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1504 which is already covered by the new frames infrastructure.
1505
63022984
AC
15062003-07-31 Andrew Cagney <cagney@redhat.com>
1507
1508 * user-regs.c (struct user_reg): Add "next" link.
1509 (struct user_regs): Replace "user" with "first" and "last" links.
1510 (append_user_reg): Add pre-allocated "reg" parameter.
1511 (builtin_user_regs): Provide initial value for "last".
1512 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1513 (user_regs_init): Allocate memory from the gdbarch obstack.
1514 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1515 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1516 linked list.
1517 (usernum_to_user_reg): New function.
1518 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1519 (value_of_user_reg): Use usernum_to_user_reg.
1520 (user_regs_free): Delete function.
1521 (_initialize_user_regs): Update register_gdbarch_data call.
1522
7cf6e574
DJ
15232003-07-31 Daniel Jacobowitz <drow@mvista.com>
1524
1525 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1526
c48a845b
MS
15272003-07-30 Michael Snyder <msnyder@redhat.com>
1528
4e7d7511 1529 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1530 * infcall.c (call_function_by_hand): Pass struct_addr to
1531 value_being_returned.
1532 * infcmd.c (print_return_value): Pass zero as struct_addr.
1533 * values.c (value_being_returned): If struct_addr is passed,
1534 use it instead of trying to recover it from the inferior.
1535
f0d8db19
KB
15362003-07-30 Kevin Buettner <kevinb@redhat.com>
1537
1538 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1539 the prologue analyzer won't need to attempt to extract the pc
1540 value from the woefully incomplete dummy frame.
1541 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1542 possible. Disable code which modifies the frame.
1543
e5c113a1
AC
15442003-07-28 Andrew Cagney <cagney@redhat.com>
1545
1546 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1547 to level 2.
1548 (annotate_breakpoints_table, annotate_record): Ditto.
1549 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1550 (annotate_field_name_end, annotate_field_value): Ditto.
1551 (annotate_field_end, annotate_frame_source_begin): Ditto.
1552 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1553 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1554 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1555 (annotate_frame_address_end, annotate_frame_address): Ditto.
1556 (annotate_frame_args, annotate_frame_end): Ditto.
1557 (annotate_frame_where, annotate_arg_begin): Ditto.
1558 (annotate_arg_name_end, annotate_arg_value): Ditto.
1559 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1560 (annotate_function_call, annotate_signal_name): Ditto.
1561 (annotate_signal_string, annotate_signal_name_end): Ditto.
1562 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1563 (annotate_value_begin, annotate_value_history_value): Ditto.
1564 (annotate_value_history_end, annotate_value_end): Ditto.
1565 (annotate_display_begin, annotate_display_number_end): Ditto.
1566 (annotate_display_format, annotate_display_expression): Ditto.
1567 (annotate_display_expression_end, annotate_display_value): Ditto.
1568 (annotate_display_end, annotate_array_section_begin): Ditto.
1569 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1570 (annotate_elt, annotate_array_section_end): Ditto.
1571
bb1db049
AC
15722003-07-28 Andrew Cagney <cagney@redhat.com>
1573
1574 * regcache.c (struct regcache_descr): Update comments on
1575 nr_raw_registers.
1576 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1577 sizeof_raw_register_valid_p.
1578 (init_regcache_descr): Set nr_raw_registers and
1579 sizeof_raw_register_valid_p before calling
1580 init_legacy_regcache_descr.
1581
20e6603c
AC
15822003-07-28 Andrew Cagney <cagney@redhat.com>
1583
1584 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1585 MOD NUM_REGS.
1586
db742940
DJ
15872003-07-28 Daniel Jacobowitz <drow@mvista.com>
1588
1589 * thread.c (info_threads_command): Use get_selected_frame ().
1590 Check that there is at least one non-sentinel frame.
1591
ce7f4371
SC
15922003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1593
1594 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1595 (m68hc11_pop_frame): Remove.
1596 (m68hc11_frame_saved_pc): Remove.
1597 (m68hc11_frame_chain): Remove.
1598 (m68hc11_frame_init_saved_regs): Remove.
1599 (m68hc11_init_extra_frame_info): Remove.
1600 (m68hc11_store_struct_return): Remove.
1601 (m68hc11_saved_pc_after_call): Remove.
1602
1ea653ae
SC
16032003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1604
1605 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1606 frame unwind information.
1607 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1608 and adapted for frame unwinding.
1609 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1610 (m68hc11_unwind_pc): New function.
1611 (m68hc11_frame_unwind_cache): New function to analyze frames.
1612 (m68hc11_frame_this_id): New function to create new frame struct.
1613 (m68hc11_frame_prev_register): New function to unwind a register from
1614 the frame.
1615 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1616 (m68hc11_frame_p): New function for the above.
1617 (m68hc11_frame_base_address): New function to return fp of frame.
1618 (m68hc11_frame_args_address): Update for frame.
1619 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1620 (m68hc11_unwind_sp): New function.
1621 (m68hc11_unwind_dummy_id): New function.
1622 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1623 calls.
1624
c8a7f6ac
SC
16252003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1626
1627 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1628 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1629 when we are beyond the current pc.
1630
3dc990bf
SC
16312003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1632
1633 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1634 from m68hc11_push_arguments.
1635 (m68hc11_push_arguments): Remove.
1636 (m68hc11_push_return_address): Remove.
1637 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1638 handlers; remove deprecated_extra_stack_alignment_needed.
1639
222e5d1d
AC
16402003-07-27 Andrew Cagney <cagney@redhat.com>
1641
1642 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1643 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1644 REAL_PC and not the pointer.
1645 * hppa-hpux-tdep.c: Include frame.h
1646
a7e9a47e
AC
16472003-07-27 Andrew Cagney <cagney@redhat.com>
1648
1649 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1650 GDB_MULTI_ACH_PARTIAL.
1651
7e3dd49e
AC
16522003-07-27 Andrew Cagney <cagney@redhat.com>
1653
1654 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1655 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1656 operator at start and not end of line.
1657 (decode_prologue): Ditto.
1658 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1659 frame_unwind_register_unsigned instead of
1660 frame_unwind_unsigned_register.
1661 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1662 read_register.
1663 (m32r_push_dummy_call): Use register_size instead of
1664 REGISTER_RAW_SIZE.
1665 (m32r_frame_sniffer): Replace m32r_frame_p.
1666 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1667 * m32r-rom.c (report_transfer_performance): Delete extern
1668 declaration.
1669 (m32r_load, m32r_upload_command): Use print_transfer_performance
1670 instead of report_transfer_performance.
1671 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1672 / add_show_from_set.
1673
0880807f
AC
16742003-07-26 Andrew Cagney <cagney@redhat.com>
1675
1676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1677 store_return_value and extract_struct_value_address.
1678
64ae9269
DJ
16792003-07-26 Daniel Jacobowitz <drow@mvista.com>
1680
1681 PR c++/1267
1682 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1683 NULL, default to the section containing PC.
1684
e286caf2
SC
16852003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1686
1687 * NEWS: Mention "regs" deprecated for m68hc11 too.
1688
1689 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1690 (m68hc11_print_register): New function to print out one register.
1691 (m68hc11_print_registers_info): New function to print registers.
1692 (show_regs): Deprecate and use the above.
1693 (m68hc11_gdbarch_init): Install the print_registers_info.
1694
705b278b
JJ
16952003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1696
1697 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1698 that we have a SIGTRAP before returning non-zero.
1699
63cd4198
EZ
17002003-07-23 Michal Ludvig <mludvig@suse.cz>
1701 Elena Zannoni <ezannoni@redhat.com>
1702
1703 * linespec.c (decode_line_2): Avoid crash if
1704 find_function_start_sal() returns empty record.
1705
6926787d
AS
17062003-07-23 Andreas Schwab <schwab@suse.de>
1707
1708 * ia64-tdep.c (ia64_print_insn): New function.
1709 (ia64_gdbarch_init): Set print_insn to it.
1710 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1711 deprecated_tm_print_insn_info.
1712
708cc1b6
MS
17132003-07-22 Michael Snyder <msnyder@redhat.com>
1714
1715 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1716 handle 8-bit returns (long long).
1717 (h8300h_extract_return_value): Ditto.
1718 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1719
aebd7893
AC
17202003-07-22 Andrew Cagney <cagney@redhat.com>
1721
1722 * gdbarch.c Include "gdb_obstack.h".
1723 (struct gdbarch): Add an "obstack".
1724 (alloc_gdbarch_data): Allocate the gdbarch data using
1725 GDBARCH_OBSTACK_CALLOC.
1726 (free_gdbarch_data): Delete function.
1727 (gdbarch_obstack_zalloc): New function.
1728 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1729 Assert that the architecture is not initialized.
1730 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1731 vector from the obstack.
1732 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1733 architecture obstack.
1734 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1735 (set_gdbarch_data): Assert that the data is not initialized.
1736 (struct gdbarch_data): Delete member "free".
1737 (register_gdbarch_data): Do not initialize "free".
1738 * gdbarch.h, gdbarch.c: Re-generate.
1739
153721e6
AC
17402003-07-22 Andrew Cagney <cagney@redhat.com>
1741
1742 * configure.in (build_warnings): Add -Wformat-nonliteral.
1743 * configure: Re-generate.
1744
c193f044 17452003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1746
1747 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1748
c3228f12
EZ
17492003-07-22 Elena Zannoni <ezannoni@redhat.com>
1750
1751 * findvar.c (read_var_value): Remove case for thread local storage
1752 variables. It is now entirely handled by the dwarf2 location
1753 expression code.
1754 * printcmd.c (address_info): Ditto.
1755 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1756 enumeration value.
1757 (struct symbol): Remove objfile field, which was used by
1758 LOC_THREAD_LOCAL_STATIC only.
1759 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1760 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1761 usage of objfile pointer.
1762 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1763 thread local variables.
1764 Add include of objfiles.h.
1765 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1766 storage variables.
1767 * Makefile.in (dwarf2loc.o): Update dependencies.
1768
aef9bcd2
AC
17692003-07-22 Andrew Cagney <cagney@redhat.com>
1770
1771 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1772 get_frame_base.
1773 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1774 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1775 (struct value): Add opaque declaration.
1776 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1777
d95a8903
AC
17782003-07-21 Andrew Cagney <cagney@redhat.com>
1779
1780 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1781 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1782
4db73d49
SC
17832003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1784
1785 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1786 regcache_cooked_read_unsigned instead of read_register.
1787 (m68hc11_saved_pc_after_call): Likewise.
1788 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1789 instead of write_register.
1790 (m68hc11_register_type): New function.
1791 (m68hc11_register_virtual_type): Remove.
1792 (m68hc11_store_return_value): Convert to use the regcache.
1793 (m68hc11_extract_struct_value_address): Likewise.
1794 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1795 m68hc11_register_type; undeprecate store_return_value and
1796 extract_struct_value_address.
1797
ef2b8fcd
SC
17982003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1799
1800 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1801 and translate to use regcache.
1802 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1803
625b0b97
AC
18042003-07-18 Andrew Cagney <cagney@redhat.com>
1805
1806 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1807 * gdbarch.h, gdbarch.c: Re-generate.
1808 * i386-tdep.c (i386_gdbarch_init): Do not set
1809 DWARF2_BUILD_FRAME_INFO.
1810 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1811 unconditionally.
1812 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1813 DWARF2_BUILD_FRAME_INFO.
1814
22b0d388
AC
18152003-07-18 Andrew Cagney <cagney@redhat.com>
1816
1817 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1818 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1819
1ce5d6dd
AC
18202003-07-18 Andrew Cagney <cagney@redhat.com>
1821
1822 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1823 frame_unwind_address_in_block, instead of frame_pc_unwind.
1824 (dwarf2_frame_cache): Ditto.
1825
e6e5e94c
AC
18262003-07-18 Andrew Cagney <cagney@redhat.com>
1827
1828 * user-regs.h (struct gdbarch): Declare opaque.
1829 * ui-out.h (struct ui_file): Declare opaque.
1830 * dwarf2-frame.h (struct frame_info): Declare opaque.
1831
5483d879
KW
18322003-07-18 Kris Warkentin <kewarken@qnx.com>
1833
1834 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1835 #include "...".
1836 (procfs_meminfo): Change strerror to safe_strerror.
1837 (procfs_can_run): Remove K&R badness.
1838
278a7cf7
MS
18392003-07-17 Michael Snyder <msnyder@redhat.com>
1840
1841 * remote-sim.c: Comment typo fix.
1842
606e3b82
AC
18432003-07-17 Andrew Cagney <cagney@redhat.com>
1844
1845 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1846 configure.
1847 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1848 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1849 GDB_MULTI_ARCH_PARTIAL.
1850
c43af07c
EZ
18512003-07-17 Elena Zannoni <ezannoni@redhat.com>
1852
1853 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1854 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1855 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1856
3b85b0f1
TR
18572003-07-16 Theodore A. Roth <troth@openavr.org>
1858
1859 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1860 found.
1861 (avr_frame_unwind_cache): Don't unwind FP for main.
1862 Update a comment.
1863 Save the computed prev_sp.
1864 (avr_saved_regs_unwinder): Remove function.
1865 (avr_frame_prev_register): Use PC unwind logic from
1866 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1867
336d1bba
AC
18682003-07-16 Andrew Cagney <cagney@redhat.com>
1869
1870 * frame-base.h (frame_base_p_ftype): Delete definition.
1871 (frame_base_append_predicate): Delete declaration.
1872 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1873 (frame_unwind_append_predicate): Delete declaration.
1874 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1875 (append_predicate): Delete parameter "p".
1876 (frame_unwind_append_predicate): Delete function.
1877 (frame_unwind_append_sniffer): Update call to append_predicate.
1878 (frame_unwind_free): Delete function.
1879 (_initialize_frame_unwind): Pass NULL as "free" to
1880 register_gdbarch_data.
1881 (frame_unwind_init): Append the dummy_frame_sniffer.
1882 (frame_unwind_find_by_frame): Simplify.
1883 * frame-base.c (struct frame_base_table): Delete field "p".
1884 (append_predicate): Delete parameter "p".
1885 (frame_base_append_predicate): Delete function.
1886 (frame_base_append_sniffer): Update call to append_predicate.
1887 (frame_base_free): Delete function.
1888 (frame_base_find_by_frame): Simplify.
1889 (_initialize_frame_base): Pass NULL as "free" to
1890 register_gdbarch_data.
1891 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1892 (x86_64_sigtramp_frame_sniffer): Replace
1893 "x86_64_sigtramp_frame_p".
1894 (x86_64_init_abi): Set the frame unwind sniffers.
1895 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1896 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1897 (m68k_gdbarch_init): Set the frame unwind sniffers.
1898 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1899 "i386_sigtramp_frame_p".
1900 (i386_frame_sniffer): Replace "i386_frame_p".
1901 (i386_gdbarch_init): Set the frame unwind sniffers.
1902 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1903 (avr_gdbarch_init): Set the frame unwind sniffers.
1904 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1905 "alpha_sigtramp_frame_p"
1906 (alpha_heuristic_frame_sniffer): Replace
1907 "alpha_heuristic_frame_p".
1908 (alpha_gdbarch_init): Set the frame unwind sniffers.
1909 (alpha_dwarf2_init_abi): Ditto.
1910 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1911 "alpha_debug_frame_p".
1912 (alpha_mdebug_frame_base_sniffer): Replace
1913 "alpha_mdebug_frame_base_p".
1914 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1915 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1916 (d10v_gdbarch_init): Set the frame unwind sniffer.
1917 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1918 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1919 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1920 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1921 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1922 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1923
48db5a3c
CV
19242003-07-16 Michael Snyder <msnyder@redhat.com>
1925
1926 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1927 should go thru sh_dsp_register_sim_regno, else the dsp regs
1928 will not get the right values.
1929
19302003-07-16 Corinna Vinschen <vinschen@redhat.com>
1931
1932 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1933 deprecated_store_floating by call to store_typed_floating.
1934 (sh_sh4_register_convert_to_raw): Substitute call to
1935 deprecated_extract_floating by call to extract_typed_floating.
1936
19372003-07-16 Corinna Vinschen <vinschen@redhat.com>
1938
1939 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1940
19412003-07-16 Corinna Vinschen <vinschen@redhat.com>
1942
1943 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1944 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1945 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1946 as possible.
1947 (do_pseudo_register): Remove.
1948 (sh_push_dummy_code): New function.
1949 (sh64_store_struct_return): Rename from sh_store_struct_return.
1950 Only called for sh64 now.
1951 (sh_extract_struct_value_address): Regcache'ify.
1952 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1953 and accomodate new tasks.
1954 (sh64_push_return_address): Rename from sh_push_return_address.
1955 Only called for sh64 now.
1956 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1957 Regcache'ify.
1958 (sh3e_sh4_extract_return_value): Regcache'ify.
1959 (sh_default_store_return_value): Ditto.
1960 (sh3e_sh4_store_return_value): Ditto.
1961 (sh_default_register_byte): Remove.
1962 (sh_sh4_register_byte): Remove.
1963 (sh_default_register_raw_size): Remove.
1964 (sh_sh4_register_raw_size): Remove.
1965 (sh_register_virtual_size): Remove.
1966 (sh_sh3e_register_virtual_type): Remove.
1967 (sh_sh3e_register_type): New function.
1968 (sh_sh4_register_virtual_type): Remove.
1969 (sh_sh4_register_type): New function.
1970 (sh_default_register_virtual_type): Remove.
1971 (sh_default_register_type): New function.
1972 (do_fv_register_info): Add parameters to accomodate call from
1973 sh_print_registers_info.
1974 (do_dr_register_info): Ditto.
1975 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1976 Add parameters to accomodate call from sh_print_registers_info.
1977 (sh_do_fp_register): Ditto.
1978 (sh64_do_pseudo_register): Call do_dr_register_info,
1979 do_fv_register_info and sh_do_fp_register with default parameters.
1980 (sh_do_register): Add parameters to accomodate call from
1981 sh_print_registers_info.
1982 (sh_print_register): Ditto.
1983 (sh_print_registers_info): Rename from sh_do_registers_info.
1984 Add parameters to be used as gdbarch_print_registers_info
1985 implementation. Accomodate removed do_pseudo_register function
1986 pointer.
1987 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1988 function pointer. Call sh_print_register with default parameters.
1989 (sh64_do_registers_info): Call sh_print_registers_info instead of
1990 sh_do_registers_info.
1991 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1992 detection of deprecated vs. non-deprecated functionality.
1993 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1994 function pointer assignments by direct function calls.
1995
e8a89fe2
AC
19962003-07-15 Andrew Cagney <cagney@redhat.com>
1997
1998 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1999 (frame_register_unwind, create_new_frame): Ditto.
2000 (legacy_get_prev_frame, get_frame_type): Ditto.
2001 (get_frame_base_address): Use frame_base_find_by_frame.
2002 (get_frame_locals_address): Use frame_base_find_by_frame.
2003 (get_frame_args_address): Use frame_base_find_by_frame.
2004 * frame-base.h (frame_base_sniffer_ftype): Declare.
2005 (frame_base_append_sniffer): Declare.
2006 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2007 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2008 (frame_base_append_sniffer): New function.
2009 (frame_base_append_predicate): Add a NULL sniffer.
2010 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2011 (struct frame_base_table): Add "sniffer".
2012 (frame_base_free): Free the "sniffer" table.
2013 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2014 (frame_unwind_append_sniffer): Declare.
2015 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2016 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2017 (struct frame_unwind_table): Add "sniffer", delete "middle".
2018 (append_predicate): Add "sniffer" parameter, append the sniffer.
2019 (frame_unwind_init): Update append_predicate call.
2020 (frame_unwind_append_sniffer): New function.
2021 (frame_unwind_append_predicate): Update append_predicate call.
2022 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2023
0714963c
AC
20242003-07-15 Andrew Cagney <cagney@redhat.com>
2025
2026 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2027 before code inhibiting repeated unwind attempts. Add to
2028 commentary on that test's problems.
2029 * blockframe.c (inside_main_func): Look for "main" in the minimal
2030 symbol table.
2031 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2032 identical.
2033
d9170e22
AC
20342003-07-15 Andrew Cagney <cagney@redhat.com>
2035
2036 * complaints.c (struct explanation): Define.
2037 (struct complaints): Change type of "explanation" to "struct
2038 explanation".
2039 (symfile_explanations): Convert to a "struct explanation" table.
2040 (vcomplaint): Update.
2041
eba29c8c
ML
20422003-07-15 Michal Ludvig <mludvig@suse.cz>
2043
2044 * x86-64-linux-nat.c (regmap): Removed.
2045 (supply_gregset, fill_gregset): Call
2046 x86_64_linux_(fill,supply)_gregset functions.
2047 * x86-64-linux-tdep.c (USER_*): New defines.
2048 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2049 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2050 New functions.
2051 (fetch_core_registers): Ditto.
2052 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2053 * x86-64-linux-tdep.h: New file.
2054 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2055 and core-regset.o.
2056 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2057
68cc0bfb
MK
20582003-07-13 Mark Kettenis <kettenis@gnu.org>
2059
88a115f7
MK
2060 * x86-64-tdep.c (x86_64_store_return_value): Use
2061 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2062
68cc0bfb
MK
2063 * configure.host: Add x86_64-*-freebsd*.
2064 * configure.tgt: Add x86_64-*-freebsd*.
2065 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2066 * amd64fbsd-nat.c: New file.
2067 * amd64fbsd-tdep.c: New file.
2068 * config/i386/nm-fbsd64.h: New file.
2069 * config/i386/fbsd64.mh: New file.
2070 * config/i386/fbsd64.mt: New file.
2071
138e7be5
MK
20722003-07-11 Mark Kettenis <kettenis@gnu.org>
2073
2074 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2075 `sc_regs_offset' and `sc_fpregs_offset'.
2076 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2077 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2078 (alpha_sigtramp_register_address): Rewrite to use new members of
2079 `struct gdbarch_tdep'.
2080 (alpha_gdbarch_init): Initialize new members of struct
2081 gdbarch_tdep'.
2082 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2083 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2084 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2085 (alphafbsd_pc_in_sigtramp): Implement.
2086 (alphafbsd_sigtramp_offset): New function.
2087 (alphafbsd_sigcontext_addr): New function.
2088 (alphafbsd_init_abi): Initialize signal trampoline related members
2089 of `struct gdbarch_tdep'.
2090 (_initialize_alphafbsd_tdep): Add prototype.
2091
95303a68
TR
20922003-07-11 Theodore A. Roth <troth@openavr.org>
2093
ba292e4c
TR
2094 * Makefile.in (install-only): Quote sed expression when generating
2095 transformed_name.
95303a68 2096
6896c0c7
RH
20972003-07-11 Richard Henderson <rth@redhat.com>
2098
2099 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2100 * dwarf2-frame.c: Include complaints.h.
2101 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2102 variable initialization; return NULL on error.
2103 (decode_frame_entry): New.
2104
8edd5d01
AC
21052003-07-11 Andrew Cagney <cagney@redhat.com>
2106
c4a09524
AC
2107 * frame.h (frame_address_in_block): Delete declaration.
2108 * blockframe.c (frame_address_in_block): Delete function.
2109 (get_frame_block): Use get_frame_address_in_block.
2110 (block_innermost_frame): Ditto.
2111 * stack.c (print_frame, backtrace_command_1): Ditto.
2112
8edd5d01
AC
2113 * frame.h (get_frame_address_in_block): Declare.
2114 (frame_unwind_address_in_block): Declare.
2115 * frame.c (frame_unwind_address_in_block): New function.
2116 (get_frame_address_in_block): New function.
2117
f7968451
AC
21182003-07-10 Andrew Cagney <cagney@redhat.com>
2119
2120 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2121 pre-default. Note: re-generate has no effect.
2122
ae99b398
AC
21232003-07-10 Andrew Cagney <cagney@redhat.com>
2124
2125 * gdbarch.sh: When a variable, but not a function, compare against
2126 0. Fix problem in previous patch.
2127 * gdbarch.c: Re-generate.
2128
956ac328
AC
21292003-07-10 Andrew Cagney <cagney@redhat.com>
2130
2131 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2132 functions against NULL, not 0.
2133 * gdbarch.c: Re-generate.
2134
287c3240
FF
21352003-07-10 Fred Fish <fnf@ninemoons.com>
2136
2137 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2138 null string instead of a null pointer.
2139 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2140
32f63c4b
MS
21412003-07-09 Michael Snyder <msnyder@redhat.com>
2142
2143 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2144
402ecd56
MK
21452003-07-09 Mark Kettenis <kettenis@gnu.org>
2146
2147 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2148 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2149 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2150 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2151 * x86-64-tdep.c: ... from here.
2152
c481dac7
AS
21532003-07-09 Andreas Schwab <schwab@suse.de>
2154
2155 * m68k-tdep.h (enum struct_return): Define.
2156 (struct gdbarch_tdep): Add struct_return.
2157 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2158 bytes are padded to the right, not to the left. Pass struct value
2159 address in register %a1, not on stack.
2160 (m68k_use_struct_convention): New function.
2161 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2162 struct_return in tdep to pcc_struct_return.
2163 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2164 reg_struct_return.
2165
64176fa3
JB
21662003-07-09 Joel Brobecker <brobecker@gnat.com>
2167
2168 * somread.c (som_symfile_offsets): Fix compilation error.
2169
96a4ee76
AC
21702003-07-09 Andrew Cagney <cagney@redhat.com>
2171
2172 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2173 Add comments about the checks.
2174
1517c6d1
AC
21752003-07-08 Andrew Cagney <cagney@redhat.com>
2176
2177 * Makefile.in: Make dependency section headers consistent.
2178 (config_h): Move to $BUILD headers section.
2179 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2180 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2181 (ada-exp.tab.c): Move to YACC/LEX section.
2182 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2183 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2184
dc5dd1eb
KW
21852003-07-08 Kris Warkentin <kewarken@qnx.com>
2186
2187 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2188 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2189 of strerror with safe_strerror, use ISO C function definitions,
2190 and replace instances of sprintf with snprintf.
dc5dd1eb 2191
612dde91
AC
21922003-07-07 Andrew Cagney <cagney@redhat.com>
2193
2194 * frame.c (get_prev_frame): Enable check for identical frames.
2195 Update comments. Update error messages.
2196
492c11d3
JB
21972003-07-07 Joel Brobecker <brobecker@gnat.com>
2198
2199 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2200
376a5a49
JB
22012003-07-07 Joel Brobecker <brobecker@gnat.com>
2202
2203 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2204 sort_symtab_syms, no longer necessary.
2205
22b4a9ad
JB
22062003-07-07 Joel Brobecker <brobecker@gnat.com>
2207
2208 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2209
5bbcb741
JB
22102003-07-07 Joel Brobecker <brobecker@gnat.com>
2211
2212 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2213 (mips_register_byte): Likewise.
2214
c139e7d9
DJ
22152003-07-07 Daniel Jacobowitz <drow@mvista.com>
2216
2217 * Makefile.in (sparc_tdep_h): New.
2218 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2219 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2220 * sparc-linux-nat.c: Include "sparc-tdep.h".
2221 * sparc-nat.c: Likewise.
2222 * sparc-tdep.c: Likewise.
2223 * sparc64nbsd-nat.c: Likewise.
2224 * sparcnbsd-nat.c: Likewise.
2225 * sparcnbsd-tdep.c: Likewise.
2226 * sparc-tdep.h: New file.
2227 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2228 and sparc_npc_regnum.
2229
fd8f87c5
DJ
22302003-07-07 Daniel Jacobowitz <drow@mvista.com>
2231
2232 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2233 (mips_linux_cannot_store_register): List supported instead of
2234 unsupported registers.
2235
13adf674
DJ
22362003-07-07 Daniel Jacobowitz <drow@mvista.com>
2237
2238 * disasm.c (dump_insns): Separate instructions from addresses.
2239
8de307e0
AS
22402003-07-07 Andreas Schwab <schwab@suse.de>
2241
2242 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2243 dependencies.
2244 * m68k-tdep.c (NUM_FREGS): Delete.
2245 (SIG_PC_FP_OFFSET): Delete.
2246 (TARGET_M68K): Delete.
2247 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2248 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2249 P_MOVEL_SP, P_MOVEML_SP): Define.
2250 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2251 P_TRAP): Delete.
2252 (m68k_register_raw_size): Delete.
2253 (m68k_register_virtual_size): Delete.
2254 (m68k_register_type): Renamed from m68k_register_virtual_type and
2255 add gdbarch argument.
2256 (m68k_store_struct_return): Delete.
2257 (m68k_deprecated_extract_return_value): Delete.
2258 (m68k_deprecated_extract_struct_value_address): Delete.
2259 (m68k_frame_chain): Delete.
2260 (m68k_frame_saved_pc): Delete.
2261 (m68k_fix_call_dummy): Delete.
2262 (m68k_push_dummy_frame): Delete.
2263 (m68k_pop_frame): Delete.
2264 (m68k_extract_return_value): New function.
2265 (m68k_store_return_value): Rewrite using regcache.
2266 (m68k_extract_struct_value_address): Rewrite using regcache.
2267 (m68k_push_dummy_call): New function.
2268 (struct m68k_frame_cache): Define.
2269 (m68k_alloc_frame_cache): New function.
2270 (m68k_analyze_frame_setup): New function.
2271 (m68k_analyze_register_saves): New function.
2272 (m68k_analyze_prologue): New function.
2273 (m68k_skip_prologue): Rewrite using above functions.
2274 (m68k_unwind_pc): New function.
2275 (m68k_frame_cache): New function.
2276 (m68k_frame_this_id): New function.
2277 (m68k_frame_prev_register): New function.
2278 (m68k_frame_unwind): New variable.
2279 (m68k_frame_p): New function.
2280 (m68k_sigtramp_frame_cache): New function.
2281 (m68k_sigtramp_frame_this_id): New function.
2282 (m68k_sigtramp_frame_prev_register): New function.
2283 (m68k_sigtramp_frame_unwind): New variable.
2284 (m68k_sigtramp_frame_p): New function.
2285 (m68k_frame_base_address): New function.
2286 (m68k_frame_base): New function.
2287 (m68k_unwind_dummy_id): New function.
2288 (fill_gregset): Use regcache_collect.
2289 (fill_fpregset): Likewise.
2290 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2291 defined.
2292 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2293 deprecated_init_frame_pc, deprecated_store_struct_return,
2294 deprecated_extract_return_value, deprecated_store_return_value,
2295 deprecated_frame_chain, deprecated_frame_saved_pc,
2296 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2297 deprecated_register_virtual_size,
2298 deprecated_max_register_raw_size,
2299 deprecated_max_register_virtual_size,
2300 deprecated_register_virtual_type, deprecated_register_size,
2301 deprecated_register_byte, deprecated_register_bytes,
2302 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2303 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2304 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2305 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2306 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2307 deprecated_push_dummy_frame, deprecated_pop_frame,
2308 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2309 only if SYSCALL_TRAP is defined. Set extract_return_value,
2310 store_return_value, extract_struct_value_address, register_type,
2311 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2312 predicates.
2313 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2314 M68K_MAX_REGISTER_SIZE): Define.
2315 (struct m68k_sigtramp_info): Define.
2316 (struct gdbarch_tdep): Add get_sigtramp_info.
2317 * m68klinux-nat.c (fetch_register): Use register_size instead of
2318 REGISTER_RAW_SIZE. Don't put assignment in if.
2319 (store_register): Likewise.
2320 (fetch_inferior_registers): Likewise.
2321 (store_inferior_registers): Likewise.
2322 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2323 (m68k_linux_frame_saved_pc): Delete.
2324 (m68k_linux_sigcontext_reg_offset,
2325 m68k_linux_ucontext_reg_offset): Define.
2326 (m68k_linux_get_sigtramp_info): New function.
2327 (m68k_linux_extract_return_value): Rewrite using regcache.
2328 (m68k_linux_store_return_value): Likewise.
2329 (m68k_linux_extract_struct_value_address): Likewise.
2330 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2331 Don't set deprecated_frame_saved_pc,
2332 deprecated_extract_return_value, deprecated_store_return_value,
2333 deprecated_extract_struct_value_address. Set
2334 extract_return_value, store_return_value,
2335 extract_struct_value_address.
2336
eb8bc282
AC
23372003-07-07 Andrew Cagney <cagney@redhat.com>
2338
2339 * expprint.c: Include "user-regs.h" instead of "frame.h".
2340 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2341 frame_map_regnum_to_name.
2342 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2343 (frame_map_name_to_regnum): Simplify, call
2344 user_reg_map_name_to_regnum.
2345 (frame_map_regnum_to_name): Simplify, call
2346 user_reg_map_regnum_to_name.
2347 (frame_register_unwind): Update.
2348 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2349 (_initialize_frame_reg): Call user_reg_add_builtin.
2350 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2351 (value_of_register): Use value_of_user_reg.
2352 * eval.c (evaluate_subexp_standard): Update.
2353 * parse.c (write_dollar_variable): Update.
2354 * d10v-tdep.c (d10v_print_registers_info): Update.
2355 * infcmd.c (registers_info): Update.
2356 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2357 (builtin_regs_h): Delete macro.
2358 (user_regs_h): Define.
2359 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2360 (builtin-regs.o): Delete target.
2361 (user-regs.o): Specify dependencies.
2362 (expprint.o): Update dependencies.
2363 (findvar.o): Update dependencies.
2364 (frame.o): Update dependencies.
2365 (std-regs.o): Update dependencies.
2366
9f476a01
CF
23672003-07-06 Christopher Faylor <cgf@redhat.com>
2368
2369 * win32-nat.c (solib_symbols_add): Use one variable for all section
2370 address stuff. Pass variable rather than address of variable to
2371 safe_symbol_file_add.
2372
a731b831
AS
23732003-07-06 Andreas Schwab <schwab@suse.de>
2374
2375 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2376
9f83329d
JB
23772003-07-04 Joel Brobecker <brobecker@gnat.com>
2378
2379 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2380
27e28cc5
KW
23812003-07-04 Kris Warkentin <kewarken@qnx.com>
2382
2383 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2384
23852003-07-04 Kris Warkentin <kewarken@qnx.com>
2386
2387 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2388 * config/i386/nto.mh: New file.
2389 * config/i386/nm-nto.h: New file.
2390 * configure.host: Add i[3456]86-*-nto*.
2391
100f2e98
JB
23922003-07-03 Joel Brobecker <brobecker@gnat.com>
2393
2394 * remote-vx.c (vx_add_symbols): Fix compilation error.
2395
e23457df
AC
23962003-07-03 Andrew Cagney <cagney@redhat.com>
2397
2398 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2399 * gdbarch.h, gdbarch.c: Re-generate.
2400 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2401 (legacy_register_name): Declare.
2402 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2403 (REGISTER_NAME): Define.
2404 * sparc-tdep.c (legacy_register_name): New function.
2405 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2406 (REGISTER_NAME): Define.
2407 (hppa64_register_name): Declare.
2408 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2409 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2410 (hppa64_register_name): New function.
2411 (hppa_register_name): New function.
2412 * arch-utils.c (legacy_register_name): Delete.
2413 * arch-utils.h (legacy_register_name): Delete.
2414
38caaeec
DJ
24152003-07-03 Daniel Jacobowitz <drow@mvista.com>
2416
2417 * cli/cli-interp.c (cli_interpreter_resume): Update the
2418 cli_uiout's stream to gdb_stdout.
2419
dadd712e
AC
24202003-07-03 Andrew Cagney <cagney@redhat.com>
2421
2422 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2423 predicate.
2424 * gdbarch.h, gdbarch.c: Re-generate.
2425 * regcache.c (init_regcache_descr): Use legacy code when either
2426 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2427
c7f1390e
DJ
24282003-07-02 Daniel Jacobowitz <drow@mvista.com>
2429
2430 * NEWS: Move "set logging" entry into GDB 6.0 section.
2431
4bc8c588
JB
24322003-07-02 Jim Blandy <jimb@redhat.com>
2433
a9dd42f1
JB
2434 * s390-tdep.c (struct frame_extra_info): new member:
2435 'stack_bought_valid'.
2436 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2437 initialize fextra_info->stack_bought.
2438 (s390_frameless_function_invocation): Don't trust the value of
2439 fextra_info_ptr->stack_bought unless
2440 fextra_info->stack_bought_valid is set.
2441
4bc8c588
JB
2442 New S390 prologue analyzer.
2443 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2444 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2445 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2446 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2447 compute_x_addr, s390_on_stack, s390_store,
2448 s390_get_signal_frame_info): New functions.
2449 (S390_NUM_SPILL_SLOTS): New macro.
2450 (s390_get_frame_info): Rewritten.
2451 (is_arg_reg): Deleted.
2452
2453 Break out the decoding of S/390 instructions into separate
2454 functions, to make it more legible, and easier to check
2455 against the spec.
2456 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2457 is_rx, is_rxe): New functions.
2458 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2459 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2460 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2461 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2462 enums for opcode values. (Is this an improvement?)
2463
fd13a04a
AC
24642003-07-02 Andrew Cagney <cagney@redhat.com>
2465
2466 * i386-tdep.c: Revert change committed as part of trad-frame code
2467 below.
2468
3f8091c1
DJ
24692003-07-02 Daniel Jacobowitz <drow@mvista.com>
2470
2471 * breakpoint.c (insert_catchpoint): Make static.
2472
8dd5115e
AS
24732003-07-02 Andreas Schwab <schwab@suse.de>
2474
2475 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2476 former ia64_push_arguments and ia64_push_return_address, and use
2477 regcache functions instead of read/write_register.
2478 (ia64_gdbarch_init): Set push_dummy_call instead of
2479 deprecated_push_arguments and deprecated_push_return_address.
2480
a2229c23
AJ
24812003-07-01 Andreas Jaeger <aj@suse.de>
2482
2483 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2484 before the call.
2485 Set %rax only to number of SSE registers used.
2486
3b3850e8
AC
24872003-07-01 Andrew Cagney <cagney@redhat.com>
2488
2489 * trad-frame.h: Update comments, a -1 .addr is reserved.
2490 (trad_frame_value_p, trad_frame_addr_p): Declare.
2491 (trad_frame_reg_p): Declare.
2492 (trad_frame_set_value): Rename trad_frame_register_value.
2493 (trad_frame_set_unknown): Declare.
2494 * trad-frame.c (trad_frame_realreg_p): New function.
2495 (trad_frame_addr_p, trad_frame_value_p): New function.
2496 (trad_frame_set_unknown): New function.
2497 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2498 (trad_frame_prev_register): Use trad_frame_realreg_p,
2499 trad_frame_addr_p and trad_frame_value_p.
2500 (trad_frame_set_value): Rename trad_frame_register_value.
2501 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2502 and trad_frame_set_value.
a2229c23 2503
4d819d0e
JB
25042003-06-30 Jim Blandy <jimb@redhat.com>
2505
2506 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2507 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2508 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2509 for 16 registers, and then 32 more bytes.
2510 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2511 New macros.
2512 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2513 Move up in the file, since it's now used by is_simple_arg.
2514 (is_simple_arg): Don't assume registers are four bytes long.
2515 Exclude all double arguments. Extended floats are not simple
2516 args.
2517 (is_power_of_two): New function.
2518 (pass_by_copy_ref): Call is_power_of_two, and check that the
2519 length fits in a register, rather than listing all the acceptable
2520 sizes. Extended floats are not passed by reference.
2521 (s390_push_arguments): Don't assume registers are four bytes long.
2522 Reserve an argument register to point to the buffer for structures
2523 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2524 S390_STACK_FRAME_OVERHEAD.
2525
1ad828f1
AS
25262003-06-30 Andreas Schwab <schwab@suse.de>
2527
2528 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2529 format error message.
2530
39b00981
JB
25312003-06-30 Joel Brobecker <brobecker@gnat.com>
2532
2533 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2534
b2a7f303
DC
25352003-06-30 David Carlton <carlton@kealia.com>
2536
2537 Band-aid for PR c++/1245.
2538 * Makefile.in (cp-support.o): Depend on complaints_h.
2539 * cp-support.c: Include complaints.h. Add declaration for
2540 find_last_component.
2541 (cp_find_first_component): Separate code into
2542 cp_find_first_component_aux.
2543 (cp_find_first_component_aux): Call demangled_name_complaint.
2544 (demangled_name_complaint): New.
2545
a257b5bb
AC
25462003-06-30 Andrew Cagney <cagney@redhat.com>
2547
2548 * remote.c (remote_write_bytes): Explicitly compute and then use
2549 the payload size. Update comments to reflect. Fixes problem of
2550 GDB not sending small packets as found by Fred Fish.
2551
0a2cfde4
AC
25522003-06-30 Andrew Cagney <cagney@redhat.com>
2553
2554 * remote.c (remote_async_wait): Fix -Wformat problem.
2555
3fcb8548
AC
25562003-06-29 Andrew Cagney <cagney@redhat.com>
2557
2558 * remote.c (remote_wait): Call error, and not warning, when the
2559 packet is corrupt.
2560 (remote_async_wait): Ditto.
2561
9f9970a3
DJ
25622003-06-29 Daniel Jacobowitz <drow@mvista.com>
2563
2564 * sparc-tdep.c (sparc_y_regnum): Make external again.
2565
83a8ccca
DJ
25662003-06-29 Daniel Jacobowitz <drow@mvista.com>
2567
2568 * cli/cli-logging.c (pop_output_files): Add void to function
2569 definition.
2570
d2cf594a
AC
25712003-06-29 Andrew Cagney <cagney@redhat.com>
2572
2573 * frame.c (frame_register_unwind): Use unsigned char when dumping
2574 the buffer contents.
2575
0fac0b41
DJ
25762003-06-28 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * cli/cli-logging.c: New file.
2579 * cli-out.c (struct ui_out_data): Add original_stream.
2580 (cli_redirect): New function.
2581 (cli_ui_out_impl): Add cli_redirect.
2582 (cli_out_new): Initialize original_stream.
2583 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2584 (uo_redirect, ui_out_redirect): New.
2585 * ui-out.h (struct ui_out_impl): Add redirect member.
2586 (redirect_ftype): New.
2587 (ui_out_redirect): Add prototype.
2588 * Makefile.in: Add rules for cli-logging.c.
2589 * NEWS: Mention "set logging".
2590
88a07d7c
EZ
25912003-06-27 Elena Zannoni <ezannoni@redhat.com>
2592
2593 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2594
4eb58876
AC
25952003-06-27 Andrew Cagney <cagney@redhat.com>
2596
2597 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2598 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2599 * avr-tdep.c (avr_call_dummy_address): Delete function.
2600 (avr_gdbarch_init): Do not set call_dummy_address.
2601
1549f619
EZ
26022003-06-27 Elena Zannoni <ezannoni@redhat.com>
2603
2604 * symfile.c (syms_from_objfile): Move variables to inner block.
2605 Move the checks for the non-mainline case a bit earlier to avoid
2606 doing some useless computations.
2607
3cb3398d
EZ
26082003-06-27 Elena Zannoni <ezannoni@redhat.com>
2609
2610 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2611
3799ccc6
EZ
26122003-06-26 Elena Zannoni <ezannoni@redhat.com>
2613
2614 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2615 sections.
2616
ce1f6491
MC
26172003-06-26 Michael Chastain <mec@shout.net>
2618
2619 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2620 gdb/testsuite/gdb.c++/pr-1210.exp.
2621
d958dfd0
AC
26222003-06-26 Andrew Cagney <cagney@redhat.com>
2623
2624 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2625 altivec_expression.h and altivec_registers.h.
2626
d31431ed
AC
26272003-06-26 Andrew Cagney <cagney@redhat.com>
2628
2629 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2630 info->mach when MIPS16. Patch suggested by Fred Fish.
2631
714b1282
AC
26322003-06-26 Andrew Cagney <cagney@redhat.com>
2633
2634 * utils.c (internal_vproblem): Print the problem to a reason
2635 buffer and then pass to query. Make the msg variable more local.
2636
42efa47a
AC
26372003-06-26 Andrew Cagney <cagney@redhat.com>
2638
2639 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2640 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2641 * gdbarch.h, gdbarch.c: Re-generate.
2642 * frame-base.c (default_frame_args_address): Update. Use
2643 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2644 not available.
2645 (default_frame_locals_address): Ditto for
2646 DEPRECATED_FRAME_LOCALS_ADDRESS.
2647 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2648 (vax_frame_num_args): Update.
2649 (vax_gdbarch_init): Update.
2650 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2651 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2652 * mcore-tdep.c (mcore_gdbarch_init): Update.
2653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2654 * ia64-tdep.c (ia64_gdbarch_init): Update.
2655 * symtab.h (address_class): Update comments.
2656 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2657 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2658 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2659 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2660 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2661 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2662 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2663 * alpha-mdebug-tdep.c: Update.
2664 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2665
8ffd9b1b
AJ
26662003-06-26 Andreas Jaeger <aj@suse.de>
2667
2668 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2669 of SSE registers so that varargs functions work. Rework handling
2670 of passing arguments on the stack.
2671 (x86_64_store_return_value): Return double and float values in SSE
2672 register.
2673
e8ac10a6
MC
26742003-06-24 Michael Chastain <mec@shout.net>
2675
2676 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2677 the "constructor breakpoints ignored" bug.
2678
986af8e6
DC
26792003-06-25 David Carlton <carlton@kealia.com>
2680
2681 * MAINTAINERS: Update e-mail address.
2682
d64558a5
JB
26832003-06-24 Jim Blandy <jimb@redhat.com>
2684
e538d2d7
JB
2685 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2686
02631ec0
JB
2687 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2688 function.
2689 (ppc_linux_init_abi): Register it as the
2690 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2691
e716d87a
JB
2692 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2693 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2694 method.
2695
d64558a5
JB
2696 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2697 (ppc64_standard_linkage_target): Use it.
2698
449a5da4
AC
26992003-06-23 Andrew Cagney <cagney@redhat.com>
2700
2701 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2702 for 0 "int0" and 4 "int32" sized registers.
2703 * gdbtypes.c (builtin_type_int0): Define.
2704 (build_gdbtypes): Initialize builtin_type_int0.
2705 * gdbtypes.h (builtin_type_int0): Declare.
2706
b2a02dda
SC
27072003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2708
2709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2710 as characters are unsigned.
2711
fba3138e
DJ
27122003-06-22 Daniel Jacobowitz <drow@mvista.com>
2713
2714 PR gdb/1179
2715 * dwarfread.c (struct_type): Skip static fields without crashing.
2716
f6c8180b
AC
27172003-06-22 Andrew Cagney <cagney@redhat.com>
2718
2719 GDB 6.0 branch created.
f2c06f52
AC
2720 * README: Update.
2721 * PROBLEMS: Update. Empty.
2722 * NEWS: Update.
f6c8180b 2723
ae822768
DJ
27242003-06-22 Daniel Jacobowitz <drow@mvista.com>
2725
2726 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2727 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2728
261de166
AC
27292003-06-22 Andrew Cagney <cagney@redhat.com>
2730
2731 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2732 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2733 Velikov.
2734
30e94205
DJ
27352003-06-22 Daniel Jacobowitz <drow@mvista.com>
2736
2737 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2738 compilers.
2739
9e14d721
DJ
27402003-06-21 Daniel Jacobowitz <drow@mvista.com>
2741
2742 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2743 argument of val_print.
2744 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2745 to the address argument of baseclass_offset or target_read_memory.
2746 Do add it to the argument of cp_print_value_fields.
2747
a4b8ebc8
AC
27482003-06-21 Andrew Cagney <cagney@redhat.com>
2749
2750 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2751 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2752 instead of 0..NUM_REGS.
2753 (mips_register_reggroup_p): New function.
2754 (mips_pseudo_register_write): New function.
2755 (mips_pseudo_register_read): New function.
2756 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2757 based on the register's type.
2758 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2759 cooked.
2760 (mips_get_saved_register): Simplify. Assert that REGNO is a
2761 pseudo / cooked.
2762 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2763 (mips_register_type): Replace mips_register_virtual_type. Map
2764 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2765 when available.
2766 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2767 that the register is cooked / virtual.
2768 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2769 Only get the extra info when needed.
2770 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2771 (mips32_heuristic_proc_desc): Fetch the cooked register.
2772 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2773 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2774 (mips_print_register): Use gdbarch_register_type, instead of
2775 REGISTER_VIRTUAL_TYPE.
2776 (print_gp_register_row): Use gdbarch_register_type, instead of
2777 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2778 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2779 Print the pseudo / cooked registers.
2780 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2781 Print the pseudo / cooked registers.
2782 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2783 REG_NUM is pseudo / cooked.
2784 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2785 (mips_n32n64_xfer_return_value): Ditto.
2786 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2787 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2788 (mips_register_sim_regno): New function.
2789 (mips_gdbarch_init): Set deprecated_register_byte,
2790 register_group_p, pseudo_register_write, pseudo_register_read,
2791 register_sim_regno, and num_pseudo_regs. Set register_type,
2792 instead of register_virtual_type.
2793 * Makefile.in (mips-tdep.o): Update dependencies.
2794 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2795 REGISTER_VIRTUAL_TYPE.
2796 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2797 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2798 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2799 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2800 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2801
325ed089
DJ
28022003-06-21 Daniel Jacobowitz <drow@mvista.com>
2803
2804 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2805 * cli/cli-cmds.c: Include "gdb_vfork.h".
2806 (shell_escape): Use vfork.
2807
f0e7d0e8
AC
28082003-06-21 Andrew Cagney <cagney@redhat.com>
2809
c57bb9fa
AC
2810 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2811 32 bit floating-point register saves.
2812
6e51443a
AC
2813 * frame.h (deprecated_unwind_get_saved_register): Delete.
2814 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2815 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2816 and deprecated_get_next_frame_hack instead of
2817 deprecated_unwind_get_saved_register.
2818
ed183c7c
AC
2819 * mips-tdep.c (mips_dump_tdep): Do not print
2820 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2821
f0e7d0e8
AC
2822 * frame.c (get_frame_register): New function.
2823 (frame_unwind_register_signed): New function.
2824 (get_frame_register_signed): New function.
2825 (frame_unwind_register_unsigned): New function.
2826 (get_frame_register_unsigned): New function.
2827 * frame.h: Add comments on naming schema.
2828 (get_frame_register, frame_unwind_register_signed): Declare.
2829 (get_frame_register_signed, get_frame_register_signed): Declare.
2830 (frame_unwind_register_unsigned): Declare.
2831 (get_frame_register_unsigned): Declare.
2832
2224d941
TR
28332003-06-20 Theodore A. Roth <troth@openavr.org>
2834
2835 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2836
8619218d
TR
28372003-06-20 Theodore A. Roth <troth@openavr.org>
2838
2839 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2840 (avr_read_sp): Ditto.
2841
0b1b50c0
DJ
28422003-06-20 Daniel Jacobowitz <drow@mvista.com>
2843
2844 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2845 * config/arm/nm-linux.h: Likewise.
2846 * config/arm/tm-linux.h: Likewise.
2847 * config/ia64/nm-linux.h: Likewise.
2848 * config/ia64/tm-ia64.h: Likewise.
2849 * config/s390/tm-linux.h: Likewise.
2850 * config/s390/tm-s390.h: Likewise.
2851 * s390-nat.c: Likewise.
2852 * s390-tdep.c: Likewise.
2853
2854 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2855 * config/ia64/linux.mt: Likewise.
2856 * config/m68k/linux.mh: Likewise.
2857 * config/mips/linux.mt: Likewise.
2858 * config/powerpc/linux.mh: Likewise.
2859 * config/sh/linux.mt: Likewise.
2860
c8c18e65
KW
28612003-06-19 Kris Warkentin <kewarken@qnx.com>
2862
2863 * solib.c (solib_open): Change tests for whether to search
2864 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2865 comments.
2866
dcccef2e
TR
28672003-06-19 Theodore A. Roth <troth@openavr.org>
2868
2869 * avr-tdep.c (avr_frame_address): Delete function.
2870 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2871 set_gdbarch_frame_args_address.
2872
5861a190
AC
28732003-06-19 Andrew Cagney <cagney@redhat.com>
2874
2875 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2876 (REGISTER_CONVERT_FROM_TYPE): Delete.
2877 (mips_register_convert_to_type): Delete declaration.
2878 (mips_register_convert_from_type): Delete declaration.
2879 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2880 kernel/.
2881
0274a8ce
MS
28822003-06-19 Michael Snyder <msnyder@redhat.com>
2883
2884 * linux-nat.h: New file.
2885 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2886 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2887 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2888 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2889 (linux_make_note_section): Iterate over lwps instead of threads.
2890 (linux_do_thread_registers): Use lwp instead of merged pid.
2891 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2892 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2893 Add dependency on linux_nat_h.
2894
adf5f719
TR
28952003-06-19 Theodore A. Roth <troth@openavr.org>
2896
2897 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2898
6766a268
DJ
28992003-06-19 Daniel Jacobowitz <drow@mvista.com>
2900
2901 * varobj.c (get_type, get_target_type): Use check_typedef.
2902
1171114a
DJ
29032003-06-19 Daniel Jacobowitz <drow@mvista.com>
2904
2905 * breakpoint.c (insert_catchpoint): Call internal_error.
2906
adcf68a2
TR
29072003-06-19 Theodore A. Roth <troth@openavr.org>
2908
2909 * avr-tdep.c (avr_push_dummy_code): Delete function.
2910 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2911
ea67f13b
DJ
29122003-06-19 Daniel Jacobowitz <drow@mvista.com>
2913
2914 * arch-utils.c (default_prepare_to_proceed): Remove.
2915 (generic_prepare_to_proceed): Remove.
2916 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2917 (generic_prepare_to_proceed): Remove prototype.
2918 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2919 * gdbarch.c: Regenerate.
2920 * gdbarch.h: Regenerate.
2921 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2922 * hppah-nat.c (hppa_switched_threads): Remove.
2923 * infrun.c (prepare_to_proceed): New static function, copied from
2924 generic_prepare_to_proceed. Remove select_it argument.
2925 (proceed): Call prepare_to_proceed.
2926 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2927 variables.
2928 (ptrace_wait): Don't set the removed variables.
2929 (hppa_switched_threads): Remove.
2930 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2931 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2932 (lin_lwp_prepare_to_proceed): Remove prototype.
2933 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2934 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2935
4add8633
TR
29362003-06-18 Theodore A. Roth <troth@openavr.org>
2937
2938 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2939 trad-frame.h.
2940 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2941 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2942 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2943 (AVR_PROLOGUE_*): Enumerate prologue types.
2944 (struct frame_extra_info): Remove.
2945 (struct avr_unwind_cache): Define.
2946 (avr_write_sp): Delete function.
2947 (avr_read_fp): Ditto.
2948 (avr_init_extra_frame_info): Ditto.
2949 (avr_pop_frame): Ditto.
2950 (avr_frame_saved_pc): Ditto.
2951 (avr_saved_pc_after_call): Ditto.
2952 (avr_push_return_address): Ditto.
2953 (avr_frame_chain): Ditto.
2954 (avr_store_struct_return): Ditto.
2955 (avr_push_arguments): Ditto.
2956 (avr_scan_prologue): Update comments. Changed to set up the info for
2957 cache unwinding. Now returns end of prologue PC.
2958 (avr_skip_prologue): Better handling of functions lacking a prologue
2959 by using avr_scan_prologue.
2960 (avr_scan_arg_moves): New function.
2961 (avr_saved_regs_unwinder): Ditto.
2962 (avr_frame_unwind_cache): Ditto.
2963 (avr_unwind_pc): Ditto.
2964 (avr_frame_this_id): Ditto.
2965 (avr_frame_prev_register): Ditto.
2966 (avr_frame_p): Ditto.
2967 (avr_frame_base_address ): Ditto.
2968 (avr_unwind_dummy_id): Ditto.
2969 (avr_push_dummy_code): Ditto.
2970 (push_stack_item): Ditto.
2971 (pop_stack_item): Ditto.
2972 (avr_push_dummy_call): Ditto.
2973 (struct stack_item): Define.
2974 (avr_frame_unwind): Declare structure.
2975 (avr_frame_base): Ditto.
2976 (avr_gdbarch_init): Remove calls to
2977 set_gdbarch_deprecated_init_frame_pc,
2978 set_gdbarch_deprecated_target_read_fp,
2979 set_gdbarch_deprecated_dummy_write_sp,
2980 set_gdbarch_deprecated_fp_regnum,
2981 set_gdbarch_deprecated_push_arguments,
2982 set_gdbarch_deprecated_push_return_address,
2983 set_gdbarch_deprecated_pop_frame,
2984 set_gdbarch_deprecated_store_struct_return,
2985 set_gdbarch_deprecated_frame_init_saved_regs,
2986 set_gdbarch_deprecated_init_extra_frame_info,
2987 set_gdbarch_deprecated_frame_chain,
2988 set_gdbarch_deprecated_frame_saved_pc,
2989 set_gdbarch_deprecated_saved_pc_after_call.
2990 Add calls to set_gdbarch_push_dummy_call,
2991 set_gdbarch_push_dummy_code,
2992 frame_unwind_append_predicate,
2993 frame_base_set_default,
2994 set_gdbarch_unwind_dummy_id,
2995 set_gdbarch_unwind_pc.
2996 Wrap a long line.
2997
7be04a68
MS
29982003-06-18 Corinna Vinschen <vinschen@redhat.com>
2999
3000 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3001 registers for H8/300S.
3002 (h8300_print_registers_info): Ditto.
8ffd9b1b 3003 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3004
ae087d01
DJ
30052003-06-18 Daniel Jacobowitz <drow@mvista.com>
3006
3007 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3008 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3009 (lin_lwp_wait): Likewise. Update comments.
3010 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3011 (pull_pid_from_list, linux_record_stopped_pid): New.
3012
07d8f827
SC
30132003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3014
3015 * ada-lang.c (scan_discrim_bound): Name first argument.
3016 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3017 declared by ALL_BLOCK_SYMBOLS.
3018
7cb47b14
SC
30192003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3020
3021 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3022 ("regcache.h"): Include it.
3023 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3024
6ad8ae5c
DJ
30252003-06-17 Daniel Jacobowitz <drow@mvista.com>
3026
3027 * NEWS: Mention gdbserver detach change and "disconnect" command.
3028 * infcmd.c (disconnect_command): New function.
3029 (_initialize_infcmd): Add ``disconnect'' command.
3030 * remote.c (remote_async_detach): Delete.
3031 (remote_detach): Merge remote_async_detach.
3032 (remote_disconnect): New.
3033 (init_remote_ops): Set to_disconnect.
3034 (init_remote_cisco_ops): Likewise.
3035 (init_remote_async_ops): Likewise. Use remote_detach.
3036 * target.c (cleanup_target): Default to_disconnect.
3037 (update_current_target): Inherit to_disconnect.
3038 (target_disconnect, debug_to_disconnect): New functions.
3039 (setup_target_debug): Set to_disconnect.
3040 * target.h (struct target_ops): Add to_disconnect.
3041 (target_disconnect): Add prototype.
3042
687595f9
DJ
30432003-06-17 Daniel Jacobowitz <drow@mvista.com>
3044
3045 * breakpoint.c (insert_catchpoint): New function.
3046 (insert_breakpoints): Use catch_exceptions to call
3047 insert_catchpoint. Disable catchpoints if they fail to insert.
3048
29239a8f
DJ
30492003-06-17 Daniel Jacobowitz <drow@mvista.com>
3050
3051 * symfile.c (reread_symbols): Clear sym_private.
3052
2cdf3c63
AC
30532003-06-17 Andrew Cagney <cagney@redhat.com>
3054
3055 * trad-frame.h (struct frame_info): Add opaque declaration.
3056 * remote-fileio.h (struct cmd_list_element): Add opaque
3057 declaration.
3058 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3059 comments.
3060
cf0e1e0d
DJ
30612003-06-17 Daniel Jacobowitz <drow@mvista.com>
3062
3063 * remote.c (remote_prepare_to_store): Replace call to
3064 deprecated_read_register_bytes with multiple regcache_raw_read
3065 calls.
3066
192cdb19
KW
30672003-06-17 Kris Warkentin <kewarken@qnx.com>
3068
3069 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3070 (nto_find_and_open_solib): Likewise.
3071 (nto_init_solib_absolute_prefix): Likewise.
3072 (_initialize_nto_tdep): Fix indentation.
3073
89929b45
KW
30742003-06-17 Kris Warkentin <kewarken@qnx.com>
3075
3076 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3077
46019f27
KW
30782003-06-17 Kris Warkentin <kewarken@qnx.com>
3079
3080 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3081
1a38736e
JB
30822003-06-17 Jim Blandy <jimb@redhat.com>
3083
3084 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3085
3605c34a
TR
30862003-06-16 Theodore A. Roth <troth@openavr.org>
3087
3088 * avr-tdep.c (avr_extract_return_value): New function.
3089 (avr_gdbarch_init): Set extract_return_value method.
3090
870b3035
AC
30912003-06-16 Andrew Cagney <cagney@redhat.com>
3092
3093 * frame.h (deprecated_get_next_frame_hack): Declare.
3094 * frame.c (legacy_saved_regs_prev_register): Only require
3095 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3096 there are always saved regs.
3097 (deprecated_generic_get_saved_register): Do not require
3098 DEPRECATED_FRAME_INIT_SAVED_REGS.
3099 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3100 use frame ID unwind instead.
3101 (deprecated_get_next_frame_hack): New function.
3102
63d47a7d
CV
31032003-06-16 Corinna Vinschen <vinschen@redhat.com>
3104
3105 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3106 (h8300_push_dummy_call): ...this function. Some minor optimization.
3107 (h8300_push_return_address): Remove.
3108 (h8300_gdbarch_init): Remove calls to
3109 set_gdbarch_deprecated_dummy_write_sp,
3110 set_gdbarch_deprecated_push_arguments and
3111 set_gdbarch_deprecated_push_return_address.
3112 Add call to set_gdbarch_push_dummy_call.
3113
4bb1dc5e
CV
31142003-06-16 Corinna Vinschen <vinschen@redhat.com>
3115
3116 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3117 (E_PSEUDO_EXR_REGNUM): Ditto.
3118 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3119 registers into safe registers.
4bb1dc5e
CV
3120 (h8300_skip_prologue): Check for stm instruction to push registers
3121 used for register variables onto stack.
3122 (gdb_print_insn_h8300): Remove.
3123 (h8300_examine_prologue): Add a comment.
3124 (h8300_register_name): Take pseudo registers into account.
3125 (h8300s_register_name): Ditto.
3126 (h8300sx_register_name): Ditto.
3127 (h8300_print_register): Ditto.
3128 (h8300_print_registers_info): Define "nice" printing order.
3129 (h8300_saved_pc_after_call): Take pseudo registers into account.
3130 (h8300_register_type): Ditto. Return type used for remote connection
3131 when requesting real CCR or EXR register, return actual type when
3132 requesting pseudo CCR or EXR.
3133 (h8300_pseudo_register_read): New function.
3134 (h8300_pseudo_register_write): Ditto.
3135 (h8300_dbg_reg_to_regnum): Ditto.
3136 (h8300s_dbg_reg_to_regnum): Ditto.
3137 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3138 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3139 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3140 set_gdbarch_print_insn architecture dependent.
3141 Call set_gdbarch_pseudo_register_read and
3142 set_gdbarch_pseudo_register_write.
3143 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3144
a59fe496
AC
31452003-06-16 Andrew Cagney <cagney@redhat.com>
3146
3147 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3148 * gdbarch.h, gdbarch.c: Re-generate.
3149 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3150 * s390-tdep.c (s390_gdbarch_init): Update.
3151 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3152 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3153 * mips-tdep.c (mips_gdbarch_init): Update.
3154 * mcore-tdep.c (mcore_gdbarch_init): Update.
3155 * cris-tdep.c (cris_gdbarch_init): Update.
3156 * infcall.c (call_function_by_hand): Update.
3157 * ia64-tdep.c (ia64_push_arguments): Update comment.
3158 * frame.c (legacy_get_prev_frame): Do not assume
3159 SAVE_DUMMY_FRAME_TOS_P.
3160 * dummy-frame.c (find_dummy_frame): Update comment.
3161
6f4e5a41
AC
31622003-06-16 Andrew Cagney <cagney@redhat.com>
3163
3164 * regcache.c (do_cooked_read): Do not use register_valid_p.
3165
72fab697
TR
31662003-06-15 Theodore A. Roth <troth@openavr.org>
3167
3168 * avr-tdep.c (avr_register_type): Remove a blank line.
3169 (avr_scan_prologue): Correct some comments.
3170
e3d8b004
TR
31712003-06-15 Theodore A. Roth <troth@openavr.org>
3172
3173 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3174 prologue types.
8ffd9b1b 3175 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3176 option.
3177 Add code to scan -mcall-prologues for mega devices.
3178
866b76ea
TR
31792003-06-15 Theodore A. Roth <troth@openavr.org>
3180
3181 * avr-tdep.c (avr_register_byte): Delete function.
3182 (avr_register_raw_size): Delete function.
3183 (avr_register_virtual_size): Delete function.
3184 (avr_register_virtual_type): Delete function.
3185 (avr_register_type): New function.
3186 (avr_address_to_pointer): Remove unused code.
3187 (avr_read_fp): Need to read FP as two separate bytes due to change to
3188 avr_register_type() usage.
3189 (avr_gdbarch_init): Don't set deprecated_register_size.
3190 Don't set deprecated_register_bytes.
3191 Don't set deprecated_register_byte.
3192 Don't set deprecated_register_raw_size.
3193 Don't set deprecated_max_register_raw_size.
3194 Don't set deprecated_register_virtual_size.
3195 Don't set deprecated_max_register_virtual_size.
3196 Don't set deprecated_register_virtual_type.
3197 Set register_type method.
3198
3993f6b1
DJ
31992003-06-15 Daniel Jacobowitz <drow@mvista.com>
3200
3201 * Makefile.in (linux-nat.o): Add rule.
3202 * linux-nat.c: New file.
3203 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3204 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3205 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3206 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3207 * config/arm/linux.mh (NATDEPFILES): Likewise.
3208 * config/i386/linux.mh (NATDEPFILES): Likewise.
3209 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3210 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3211 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3212 * config/mips/linux.mh (NATDEPFILES): Likewise.
3213 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3214 * config/s390/s390.mh (NATDEPFILES): Likewise.
3215 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3216
786a90bb
MK
32172003-06-15 Mark Kettenis <kettenis@gnu.org>
3218
3219 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3220 replace out-of-date comment.
3221
3bd3f01e
AC
32222003-06-15 Andrew Cagney <cagney@redhat.com>
3223
3224 * rdi-share/host.h (Fail): Change to a varargs function.
3225 * remote-rdi.c (Fail): Update.
8ffd9b1b 3226
de5b9bb9
MK
32272003-06-15 Mark Kettenis <kettenis@gnu.org>
3228
3229 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3230 (i386_convert_register_p, i386_register_to_value,
3231 i386_register_from_value): Handle types longer than 8 bytes.
3232
d532c08f
MK
32332003-06-15 Mark Kettenis <kettenis@gnu.org>
3234
3235 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3236 Move floating-point code to new function in i387-tdep.c.
3237 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3238 New functions containing code moved here from i386-tdep.c.
3239 * i387-tdep.h: Add opaque declaration for `struct type'.
3240 (i387_register_to_value, i387_value_to_register): New prototypes.
3241 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3242 (x86_64_init_abi): Set convert_register_p, register_to_value and
3243 value_to_register here.
8ffd9b1b 3244
42c466d7
AC
32452003-06-14 Andrew Cagney <cagney@redhat.com>
3246
3247 * mips-tdep.c (mips_register_to_value): Make static.
3248 (mips_value_to_register): Make static.
3249 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3250 * ia64-tdep.c (ia64_register_raw_size): Make static.
3251 (ia64_register_virtual_size): Make static.
3252 (ia64_register_byte): Make static.
3253 * i387-tdep.c: Include "i387-tdep.h".
3254 (print_387_control_word): Delete function.
3255 (print_387_status_word): Delete function.
3256 (print_387_status_bits): Delete function.
3257 (print_387_control_bits): Delete function.
3258 * Makefile.in (i387-tdep.o): Update dependencies.
3259 * rdi-share/host.h (Fail): Declare.
3260 * remote-rdi.c (Fail): Update to match declaration.
3261
2a9cda49
AC
32622003-06-14 Andrew Cagney <cagney@redhat.com>
3263
3264 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3265 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3266 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3267 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3268 * README: Delete reference to remote-array.
3269 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3270 (remote-array.o): Delete target.
3271 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3272 * remote-array.c: Delete file.
3273
ff2e87ac
AC
32742003-06-14 Andrew Cagney <cagney@redhat.com>
3275 Mark Kettenis <kettenis@gnu.org>
3276
3277 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3278 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3279 parameter with "frame".
3280 * gdbarch.h, gdbarch.c: Re-generate.
3281 * frame.h (put_frame_register): Declare.
3282 * frame.c (put_frame_register): New function.
3283 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3284 (legacy_register_to_value): Rewrite, use "frame" to get the
3285 register value.
3286 (legacy_value_to_register): Rewrite, use "frame" to find the
3287 register's location before storing.
3288 * arch-utils.h (legacy_convert_register_p): Update.
3289 (legacy_register_to_value, legacy_value_to_register): Update.
3290 * findvar.c (value_from_register): Rewrite, eliminate use of
3291 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3292 "frame" to REGISTER_TO_VALUE.
3293 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3294 lval_reg_frame_relative + lval_register branch of the switch. Do
3295 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3296 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3297 I386_EDI_REGNUM): New defines.
3298 (i386_next_regnum, i386_convert_register_p,
3299 i386_register_to_value, i386_value_to_register): New functions.
3300 (i386_register_convertible, i386_register_convert_to_virtual,
3301 i386_convert_to_raw): Remove functions.
3302 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3303 value_to_register instead of register_convertible,
3304 register_convert_to_virtual and register_convert_to_raw.
3305 * mips-tdep.c (mips_convert_register_p): New function.
3306 (mips_value_to_register): Replace mips_register_convert_from_type.
3307 (mips_register_to_value): Replace mips_register_convert_to_type.
3308 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3309 register_to_value.
3310 * alpha-tdep.c (alpha_convert_register_p): Update.
3311 (alpha_value_to_register): Update, store the register.
3312 (alpha_register_to_value): Update, fetch the register.
3313
98be1e77
TR
33142003-06-14 Theodore A. Roth <troth@openavr.org>
3315
3316 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3317 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3318 Don't set deprecated_call_dummy_words.
3319 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3320 Don't set remote_translate_xfer_address.
3321 (avr_io_reg_read_command): Remove commented out debug printf.
3322 Wrap a long line.
3323
57bc6122
TR
33242003-06-14 Theodore A. Roth <troth@openavr.org>
3325
3326 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3327 causes gdb to seg fault.
3328
eb01fc62
DJ
33292003-06-14 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * sparc-nat.c (fetch_inferior_registers): Correct
3332 a reference to "registers".
3333
3b3e6bee
DJ
33342003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3335
3336 * Makefile.in (exc_request_U_h): Define
3337 (exc_request_S_h): Likewise.
3338 (msg_reply_S_h): Likewise.
3339 (msg_U_h): Likewise.
3340 (notify_S_h): Likewise.
3341 (process_reply_S_h): Likewise.
3342 (gnu-nat.o): Depend on gdb_obstack_h
3343 * gnu-nat.c: Include "gdb_obstack.h".
3344
b8de8283
AC
33452003-06-13 Andrew Cagney <cagney@redhat.com>
3346
3347 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3348 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3349
f3be58bc
AC
33502003-06-13 Andrew Cagney <cagney@redhat.com>
3351
3352 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3353 when deprecated REGISTER macros can be deleted.
3354 * gdbarch.h, gdbarch.c: Re-generate.
3355
4c0122c8
JB
33562003-06-13 Jim Blandy <jimb@redhat.com>
3357
3358 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3359 Linux entry point symbols for _dl_debug_state, too.
3360
3e210248
AC
33612003-06-13 Andrew Cagney <cagney@redhat.com>
3362
3363 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3364 available, do not use the FP register, and always save the TOS.
3365 * dummy-frame.c (dummy_frame_this_id): Do not assert
3366 SAVE_DUMMY_FRAME_TOS.
3367 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3368 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3369 (i386_push_dummy_call): Add 8 to the returned SP.
3370 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3371 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3372 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3373 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3374 (x86_64_push_dummy_call): Return "sp + 16".
3375 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3376 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3377 save_dummy_frame_tos.
3378
0b65af49
JB
33792003-06-13 Jim Blandy <jimb@redhat.com>
3380
3381 * frv-tdep.c (frv_use_struct_convention): Delete static
3382 declaration for function deleted in my change of 2003-06-12.
3383
4ea2465e
TR
33842003-06-13 Theodore A. Roth <troth@openavr.org>
3385
3386 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3387 (avr_pointer_to_address): Shift code addrs left 1 bit.
3388 (avr_convert_from_func_ptr_addr): Delete function since operation is
3389 better handled by avr_address_to_pointer and avr_pointer_to_address.
3390 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3391
1581182a
MK
33922003-06-13 Mark Kettenis <kettenis@gnu.org>
3393
3394 From Kelley Cook <kelleycook@wideopenwest.com>:
3395 * configure.host: Accept i[34567]86 variants.
3396 * configure.tgt: Likewise.
3397 * nlm/configure.in: Likewise.
3398 * nlm/configure: Regenerated.
3399
7aa1783e
RE
34002003-06-13 Richard Earnshaw <rearnsha@arm.com>
3401
3402 * arm-tdep.c (solib-svr4.h): Dont' include it.
3403 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3404 * arm-linux-tdep.c: ... here. Make static.
3405 (arm_linux_init_abi): Register it.
3406 (solib-svr4.h): Include it.
3407 * Makefile.in: Update dependencies.
3408 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3409 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3410
0261a0d0
CV
34112003-06-13 Corinna Vinschen <vinschen@redhat.com>
3412
3413 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3414 indicate registers used for return values.
3415 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3416 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3417 members.
3418 (h8300_init_extra_frame_info): Ditto.
3419 (h8300_frame_locals_address): Removed.
3420 (h8300_frame_args_address): Removed.
3421 (h8300_extract_return_value): Use new regcache structure. Only care
3422 for 16 bit CPUs.
3423 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3424 (h8300_store_return_value): Use new regcache structure. Only care
3425 for 16 bit CPUs.
3426 (h8300h_store_return_value): Same function for 32 bit CPUs.
3427 (h8300_store_struct_return): Removed.
3428 (h8300_extract_struct_value_address): Use new regcache structure.
3429 (h8300h_extract_struct_value_address): Removed.
3430 (h8300_push_dummy_code): New function.
3431 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3432 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3433 set_gdbarch_store_return_value architecture dependent.
3434 Call set_gdbarch_push_dummy_code and
3435 set_gdbarch_extract_struct_value_address.
3436 Remove calls to set_gdbarch_frame_args_address,
3437 set_gdbarch_frame_locals_address,
3438 set_gdbarch_deprecated_store_struct_return,
3439 set_gdbarch_deprecated_extract_return_value,
3440 set_gdbarch_deprecated_extract_struct_value_address,
3441 set_gdbarch_deprecated_call_dummy_words and
3442 set_gdbarch_deprecated_sizeof_call_dummy_words.
3443
055c394a
CV
34442003-06-13 Corinna Vinschen <vinschen@redhat.com>
3445
3446 * h8300-tdep.c (h8300_register_byte): Remove.
3447 (h8300h_register_byte): Remove.
3448 (h8300_register_virtual_type): Remove. Substitute by...
3449 (h8300_register_type): New function.
3450 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3451 (h8300h_extract_struct_value_address): Ditto.
3452 (h8300_gdbarch_init): Drop calls to
3453 set_gdbarch_deprecated_register_byte and
3454 set_gdbarch_deprecated_register_virtual_type.
3455 Add call to set_gdbarch_register_type.
3456
9c04cab7
AC
34572003-06-13 Andrew Cagney <cagney@redhat.com>
3458
3459 * gdbarch.sh: Update comments on registers.
3460 (deprecated_register_byte): Rename register_byte.
3461 (deprecated_register_raw_size): Rename register_raw_size.
3462 (deprecated_register_virtual_size): Rename register_virtual_size.
3463 (deprecated_register_virtual_type): Rename register_virtual_type.
3464 * gdbarch.h, gdbarch.c: Re-generate.
3465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3466 * vax-tdep.c (vax_gdbarch_init): Update.
3467 * v850-tdep.c (v850_gdbarch_init): Update.
3468 * sparc-tdep.c (sparc_gdbarch_init): Update.
3469 * sh-tdep.c (sh_gdbarch_init): Update.
3470 * s390-tdep.c (s390_gdbarch_init): Update.
3471 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3472 * ns32k-tdep.c: Update.
3473 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3474 * mips-tdep.c (mips_gdbarch_init): Update.
3475 * mcore-tdep.c (mcore_gdbarch_init): Update.
3476 * m68k-tdep.c (m68k_gdbarch_init): Update.
3477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3478 * ia64-tdep.c (ia64_gdbarch_init): Update.
3479 * hppa-tdep.c (hppa_gdbarch_init): Update.
3480 * h8300-tdep.c (h8300_gdbarch_init): Update.
3481 * frv-tdep.c (frv_gdbarch_init): Update.
3482 * cris-tdep.c (cris_gdbarch_init): Update.
3483 * avr-tdep.c (avr_gdbarch_init): Update.
3484 * alpha-tdep.c (alpha_gdbarch_init): Update.
3485 * arm-tdep.c (arm_gdbarch_init): Update.
3486
b060cbea
AC
34872003-06-13 Andrew Cagney <cagney@redhat.com>
3488
3489 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3490 mips_o32_use_struct_convention with always_use_struct_convention.
3491
0fc9922a
DC
34922003-06-12 David Carlton <carlton@kealia.com>
3493
3494 * cp-namespace.c (cp_set_block_scope): Comment out
3495 processing_has_namespace_info branch.
3496
1fd35568
JB
34972003-06-12 Jim Blandy <jimb@redhat.com>
3498
f470a70a
JB
3499 Recognize and skip 64-bit PowerPC Linux linkage functions.
3500 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3501 insn_pattern, insns_match_pattern, d_field, ds_field): New
3502 functions, macros, and types for working with PPC instructions.
3503 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3504 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3505 ppc64_skip_trampoline_code): New functions, variables, and macros
3506 for recognizing and skipping linkage functions.
3507 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3508 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3509
49ff75ad
JB
3510 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3511 register offsets for both the 32- and 64-bit interfaces.
3512
bd918c83
JB
3513 Actually finish the job started by my change of 2003-05-29.
3514 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3515 other #definition of this.
3516 (ppc_linux_skip_trampoline_code): Remove declaration.
3517 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3518 static.
3519 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3520 method for GDBARCH.
3521
3522 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3523 'long' on ppc64-*-linux*.
3524
f8c59253
JB
3525 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3526 isn't #defined, assume the register doesn't exist: act as if
3527 tdep->ppc_mq_regnum were -1.
3528
8fbb30b1
JB
3529 * configure.host, configure.tgt: Add entries for
3530 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3531 powerpc/linux.mt.
3532 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3533 New files.
3534
1fd35568
JB
3535 * arch-utils.c (always_use_struct_convention): New function.
3536 * arch-utils.h (always_use_struct_convention): New prototype.
3537 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3538 (alpha_gdbarch_init): Register always_use_struct_convention,
3539 instead of alpha_use_struct_convention.
3540 * cris-tdep.c (cris_use_struct_convention): Delete.
3541 (cris_gdbarch_init): Register always_use_struct_convention,
3542 instead of cris_use_struct_convention.
3543 * frv-tdep.c (frv_use_struct_convention): Delete.
3544 (frv_gdbarch_init): Register always_use_struct_convention,
3545 instead of frv_use_struct_convention.
3546 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3547 (h8300_gdbarch_init): Register always_use_struct_convention,
3548 instead of h8300_use_struct_convention.
e3305dd9 3549 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3550 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3551 instead of mips_o32_use_struct_convention.
3552
e14e6e9c
AC
35532003-06-12 Andrew Cagney <cagney@redhat.com>
3554
3555 * wince.c: Include "mips-tdep.h".
3556 * mips-tdep.h (mips_next_pc): Declare.
3557 * mcore-tdep.c: Make more local functions static.
3558 * Makefile.in (wince.o): Update dependencies.
3559
2335f48e
DC
35602003-06-12 David Carlton <carlton@kealia.com>
3561
3562 * symtab.c (lookup_symbol_aux_minsyms): Replace
3563 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3564 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3565 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3566 SYMBOL_NATURAL_NAME.
3567
f70a7d61
AS
35682003-06-12 Andreas Schwab <schwab@suse.de>
3569
3570 * Makefile.in (tuiDisassem.o): Update dependencies.
3571
b6429628
DC
35722003-06-12 David Carlton <carlton@bactrian.org>
3573
3574 * symtab.h: Delete declaration of make_symbol_overload_list.
3575 Add declaration of lookup_partial_symbol.
3576 * symtab.c (remove_params): Move to cp-support.c.
3577 (overload_list_add_symbol, make_symbol_overload_list)
3578 (sym_return_val_size, sym_return_val_index): Ditto.
3579 (lookup_partial_symbol): Make extern.
3580 * cp-support.h: Add declaration of make_symbol_overload_list.
3581 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3582 symtab.h, and block.h.
3583 (remove_params): Move here from symtab.c.
3584 (overload_list_add_symbol, make_symbol_overload_list)
3585 (sym_return_val_size, sym_return_val_index): Ditto.
3586 * valops.c: Include cp-support.h.
3587 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3588 frame_h, and block_h.
3589 (valops.o): Depend on cp_support_h.
3590
084edea5
CV
35912003-06-12 Corinna Vinschen <vinschen@redhat.com>
3592
3593 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3594 substitute by NUM_REGS throughout.
3595 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3596 (h8300s_register_name): New function for H8S registers.
3597 (h8300sx_register_name): Ditto for H8SX registers.
3598 (h8300_print_register): Revise register printing, avoid depending
3599 on 32 bit long.
0261a0d0 3600 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3601 (h8300h_register_byte): New function for any other architecture.
3602 (h8300_register_raw_size): Remove.
3603 (h8300_register_virtual_type): Revise to return actually useful
3604 type.
3605 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3606 (h8300h_extract_struct_value_address): New function for any other
3607 architecture.
3608 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3609 set_gdbarch_register_name, set_gdbarch_register_byte,
3610 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3611 Remove calls to set_gdbarch_deprecated_register_size,
3612 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3613 set_gdbarch_deprecated_max_register_raw_size,
3614 set_gdbarch_register_virtual_size and
3615 set_gdbarch_deprecated_max_register_virtual_size entirely.
3616 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3617 set_gdbarch_long_double_bit.
3618
06194148
JJ
36192003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3620
8ffd9b1b
AJ
3621 * doublest.c (convert_doublest_to_floatformat): When dealing
3622 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3623 processing a full 32 bits of mantissa.
3624
de4f826b
DC
36252003-06-11 David Carlton <carlton@bactrian.org>
3626
3627 * dictionary.h: New.
3628 * dictionary.c: New.
3629 * block.h: Add opaque declaration for struct dictionary.
3630 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3631 'sym' members.
3632 (BLOCK_DICT): New macro.
3633 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3634 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3635 BLOCK_SHOULD_SORT.
3636 (ALL_BLOCK_SYMBOLS): Update definition.
3637 * Makefile.in (SFILES): Add dictionary.c.
3638 (dictionary_h): New.
3639 (COMMON_OBS): Add dictionary.o.
3640 (dictionary.o): New.
3641 (ada-lang.o): Depend on dictionary_h.
3642 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3643 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3644 (mi-cmd-stack.o): Ditto.
3645 (gdbtk-cmds.o): Update dependencies.
3646 (gdbtk-stack.o): Ditto.
3647 * ada-lang.c: Include dictionary.h.
3648 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3649 (fill_in_ada_prototype, debug_print_block): Ditto.
3650 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3651 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3652 'is_sorted'.
3653 * mdebugread.c: Include dictionary.h.
3654 (struct parse_stack): Delete 'maxsyms' member.
3655 (parse_symbol): Update calls to new_block. Delete calls to
3656 shrink_block. Use dictionary methods.
3657 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3658 Update calls to new_symtab. Don't maintain maxsyms data.
3659 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3660 (add_symbol): Just call dict_add_symbol.
3661 (new_symtab): Delete 'maxsyms' argument.
3662 (new_symtab): Update calls to new_block.
3663 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3664 (shrink_block): Delete function.
3665 (fixup_sigtramp): Update call to new_block. Add symbol via
3666 dict_add_symbol.
3667 * jv-lang.c: Include dictionary.h.
3668 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3669 appropriately. Set class_symtab->free_func. Make sure the
3670 blockvector is big enough to hold two blocks.
3671 (add_class_symtab_symbol): Use dictionary methods.
3672 (free_class_block): New function.
3673 (type_from_class): Replace explicit iteration by
3674 ALL_BLOCK_SYMBOLS.
3675 * symtab.h (struct symtab): Replace 'free_ptr' method by
3676 'free_func'.
3677 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3678 sort_symtab_syms.
3679 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3680 sort_symtab_syms.
3681 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3682 Include dictionary.h.
3683 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3684 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3685 sort_symtab_syms.
3686 * objfiles.c: Include dictionary.h.
3687 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3688 * buildsym.c: Include dictionary.h.
3689 (finish_block): Use dictionary methods.
3690 (end_symtab): Set free_func to NULL, not free_ptr.
3691 * tracepoint.c: Include dictionary.h.
3692 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3693 (scope_info): Ditto.
3694 * stack.c: Include dictionary.h.
3695 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3696 (print_block_frame_labels, print_frame_arg_vars)
3697 (print_frame_args): Ditto.
3698 * symmisc.c (free_symtab_block): Use dictionary methods.
3699 (dump_symtab): Ditto.
3700 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3701 Include dictionary.h.
3702 * symfile.h: Delete declarations of sort_block_syms,
3703 sort_symtab_syms.
3704 * symfile.c (sort_block_syms): Delete.
3705 (sort_symtab_syms): Delete.
3706 * symtab.c: Include dictionary.h.
3707 (lookup_block_symbol): Use dictionary iterators.
3708 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3709 (search_symbols, make_symbol_completion_list): Ditto.
3710 (make_symbol_overload_list): Ditto.
3711 * valops.c (value_of_local): Use dict_empty.
3712 Include dictionary.h.
3713
a31f978c
JB
37142003-06-11 J. Brobecker <brobecker@gnat.com>
3715
3716 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3717
526e70c0
DC
37182003-06-11 David Carlton <carlton@bactrian.org>
3719
3720 * block.h (BLOCK_SHOULD_SORT): Delete.
3721 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3722 blocks.
3723 * ada-lang.c (ada_add_block_symbols): Ditto.
3724 * symfile.c (sort_block_syms): Delete.
3725 (sort_symtab_syms): Ditto.
3726 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3727 declarations.
3728 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3729 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3730 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3731 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3732 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3733 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3734 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3735
33c08150
JJ
37362003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3737
8ffd9b1b 3738 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3739 bits to 128.
3740
781a750d
AC
37412003-06-11 Andrew Cagney <cagney@redhat.com>
3742
3743 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3744 REGISTER_CONVERTIBLE.
3745 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3746 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3747 * gdbarch.h, gdbarch.c: Re-generate.
3748 * arch-utils.h (deprecated_register_convertible_not): Rename
3749 generic_register_convertible_not.
3750 * arch-utils.c (deprecated_register_convertible_not): Rename
3751 generic_register_convertible.
3752 (legacy_convert_register_p, legacy_register_to_value): Update.
3753 * sh-tdep.c (sh64_push_arguments): Update.
3754 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3755 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3756 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3757 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3758 * arch-utils.c (legacy_value_to_register): Update.
3759 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3760 (rs6000_register_convert_to_raw): Make parameter "from" const.
3761 * mips-tdep.c (mips_gdbarch_init): Update.
3762 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3763 * infcmd.c (default_print_registers_info): Update.
3764 * ia64-tdep.c (ia64_gdbarch_init): Update.
3765 (ia64_register_convert_to_raw): Make parameter "from" const.
3766 * i386-tdep.c (i386_gdbarch_init): Update.
3767 (i386_register_convert_to_raw): Update.
3768
cd90e54f
AC
37692003-06-11 Andrew Cagney <cagney@redhat.com>
3770
3771 * remote-fileio.c: Include "remote-fileio.h".
3772 * Makefile.in (remote-fileio.o): Update dependencies.
3773 (remote_fileio_h): Fix typo.
3774
a78f21af
AC
37752003-06-11 Andrew Cagney <cagney@redhat.com>
3776
3777 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3778 (xstormy16_save_dummy_frame_tos): Make static.
3779 (_initialize_xstormy16_tdep): Add declaration.
3780 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3781 * v850-tdep.c: Make local functions static.
3782 (_initialize_v850_tdep): Add declaration.
3783 * sparc-tdep.c: Make local functions static.
3784 (_initialize_sparc_tdep): Add declaration.
3785 * sh-tdep.c: Make local functions static.
3786 (_initialize_sh_tdep): Add declaration.
3787 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3788 * s390-tdep.c: Make local functions static.
3789 (_initialize_s390_tdep): Add declaration.
3790 * dbxread.c (find_stab_function_addr): Make static.
3791 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3792 * ocd.c (_initialize_remote_ocd): Add declaration.
3793 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3794 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3795 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3796 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3797 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3798 * remote-array.c (_initialize_array): Add declaration.
3799 (_initialize_remote_monitors): Add declaration.
3800 * remote-mips.c: Make local functions static.
3801 (_initialize_remote_mips): Add declaration.
3802 * mcore-tdep.c: Make all local functions static.
3803 (_initialize_mcore_tdep): Add declaration.
3804 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3805 * abug-rom.c (_initialize_abug_rom): Add declaration.
3806 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3807 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3808 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3809 * remote-est.c (_initialize_est): Add declaration.
3810 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3811 (m68hc11_call_dummy_address): Make static.
3812 * ia64-tdep.c: Make local functions static.
3813 (_initialize_ia64_tdep): Add declaration.
3814 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3815 * monitor.c (monitor_wait_filter): Make static.
3816 (_initialize_remote_monitors): Add declaration.
3817 * remote-hms.c (_initialize_remote_hms): Add declaration.
3818 * remote-e7000.c (fetch_regs_from_dump): Make static.
3819 (expect_n): Make static.
3820 (_initialize_remote_e7000): Add declaration.
3821 * ser-e7kpc.c: Always include "defs.h".
3822 (_initialize_ser_e7000pc): Add declaration.
3823 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3824 * cris-tdep.c: Make all but one function static.
3825 (_initialize_cris_tdep): Add declaration.
3826 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3827 * solib.c (update_solib_list): Make static.
3828 (_initialize_solib): Add declaration.
3829 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3830 (_initialize_avr_tdep): Add declaration.
3831 * remote-rdi.c (voiddummy): Make static.
3832 (_initialize_remote_rdi): Add declaration.
3833 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3834 * remote-rdp.c (send_rdp): Make static.
3835 (_initialize_remote_rdp): Add declaration.
3836 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3837
cbcdb1f5
CV
38382003-06-11 Corinna Vinschen <vinschen@redhat.com>
3839
3840 * remote-fileio.c: Make ari happy.
3841
a191ea8d
JB
38422003-06-10 J. Brobecker <brobecker@gnat.com>
3843
3844 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3845 fetching the trailing bytes of the buffer we are about to write.
3846
0ef75e11
AC
38472003-06-10 Andrew Cagney <cagney@redhat.com>
3848
3849 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3850 * Makefile.in (remote-fileio.o): Update dependencies.
3851 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3852 include <setjmp.h>, or <sys/types.h> conditional on USG.
3853 (remote_fio_jmp_buf): Delete global variable.
3854
449092f6 38552003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3856 Martin M. Hunt <hunt@redhat.com>
449092f6 3857
559fa028
AC
3858 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3859 (SFILES): Add remote-fileio.c.
3860 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3861 dependencies for building remote.o.
449092f6
CV
3862 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3863 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3864 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3865 static storage class.
3866 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3867 'F' packet.
3868 (_initialize_remote): Call initialize_remote_fileio().
3869 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3870 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3871 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3872 (captured_main): Initialize new ui_files.
3873 * ui-file.c: Add read and fgets input functions.
3874 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3875 (null_file_read): New function.
3876 (ui_file_read): New function.
3877 (set_ui_file_read): New function.
3878 (stdio_file_read): New function.
3879 * ui-file.h: New type ui_file_read_ftype.
3880 (set_ui_file_read): Declare.
3881 (ui_file_read): Declare.
3882
248de703
AC
38832003-06-09 Andrew Cagney <cagney@redhat.com>
3884
3885 * frame.h (deprecated_unwind_get_saved_register): Rename
3886 generic_unwind_get_saved_register, update comments.
3887 * mips-tdep.c (mips_get_saved_register): Update.
3888 * frame.c (deprecated_unwind_get_saved_register): Update.
3889
0ed8aa57
AC
38902003-06-09 Andrew Cagney <cagney@redhat.com>
3891
3892 * vax-tdep.c (vax_frame_locals_address): Delete function.
3893 (vax_gdbarch_init): Do not set frame_locals_address.
3894 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3895 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3896 * s390-tdep.c (s390_frame_args_address): Delete function.
3897 (s390_gdbarch_init): Do not set frame_args_address or
3898 frame_locals_address.
3899 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3900 (ns32k_gdbarch_init): Do not set frame_locals_address.
3901 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3902 (hppa_frame_locals_address): Delete function.
3903 (hppa_gdbarch_init): Do not set frame_args_address, or
3904 frame_locals_address.
3905 * arm-tdep.c (arm_frame_args_address): Delete.
3906 (arm_frame_locals_address): Delete.
3907 (arm_gdbarch_init): Do not set frame_args_address, or
3908 frame_locals_address.
3909
983a287a
AC
39102003-06-09 Andrew Cagney <cagney@redhat.com>
3911
3912 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3913 * gdbarch.h, gdbarch.c: Re-generate.
3914 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3915 * arch-utils.c (frame_num_args_unknown): Delete function.
3916 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3917 (frame_info): Use FRAME_NUM_ARGS_P.
3918 * arm-tdep.c (arm_frame_num_args): Delete function.
3919 (arm_gdbarch_init): Do not set frame_num_args.
3920 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3921 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3922 (hppa_gdbarch_init): Do not set frame_num_args.
3923 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3925 frame_num_args to default frame_num_args_unknown.
3926 * v850-tdep.c (v850_gdbarch_init): Ditto.
3927 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3928 * sh-tdep.c (sh_gdbarch_init): Ditto.
3929 * s390-tdep.c (s390_gdbarch_init): Ditto.
3930 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3931 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3932 * mips-tdep.c (mips_gdbarch_init): Ditto.
3933 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3934 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3936 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3937 * i386-tdep.c (i386_gdbarch_init): Ditto.
3938 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3939 * frv-tdep.c (frv_gdbarch_init): Ditto.
3940 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3941 * cris-tdep.c (cris_gdbarch_init): Ditto.
3942 * avr-tdep.c (avr_gdbarch_init): Ditto.
3943 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3944
8d3b0994
AC
39452003-06-09 Andrew Cagney <cagney@redhat.com>
3946
3947 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3948 (print_frame_args): Moved to "stack.c".
3949 * stack.c: Include "gdb_assert.h".
3950 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3951 (print_frame_args): Moved from "printcmd.c".
3952 * frame.h (print_frame_args): Delete declaration.
3953 * Makefile.in (stack.o): Update dependencies.
3954
25e3a86b
AC
39552003-06-08 Andrew Cagney <cagney@redhat.com>
3956
3957 * frame.c (get_prev_frame): Remove reference to
3958 frame_args_address_correct in comments.
3959 * frame-base.c (default_frame_args_address): Delete code
3960 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3961 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3962 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3963 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3964 (vax_frame_args_address_correct): Delete declaration.
3965
a9e5fdc2
AC
39662003-06-08 Andrew Cagney <cagney@redhat.com>
3967
3968 * gdbarch.sh (UNWIND_SP): Add.
3969 * gdbarch.h, gdbarch.c: Re-generate.
3970 * frame.c (frame_sp_unwind): New function.
3971 (get_frame_sp): New function.
3972 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3973 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3974 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3975 value.
3976 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3977 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3978
8983bd83
AC
39792003-06-08 Andrew Cagney <cagney@redhat.com>
3980
7fec2c59
AC
3981 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3982 REMOTE_BREAKPOINT.
3983 * remote.c: Update.
3984 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3985 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3986 * config/m68k/tm-sun3.h: Update.
3987 * config/m68k/tm-m68klynx.h: Update.
3988 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3989
8983bd83
AC
3990 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3991 trad_frame". Update comments.
3992 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3993 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3994 (trad_frame_register_value, trad_frame_prev_register): Update.
3995
b9362cc7
AC
39962003-06-08 Andrew Cagney <cagney@redhat.com>
3997
3998 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3999 from GCC's acinclude.m4.
4000 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4001 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4002 * main.c (error_init): Delete declaration.
4003 * defs.h (error_init): Declare.
4004 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4005 (rs6000_convert_from_func_ptr_addr): Make static.
4006 (_initialize_rs6000_tdep): Add declaration.
4007 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4008 (show_commands, set_verbose, show_history): Delete declaration.
4009 * top.h (set_verbose): Add declaration.
4010 (show_history, set_history, show_commands): Add declaration.
4011 (do_restore_instream_cleanup): Add declaration.
4012 * objc-lang.c (specialcmp): Make static.
4013 (print_object_command): Make static.
4014 (find_objc_msgsend): Make static.
4015 (find_objc_msgcall_submethod_helper): Make static.
4016 (find_objc_msgcall_submethod): Make static.
4017 (_initialize_objc_language): Add declaration.
4018 (find_implementation_from_class): Make static.
4019 (find_implementation): Make static.
4020 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4021 * objc-lang.h (lookup_struct_typedef): Add declaration.
4022 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4023 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4024 (do_restore_user_call_depth): Make static.
4025 (do_restore_instream_cleanup): Delete declaration.
4026 (dont_repeat): Delete declaration.
4027 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4028 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4029 * reggroups.c (_initialize_reggroup): Add declaration.
4030 * cp-support.c (_initialize_cp_support): Add declaration.
4031 * cp-abi.c (_initialize_cp_abi): Add declaration.
4032 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4033 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4034 (_initialize_gnu_v3_abi): Add declaration.
4035 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4036 (_initialize_gnu_v2_abi): Add declaration.
4037 * frame-base.c (_initialize_frame_base): Add declaration.
4038 * doublest.c (floatformat_from_length): Make static.
4039 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4040 * frame.c (create_sentinel_frame): Make static.
4041 (_initialize_frame): Add declaration.
4042 * top.c (do_catch_errors): Make static.
4043 (gdb_rl_operate_and_get_next_completion): Make static.
4044 * typeprint.c: Include "typeprint.h".
4045 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4046 (sentinel_frame_this_id): Make static.
4047 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4048 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4049 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4050 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4051 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4052 * maint.c (maintenance_print_architecture): Make static.
4053 * signals/signals.c (_initialize_signals): Add declaration.
4054 * std-regs.c (_initialize_frame_reg): Add declaration.
4055 * jv-exp.y (push_variable): ISO C definition.
4056 (push_qualified_expression_name): Ditto.
4057 * memattr.c (_initialize_mem): Add declaration.
4058 * remote.c (remote_check_watch_resources): Make static.
4059 (remote_stopped_by_watchpoint): Make static.
4060 (remote_stopped_data_address): Make static.
4061 * d10v-tdep.c (nr_dmap_regs): Make static.
4062 (a0_regnum): Make static.
4063 (d10v_frame_unwind_cache): Make static.
4064 (d10v_frame_p): Make static.
4065 * osabi.c (show_osabi): Make static.
4066 (_initialize_gdb_osabi): Add extern declaration.
4067 * gdbtypes.c (make_qualified_type): Make static.
4068 (safe_parse_type): Make static.
4069 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4070 * macrotab.c (macro_bcache_free): Make static.
4071 * interps.c (interp_set_quiet): Make static.
4072 (interpreter_exec_cmd): Make static.
4073 * stack.h (select_frame_command): New file.
4074 * stack.c: Include "stack.h".
4075 (select_frame_command_wrapper): Delete function.
4076 (select_frame_command): Make global.
4077 * infcall.c: Include "infcall.h".
4078 * linespec.c: Include "linespec.h".
4079 * symfile.c (sections_overlap): Make static.
4080 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4081 * charset.c (_initialize_charset): Add missing prototype.
4082 * regcache.c (init_legacy_regcache_descr): Make static.
4083 (do_regcache_xfree): Make static.
4084 (regcache_xfer_part): Make static.
4085 (_initialize_regcache): Add missing prototype.
4086 * breakpoint.c (parse_breakpoint_sals): Make static.
4087 (breakpoint_sals_to_pc): Make static.
4088 * interps.h (clear_interpreter_hooks): ISO C declaration.
4089 * Makefile.in (stack_h): Define.
4090 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4091 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4092
a0f267c7
AC
40932003-06-08 Andrew Cagney <cagney@redhat.com>
4094
4095 * Makefile.in (d10v-tdep.o): Update dependencies.
4096 (SFILES): Add trad-frame.c.
4097 (trad_frame_h): Define.
4098 (COMMON_OBS): Add trad-frame.o.
4099 (trad-frame.o): Specify dependencies.
4100 * d10v-tdep.c: Include "trad-frame.h".
4101 (saved_regs_unwinder): Delete function.
4102 (d10v_frame_prev_register): Use trad_frame_prev_register.
4103 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4104 trad_frame", delete "regs" and "prev_sp".
4105 (prologue_find_regs): Use trad-frame.
4106 * trad-frame.h, trad-frame.c: New files.
4107
4538b4f4
MK
41082003-06-08 Mark Kettenis <kettenis@gnu.org>
4109
4110 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4111
a0273b2f
AF
41122003-06-07 Adam Fedor <fedor@gnu.org>
4113
4114 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4115 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4116 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4117 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4118 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4119 Use it.
4120
3a6c3343
AC
41212003-06-07 Andrew Cagney <cagney@redhat.com>
4122
4123 * symfile.h: Re-indent, clean up comments.
4124
b46e02f6
AC
41252003-06-07 Andrew Cagney <cagney@redhat.com>
4126
4127 * inferior.h (deprecated_write_sp): Replace
4128 generic_target_write_sp.
4129 * regcache.c (deprecated_write_sp): Replace
4130 generic_target_write_sp.
4131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4132 * vax-tdep.c (vax_gdbarch_init): Update.
4133 * v850-tdep.c (v850_gdbarch_init): Update.
4134 * sparc-tdep.c (sparc_gdbarch_init): Update.
4135 * sh-tdep.c (sh_gdbarch_init): Update.
4136 * s390-tdep.c (s390_gdbarch_init): Update.
4137 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4138 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4140 * mcore-tdep.c (mcore_gdbarch_init): Update.
4141 * m68k-tdep.c (m68k_gdbarch_init): Update.
4142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4143 * ia64-tdep.c (ia64_gdbarch_init): Update.
4144 * h8300-tdep.c (h8300_gdbarch_init): Update.
4145 * frv-tdep.c (frv_gdbarch_init): Update.
4146 * cris-tdep.c (cris_gdbarch_init): Update.
4147 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4148
a42e117c
AC
41492003-06-07 Andrew Cagney <cagney@redhat.com>
4150
4151 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4152 Assert that PC_REGNUM is valid.
4153 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4154
bd1ce8ba
AC
41552003-06-07 Andrew Cagney <cagney@redhat.com>
4156
4157 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4158 * gdbarch.h, gdbarch.c: Regenerate.
4159 * mn10300-tdep.c: Include "gdb_assert.h".
4160 (mn10300_read_fp): New function.
4161 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4162 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4163 * ia64-tdep.c: Include "gdb_assert.h".
4164 (ia64_read_fp): New function.
4165 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4166 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4167 * regcache.c (generic_target_read_sp): Delete function.
4168 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4169 * inferior.h (generic_target_read_sp): Delete declaration.
4170 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4171 generic_target_read_sp.
4172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4173 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4174 * sh-tdep.c (sh_gdbarch_init): Ditto.
4175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4176 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4177
ec5cbaec
AC
41782003-06-07 Andrew Cagney <cagney@redhat.com>
4179
4180 * gdbarch.sh: Comment each field of startup_gdbarch.
4181 * gdbarch.h, gdbarch.c: Re-generate.
4182
cde9ea48
AC
41832003-06-07 Andrew Cagney <cagney@redhat.com>
4184
4185 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4186 * gdbarch.h, gdbarch.c: Re-generate.
4187 * regcache.c: Update comments on read_pc et.al.
4188 (generic_target_read_pc): Delete function.
4189 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4190 * inferior.h (generic_target_read_pc): Delete declaration.
4191 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4192 generic_target_read_pc.
4193 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4194 * sh-tdep.c (sh_gdbarch_init): Ditto.
4195 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4197
9a90a780
AC
41982003-06-07 Andrew Cagney <cagney@redhat.com>
4199
4200 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4201 "index" with "special_local_sect". Use strcmp instead of STREQ.
4202 Append period to coments.
4203
a39a16c4
MM
42042003-06-06 Mark Mitchell <mark@codesourcery.com>
4205
4206 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4207 (elfstab_offset_sections): Likewise.
4208 * gdb-stabs.h (stab_section_info): Likewise.
4209 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4210 * objfiles.c (objfile_relocate): Likewise.
4211 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4212 * remote.c (get_offsets): Likewise.
4213 (remote_cisco_objfile_relocate): Likewise.
4214 * somread.c (som_symfile_offsets): Likewise.
4215 * symfile.c (alloc_section_addr_info): New function.
4216 (build_section_addr_info_from_section_tab): Use it.
4217 (free_section_addr_info): Adjust.
4218 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4219 (syms_from_objfile): Allocate local_addr dynamically.
4220 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4221 dynamically.
4222 (add_symbol_file_command): Allocate sect_opts dynamically.
4223 (reread_symbols): Avoid use of SECT_OFF_MAX.
4224 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4225 (alloc_section_addr_info): Declare it.
4226 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4227 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4228 dynamically.
4229 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4230
20c6c2f8
AC
42312003-06-06 Andrew Cagney <cagney@redhat.com>
4232
4233 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4234 (d10v_frame_unwind_cache): Do not set "return_pc".
4235
884a26c8
MS
42362003-06-06 Michael Snyder <msnyder@redhat.com>
4237
4238 * h8300-tdep.c: Make tidy (long lines).
4239
088ce440
ML
42402003-06-06 Michal Ludvig <mludvig@suse.cz>
4241
8ffd9b1b 4242 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4243 to regcache_collect().
4244
7d773d96
JB
42452003-06-05 J. Brobecker <brobecker@gnat.com>
4246
4247 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4248 pc_in_sigtramp multiarch method.
4249 (hppa_hpux_som_init_abi): Use it.
4250 (hppa_hpux_elf_init_abi): Likewise.
4251 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4252 macro has been multiarched.
4253 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4254 macro here, as hppa64 isn't multiarched yet.
4255
1df6926e
AC
42562003-06-05 Andrew Cagney <cagney@redhat.com>
4257
4258 * Makefile.in (value_h): Add $(frame_h).
4259 * value.h: Include "frame.h".
4260 (struct value): Replace "frame_addr" with "frame_id".
4261 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4262 * values.c (allocate_value): Use VALUE_FRAME_ID.
4263 (value_copy): Use VALUE_FRAME_ID.
4264 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4265 * valops.c (value_assign): Update. Use frame_find_by_id.
4266
6b53acc6
ML
42672003-06-05 Michal Ludvig <mludvig@suse.cz>
4268
4269 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4270 in each pass.
4271
4d9850d3
JJ
42722003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4273
4274 * thread-db.c (check_event): For create/death event breakpoints,
4275 loop through all messages to ensure that we read the message
4276 corresponding to the breakpoint we are at.
4277
8efca6ba
MS
42782003-06-04 Michael Snyder <msnyder@redhat.com>
4279
4280 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4281
0912c7f2
MK
42822003-06-04 Mark Kettenis <kettenis@gnu.org>
4283
4284 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4285 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4286 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4287 when handling .eh_frame sections.
4288
4e370325
JB
42892003-06-04 J. Brobecker <brobecker@gnat.com>
4290
4291 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4292 prepare_to_proceed procedure instead of the hppa-specific one.
4293 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4294
b757528f 42952003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4296
b757528f
JJ
4297 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4298 * config.in: Regenerated.
4299 * configure.in: Add test for syscall function and check for
4300 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4301 * configure: Regenerated.
4302 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4303 <sys/syscall.h>.
4304 (kill_lwp): New function that uses tkill syscall or
4305 uses kill, depending on whether threading model is nptl or not.
4306 All callers of kill() changed to use kill_lwp().
4307 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4308 see if all threads have already exited in the nptl model.
4309 (stop_and_resume_callback): New callback function used by the
4310 lin_lwp_wait thread exit handling code.
4311 (stop_wait_callback): Check for threads already having exited and
4312 delete such threads fromt the lwp list when discovered.
4313 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4314
b757528f
JJ
4315 Roland McGrath <roland@redhat.com>
4316 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4317 nptl libthread_db.
4318
087779b1
RH
43192003-06-03 Richard Henderson <rth@redhat.com>
4320
b21fd293
RH
4321 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4322 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4323 (alpha_sigtramp_frame_prev_register): Likewise.
4324 (alpha_heuristic_frame_prev_register): Likewise.
4325 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4326
8ffd9b1b 4327 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4328 alpha-specific register id names.
4329 (alpha_mdebug_frame_unwind_cache): Likewise.
4330 (alpha_mdebug_frame_prev_register): Likewise.
4331
baa490c4
RH
43322003-06-03 Richard Henderson <rth@redhat.com>
4333
4334 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4335 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4336 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4337 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4338 unwind routines.
4339 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4340 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4341 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4342
4343 * alpha-linux-tdep.c: Remove unnecessary includes.
4344 * Makefile.in (alpha-linux-tdep.o): Update.
4345
43462003-06-03 Richard Henderson <rth@redhat.com>
4347
4348 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4349 (alphabsd_fill_fpreg): Likewise.
4350
f534e522
JB
43512003-06-03 J. Brobecker <brobecker@gnat.com>
4352
4353 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4354 references to struct frame_info fields by calls to the equivalent
4355 accessors. Necessary now that frame_info is opaque.
4356
4035536b
JB
43572003-06-03 J. Brobecker <brobecker@gnat.com>
4358
4359 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4360 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4361 structure, field no longer exists.
4362
0bd79c5c
JB
43632003-06-03 J. Brobecker <brobecker@gnat.com>
4364
4365 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4366 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4367
37bb6d9f
JB
43682003-06-03 J. Brobecker <brobecker@gnat.com>
4369
4370 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4371 references to struct frame_info fields by calls to the equivalent
4372 accessors. Necessary now that frame_info is opaque.
4373
852ee05c
JB
43742003-06-03 J. Brobecker <brobecker@gnat.com>
4375
4376 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4377 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4378 structure, field no longer exists.
4379
7d58c67d
TR
43802003-06-03 Theodore A. Roth <troth@openavr.org>
4381
8ffd9b1b 4382 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4383 accumulation of the size of all registers instead of blindly using
4384 DEPRECATED_REGISTER_BYTES.
4385
0a48e7e8
MS
43862003-06-03 Michael Snyder <msnyder@redhat.com>
4387
4388 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4389 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4390 for h8300sx.
4391
9798ab0d
JB
43922003-06-03 J. Brobecker <brobecker@gnat.com>
4393
4394 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4395 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4396
00b037e2
AC
43972003-06-03 Andrew Cagney <cagney@redhat.com>
4398
4399 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4400 (sparc_convert_to_raw): Delete function.
4401 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4402 register_convert_to_virtual.
4403
043b2f77
JJ
44042003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4405
4406 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4407 layer if not dealing with a statically-linked threaded program.
4408
f43caff8
KW
44092003-06-03 Kris Warkentin <kewarken@qnx.com>
4410
4411 * solib.c (solib_open): Update comment to reflect actual search order.
4412
ae1e7417
AC
44132003-06-03 Andrew Cagney <cagney@redhat.com>
4414
4415 * frame.c (get_frame_memory_signed): New function.
4416 (get_frame_memory, get_frame_memory_unsigned): New function.
4417 (get_frame_arch): New function.
4418 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4419 (get_frame_memory, get_frame_unsigned_memory): Declare.
4420 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4421 get_frame_memory_unsigned and get_frame_arch.
4422 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4423
cb123844
RG
44242003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4425
4426 * MAINTAINERS (write after approval): Add myself.
4427
1bb792e9
JB
44282003-06-03 Jim Blandy <jimb@redhat.com>
4429
4430 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4431 elements of gregset_t are 64 bits each, but access registers
4432 are still 32 bits, so they're packed two per gregset_t
4433 element. Unpack/pack them properly.
4434
aee8d8ba
DC
44352003-06-02 David Carlton <carlton@bactrian.org>
4436
4437 * linespec.c (find_methods): Break out code into
4438 add_matching_methods and add_constructors.
4439 (add_matching_methods): New.
4440 (add_constructors): Ditto.
4441
bf7488d2
AC
44422003-06-02 Andrew Cagney <cagney@redhat.com>
4443
bf7488d2
AC
4444 * sparc-tdep.c (sparc_print_registers): Delete call to
4445 REGISTER_CONVERTIBLE.
4446 (sparc_gdbarch_init): Do not set register_convertible.
4447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4448 * frv-tdep.c (frv_gdbarch_init): Ditto.
4449 * cris-tdep.c (cris_gdbarch_init): Ditto.
4450
adedef68
EZ
44512003-06-02 Elena Zannoni <ezannoni@redhat.com>
4452
8ffd9b1b 4453 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4454 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4455 (syms_from_objfile): Ditto.
4456
650fcc91
AS
44572003-06-03 Andreas Schwab <schwab@suse.de>
4458
4459 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4460 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4461
df4a182b
RH
44622003-06-02 Richard Henderson <rth@redhat.com>
4463
4464 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4465 a member of all_reggroup.
4466
c483c494
RH
44672003-06-02 Richard Henderson <rth@redhat.com>
4468
4469 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4470 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4471 (alpha_lds, alpha_sts): New.
4472 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4473 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4474 restructure and fail for type sizes other than 4 or 8.
4475 (alpha_value_to_register): Similarly.
4476 (alpha_extract_return_value): Use alpha_sts.
4477 (alpha_store_return_value): Use alpha_lds.
4478 (alpha_gdbarch_init): Update hooks.
4479
b38b6be2
RH
44802003-06-02 Richard Henderson <rth@redhat.com>
4481
4482 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4483 regnum identifiers.
4484 (alpha_sigtramp_register_address): Likewise.
4485
98a8e1e5
RH
44862003-06-02 Richard Henderson <rth@redhat.com>
4487
4488 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4489 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4490 * alpha-tdep.h: Declare them.
4491
4492 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4493 Remove zerobuf. Don't error on UNIQUE.
4494 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4495 (ALPHA_REGSET_UNIQUE): Provide default.
4496 (supply_gregset): Use alpha_supply_int_regs.
4497 (fill_gregset): Use alpha_fill_int_regs.
4498 (supply_fpregset): Use alpha_supply_fp_regs.
4499 (fill_fpregset): Use alpha_fill_fp_regs.
4500 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4501 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4502 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4503 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4504 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4505 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4506
67dfac52
RH
45072003-06-02 Richard Henderson <rth@redhat.com>
4508
f75d70cc
RH
4509 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4510
67dfac52
RH
4511 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4512 (alpha_store_return_value): Likewise.
4513
0cf566ec
DC
45142003-06-02 David Carlton <carlton@math.stanford.edu>
4515
4516 * block.c (contained_in): Add 'const' to arguments.
4517 (block_function): Ditto.
4518 * block.h: Update declarations for block_function and
4519 contained_in.
4520
cdef89d0
DC
45212003-06-02 David Carlton <carlton@math.stanford.edu>
4522
4523 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4524 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4525 * p-valprint.c (pascal_val_print): Ditto.
4526 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4527
72667056
RH
45282003-06-02 Richard Henderson <rth@redhat.com>
4529
98a8e1e5
RH
4530 * alpha-tdep.c (alpha_push_dummy_call): Use
4531 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4532
8ffd9b1b 4533 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4534 sign-extension of 32-bit values.
4535 (alpha_store_return_value): Similarly.
0ede8eca 4536
98a8e1e5
RH
4537 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4538 (alpha_extract_return_value): Likewise.
4539 (alpha_store_return_value): Likewise.
7b5e1cb3 4540
98a8e1e5
RH
4541 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4542 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4543
98a8e1e5
RH
4544 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4545 (alpha_extract_struct_value_address): Likewise.
4546 (alpha_store_return_value): Likewise.
4547 (alpha_store_struct_return): Remove.
4548 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4549
98a8e1e5
RH
4550 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4551 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4552 macros where appropriate.
4553 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4554 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4555
98a8e1e5
RH
4556 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4557 for SP, GP; void_func_ptr for PC; non-language-specific types
4558 for all others.
4559 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4560
6dd77b81
RH
45612003-06-02 Richard Henderson <rth@redhat.com>
4562
4563 * top.h (lim_at_start): Declare.
4564 * main.c (captured_main): Set it.
4565 * top.c (lim_at_start): Define.
4566 (command_loop): Use it instead of &environ.
4567 * event-top.c (command_handler): Likewise.
4568
f4dbdb54
JT
45692003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4570
4571 * mipsnbsd-tdep.c: Update copyright years.
4572 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4573
8f285956
RH
45742003-06-01 Richard Henderson <rth@redhat.com>
4575
98a8e1e5
RH
4576 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4577 (alpha-linux-tdep.o): Update dependencies.
4578 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4579 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4580
615967cb
RH
45812003-06-01 Richard Henderson <rth@redhat.com>
4582
98a8e1e5
RH
4583 * alpha-tdep.c (alpha_register_reggroup_p): New.
4584 (alpha_gdbarch_init): Register it.
615967cb 4585
b59661bd
AC
45862003-06-02 Andrew Cagney <cagney@redhat.com>
4587
4588 * dwarfread.c: Eliminate "register"
4589 (decode_die_type): Eliminate assignment within "if".
4590 (struct_type, decode_array_element_type): Ditto.
4591 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4592 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4593 (decode_modified_type, completedieinfo): Ditto.
4594 * block.c: Eliminate "register".
4595 (blockvector_for_pc_sect): Eliminate assignment within "if".
4596 * cp-support.h (struct symbol): Opaque declaration.
4597 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4598
5ef165c2
RH
45992003-06-01 Richard Henderson <rth@redhat.com>
4600
98a8e1e5
RH
4601 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4602 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4603
143985b7
AF
46042003-06-01 Adam Fedor <fedor@gnu.org>
4605
4606 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4607 * gdbarch.[ch]: Regenerate.
4608 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4609 (hppa_gdbarch_init): Set it in the gdbarch vector.
4610 * i386-tdep.c (i386_fetch_pointer_argument): New
4611 (i386_gdbarch_init): Set it into gdbarch.
4612 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4613 (rs6000_gdbarch_init): Set it in gdbarch.
4614 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4615 (sparc_gdbarch_init): Set it in gdbarch.
4616
ae0167b9
AC
46172003-06-01 Andrew Cagney <cagney@redhat.com>
4618
7c0b4a20
AC
4619 * defs.h (extract_address): Delete declaration.
4620 * findvar.c (extract_address): Delete function.
4621 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4622 extract_address with the inline equivalent,
4623 extract_unsigned_integer.
4624 (xstormy16_extract_struct_value_address): Ditto.
4625 (xstormy16_pointer_to_address): Ditto.
4626 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4627 * v850-tdep.c (v850_push_arguments): Ditto.
4628 (v850_extract_return_value): Ditto.
4629 (v850_extract_struct_value_address): Ditto.
4630 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4631 (sparcnbsd_get_longjmp_target_64): Ditto.
4632 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4633 (get_longjmp_target): Ditto.
4634 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4635 (sh64_extract_struct_value_address): Ditto.
4636 (sh_push_arguments): Ditto.
4637 (sh64_push_arguments): Ditto.
4638 * remote-vxsparc.c (vx_read_register): Ditto.
4639 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4640 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4641 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4642 * mipsv4-nat.c (get_longjmp_target): Ditto.
4643 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4644 * mips-nat.c (get_longjmp_target): Ditto.
4645 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4646 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4647 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4648 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4649 * irix5-nat.c (get_longjmp_target): Ditto.
4650 * irix4-nat.c (get_longjmp_target): Ditto.
4651 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4652 (ia64_push_arguments): Ditto.
4653 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4654 * h8300-tdep.c (h8300_push_arguments): Ditto.
4655 (h8300_store_return_value): Ditto.
4656 (h8300_extract_struct_value_address): Ditto.
4657 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4658 (frv_push_arguments): Ditto.
4659 * avr-tdep.c (avr_pointer_to_address): Ditto.
4660 (avr_push_arguments): Ditto.
4661 * arm-tdep.c (arm_push_dummy_call): Ditto.
4662 (arm_get_longjmp_target): Ditto.
4663 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4664 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4665 (alpha_get_longjmp_target): Ditto.
4666
ae0167b9
AC
4667 * solib-irix.c (extract_mips_address): Inline extract_address,
4668 replacing it with extract_signed_integer.
4669 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4670 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4671 (first_link_map_member, open_symbol_file_object): Ditto.
4672 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4673 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4674 (LM_NEXT, LM_NAME): Ditto.
4675
44d88583
RH
46762003-06-01 Richard Henderson <rth@redhat.com>
4677
98a8e1e5
RH
4678 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4679 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4680 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4681 (alpha_cannot_store_register): Likewise.
4682 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4683 * alpha-nat.c (supply_gregset): Likewise.
4684 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4685
310e9b6a
AC
46862003-06-01 Andrew Cagney <cagney@redhat.com>
4687
4688 * infcall.c (call_function_by_hand): Update comment on
4689 DEPRECATED_DUMMY_WRITE_SP.
4690
4691 * mips-tdep.c (mips_gdbarch_init): Do not set
4692 deprecated_dummy_write_sp.
4693 (mips_eabi_push_dummy_call): Set the SP register.
4694 (mips_o64_push_dummy_call): Set the SP register.
4695 (mips_o32_push_dummy_call): Set the SP register.
4696 (mips_n32n64_push_dummy_call): Set the SP register.
4697
5ab84872
RH
46982003-06-01 Richard Henderson <rth@redhat.com>
4699
98a8e1e5
RH
4700 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4701 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4702 (supply_gregset): Likewise.
4703 * alpha-tdep.c (alpha_store_return_value): Likewise.
4704 (alpha_get_longjmp_target): Likewise.
4705 (alpha_register_name): Constify array.
4706 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4707 deprecated_register_size, deprecated_register_bytes,
4708 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4709 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4710 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4711
09cc52fd
RH
47122003-06-01 Richard Henderson <rth@redhat.com>
4713
4714 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4715 from arg_reg_buffer to regcache to avoid double conversion.
4716
c7f16359
MK
47172003-06-01 Mark Kettenis <kettenis@gnu.org>
4718
4719 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4720 SP_REGNUM.
4721 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4722 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4723
7131cb6e
RH
47242003-06-01 Richard Henderson <rth@redhat.com>
4725
98a8e1e5
RH
4726 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4727 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4728
f3e0f90b
RH
47292003-06-01 Richard Henderson <rth@redhat.com>
4730
98a8e1e5
RH
4731 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4732 not overlapping PC_REGNUM.
f3e0f90b 4733
c88e30c0
RH
47342003-06-01 Richard Henderson <rth@redhat.com>
4735
98a8e1e5
RH
4736 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4737 alpha_push_arguments. Don't dump argument register data to
4738 the target stack. Fix float and 128-bit long double semantics.
4739 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4740 (alpha_fix_call_dummy): Remove.
4741 (alpha_call_dummy_words): Remove.
4742 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4743
f1a559ae
RH
47442003-06-01 Richard Henderson <rth@redhat.com>
4745
4746 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4747
5e045346
AC
47482003-06-01 Andrew Cagney <cagney@redhat.com>
4749
95404a3e
AC
4750 * mips-tdep.c (is_mips16_addr): New function.
4751 (make_mips16_addr, unmake_mips16_addr): New functions.
4752 (pc_is_mips16, mips_fetch_instruction): Use.
4753 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4754 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4755 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4756 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4757 TARGET_MIPS.
4758 * config/mips/tm-mips.h: Update copyright.
4759 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4760 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4761 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4762 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4763 (TM_PRINT_INSN_MACH): Delete.
4764 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4765
5e045346
AC
4766 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4767 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4768 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4769 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4770 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4771 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4772 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4773 mips*-*-riscos* and mips*-*-sysv* onto mips.
4774 * config/mips/mips64.mt: New file.
4775 * config/mips/mips.mt: New file.
4776 * config/mips/littlemips.mt: Delete file.
4777 * config/mips/decstation.mt: Delete file.
4778 * config/mips/vr4300el.mt: Delete file.
4779 * config/mips/vr5000el.mt: Delete file.
4780 * config/mips/vr5000.mt: Delete file.
4781 * config/mips/vr4100.mt: Delete file.
4782 * config/mips/vr4xxxel.mt: Delete file.
4783 * config/mips/vr4300.mt: Delete file.
4784 * config/mips/vr4xxx.mt: Delete file.
4785 * config/mips/bigmips.mt: Delete file.
4786 * config/mips/bigmips64.mt: Delete file.
4787 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4788 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4789 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4790 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4791 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4792 "tm-bigmips.h".
4793 * config/mips/tm-irix3.h: Ditto.
4794 * config/mips/tm-mipsv4.h: Ditto.
4795 * config/mips/tm-embed.h: Ditto.
4796 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4797 "tm-bigmips64.h".
4798 * config/mips/tm-vr5000el.h: Delete file.
4799 * config/mips/tm-tx39l.h: Delete file.
4800 * config/mips/tm-vr4300el.h: Delete file.
4801 * config/mips/tm-vr4xxxel.h: Delete file.
4802 * config/mips/tm-vr4300.h: Delete file.
4803 * config/mips/tm-vr4100.h: Delete file.
4804 * config/mips/tm-vr4xxx.h: Delete file.
4805 * config/mips/tm-vr5000.h: Delete file.
4806 * config/mips/tm-embedl64.h: Delete file.
4807 * config/mips/tm-embedl.h: Delete file.
4808 * config/mips/tm-embed64.h: Delete file.
4809 * config/mips/tm-bigmips64.h: Delete file.
4810 * config/mips/tm-bigmips.h: Delete file.
4811
2473a4a9
MK
48122003-06-01 Mark Kettenis <kettenis@gnu.org>
4813
97a5b208
MK
4814 Fix gdb/1216.
4815 * shnbsd-nat.c: Include "sh-tdep.h".
4816
2473a4a9
MK
4817 From Richard Henderson <rth@redhat.com>:
4818 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4819
e0f7ec59
AC
48202003-05-31 Andrew Cagney <cagney@redhat.com>
4821
4822 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4823 forward declaration.
4824 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4825 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4826 (mips_find_saved_regs): Use set_reg_offset.
4827 (mips_frame_init_saved_regs): Delete function.
4828 (mips_pop_frame): Call mips_find_saved_regs instead of
4829 DEPRECATED_FRAME_INIT_SAVED_REGS.
4830
68dcc709
AC
48312003-05-31 Andrew Cagney <cagney@redhat.com>
4832
4833 * mips-tdep.c (mips_gdbarch_init): Do not set
4834 deprecated_max_register_raw_size, register_virtual_size, and
4835 deprecated_max_register_virtual_size.
4836
cfc14b3a
MK
48372003-05-31 Mark Kettenis <kettenis@gnu.org>
4838
6405b0a6
MK
4839 * i386-tdep.c: Include "dwarf2-frame.h".
4840 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4841 * Makefile.in (i386-tdep.o): Update dependencies.
4842
cfc14b3a
MK
4843 * dwarf2-frame.c, dwarf2-frame.h: New files.
4844 * Makefile.in (SFILES): Add dwarf2-frame.c.
4845 (dwarf2_frame_h): Define.
4846 (COMMON_OBS): Add dwarf2-frame.o.
4847 (dwarf2-frame.o): Add dependencies.
4848
6a2751d2
AJ
48492003-05-31 Andreas Jaeger <aj@suse.de>
4850
4851 * x86-64-linux-nat.c: Fix comment.
4852
1c3545ae
MK
48532003-05-31 Mark Kettenis <kettenis@gnu.org>
4854
10f93086
MK
4855 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4856 function signature.
4857
1c3545ae
MK
4858 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4859 have a sigcontext_addr handler.
4860 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4861 sigcontext_addr handler.
4862
e11c53d2
AC
48632003-05-31 Andrew Cagney <cagney@redhat.com>
4864
4865 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4866 (print_fp_register_row): Replace do_fp_register_row.
4867 (mips_print_fp_register): Add "file" and "frame" parameters.
4868 (mips_print_register): Add "file" and "frame" parameters.
4869 (mips_print_registers_info): Replace mips_do_registers_info.
4870 (mips_gdbarch_init): Set print_registers_info instead of
4871 deprecated_do_registers_info.
4872 (mips_read_fp_register_single): Add "frame" parameter.
4873 (mips_read_fp_register_double): Add "frame" parameter.
4874
a3386186
MK
48752003-05-31 Mark Kettenis <kettenis@gnu.org>
4876
70913449
MK
4877 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4878 Fixes a bug where GDB would print the wrong register names for
4879 targets without SSE.
4880
2b5e0749
MK
4881 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4882 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4883 registers.
4884
4885 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4886 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4887 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4888 TDEP->sc_sp_offset.
4889
a3386186
MK
4890 From Michal Ludvig <mludvig@suse.cz>:
4891 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4892 and `sc_num_regs'.
4893 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4894 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4895 I386_ST0_REGNUM): Move here from...
4896 * i386-tdep.c: ... here.
4897 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4898 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4899 registers if possible.
4900 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4901 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4902 Remove variables.
4903 (i386bsd_sc_reg_offset): New variable.
4904 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4905 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4906 TDEP->sc_sp_offset.
4907 (i386fbsd_sc_reg_offset): New variable.
4908 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4909 TDEP->sc_num_regs.
4910 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4911 variables.
4912 (i386fbsd4_sc_reg_offset): New variable.
4913 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4914 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4915 TDEP->sc_sp_offset.
4916 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4917 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4918 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4919 Remove variables.
4920 (i386nbsd_sc_reg_offset): New variable.
4921 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4922 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4923 TDEP->sc_sp_offset.
4924 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4925 Remove variables.
4926 (i386obsd_sc_reg_offset): New variable.
4927 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4928 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4929 TDEP->sc_sp_offset.
4930 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4931 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4932 for frame pointer offset in `struct sigcontext'.
4933
25ab4790
AC
49342003-05-31 Andrew Cagney <cagney@redhat.com>
4935
4936 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4937 architecture methods call_dummy_words, sizeof_call_dummy_words,
4938 push_return_address, store_struct_return, and fix_call_dummy. Set
4939 push_dummy_call instead of deprecated_push_arguments.
4940 (mips_store_struct_return): Delete function.
4941 (mips_fix_call_dummy): Delete function.
4942 (mips_push_return_address): Delete function.
4943 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4944 RA_REGNUM and T9_REGNUM.
4945 (mips_n32n64_push_dummy_call): Ditto for
4946 mips_n32n64_push_arguments.
4947 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4948 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4949
6a65450a
AC
49502003-05-31 Andrew Cagney <cagney@redhat.com>
4951
4952 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4953 "dummy_addr" to "bp_addr".
4954 * infcall.c (call_function_by_hand): Pass "funaddr" to
4955 gdbarch_push_dummy_call.
4956 * gdbarch.h, gdbarch.c: Re-generate.
4957 * i386-tdep.c (i386_push_dummy_call): Update.
4958 * arm-tdep.c (arm_push_dummy_call): Update.
4959 * d10v-tdep.c (d10v_push_dummy_call): Update.
4960
c4f35dd8
MK
49612003-05-31 Mark Kettenis <kettenis@gnu.org>
4962
4963 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4964 variable declarations.
4965 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4966 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4967 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4968 x86_64_init_frame_pc, x86_64_init_frame_pc,
4969 x86_64_function_has_prologue): Remove prototypes.
4970 (X86_64_NUM_GREGS): New define.
4971 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4972 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4973 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4974 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4975 XMM1_REGNUM): Remove defines.
4976 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4977 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4978 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4979 X86_64_XMM1_REGNUM): New defines.
4980 (struct x86_64_register_info): Renamed from `struct
4981 register_info'. Remove `size' member.
4982 (x86_64_register_info_table): Remove variable.
4983 (x86_64_register_info): New variable.
4984 (X86_64_NUM_REGS): New define.
4985 (X86_64_NUM_GREGS): Remove define.
4986 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4987 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4988 Remove variables.
4989 (x86_54_dwarf2_reg_to_regnum): Remove function.
4990 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4991 (x86_64_dwarf_reg_to_regnum): New function.
4992 (x86_64_register_name): Rewrite.
4993 (x86_64_register_raw_size): Remove function.
4994 (x86_64_register_byte_table): Remove variable.
4995 (x86_64_register_byte): Remove function.
4996 (x86_64_register_virtual_type): Remove function.
4997 (x86_64_register_type): New function.
4998 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4999 x86_64_register_convert_to_raw): Remove functions.
5000 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5001 (x86_64_use_struct_convention): Make static. Adjust for renamed
5002 defines.
5003 (x86_64_frame_init_saved_regs): Remove function.
5004 (x86_64_push_arguments): Make static. Change to accept a regcache
5005 as argument.
5006 (x86_64_store_return_value, x86_64_extract_return_value): Make
5007 static. Rewrite based on i386 counterparts.
5008 (x86_64_push_dummy_call): New function.
5009 (X86_64_NUM_SAVED_REGS): New define.
5010 (x86_64_register_number): Remove function.
5011 (x86_64_store_struct_return): Remove function.
5012 (x86_64_frameless_function_invocation,
5013 x86_64_function_has_prologue): Remove functions.
5014 (PROLOG_BUFSIZE): Remove define.
5015 (struct x86_64_frame_cache): New structure.
5016 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5017 x86_64_frame_cache, x86_64_frame_this_id,
5018 x86_64_frame_prev_register, x86_64_frame_p,
5019 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5020 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5021 functions.
5022 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5023 variables.
5024 (x86_64_skip_prologue): Rewrite in terms of
5025 x86_64_analyze_prologue.
5026 (x86_64_frame_base_address): New function.
5027 (x86_64_frame_base): New variable.
5028 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5029 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5030 set deprecated_fp_regnum, deprecated_register_size,
5031 deprecated_register_bytes, register_raw_size, register_byte,
5032 register_virtual_type, register_convertiable,
5033 register_convert_to_virtual, convert_to_raw,
5034 deprecated_get_saved_register, deprecated_target_read_fp,
5035 deprecated_push_arguments, deprecated_push_return_address,
5036 deprecated_pop_frame, deprecated_store_struct_return,
5037 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5038 frameless_function_invocation, deprecated_frame_saved_pc,
5039 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5040 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5041 deprecated_init_frame_pc and virtual_frame_pointer. Call
5042 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5043 and x86_64_frame_p. Call frame_base_set_default to register
5044 x86_64_frame_base.
5045 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5046 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5047 (_initialize_x86_64_tdep): Remove function.
5048 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5049 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5050 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5051 define.
5052 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5053 (x86_64_linux_sigcontext_addr): Rewrite.
5054 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5055 x86_64_linux_frame_saved_pc): Remove functions.
5056 (x86_64_linux_pc_in_sigtramp): Renamed from
5057 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5058 trampoline.
5059 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5060 Remove_functions.
5061 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5062 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5063 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5064 (x86_64_regmap): Rename to regmap.
5065 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5066 x86_64_num_gregs.
5067 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5068 x86_64_regmap.
5069 (x86_64_fxsave_offset): Remove function.
5070 (supply_fpregset): Simply call x86_64_supply_fxsave.
5071 (fill_fpregset): Simply call x86_64_fill_fxsave.
5072 (fetch_inferior_registers, store_inferior_registers): Avoid
5073 asignment in if-statement.
5074 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5075 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5076 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5077 (fetch_core_registers): Remove function.
5078 (linux_elf_core_fns): Remove.
5079 (offsetoff): Don't define.
5080 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5081 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5082 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5083 add core-regset.o.
5084 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5085 protection against multiple includes instead of NM_X86_64_h. Add
5086 various comments. Include "config/nm-linux.h". Don't include
5087 <signal.h>.
5088 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5089 GET_THREAD_SIGNALS): Remove defines.
5090 (x86_64_register_u_addr, kernel_u_size,
5091 lin_thread_get_thread_signals): Remove prototypes.
5092 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5093 [HAVE_LINK_H]: Don't include "solib.h".
5094 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5095 * config/i386/tm-x86-64linux.h: Fix comments.
5096 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5097 x86-64-tdep.o): Update dependencies.
5098
c25083af
AC
50992003-05-30 Andrew Cagney <cagney@redhat.com>
5100
c8f55a7b
AC
5101 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5102 Change parameter type to a "struct regcache *".
5103
c25083af
AC
5104 * gdbarch.sh: Regardless of the multi-arch level, always define
5105 the macro when not already defined.
5106 * gdbarch.h, gdbarch.c: Re-generate.
5107
fbe586ae
RH
51082003-05-30 Richard Henderson <rth@redhat.com>
5109
5110 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5111 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5112 (alpha_mdebug_frame_this_id): Likewise.
5113 (alpha_mdebug_frame_prev_register): Likewise.
5114 (alpha_mdebug_frame_base_address): Likewise.
5115 (alpha_mdebug_frame_locals_address): Likewise.
5116 (alpha_mdebug_frame_args_address): Likewise.
5117 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5118 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5119 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5120 loop increment.
5121 (alpha_heuristic_frame_this_id): Make static.
5122 (alpha_heuristic_frame_prev_register): Likewise.
5123 (alpha_heuristic_frame_base_address): Likewise.
5124 * alpha-tdep.h: Update.
5125
acd5c798
MK
51262003-05-30 Mark Kettenis <kettenis@gnu.org>
5127
5128 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5129 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5130 defenitions.
5131 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5132 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5133 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5134 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5135 I386_ST0_REGNUM): New defines.
5136 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5137 codestream_get): Remove define.
5138 (codestream_next_addr, condestream_addr, condestream_buf,
5139 codestream_off, codestream_cnt): Remove variables.
5140 (codestream_fill, codestream_seek, codestream_read): Remove
5141 functions.
5142 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5143 functionality.
5144 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5145 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5146 i386_frame_saved_pc, i386_saved_pc_after_call,
5147 i386_frame_num_args, i386_frame_init_saved_regs,
5148 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5149 i386_push_arguments): Remove functions.
5150 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5151 functionality. Use i386_analyze_prologue instead of
5152 i386_get_frame_setup.
5153 (I386_NUM_SAVED_REGS): New define.
5154 (struct i386_frame_cache): New structure.
5155 (i386_alloc_frame_cache, i386_analyze_struct_return,
5156 i386_skip_probe, i386_analyze_frame_setup,
5157 i386_analyze_register_saves, i386_analyze_prologue,
5158 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5159 i386_frame_prev_register, i386_sigtramp_frame_cache,
5160 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5161 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5162 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5163 New functions.
5164 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5165 New variables.
5166 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5167 I386_EAX_REGNUM and I386_EDX_REGNUM.
5168 (i386_extract_return_value, i386_store_return_value): Use
5169 I386_ST0_REGNUM where appropriate.
5170 (i386_extract_struct_value_address): Rewrite to use extract_address.
5171 (i386_svr4_pc_in_sigtramp): Add comment.
5172 (i386_svr4_sigcontext_addr): Rewrite.
5173 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5174 TDEP->sc_sp_offset.
5175 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5176 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5177 of new defines. Set push_dummy_call, don't set
5178 deprecated_push_arguments, deprecated_push_return_address,
5179 deprecated_pop_frame. Don't set parm_boundary. Don't set
5180 deprecated_frame_chain, deprecated_frame_saved_pc,
5181 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5182 save_dummy_frame_tos, unwind_pc. Call
5183 frame_unwind_append_predicate and frame_base_set_default. Don't
5184 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5185 Don't set frameless_function_invocation. Don't set
5186 deprecated_register_bytes, deprecated_register_size,
5187 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5188 * i386-linux-tdep.c: Fix formatting in some comments.
5189 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5190 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5191 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5192 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5193 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5194 redundant parentheses.
5195 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5196 (i386_linux_sigcontext_addr): Use it. Rewrite.
5197 (find_minsym_and_objfile): Change name of second argument.
5198 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5199 changed. Use frame_pc_unwind instead of
5200 DEPRECATED_SAVED_PC_AFTER_CALL.
5201 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5202 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5203 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5204 unwinder.
5205 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5206 "dummy-frame.h".
5207 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5208 (_initialize_i386_cygwin_tdep): New prototype.
5209 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5210 deprecated_frame_chain_valid.
5211 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5212 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5213 Rely on the SVR4 defaults.
5214 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5215 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5216
c89b70f1
AC
52172003-05-30 Andrew Cagney <cagney@redhat.com>
5218
5219 * infcall.c (call_function_by_hand): Always call
5220 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5221
85b32d22
RH
52222003-05-30 Richard Henderson <rth@redhat.com>
5223
c89b70f1
AC
5224 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5225 increment.
85b32d22 5226
bfe51b1e
JB
52272003-05-29 Jim Blandy <jimb@redhat.com>
5228
5229 Use gdbarch methods for solib stuff on PowerPC Linux.
5230 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5231 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5232 show through.
5233 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5234 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5235 giving the same effect as the #definitions above.
5236
1abf022c
AF
52372003-05-29 Adam Fedor <fedor@gnu.org>
5238
5239 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5240 (find_implementation_from_class): Replace it with the standard
5241 case i.e. do nothing.
5242
d2427a71
RH
52432003-05-29 Richard Henderson <rth@redhat.com>
5244
5245 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5246 (alpha_linux_sigtramp_offset): Use it. Make static.
5247 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5248 update for new frame model.
5249 * alpha-mdebug-tdep.c: New file.
5250 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5251 (alpha_osf1_init_abi): Install it.
5252 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5253 (linked_proc_desc_table): Remove.
5254 (alpha_frame_past_sigtramp_frame): Remove.
5255 (alpha_dynamic_sigtramp_offset): Remove.
5256 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5257 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5258 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5259 (push_sigtramp_desc): Remove.
5260 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5261 (alpha_cannot_store_register): Likewise.
5262 (alpha_sigcontext_addr): Remove.
5263 (alpha_find_saved_regs): Remove.
5264 (alpha_frame_init_saved_regs): Remove.
5265 (alpha_init_frame_pc_first): Remove.
5266 (read_next_frame_reg): Remove.
5267 (alpha_frame_saved_pc): Remove.
5268 (alpha_saved_pc_after_call): Remove.
5269 (temp_proc_desc, temp_saved_regs): Remove.
5270 (alpha_about_to_return): Remove.
5271 (cached_proc_desc): Remove.
5272 (alpha_frame_chain): Remove.
5273 (alpha_print_extra_frame_info): Remove.
5274 (alpha_init_extra_frame_info): Remove.
5275 (alpha_frame_locals_address): Remove.
5276 (alpha_frame_args_address): Remove.
5277 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5278 (alpha_push_dummy_frame): Remove.
5279 (alpha_pop_frame): Remove.
5280 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5281 (alpha_read_insn): New.
5282 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5283 for different insn encodings.
5284 (alpha_in_lenient_prologue): Remove.
5285 (struct alpha_sigtramp_unwind_cache): New.
5286 (alpha_sigtramp_frame_unwind_cache): New.
5287 (alpha_sigtramp_register_address): New.
5288 (alpha_sigtramp_frame_this_id): New.
5289 (alpha_sigtramp_frame_prev_register): New.
5290 (alpha_sigtramp_frame_unwind): New.
5291 (alpha_sigtramp_frame_p): New.
5292 (struct alpha_heuristic_unwind_cache): New.
5293 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5294 don't count nop insns that occur between functions.
5295 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5296 heuristic_proc_desc, but without the mdebug wrapping.
5297 (alpha_heuristic_frame_this_id): New.
5298 (alpha_heuristic_frame_prev_register): New.
5299 (alpha_heuristic_frame_unwind): New.
5300 (alpha_heuristic_frame_p): New.
5301 (alpha_heuristic_frame_base_address): New.
5302 (alpha_heuristic_frame_base): New.
5303 (alpha_unwind_dummy_id): New.
5304 (alpha_unwind_pc): New.
5305 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5306 frame related deprecated initializations; install replacements.
5307 (alpha_dump_tdep): Remove.
5308 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5309 (alpha_read_insn, alpha_after_prologue,
5310 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5311 alpha_heuristic_frame_prev_register,
5312 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5313 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5314 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5315 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5316
93ec1121
AC
53172003-05-29 Andrew Cagney <cagney@redhat.com>
5318
5319 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5320 dependant on the availability of ASSERT_FUNCTION.
5321 (ASSERT_FUNCTION): Do not define when there is no function name.
5322
98f08d3d
KB
53232003-05-29 Kevin Buettner <kevinb@redhat.com>
5324
5325 From Jimi X <jimix@watson.ibm.com>:
5326 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5327
0897f59b
JB
53282003-05-28 Jim Blandy <jimb@redhat.com>
5329
5330 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5331 argument to ptrace to int; the system headers should give it the
5332 right type, and pointers don't fit in ints on powerpc64-*-*.
5333
14898363
L
53342003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5335
5336 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5337 DW_TAG_catch_block.
5338
a7a48797
EZ
53392003-05-26 Elena Zannoni <ezannoni@redhat.com>
5340
5341 * stabsread.c (dbx_lookup_type): Make static.
5342 (read_type): Ditto.
5343 (add_undefined_type): Ditto.
5344 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5345 not export.
5346
f5479e9c
EZ
53472003-05-26 Elena Zannoni <ezannoni@redhat.com>
5348
5349 * hpread.c (hpread_has_name): Make static.
5350 (hpread_psymtab_to_symtab): Ditto.
5351 (file_exists): Ditto.
5352 (hpread_call_pxdb): Ditto.
5353 (hpread_pxdb_needed): Ditto.
5354 (hpread_quick_traverse): Ditto.
5355 (hpread_get_header): Ditto.
5356 (hpread_get_lntt): Ditto.
5357 (hpread_get_slt): Ditto.
5358 (class_of): Ditto.
5359
eb2e12d7
AS
53602003-05-25 Andreas Schwab <schwab@suse.de>
5361
78bf922a
AS
5362 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5363 stack_align and deprecated_extra_stack_alignment_needed.
5364 (m68k_stack_align): Delete.
5365
eb2e12d7
AS
5366 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5367 (m68k_register_virtual_size): Likewise.
5368 (altos_skip_prologue): Remove obsolete function.
5369 (isi_frame_num_args): Likewise.
5370 (news_frame_num_args): Likewise.
5371 (m68k_fix_call_dummy): Make static.
5372 (m68k_push_dummy_frame): Likewise.
5373 (m68k_pop_frame): Likewise.
5374 (m68k_skip_prologue): Likewise.
5375 (m68k_frame_init_saved_regs): Likewise.
5376 (m68k_saved_pc_after_call): Likewise.
5377 (m68k_get_longjmp_target): Make multi-arch.
5378 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5379 structure. Register m68k_get_longjmp_target if enabled.
5380 * m68k-tdep.h (struct gdbarch_tdep): Define.
5381 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5382
5383 * Makefile.in (config.status): Also depend on configure.tgt
5384 and configure.host.
5385 (m68klinux-tdep.o): Update dependencies.
5386 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5387 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5388 (M68K_LINUX_JB_PC): Define.
5389 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5390 and take additional parameter.
5391 (m68k_linux_sigtramp_saved_pc): Update.
5392 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5393 m68k_linux_pc_in_sigtramp, in_plt_section,
5394 find_solib_trampoline_target.
5395 * config/m68k/tm-linux.h: Don't include any tm headers.
5396 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5397 (JB_ELEMENT_SIZE): Likewise.
5398 (JB_PC): Likewise.
5399 (GET_LONGJMP_TARGET): Likewise.
5400 (IN_SIGTRAMP): Likewise.
5401 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5402
eb2c22dc
MK
54032003-05-25 Mark Kettenis <kettenis@gnu.org>
5404
5405 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5406 (sparc32_push_arguments): Re-implement by calling
5407 sparc32_do_push_arguments.
5408
44b7b84e
MK
54092003-05-25 Mark Kettenis <kettenis@gnu.org>
5410
5411 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5412 SPARC_O1_REGNUM): New defines.
5413 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5414 (sparc32_store_return_value): New function.
5415 (sparc_extract_struct_value_address): Rewrite to operate on a
5416 regcache.
5417 (sparc_gdbarch_init): Don't set
5418 deprecated_extract_struct_value_address. Set
5419 extract_struct_value_address instead. Don't set
5420 deprecated_extract_return_value and deprecated_store_return_value
5421 for 32-bit targets. Set extract_return_value and
5422 store_return_value instead.
5423 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5424 DEPRECTAED_EXTRACT_RETURN_VALUE,
5425 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5426 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5427 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5428 (sparc_store_return_value): Remove prototype.
5429 (sparc32_store_return_value): New prototype.
5430 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5431 Adjust prototypes.
5432
f6ad61e3
MK
54332003-05-24 Mark Kettenis <kettenis@gnu.org>
5434
5435 * sparcnbsd-tdep.c: Include "gdb_string.h".
5436
b276f1bb
AC
54372003-05-23 Andrew Cagney <cagney@redhat.com>
5438
5439 * p-valprint.c (pascal_val_print): Replace extract_address with
5440 the inline equivalent extract_unsigned_integer.
5441 * jv-valprint.c (java_value_print): Ditto.
5442 * ada-valprint.c (ada_val_print_1): Ditto.
5443 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5444
e76c5fcc
TR
54452003-05-23 Theodore A. Roth <troth@openavr.org>
5446
5447 * blockframe.c (frameless_look_for_prologue): Remove unused
5448 after_prologue variable.
5449
2cdd89cb
MK
54502003-05-23 Mark Kettenis <kettenis@gnu.org>
5451
5452 * blockframe.c (get_pc_function_start): Rewrite to avoid
5453 asignments in if-statements.
5454
182d43bc
EZ
54552003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5456
5457 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5458 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5459 files, don't relocate absolute symbols (and do use mst_abs).
5460
e8f3fcdd
AC
54612003-05-23 Andrew Cagney <cagney@redhat.com>
5462
5463 * objc-lang.c: Include "gdb_assert.h".
5464 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5465 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5466 (gdb_check, gdb_check_fatal): Delete functions.
5467 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5468 gdb_assert.
5469 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5470 * Makefile.in (objc-lang.o): Update dependencies.
5471
3c23e6fb
ILT
54722003-05-22 Ian Lance Taylor <ian@airs.com>
5473
5474 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5475 with fprintf_filtered, not fprintf_unfiltered.
5476
af1342ab
AC
54772003-05-22 Andrew Cagney <cagney@redhat.com>
5478
5479 * stack.c (frame_info): Inline extract_address, replacing it with
5480 extract_unsigned_integer.
5481 * findvar.c (unsigned_pointer_to_address): Ditto.
5482 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5483 * dwarf2expr.c (dwarf2_read_address): Ditto.
5484 * frame.c (frame_pc_unwind): Update comment.
5485 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5486
47e242ec
JJ
54872003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5488
5489 * infptrace.c (detach): Call print_sys_errmsg rather than
5490 perror_with_name to issue warning message when errno is non-zero
5491 after calling ptrace detach.
5492
e2ac8128
JB
54932003-05-21 J. Brobecker <brobecker@gnat.com>
5494
5495 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5496 macro definitions from here...
5497 * hppa-tdep.c: ...to there.
5498
92b3541e
KB
54992003-05-20 Kevin Buettner <kevinb@redhat.com>
5500
5501 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5502 register_ptrace_addr(). Fix all callers.
5503
55809acb
AS
55042003-05-21 Andreas Schwab <schwab@suse.de>
5505
5506 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5507 dependencies.
5508 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5509 end.
5510 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5511 (_initialize_m68k_linux_tdep): New function.
5512 (m68k_linux_frame_saved_pc): Make static.
5513 (m68k_linux_extract_return_value): Likewise.
5514 (m68k_linux_store_return_value): Likewise.
5515 (m68k_linux_extract_struct_value_address): Likewise.
5516 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5517 Remove.
5518 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5519 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5520 (DEPRECATED_FRAME_SAVED_PC): Remove.
5521
0fbc10f7
KW
55222003-05-20 Kris Warkentin <kewarken@qnx.com>
5523
5524 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5525 regset numbering rather than our own.
5526
58da2eb2
DC
55272003-05-19 David Carlton <carlton@bactrian.org>
5528
5529 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5530
1fcb5155
DC
55312003-05-19 David Carlton <carlton@bactrian.org>
5532
5533 Partial fix for PR c++/827.
5534 * cp-support.h: Include symtab.h.
5535 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5536 * cp-namespace.c: Update contributors.
5537 (cp_lookup_symbol_nonlocal): New.
5538 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5539 (lookup_symbol_file): Ditto.
5540 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5541 * block.h: Declare block_scope, block_using, block_global_block.
5542 * block.c (block_scope): New.
5543 (block_using, block_global_block): Ditto.
5544 * Makefile.in (cp_support_h): Depend on symtab_h.
5545 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5546
5f9a71c3
DC
55472003-05-19 David Carlton <carlton@bactrian.org>
5548
5549 * language.h (struct language_defn): Add 'la_value_of_this'
5550 and 'la_lookup_symbol_nonlocal' members.
5551 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5552 lookup_symbol_static, lookup_symbol_global,
5553 lookup_symbol_aux_block.
5554 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5555 if we should search fields of this and how to do static/global
5556 lookup.
5557 (lookup_symbol_aux_block): Make extern.
5558 (basic_lookup_symbol_nonlocal): New.
5559 (lookup_symbol_static, lookup_symbol_global): Ditto.
5560 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5561 'la_lookup_symbol_nonlocal' members.
5562 * c-lang.c (c_language_defn, cplus_language_defn)
5563 (asm_language_defn, minimal_language_defn): Ditto.
5564 * jv-lang.c (java_language_defn): Ditto.
5565 * language.c (unknown_language_defn, auto_language_defn)
5566 (local_language_defn): Ditto.
5567 * m2-lang.c (m2_language_defn): Ditto.
5568 * objc-lang.c (objc_language_defn): Ditto.
5569 * scm-lang.c (scm_language_defn): Ditto.
5570 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5571 * p-lang.c (pascal_language_defn): Ditto for both.
5572 * Makefile.in (f-lang.o): Depend on value_h.
5573 (p-lang.o): Ditto.
5574
89a9d1b1
DC
55752003-05-19 David Carlton <carlton@bactrian.org>
5576
5577 * block.h: Declare block_static_block.
5578 * block.c (block_static_block): New.
5579 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5580 lookup_symbol_aux_local, calling block_static_block instead.
5581 (lookup_symbol_aux_local): Delete 'static_block' argument.
5582
eed3f8ab
DC
55832003-05-19 David Carlton <carlton@bactrian.org>
5584
5585 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5586
a09d8bda
ML
55872003-05-19 Michal Ludvig <mludvig@suse.cz>
5588
5589 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5590 register numbers mapping.
5591
69636828
AF
55922003-05-18 Adam Fedor <fedor@gnu.org>
5593
5594 * symtab.c (completion_list_objc_symbol): New function.
5595 (make_symbol_completion_list): Use it to add ObjC symbols
5596 when looking though the list.
5597 (language_search_unquoted_string): New function.
5598 (make_file_symbol_completion_list): Use it.
5599
55baeb84
AS
56002003-05-18 Andreas Schwab <schwab@suse.de>
5601
d0b45d99
AS
5602 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5603 dependencies.
5604 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5605 as m68k_linux_extract_return_value.
5606 (DEPRECATED_STORE_RETURN_VALUE): Define as
5607 m68k_linux_store_return_value.
5608 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5609 m68k_linux_extract_struct_value_address.
5610 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5611 get_next_frame, get_frame_base, get_frame_pc.
5612 (m68k_linux_frame_saved_pc): Use get_frame_base.
5613 (m68k_linux_extract_return_value): New function.
5614 (m68k_linux_store_return_value): New function.
5615 (m68k_linux_extract_struct_value_address): New function.
5616 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5617
55baeb84
AS
5618 * c-exp.y (typebase): Remove duplicate occurence of
5619 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5620 of lookup_signed_typename.
55baeb84 5621
b6b08ebf
MK
56222003-05-18 Mark Kettenis <kettenis@gnu.org>
5623
5624 * dwarf2loc.c (find_location_expression): Change type of second
5625 argument to `size_t *'.
5626 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5627 for size variable.
5628
5ad1c190
DC
56292003-05-18 David Carlton <carlton@bactrian.org>
5630
5631 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5632 'linkage_name'. Add comment.
5633 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5634 'linkage_name'.
5635 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5636 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5637 (lookup_block_symbol): Ditto.
5638
b8b527c5
AC
56392003-05-16 Andrew Cagney <cagney@redhat.com>
5640
5641 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5642 * gdbarch.h, gdbarch.c: Re-generate.
5643 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5644 * TODO (REGISTER_BYTES): Delete reference.
5645 * alpha-tdep.c (alpha_gdbarch_init): Update.
5646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5647 * x86-64-tdep.c (x86_64_init_abi): Update.
5648 * vax-tdep.c (vax_gdbarch_init): Update.
5649 * v850-tdep.c (v850_gdbarch_init): Update.
5650 * sparc-tdep.c (sparc_gdbarch_init): Update.
5651 * sh-tdep.c (sh_gdbarch_init): Update.
5652 * s390-tdep.c (s390_gdbarch_init): Update.
5653 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5654 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5655 (ns32k_gdbarch_init_32382): Update.
5656 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5657 * mcore-tdep.c (mcore_gdbarch_init): Update.
5658 * m68k-tdep.c (m68k_gdbarch_init): Update.
5659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5660 * ia64-tdep.c (ia64_gdbarch_init): Update.
5661 * i386-tdep.c (i386_gdbarch_init): Update.
5662 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5663 * hppa-tdep.c (hppa_gdbarch_init): Update.
5664 * h8300-tdep.c (h8300_gdbarch_init): Update.
5665 * frv-tdep.c (frv_gdbarch_init): Update.
5666 * cris-tdep.c (cris_gdbarch_init): Update.
5667 * avr-tdep.c (avr_gdbarch_init): Update.
5668 * arm-tdep.c (arm_gdbarch_init): Update.
5669 * sparc-tdep.c (sparc_pop_frame): Update.
5670 * rs6000-tdep.c (rs6000_pop_frame): Update.
5671 * remote.c (init_remote_state): Update.
5672 (remote_prepare_to_store): Update.
5673 * remote-vx.c (vx_prepare_to_store): Update.
5674 * remote-sds.c (sds_fetch_registers): Update.
5675 (sds_prepare_to_store): Update.
5676 * remote-array.c: Update.
5677 * regcache.c (init_legacy_regcache_descr): Update.
5678 (init_regcache_descr): Update.
5679 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5680 (mips_o64_extract_return_value): Update.
5681 * irix5-nat.c (fetch_core_registers): Update.
5682 * irix4-nat.c (fetch_core_registers): Update.
5683 * i386-tdep.h: Update.
5684 * hppa-tdep.c (pa_do_registers_info): Update.
5685 (pa_do_strcat_registers_info): Update.
5686 * cris-tdep.c (cris_register_bytes_ok): Update.
5687 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5688 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5689 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5690 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5691 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5692 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5693 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5694 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5695 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5696 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5697 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5698 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5699 (REGISTER_BYTES_OK): Update.
5700 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5701 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5702
ee2842e2
ILT
57032003-05-16 Ian Lance Taylor <ian@airs.com>
5704
5705 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5706 (vax_print_insn, print_insn_arg): Remove static functions.
5707 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5708 print_insn_vax from opcodes library.
5709 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5710
973177d3
AC
57112003-05-15 Andrew Cagney <cagney@redhat.com>
5712
aaab4dba
AC
5713 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5714 * target.h (memory_breakpoint_from_pc): Delete declaration.
5715 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5716 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5717 * monitor.c (monitor_insert_breakpoint): Use
5718 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5719 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5720 * gdbarch.h, gdbarch.c: Re-generate.
5721 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5722 (sparc_gdbarch_init): Set breakpoint_from_pc to
5723 sparc_breakpoint_from_pc.
5724 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5725 (BREAKPOINT_FROM_PC): Define.
5726 (sparc_breakpoint_from_pc): Declare.
5727 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5728 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5729 (BREAKPOINT_FROM_PC): Define.
5730 (BREAKPOINT): Delete macro.
5731 * target.h: Update comment.
5732 * s390-tdep.c (s390_gdbarch_init): Update comments.
5733 * remote.c: Update comments.
5734 * remote-mips.c: Update comments.
5735 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5736 * mem-break.c: Update comment.
5737 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5738 (ia64_memory_insert_breakpoint): Update.
5739 * config/sparc/tm-sparc.h: Update comment.
5740 * config/pa/tm-hppa64.h: Update comment.
5741 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5742 (rs6000_breakpoint_from_pc): Update.
5743 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5744 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5745 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5746 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5747 (mips_breakpoint_from_pc): Update.
5748 (mips_dump_tdep): Update.
5749
e06963ff
AC
5750 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5751 * minsyms.c (lookup_minimal_symbol): Inline
5752 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5753
973177d3
AC
5754 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5755 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5756 * p-lang.c (pascal_printstr): Ditto.
5757 * objc-lang.c (objc_printstr): Ditto.
5758 * m2-lang.c (m2_printstr): Ditto.
5759 * jv-valprint.c (java_print_value_fields): Ditto.
5760 * f-lang.c (f_printstr): Ditto.
5761 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5762 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5763 for repeat_count_threshold.
5764 * Makefile.in (cp-valprint.o): Update dependencies.
5765
5ea2bd7f 57662003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5767
5ea2bd7f
JJ
5768 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5769 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5770 they start with mov r2,r12. Support skipping over indirect stores
5771 of the input registers. Upon hitting a non-nop branch instruction
5772 or predicated instruction, bail out by setting lim_pc to the current
5773 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5774 beyond our calculated value and we have trust_limit set,
5775 use the lim_pc value.
5776
cc8c88f3
AC
57772003-05-15 Andrew Cagney <cagney@redhat.com>
5778
5779 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5780 generic_find_dummy_frame.
5781 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5782 (deprecated_generic_find_dummy_frame): Update.
5783 (deprecated_read_register_dummy): Update.
5784 * frame.c (deprecated_generic_get_saved_register): Update.
5785
909cd28e
TR
57862003-05-15 Theodore A. Roth <troth@openavr.org>
5787
5788 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5789 (avr_gdbarch_init): Set breakpoint_from_pc method.
5790
b923b08d
AC
57912003-05-15 Andrew Cagney <cagney@redhat.com>
5792
5793 * regcache.c (build_regcache): Set deprecated_register_valid
5794 directly.
5795 (deprecated_grub_regcache_for_register_valid): Delete function.
5796 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5797 declaration.
5798
ae2f03ac 57992003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5800
5801 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5802 * symtab.c (lookup_symbol_aux): Delete calls to
5803 lookup_symbol_aux_minsyms.
5804 (lookup_symbol_aux_minsyms): Comment out function and
5805 prototype. Delete lookup by mangled name.
ae2f03ac 5806
18ec9831
KB
58072003-05-14 Kevin Buettner <kevinb@redhat.com>
5808
5809 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5810 correctly indicate an empty stack and ``stack_allocated'' to the
5811 indicate the number of elements initially allocated.
5812 (dwarf_expr_grow_stack): Simplify method for computing new
5813 stack size. Don't loop infinitely if ``stack_len'' is zero.
5814 (execute_stack_op): Move ``ctx->in_reg'' initialization
5815 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5816 be used in conjuction with DW_OP_piece. Revise error message
5817 accordingly.
5818
de18ac1f
TR
58192003-05-14 Theodore A. Roth <troth@openavr.org>
5820
5821 * MAINTAINERS: Update my email address.
5822 * avr-tdep.c: Ditto.
5823
176620f1
EZ
58242003-05-14 Elena Zannoni <ezannoni@redhat.com>
5825
5826 * symtab.h (enum domain_enum): Rename from namespace_enum.
5827 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5828 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5829 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5830 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5831 TYPES_NAMESPACE, METHODS_NAMESPACE.
5832 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5833 (struct symbol, struct partial_symbol): Rename field
5834 'namespace_enum namespace' to 'domain_enum domain'.
5835 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5836 Delete old define kludge for namespace.
5837
5838 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5839 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5840 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5841 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5842 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5843 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5844 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5845 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5846 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5847 occurrences of the above.
5848
b7f31508
ILT
58492003-05-14 Ian Lance Taylor <ian@airs.com>
5850
5851 * Makefile.in (install-only): Use $(SHELL) when running
5852 mkinstalldirs.
5853
2fdbdd39
ILT
58542003-05-13 Ian Lance Taylor <ian@airs.com>
5855
a208d82c
ILT
5856 * MAINTAINERS (write after approval): Add myself.
5857
2fdbdd39
ILT
5858 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5859 second and third arguments.
5860 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5861 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5862
fbd9dcd3
AC
58632003-05-13 Andrew Cagney <cagney@redhat.com>
5864
5865 * defs.h (store_address): Delete declaration.
5866 findvar.c (store_address): Delete function.
5867 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5868 store_unsigned_integer.
5869 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5870 * v850-tdep.c (v850_push_arguments): Ditto.
5871 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5872 * sh-tdep.c (sh64_get_saved_register): Ditto.
5873 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5874 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5875 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5876 (mips_get_saved_register): Ditto.
5877 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5878 (find_func_descr, ia64_push_arguments): Ditto.
5879 * i386-tdep.c (i386_push_arguments): Ditto.
5880 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5881 * frv-tdep.c (frv_push_arguments): Ditto.
5882 * frame.c (legacy_saved_regs_prev_register): Ditto.
5883 (deprecated_generic_get_saved_register): Ditto.
5884 * findvar.c (unsigned_address_to_pointer): Ditto.
5885 * dwarf2read.c (dwarf2_const_value): Ditto.
5886 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5887 * alpha-tdep.c (alpha_push_arguments): Ditto.
5888
6760f9e6
JB
58892003-05-12 J. Brobecker <brobecker@gnat.com>
5890
5891 * NEWS: Mention that the hppa-hpux port has been partially
5892 multiarched (32bit ABIT only, so far).
5893
30e221b4
AC
58942003-05-11 Andrew Cagney <cagney@redhat.com>
5895
5896 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5897 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5898 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5899 sim/testsuite/sim/arm/misaligned2.ms, and
5900 sim/testsuite/sim/arm/misaligned3.ms.
5901 * disasm.h (struct ui_file): Add opaque struct declaration.
5902 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5903 * frame.h (struct ui_file): Ditto.
5904
dea7f9ba
MK
59052003-05-11 Mark Kettenis <kettenis@gnu.org>
5906
5907 * value.h: Pretty print.
5908
01986c48
MK
59092003-05-10 Mark Kettenis <kettenis@gnu.org>
5910
5911 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5912
123a958e
AC
59132003-05-08 Andrew Cagney <cagney@redhat.com>
5914
5915 * regcache.h (max_register_size): Delete declaration.
5916 * regcache.c (max_register_size): Delete function.
5917 (struct regcache_descr): Delete field "max_register_size".
5918 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5919 registers fit in MAX_REGISTER_SIZE.
5920 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5921 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5922 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5923 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5924 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5925 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5926 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5927 * dve3900-rom.c, hppa-tdep.c: Ditto.
5928
eb294659
DC
59292003-05-08 David Carlton <carlton@math.stanford.edu>
5930
5931 * valops.c (push_word): Fix typo.
5932
d9d9c31f
AC
59332003-05-08 Andrew Cagney <cagney@redhat.com>
5934
5935 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5936 * gdbarch.h: Re-generate.
5937 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5938 (legacy_max_register_raw_size): Delete declaration.
5939 * regcache.c (legacy_max_register_raw_size): Delete function.
5940 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5941 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5942 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5943 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5944 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5945 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5946 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5947 * findvar.c, dwarf2cfi.c: Ditto.
5948
22540ece
AC
59492003-05-08 Andrew Cagney <cagney@redhat.com>
5950
5951 * mips-tdep.c (read_signed_register): New function, moved to here
5952 from "regcache.c".
5953 (read_signed_register_pid): Ditto.
5954 * regcache.c (read_signed_register_pid): Delete function, moved to
5955 "mips-tdep.c".
5956 (read_signed_register): Ditto.
5957 * regcache.h (read_signed_register): Delete declaration.
5958 (read_signed_register_pid): Delete declaration.
5959
0c92afe8
AC
59602003-05-08 Andrew Cagney <cagney@redhat.com>
5961
5962 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5963 * gdbarch.h: Re-generate.
5964 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5965 (legacy_max_register_virtual_size): Delete declaration.
5966 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5967 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5968 * tracepoint.c (memrange_sortmerge): Ditto.
5969 * sparc-tdep.c (sparc_print_registers): Ditto.
5970 * regcache.c (legacy_max_register_virtual_size): Delete function.
5971
6037b830
JB
59722002-05-08 J. Brobecker <brobecker@gnat.com>
5973
5974 * fork-child.c (escape_bang_in_quoted_argument): New function.
5975 (fork_inferior): Escape '!' characters in quoted arguments
5976 only when needed.
5977
5d62c8b1
JB
59782003-05-08 J. Brobecker <brobecker@gnat.com>
5979
5980 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5981 the language of the CU is not currently supported by GDB.
5982
20a0e81d
JB
59832003-05-08 J. Brobecker <brobecker@gnat.com>
5984
5985 * defs.h (language): Add language_minimal enum value.
5986 * c-lang.c (minimal_language_defn): New language definition.
5987 (_initialize_c_language): Add the new minimal language to the list
5988 of languages known to GDB.
5989
710ee10a
KB
59902003-05-08 Kevin Buettner <kevinb@redhat.com>
5991
5992 * frame.c (get_frame_type): Don't attempt to lazily initialize
5993 frame's unwinder for legacy frames.
5994
1750fa04
AC
59952003-05-07 Andrew Cagney <cagney@redhat.com>
5996
5997 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5998 and "regcache" parameters.
5999 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6000
ddf9f258 60012003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6002
6003 * dwarf2read.c (dwarf_decode_lines): Only use output of
6004 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6005 the current address.
6006
87767c29
AC
60072003-05-07 Andrew Cagney <cagney@redhat.com>
6008
6009 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6010 code.
6011
5e7b2f39
JB
60122003-05-07 Jim Blandy <jimb@redhat.com>
6013
6014 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6015 'maint info symtabs' and 'maint info psymtabs'.
6016 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6017 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6018 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6019 Declarations updated.
6020 * maint.c (maintenance_list_command): Delete.
6021 (_initialize_maint_cmds): Update calls to add_cmd.
6022 * gdbcmd.h (maintenancelistlist): Delete declaration.
6023 * cli/cli-cmds.c (maintenancelistlist): Delete.
6024 (init_cmd_lists): Don't initialize it.
6025 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6026
f6684c31
AC
60272003-05-07 Andrew Cagney <cagney@redhat.com>
6028
6029 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6030 "regcache".
6031 (d10v_print_registers_info): Update.
6032 (d10v_dmap_register, d10v_imap_register): Delete functions.
6033 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6034 and "imap_register".
6035 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6036 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6037 * arch-utils.c (generic_remote_translate_xfer_address): Add
6038 "regcache" and "gdbarch" parameters.
6039 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6040 parameter. Change class to multi-arch.
6041 * gdbarch.h, gdbarch.c: Re-generate.
6042 * remote.c (remote_xfer_memory): Use
6043 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6044
e4846b08
JJ
60452003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6046
6047 * infrun.c (prev_pc): Move declaration ahead of proceed().
6048 (proceed): Refresh prev_pc value before resuming.
6049 (stop_stepping): Remove code to refresh prev_pc.
6050
6b71b8ac
KW
60512003-05-06 Kris Warkentin <kewarken@qnx.com>
6052
6053 * nto-tdep.c: Removed stray comment.
6054
47979a4b
KW
60552003-05-06 Kris Warkentin <kewarken@qnx.com>
6056
6057 * i386-nto-tdep.c: Fix old K&R function definitions.
6058 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6059 Also change add_show_from_set() call to add_setshow_cmd().
6060 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6061
00905d52
AC
60622003-05-05 Andrew Cagney <cagney@redhat.com>
6063
6064 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6065 (fprint_dummy_frames): New function.
6066 (maintenance_print_dummy_frames): New function.
6067 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6068 * frame.c (fprint_frame_id): Make global.
6069 * frame.h (fprint_frame_id): Declare.
6070 * Makefile.in (dummy-frame.o): Update dependencies.
6071
b1e29e33
AC
60722003-05-05 Andrew Cagney <cagney@redhat.com>
6073
6074 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6075 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6076 SIZEOF_CALL_DUMMY_WORDS.
6077 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6078 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6079 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6080 CALL_DUMMY_BREAKPOINT_OFFSET.
6081 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6082 CALL_DUMMY_START_OFFSET.
6083 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6084 * gdbarch.h, gdbarch.c: Re-generate.
6085 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6086 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6087 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6088 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6089 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6090 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6091 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6092 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6093 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6094 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6095 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6096 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6097 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6098 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6099 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6100
61012003-05-05 Kris Warkentin <kewarken@qnx.com>
6102
6103 * configure.tgt: Add i[3456]86-*-nto*.
6104 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6105 * nto-tdep.c: New file. Neutrino target support routines.
6106 * nto-tdep.h: New file. Neutrino target header.
6107 * config/tm-qnxnto.h: New file.
6108 * config/i386/i386nto.mt: New file.
6109 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6110
0ce3d317
AC
61112003-05-04 Andrew Cagney <cagney@redhat.com>
6112
6113 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6114 (load_infrun_state): Ditto.
6115 (struct thread_info): Drop "prev_func_name" field.
6116 * thread.c (load_infrun_state): Update.
6117 (save_infrun_state): Update.
6118 * infrun.c (prev_func_name): Delete variable.
6119 (init_wait_for_inferior): Do not clear prev_func_name.
6120 (stop_stepping, keep_going, context_switch): Do not swap
6121 prev_func_name.
6122 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6123 instead of PC_IN_SIGTRAMP.
6124
46654a5b
AC
61252003-05-04 Andrew Cagney <cagney@redhat.com>
6126
6127 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6128 REGISTER_BYTE with register_offset_hack.
6129 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6130 that REGISTER_BYTE is consistent with the regcache.
6131 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6132 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6133
14b08c1b
MK
61342003-05-04 Mark Kettenis <kettenis@gnu.org>
6135
04c8243f
MK
6136 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6137 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6138
14b08c1b
MK
6139 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6140
c7a11e01
JB
61412003-05-03 J. Brobecker <brobecker@gnat.com>
6142
6143 From Thierry Schneider <tpschneider1@yahoo.com>
6144 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6145 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6146 (mi-cmd-symbol.o): Add rule.
6147
7043d8dc
AC
61482003-05-03 Andrew Cagney <cagney@redhat.com>
6149
6150 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6151 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6152 * gdbarch.h, gdbarch.c: Re-generate.
6153 * d10v-tdep.c (d10v_push_dummy_code): New function.
6154 (d10v_gdbarch_init): Set push_dummy_code.
6155 * infcall.c (legacy_push_dummy_code): New function.
6156 (generic_push_dummy_code): New function.
6157 (push_dummy_code): New function.
6158 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6159 instead of dummy_addr, to push_dummy_call. Move call to
6160 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6161 switch.
6162 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6163
92bf2b80
AC
61642003-05-03 Andrew Cagney <cagney@redhat.com>
6165
6166 * disasm.h (print_insn): Declare.
6167 * disasm.c (init_gdb_disassemble_info): New function.
6168 (gdb_disassembly): Call init_gdb_disassemble_info.
6169 (gdb_print_insn): New function.
6170 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6171 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6172 * mcore-tdep.c: Include "disasm.h"
6173 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6174 * d10v-tdep.c: Include "disasm.h".
6175 (display_trace): Call gdb_print_insn, instead of print_insn.
6176 (print_insn): Delete function.
6177 * printcmd.c: Include "disasm.h".
6178 (print_insn): Delete function.
6179 (print_formatted): Call gdb_print_insn, instead of print_insn.
6180 * Makefile.in (printcmd.o): Update dependencies.
6181 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6182
27d94c49
AC
61832003-05-02 Andrew Cagney <cagney@redhat.com>
6184
82de1e5b
AC
6185 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6186 PC_REGNUM, re-indent.
6187 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6188 PC_REGNUM isn't set.
6189
27d94c49
AC
6190 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6191 * gdbarch.h, gdbarch.c: Re-generate.
6192 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6193 register_virtual_size, pc_regnum, or register_bytes.
6194 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6195 (d10v_register_type): Use D10V_PC_REGNUM.
6196 (d10v_print_registers_info, d10v_read_pc): Ditto.
6197 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6198 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6199
a9c0dc7f
DC
62002003-05-02 David Carlton <carlton@bactrian.org>
6201
6202 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6203 the name with mstrsave.
6204
e33d66ec
EZ
62052003-05-02 Elena Zannoni <ezannoni@redhat.com>
6206
6207 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6208 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6209 (host_charset_name, target_charset_name): New vars for use by
6210 set/show commands.
6211 (host_charset_enum, target_charset_enum): New enums for set/show
6212 commands.
6213 (set_charset_sfunc, set_host_charset_sfunc,
6214 set_target_charset_sfunc): New functions.
6215 (set_host_charset, set_target_charset): Make static.
6216 (list_charsets, set_host_charset_command,
6217 set_target_charset_command): Delete functions.
6218 (show_charset_command): Rewrite as....
6219 (show_charset): Hook this up with the set/show command mechanism.
6220 (_initialize_charset): Change names of charsets to match the
6221 set/show enums. Use host_charset_name and target_charset_name.
6222 Use set/show mechanism for charset, host-charset, target-charset
6223 commands. Do not make 'show host-charset' and 'show
6224 target-charset' be aliases of 'show charset'.
6225
6226 * charset.h (set_host_charset, set_target_charset): Don't export,
6227 they are not used outside the file.
6228
2b6fd0d8
AC
62292003-05-01 Andrew Cagney <cagney@redhat.com>
6230
6231 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6232 (gdb_disassembly): Make "di" non static, always initialize and
6233 cleanup. Always use dis_asm_read_memory.
6234 (gdb_dis_asm_read_memory): Delete function.
6235
6ae2f580
AC
62362003-05-01 Andrew Cagney <cagney@redhat.com>
6237
6238 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6239 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6240
810ecf9f
AC
62412003-04-30 Andrew Cagney <cagney@redhat.com>
6242
6243 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6244 "tm_print_insn_info".
6245 (TARGET_PRINT_INSN_INFO): Delete macro.
6246 (dis_asm_read_memory): Delete function declaration.
6247 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6248 (tm_print_insn_info): Delete variable definition.
6249 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6250 * gdbarch.h, gdbarch.c: Re-generate.
6251 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6252 "deprecated_tm_print_insn_info".
6253 * mcore-tdep.c (mcore_dump_insn): Ditto.
6254 * mips-tdep.c (mips_gdbarch_init): Ditto.
6255 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6256 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6257 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6258 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6259 instead of TARGET_PRINT_INSN_INFO, add comment.
6260 * s390-tdep.c (s390_get_frame_info): Instead of
6261 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6262 (s390_check_function_end, s390_is_sigreturn): Ditto.
6263 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6264 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6265 * disasm.c: Include "gdbcore.h".
6266 (_initialize_disasm): New function, initialize
6267 "deprecated_tm_print_insn_info".
6268 (deprecated_tm_print_insn_info): New variable.
6269 (dis_asm_read_memory): Moved from "corefile.c", made static.
6270 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6271 * Makefile.in (disasm.o): Update dependencies.
6272
07020390
AC
62732003-04-30 Andrew Cagney <cagney@redhat.com>
6274
6275 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6276
a9fa03de
AF
62772003-04-29 Adam Fedor <fedor@gnu.org>
6278
6279 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6280 * infcall.c (find_function_addr): Make non-static.
6281 * infcall.h (find_function_addr): Declare.
6282 * Makefile.in (eval.o): Update dependencies.
6283
1bae87b9
AF
62842003-04-28 Adam Fedor <fedor@gnu.org>
6285
6286 * symtab.c (symbol_find_demangled_name): Check for and demangle
6287 ObjC symbols.
6288 (symbol_init_demangled_name): Init for language_objc as well.
6289
0ba6dca9
AC
62902003-04-28 Andrew Cagney <cagney@redhat.com>
6291
6292 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6293 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6294 * gdbarch.h, gdbarch.c: Re-generate.
6295 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6296 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6297 * inferior.h (deprecated_read_fp): Rename read_fp.
6298 (generic_target_read_fp): Delete declaration.
6299 * regcache.c (generic_target_read_fp): Delete function.
6300 (deprecated_read_fp): Replace read_fp, use
6301 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6302 * d10v-tdep.c (d10v_read_fp): Delete function.
6303 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6304
6305 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6306 deprecated_target_read_fp to generic_target_read_fp.
6307 * sh-tdep.c (sh_gdbarch_init): Ditto.
6308 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6310 * frv-tdep.c (frv_gdbarch_init): Ditto.
6311
6312 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6313 deprecated_fp_regnum.
6314 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6315 * vax-tdep.c (vax_gdbarch_init): Ditto.
6316 * v850-tdep.c (v850_gdbarch_init): Ditto.
6317 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6318 * sh-tdep.c (sh_gdbarch_init): Ditto.
6319 * s390-tdep.c (s390_gdbarch_init): Ditto.
6320 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6322 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6323 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6325 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6326 * i386-tdep.c (i386_gdbarch_init): Ditto.
6327 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6328 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6329 * frv-tdep.c (frv_gdbarch_init): Ditto.
6330 * cris-tdep.c (cris_gdbarch_init): Ditto.
6331 * avr-tdep.c (avr_gdbarch_init): Ditto.
6332 * arm-tdep.c (arm_gdbarch_init): Ditto.
6333 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6334
6335 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6336 * v850-tdep.c (v850_gdbarch_init): Ditto.
6337 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6338 * sh-tdep.c (sh_gdbarch_init): Ditto.
6339 * s390-tdep.c (s390_gdbarch_init): Ditto.
6340 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6341 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6342 * mips-tdep.c (mips_gdbarch_init): Ditto.
6343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6344 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6345 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6346 * frv-tdep.c (frv_gdbarch_init): Ditto.
6347 * avr-tdep.c (avr_gdbarch_init): Ditto.
6348 * arm-tdep.c (arm_gdbarch_init): Ditto.
6349
6350 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6351 DEPRECATED_FP_REGNUM.
6352 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6353 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6354 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6355 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6356 (sparc32_register_virtual_type): Ditto.
6357 * sh-tdep.c (sh64_frame_chain): Ditto.
6358 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6359 (sh_nofp_frame_init_saved_regs): Ditto.
6360 (sh64_nofp_frame_init_saved_regs): Ditto.
6361 (sh_fp_frame_init_saved_regs): Ditto.
6362 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6363 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6364 * procfs.c (procfs_fetch_registers): Ditto.
6365 (procfs_store_registers): Ditto.
6366 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6367 (store_inferior_registers, fetch_core_registers): Ditto.
6368 (fetch_kcore_registers, clear_regs): Ditto.
6369 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6370 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6371 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6372 * nlm/i386.c (do_status): Ditto.
6373 * mipsv4-nat.c (supply_gregset): Ditto.
6374 * mips-tdep.c: Ditto for comments.
6375 * mips-nat.c (fetch_inferior_registers): Ditto.
6376 (store_inferior_registers, fetch_core_registers): Ditto.
6377 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6378 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6379 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6380 (i386_do_pop_frame, i386_register_type): Ditto.
6381 * hppa-tdep.c (hppa_frame_chain): Ditto.
6382 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6383 (hppa_pop_frame, hppa_read_fp): Ditto.
6384 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6385 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6386 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6387 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6388 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6389 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6390 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6391 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6392 * blockframe.c: Ditto for comments.
6393 * arch-utils.h: Ditto for comments.
6394 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6395 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6396 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6397 * alpha-tdep.h: Ditto for comments.
6398 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6399 (alpha_cannot_store_register): Ditto.
6400 (alpha_push_dummy_frame): Ditto.
6401 * alpha-nat.c (supply_gregset): Ditto.
6402
6403 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6404 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6405 * config/sparc/tm-sparc.h: Update comment.
6406
6407 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6408 deprecated_read_fp instead of TARGET_READ_FP.
6409 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6410 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6411 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6412 deprecated_read_fp instead of read_fp.
6413 * s390-tdep.c (s390_push_arguments): Ditto.
6414 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6415 * frame.h: Ditto in comments.
6416 * frame.c (legacy_get_prev_frame): Ditto.
6417 * dummy-frame.c (dummy_frame_this_id): Ditto.
6418 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6419
d7a27068
AC
64202003-04-28 Andrew Cagney <cagney@redhat.com>
6421
6422 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6423 * gdbarch.h, gdbarch.c: Re-generate.
6424 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6425 * vax-tdep.c (_initialize_vax_tdep): Update.
6426 * v850-tdep.c (_initialize_v850_tdep): Update.
6427 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6428 * s390-tdep.c (_initialize_s390_tdep): Update.
6429 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6430 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6431 * mips-tdep.c (_initialize_mips_tdep): Update.
6432 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6433 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6434 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6435 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6436 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6437 * frv-tdep.c (_initialize_frv_tdep): Update.
6438 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6439 (_initialize_cris_tdep): Update.
6440 * arch-utils.c (legacy_print_insn): Update.
6441 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6442
d2630e69
AF
64432003-04-26 Adam Fedor <fedor@gnu.org>
6444
6445 * linespec.c (decode_objc): New function to decode ObjC calls
6446 (decode_line_1): Check for ObjC calls (using decode_objc)
6447 * Makefile (linespec.o): Update dependencies.
6448
3086aeae
DJ
64492003-04-26 Daniel Jacobowitz <drow@mvista.com>
6450
6451 * breakpoint.h (struct breakpoint_ops): New.
6452 (struct breakpoint): Add ops member.
6453
6454 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6455 (mention): Use new breakpoint ops member.
6456 (set_raw_breakpoint): Initialize ops field to NULL.
6457 (print_exception_catchpoint, print_one_exception_catchpoint)
6458 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6459 (gnu_v3_exception_catchpoint_ops): New.
6460 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6461
1fbec6c3
AF
64622003-04-25 Adam Fedor <fedor@gnu.org>
6463
6464 * Makefile.in (COMMON_OBS): Add objc-lang.o
6465
0ef21242
AC
64662003-04-25 Andrew Cagney <cagney@redhat.com>
6467
6468 * d10v-tdep.c (print_insn): Delete function.
6469 (display_trace): Use TARGET_PRINT_INSN.
6470 (_initialize_d10v_tdep): Do not set tm_print_insn.
6471 (d10v_gdbarch_init): Set print_insn.
6472
f75493ed
AC
64732003-04-25 Andrew Cagney <cagney@redhat.com>
6474
6475 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6476 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6477 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6478 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6479 (nr_dmap_regs, a0_regnum): ... new functions.
6480 (d10v_print_registers_info): Use a0_regnum, use register_size.
6481 (d10v_register_byte): Delete function.
6482 (d10v_register_raw_size): Delete function.
6483 (d10v_register_type): Use a0_regnum.
6484 (d10v_print_registers_info): Use a0_regnum.
6485 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6486 (d10v_gdbarch_init): Do not set register_byte or
6487 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6488 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6489 extract_address.
6490 (trace_command): Use XCALLOC.
6491 (print_insn): Delete reference to tm_print_insn.
6492 (saved_regs_unwinder): Use store_unsigned_integer instead of
6493 store_address.
6494 * frame.h (FRAME_OBSTACK_CALLOC): Define
6495
2202b100
DC
64962003-04-25 David Carlton <carlton@bactrian.org>
6497
6498 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6499
4e45ca2e
AF
65002003-04-24 Adam Fedor <fedor@gnu.org>
6501
6502 * objc-lang.c: Include "valprint.h"
6503 * Makefile.in (objc-lang.o): Update dependencies.
6504
93de3e7f
AF
65052003-04-24 Adam Fedor <fedor@gnu.org>
6506
8ffd9b1b 6507 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6508 architecture dependant compilation and mark as unimplemented
6509 (until they get put in the gdbarch vector).
6510
0f20eeea
DC
65112003-04-23 David Carlton <carlton@bactrian.org>
6512
6513 * cp-support.c (cp_find_first_component): Accept 'operator' in
6514 more locations.
6515
74cfe982
AC
65162003-04-23 Andrew Cagney <cagney@redhat.com>
6517
6518 * infcall.c (call_function_by_hand): Eliminate redundant
6519 indentation. Move "saved_async" and "old_cleanups" to where they
6520 are needed.
8ffd9b1b 6521
52557533
AC
65222003-04-23 Andrew Cagney <cagney@redhat.com>
6523
6524 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6525 and "buffer". Move the "name" code to where it is needed.
6526
158775de
AC
65272003-04-23 Andrew Cagney <cagney@redhat.com>
6528
6529 * infcall.c (call_function_by_hand): Move variables "start_sp",
6530 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6531 code to ON_STACK switch branch.
8ffd9b1b 6532
ebc7896c
AC
65332003-04-23 Andrew Cagney <cagney@redhat.com>
6534
6535 * infcall.c (call_function_by_hand): Make declaration of "i",
6536 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6537 lint.
6538
d727590f
AC
65392003-04-23 Andrew Cagney <cagney@redhat.com>
6540
6541 * infcall.c (call_function_by_hand): Delete variable
6542 "n_method_args". Localize "param_type"'s declaration to the loop
6543 that it is used. Reinstate code assigning to said variable -
6544 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6545 Rationalize code using "param_type".
6546
d585e13a
AC
65472003-04-22 Andrew Cagney <cagney@redhat.com>
6548
6549 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6550 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6551 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6552 to DEPRECATED_PUSH_RETURN_ADDRESS.
6553
051caad9
KB
65542003-04-22 Kevin Buettner <kevinb@redhat.com>
6555
6556 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6557 on the DWARF2 register number prior to fetching a register.
6558
77296879
JB
65592003-04-22 J. Brobecker <brobecker@gnat.com>
6560
6561 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6562 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6563 this macro was always set to 0.
77296879
JB
6564 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6565 considering the fact that this macro was always set to 0.
6566 * hppa-tdep.h (hppa_store_return_value): Likewise.
6567 (hppa_extract_return_value): Likewise.
6568
4252f1df
JB
65692003-04-22 J. Brobecker <brobecker@gnat.com>
6570
6571 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6572 the hppa-pro target only.
6573
14604c6b
JB
65742003-04-21 J. Brobecker <brobecker@gnat.com>
6575
6576 Ongoing multi-arch conversion effort for HP/UX:
6577 * config/pa/tm-hppa.h: Move all macro that are no longer
6578 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6579 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6580
77eb01d1
JB
65812003-04-21 J. Brobecker <brobecker@gnat.com>
6582
6583 * config/pa/tm-hppa.h: Obsolete a section that was only used
6584 for hppa-pro.
6585
61995b3b
JB
65862003-04-21 J. Brobecker <brobecker@gnat.com>
6587
6588 Ongoing multi-arch conversion for HP/UX.
6589 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6590 if already defined (allows hppa64 to stay non-multiarched for now).
6591 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6592
4aa79dcc
AC
65932003-04-21 Andrew Cagney <cagney@redhat.com>
6594
6595 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6596
0f751ff2
AC
65972003-04-21 Andrew Cagney <cagney@redhat.com>
6598
6599 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6600 "i386_num_mmx_regs".
6601
04714b91
AC
66022003-04-21 Andrew Cagney <cagney@redhat.com>
6603
6604 * infcall.c: New file.
6605 * infcall.h: New file.
6606 * valarith.c: Include "infcall.h".
6607 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6608 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6609 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6610 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6611 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6612 (SFILES): Add "infcall.c"
6613 (COMMON_OBS): Add "infcall.o".
6614 (infcall.o): Specify dependencies.
6615 * value.h (call_function_by_hand): Delete declaration.
6616 * inferior.h (run_stack_dummy): Delete declaration.
6617 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6618 (run_stack_dummy): Move to "infcall.c", merged into
6619 call_function_by_hand.
6620 * valops.c (call_function_by_hand): Moved to "infcall.c".
6621 (find_function_addr, value_arg_coerce): Ditto.
6622 (unwindonsignal_p, coerce_float_to_double): Ditto.
6623 (_initialize_valops): Move "set/show coerce-float-to-double", and
6624 "set/show unwindonsignal" commands to "infcall.c".
6625 * v850-tdep.c, target.h: Update comments.
6626 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6627 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6628 (sh64_init_extra_frame_info): Update comments.
6629 * mn10300-tdep.c: Update comments.
6630 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6631 * config/sparc/tm-sparc.h: Update comments.
6632 * breakpoint.h: Update comments.
6633 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6634 * arm-tdep.c: Update comment.
6635
f9d3c2a8
MK
66362003-04-19 Mark Kettenis <kettenis@gnu.org>
6637
c40e1eab
MK
6638 * i386-tdep.c (i386_num_register_names): New variable.
6639 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6640 (MM0_REGNUM): Remove redundant parentheses in define.
6641 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6642 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6643 i386_mxcsr_regnum_p): Remove redundant parentheses.
6644 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6645
94ea66b3
MK
6646 * i386-tdep.c (i386_extract_return_value,
6647 i386_store_return_value): Correct check for availability of
6648 floating-point registers.
6649
54299a1d
MK
6650 * i386-tdep.c (i386_frame_num_args): Remove function.
6651 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6652
c86c27af
MK
6653 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6654 mmx_regnum_to_fp_regnum. Adjust all callers.
6655
f9d3c2a8
MK
6656 * i386-tdep.c (i386_get_longjmp_target): Use
6657 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6658 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6659 extract_address.
6660
94ba74a9
MK
66612003-04-19 Mark Kettenis <kettenis@gnu.org>
6662
6663 * core-regset.c: Update comments to reflect reality. Re-order
6664 includes.
6665 (fetch_core_registers): Use switch instead of if. Remove
6666 redundant prototype.
6667
4074e13c
JB
66682003-04-18 Jim Blandy <jimb@redhat.com>
6669
6670 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6671 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6672
e3ab4aba
RH
66732003-04-17 Richard Henderson <rth@redhat.com>
6674
6675 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6676
627bf7c1
EZ
66772003-04-17 Michael Snyder <msnyder@redhat.com>
6678 Karen Bennet <bennet@redhat.com>
6679
6680 Committed by Elena Zannoni <ezannoni@redhat.com>
6681 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6682
514621a9
EZ
66832003-04-17 Elena Zannoni <ezannoni@redhat.com>
6684
6685 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6686 value if the return type is void.
514621a9 6687
b4acd559
JJ
66882003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6689
6690 * thread-db.c: Reindented.
8ffd9b1b 6691
530b167e 66922003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6693
6694 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6695 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6696 as types.
6697
0a48e7e8
MS
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
8ffd9b1b 6721
ab9fe00e
KB
67222003-04-16 Kevin Buettner <kevinb@redhat.com>
6723
610a3745 6724 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6725 the size of ``long double'' to 16, instead of 8.
6726
e64a344c
MK
67272003-04-16 Mark Kettenis <kettenis@gnu.org>
6728
6729 * i386-linux-nat.c: Add some whitespace to make things more
6730 readable.
6731 (fetch_register, store_register, fetch_inferior_registers,
6732 store_inferior_registers): Get rid of assignment in if-statement.
6733 (store_register): Fix typo in error message.
6734
25d41031
AC
67352003-04-16 Andrew Cagney <cagney@redhat.com>
6736
6737 * utils.c (xmmalloc): Always allocate something, matches
6738 libiberty/xmalloc's semantics.
6739 (xmrealloc, xmcalloc): Ditto.
6740
c50901fd
AC
67412003-04-16 Andrew Cagney <cagney@redhat.com>
6742
6743 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6744 update comments.
6745 (get_frame_type): Initialize unwind and type when needed.
6746 (get_frame_id, frame_register_unwind): Ditto.
6747
f81824a9
AC
67482003-04-16 Andrew Cagney <cagney@redhat.com>
6749
6750 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6751 obsolete.
6752 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6753 * sparcl-stub.c: Obsolete file.
6754 * config/sparc/tm-sparclet.h: Obsolete file.
6755 * sparclet-stub.c: Obsolete file.
6756 * sparclet-rom.c: Obsolete file.
6757 * sparcl-tdep.c: Obsolete file.
6758 * config/sparc/tm-sparclite.h: Obsolete file.
6759 * config/sparc/sparclite.mt: Obsolete file.
6760 * config/sparc/sparclet.mt: Obsolete file.
6761 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6762 sparc86x-*-* obsolete.
6763
9219021c
DC
67642003-04-15 David Carlton <carlton@math.stanford.edu>
6765
6766 * Makefile.in (SFILES): Add cp-namespace.c.
6767 (COMMON_OBS): Add cp-namespace.o.
6768 (block.o): Depend on gdb_obstack_h and cp_support_h.
6769 (buildsym.o): Depend on cp_support_h.
6770 (cp-namespace.o): New.
6771 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6772 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6773 (dwarf2read.o): Depend on cp_support_h.
6774 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6775 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6776 processing_current_namespace.
6777 (read_namespace): Update processing_current_namespace; check for
6778 anonymous namespaces.
6779 (dwarf2_name): New function.
6780 (dwarf2_extension): Ditto.
6781 * cp-support.h: Update copyright, contributors.
6782 Add inclusion guards.
6783 Add opaque declaration for structs obstack, block, symbol.
6784 (struct using_direct): New struct.
6785 Add declarations for cp_find_first_component,
6786 cp_entire_prefix_len, processing_has_namespace_info,
6787 processing_current_namespace, cp_is_anonymous,
6788 cp_add_using_directive, cp_initialize_namespace,
6789 cp_finalize_namespace, cp_set_block_scope,
6790 cp_scan_for_anonymous_namespaces.
6791 * cp-namespace.c: New file.
6792 * cp-support.c: Update copyright.
6793 Include ctype.h, gdb_assert.h, gdbcmd.h.
6794 New variable maint_cplus_cmd_list.
6795 (cp_find_first_component): New function.
6796 (cp_entire_prefix_len, maint_cplus_command)
6797 (first_component_command, _initialize_cp_support): Ditto.
6798 * buildsym.c: Include cp-support.h.
6799 New variable using_list.
6800 (add_symbol_to_list): Check for anonymous namespaces.
6801 (finish_block): Set block's scope.
6802 (start_symtab): Initialize C++ namespace support.
6803 (end_symtab): Finalize C++ namespace support.
6804 * block.h: Add opaque declarations for structs
6805 block_namespace_info, using_direct, and obstack.
6806 Add declarations for block_set_scope and block_set_using.
6807 (struct block): Add 'language_specific' member.
6808 (BLOCK_NAMESPACE): New macro.
6809 * block.c: Include gdb_obstack.h and cp-support.h.
6810 (struct block_namespace_info): New struct.
6811 (block_set_scope): New function.
6812 (block_set_using, block_initialize_namespace): Ditto.
6813
d5a921c9
KB
68142003-04-14 Kevin Buettner <kevinb@redhat.com>
6815
6816 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6817 (locate_base): Return early if there aren't any link map offsets.
6818 (svr4_solib_create_inferior_hook): Warn if shared library support
6819 is unavailable.
6820
d2a52b27
DC
68212003-04-14 David Carlton <carlton@math.stanford.edu>
6822
6823 * symtab.c (symbol_set_names): Add prefix when storing Java names
6824 in hash table. Fix for PR java/1039.
6825
980cae7a
DC
68262003-04-14 David Carlton <carlton@math.stanford.edu>
6827
6828 * symtab.c (symbol_set_names): Rename 'name' arg to
6829 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6830 * symtab.h: Change 'name' argument in declaration of
6831 symbol_set_names to 'linkage_name'.
6832 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6833
e227b13c
AC
68342003-04-14 Andrew Cagney <cagney@redhat.com>
6835
6836 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6837 return the fully sign-extended register value.
6838 (get_frame_pointer): Ditto.
6839 (mips_pop_frame): Initialize "proc_desc" after checking for a
6840 dummy frame.
6841
36712a20
AC
68422003-04-14 Andrew Cagney <cagney@redhat.com>
6843
6844 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6845 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6846 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6847 (mips_push_register): Delete function.
6848 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6849 PUSH_FP_REGNUM.
6850
44ea7b70
JB
68512003-04-14 Jim Blandy <jimb@redhat.com>
6852
6853 * symmisc.c: #include "gdb_regex.h".
6854 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6855 functions.
6856 * maint.c (maintenance_list_command): New function.
6857 (_initialize_maint_cmds): Register the above as commands.
6858 * symtab.h (maintenance_list_symtabs,
6859 maintenance_list_psymtabs): New declarations.
6860 * cli/cli-cmds.c (maintenancelistlist): New variable.
6861 (init_cmd_lists): Initialize it.
6862 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6863 * gdbcmd.h (maintenancelistlist): New declaration.
6864 * Makefile.in (symmisc.o): Update dependencies.
6865
2d0c7962
EZ
68662003-04-14 Elena Zannoni <ezannoni@redhat.com>
6867
6868 * s390-nat.c: Include asm/types.h for addr_t.
6869
1947a811
CV
68702003-04-14 Corinna Vinschen <vinschen@redhat.com>
6871
6872 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6873 actually incoming type.
6874
adb616d7
AC
68752003-04-13 Andrew Cagney <cagney@redhat.com>
6876
6877 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6878 get_next_frame and get_frame_saved_regs.
6879
9b5e151c
AC
68802003-04-13 Andrew Cagney <cagney@redhat.com>
6881
6882 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6883 of gdbarch_num_regs.
6884
ef6e7e13
AC
68852003-04-13 Andrew Cagney <cagney@redhat.com>
6886
6887 * frame.h: Mention what replaced what in "struct frame_info".
6888 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6889 deprecated_update_frame_base_hack and
6890 deprecated_update_frame_pc_hack.
6891 * hppa-tdep.c: Ditto.
6892
61fbb938
DJ
68932003-04-13 Daniel Jacobowitz <drow@mvista.com>
6894
6895 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6896 to read_reg and update its comment. Remove regnum member.
6897 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6898 Don't call read_reg when setting in_reg. Call read_reg to get
6899 the frame base if it's in a register. Return the register number
6900 on the stack instead of in the context. Remove extra arguments
6901 to read_reg.
6902 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6903 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6904 the register number on the expression stack.
6905 (needs_frame_read_reg): Remove extra arguments.
6906
0d53c4c4
DJ
69072003-04-13 Daniel Jacobowitz <drow@mvista.com>
6908
6909 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6910 made non-static.
6911 (execute_stack_op): All callers updated.
6912 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6913 * dwarf2loc.c (find_location_expression): New function.
6914 (dwarf_expr_frame_base): Call it.
6915 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6916 (dwarf2_tracepoint_var_ref): New function, broken out from
6917 locexpr_tracepoint_var_ref.
6918 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6919 Make static.
6920 (loclist_read_variable, loclist_read_needs_frame): New functions.
6921 (loclist_describe_location, loclist_tracepoint_var_ref): New
6922 functions.
6923 (dwarf2_loclist_funcs): New struct location_funcs.
6924 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6925 (struct dwarf2_locexpr_baton): Add comments.
6926 (dwarf2_loclist_funcs): New extern.
6927 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6928 base_address and base_known.
6929 (dwarf_loc_buffer): New variable.
6930 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6931 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6932 (dwarf2_has_info): Initialize dwarf_loc_offset.
6933 (dwarf2_build_psymtabs): Read in .debug_loc.
6934 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6935 DWARF_LOC_SIZE.
6936 (psymtab_to_symtab_1): Likewise. Move base address calculation
6937 here, from...
6938 (dwarf2_get_pc_bounds): ... here. Use the base address from
6939 cu_header.
6940 (dwarf2_symbol_mark_computed): Handle location lists.
6941
6aca59a3
DJ
69422003-04-13 Daniel Jacobowitz <drow@mvista.com>
6943
6944 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6945 if the linkage name demangled successfully.
6946
aca1fcd0
MK
69472003-04-13 Mark Kettenis <kettenis@gnu.org>
6948
97095916
MK
6949 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6950 disassmbly_flavour): Removed.
6951
aca1fcd0
MK
6952 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6953
562a961f
MK
69542003-04-13 Mark Kettenis <kettenis@gnu.org>
6955
6956 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6957
bd013d54
AC
69582003-04-12 Andrew Cagney <cagney@redhat.com>
6959
6960 * frame.h (struct frame_info): Move definition from here ...
6961 * frame.c (struct frame_info): ... to here.
6962
167ef8b1
AC
69632003-04-12 Andrew Cagney <cagney@redhat.com>
6964
6965 * gdbthread.h (save_infrun_state): Delete parameter
6966 "prev_func_start".
6967 (struct thread_info): Delete field "prev_func_start".
6968 (load_infrun_state): Ditto.
6969 * thread.c (load_infrun_state, save_infrun_state): Update.
6970 * infrun.c (prev_func_start): Delete variable.
6971 (context_switch, init_wait_for_inferior): Update.
6972 (stop_stepping, keep_going): Update.
6973
da3331ec
AC
69742003-04-12 Andrew Cagney <cagney@redhat.com>
6975
6976 * gdbarch.sh: Add missing opaque declarations.
6977 * gdbarch.h: Regnerate.
6978 * symtab.h: Add missing opaque declarations.
6979 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6980 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6981 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6982 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6983 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6984 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6985 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6986 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6987 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6988 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6989 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6990 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6991 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6992
18adea3f
AC
69932003-04-11 Andrew Cagney <cagney@redhat.com>
6994
6995 * frame.c (get_frame_id): Return this frame's "id".
6996 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6997 function start.
6998 (legacy_saved_regs_this_id): Replace function body with
6999 internal-error.
7000 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7001 FRAME_OBSTACK_ZALLOC.
7002 (create_new_frame): Mark the frame ID as valid.
7003
2252e863
AO
70042003-04-11 Alexandre Oliva <aoliva@redhat.com>
7005
7006 * Makefile.in (libbfd_h): Added missing setting.
7007 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7008 according to the selected ABI.
7009
a8245ab8
JJ
70102003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7011
7012 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7013
6913c89a
AC
70142003-04-11 Andrew Cagney <cagney@redhat.com>
7015
7016 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7017 SAVED_PC_AFTER_CALL.
7018 * gdbarch.h, gdbarch.c: Regenerate.
7019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7020 * x86-64-tdep.c (x86_64_init_abi): Update.
7021 * vax-tdep.c (vax_gdbarch_init): Update.
7022 * v850-tdep.c (v850_gdbarch_init): Update.
7023 * sparc-tdep.c (sparc_gdbarch_init): Update.
7024 * sh-tdep.c (sh_gdbarch_init): Update.
7025 * s390-tdep.c (s390_gdbarch_init): Update.
7026 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7027 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7028 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7029 * mips-tdep.c (mips_gdbarch_init): Update.
7030 * mcore-tdep.c (mcore_gdbarch_init): Update.
7031 * m68k-tdep.c (m68k_gdbarch_init): Update.
7032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7033 * ia64-tdep.c (ia64_gdbarch_init): Update.
7034 (ia64_saved_pc_after_call): Update declaration.
7035 * i386ly-tdep.c (i386lynx_init_abi): Update.
7036 * i386-tdep.c (i386_gdbarch_init): Update.
7037 * hppa-tdep.c (hppa_gdbarch_init): Update.
7038 * h8300-tdep.c (h8300_gdbarch_init): Update.
7039 * frv-tdep.c (frv_gdbarch_init): Update.
7040 * cris-tdep.c (cris_gdbarch_init): Update.
7041 * avr-tdep.c (avr_gdbarch_init): Update.
7042 * arm-tdep.c (arm_gdbarch_init): Update.
7043 * alpha-tdep.c (alpha_gdbarch_init): Update.
7044 * ns32knbsd-nat.c (frame_num_args): Update.
7045 * ns32k-tdep.c (umax_frame_num_args): Update.
7046 * mips-tdep.c (mips_init_frame_pc_first): Update.
7047 * infrun.c (step_over_function): Update.
7048 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7049 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7050 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7051 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7052 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7053 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7054 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7055 * arch-utils.c (init_frame_pc_default): Update.
7056 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7057 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7058 declaration.
8ffd9b1b 7059
38edeab8
AC
70602003-04-11 Andrew Cagney <cagney@redhat.com>
7061
7062 * i387-tdep.c: Update copyright.
7063 (i387_to_double): Delete function.
7064 (double_to_i387): Delete function.
7065
81f8a206
AC
70662003-04-10 Andrew Cagney <cagney@redhat.com>
7067
7068 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7069 frame's function's address. Simplify.
7070 (d10v_frame_unwind_cache): Check that the frame's function is
7071 non-zero.
7072
6e691f7a
JB
70732003-04-10 Jim Blandy <jimb@redhat.com>
7074
7075 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7076 call to set_gdbarch_deprecated_push_arguments.
7077
7f78e237
AC
70782003-04-10 Andrew Cagney <cagney@redhat.com>
7079
7080 * frame.c (fprint_frame_id): New function.
7081 (fprint_frame_type, fprint_frame): New function.
7082 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7083 (create_sentinel_frame, get_frame_id): Ditto.
7084 (frame_id_p, frame_id_eq): Ditto.
7085 (frame_id_inner, create_new_frame): Ditto.
7086 (legacy_get_prev_frame, get_prev_frame): Ditto.
7087 (deprecated_update_frame_pc_hack): Ditto.
7088 (frame_register_unwind): Ditto.
7089 (deprecated_update_frame_base_hack): Ditto.
7090
f870b49b
CV
70912003-04-10 Corinna Vinschen <vinschen@redhat.com>
7092
7093 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7094 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7095 frame_chain function.
7096 * Makefile.in: Add dependencies due to above change.
7097
7c86889b
CV
70982003-04-10 Corinna Vinschen <vinschen@redhat.com>
7099
7100 * blockframe.c (legacy_frame_chain_valid): Move call to
7101 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7102 inside_entry_file.
7103
d0a55772
AC
71042003-04-09 Andrew Cagney <cagney@redhat.com>
7105
7106 * frame.h (struct frame_id): Replace "pc" and "base" with
7107 "stack_addr" and "code_addr". Update comments.
7108 (frame_id_build): Update parameter names and comment.
7109 (struct frame_info): Replace "id_p" and "id" with "this_id".
7110 * dummy-frame.c (dummy_frame_this_id): Update.
7111 * breakpoint.c (print_one_breakpoint): Update.
7112 * frame.c (get_frame_id): Update.
7113 (get_frame_base, frame_id_build): Update.
7114 (create_sentinel_frame, legacy_get_prev_frame): Update.
7115 (deprecated_update_frame_base_hack): Update.
7116 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7117 (frame_id_inner): Ditto.
7118
ac16bf07
AC
71192003-04-09 Andrew Cagney <cagney@redhat.com>
7120
7121 * defs.h (gdb_print_host_address): Make "addr" parameter a
7122 pointer constant.
7123 * utils.c (gdb_print_host_address): Update.
7124
366cfc9e
KB
71252003-04-09 Kevin Buettner <kevinb@redhat.com>
7126
7127 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7128 register number for R0 is 0.
7129
cd983b5c
JB
71302003-04-09 J. Brobecker <brobecker@gnat.com>
7131
7132 * frame.h (struct gdbarch): Add opaque structure definition
7133 to avoid a compilation warning on LynxOS 4.0.
7134
d1340264
AC
71352003-04-09 Andrew Cagney <cagney@redhat.com>
7136
7137 * frame.h (struct frame_info): Delete field "pc". Replace
7138 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7139 structure.
7140 * frame.c (frame_pc_unwind): Update.
7141 (create_sentinel_frame): Do not set "pc".
7142 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7143 (get_frame_pc): Call frame_pc_unwind.
7144 (deprecated_update_frame_pc_hack): Update.
7145 (create_new_frame): Use "pc" not "->pc".
7146
90a6fffb
AC
71472003-04-09 Andrew Cagney <cagney@redhat.com>
7148
7149 * frame.c (get_frame_id): Eliminate code updating "frame".
7150 (legacy_get_prev_frame): Ditto.
7151 (get_frame_base): Return id.base directly.
7152 (deprecated_update_frame_base_hack): Update "id.base".
7153 * frame.h (struct frame_info): Delete field "frame".
7154
2fbce691
AC
71552003-04-09 Andrew Cagney <cagney@redhat.com>
7156
7157 * NEWS: Mention that the "Sequent family" is obsolete.
7158 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7159 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7160 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7161 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7162 * config/i386/tm-ptx4.h: Obsolete file.
7163 * config/i386/tm-ptx.h: Obsolete file.
7164 * symm-tdep.c: Obsolete file.
7165 * config/i386/symmetry.mt: Obsolete file.
7166 * config/i386/tm-symmetry.h: Obsolete file.
7167 * symm-nat.c: Obsolete file.
7168 * config/i386/nm-symmetry.h: Obsolete file.
7169 * config/i386/xm-symmetry.h: Obsolete file.
7170 * config/i386/symmetry.mh: Obsolete file.
7171 * config/i386/nm-ptx4.h: Obsolete file.
7172 * config/i386/ptx4.mh: Obsolete file.
7173 * config/i386/ptx.mt: Obsolete file.
7174 * config/i386/ptx.mh: Obsolete file.
7175 * config/i386/xm-ptx4.h: Obsolete file.
7176 * config/i386/xm-ptx.h: Obsolete file.
7177
78c43945
AC
71782003-04-09 Andrew Cagney <cagney@redhat.com>
7179
7180 Obsolete mips*-*-mach3*.
7181 * NEWS: Mention that mips*-*-mach3* is obsolete.
7182 * m3-nat.c: Obsolete file.
7183 * config/nm-m3.h: Obsolete file.
7184 * config/mips/tm-mipsm3.h: Obsolete file.
7185 * config/mips/mipsm3.mt: Obsolete file.
7186 * config/mips/mipsm3.mh: Obsolete file.
7187 * config/mips/xm-mipsm3.h: Obsolete file.
7188 * mipsm3-nat.c: Obsolete file.
7189 * configure.host: Obsolete mips-dec-mach3*.
7190 * configure.tgt: Obsolete mips*-*-mach3*.
7191
f1908289
AC
71922003-04-09 Andrew Cagney <cagney@redhat.com>
7193
7194 * doublest.h: Update copyright.
7195 (deprecated_store_floating, deprecated_extract_floating): Rename
7196 store_floating and extract_floating. Update comments.
7197 * doublest.c: Update copyright.
7198 (extract_floating_by_length): Replace extract_floating.
7199 (store_floating_by_length): Replace store_floating.
7200 (deprecated_extract_floating): New function.
7201 (deprecated_store_floating): New function.
7202 (extract_typed_floating): Call extract_floating_by_length.
7203 (store_typed_floating): Call store_floating_by_length.
7204 * x86-64-tdep.c (x86_64_store_return_value): Update.
7205 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7206 (sh64_extract_return_value): Update.
7207 (sh_sh4_register_convert_to_virtual): Update.
7208 (sh_sh64_register_convert_to_virtual): Update.
7209 (sh_sh4_register_convert_to_raw): Update.
7210 (sh_sh64_register_convert_to_raw): Update.
7211 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7212 (rs6000_register_convert_to_raw): Update.
7213 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7214 (ia64_register_convert_to_raw): Update.
7215 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7216 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7217 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7218 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7219 (alpha_register_convert_to_raw): Update.
7220
4443bd83
AC
72212003-04-08 Andrew Cagney <cagney@redhat.com>
7222
7223 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7224 * gdbarch.h, gdbarch.c: Re-generate.
7225 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7226 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7227 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7228 conditionally, use frame_pc_unwind as an alternative. Add
7229 comments.
7230 * arch-utils.c (init_frame_pc_default): Only call
7231 SAVED_PC_AFTER_CALL when available.
7232
c0236d92
EZ
72332003-04-08 Elena Zannoni <ezannoni@redhat.com>
7234
fbe586ae 7235 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7236 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7237 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7238 (start_remote): Ditto.
7239 (handle_inferior_event): Ditto.
7240 (save_inferior_status): Ditto.
7241 (restore_inferior_status): Ditto.
7242 * infcmd.c (attach_command): Ditto.
7243 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7244 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7245 * alpha-tdep.c (heuristic_proc_start): Ditto.
7246 * mips-tdep.c (heuristic_proc_start): Ditto.
7247 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7248 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7249 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7250 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7251 * remote-vx.c (vx_create_inferior): Ditto.
7252
72532003-04-08 Elena Zannoni <ezannoni@redhat.com>
7254
7255 * infrun.c (stop_soon_quietly): Make it an enum, to better
7256 override the default behavior of handle_inferior_event.
7257 (clear_proceed_status): Update uses of stop_soon_quietly to
7258 reflect that it is now an enum.
7259 (start_remote): Ditto.
7260 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7261 is set to handle the new GNU/Linux kernel behavior for
7262 attach/sigstop. Update uses of stop_soon_quietly.
7263 * inferior.h (enum stop_kind): New enum.
7264 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7265 Reset normal handle_inferior_event behavior, afterwards.
7266 * fork-child.c (startup_inferior): Update.
7267 * alpha-tdep.c (heuristic_proc_start): Update.
7268 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7269 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7270 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7271 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7272 * remote-vx.c (vx_create_inferior): Update.
7273 * mips-tdep.c (heuristic_proc_start): Update.
7274
1211bce3
EZ
72752003-04-07 Elena Zannoni <ezannoni@redhat.com>
7276
7277 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7278 be freed more than once, causing wild memory corruptions.
1211bce3 7279 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7280 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7281 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7282 with the "core" target.
1211bce3 7283
f0ef6b29
KB
72842003-04-07 Kevin Buettner <kevinb@redhat.com>
7285
7286 * mips-tdep.c (mips_print_fp_register): New function, created from
7287 do_fp_register_row(). Registers are now (also) printed as hex.
7288 Only one register is printed per row.
7289 (mips_print_register, do_fp_register_row): Print floating point
7290 registers with mips_print_fp_register().
7291
8cf71652
AC
72922003-04-06 Andrew Cagney <cagney@redhat.com>
7293
5e488a7b
AC
7294 * valprint.h (inspect_it): Add extern declaration.
7295 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7296 (selectors_info, classes_info): Ditto.
7297 (find_objc_msgcall): Fix indentation.
7298 (objc_printstr): Delete extern declarations.
7299
8cf71652
AC
7300 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7301
e6ba3bc9
AC
73022003-04-06 Andrew Cagney <cagney@redhat.com>
7303
7304 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7305 Update comment.
7306 * frame.c (legacy_saved_regs_this_id): Update.
7307 (legacy_get_prev_frame): Update.
7308 * xstormy16-tdep.c: Update comment.
7309 * sparc-tdep.c (sparc_frame_chain): Update comment.
7310 * blockframe.c (legacy_frame_chain_valid): Update.
7311
55e1d7e7
AC
73122003-04-06 Andrew Cagney <cagney@redhat.com>
7313
996179ee
AC
7314 * valprint.c (val_print_type_code_int): Delete #ifdef
7315 PRINT_TYPELESS_INTEGER code.
7316
55e1d7e7
AC
7317 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7318 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7319 multi-arch definition.
7320 * gdbarch.h: Re-generate.
7321
43bd9a9e
AC
73222003-04-05 Andrew Cagney <cagney@redhat.com>
7323
7324 Eliminate FRAME_FIND_SAVED_REGS.
7325 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7326 Change FSR parameter to a pointer.
7327 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7328 Assume FSR parameter is a pointer.
7329 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7330 Make fsr a pointer.
7331 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7332 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7333 saved_regs a pointer.
7334 (hppa_frame_saved_pc): Ditto.
7335 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7336 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7337 pointer.
7338 (restore_pc_queue): Make fsr a pointer.
7339 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7340 (hppa_frame_chain): Make saved_regs a pointer, call
7341 hppa_frame_init_saved_regs.
7342 * sparc-tdep.c: Include "gdb_assert.h".
7343 (sparc_frame_find_saved_regs): Replace internal_error with
7344 gdb_assert.
7345 * remote-vxsparc.c (vx_read_register): Delete reference to
7346 FRAME_FIND_SAVED_REGS.
7347 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7348 * gdbarch.h: Regenerate.
7349 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7350 (deprecated_get_frame_saved_regs): Delete declaration.
7351 (struct frame_saved_regs): Delete definition.
7352 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7353 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7354 (hppa_frame_find_saved_regs): Delete declaration.
7355 (FRAME_FIND_SAVED_REGS): Delete macro.
7356 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7357 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7358 FRAME_FIND_SAVED_REGS in comment.
7359
be41e9f4
AC
73602003-04-05 Andrew Cagney <cagney@redhat.com>
7361
7362 * frame.c (frame_func_unwind, get_frame_func): New functions.
7363 * frame.h (get_frame_func, frame_func_unwind): Declare.
7364 (struct frame_info): Add field "prev_func" for caching the
7365 previous frame's function address.
7366 * arm-tdep.c (arm_frameless_function_invocation): Combine
7367 get_pc_function_start and get_frame_pc into get_frame_func.
7368 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7369 (sh64_nofp_frame_init_saved_regs): Ditto.
7370 * s390-tdep.c (s390_function_start): Ditto.
7371 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7372 (rs6000_frameless_function_invocation): Ditto.
7373 (rs6000_frame_saved_pc): Ditto.
7374 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7375 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7376 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7377 (i386_frame_init_saved_regs): Ditto.
7378 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7379 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7380 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7381 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7382 * blockframe.c (frameless_look_for_prologue): Ditto.
7383
a01dd7cc
AC
73842003-04-05 Andrew Cagney <cagney@redhat.com>
7385
7386 * frame.c (legacy_get_prev_frame): Link prev to next at the
7387 function start. Update comments.
7388
5e5592e6
AC
73892003-04-05 Andrew Cagney <cagney@redhat.com>
7390
7391 * frame.c (get_frame_id): Update comment.
7392 (legacy_get_prev_frame): Update comment.
7393 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7394 * gdbarch.h: Regenerate.
7395 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7396 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7397
6fba5002
AC
73982003-04-05 Andrew Cagney <cagney@redhat.com>
7399
7400 * stack.c (print_frame_info): Use get_frame_pc.
7401
7df05f2b
AC
74022003-04-04 Andrew Cagney <cagney@redhat.com>
7403
7404 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7405 the frame's type from the unwinder.
7406 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7407 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7408 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7409 (get_frame_base_address): Use get_frame_type.
7410 (get_frame_locals_address, get_frame_args_address): Ditto.
7411 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7412 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7413 (struct frame_info): Add comment explaining why the frame contains
7414 a "type" field.
7415 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7416 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7417 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7418 NORMAL_FRAME.
7419 * frame-unwind.h: Include "frame.h".
7420 (struct frame_unwind): Add "type" field.
7421 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7422
11889732
AC
74232003-04-04 Andrew Cagney <cagney@redhat.com>
7424
7425 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7426 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7427 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7428 get_frame_base.
7429 (d10v_unwind_dummy_id): Use frame_id_build.
7430 * frame.c (find_frame_sal): Use get_frame_pc.
7431 (create_new_frame): Use deprecated_update_frame_pc_hack and
7432 deprecated_update_frame_base_hack.
7433 (create_sentinel_frame): Add comment about ->pc going away.
7434 (get_prev_frame): Add comment about ->pc going away.
7435 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7436 frame_id_build, deprecated_update_frame_pc_hack and
7437 deprecated_update_frame_base_hack.
7438 (select_frame): Use get_frame_pc.
7439 (legacy_saved_regs_this_id): Use frame_id_build.
7440
50c46a0d
EZ
74412003-04-04 Elena Zannoni <ezannoni@redhat.com>
7442
fbe586ae
RH
7443 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7444 signed integer case.
7445 (classify_argument): Handle enumerations and references.
50c46a0d 7446
50bbdbd9
AC
74472003-04-04 Andrew Cagney <cagney@redhat.com>
7448
7449 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7450 ID to NULL.
7451
36018d2e
AF
74522003-04-01 Adam Fedor <fedor@gnu.org>
7453
7454 * gdb/objc-lang.c (selectors_info): Replace calls to
7455 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7456 SYMBOL_NATURAL_NAME.
7457 (classes_info, find_methods): Likewise.
7458
35cec841
KB
74592003-04-03 Kevin Buettner <kevinb@redhat.com>
7460
7461 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7462 ``mach'' to the value determined by bfd_default_set_arch_mach().
7463
43136899
BR
74642003-04-02 Bob Rossi <bob_rossi@cox.net>
7465
7466 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7467 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7468 (mi-cmd-file.o): Update dependencies.
7469
040b99fd
KB
74702003-04-01 Kevin Buettner <kevinb@redhat.com>
7471
7472 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7473 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7474
9a3d7dfd
AF
74752003-04-01 Adam Fedor <fedor@gnu.org>
7476
7477 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7478 * language.h (struct language_defn): Add la_demangle.
7479 (language_demangle): Declare.
7480 * language.c (language_demangle): New function.
7481 (unk_lang_demangle): Likewise.
7482 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7483 Add ukn_lang_demangle.
9a3d7dfd 7484 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7485 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7486 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7487 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7488 * jv-lang.c (java_demangle): New function
7489 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7490 * objc-lang.c (objc_demangle): Add options argument
7491 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7492 * maint.c (maintenance_demangle): Replace switch with
7493 call to language_demangle.
7494 * utils.c (fprintf_symbol_filtered): Likewise.
7495
5e074003
AC
74962003-04-01 Andrew Cagney <cagney@redhat.com>
7497
7498 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7499 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7500 PRINT_TYPELESS_INTEGER.
7501 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7502 PUSH_RETURN_ADDRESS.
7503
270cb5d6
AC
75042003-04-01 Andrew Cagney <cagney@redhat.com>
7505
7506 * Makefile.in (d10v-tdep.o): Update dependencies.
7507 * d10v-tdep.c: Include "frame-base.h".
7508 (d10v_frame_unwind): Make constant.
7509 (d10v_frame_base_address): New function.
7510 (d10v_frame_base): New variable.
7511 (d10v_gdbarch_init): Set frame_base default.
7512 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7513 comment for base.
7514 (d10v_frame_unwind_cache): Set and use "prev_sp".
7515 (d10v_frame_this_id): Use the previous frame's inner most stack
7516 address and this frame's func address for the frame ID. Use
7517 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7518
6bfb3e36
AC
75192003-04-01 Andrew Cagney <cagney@redhat.com>
7520
7521 * frame.h (get_frame_locals_address, get_frame_args_address):
7522 Refer to the base address, instead of the address of the first
7523 local or parameter.
8ffd9b1b 7524
da62e633
AC
75252003-04-01 Andrew Cagney <cagney@redhat.com>
7526
7527 Add frame debug info addresses:
7528 * frame-base.c: New file.
7529 * frame-base.h: New file.
7530 * frame.h (struct frame_base): Add opaque declaration.
7531 (get_frame_base): Update comment.
7532 (get_frame_base_address): Declare.
7533 (get_frame_locals_address): Declare.
7534 (get_frame_args_address): Declare.
7535 (struct frame_info): Add "base" and "base_cache". Update
7536 comments on the unwinder.
7537 * frame.c: Include "frame-base.h".
7538 (get_frame_locals_address): New function.
7539 (get_frame_base_address): New function.
7540 (get_frame_args_address): New function.
7541 * findvar.c (read_var_value): Use get_frame_locals_address and
7542 get_frame_args_address.
7543 * stack.c (frame_info): Use get_frame_locals_address and
7544 get_frame_args_address.
7545 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7546 moved to "frame-base.c".
7547 * printcmd.c (print_frame_nameless_args): Ditto.
7548 * symtab.h (address_class): Update comments.
7549 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7550 get_frame_base_address.
7551 * dwarf2expr.c (execute_stack_op): Ditto.
7552 * Makefile.in (frame_base_h): Define.
7553 (frame.o): Update dependencies.
7554 (frame-base.o): Add dependencies.
7555 (SFILES): Add frame-base.c.
7556 (COMMON_OBS): Add frame-base.o.
7557
3d30e9c2
AC
75582003-04-01 Andrew Cagney <cagney@redhat.com>
7559
7560 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7561 CALL_DUMMY_LENGTH): Ditto.
7562 * gdbarch.c: Re-generate.
7563 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7564 (CALL_DUMMY_LENGTH): Delete macro.
7565 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7566 * arm-tdep.c (arm_gdbarch_init): Ditto.
7567 * avr-tdep.c (avr_gdbarch_init): Ditto.
7568 * cris-tdep.c (cris_gdbarch_init): Ditto.
7569 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7570 * frv-tdep.c (frv_gdbarch_init): Ditto.
7571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7572 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7573 * i386-tdep.c (i386_gdbarch_init): Ditto.
7574 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7576 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7577 * mips-tdep.c (mips_gdbarch_init): Ditto.
7578 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7579 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7580 * s390-tdep.c (s390_gdbarch_init): Ditto.
7581 * sh-tdep.c (sh_gdbarch_init): Ditto.
7582 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7583 * v850-tdep.c (v850_gdbarch_init): Ditto.
7584 * vax-tdep.c (vax_gdbarch_init): Ditto.
7585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7586
ce0c7262
CV
75872003-04-01 Corinna Vinschen <vinschen@redhat.com>
7588
7589 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7590
73dd234f
AC
75912003-04-01 Andrew Cagney <cagney@redhat.com>
7592
7593 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7594 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7595 * gdbarch.h, gdbarch.c: Re-generate.
7596 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7597 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7598 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7599 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7600 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7601 * infcmd.c (run_stack_dummy): Simplify assuming
7602 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7603 * infrun.c (handle_inferior_event): Ditto.
7604 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7605 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7606 * arm-tdep.c (arm_gdbarch_init): Ditto.
7607 * avr-tdep.c (avr_gdbarch_init): Ditto.
7608 * cris-tdep.c (cris_gdbarch_init): Ditto.
7609 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7610 * frv-tdep.c (frv_gdbarch_init): Ditto.
7611 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7612 * i386-tdep.c (i386_gdbarch_init): Ditto.
7613 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7615 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7616 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7617 * mips-tdep.c (mips_gdbarch_init): Ditto.
7618 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7619 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7620 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7621 * s390-tdep.c (s390_gdbarch_init): Ditto.
7622 * sh-tdep.c (sh_gdbarch_init): Ditto.
7623 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7624 * v850-tdep.c (v850_gdbarch_init): Ditto.
7625 * vax-tdep.c (vax_gdbarch_init): Ditto.
7626 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7627
97606a13
DJ
76282003-04-01 Daniel Jacobowitz <drow@mvista.com>
7629
7630 * symfile.c (symfile_relocate_debug_section): Update call to
7631 bfd_simple_get_relocated_section_contents.
7632
e8ab51f7
AC
76332003-03-31 Andrew Cagney <cagney@redhat.com>
7634
7635 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7636 * gdbarch.h, gdbarch.c: Regenerate.
7637 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7638 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7639 available.
7640 * frame.h (generic_fix_call_dummy): Delete declaration.
7641 * dummy-frame.h: Update comment.
7642 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7643 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7644 fix_call_dummy.
7645 * sh-tdep.c (sh_gdbarch_init): Ditto.
7646 * s390-tdep.c (s390_gdbarch_init): Ditto.
7647 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7648 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7650 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7651 * i386-tdep.c (i386_gdbarch_init): Ditto.
7652 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7653 * frv-tdep.c (frv_gdbarch_init): Ditto.
7654 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7655 * cris-tdep.c (cris_gdbarch_init): Ditto.
7656 * avr-tdep.c (avr_gdbarch_init): Ditto.
7657 * arm-tdep.c (arm_gdbarch_init): Ditto.
7658
018d1b48
JB
76592003-03-31 J. Brobecker <brobecker@gnat.com>
7660
7661 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7662 (INIT_FRAME_AP): Likewise.
7663 (EXTRA_FRAME_INFO): Likewise.
7664
e9a2674e
AC
76652003-03-31 Andrew Cagney <cagney@redhat.com>
7666
7667 * gdbarch.sh: Include "symfile.h".
7668 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7669 * gdbarch.h, gdbarch.c: Re-generate.
7670 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7672 call_dummy_address, the default is at entry_point_address.
7673 * v850-tdep.c (v850_gdbarch_init): Ditto.
7674 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7675 * sh-tdep.c (sh_gdbarch_init): Ditto.
7676 * s390-tdep.c (s390_gdbarch_init): Ditto.
7677 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7678 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7679 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7680 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7681 * i386-tdep.c (i386_gdbarch_init): Ditto.
7682 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7683 * frv-tdep.c (frv_gdbarch_init): Ditto.
7684 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7685 * cris-tdep.c (cris_gdbarch_init): Ditto.
7686 * arm-tdep.c (arm_gdbarch_init): Ditto.
7687
e8a8712a
AC
76882003-03-31 Andrew Cagney <cagney@redhat.com>
7689
7690 * gdbarch.sh (CALL_DUMMY_P): Delete.
7691 * gdbarch.h, gdbarch.c: Re-generate.
7692 * inferior.h (CALL_DUMMY_P): Delete macro.
7693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7694 * vax-tdep.c (vax_gdbarch_init): Update.
7695 * v850-tdep.c (v850_gdbarch_init): Update.
7696 * sparc-tdep.c (sparc_gdbarch_init): Update.
7697 * sh-tdep.c (sh_gdbarch_init): Update.
7698 * s390-tdep.c (s390_gdbarch_init): Update.
7699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7700 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7701 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7702 * mips-tdep.c (mips_gdbarch_init): Update.
7703 * mcore-tdep.c (mcore_gdbarch_init): Update.
7704 * m68k-tdep.c (m68k_gdbarch_init): Update.
7705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7706 * ia64-tdep.c (ia64_gdbarch_init): Update.
7707 * i386-tdep.c (i386_gdbarch_init): Update.
7708 * h8300-tdep.c (h8300_gdbarch_init): Update.
7709 * frv-tdep.c (frv_gdbarch_init): Update.
7710 * d10v-tdep.c (d10v_gdbarch_init): Update.
7711 * cris-tdep.c (cris_gdbarch_init): Update.
7712 * breakpoint.c (deprecated_frame_in_dummy): Update.
7713 * avr-tdep.c (avr_gdbarch_init): Update.
7714 * alpha-tdep.c (alpha_gdbarch_init): Update.
7715 * arm-tdep.c (arm_gdbarch_init): Update.
7716 * dummy-frame.c (dummy_frame_this_id): Update comments.
7717 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7718 * frame.c (legacy_get_prev_frame): Ditto.
7719 * valops.c (call_function_by_hand): Delete function.
7720 (hand_function_call): Rename to call_function_by_hand
7721
ed234cf8
AC
77222003-03-30 Andrew Cagney <cagney@redhat.com>
7723
7724 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7725 * value.h (struct value): Update comment.
ed234cf8 7726
06c77151
AC
77272003-03-30 Andrew Cagney <cagney@redhat.com>
7728
6c2b5168
AC
7729 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7730 D10V_FP_REGNUM.
7731 (d10v_gdbarch_init): Do not set fp_regnum.
7732
06c77151
AC
7733 * frame.c (get_frame_base): Force ID initialization.
7734 (get_prev_frame): Move computation of the frame ID from here ...
7735 (get_frame_id): ... to here.
7736 (legacy_get_prev_frame): Mark the frame ID as valid.
7737 * frame.h (struct frame_info): Add field "id_p".
7738
97a1a11c
MK
77392003-03-30 Mark Kettenis <kettenis@gnu.org>
7740
7741 * i386-tdep.c (i386_store_struct_return): Removed.
7742 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7743
6c0e89ed
AC
77442003-03-30 Andrew Cagney <cagney@redhat.com>
7745
7746 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7747 * gdbarch.h, gdbarch.c: Regenerate.
7748 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7750 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7751 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7752 * i386-tdep.c (i386_gdbarch_init): Ditto.
7753 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7754 * cris-tdep.c (cris_gdbarch_init): Ditto.
7755 * vax-tdep.c (vax_gdbarch_init): Ditto.
7756 * s390-tdep.c (s390_gdbarch_init): Ditto.
7757 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7758 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7759 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7760 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7761 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7762 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7763 * sparc-tdep.c (sparc_gdbarch_init): Update.
7764 * sh-tdep.c (sh_gdbarch_init): Update.
7765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7766 * mips-tdep.c (mips_gdbarch_init): Update.
7767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7768 * ia64-tdep.c (ia64_gdbarch_init): Update.
7769 * frv-tdep.c (frv_gdbarch_init): Update.
7770 * avr-tdep.c (avr_gdbarch_init): Update.
7771 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7772 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7773 instead of when push_dummy_call is not available.
8ffd9b1b 7774
f7dd6af2
AC
77752003-03-30 Andrew Cagney <cagney@redhat.com>
7776
7777 * infttrace.c: Include "gdbthread.h".
7778 (parent_attach_all): Fix function signature.
7779 (call_ptrace): Update call.
7780 * Makefile.in (infttrace.o): Update dependencies.
7781
28f617b3
AC
77822003-03-30 Andrew Cagney <cagney@redhat.com>
7783
7784 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7785 PUSH_RETURN_ADDRESS.
7786 * gdbarch.h, gdbarch.c: Regenerate.
7787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7788 * x86-64-tdep.c (x86_64_init_abi): Update.
7789 * v850-tdep.c (v850_gdbarch_init): Update.
7790 * sparc-tdep.c (sparc_gdbarch_init): Update.
7791 * sh-tdep.c (sh_gdbarch_init): Update.
7792 * s390-tdep.c (s390_gdbarch_init): Update.
7793 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7794 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7795 * mips-tdep.c (mips_gdbarch_init): Update.
7796 * mcore-tdep.c (mcore_gdbarch_init): Update.
7797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7798 * ia64-tdep.c (ia64_gdbarch_init): Update.
7799 * i386-tdep.c (i386_gdbarch_init): Update.
7800 * h8300-tdep.c (h8300_gdbarch_init): Update.
7801 * frv-tdep.c (frv_gdbarch_init): Update.
7802 * cris-tdep.c (cris_gdbarch_init): Update.
7803 * avr-tdep.c (avr_gdbarch_init): Update.
7804 * arm-tdep.c (arm_gdbarch_init): Update.
7805 * valops.c (hand_function_call): Update.
7806
4d628cd7
AC
78072003-03-29 Andrew Cagney <cagney@redhat.com>
7808
7809 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7810 sizeof_call_dummy_words.
7811 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7812 define.
7813 * gdbarch.h: Regenerate.
8ffd9b1b 7814
65e82032
AC
78152003-03-29 Andrew Cagney <cagney@redhat.com>
7816
7817 * infttrace.h: New file.
7818 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7819 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7820 (hpread_read_doc_function_type): Detect an initialized type1.
7821 (hpread_quick_traverse): Initialize mod_name_string.
7822 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7823 (som_solib_get_solib_by_pc): Declare.
7824 (so_lib_thread_start_addr): Declare.
7825 (no_shared_libraries): Declare.
7826 * somread.c (init_import_symbols): Make static. Add forward
7827 declaration.
7828 * config/pa/nm-hppah.h: Include "infttrace.h" for
7829 parent_attach_all.
7830 (hppa_insert_hw_watchpoint): Declare.
7831 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7832 * hppah-nat.c: Include "gdb_string.h".
7833 (parent_attach_all): Delete extern declaration, moved to
7834 "infttrace.h".
7835 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7836 int.
7837 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7838 * Makefile.in (infttrace_h): Define.
7839 (hpread.o): Update dependencies.
7840 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7841 * hppa-hpux-tdep.c: Include "gdb_string.h".
7842 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7843 * infrun.c (handle_inferior_event): Always initialize
7844 stepped_after_stopped_by_watchpoint. Add default and remove
7845 fallthrough in switch statement.
7846 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7847 parameter to int.
7848 (hppa_remove_hw_watchpoint): Ditto.
7849
2c3bbe77
AC
78502003-03-29 Andrew Cagney <cagney@redhat.com>
7851
7852 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7853 offset.
7854
2dd604e7
RE
78552003-03-29 Richard Earnshaw <rearnsha@arm.com>
7856
7857 * arm-tdep.c (arm_push_arguments): Delete.
7858 (struct stack_item): New type.
7859 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7860 (arm_store_struct_return): Delte.
7861 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7862 arm_push_arguments or arm_store_struct_return.
7863
e8933a55
AC
78642003-03-28 Andrew Cagney <cagney@redhat.com>
7865
7866 * Makefile.in (d10v-tdep.o): Update dependencies.
7867 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7868 * d10v-tdep.c: Include "remote.h".
7869 (target_resume_hook): Delete extern declaration.
7870 (target_wait_loop_hook): Ditto.
7871 (tdisassemble_command): Eliminate assignment in "if" conditional.
7872 (d10v_ts2_register_sim_regno): Eliminate call to
7873 legacy_register_sim_regno.
7874 (d10v_ts3_register_sim_regno): Ditto.
7875
6949171e
JJ
78762003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7877
7878 * thread.c: Reindented.
7879 * lin-lwp.c: Ditto.
7880 * linux-proc.c: Ditto.
7881
98c7071f
BR
78822003-03-28 Bob Rossi <bob_rossi@cox.net>
7883
fbe586ae 7884 * MAINTAINERS (write after approval): Add myself.
98c7071f 7885
5edc9ca6
TR
78862003-03-27 Theodore A. Roth <troth@openavr.org>
7887
7888 * objc-exp.y: Add missing semi-colons.
7889
378bfd1b
AC
78902003-03-27 Andrew Cagney <cagney@redhat.com>
7891
7892 * regcache.c (write_sp): Delete function and references.
7893 * inferior.h (write_sp): Delete declaration.
7894 * valops.c (hand_function_call): Replace write_sp with
7895 TARGET_WRITE_SP.
7896 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7897 (sparc_pop_frame): Ditto.
8ffd9b1b 7898
56056df7
AC
78992003-03-27 Andrew Cagney <cagney@redhat.com>
7900
7901 * NEWS: Mention removal of support for hppa*-*-bsd* and
7902 hppa*-*-osf* natives, and hppa*-*-pro* target.
7903 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7904 * config/pa/xm-pa.h: Obsolete file.
7905 * config/pa/xm-hppab.h: Obsolete file.
7906 * config/pa/nm-hppab.h: Obsolete file.
7907 * config/pa/tm-hppab.h: Obsolete file.
7908 * config/pa/tm-hppao.h: Obsolete file.
7909 * config/pa/nm-hppao.h: Obsolete file.
7910 * config/pa/tm-pro.h: Obsolete file.
7911 * config/pa/hppaosf.mt: Obsolete file.
7912 * config/pa/hppaosf.mh: Obsolete file.
7913 * config/pa/hppapro.mt: Obsolete file.
7914 * config/pa/hppabsd.mt: Obsolete file.
7915 * config/pa/hppabsd.mh: Obsolete file.
7916 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7917 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7918 hppa*-*-osf*.
7919
5873a88d
AC
79202003-03-27 Andrew Cagney <cagney@redhat.com>
7921
7922 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7923 push_arguments. Don't set push_return_address or write_sp.
7924 (d10v_push_dummy_call): Replace d10v_push_arguments.
7925 (d10v_push_return_address, d10v_write_sp): Delete function,
7926 handled by push_dummy_call.
7927
b81774d8
AC
79282003-03-26 Andrew Cagney <cagney@redhat.com>
7929
7930 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7931 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7932 regcache and dummy_addr parameters.
7933 * gdbarch.h, gdbarch.c: Re-generate.
7934 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7935 available; assume it will handle stack alignment and return
7936 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7937 legacy_push_arguments.
7938 (legacy_push_arguments): Rename default_push_arguments.
7939 * value.h (legacy_push_arguments): Rename default_push_arguments.
7940 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7941 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7942 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7943 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7944 * config/i386/tm-symmetry.h: Update.
7945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7946 * x86-64-tdep.c (x86_64_init_abi): Update.
7947 * v850-tdep.c (v850_gdbarch_init): Update.
7948 * sparc-tdep.c (sparc_gdbarch_init): Update.
7949 * sh-tdep.c (sh_gdbarch_init): Update.
7950 * s390-tdep.c (s390_gdbarch_init): Update.
7951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7952 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7953 * mips-tdep.c (mips_gdbarch_init): Update.
7954 * mcore-tdep.c (mcore_gdbarch_init): Update.
7955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7956 * ia64-tdep.c (ia64_gdbarch_init): Update.
7957 * i386-tdep.c (i386_gdbarch_init): Update.
7958 * hppa-tdep.c (hppa_gdbarch_init): Update.
7959 * h8300-tdep.c (h8300_gdbarch_init): Update.
7960 * frv-tdep.c (frv_gdbarch_init): Update.
7961 * d10v-tdep.c (d10v_gdbarch_init): Update.
7962 * cris-tdep.c (cris_gdbarch_init): Update.
7963 * avr-tdep.c (avr_gdbarch_init): Update.
7964 * arm-tdep.c (arm_gdbarch_init): Update.
7965 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7966 * alpha-tdep.c (alpha_gdbarch_init): Update.
7967
f541410f
DJ
79682003-03-26 Daniel Jacobowitz <drow@mvista.com>
7969
7970 * signals/signals.c (do_target_signal_to_host): Correct realtime
7971 signal range test.
7972
69f567ae
DJ
79732003-03-26 Daniel Jacobowitz <drow@mvista.com>
7974
7975 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7976 (struct sal_chain, map_catch_names): Remove.
7977 (catch_exception_command_1): Don't call
7978 handle_gnu_4_16_catch_command.
7979
d5d14a5a
DJ
79802003-03-26 Daniel Jacobowitz <drow@mvista.com>
7981
7982 From Mark Dettinger <dettinge@de.ibm.com>:
7983 * dwarf2cfi.c (read_2u): Increment pointer by two.
7984
bdd73e22
DJ
79852003-03-26 Daniel Jacobowitz <drow@mvista.com>
7986
7987 * signals/signals.c: Fix typos in last change.
7988
960cb555
DJ
79892003-03-26 Daniel Jacobowitz <drow@mvista.com>
7990
7991 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7992 not already defined. Use __SIGRTMIN if available.
7993 (target_signal_from_host): Remove SIGRTMIN block.
7994 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7995 the signal is within the realtime range.
7996
f636b87d
AF
79972003-03-25 Adam Fedor <fedor@gnu.org>
7998
7999 * Makefile.in (infrun.o): Add $(language_h)
8000 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8001 for language specific trampolines.
8002 * language.h (struct language_defn): Add skip_trampoline.
8003 (skip_language_trampoline): Declare.
8004 * language.c (unk_lang_trampoline, skip_language_trampoline):
8005 New functions.
8006 (unknown_language_defn, auto_language_defn, local_language_defn):
8007 Add ukn_lang_trampoline.
8008 * ada-lang.c (ada_language_defn): Add NULL for language
8009 specific skip_trampoline.
8010 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8011 scm-lang.c: Likewise.
8012 * objc-lang.c (objc_skip_trampoline): New function.
8013 (objc_language_defn): Add objc_skip_trampoline.
8014
28f617b3 80152003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8016
8017 * frame.c (get_prev_frame): Delay validating a frame's ID -
8018 non-NULL, didn't go backwards - until an attempt to unwind it to
8019 the previous frame.
8020
f933a9c5
AC
80212003-03-25 Andrew Cagney <cagney@redhat.com>
8022
8023 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8024 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8025 * gdbarch.h, gdbarch.c: Re-generate.
8026 * config/sparc/tm-sparc.h
8027 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8028 * sparc-tdep.c (sparc_gdbarch_init): Set
8029 deprecated_extra_stack_alignment_needed.
8030 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8032 extra_stack_alignment_needed.
8033 * v850-tdep.c (v850_gdbarch_init): Ditto.
8034 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8035 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8036 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8037 * cris-tdep.c (cris_gdbarch_init): Ditto.
8038 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8040
4183d812
AC
80412003-03-25 Andrew Cagney <cagney@redhat.com>
8042
8043 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8044 STORE_STRUCT_RETURN.
8045 * gdbarch.h, gdbarch.c: Regenerate.
8046 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8047 (d10v_push_arguments): Set the struct return register.
8048 (d10v_gdbarch_init): Update.
8049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8050 * x86-64-tdep.c (x86_64_init_abi): Update.
8051 * vax-tdep.c (vax_gdbarch_init): Update.
8052 * v850-tdep.c (v850_gdbarch_init): Update.
8053 * sparc-tdep.c (sparc_gdbarch_init): Update.
8054 * sh-tdep.c (sh_gdbarch_init): Update.
8055 * s390-tdep.c (s390_gdbarch_init): Update.
8056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8058 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8059 * mips-tdep.c (mips_gdbarch_init): Update.
8060 * mcore-tdep.c (mcore_gdbarch_init): Update.
8061 * m68k-tdep.c (m68k_gdbarch_init): Update.
8062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8063 * ia64-tdep.c (ia64_gdbarch_init): Update.
8064 * i386-tdep.c (i386_gdbarch_init): Update.
8065 * hppa-tdep.c (hppa_gdbarch_init): Update.
8066 * h8300-tdep.c (h8300_gdbarch_init): Update.
8067 * frv-tdep.c (frv_gdbarch_init): Update.
8068 * cris-tdep.c (cris_gdbarch_init): Update.
8069 * avr-tdep.c (avr_gdbarch_init): Update.
8070 * arm-tdep.c (arm_gdbarch_init): Update.
8071 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8072
1bf6d5cc
AC
80732003-03-25 Andrew Cagney <cagney@redhat.com>
8074
8075 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8076 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8077 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8078 * gdbarch.h, gdbarch.c: Regenerate.
8079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8080 call_dummy_stack_adjust_p.
8081 * vax-tdep.c (vax_gdbarch_init): Ditto.
8082 * v850-tdep.c (v850_gdbarch_init): Ditto.
8083 * sh-tdep.c (sh_gdbarch_init): Ditto.
8084 * s390-tdep.c (s390_gdbarch_init): Ditto.
8085 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8086 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8087 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8088 * mips-tdep.c (mips_gdbarch_init): Ditto.
8089 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8090 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8093 * i386-tdep.c (i386_gdbarch_init): Ditto.
8094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8095 * frv-tdep.c (frv_gdbarch_init): Ditto.
8096 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8097 * cris-tdep.c (cris_gdbarch_init): Ditto.
8098 * avr-tdep.c (avr_gdbarch_init): Ditto.
8099 * arm-tdep.c (arm_gdbarch_init): Ditto.
8100 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8101 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8102 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8103 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8104 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8105 call_dummy_stack_adjust_p.
8106 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8107 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8108 * sparc-tdep.c (sparc32_push_arguments): Update.
8109 * valops.c (hand_function_call): Update.
8110
71c08af0
CV
81112003-03-25 Corinna Vinschen <vinschen@redhat.com>
8112
8113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8114 set_gdbarch_char_signed.
8115
30757f90
RE
81162003-03-25 Richard Earnshaw <rearnsha@arm.com>
8117
8118 PR cli/548
8119 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8120
03d48a7d
RE
81212003-03-25 Richard Earnshaw <rearnsha@arm.com>
8122
8123 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8124 (_initialize_arm_tdep): Don't set tm_print_insn.
8125
2cf6873c
AF
81262003-03-24 Adam Fedor <fedor@gnu.org>
8127
8128 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8129 * objc-lang.h: Add multiple inclusion protection.
8130 (start_msglist, add_msglist, end_msglist): Additional declarations.
8131
17c0759e
RE
81322003-03-24 Richard Earnshaw <rearnsha@arm.com>
8133
8134 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8135 value was renamed to ARM_FLOAT_SOFT_FPA.
8136
618ce49f
AC
81372003-03-23 Andrew Cagney <cagney@redhat.com>
8138
8139 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8140 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8141 * gdbarch.h, gdbarch.c: Regenerate.
8142 * valops.c (hand_function_call): Update.
8143 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8144 * frame.c (legacy_saved_regs_this_id): Update.
8145 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8146 * dummy-frame.h: Update.
8147 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8148 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8149 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8150 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8151 * config/m68k/tm-sun3.h: Update.
8152 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8154 * x86-64-tdep.c (x86_64_init_abi): Update.
8155 * vax-tdep.c (vax_gdbarch_init): Update.
8156 * v850-tdep.c (v850_gdbarch_init): Update.
8157 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8158 * sh-tdep.c (sh_gdbarch_init): Update.
8159 * s390-tdep.c (s390_gdbarch_init): Update.
8160 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8161 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8162 (frame_get_saved_regs): Update.
8163 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8164 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8165 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8166 * mips-tdep.c (mips_gdbarch_init): Update.
8167 * mcore-tdep.c (mcore_gdbarch_init): Update.
8168 * m68k-tdep.c (m68k_gdbarch_init): Update.
8169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8170 * ia64-tdep.c (ia64_gdbarch_init): Update.
8171 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8172 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8173 (i386_interix_back_one_frame): Update.
8174 * hppa-tdep.c (hppa_gdbarch_init): Update.
8175 (hppa_init_extra_frame_info): Update.
8176 * h8300-tdep.c (h8300_gdbarch_init): Update.
8177 * frv-tdep.c (frv_gdbarch_init): Update.
8178 * cris-tdep.c (cris_gdbarch_init): Update.
8179 * avr-tdep.c (avr_gdbarch_init): Update.
8180 * arm-tdep.c (arm_gdbarch_init): Update.
8181 * alpha-tdep.c (alpha_gdbarch_init): Update.
8182
fd50bc42
RE
81832003-03-22 Richard Earnshaw <rearnsha@arm.com>
8184
8185 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8186 (arm_get_fp_model): Declare.
8187 * arm-tdep.c (fp_model_strings): New string array.
8188 (arm_fp_model, current_fp_model): New variables.
8189 (arm_get_fp_model): New function.
8190 (arm_set_fp): New function.
8191 (set_fp_model_sfunc): New function.
8192 (show_fp_model): New function.
8193 (_initialize_arm_tdep): Add new command to set/show the FPU.
8194 (arm_extract_return_value): Use arm_get_fp_model.
8195 (arm_store_return_value): Likewise.
8196 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8197 to initialize the floating-point data types.
8198 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8199 model is FPA.
8200
26304000
RE
82012003-03-22 Richard Earnshaw <rearnsha@arm.com>
8202
8203 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8204 the current setting of each value.
8205 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8206 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8207 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8208 commands and add new version as subcommands of "set/show arm".
8209
afd7eef0
RE
82102003-03-22 Richard Earnshaw <rearnsha@arm.com>
8211
8212 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8213 (set_arm_command, show_arm_command): New functions.
8214 (_initialize_arm_tdep): Add them.
8215 (num_disassembly_options): Renamed from num_flavor_options.
8216 (valid_disassembly_styles): Renamed from valid_flavors.
8217 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8218 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8219 set_disassembly_flavor_sfunc.
8220 (set_disassembly_style): Renamed from set_disassembly_flavor.
8221 (arm_othernames): Updated.
8222 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8223 command. Add "set/show arm disassembly" commands. Deprecate
8224 "othernames" command.
8225
299a7944
RE
82262003-03-22 Richard Earnshaw <rearnsha@arm.com>
8227
8228 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8229 (arm-tdep.o): Depend on elf_arm_h.
8230
c1dac9e6
RE
82312003-03-22 Richard Earnshaw <rearnsha@arm.com>
8232
8233 * Makefile.in (coff_internal_h): Define.
8234 (arm-tdep.o): Update dependencies.
8235
2702d96c
RE
82362003-03-22 Richard Earnshaw <rearnsha@arm.com>
8237
8238 * arm-tdep.c (prologue_cache): Delete.
8239 (check_prologue_cache, save_prologue_cache): Delete.
8240 (arm_scan_prologue): Don't check or update the prologue_cache.
8241 (arm_gdb_arch_init): Don't initialize it.
8242 (_initialize_arm_tdep): Likewise.
8243
27d5d74b
SC
82442003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8245
8246 * MAINTAINERS (tui): Maintainer of tui code.
8247
1762d96d
CV
82482003-03-21 Corinna Vinschen <vinschen@redhat.com>
8249
8250 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8251 (i386-cygwin-tdep.o): Add dependencies.
8252 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8253 * i386-cygwin-tdep.c: New file.
8254 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8255 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8256
4c2e2391
AC
82572003-03-20 Andrew Cagney <cagney@redhat.com>
8258
f20d38b7
AC
8259 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8260 (handle_inferior_event): Remove code calling
8261 DYNAMIC_TRAMPOLINE_NEXTPC.
8262
0022b738
AC
8263 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8264 already has a full path.
8265
864dbc90
AC
8266 * main.c (gdb_main): Return 1.
8267 (captured_main): Call error to report an invalid interpreter.
8268
4c2e2391
AC
8269 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8270 * alpha-osf1-tdep.c: Include "gdb_string.h".
8271
5ef7553b
JB
82722003-03-19 J. Brobecker <brobecker@gnat.com>
8273
8274 Continuing work to convert the hppa targets to multiarch partial.
8275
8276 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8277 method, now that hppa_push_dummy_frame has a conformant prototype.
8278 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8279 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8280 for the switch to multiarch partial.
8281
7bde8967
KB
82822003-03-19 Kevin Buettner <kevinb@redhat.com>
8283
8284 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8285 when iss is issNull.
8286
b006a9e9
KB
82872003-03-18 Kevin Buettner <kevinb@redhat.com>
8288
8289 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8290 NUM_REGS bounds check.
8291
5e2e9765
KB
82922003-03-18 Kevin Buettner <kevinb@redhat.com>
8293
8294 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8295 * mips-tdep.c (gdb_assert.h): Include.
8296 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8297 (mips_register_name): Handle integer registers explicitly. Add
8298 bounds checking.
8299 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8300 (mips_lsi33k_reg_names): Don't list integer registers; they're
8301 handled by mips_register_name() now.
8302 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8303 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8304 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8305 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8306 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8307
a2867626
AC
83082003-03-18 Andrew Cagney <cagney@redhat.com>
8309
8310 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8311 a void pointer.
8312 * gdbtypes.h (print_scalar_formatted): Update declaration.
8313 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8314
06600e06
JB
83152003-03-18 J. Brobecker <brobecker@gnat.com>
8316
8317 * infrun.c (observer.h): Add #include.
8318 (normal_stop): Add call to observer_notify_normal_stop.
8319 * Makefile.in (infrun.o): Add dependency on observer.h.
8320
7daf4f5b
JB
83212003-03-18 J. Brobecker <brobecker@gnat.com>
8322
8323 Continuing work to convert the hppa targets to multiarch partial.
8324 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8325 parameter. Reformat comment.
8326 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8327 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8328 to match new profile.
8329
3371ccc0
JB
83302003-03-18 J. Brobecker <brobecker@gnat.com>
8331
8332 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8333 appear to be working in any case.
8334
4fbe891e
JB
83352003-03-18 J. Brobecker <brobecker@gnat.com>
8336
8337 * observer.c (observer_test_first_observer): New static variable.
8338 (observer_test_second_observer): Likewise.
8339 (observer_test_third_observer): Likewise.
8340 (observer_test_first_notification_function): New static function.
8341 (observer_test_second_notification_function): Likewise.
8342 (observer_test_third_notification_function): Likewise.
8343
a7ff40e7
JB
83442003-03-17 J. Brobecker <brobecker@gnat.com>
8345
8346 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8347 * somsolib.c (gdb_assert.h): Likewise.
8348 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8349 (somsolib.o): Likewise.
8350
26ca4152
AC
83512003-03-17 Andrew Cagney <cagney@redhat.com>
8352
8353 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8354 BFD. Simplify setting of di.endian.
8355
0a613259
AC
83562003-03-17 Andrew Cagney <cagney@redhat.com>
8357
8358 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8359 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8360
8361 From Elena Zannoni <ezannoni@redhat.com>
8362 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8363 vector and floating-point parameters.
8364 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8365 convention.
8366 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8367
1132738f
FN
83682003-03-17 Fernando Nasser <fnasser@redhat.com>
8369
8370 * MAINTAINERS: Remove my name from several maintainership roles.
8371
6dc42492
AC
83722003-03-17 Andrew Cagney <cagney@redhat.com>
8373
8374 Fix frame off-by-one bug.
8375 * frame-unwind.h (frame_this_id_ftype): Replace
8376 frame_unwind_id_ftype.
8377 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8378 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8379 with "prev_register".
8380 * frame-unwind.c (frame_unwind_find_by_pc): Return
8381 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8382 comment.
8383 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8384 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8385 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8386 (dummy_frame_unwind): Update.
8387 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8388 sentinel_frame_register_unwind.
8389 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8390 (sentinel_frame_unwinder): Update.
8391 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8392 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8393 * frame.c (create_sentinel_frame): Update. Initialize
8394 "prologue_cache" instead of "unwind_cache".
8395 (frame_register_unwind): Call this frame's prev_register with the
8396 next frame and this frame's prologue cache.
8397 (get_prev_frame): Simplify. Always call prev frame's this_id with
8398 this frame and prev frame's prologue cache. Document that this
8399 call is shifted one to the left when compared to the
8400 frame_register_unwind call.
8401 (legacy_saved_regs_prev_register): Replace
8402 frame_saved_regs_register_unwind.
8403 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8404 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8405 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8406 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8407 (d10v_frame_unwind): Update.
8408 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8409 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8410 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8411 "saved_regs" with "this_saved_regs".
8412
efd710d6
AC
84132003-03-16 Andrew Cagney <cagney@redhat.com>
8414
8415 * frame.c (frame_pop): Don't call target_store_registers. Fix
8416 problem reported by Mark Kettenis.
8417
4e259f09
MK
84182003-03-16 Mark Kettenis <kettenis@gnu.org>
8419
8420 * i386-tdep.c (i386_register_type): Renamed from
8421 i386_register_virtual_type. Adjust function signature.
8422 (i386_gdbarch_init): Set register_type instead of
8423 deprecated_max_register_raw_size,
8424 deprecated_max_register_virtual_size and register_virtual_type.
8425
055bb976
AC
84262003-03-14 Andrew Cagney <cagney@redhat.com>
8427
8428 * frame.c (get_prev_frame): When a legacy frame, always call
8429 legacy_get_prev_frame. Simplify unwind code using assumption that
8430 the unwinder is new.
8431 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8432 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8433 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8434
ac2adee5
AC
84352003-03-14 Andrew Cagney <cagney@redhat.com>
8436
8437 * frame.c (get_saved_register): Delete function.
8438 * frame.h (get_saved_register): Delete declaration.
8439 * xstormy16-tdep.c: Update comment.
8440 * regcache.h: Update comments.
8441 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8442 get_saved_register and extract_address, use
8443 frame_read_unsigned_register.
8444 (sparc_frame_saved_pc): Ditto.
8445 (sparc_get_saved_register): Instead of get_saved_register, use
8446 frame_register.
8447 (sparc_pop_frame): Ditto.
8448 * findvar.c: Update comments.
8449 (value_of_register): Call frame_register instead of
8450 get_saved_register.
8451 (value_from_register): Ditto.
8452 * config/sparc/tm-sparc.h: Update comment.
8453 * breakpoint.c: Update comment.
8454
129c1cd6
AC
84552003-03-14 Andrew Cagney <cagney@redhat.com>
8456
8457 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8458 GET_SAVED_REGISTER.
8459 * gdbarch.h, gdbarch.c: Re-generate.
8460 * frame.h: Update comments.
8461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8462 * x86-64-tdep.c (x86_64_init_abi): Update.
8463 * sparc-tdep.c (sparc_gdbarch_init): Update.
8464 * sh-tdep.c (sh_gdbarch_init): Update.
8465 * mips-tdep.c (mips_gdbarch_init): Update.
8466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8467 * cris-tdep.c (cris_gdbarch_init): Update.
8468 * ia64-tdep.c (ia64_gdbarch_init): Update.
8469 * frame.c (frame_register): Update.
8470 (get_saved_register): Update.
8471 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8472
749b82f6
AC
84732003-03-13 Andrew Cagney <cagney@redhat.com>
8474
8475 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8476 * gdbarch.h, gdbarch.c: Regenerate.
8477 * valops.c (hand_function_call): Update comment.
8478 * stack.c (return_command): Update comment.
8479 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8480 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8482 * x86-64-tdep.c (x86_64_init_abi): Update.
8483 * vax-tdep.c (vax_gdbarch_init): Update.
8484 * v850-tdep.c (v850_gdbarch_init): Update.
8485 * sparc-tdep.c (sparc_gdbarch_init): Update.
8486 * sh-tdep.c (sh_gdbarch_init): Update.
8487 * s390-tdep.c (s390_gdbarch_init): Update.
8488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8489 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8490 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8491 * mips-tdep.c (mips_gdbarch_init): Update.
8492 * mcore-tdep.c (mcore_gdbarch_init): Update.
8493 * m68k-tdep.c (m68k_gdbarch_init): Update.
8494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8495 * ia64-tdep.c (ia64_gdbarch_init): Update.
8496 * i386-tdep.c (i386_gdbarch_init): Update.
8497 * hppa-tdep.c (hppa_gdbarch_init): Update.
8498 * h8300-tdep.c (h8300_gdbarch_init): Update.
8499 * frv-tdep.c (frv_gdbarch_init): Update.
8500 * cris-tdep.c (cris_gdbarch_init): Update.
8501 * avr-tdep.c (avr_gdbarch_init): Update.
8502 * arm-tdep.c (arm_gdbarch_init): Update.
8503 * alpha-tdep.c (alpha_gdbarch_init): Update.
8504
1594fa56
AC
85052003-03-13 Andrew Cagney <cagney@redhat.com>
8506
8507 * frame.c (legacy_frame_p): New function.
8508 (get_prev_frame): Use legacy_frame_p.
8509 * frame.h (legacy_frame_p): Declare.
8510
7717fda3
V
85112003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8512
fbe586ae 8513 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8514 listing corrected.
8515
0c67cbe9
V
85162003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8517
fbe586ae 8518 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8519
03febf99
AC
85202003-03-12 Andrew Cagney <cagney@redhat.com>
8521
8522 * frame.c (get_prev_frame): Rename the frame parameter to
8523 "this_frame".
8524 (get_next_frame, legacy_get_prev_frame): Ditto.
8525
0a1e1ca1
AC
85262003-03-12 Andrew Cagney <cagney@redhat.com>
8527
8528 * frame.c (get_current_frame): Check target_has_registers before
8529 checking target_has_stack.
8530 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8531 instead of deprecated_selected_frame.
8532 * findvar.c (value_of_register): Pass "frame", not
8533 deprecated_selected_frame, to value_of_builtin_reg.
8534
a66a9c23
AC
85352003-03-12 Andrew Cagney <cagney@redhat.com>
8536
8537 * regcache.c (regcache_cooked_write_signed): New function.
8538 (regcache_cooked_write_unsigned): New function.
8539 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8540 (regcache_cooked_read_signed): Fix regnum in range assertion.
8541 * regcache.h (regcache_cooked_write_signed): Declare.
8542 (regcache_cooked_write_unsigned): Declare.
8543
8bedc050
AC
85442003-03-12 Andrew Cagney <cagney@redhat.com>
8545
8546 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8547 * gdbarch.h, gdbarch.c: Re-generate.
8548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8549 * x86-64-tdep.h: Update.
8550 * x86-64-tdep.c (x86_64_init_abi): Update.
8551 * v850-tdep.c (v850_gdbarch_init): Update.
8552 * sparc-tdep.c (sparc_gdbarch_init): Update.
8553 * sh-tdep.c (sh_gdbarch_init): Update.
8554 * s390-tdep.c (s390_gdbarch_init): Update.
8555 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8556 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8557 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8558 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8559 * mips-tdep.c (mips_gdbarch_init): Update.
8560 * mcore-tdep.c (mcore_gdbarch_init): Update.
8561 * m68k-tdep.c (m68k_gdbarch_init): Update.
8562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8563 * ia64-tdep.c (ia64_gdbarch_init): Update.
8564 * i386-tdep.c (i386_gdbarch_init): Update.
8565 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8566 * hppa-tdep.c (hppa_gdbarch_init): Update.
8567 * h8300-tdep.c (h8300_gdbarch_init): Update.
8568 * frv-tdep.c (frv_gdbarch_init): Update.
8569 * cris-tdep.c (cris_gdbarch_init): Update.
8570 * avr-tdep.c (avr_gdbarch_init): Update.
8571 * arm-tdep.c (arm_gdbarch_init): Update.
8572 * alpha-tdep.c (alpha_gdbarch_init): Update.
8573 * sh-tdep.c (sh_init_extra_frame_info): Update.
8574 (sh64_init_extra_frame_info): Update.
8575 * ns32knbsd-nat.c (frame_num_args): Update.
8576 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8577 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8578 (xstormy16_frame_chain_valid): Update.
8579 * vax-tdep.c (vax_saved_pc_after_call): Update.
8580 * v850-tdep.c (v850_frame_chain): Update.
8581 (v850_pop_frame): Update.
8582 (v850_init_extra_frame_info): Update.
8583 * sparc-tdep.c (setup_arbitrary_frame): Update.
8584 * ns32k-tdep.c (umax_frame_num_args): Update.
8585 * s390-tdep.c (s390_pop_frame_regular): Update.
8586 * mn10300-tdep.c (mn10300_frame_chain): Update.
8587 (mn10300_pop_frame_regular): Update.
8588 (mn10300_init_extra_frame_info): Update.
8589 * mips-tdep.c (mips_init_frame_pc_first): Update.
8590 (mips_frame_chain): Update.
8591 (mips_pop_frame): Update.
8592 * mcore-tdep.c (mcore_frame_chain): Update.
8593 (mcore_pop_frame): Update.
8594 (mcore_init_extra_frame_info): Update.
8595 * arch-utils.c (init_frame_pc_default): Update.
8596 * m68k-tdep.c (isi_frame_num_args): Update.
8597 (delta68_frame_num_args): Update.
8598 (news_frame_num_args): Update.
8599 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8600 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8601 (alpha_frame_chain): Update.
8602 (alpha_pop_frame): Update.
8603 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8604 (hppa_init_extra_frame_info): Update.
8605 (hppa_frame_chain): Update.
8606 (hppa_frame_chain_valid): Update.
8607 * cris-tdep.c (cris_init_extra_frame_info): Update.
8608 * avr-tdep.c (avr_init_extra_frame_info): Update.
8609 * arm-tdep.c (arm_frame_chain_valid): Update.
8610 (arm_init_extra_frame_info): Update.
8611 (arm_pop_frame): Update.
8612 * frame.c (frame_pc_unwind): Update.
8613 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8614 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8615 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8616 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8617 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8618 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8619
7a25a7c1
AC
86202003-03-12 Andrew Cagney <cagney@redhat.com>
8621
8622 Eliminate the need for POP_FRAME.
8623 * frame.c (do_frame_unwind_register): New function.
8624 (frame_pop): When no POP_FRAME, pop the frame using register
8625 unwind and a scratch regcache.
8626 (frame_saved_regs_pop): Delete function.
8627 (trad_frame_unwinder): Update.
8628 * d10v-tdep.c (d10v_frame_pop): Delete function.
8629 (d10v_frame_unwind): Update.
8630 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8631 (sentinel_frame_unwinder): Update.
8632 * dummy-frame.c (dummy_frame_pop): Delete function.
8633 (dummy_frame_unwind): Update.
8634 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8635 (struct frame_unwind): Update.
8636
2f38ef89
KB
86372003-03-11 Kevin Buettner <kevinb@redhat.com>
8638
8639 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8640 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8641 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8642 Do range checks on register number obtained from debugging info.
8643 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8644 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8645 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8646 mapping function.
8647 (do_fp_register_row): Fix typo which caused double type to be
8648 used when attempting to unpack a float.
8649
552f4abf
JB
86502003-03-11 J. Brobecker <brobecker@gnat.com>
8651
8652 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8653
e0d2ae16
AC
86542003-03-11 Andrew Cagney <cagney@redhat.com>
8655
8656 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8657 frame. Problem found by Corinna Vinschen.
8658
ddbfdd06
PM
86592003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8660
8661 * doublest.c (floatformat_from_length): Accept also
8662 the real size of 'long double' type.
8663
088b2ddc 86642003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8665
088b2ddc 8666 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8667 * breakpoint.c (bpstat_copy): Copy the command lines as well
8668 as the old value, to match what is freed in bpstat_clear.
8669
f56f77c1
DC
86702003-03-10 David Carlton <carlton@math.stanford.edu>
8671
8672 * minsyms.c (add_minsym_to_hash_table): Replace
8673 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8674 (compare_minimal_symbols, compact_minimal_symbols)
8675 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8676 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8677 of DEPRECATED_SYMBOL_MATCHES_NAME.
8678 (lookup_minimal_symbol_solib_trampoline): Ditto.
8679
5602984a
AC
86802003-03-10 Andrew Cagney <cagney@redhat.com>
8681
8682 * regcache.h (regcache_cooked_read_ftype): Define.
8683 (regcache_save, regcache_restore): Add a cooked_read parameter.
8684 * regcache.c (regcache_save, regcache_restore): Update.
8685 (do_cooked_read): New function.
8686 (regcache_cpy): Pass do_cooked_read to regcache_save and
8687 regcache_restore.
8688
8bedc050
AC
86892003-03-10 Andrew Cagney <cagney@redhat.com>
8690
8691 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8692 * gdbarch.h, gdbarch.c: Re-generate.
8693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8694 * x86-64-tdep.h: Update.
8695 * x86-64-tdep.c (x86_64_init_abi): Update.
8696 * v850-tdep.c (v850_gdbarch_init): Update.
8697 * sparc-tdep.c (sparc_gdbarch_init): Update.
8698 * sh-tdep.c (sh_gdbarch_init): Update.
8699 * s390-tdep.c (s390_gdbarch_init): Update.
8700 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8701 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8702 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8703 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8704 * mips-tdep.c (mips_gdbarch_init): Update.
8705 * mcore-tdep.c (mcore_gdbarch_init): Update.
8706 * m68k-tdep.c (m68k_gdbarch_init): Update.
8707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8708 * ia64-tdep.c (ia64_gdbarch_init): Update.
8709 * i386-tdep.c (i386_gdbarch_init): Update.
8710 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8711 * hppa-tdep.c (hppa_gdbarch_init): Update.
8712 * h8300-tdep.c (h8300_gdbarch_init): Update.
8713 * frv-tdep.c (frv_gdbarch_init): Update.
8714 * cris-tdep.c (cris_gdbarch_init): Update.
8715 * avr-tdep.c (avr_gdbarch_init): Update.
8716 * arm-tdep.c (arm_gdbarch_init): Update.
8717 * alpha-tdep.c (alpha_gdbarch_init): Update.
8718 * sh-tdep.c (sh_init_extra_frame_info): Update.
8719 (sh64_init_extra_frame_info): Update.
8720 * ns32knbsd-nat.c (frame_num_args): Update.
8721 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8722 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8723 (xstormy16_frame_chain_valid): Update.
8724 * vax-tdep.c (vax_saved_pc_after_call): Update.
8725 * v850-tdep.c (v850_frame_chain): Update.
8726 (v850_pop_frame): Update.
8727 (v850_init_extra_frame_info): Update.
8728 * sparc-tdep.c (setup_arbitrary_frame): Update.
8729 * ns32k-tdep.c (umax_frame_num_args): Update.
8730 * s390-tdep.c (s390_pop_frame_regular): Update.
8731 * mn10300-tdep.c (mn10300_frame_chain): Update.
8732 (mn10300_pop_frame_regular): Update.
8733 (mn10300_init_extra_frame_info): Update.
8734 * mips-tdep.c (mips_init_frame_pc_first): Update.
8735 (mips_frame_chain): Update.
8736 (mips_pop_frame): Update.
8737 * mcore-tdep.c (mcore_frame_chain): Update.
8738 (mcore_pop_frame): Update.
8739 (mcore_init_extra_frame_info): Update.
8740 * arch-utils.c (init_frame_pc_default): Update.
8741 * m68k-tdep.c (isi_frame_num_args): Update.
8742 (delta68_frame_num_args): Update.
8743 (news_frame_num_args): Update.
8744 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8745 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8746 (alpha_frame_chain): Update.
8747 (alpha_pop_frame): Update.
8748 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8749 (hppa_init_extra_frame_info): Update.
8750 (hppa_frame_chain): Update.
8751 (hppa_frame_chain_valid): Update.
8752 * cris-tdep.c (cris_init_extra_frame_info): Update.
8753 * avr-tdep.c (avr_init_extra_frame_info): Update.
8754 * arm-tdep.c (arm_frame_chain_valid): Update.
8755 (arm_init_extra_frame_info): Update.
8756 (arm_pop_frame): Update.
8757 * frame.c (frame_pc_unwind): Update.
8758 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8759 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8760 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8761 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8762 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8763 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8764
12cc2063
AC
87652003-03-10 Andrew Cagney <cagney@redhat.com>
8766
8767 * gdbarch.sh (gdbarch_unwind_pc): New method.
8768 * gdbarch.h, gdbarch.c: Regenerate.
8769 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8770 but use read_pc and FRAME_SAVED_PC as fall backs.
8771 (frame_saved_regs_pc_unwind): Delete function.
8772 (trad_frame_unwinder): Update.
8773 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8774 (struct frame_unwind): Update.
8775 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8776 (dummy_frame_unwind): Update.
8777 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8778 (sentinel_frame_unwinder): Update.
8779 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8780 (d10v_frame_unwind): Update.
8781 (d10v_unwind_pc): New function.
8782 (d10v_gdbarch_init): Set unwind_pc.
8783
ef840a37
AC
87842003-03-10 Andrew Cagney <cagney@redhat.com>
8785
a2ce2e56
AC
8786 * gdbarch.h: Re-generate.
8787
ef840a37
AC
8788 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8789 PC.
8790 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8791 the PC register.
8792
08f3424b
MK
87932003-03-08 Mark Kettenis <kettenis@gnu.org>
8794
8795 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8796
1248ede2
AC
87972003-03-08 Andrew Cagney <cagney@redhat.com>
8798
8799 * cli-out.c: Update copyright.
8800 (cli_out_data): Define typedef. Use instead of ui_out_data.
8801
f49bacc8
AC
88022003-03-08 Andrew Cagney <cagney@redhat.com>
8803
8804 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8805 the result.
8806
9b05f993
AC
88072003-03-07 Andrew Cagney <cagney@redhat.com>
8808
8809 * gdbarch.sh: Don't generate two macro definitions when an
8810 undefined macro taking no arguments.
8811 * gdbarch.h: Regenerate.
8ffd9b1b 8812
166f4c7b
ML
88132002-03-07 Michal Ludvig <mludvig@suse.cz>
8814
8815 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8816 (x86_64_unwind_dummy_id): New functions.
8817 (x86_64_init_abi): Register these two new functions.
8818
6d686a84
ML
88192003-03-07 Michal Ludvig <mludvig@suse.cz>
8820
8821 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8822 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8823 separate function.
8824 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8825
6314f104
AC
88262003-03-05 Andrew Cagney <cagney@redhat.com>
8827
8828 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8829 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8830 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8831 to use unwind_dummy_id when a dummy frame.
8832 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8833 predicate.
8834 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8835
ceea5145
AC
88362003-03-05 Andrew Cagney <cagney@redhat.com>
8837
8838 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8839 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8840 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8841 values.
8842
0d843116
AC
88432003-03-05 Andrew Cagney <cagney@redhat.com>
8844
8845 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8846 (struct d10v_unwind_cache): Delete field "frameless". Replace
8847 "next_addr" with "sp_offset". Add "r11_offset".
8848 (d10v_frame_unwind_cache): Update.
8849 (prologue_find_regs): Update. When "mv r11, sp", save the
8850 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8851 RN was saved in r11_offset.
8852
b2579786
AC
88532003-03-05 Andrew Cagney <cagney@redhat.com>
8854
8855 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8856 cached PC value in the next frame.
8857
218e5956
AC
88582003-03-05 Andrew Cagney <cagney@redhat.com>
8859
8860 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8861 "id_unwind_cache" with "id".
8862 (frame_id_unwind): Delete declaration.
8863 * frame.c (frame_id_unwind): Delete function.
8864 (get_prev_frame): Call the frame id unwind method directly. Store
8865 the returned next frame's ID value in NEXT_FRAME. Note that there
8866 is a problem with the wrong unwind ID being called with the wrong
8867 unwind cache.
8868
ed363b1b
DJ
88692003-03-05 Daniel Jacobowitz <drow@mvista.com>
8870
8871 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8872
fe1f4a5e
DJ
88732003-03-05 James Ingham <jingham@apple.com>
8874 Daniel Jacobowitz <drow@mvista.com>
8875
8876 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8877 (auto_cp_abi): New variable.
8878 (current_cp_abi, num_cp_abis): Make static.
8879 (CP_ABI_MAX): Define.
8880 (cp_abis): Turn into an array.
8881 (value_virtual_fn_field): Fix formatting.
8882 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8883 takes a pointer.
8884 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8885 (list_cp_abis, _initialize_cp_abi): New functions.
8886 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8887 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8888 switch_to_cp_abi. Update prototype for register_cp_abi.
8889 * Makefile.in (cp-abi.o): Update dependencies.
8890 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8891 instead of switch_to_cp_abi.
8892 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8893 register_cp_abi.
8894 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8895 register_cp_abi.
8896 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8897
e4adbba9
DJ
88982003-03-05 Daniel Jacobowitz <drow@mvista.com>
8899
8900 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8901 * dwarf2loc.c: Include "regcache.h".
8902 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8903 register_size.
8904 * Makefile.in (dwarf2loc.o): Update dependencies.
8905
91ccbfc1
TR
89062003-03-04 Theodore A. Roth <troth@openavr.org>
8907
8908 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8909 number of io registers reported by remote target is not a multiple of
8910 step.
8911
3d4e8fd2
DC
89122003-03-04 David Carlton <carlton@math.stanford.edu>
8913
8914 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8915 (lookup_symbol_aux_psymtabs): Update call to
8916 lookup_partial_symbol.
8917 (lookup_transparent_type, find_main_psymtab)
8918 (make_symbol_overload_list): Ditto.
8919
ed42d87b
KH
89202003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8921
8922 * MAINTAINERS (Write after approval): Update my email address.
8923
a0ed5532
AC
89242003-03-03 Andrew Cagney <cagney@redhat.com>
8925
8926 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8927 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8928 predicate. Replace MAX_REGISTER_RAW_SIZE.
8929 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8930 MAX_REGISTER_VIRTUAL_SIZE.
8931 * regcache.c (legacy_max_register_raw_size): New function.
8932 (legacy_max_register_virtual_size): New function.
8933 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8934 (MAX_REGISTER_RAW_SIZE): Define.
8935 (legacy_max_register_raw_size): Declare.
8936 (legacy_max_register_virtual_size): Declare.
8937 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8938 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8939 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8940 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8941 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8942 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8943 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8944 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8945 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8947 * vax-tdep.c (vax_gdbarch_init): Update.
8948 * v850-tdep.c (v850_gdbarch_init): Update.
8949 * sparc-tdep.c (sparc_gdbarch_init): Update.
8950 * sh-tdep.c (sh_gdbarch_init): Update.
8951 * s390-tdep.c (s390_gdbarch_init): Update.
8952 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8953 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8954 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8955 * mips-tdep.c (mips_gdbarch_init): Update.
8956 * mcore-tdep.c (mcore_gdbarch_init): Update.
8957 * m68k-tdep.c (m68k_gdbarch_init): Update.
8958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8959 * ia64-tdep.c (ia64_gdbarch_init): Update.
8960 * i386-tdep.c (i386_gdbarch_init): Update.
8961 * hppa-tdep.c (hppa_gdbarch_init): Update.
8962 * h8300-tdep.c (h8300_gdbarch_init): Update.
8963 * frv-tdep.c (frv_gdbarch_init): Update.
8964 * cris-tdep.c (cris_gdbarch_init): Update.
8965 * avr-tdep.c (avr_gdbarch_init): Update.
8966 * arm-tdep.c (arm_gdbarch_init): Update.
8967 * alpha-tdep.c (alpha_gdbarch_init): Update.
8968 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8969 max_register_raw_size or max_register_virtual_size.
8970
8e437497
DC
89712003-03-03 David Carlton <carlton@math.stanford.edu>
8972
8973 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8974 SYMBOL_MATCHES_NAME, add comment.
8975 (SYMBOL_MATCHES_NATURAL_NAME): New.
8976 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8977 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8978 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8979 * symtab.c (lookup_partial_symbol): Use
8980 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8981 unhelpful comment.
8982 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8983 SYMBOL_MATCHES_NAME.
8984 Fix for PR c++/33.
8985
25120b0d
DC
89862003-03-03 David Carlton <carlton@math.stanford.edu>
8987
8988 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8989 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8990 by regexp matching against SYMBOL_NATURAL_NAME.
8991
78a11fb4
DC
89922003-03-03 David Carlton <carlton@math.stanford.edu>
8993
8994 * linespec.c (find_method): Extract code into collect_methods.
8995 (collect_methods): New.
8996
645dd519
MK
89972003-03-02 Mark Kettenis <kettenis@gnu.org>
8998
b4700d91
MK
8999 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9000 get_frame_base.
9001
645dd519
MK
9002 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9003 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9004
0aa7e1aa
SC
90052003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9006
8ffd9b1b 9007 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9008 and not regnum when summing the size of all registers up to regnum.
9009
f30ee0bc
AC
90102003-03-01 Andrew Cagney <cagney@redhat.com>
9011
9012 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9013 FRAME_INIT_SAVED_REGS.
9014 * gdbarch.h, gdbarch.c: Regenerate.
9015 * stack.c (frame_info): Update.
9016 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9017 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9018 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9019 * ns32k-tdep.c (ns32k_pop_frame): Update.
9020 * mips-tdep.c (mips_pop_frame): Update.
9021 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9022 * ia64-tdep.c (ia64_frame_chain): Update.
9023 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9024 (ia64_frameless_function_invocation): Update.
9025 (ia64_init_extra_frame_info): Update.
9026 (ia64_pop_frame_regular): Update.
9027 * frame.h (struct frame_info): Update comment.
9028 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9029 * frame.c (frame_saved_regs_register_unwind): Update.
9030 (frame_saved_regs_register_unwind): Update.
9031 (deprecated_generic_get_saved_register): Update.
9032 * cris-tdep.c: Update comment.
9033 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9034 Rename macro.
9035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9036 * x86-64-tdep.c (x86_64_init_abi): Update.
9037 * vax-tdep.c (vax_gdbarch_init): Update.
9038 * v850-tdep.c (v850_gdbarch_init): Update.
9039 * sparc-tdep.c (sparc_gdbarch_init): Update.
9040 * sh-tdep.c (sh_gdbarch_init): Update.
9041 * s390-tdep.c (s390_gdbarch_init): Update.
9042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9043 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9044 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9045 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9046 * mips-tdep.c (mips_gdbarch_init): Update.
9047 * mcore-tdep.c (mcore_gdbarch_init): Update.
9048 * m68k-tdep.c (m68k_gdbarch_init): Update.
9049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9050 * ia64-tdep.c (ia64_gdbarch_init): Update.
9051 * i386-tdep.c (i386_gdbarch_init): Update.
9052 * frv-tdep.c (frv_gdbarch_init): Update.
9053 * avr-tdep.c (avr_gdbarch_init): Update.
9054 * arm-tdep.c (arm_gdbarch_init): Update.
9055 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9056
42fa7c0f
AC
90572003-03-01 Andrew Cagney <cagney@redhat.com>
9058
9059 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9060 option enum and switch. When no windows, set the interpreter to
9061 INTERP_CONSOLE.
8ffd9b1b 9062
49c7e338
AC
90632003-03-01 Andrew Cagney <cagney@redhat.com>
9064
9065 * main.c (captured_main): Replace magic option characters with an
9066 enum.
9067
e9582e71
AC
90682003-03-01 Andrew Cagney <cagney@redhat.com>
9069
9070 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9071 INIT_EXTRA_FRAME_INFO.
9072 * gdbarch.h, gdbarch.c: Regenerate.
9073 * arm-tdep.c: Update comments.
9074 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9075 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9076 * frame.h, avr-tdep.c: Ditto.
9077 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9078 (create_new_frame, legacy_get_prev_frame): Ditto.
9079 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9080 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9082 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9083 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9084 * v850-tdep.c (v850_gdbarch_init): Ditto.
9085 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9086 * sh-tdep.c (sh_gdbarch_init): Ditto.
9087 * s390-tdep.c (s390_gdbarch_init): Ditto.
9088 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9089 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9090 * mips-tdep.c (mips_gdbarch_init): Ditto.
9091 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9093 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9094 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9095 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9096 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9097 * frv-tdep.c (frv_gdbarch_init): Ditto.
9098 * cris-tdep.c (cris_gdbarch_init): Ditto.
9099 * avr-tdep.c (avr_gdbarch_init): Ditto.
9100 * arm-tdep.c (arm_gdbarch_init): Ditto.
9101 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9102 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9103
35cac7cf
AC
91042003-03-01 Andrew Cagney <cagney@redhat.com>
9105
9106 * gdbarch.sh (register_type): New function with predicate.
9107 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9108 * gdbarch.h, gdbarch.c: Re-generate.
9109 * arch-utils.c (generic_register_byte): Use generic_register_size.
9110 (generic_register_size): When available, use
9111 gdbarch_register_type.
9112 * regcache.c (init_regcache_descr): When available, initialize the
9113 register type array using gdbarch_register_type. If the
9114 architecture supplies gdbarch_register_type, do not use the legacy
9115 regcache layout.
9116 * d10v-tdep.c (d10v_register_type): Replace
9117 d10v_register_virtual_type.
9118 (d10v_gdbarch_init): Set register_type instead of
9119 register_virtual_type.
9120
7b83296f
AC
91212003-03-01 Andrew Cagney <cagney@redhat.com>
9122
9123 * Makefile.in (ax-gdb.o): Update dependencies.
9124 * ax-gdb.c: Include "regcache.h".
9125 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9126 * findvar.c (value_of_register): Ditto.
9127 * infcmd.c (default_print_registers_info): Ditto.
9128
eadc1c87
MK
91292003-03-01 Mark Kettenis <kettenis@gnu.org>
9130
9131 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9132 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9133
14143612
MK
91342003-03-01 Mark Kettenis <kettenis@gnu.org>
9135
9136 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9137 of STREQ.
9138
a55cc764
DJ
91392003-02-28 Daniel Jacobowitz <drow@mvista.com>
9140
9141 * Makefile.in (dwarf2loc.o): Update dependencies.
9142 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9143 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9144 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9145 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9146 (locexpr_tracepoint_var_ref): New function.
9147 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9148
08a617da
AC
91492003-02-28 Andrew Cagney <cagney@redhat.com>
9150
9151 * regcache.c (register_size): New function.
9152 * regcache.h (register_size): Declare
9153 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9154 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9155
4224873a
DC
91562003-02-28 David Carlton <carlton@math.stanford.edu>
9157
9158 * linespec.c (decode_compound): Extract code into find_method.
9159 (find_method): New.
9160
ccdc5d7f
JB
91612003-02-28 J. Brobecker <brobecker@gnat.com>
9162
9163 * Makefile.in: Add rules to build and link in observer.o.
9164
974e8ced
JB
91652003-02-27 J. Brobecker <brobecker@gnat.com>
9166
9167 * observer.c: Minor comments edits.
9168
7a28f973
JB
91692003-02-27 J. Brobecker <brobecker@gnat.com>
9170
9171 * observer.h, observer.c: New file.
9172
27cddce2
AC
91732003-02-27 Andrew Cagney <cagney@redhat.com>
9174
9175 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9176
b94a41a1
SC
91772003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9178
9179 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9180 (M6812_OP_STS_EXT): Likewise.
9181 (m6811_prologue): Use the above to recognize prologue.
9182 (m6812_prologue): Likewise.
9183
c8be8951
DC
91842003-02-27 David Carlton <carlton@math.stanford.edu>
9185
9186 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9187 SYMBOL_PRINT_NAME.
9188 (compare_psymbols): Ditto.
9189 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9190
d05bb1fc
MS
91912003-02-27 Michael Snyder <msnyder@redhat.com>
9192
4e845cd3
MS
9193 * f-lang.c (build_fortran_types): New function.
9194 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9195 * doublest.c (extract_floating): Fix warning text.
9196
f3824013
AC
91972003-02-27 Andrew Cagney <cagney@redhat.com>
9198
9199 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9200 predicate. Replaces PUSH_DUMMY_FRAME.
9201 * gdbarch.h, gdbarch.c: Regnerate.
9202 * valops.c (hand_function_call): Update. Call
9203 generic_push_dummy_frame directly.
9204 * vax-tdep.c (vax_gdbarch_init): Update.
9205 * sparc-tdep.c (sparc_gdbarch_init): Update.
9206 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9207 * m68k-tdep.c (m68k_gdbarch_init): Update.
9208 * hppa-tdep.c (hppa_gdbarch_init): Update.
9209 * alpha-tdep.c (alpha_gdbarch_init): Update.
9210 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9211 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9212 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9213 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9214 push_dummy_frame to generic_push_dummy_frame.
9215 * v850-tdep.c (v850_gdbarch_init): Ditto.
9216 * sh-tdep.c (sh_gdbarch_init): Ditto.
9217 * s390-tdep.c (s390_gdbarch_init): Ditto.
9218 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9219 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9220 * mips-tdep.c (mips_gdbarch_init): Ditto.
9221 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9223 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9224 * i386-tdep.c (i386_gdbarch_init): Ditto.
9225 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9226 * frv-tdep.c (frv_gdbarch_init): Ditto.
9227 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9228 * cris-tdep.c (cris_gdbarch_init): Ditto.
9229 * avr-tdep.c (avr_gdbarch_init): Ditto.
9230 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9231
ad188201
KB
92322003-02-26 Kevin Buettner <kevinb@redhat.com>
9233
9234 * mips-tdep.c (show_mips_abi): New function.
9235 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9236 command ``show mips abi''.
9237
6b37567a 92382003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9239
6b37567a 9240 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9241 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9242 more sline entries have been seen for the function.
9243
d3e0a5bf
MC
92442003-02-26 Michael Chastain <mec@shout.net>
9245
9246 * configure: Regenerate with autoconf 000227.
9247
18972eea
MC
92482003-02-26 Michael Chastain <mec@shout.net>
9249
9250 Close PR build/660.
9251 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9252 for old libc5/glibc.
9253 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9254
0bbde931
KW
92552003-02-26 Kris Warkentin <kewarken@qnx.com>
9256
9257 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9258 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9259
27ca5dad
MC
92602003-02-26 Michael Chastain <mec@shout.net>
9261
9262 * configure.in: New variable HAVE_UINTPTR_T.
9263 * configure, config.in: Regenerated.
9264
6f88d630
DJ
92652003-02-26 Daniel Jacobowitz <drow@mvista.com>
9266
9267 Fix PR build/1097.
9268 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9269
b14185ce
AC
92702003-02-25 Andrew Cagney <cagney@redhat.com>
9271
9272 * frame.c (get_prev_frame): Add comment on check for
9273 inside_entry_func. Only check for inside_entry_file when not a
9274 dummy and not a sentinel. Check that the new frame is not inner
9275 to the old frame.
9276
ac2bd0a9
AC
92772003-02-25 Andrew Cagney <cagney@redhat.com>
9278
9279 * frame.c (frame_debug): New variable.
9280 (_initialize_frame): Add "set/show debug frame" command.
9281 (get_prev_frame): When frame_debug, print reason why unwind
9282 failed.
9283
b18a0fd2
MC
92842003-02-25 Michael Chastain <mec@shout.net>
9285
9286 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9287 to avoid uintptr_t definition problems.
9288
22abf04a
DC
92892003-02-25 David Carlton <carlton@math.stanford.edu>
9290
9291 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9292 (SYMBOL_LINKAGE_NAME): Ditto.
9293 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9294 SYMBOL_LINKAGE_NAME.
9295 (struct general_symbol_info): Expand comment.
9296 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9297 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9298 (SYMBOL_MATCHES_REGEXP): Ditto.
9299 * symtab.c (symbol_natural_name): New function.
9300 * objfiles.h: Replace all uses of SYMBOL_NAME by
9301 DEPRECATED_SYMBOL_NAME.
9302 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9303 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9304 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9305 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9306 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9307 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9308 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9309 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9310 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9311 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9312 * ada-exp.y: Ditto.
9313 * ada-exp.y: Update copyright.
9314 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9315 * cp-valprint.c: Ditto.
9316
1a5848f6
JJ
93172003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9318
9319 * infptrace.c (detach): Do not flag error if ptrace detach fails
9320 and errno is set to ESRCH.
9321
7343d46a
AC
93222003-02-24 Andrew Cagney <cagney@redhat.com>
9323
9324 * infptrace.c (udot_info): Change type of udot_off to long. Use
9325 paddr when printing udot_off's value.
9326
49fa1dc2
DC
93272003-02-24 David Carlton <carlton@math.stanford.edu>
9328
9329 * symtab.c (make_symbol_overload_list): Only read in partial
9330 symtabs containing a matching partial symbol.
9331
0fe19209
DC
93322003-02-24 David Carlton <carlton@math.stanford.edu>
9333
9334 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9335 do the comparison, not strcmp.
9336 * symfile.c (compare_psymbols): Ditto.
9337 * defs.h: Declare strcmp_iw_ordered.
9338 * utils.c (strcmp_iw_ordered): New function.
9339
8e3ee7b5
JB
93402003-02-24 Jim Blandy <jimb@redhat.com>
9341
9342 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9343 support, shared libs): Remove my name from here, to better reflect
9344 reality.
9345
7df1a324
KW
93462003-02-24 Kris Warkentin <kewarken@qnx.com>
9347
9348 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9349 (target_ops): Add to_have_continuable_watchpoint.
9350 * target.c (update_current_target): Add INHERIT line for
9351 to_have_continuable_watchpoint.
9352 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9353 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9354 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9355 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9356
d1c76907
EZ
93572003-02-24 Elena Zannoni <ezannoni@redhat.com>
9358
9359 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9360 maintainership.
9361
2610b0bf
KW
93622003-02-24 Kris Warkentin <kewarken@qnx.com>
9363
f46169db
KW
9364 * solib.c (solib_open): Call target defined search function after
9365 failing with solib-search-path.
9366 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9367 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9368
9a3c34fe
KW
93692003-02-24 Kris Warkentin <kewarken@qnx.com>
9370
f46169db 9371 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9372
2417dd25
SC
93732003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9374
9375 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9376
b631436b
SC
93772003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9378
9379 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9380 (m68hc11_add_reggroups): New function.
9381 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9382 (m68hc11_gdbarch_init): Install the reggroups.
9383 (_initialize_m68hc11_tdep): Initialize them.
9384
0aa8c1e4
JW
93852003-02-21 James E Wilson <wilson@tuliptree.org>
9386
9387 * MAINTAINERS: Update my email address.
9388
50ceaba5
DC
93892003-02-21 David Carlton <carlton@math.stanford.edu>
9390
9391 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9392
4c2df51b
DJ
93932003-02-21 Daniel Jacobowitz <drow@mvista.com>
9394
9395 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9396 * symtab.h: Add opaque declarations of struct axs_value and
9397 struct agent_expr.
9398 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9399 (struct location_funcs): New type.
9400 (struct symbol): Add "loc" to aux_value.
9401 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9402 * dwarf2read.c: Include "dwarf2expr.h".
9403 (dwarf2_symbol_mark_computed): New function.
9404 (read_func_scope): Use it.
9405 (var_decode_location): New function.
9406 (new_symbol): Use it.
9407 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9408
9409 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9410 (dwarf2expr_h, dwarf2loc_h): New variables.
9411 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9412 (dwarf2expr.o, dwarf2loc.o): New rules.
9413 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9414 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9415 LOC_COMPUTED_ARG.
9416 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9417 * m2-exp.y (yylex): Likewise.
9418 * printcmd.c (address_info, print_frame_args): Likewise.
9419 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9420 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9421 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9422 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9423 * symtab.c (lookup_block_symbol): Likewise.
9424
5784d15e
AF
94252003-02-20 Adam Fedor <fedor@gnu.org>
9426
9427 * symtab.h: Remove objc_specific struct
9428 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9429 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9430 Have language_objc use cplus_specific struct.
9431
d4cad8db
TT
94322003-02-20 Tom Tromey <tromey@redhat.com>
9433
9434 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9435 TYPE_NAME, when printing a String value. PR java/1075.
9436
2f9a90b4
AF
94372003-02-20 Adam Fedor <fedor@gnu.org>
9438
d38074a8 9439 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9440 * objc-lang.c (find_methods): Make static.
2f9a90b4 9441
6f17862b
CF
94422003-02-20 Christopher Faylor <cgf@redhat.com>
9443
9444 * win32-nat.c (get_image_name): Check return value from
9445 ReadProcessMemory.
9446 (child_xfer_memory): Ditto.
9447
715d1656
AO
94482003-02-20 Alexandre Oliva <aoliva@redhat.com>
9449
9450 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9451 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9452 '${exec_prefix}' (in addition to the expansion thereof) as
9453 relocatable.
9454 * configure: Rebuilt.
9455
b1262a02
DC
94562003-02-20 David Carlton <carlton@math.stanford.edu>
9457
9458 * symtab.c (search_symbols): Revert the search_symbols part of my
9459 2002-12-23 patch. Add comment.
9460
7134143f
DJ
94612002-02-20 Daniel Jacobowitz <drow@mvista.com>
9462
9463 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9464 * dbxread.c (elfstab_build_psymtabs): Don't call
9465 install_minimal_symbols.
9466 (stabsect_build_psymtabs): Likewise.
9467 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9468 earlier.
9469 * somread.c (som_symfile_read): Call install_minimal_symbols
9470 and do_cleanups earlier.
9471 * nlmread.c (nlm_symfile_read): Likewise.
9472 * mdebugread.c (elfmdebug_build_psymtabs): Call
9473 install_minimal_symbols and make appropriate cleanups.
9474
cf466558
KB
94752003-02-20 Kevin Buettner <kevinb@redhat.com>
9476
9477 * solib.c (reload_shared_libraries): New function.
9478 (_initialize_solib): Add callbacks for ``set solib-search-path''
9479 and ``set solib-absolute-prefix''.
9480
de5ad195
DC
94812003-02-20 David Carlton <carlton@math.stanford.edu>
9482
9483 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9484 expand comment.
9485 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9486 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9487 * ada-typeprint.c (ada_typedef_print): Ditto.
9488 * ax-gdb.c (gen_var_ref): Ditto.
9489 * breakpoint.c (print_one_breakpoint): Ditto.
9490 * buildsym.c (finish_block): Ditto.
9491 * c-valprint.c (c_val_print): Ditto.
9492 * expprint.c (print_subexp): Ditto.
9493 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9494 * infcmd.c (jump_command): Ditto.
9495 * linespec.c (decode_line_2, decode_compound): Ditto.
9496 * maint.c (maintenance_translate_address): Ditto.
9497 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9498 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9499 Ditto.
8ffd9b1b
AJ
9500 * p-valprint.c (pascal_val_print): Ditto.
9501 * stabsread.c (define_symbol): Ditto.
de5ad195 9502 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9503 (print_frame_arg_vars, return_command): Ditto.
9504 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9505 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9506 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9507 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9508 (rbreak_command): Ditto.
9509 * tracepoint.c (tracepoints_info): Ditto.
9510 * typeprint.c (typedef_print): Ditto.
9511 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9512 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9513 * ada-typeprint.c: Update Copyright.
9514 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9515 * tracepoint.c, cli/cli-cmds.c: Ditto.
9516
f796e4be
KB
95172003-02-20 Kevin Buettner <kevinb@redhat.com>
9518
9519 * frame.c (generic_unwind_get_saved_register): Make non-static.
9520 * frame.h (generic_unwind_get_saved_register): Declare.
9521 * mips-tdep.c (read_next_frame_reg): Fetch register from
9522 current regcache when frame is NULL.
9523 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9524 that must be NULL.
9525 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9526 instead of frame_register_unwind().
9527
836cc9f4
AC
95282003-02-20 Andrew Cagney <ac131313@redhat.com>
9529
9530 * remote-sim.c (gdbsim_insert_breakpoint)
9531 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9532 code.
9533
501eef12
AC
95342003-02-20 Andrew Cagney <ac131313@redhat.com>
9535
9536 * remote.c (_initialize_remote): Add commands "set/show remote
9537 hardware-watchpoint-limit" and "set/show remote
9538 hardware-breakpoint-limit".
9539 (remote_hw_watchpoint_limit): Initialize to -1.
9540 (remote_hw_breakpoint_limit): Ditto.
9541 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9542
1b6bc7e0
CF
95432003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9544
9545 * coff-pe-read.c: New file - support reading of minimal symbols from a
9546 portable executable using the export table.
9547 * coff-pe-read.h: New file.
9548 * coffread.c: Include coff-pe-read.h.
9549 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9550 debugging symbols found.
9551 * Makefile.in (SFILES): Add coff-pe-read.o.
9552 (coff_pe_read_h): Define.
9553 (COMMON_OBS): Add coff-pe-read.o.
9554 (coffread.o): Add coff_pe_read_h dependency.
9555 (coff-pe-read.o): New target.
9556
fe898f56
DC
95572003-02-19 David Carlton <carlton@math.stanford.edu>
9558
9559 * Makefile.in (SFILES): Add block.c.
9560 (block_h): New.
9561 (COMMON_OBS): Add block.o.
9562 (block.o): New.
9563 (x86-64-tdep.o): Add $(block_h).
9564 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9565 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9566 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9567 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9568 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9569 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9570 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9571 * value.h: Add opaque declaration for struct block.
9572 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9573 * ada-lang.h: Ditto.
9574 * x86-64-tdep.c: #include "block.h"
9575 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9576 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9577 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9578 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9579 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9580 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9581 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9582 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9583 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9584 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9585 * symtab.c (block_function): Ditto.
9586 (contained_in): Ditto.
9587 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9588 block.h. Add opaque declaration for struct block.
9589 * symtab.h: Move block_function and contained_in declarations to
9590 block.h. Add opaque declarations for struct block, struct
9591 blockvector.
9592 (struct block): Move to block.h.
9593 (struct blockvector): Ditto.
9594 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9595 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9596 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9597 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9598 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9599 Ditto.
9600 * block.c: New file.
9601 * block.h: New file.
9602
173345b5
TR
96032003-02-19 Theodore A. Roth <troth@openavr.org>
9604
9605 * avr-tdep.c (avr_extract_return_value): Remove function.
9606 (avr_store_return_value): Remove function.
9607 (avr_extract_struct_value_address): Remove function.
9608 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9609
338ef23d
AC
96102003-02-19 Andrew Cagney <ac131313@redhat.com>
9611
9612 * rs6000-tdep.c: Include "gdb_assert.h".
9613 (registers_e500): Add "acc" and "spefscr".
9614 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9615 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9616 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9617 really is "r0".
9618 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9619
5412f5f3
KS
96202003-02-18 Keith Seitz <keiths@redhat.com>
9621
9622 * Makefile.in: Add gdbtk-interps.c.
9623
881324eb
KB
96242003-02-18 Kevin Buettner <kevinb@redhat.com>
9625
9626 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9627 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9628
6a2f5abf
AC
96292003-02-18 Andrew Cagney <cagney@redhat.com>
9630
9631 * symtab.h (struct objfile): Add opaque declaration.
9632
54c7009d
EZ
96332003-02-18 Elena Zannoni <ezannoni@redhat.com>
9634
9635 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9636 * dbxread.c (process_one_symbol): Use last_function_start rather
9637 than function_start_offset to find the real beginning of the
9638 current function. The latter is just the text section offset on
9639 some systems, the former is always the real function start.
54c7009d 9640
7ee6d7eb
AC
96412003-02-17 Andrew Cagney <cagney@redhat.com>
9642
9643 * configure.in: Revert ${target} != ${host}.
9644
2846da9b
AC
96452003-02-17 Andrew Cagney <ac131313@redhat.com>
9646
9647 * configure.in (Makefile): Use the test ${target} != ${host},
9648 instead of the absence of the "nm.h" file, to determine of the
9649 configuration non-native.
9650 * configure: Regenerate.
8ffd9b1b 9651
3b27aeea
EZ
96522003-02-14 Elena Zannoni <ezannoni@redhat.com>
9653
fbe586ae 9654 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9655
9656 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9657 conditionalize tui_active test.
9658 (lookup_cmd_1): Ditto.
9659
b0b1c2c0
MK
96602003-02-14 Mark Kettenis <kettenis@gnu.org>
9661
9662 * configure.in: Add check for _etext.
9663 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9664 available.
9665 * config.in, configure: regenerated.
9666
8f05cde5
DJ
96672003-02-14 Daniel Jacobowitz <drow@mvista.com>
9668
9669 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9670
021e7609
AC
96712003-02-14 Andrew Cagney <ac131313@redhat.com>
9672
9673 * main.c (tui_version): Delete variable.
9674 (captured_main): When --tui, set interpreter_p to "tui" instead of
9675 enabling tui_version.
9676 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9677 tui_version.
9678 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9679 * cli/cli-cmds.c (disassemble_command): Ditto.
9680 * defs.h (tui_version): Delete declaration.
9681 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9682 (tui-interp.o): Add rules.
9683 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9684
e325dcec
CF
96852003-02-14 Christopher Faylor <cgf@redhat.com>
9686
36ffb041 9687 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9688 just-loaded dll.
9689
c4f90d87
JM
96902003-02-12 Jason Molenda (jmolenda@apple.com)
9691
fbe586ae
RH
9692 * symmisc.c (print_objfile_statistics): Include information about
9693 the number of psymtabs and symtabs in each object file.
c4f90d87 9694
e46e5ccd
KS
96952003-02-13 Keith R Seitz <keiths@redhat.com>
9696
9697 * main.h (struct captured_main_args): Add interpreter_p.
9698 * main.c (captured_main): Initialize interpreter_p from context.
9699 * gdb.c (main): Set interpreter_p argument.
9700 * Makefile.in (gdb.o): Add dependency for interps.h.
9701
fe97fe9c
AC
97022003-02-12 Andrew Cagney <ac131313@redhat.com>
9703
9704 * event-top.c (cli_command_loop): Delete declaration.
9705 (_initialize_event_loop): Delete function setting event_loop_hook.
9706 * event-top.h (cli_command_loop): Declare. Update copyright.
9707 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9708 * interps.c (current_interp_command_loop): When event_loop_p, call
9709 cli_command_loop.
9710
1cdac4ef
AC
97112003-02-12 Andrew Cagney <ac131313@redhat.com>
9712
9713 * interps.h (interp_command_loop_ftype): Change return type to
9714 void.
9715
48037ead
ML
97162003-02-12 Michal Ludvig <mludvig@suse.cz>
9717
9718 * x86-64-tdep.c (x86_64_extract_return_value)
9719 (x86_64_store_return_value): Use regcache instead of regbuf.
9720 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9721 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9722
033afc63
AC
97232003-02-11 Andrew Cagney <ac131313@redhat.com>
9724
9725 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9726 * aclocal.m4: Regenerate.
9727 * configure: Regenerate.
9728
9729 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9730 TCL_LD_SEARCH_FLAGS.
9731
40d02bca
ML
97322003-02-10 Michal Ludvig <mludvig@suse.cz>
9733
9734 * dwarf2cfi.c: Reindented.
9735
11308a41
AC
97362003-02-09 Andrew Cagney <ac131313@redhat.com>
9737
9738 * interps.c (clear_interpreter_hooks): Convert function definition
9739 to ISO C.
9740
e1c1c0f6
DC
97412003-02-07 David Carlton <carlton@math.stanford.edu>
9742
9743 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9744
ab5d3da6
KB
97452003-02-07 Kevin Buettner <kevinb@redhat.com>
9746
9747 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9748 (struct type): ...to here.
9749 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9750 field.
9751 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9752 (replace_type): Set length on all type variants for a given type.
9753
b8a92b82
AC
97542003-02-07 Andrew Cagney <ac131313@redhat.com>
9755
9756 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9757 <sys/stat.h>.
9758 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9759
5cb316ef
AC
97602003-02-06 Andrew Cagney <ac131313@redhat.com>
9761
2555fe1a
AC
9762 * Makefile.in (symm-nat.o): Update dependencies.
9763 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9764 (lynx-nat.o, ia64-linux-nat.): Ditto.
9765 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9766 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9767 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9768
44270758
AC
9769 * Makefile.in (inflow_h): Define.
9770 (procfs.o, inflow.o, procfs.o): Update dependencies.
9771 * inftarg.c (child_stop): Delete extern declaration of
9772 inferior_process_group. Include "inflow.h".
9773 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9774 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9775 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9776 (our_process_group, inferior_process_group): Extern declarations.
9777
df8f7274
AC
9778 * procfs.c: Include "gdb_assert.h".
9779
5cb316ef
AC
9780 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9781 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9782 * jv-typeprint.c (java_type_print_base): Ditto.
9783 * typeprint.c (typedef_print): Eliminate STREQ.
9784 * cli/cli-script.c (define_command, define_command): Ditto.
9785 * main.c (captured_main): Ditto.
9786 * values.c (lookup_internalvar): Ditto.
9787 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9788 within `if' conditional.
9789 * linespec.c (decode_line_2): Ditto.
9790 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9791 (bfd_openw_with_cleanup): Ditto.
9792
2a28ccea
MK
97932003-02-07 Mark Kettenis <kettenis@gnu.org>
9794
9795 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9796 legacy_extract_return_value and store_return_value to
9797 legacy_return_value.
9798
786b8124
CF
97992003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9800
9801 * win32-nat.c (get_relocated_section_addrs): New function. Find
9802 section load addresses for symbol handling in relocated DLLs.
9803 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9804
b871e4ec
FF
98052003-02-05 Fred Fish <fnf@intrinsity.com>
9806
9807 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9808 '=' and '!='.
9809 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9810 with '&' and '=='.
9811 (angel_RDI_info): Ditto.
9812 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9813 with '&' and '!='.
9814 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9815
4389a95a 98162003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9817 Keith Seitz <keiths@redhat.com>
9818 Elena Zannoni <ezannoni@redhat.com>
9819 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9820
9821 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9822 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9823 (SUBDIR_MI_OBS): Add "mi-interp.o".
9824 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9825 (SFILES): Add "interps.c".
9826 (COMMON_OBS): Add "interps.o".
9827 (interps_h, mi_main_h): Define.
9828 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9829 (mi-main.o, main.o, event-top.o): Update dependencies.
9830 * cli/cli-interp.c: New file.
9831 * interps.h, interps.c: New files.
9832 * top.c: (gdb_init): Don't install the default interpreter, handed
9833 by captured_main.
9834 * main.c: Include "interps.h".
9835 (interpreter_p): Note that it should malloc'ed.
9836 (captured_command_loop): Call current_interp_command_loop.
9837 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9838 xfree and xstrdup when updating interpreter_p. Install the
9839 default interpreter. Add hack to stop mi1's copyright notice
9840 being encoded.
9841 * event-top.h (gdb_setup_readline): Declare.
9842 (gdb_disable_readline): Declare.
9843 * event-top.c: Include "interps.h".
9844 (display_gdb_prompt): Call current_interp_display_prompt_p.
9845 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9846 gdb_stdlog, and gdb_stdtarg.
9847 (_initialize_event_loop): Don't call gdb_setup_readline.
9848 * cli-out.c (cli_out_set_stream): New function.
9849 * cli-out.h (cli_out_set_stream): Declare.
9850
ff3b5810
MK
98512003-02-06 Mark Kettenis <kettenis@gnu.org>
9852
9853 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9854 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9855 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9856 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9857 config/i386/i386v42mp.mt: Removed.
9858
5b729aa5
MK
98592003-02-05 Mark Kettenis <kettenis@gnu.org>
9860
9861 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9862 GDB_OSABI_SOLARIS.
9863
8cc15142
MC
98642003-02-05 Michael Chastain <mec@shout.net>
9865
9866 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9867 2.12.1 and earlier versions.
9868
5aa5d4b9
AC
98692003-02-05 Andrew Cagney <ac131313@redhat.com>
9870
9871 Remove orphaned hosts, targets and files.
9872 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9873 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9874 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9875 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9876 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9877 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9878 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9879 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9880 * config/sparc/tm-sp64sim.h: Delete.
9881 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9882 hosts.
9883 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9884 mips*-dec-mach3* targets.
9885
b68767c1
MC
98862003-02-04 Michael Chastain <mec@shout.net>
9887
9888 * NEWS: Fix typo: sepcifying -> specifying.
9889
5ae7ca1d
MC
98902003-02-04 Michael Chastain <mec@shout.net>
9891
9892 * dwarfread.c: Add documentation on the state of dwarf-1,
9893 looking towards obsoletion.
9894
d08a4280
MC
98952003-02-03 Michael Chastain <mec@shout.net>
9896
9897 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9898 gdb/testsuite/gdb.c++/pr-1023.exp.
9899
e9be73e4
AC
99002003-02-04 Andrew Cagney <ac131313@redhat.com>
9901
9902 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9903 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9904
9905 * utils.c (init_page_info): Delete reference to MPW in comments.
9906 * main.c (captured_main): Delete #ifdef MPW.
9907
05d57f6f
AC
99082003-02-04 Andrew Cagney <ac131313@redhat.com>
9909
8ffd9b1b 9910 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9911 * monitor.c (monitor_expect): Obsolete reference to m32r.
9912 * configure.tgt: Mark m32r-*-elf* as obsolete.
9913 * MAINTAINERS: Mark m32k as obsolete.
9914 * m32r-rom.c: Obsolete file.
9915 * config/m32r/m32r.mt: Obsolete file.
9916 * config/m32r/tm-m32r.h: Obsolete file.
9917 * m32r-stub.c: Obsolete file.
9918 * m32r-tdep.c: Obsolete file.
9919
8b0e5691
AC
99202003-02-04 Andrew Cagney <ac131313@redhat.com>
9921
9922 * NEWS: Mention that the z8k-zilog-none is obsolete.
9923 * MAINTAINERS: Mark z8k as obsolete.
9924 * configure.tgt: Obsolete the z8k-*-coff* target.
9925 * config/z8k/z8k.mt: Obsolete file.
9926 * config/z8k/tm-z8k.h: Obsolete file.
9927 * z8k-tdep.c: Obsolete file.
9928
67f16606
AC
99292003-02-04 Andrew Cagney <ac131313@redhat.com>
9930
9931 * NEWS: Mention that the mn10200-elf is obsolete.
9932 * configure.tgt: Obsolete mn10200-*-* target.
9933 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9934 mention that the mn10200 is obsolete.
9935 * breakpoint.h: Ditto.
9936 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9937 * config/mn10200/mn10200.mt: Obsolete file.
9938 * config/mn10200/tm-mn10200.h: Obsolete file.
9939 * mn10200-tdep.c: Obsolete file.
9940
fd2299bd
AC
99412003-02-04 Andrew Cagney <ac131313@redhat.com>
9942
9943 * MAINTAINERS: Mark h8500 as obsolete.
9944 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9945 * findvar.c (value_from_register): Ditto.
9946 * h8500-tdep.c: Mark file as obsolete.
9947 * config/h8500/h8500.mt: Ditto.
9948 * config/h8500/tm-h8500.h: Ditto.
9949 * NEWS: Mention that h8500 is obsolete.
9950
eb9a305d
DC
99512003-02-04 David Carlton <carlton@math.stanford.edu>
9952
9953 * objfiles.c (allocate_objfile): Always set name. Add comment at
9954 start of function.
9955 * jv-lang.c (get_dynamics_objfile): Add comment.
9956
406fc7fb
DC
99572003-02-04 David Carlton <carlton@math.stanford.edu>
9958
9959 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9960 * printcmd.c (build_address_symbolic): Replace uses of
9961 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9962 SYMBOL_NAME, and asm_demangle.
9963 Update copyright.
9964
93d91629
DC
99652003-02-04 David Carlton <carlton@math.stanford.edu>
9966
9967 * linespec.c (decode_compound): Extract code into
9968 lookup_prefix_sym.
9969 (lookup_prefix_sym): New function.
9970
1c5cb38e
DC
99712003-02-04 David Carlton <carlton@math.stanford.edu>
9972
9973 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9974 FLOAT_COERCION_BADNESS.
9975 * gdbtypes.c (rank_one_type): Replace all uses of
9976 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9977
0cf824c9
JB
99782003-02-04 Jim Blandy <jimb@redhat.com>
9979
9980 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9981 section, let dwarf_macinfo_section point to it, not
9982 dwarf_loc_section.
9983
a2d356b0
DJ
99842003-02-04 Daniel Jacobowitz <drow@mvista.com>
9985
9986 Pointed out by Anton Blanchard <anton@samba.org>.
9987 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9988 (ppc_linux_at_sigtramp_return_path): Use it.
9989
2de7ced7
DJ
99902003-02-04 Daniel Jacobowitz <drow@mvista.com>
9991
9992 * defs.h (streq): Add prototype.
9993 * utils.c (streq): New function.
9994
9995 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9996 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9997 * mdebugread.c (new_symbol): Likewise.
9998 * stabsread.c (define_symbol): Likewise.
9999 * coffread.c (process_coff_symbol): Likewise.
10000 * dwarfread.c (new_symbol): Likewise.
10001
10002 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10003 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10004 here.
10005 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10006 SYMBOL_INIT_DEMANGLED_NAME.
10007 * objfiles.c: Include "hashtab.h".
10008 (allocate_objfile): Call htab_set_functions_ex for the
10009 demangled_names_hash.
10010 (free_objfile): Call htab_delete for the demangled_names_hash.
10011 * objfiles.h (struct htab): Add declaration.
10012 (struct objfile): Add demangled_names_hash.
10013 * symfile.c: Include "hashtab.h".
10014 (reread_symbols): Call htab_delete for the demangled_names_hash.
10015 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10016 SYMBOL_NAME in the bcache.
10017 * symtab.c: Include "hashtab.h". Update comments.
10018 (create_demangled_names_hash, symbol_set_names): New functions.
10019 (symbol_find_demangled_name): New function, broken out from
10020 symbol_init_demangled_names.
10021 (symbol_init_demangled_names): Use it.
10022 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10023 (SYMBOL_SET_NAMES): New macro.
10024 (symbol_set_names): Add prototype.
10025
15831452
JB
100262003-02-03 Jim Blandy <jimb@redhat.com>
10027
10028 Use a single, consistent representation for an empty minimal
10029 symbol table in an objfile.
10030 * objfiles.c (terminate_minimal_symbol_table): New function.
10031 (allocate_objfile): Call it.
10032 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10033 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10034 non-NULL.
15831452
JB
10035 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10036 objfile has minimal symbols, compare minimal_symbol_count to zero,
10037 instead of comparing msymbols with NULL.
10038 * objfiles.c (have_minimal_symbols): Same.
10039 * solib-sunos.c (solib_add_common_symbols): Call
10040 terminate_minimal_symbol_table.
10041 * symfile.c (reread_symbols): Same.
8ffd9b1b 10042
ffc65945
KB
100432003-02-03 Kevin Buettner <kevinb@redhat.com>
10044
10045 * s390-tdep.c (s390_address_class_type_flags)
10046 (s390_address_class_type_flags_to_name)
10047 (s390_address_class_name_to_type_flags): New functions.
10048 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10049 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10050
f211c6d4
MS
100512003-02-03 Michael Snyder <msnyder@redhat.com>
10052
10053 * arm-tdep.c: Fix spell-o in comment.
10054
659b0389
ML
100552003-02-03 Michal Ludvig <mludvig@suse.cz>
10056
10057 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10058 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10059 error messages to contain BFD filename.
659b0389 10060
3b31d625
EZ
100612003-02-02 Elena Zannoni <ezannoni@redhat.com>
10062
997b089a 10063 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10064 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10065 (do_mixed_source_and_assembly): Use
10066 make_cleanup_ui_out_tuple_begin_end and
10067 make_cleanup_ui_out_tuple_begin_end.
10068 (do_mixed_source_and_assembly): Ditto.
10069 * thread.c (do_captured_list_thread_ids): Ditto.
10070 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10071 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10072 ui_out_tuple_end): Delete prototypes.
10073 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10074 ui_out_list_end, ui_out_tuple_end): Delete.
10075
10076 From Kevin Buettner <kevinb@redhat.com>:
10077 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10078 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10079 (do_cleanup_table_end): New functions.
10080 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10081 Use cleanups to invoke_ui_out_tuple_end().
10082 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10083 * cli/cli-setshow.c (cmd_show_list): Use
10084 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10085
5b181d62
AC
100862003-02-02 Andrew Cagney <ac131313@redhat.com>
10087
10088 * frame.c (frame_unwind_register): New function.
10089 (frame_unwind_unsigned_register): Use.
10090 (frame_unwind_signed_register): Use.
10091 (frame_read_register): New function.
10092 * frame.h (frame_unwind_register): Declare.
10093 (frame_read_register): Declare.
10094
10095 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10096 and frame_unwind_register instead of read_memory, write_register
10097 and deprecated_write_register_bytes.
10098
5f601589
AC
100992003-02-02 Andrew Cagney <ac131313@redhat.com>
10100
10101 * frame.h: Note that namelen can be negative.
10102 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10103 NAME's length.
10104
10105 * NEWS: Mention that the d10v's `regs' command is deprecated.
10106 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10107 (d10v_print_registers_info): New function.
10108 (show_regs): Call d10v_print_registers_info.
10109 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10110
6a3fe0a4
MK
101112003-02-02 Mark Kettenis <kettenis@gnu.org>
10112
10113 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10114 lost in the previous patch.
10115
075559bc
AC
101162003-02-01 Andrew Cagney <ac131313@redhat.com>
10117
10118 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10119 * stack.c (print_frame_info_base): Output complete FRAME tuple
10120 for synthesized frames.
075559bc 10121
6789195b
AC
101222003-02-02 Andrew Cagney <ac131313@redhat.com>
10123
10124 * mips-nat.c (zerobuf): Delete.
10125 (fetch_inferior_registers): Alloc local zerobuf.
10126 (fetch_core_registers): Alloc local zerobuf.
10127 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10128 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10129 * thread-db.c (thread_db_store_registers): Ditto.
10130 * sh-tdep.c (sh_do_register): Ditto.
10131 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10132 * remote-sim.c (gdbsim_store_register): Ditto.
10133 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10134 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10135 * monitor.c (monitor_supply_register): Ditto.
10136 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10137 * mips-nat.c (fetch_inferior_registers): Ditto.
10138 * m68klinux-nat.c (fetch_register): Ditto.
10139 * lynx-nat.c (fetch_inferior_registers): Ditto.
10140 (fetch_inferior_registers): Ditto.
10141 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10142 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10143 (hpux_thread_store_registers): Ditto.
10144 * hppah-nat.c (fetch_register): Ditto.
10145 * hppab-nat.c (fetch_register): Ditto.
10146 * hppa-tdep.c (pa_register_look_aside): Ditto.
10147 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10148 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10149
e669114a
AC
101502003-02-01 Andrew Cagney <ac131313@redhat.com>
10151
10152 * gdbarch.sh: Explictly specify all method levels. When a
10153 variable with an empty level, provide a non-multi-arch default.
10154 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10155 * gdbarch.h: Re-generate.
10156 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10157 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10158
9a043c1d
AC
101592003-02-01 Andrew Cagney <ac131313@redhat.com>
10160
10161 * defs.h (host_pointer_to_address): Delete declaration.
10162 (address_to_host_pointer): Delete declaration.
10163 * utils.c (host_pointer_to_address): Delete function.
10164 (address_to_host_pointer): Delete function.
10165 * procfs.c (procfs_address_to_host_pointer): New function.
10166 * procfs.c (proc_set_watchpoint): Use.
10167 (procfs_can_use_hw_breakpoint): Update comments.
10168 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10169 (som_solib_add): Use.
10170 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10171 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10172
7ca9f392
AC
101732003-02-01 Andrew Cagney <ac131313@redhat.com>
10174
94bbfd30
AC
10175 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10176 strlen d_name.
10177
7ca9f392
AC
10178 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10179 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10180 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10181 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10182 (define_symbol): Update.
10183 * symfile.c (generic_load): Remove references to nindy.
10184 * symtab.c: Remove references to nindy.
10185
31a85ea2
AC
101862003-02-01 Andrew Cagney <ac131313@redhat.com>
10187
10188 * infcmd.c (print_float_info): Delete code conditional on
10189 FLOAT_INFO.
10190 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10191 * config/m68k/nm-apollo68b.h: Ditto.
10192 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10193 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10194 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10195
f6e85fc8
MK
101962003-02-01 Mark Kettenis <kettenis@gnu.org>
10197
6015b6a0
MK
10198 * config/i386/tm-i386os9k.h: Removed.
10199
f7a30bdf
MK
10200 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10201 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10202 they're identical to i[3456]86-*-sysv* now.
10203 * config/i386/i386v32.mh: Removed.
10204 * config/i386/xm-i386v32.h: Removed.
10205 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10206
28d52111
MK
10207 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10208
4d3f6bce
MK
10209 * config/i386/i386dgux.mh: Removed.
10210 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10211
f6e85fc8
MK
10212 * configure.in: Fix typo.
10213 * configure: Regenerated.
10214
53955967
DC
102152003-01-31 David Carlton <carlton@math.stanford.edu>
10216
10217 * dwarf2read.c (dwarf2_locate_sections): Set
10218 dwarf_ranges_section.
10219
b1364885
AC
102202003-01-31 Andrew Cagney <ac131313@redhat.com>
10221
8dbb1c65
AC
10222 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10223 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10224
8731e58e
AC
10225 * utils.c: Re-indent.
10226
b1364885
AC
10227 * config/djgpp/fnchange.lst: Delete nindy files.
10228 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10229 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10230 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10231 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10232 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10233 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10234 * Makefile.in (init.c): Remove nindy references.
10235 (saber_gdb): Delete rule.
10236 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10237 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10238 and a68v-nat.c.
10239 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10240 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10241 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10242 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10243 nindy-share/stop.h.
10244 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10245 * saber.suppress: Delete file.
10246
086df311
DJ
102472003-01-31 Daniel Jacobowitz <drow@mvista.com>
10248
10249 * dbxread.c (stabs_data): New static variable.
10250 (fill_symbuf): Support an in-memory buffer for stabs data.
10251 (stabs_seek): New function.
10252 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10253 (read_ofile_symtab): Use stabs_seek.
10254 (elfstab_build_psymtabs): Take an asection* instead of
10255 an offset and size. Relocate the stabs data if necessary.
10256 Save the section* for dbx_psymtab_to_symtab.
10257 * dwarf2read.c: Add section variables for each debug section.
10258 (dwarf2_locate_sections): Fill them in.
10259 (dwarf2_read_section): Take an asection* argument.
10260 Relocate the section contents if necessary.
10261 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10262 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10263 it to dwarf2_read_section.
10264 (dwarf2_build_frame_info): Update callers.
10265 * elfread.c (elf_symfile_read): Update call to
10266 elfstab_build_psymtabs.
10267 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10268 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10269 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10270 * symfile.c (symfile_dummy_outputs): New function.
10271 (symfile_relocate_debug_section): New function.
10272 * symfile.h (symfile_relocate_debug_section): Add prototype.
10273
87d1b352
RH
102742003-01-31 Richard Henderson <rth@redhat.com>
10275
10276 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10277 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10278 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10279 * alpha-tdep.c (alpha_register_name): Add "unique".
10280 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10281 (ALPHA_UNIQUE_REGNUM): New.
10282 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10283
c48861fb
AC
102842003-01-31 Andrew Cagney <ac131313@redhat.com>
10285
10286 * README: Remove reference to Ericsson 1800 monitor.
10287 * Makefile.in (remote-es.o): Delete rule.
10288 (ALLDEPFILES): Delete remote-es.c.
10289 * remote-es.c: Delete file.
10290 * config/m68k/es1800.mt: Delete file.
10291 * config/djgpp/fnchange.lst: Update.
10292 * configure.tgt: Delete m68*-ericsson-* target.
10293
d764a824
AF
102942003-01-31 Adam Fedor <fedor@gnu.org>
10295
10296 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10297 Remove duplicate/shadowing variable of same name.
10298
fe36c4f4
JB
102992003-01-30 Jim Blandy <jimb@redhat.com>
10300
10301 * symfile.c (find_separate_debug_file): Assert that the objfile's
10302 directory name we compute ends with a slash, and then assume that
10303 that's so everywhere we use it.
10304
cb741690
DJ
103052003-01-30 Daniel Jacobowitz <drow@mvista.com>
10306
10307 * valops.c (value_assign): Flush frame cache after stores to memory
10308 also.
10309
96ee5227
AC
103102003-01-30 Andrew Cagney <ac131313@redhat.com>
10311
10312 * Makefile.in (mon960-rom.o): Delete rule.
10313 * mon960-rom.c: Delete file.
10314
7f6104a9
AC
103152003-01-30 Andrew Cagney <ac131313@redhat.com>
10316
10317 * d10v-tdep.c: Include "frame-unwind.h".
10318 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10319 list.
10320 (next_addr, uses_frame): Delete.
10321 (struct d10v_unwind_cache): Define.
10322 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10323 Use info instead of next_addr and uses_frame globals.
10324 (d10v_frame_init_saved_regs): Delete function.
10325 (d10v_init_extra_frame_info): Delete function.
10326 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10327 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10328 init_frame_pc or frame_saved_pc.
10329 (d10v_pop_frame): Delete function.
10330 (do_d10v_pop_frame): Delete function.
10331 (d10v_frame_chain): Delete function.
10332 (d10v_frame_chain_valid): Delete function.
10333 (d10v_frame_pc_unwind): New function.
10334 (d10v_frame_id_unwind): New function.
10335 (saved_regs_unwinder): New function.
10336 (d10v_frame_register_unwind): New function.
10337 (d10v_frame_pop): New function.
10338 (d10v_frame_unwind): New variable.
10339 (d10v_frame_p): New function.
10340 (d10v_frame_saved_pc): Delete function.
10341 * Makefile.in (d10v-tdep.o): Update dependencies.
10342
cad2e848
JB
103432003-01-30 J. Brobecker <brobecker@gnat.com>
10344
10345 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10346 causing some regressions due to a change in the default value
10347 for this macro.
10348
af34e669
DJ
103492003-01-29 Richard Henderson <rth@redhat.com>
10350 Elena Zannoni <ezannoni@redhat.com>
10351 Daniel Jacobowitz <drow@mvista.com>
10352
10353 Fix PR gdb/961.
8ffd9b1b 10354 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10355 variables.
10356 (RANGES_SECTION): New.
10357 (dwarf_ranges_buffer): New variable.
10358 (struct comp_unit_head): Add member "die".
10359 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10360 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10361 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10362 (dwarf2_locate_sections): Likewise.
10363 (dwarf2_build_psymtabs): Read .debug_ranges.
10364 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10365 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10366 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10367 Look for DW_AT_ranges and return the bounding box.
10368
baa93fa6
CF
103692003-01-29 Brian Ford <ford@vss.fsi.com>
10370
10371 * win32-nat.c (cygwin_pid): Removed as unused.
10372 (child_attach): Try fall back to Cygwin pid.
10373
c63f977f
JB
103742003-01-29 Jim Blandy <jimb@redhat.com>
10375
10376 * objfiles.h (struct objfile): Doc fix.
10377
d62d1979
AC
103782003-01-29 Andrew Cagney <ac131313@redhat.com>
10379
10380 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10381 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10382 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10383 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10384 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10385 (FRAME_SAVED_PC): Change to a function with predicate.
10386 * gdbarch.h, gdbarch.c: Re-generate.
10387
1ae18a04
AC
103882003-01-28 Andrew Cagney <ac131313@redhat.com>
10389
52287340
AC
10390 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10391
1ae18a04
AC
10392 * complaints.c (complain): Delete function.
10393 * complaints.h (struct deprecated_complaint): Delete definition.
10394 (complain): Delete declaration.
10395
f2c16bd6
KB
103962003-01-28 Kevin Buettner <kevinb@redhat.com>
10397
10398 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10399 dummy frames.
10400
a94dd1fd
AC
104012003-01-27 Andrew Cagney <ac131313@redhat.com>
10402
10403 * sentinel-frame.h, sentinel-frame.c: New files.
10404 * Makefile.in (frame.o): Update dependencies.
10405 (SFILES): Add sentinel-frame.c.
10406 (sentinel_frame_h): Define.
10407 (COMMON_OBS): Add sentinel-frame.o.
10408 (sentinel-frame.o): Specify dependencies.
10409 * frame.c: Include "sentinel-frame.h".
10410 (frame_register_unwind): Rewrite assuming that there is always a a
10411 ->next frame.
10412 (frame_register, generic_unwind_get_saved_register): Ditto.
10413 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10414 (create_sentinel_frame, unwind_to_current_frame): New functions.
10415 (get_current_frame): Rewrite using create_sentinel_frame and
10416 unwind_to_current_frame. When possible, always create a frame.
10417 (create_new_frame): Set next to the sentinel frame.
10418 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10419 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10420 ID cache when necessary.
10421 (frame_saved_regs_id_unwind): Use frame_relative_level.
10422 (deprecated_generic_get_saved_register): Use frame_relative_level,
10423 get_frame_saved_regs, get_frame_pc, get_frame_base and
10424 get_next_frame.
10425 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10426 frame_register.
10427
5378adc4
DJ
104282003-01-27 Daniel Jacobowitz <drow@mvista.com>
10429
10430 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10431
51ee2ddc
DJ
104322003-01-27 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10435 (maintenance_set_profile_cmd): Use error () instead of warning ().
10436
d9feb4e7
DJ
104372003-01-27 Daniel Jacobowitz <drow@mvista.com>
10438
10439 * configure.in: Check that -pg works if using --enable-profiling.
10440 Check for monstartup and _mcleanup regardless of --enable-profiling.
10441 * maint.c: Check for monstartup and _mcleanup before using them.
10442 * config.in: Regenerated.
10443 * configure: Regenerated.
10444
2d188dd3
NC
104452003-01-24 Nick Clifton <nickc@redhat.com>
10446
10447 * Add sh2e support:
10448
10449 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10450
10451 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10452 (sh2e_show_regs): New.
10453 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10454 * config/sh/tm-sh.h: Added sh2e to comments.
10455
cb3c37b2
JB
104562003-01-23 Jim Blandy <jimb@redhat.com>
10457
10458 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10459 symbols found)" message here; we haven't checked for a separate
10460 debug info file yet, so we don't know yet.
10461 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10462 we've looked everywhere. Also, there's no need to print a special
10463 message when we're loading the separate debug info file: the one
10464 symbol_file_add prints is fine.
10465
5b5d99cf
JB
104662003-01-23 Alexander Larsson <alexl@redhat.com>
10467 Jim Blandy <jimb@redhat.com>
10468
10469 Add support for executables whose debug info has been separated
10470 out into a separate file, leaving only a link behind.
10471 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10472 and separate_debug_objfile_backlink.
10473 (put_objfile_before): New declaration.
10474 * symfile.c: #include "filenames.h".
10475 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10476 debug info in a separate file, read that, too. Save the addrs
10477 argument, so we can use it again to read the separated debug info;
10478 syms_from_objfile modifies the table we pass it.
10479 (reread_symbols): After re-reading an objfile, call
10480 reread_separate_symbols to refresh its separate debug info
10481 objfile, if it has one.
10482 (reread_separate_symbols, find_separate_debug_file,
10483 get_debug_link_info, separate_debug_file_exists): New functions.
10484 (debug_file_directory): New global var.
10485 (_initialize_symfile): Initialize debug_file_directory, and
10486 provide the new `set debug-file-directory' command to let the user
10487 change it.
10488 * objfiles.c (free_objfile): If this objfile has its debug info in
10489 a separate objfile, free that one too. If this is itself a
10490 separate debug info objfile, clear our parent's backlink.
10491 (put_objfile_before): New function.
10492 * utils.c (gnu_debuglink_crc32): New function.
10493 * defs.h (gnu_debuglink_crc32): New declaration.
10494 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10495 * configure.in: Handle --with-separate-debug-dir config option.
10496 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10497 * acconfig.h (DEBUGDIR): New macro.
10498 * configure, aclocal.m4, config.in: Regenerated.
10499
7e8580c1
JB
105002003-01-22 Jim Blandy <jimb@redhat.com>
10501
7904e09f
JB
10502 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10503 like the old symbol_file_add, but taking new arguments: you can
10504 now pass in either a `struct section_addr_info' list to say where
10505 each section is loaded, or a `struct section_offsets' table. Pass
10506 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10507 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10508 with the appropriate quiescent values for the new arguments.
10509
7e8580c1
JB
10510 * symfile.c: #include "gdb_assert.h".
10511 (syms_from_objfile): Add the ability to pass in a section offset
10512 table directly, as an alternative to the section_addr_info table.
10513 Document arguments better.
10514 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10515 * symfile.h (syms_from_objfile): Update declaration.
10516 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10517 syms_from_objfile.
10518 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10519
d28f9cdf
DJ
105202003-01-22 Daniel Jacobowitz <drow@mvista.com>
10521
10522 Original patch by Tom Tromey <tromey@cygnus.com> and
10523 Jason Molenda <jmolenda@apple.com>.
10524 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10525 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10526 * NEWS: Mention profiling.
10527 * configure.in (--enable-gdbtk): Fix typo.
10528 (--enable-profiling): New. Set PROFILE_CFLAGS.
10529 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10530 Fill in function.
10531 (profiling_state): New variable.
10532 (mcleanup_wrapper): New function.
10533 (_initialize_maint): Remove NOTYET, fix call to
10534 add_setshow_boolean_cmd for "maint set profile".
10535 * configure: Regenerated.
10536
df21e465
MH
105372003-01-21 Martin M. Hunt <hunt@redhat.com>
10538
10539 * Makefile.in (install-gdbtk): Install PNG images too.
10540
73c1f219
AC
105412003-01-21 Andrew Cagney <ac131313@redhat.com>
10542
10543 * exec.c (text_start): Delete global variable.
10544 (exec_file_attach): Make text_start local to the function.
10545 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10546 * valops.c (hand_function_call): Delete code that handles
10547 BEFORE_TEXT_END and AFTER_TEXT_END.
10548 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10549 of CALL_DUMMY_LOCATION.
10550 * gdbarch.c: Regenerate.
10551 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10552 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10553 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10554 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10555 (text_end): Delete extern declaration.
10556
eb4f72c5
AC
105572003-01-21 Andrew Cagney <ac131313@redhat.com>
10558
10559 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10560 * blockframe.c (backtrace_below_main): Move to "frame.c".
10561 (frame_chain_valid): Delete check for backtrace_below_main.
10562 (_initialize_blockframe): Delete initialization, move ``set
10563 backtrace-below-main'' command to "frame.c".
10564 (do_flush_frames_sfunc): Delete function.
10565 * frame.c: Include "command.h" and "gdbcmd.h".
10566 (frame_type_from_pc): New function.
10567 (create_new_frame): Use frame_type_from_pc.
10568 (legacy_get_prev_frame): New function.
10569 (get_prev_frame): Rewrite. When an old style frame, call
10570 legacy_get_prev_frame. Otherwize, unwind the PC first.
10571 (_initialize_frame): Add ``set backtrace-below-main'' command.
10572 * Makefile.in (frame.o): Update dependencies.
10573
778ce8cc
AC
105742003-01-19 Andrew Cagney <ac131313@redhat.com>
10575
10576 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10577 DEPRECATED_REGISTERS_INFO.
10578
01c193c8
AC
105792003-01-19 Andrew Cagney <ac131313@redhat.com>
10580
10581 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10582 Maintainers'. Update `Various Maintainers'.
10583
dedc2a2b
AC
105842003-01-19 Andrew Cagney <ac131313@redhat.com>
10585
10586 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10587 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10588 Suppress actual parameters when `-'.
10589 * gdbarch.h, gdbarch.c: Regenerate.
10590
b7261c70
AC
105912003-01-19 Andrew Cagney <ac131313@redhat.com>
10592
10593 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10594 code handling dummy frames.
10595
dbe9fe58
AC
105962003-01-19 Andrew Cagney <ac131313@redhat.com>
10597
10598 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10599 (struct frame_unwind): Add field pop.
10600 * frame.h (frame_pop): Declare.
10601 * frame.c (frame_saved_regs_pop): New function.
10602 (trad_frame_unwinder): Add frame_saved_regs_pop.
10603 (frame_pop): New function.
10604 * dummy-frame.c (dummy_frame_pop): New function.
10605 (discard_innermost_dummy): New function.
10606 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10607 (dummy_frame_unwind): Add dummy_frame_pop.
10608 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10609 * valops.c (hand_function_call): Ditto.
10610 * stack.c (return_command): Ditto.
10611
570b8f7c
AC
106122003-01-18 Andrew Cagney <ac131313@redhat.com>
10613
10614 * cris-tdep.c: Fix function declaration indentation.
10615 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10616 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10617 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10618 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10619 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10620 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10621
106222003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10623
10624 * README (Unpacking and Installation -- quick overview):
10625 Warn against ".../gdb-5.3/gdb/configure".
10626
494cca16
AC
106272003-01-18 Andrew Cagney <ac131313@redhat.com>
10628
10629 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10630 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10631 (struct frame_unwind): Declare opaque.
10632 (dummy_frame_p): Declare function.
10633 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10634 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10635 * dummy-frame.c: Include "frame-unwind.h".
10636 (dummy_frame_p): New function.
10637 (dummy_frame_unwind): New variable.
10638 * frame.c: Include "frame-unwind.h".
10639 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10640 to use the new unwind field.
10641 (set_unwind_by_pc): Delete function.
10642 (create_new_frame, get_prev_frame): Set unwind field using
10643 frame_unwind_find_by_pc.
10644 (trad_frame_unwind, trad_frame_unwinder): New variables.
10645 * frame.h (trad_frame_unwind): Declare variable.
10646 (frame_id_unwind_ftype): Delete declaration.
10647 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10648 (struct frame_unwind): Declare opaque.
10649 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10650 register_unwind with a single unwind pointer.
10651 * frame-unwind.h, frame-unwind.c: New files.
10652 * Makefile.in (SFILES): Add frame-unwind.c.
10653 (frame_unwind_h): Define.
10654 (COMMON_OBS): Add frame-unwind.o.
10655 (frame-unwind.o): Specify dependencies.
10656 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10657
4efb68b1
AC
106582003-01-18 Andrew Cagney <ac131313@redhat.com>
10659
10660 * ada-valprint.c: Eliminate PTR.
10661 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10662 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10663 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10664 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10665 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10666 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10667 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10668
a84d24ee
AC
106692003-01-17 Andrew Cagney <ac131313@redhat.com>
10670
762f08a3
AC
10671 * main.c (captured_main): Don't use PTR.
10672 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10673 * gdbtypes.c (lookup_primitive_typename): Ditto.
10674 (lookup_struct_elt_type): Ditto.
10675 * f-valprint.c (info_common_command): Ditto.
10676 (list_all_visible_commons): Ditto.
10677 * jv-typeprint.c (java_type_print_base): Ditto.
10678
a84d24ee
AC
10679 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10680 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10681 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10682 i386-interix-nat.c and i386-interix-tdep.c. Rename
10683 m68klinux-nat.c and m68klinux-tdep.c. Rename
10684 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10685 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10686 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10687 * main.c (captured_main): Use xfree, not free.
10688
c170fb60
AC
106892003-01-16 Andrew Cagney <ac131313@redhat.com>
10690
10691 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10692 ID back using a parameter.
10693 * frame.c (frame_id_unwind): Update call.
10694 (frame_saved_regs_id_unwind): Update.
10695 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10696 * dummy-frame.h (struct frame_id): Add opaque declaration.
10697 (dummy_frame_id_unwind): Update declaration.
10698
867f3898
AC
106992003-01-15 Andrew Cagney <ac131313@redhat.com>
10700
10701 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10702
40622be8 107032003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10704
40622be8 10705 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10706
ae66c1fc
EZ
107072003-01-14 Elena Zannoni <ezannoni@redhat.com>
10708
997b089a 10709 Fix PR gdb/898
ae66c1fc
EZ
10710 * breakpoint.c (until_break_command): Add new argument. Use it to
10711 decide whether to stop only at the current frame or not.
10712 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10713 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10714 call.
10715 (advance_command): New function.
10716 (_initialize_infcmd): Update help string for 'until' command.
10717 Add new 'advance' command.
10718
a04257e6
DC
107192003-01-14 David Carlton <carlton@math.stanford.edu>
10720
10721 * linespec.c (decode_line_1): Normalize comments.
10722 (set_flags): Ditto.
10723 (locate_first_half): Ditto.
10724 (decode_compound): Ditto.
10725 (symtab_from_filename): Ditto.
10726 (decode_all_digits): Ditto.
10727 (decode_dollar): Ditto.
10728 (find_methods): Ditto.
10729 (find_toplevel_char): Ditto.
10730
1bac305b
AC
107312003-01-13 Andrew Cagney <ac131313@redhat.com>
10732
10733 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10734 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10735 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10736 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10737 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10738 * language.c, language.h, m32r-tdep.c: Update copyright.
10739 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10740 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10741 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10742 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10743 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10744 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10745
25caa7a8
EZ
107462003-01-13 Elena Zannoni <ezannoni@redhat.com>
10747
10748 * stabsread.h (process_later, resolve_cfront_continuation):
10749 Obsolete.
10750 Update copyright years.
10751 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10752 Update copyright year.
10753 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10754 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10755 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10756 Update copyright year.
10757 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10758 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10759 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10760 (parse_partial_symbols): Obsolete cfront support.
10761 * stabsread.c
10762 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10763 macros.
10764 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10765 read_cfront_baseclasses, read_cfront_member_functions,
10766 resolve_cfront_continuation,read_cfront_static_fields,
10767 copy_cfront_struct_fields): Obsolete functions.
10768 (define_symbol, read_one_struct_field): Obsolete cfront support.
10769 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10770 Update Copyright year.
10771
7789c6f5
EZ
107722003-01-13 Elena Zannoni <ezannoni@redhat.com>
10773
10774 * stack.c (print_frame_info, print_stack_frame_base_stub,
10775 print_stack_frame_base, show_and_print_stack_frame_stub,
10776 show_and_print_stack_frame, print_only_stack_frame_stub,
10777 print_only_stack_frame): Delete functions.
10778 (print_stack_frame_stub): Call print_frame_info instead of
10779 print_frame_info_base.
10780 (print_frame_info_base): Rename to print_frame_info.
10781 (backtrace_command_1): Call print_frame_info, instead of
10782 print_frame_info_base.
10783 (current_frame_command): Call print_stack_frame, instead of
10784 print_only_stack_frame.
10785 (frame_command): Call print_stack_frame, instead of
10786 show_and_print_stack_frame.
10787 (up_command): Ditto.
10788 (down_command): Ditto.
10789 * frame.h (print_only_stack_frame): Delete prototype.
10790 * infrun.c (normal_stop): Call print_stack_frame, instead of
10791 show_and_print_stack_frame.
10792 * thread.c (info_threads_command): Call print_stack_frame, instead
10793 of print_only_stack_frame.
10794
3f5a3016
AC
107952003-01-13 Andrew Cagney <ac131313@redhat.com>
10796
d99ba314
AC
10797 * README (Graphical interface to GDB): Update URL. Point at
10798 gdb/links/.
10799
3f5a3016
AC
10800 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10801 version match.
10802
083ae935
DJ
108032003-01-13 Daniel Jacobowitz <drow@mvista.com>
10804
10805 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10806 lines.
10807
5365276c
DJ
108082003-01-13 Daniel Jacobowitz <drow@mvista.com>
10809
10810 * thread-db.c (attach_thread): Prototype.
10811 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10812 thread information (ti), and valid flags (th_valid, ti_valid).
10813 (attach_thread): Move target_pid_to_str call to after the thread
10814 is added to GDB's list. Initialize the cache.
10815 (thread_get_info_callback, thread_db_map_id2thr)
10816 (thread_db_get_info): New functions.
10817 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10818 (thread_db_store_registers, thread_db_thread_alive)
10819 (thread_db_get_thread_local_address): Use them.
10820 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10821 of calling error() for threads in unknown state.
10822
10823 (clear_lwpid_callback): New function.
10824 (thread_db_resume): Use it to clear the cache.
10825
9fc30b6b
DJ
108262003-01-13 Daniel Jacobowitz <drow@mvista.com>
10827
10828 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10829 (resume_callback): Remove dead code.
10830
8f871025
AC
108312003-01-13 Andrew Cagney <ac131313@redhat.com>
10832
10833 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10834 predicate.
10835 * gdbarch.h, gdbarch.c: Regenerate.
10836 * stack.c (frame_info): Only initialize the saved registers when
10837 FRAME_INIT_SAVED_REGS_P.
10838 * frame.c (frame_saved_regs_register_unwind): Assert
10839 FRAME_INIT_SAVED_REGS_P.
10840 (deprecated_generic_get_saved_register): Ditto.
10841
3f565f1e
DJ
108422003-01-13 Daniel Jacobowitz <drow@mvista.com>
10843
10844 * source.c (openp): Squelch warning about "filename".
10845
072b1022
DJ
108462003-01-13 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * source.c (openp): If the file does not exist don't necessarily
10849 search the path.
10850
973ccf8b
DJ
108512003-01-13 Daniel Jacobowitz <drow@mvista.com>
10852
10853 Fix PR gdb/872.
10854 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10855 (integer_types_same_name_p): New function.
10856 (rank_one_type): Use it.
10857 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10858
030292b7
DJ
108592003-01-13 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10862 variables.
10863 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10864 * configure.in: Add --with-sysroot.
10865 * configure: Regenerated.
10866 * main.c (gdb_sysroot): New variable.
10867 (captured_main): Initialize gdb_sysroot.
10868 * defs.h (gdb_sysroot): New extern declaration.
10869 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10870
afb5d334
MC
108712003-01-12 Michael Chastain <mec@shout.net>
10872
10873 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10874
751ceeb4
MC
108752003-01-12 Michael Chastain <mec@shout.net>
10876
10877 * top.c (print_gdb_version): Bump copyright year to 2003.
10878
94cd26f8
DC
108792003-01-12 David Carlton <carlton@bactrian.org>
10880
10881 * linespec.c (symtab_from_filename): Rename variable 's' to
10882 'file_symtab'.
10883
1ce79225
AC
108842003-01-12 Andrew Cagney <ac131313@redhat.com>
10885
10886 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10887 dummy frame.
10888 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10889
fa1fd571
AC
108902003-01-12 Andrew Cagney <ac131313@redhat.com>
10891
10892 * d10v-tdep.c: Include "gdb_assert.h".
10893 (d10v_store_return_value): Rewrite to match current interface.
10894 (d10v_extract_struct_value_address): Ditto.
10895 (d10v_extract_return_value): Ditto.
10896 (d10v_gdbarch_init): Set store_restore_value,
10897 extract_struct_value_address and extract_return_value.
10898
68b8d23e
JB
108992003-01-12 J. Brobecker <brobecker@gnat.com>
10900
10901 * hpread.c (set_namestring): New procedure replacing the
10902 SET_NAMESTRING macro.
10903 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10904 by calls to set_namestring.
10905
109062003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10907
10908 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10909 a compilation warning.
10910 (hpread_process_one_debug_symbol): Likewise.
10911
88d262ca
DC
109122003-01-10 David Carlton <carlton@math.stanford.edu>
10913
10914 * linespec.c (decode_line_1): Rename variable 's' to
10915 'file_symtab'.
10916 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10917 (decode_dollar): Ditto.
10918 (decode_variable): Ditto.
10919 (symbol_found): Ditto.
10920
86669319
MC
109212003-01-09 Michael Chastain <mec@shout.net>
10922
10923 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10924
616a9dc4
CV
109252003-01-07 Corinna Vinschen <vinschen@redhat.com>
10926
10927 * win32-nat.c (set_process_privilege): New function.
10928 (child_attach): Call set_process_privilege() to enable the
10929 SE_DEBUG_NAME user privilege if available in process token.
10930
3269bcfa
JB
109312003-01-10 J. Brobecker <brobecker@gnat.com>
10932
10933 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10934 compilation error in the previous revision.
10935
2b0ee454
DC
109362003-01-09 David Carlton <carlton@math.stanford.edu>
10937
10938 * linespec.c: Update copyright.
10939
b3ba1b44
DJ
109402003-01-09 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10943 than inferior_ptid.
10944 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10945
4ef3f3be
AC
109462003-01-09 Andrew Cagney <ac131313@redhat.com>
10947
479ab5a0
AC
10948 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10949 Update comments.
10950 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10951 (frame_saved_regs_zalloc): Update.
10952 (frame_saved_regs_register_unwind): Update.
10953 (create_new_frame): Update.
10954 (get_prev_frame): Update.
10955 (frame_extra_info_zalloc): Update.
10956 (deprecated_get_frame_saved_regs): Update.
10957 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10958 * cris-tdep.c: Update comment.
10959
bde58177
AC
10960 * somsolib.h: Fix function indentation.
10961 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10962 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10963 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10964 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10965 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10966
4ef3f3be
AC
10967 * infrun.c (follow_fork): Use ISO C definition.
10968 * expprint.c (print_subexp): Use xfree instead of free.
10969 * charset.c: Include "gdb_string.h" instead of <string.h>.
10970 (register_iconv_charsets): Use ISO C definition.
10971 (host_charset, target_charset): Ditto.
10972 * Makefile.in (charset.o): Update dependencies.
10973 (mi-cmd-env.o): Update dependencies.
10974
1c615f7a
AC
109752003-01-08 Andrew Cagney <cagney@redhat.com>
10976
10977 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10978 get_frame_base.
10979
c9a1dc08
AC
109802003-01-08 Andrew Cagney <ac131313@redhat.com>
10981
10982 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10983 build directories. Save edited gdb output in Mbuild.log. If a
10984 build fails, remove any final GDB executable.
10985
dbad9d94
AC
109862003-01-08 Andrew Cagney <ac131313@redhat.com>
10987
10988 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10989 replacing hex constants with function names and stripping leading
10990 file name directory prefixes.
10991
8d357cca
AC
109922003-01-08 Andrew Cagney <cagney@redhat.com>
10993
10994 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10995 get_frame_base.
10996
bca02a8a
DC
109972003-01-08 David Carlton <carlton@math.stanford.edu>
10998
10999 * linespec.c (decode_line_1): Move code into decode_variable.
11000 (decode_variable): New function.
11001
7f8ab3a0
AC
110022003-01-08 Andrew Cagney <ac131313@redhat.com>
11003
11004 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11005
7b5849cc
AC
110062003-01-08 Andrew Cagney <cagney@redhat.com>
11007
11008 * cris-tdep.c (cris_frame_init_saved_regs): Use
11009 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11010 saved_regs buffer.
11011 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11012 (sh64_nofp_frame_init_saved_regs): Ditto.
11013 (sh_fp_frame_init_saved_regs): Ditto.
11014 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11015 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11016 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11017 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11018
72a5efb3
DJ
110192003-01-08 Daniel Jacobowitz <drow@mvista.com>
11020
11021 * minsyms.c (lookup_minimal_symbol): Update comment.
11022 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11023 (lookup_minimal_symbol_solib_trampoline): Likewise.
11024
11c02a10
AC
110252003-01-08 Andrew Cagney <cagney@redhat.com>
11026
aab3ea25
AC
11027 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11028 frame_relative_level.
11029
da50a4b7
AC
11030 * alpha-tdep.c: Use get_frame_extra_info.
11031 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11032 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11033 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11034 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11035
11c02a10
AC
11036 * alpha-tdep.c: Use get_next_frame.
11037 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11038 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11039 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11040 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11041 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11042 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11043 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11044
1e2330ba
AC
110452003-01-07 Andrew Cagney <cagney@redhat.com>
11046
11047 * alpha-tdep.c: Use get_frame_base.
11048 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11049 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11050 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11051 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11052 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11053 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11054 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11055 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11056
2d75187b
AC
110572003-01-07 Andrew Cagney <cagney@redhat.com>
11058
11059 * frame.c (deprecated_get_frame_context): New function.
11060 (deprecated_set_frame_context): New function.
11061 * frame.h (deprecated_get_frame_context): Declare.
11062 (deprecated_set_frame_context): Declare.
11063 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11064 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11065
483d36b2
AC
110662003-01-07 Andrew Cagney <cagney@redhat.com>
11067
11068 * frame.c (deprecated_set_frame_next_hack): New function.
11069 (deprecated_set_frame_prev_hack): New function.
11070 * frame.h (deprecated_set_frame_next_hack): Declare.
11071 (deprecated_set_frame_prev_hack): Declare.
11072 * mcore-tdep.c (analyze_dummy_frame): Use
11073 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11074 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11075
14e91ac5
DC
110762003-01-07 David Carlton <carlton@math.stanford.edu>
11077
11078 * linespec.c (decode_line_1): Move code into decode_dollar.
11079 (decode_dollar): New function.
11080
b0c6b05c
AC
110812003-01-07 Andrew Cagney <cagney@redhat.com>
11082
11083 * arm-tdep.c (arm_init_extra_frame_info): Use
11084 deprecated_update_frame_base_hack.
11085 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11086 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11087 (fix_frame_pointer): Ditto.
11088 (mn10300_analyze_prologue): Ditto.
11089
a00a19e9
AC
110902003-01-07 Andrew Cagney <cagney@redhat.com>
11091
11092 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11093 extra_info using frame_extra_info_zalloc.
11094 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11095 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11096 (sh64_init_extra_frame_info): Ditto.
11097 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11098 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11099 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11100 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11101 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11102 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11103 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11104 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11105 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11106 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11107 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11108 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11109
11110 * mn10300-tdep.c (analyze_dummy_frame): Use
11111 deprecated_set_frame_extra_info_hack.
11112 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11113
1fb4c65b
JB
111142003-01-07 J. Brobecker <brobecker@gnat.com>
11115
11116 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11117 class is not scText. These do not define "real" procedures.
11118 (parse_partial_symbols): Likewise.
11119
9fe7d6bf
MS
111202003-01-06 Michael Snyder <msnyder@redhat.com>
11121
11122 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11123
f6c609c4
AC
111242003-01-06 Andrew Cagney <ac131313@redhat.com>
11125
11126 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11127 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11128 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11129 deprecated_frame_xmalloc_with_cleanup.
11130 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11131 deprecated_frame_xmalloc.
11132 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11133 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11134
d995ff4b
AC
111352003-01-06 Andrew Cagney <cagney@redhat.com>
11136
84dc46cb
AC
11137 * x86-64-linux-tdep.c: Include "osabi.h".
11138 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11139
d995ff4b
AC
11140 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11141
66140c26
AC
111422003-01-06 Andrew Cagney <cagney@redhat.com>
11143
11144 * MAINTAINERS (Target Instruction Set Architectures): Update
11145 arm-elf. Can be built with -Werror, has been multiarched.
11146
11147 * value.h (unpack_long): Make buffer parameter constant.
11148 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11149 * scm-lang.h (scm_parse): Ditto.
11150 * defs.h (extract_typed_address, extract_address): Ditto.
11151 (extract_long_unsigned_integer): Ditto.
11152 * inferior.h (unsigned_pointer_to_address): Ditto.
11153 (signed_pointer_to_address): Ditto.
11154 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11155 * gdbarch.h, gdbarch.c: Regenerate.
11156 * findvar.c (extract_long_unsigned_integer): Update.
11157 (extract_address): Update.
11158 (extract_typed_address): Update.
11159 (unsigned_pointer_to_address): Update.
11160 * values.c (unpack_long): Update.
11161 (unpack_double): Update.
11162 (unpack_pointer): Update.
11163 (unpack_field_as_long): Update.
11164 * d10v-tdep.c (d10v_pointer_to_address): Update.
11165 * avr-tdep.c (avr_pointer_to_address): Update.
11166 * scm-lang.c (scm_unpack): Update.
11167 * findvar.c (signed_pointer_to_address): Update.
11168
b089b3da
ML
111692003-01-06 Michal Ludvig <mludvig@suse.cz>
11170
8ffd9b1b 11171 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11172 since it is in i386-tdep.c.
11173
aff87235
JB
111742003-01-06 J. Brobecker <brobecker@gnat.com>
11175
11176 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11177 failure introduced in the previous change.
11178
34f5e845
MC
111792003-01-05 Michael Chastain <mec@shout.net>
11180
11181 * README: Remove references to deleted remote-*.c files:
11182 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11183 remote-nrom.c, remote-os9k.c, remote-udi.c.
11184
28bcfd30
MK
111852003-01-05 Mark Kettenis <kettenis@gnu.org>
11186
11187 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11188 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11189 i386_get_longjmp_target.
11190
15a5b3ee
AC
111912003-01-05 Andrew Cagney <ac131313@redhat.com>
11192
11193 * arm-tdep.c (prologue_cache): Change to a pointer.
11194 (_initialize_arm_tdep): Allocate prologue_cache.
11195 (check_prologue_cache): Update.
11196 (save_prologue_cache): Update.
11197 (arm_gdbarch_init): Update.
11198
c263362b
DJ
111992003-01-04 Daniel Jacobowitz <drow@mvista.com>
11200
11201 * stabsread.c (update_method_name_from_physname): Call complaint()
11202 instead of error.
11203
51603483
DJ
112042003-01-04 Daniel Jacobowitz <drow@mvista.com>
11205
11206 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11207 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11208 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11209
11210 * blockframe.c: Include "gdbcmd.h" and "command.h".
11211 (backtrace_below_main): New variable.
11212 (file_frame_chain_valid, func_frame_chain_valid)
11213 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11214 (generic_func_frame_chain_valid): Remove functions.
11215 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11216 (_initialize_blockframe): New function.
11217 * Makefile.in (blockframe.o): Update dependencies.
11218 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11219 comment. Call frame_chain_valid ().
11220 * frame.h: Remove old prototypes. Add prototype for
11221 frame_chain_valid and update comments to match.
11222 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11223 Remove old comment.
11224 * gdbarch.h: Regenerated.
11225 * gdbarch.c: Regenerated.
11226
11227 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11228 set_gdbarch_frame_chain_valid.
11229 * avr-tdep.c (avr_gdbarch_init): Likewise.
11230 * cris-tdep.c (cris_gdbarch_init): Likewise.
11231 * frv-tdep.c (frv_gdbarch_init): Likewise.
11232 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11233 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11234 (i386_nw_init_abi): Likewise.
11235 (i386_gdbarch_init): Likewise.
11236 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11238 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11239 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11240 * mips-tdep.c (mips_gdbarch_init): Likewise.
11241 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11242 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11243 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11244 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11245 * s390-tdep.c (s390_gdbarch_init): Likewise.
11246 * sh-tdep.c (sh_gdbarch_init): Likewise.
11247 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11248 * v850-tdep.c (v850_gdbarch_init): Likewise.
11249 * vax-tdep.c (vax_gdbarch_init): Likewise.
11250 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11251
11252 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11253 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11254 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11255 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11256 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11257 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11258 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11259 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11260
b00a8037
DJ
112612002-01-04 Daniel Jacobowitz <drow@mvista.com>
11262
11263 * Makefile.in (acconfig_h): Remove incorrect macro.
11264 (config_h): Define.
11265 (osabi.o): Update dependencies.
11266 * configure.tgt: Set gdb_osabi based on target triplet.
11267 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11268 * configure: Regenerated.
11269 * config.in: Regenerated.
11270 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11271 (GDB_OSABI_DEFAULT): Define if not already defined.
11272 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11273 (set_osabi_string): New variables.
11274 (gdbarch_register_osabi): Add new OS ABI to
11275 gdb_osabi_available_names.
11276 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11277 (set_osabi, show_osabi): New functions.
11278 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11279
4be87837
DJ
112802003-01-04 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * arch-utils.c (gdbarch_info_init): Set osabi to
11283 GDB_OSABI_UNINITIALIZED.
11284 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11285 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11286 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11287 * gdbarch.c: Regenerated.
11288 * gdbarch.h: Regenerated.
11289 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11290 there's no BFD.
11291 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11292 * osabi.h (enum gdb_osabi): Move to defs.h.
11293 (gdbarch_init_osabi): Update prototype.
11294 * defs.h (enum gdb_osabi): Moved here.
11295 * Makefile.in: Update dependencies.
11296
11297 * alpha-tdep.h: Don't include "osabi.h".
11298 (struct gdbarch_tdep): Remove osabi member.
11299 * alpha-tdep.c: Include "osabi.h".
11300 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11301 iterate over arches. Update call to gdbarch_init_osabi.
11302 (alpha_dump_tdep): Don't dump osabi.
11303 * alpha-linux-tdep.c: Include "osabi.h".
11304 * alpha-osf1-tdep.c: Include "osabi.h".
11305 * alphafbsd-tdep.c: Include "osabi.h".
11306 * alphanbsd-tdep.c: Include "osabi.h".
11307
11308 * arm-tdep.h: Don't include "osabi.h".
11309 (struct gdbarch_tdep): Remove osabi member.
11310 * arm-tdep.c: Include "osabi.h".
11311 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11312 iterate over arches. Update call to gdbarch_init_osabi.
11313 (arm_dump_tdep): Don't dump osabi.
11314 * arm-linux-tdep.c: Include "osabi.h".
11315 * armnbsd-tdep.c: Include "osabi.h".
11316
11317 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11318 Update call to gdbarch_init_osabi.
11319
11320 * i386-tdep.h: Don't include "osabi.h".
11321 (struct gdbarch_tdep): Remove osabi member.
11322 * i386-tdep.c: Include "osabi.h".
11323 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11324 iterate over arches. Update call to gdbarch_init_osabi.
11325 (i386_dump_tdep): Don't dump osabi.
11326 * i386-linux-tdep.c: Include "osabi.h".
11327 * i386-sol2-tdep.c: Include "osabi.h".
11328 * i386bsd-tdep.c: Include "osabi.h".
11329 * i386gnu-tdep.c: Include "osabi.h".
11330 * i386ly-tdep.c: Include "osabi.h".
11331 * i386nbsd-tdep.c: Include "osabi.h".
11332 * i386obsd-tdep.c: Include "osabi.h".
11333
11334 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11335 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11336 check osabi when iterating over arches. Update call to
11337 gdbarch_init_osabi.
11338 (mips_dump_tdep): Don't dump osabi.
11339
11340 * ns32k-tdep.h: Don't include "osabi.h".
11341 (struct gdbarch_tdep): Remove.
11342 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11343 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11344 allocate tdep. Update call to gdbarch_init_osabi.
11345 (ns32k_dump_tdep): Remove.
11346 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11347 * ns32knbsd-tdep.c: Include "osabi.h".
11348
11349 * ppc-tdep.h: Don't include "osabi.h".
11350 (struct gdbarch_tdep): Remove osabi member.
11351 * rs6000-tdep.c: Include "osabi.h".
11352 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11353 osabi when iterating over arches. Update call to
11354 gdbarch_init_osabi.
11355 (rs6000_dump_tdep): Don't dump osabi.
11356 * ppc-linux-tdep.c: Include "osabi.h".
11357 * ppcnbsd-tdep.c: Include "osabi.h".
11358
11359 * sh-tdep.h: Don't include "osabi.h".
11360 (struct gdbarch_tdep): Remove osabi member.
11361 * sh-tdep.c: Include "osabi.h".
11362 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11363 iterate over arches. Update call to gdbarch_init_osabi.
11364 (sh_dump_tdep): Don't dump osabi.
11365 * shnbsd-tdep.c: Include "osabi.h".
11366
11367 * sparc-tdep.c: Include "osabi.h".
11368 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11369 iterate over arches. Update call to gdbarch_init_osabi.
11370 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11371 tdep structure.
11372
11373 * vax-tdep.h: Don't include "osabi.h".
11374 (struct gdbarch_tdep): Remove.
11375 * vax-tdep.c: Include "osabi.h".
11376 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11377 iterate over arches. Don't allocate tdep. Update call
11378 to gdbarch_init_osabi.
11379 (vax_dump_tdep): Remove.
11380 (_initialize_vax_tdep): Update call to gdbarch_register.
11381
a881cf8e
DJ
113822003-01-04 Daniel Jacobowitz <drow@mvista.com>
11383
11384 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11385 entirely.
11386 (breakpoint_re_set_one): Don't fetch the value for a disabled
11387 watchpoint.
11388
1e698235
DJ
113892003-01-04 Daniel Jacobowitz <drow@mvista.com>
11390
11391 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11392 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11393 (COERCE_FLOAT_TO_DOUBLE): Remove.
11394 * gdbarch.c: Regenerate.
11395 * gdbarch.h: Regenerate.
11396 * Makefile.in: Remove value_h from gdbarch_h.
11397 * valops.c (coerce_float_to_double): New variable.
11398 (default_coerce_float_to_double): Remove.
11399 (standard_coerce_float_to_double): Remove.
11400 (value_arg_coerce): Use coerce_float_to_double.
11401 (_initialize_valops): Add "set coerce-float-to-double".
11402 * value.h (default_coerce_float_to_double): Remove prototype.
11403 (standard_coerce_float_to_double): Remove prototype.
11404
11405 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11406 prototyped.
11407 * mdebugread.c (parse_symbol): Likewise.
11408 * stabsread.c (define_symbol): Mark all functions as prototyped.
11409
11410 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11411 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11412 set_gdbarch_coerce_float_to_double.
11413 * arm-tdep.c (arm_gdbarch_init): Likewise.
11414 * frv-tdep.c (frv_gdbarch_init): Likewise.
11415 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11416 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11417 * mips-tdep.c (mips_gdbarch_init): Likewise.
11418 (mips_coerce_float_to_double): Remove.
11419 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11420 (rs6000_coerce_float_to_double): Remove.
11421 * s390-tdep.c (s390_gdbarch_init): Likewise.
11422 * sh-tdep.c (sh_gdbarch_init): Likewise.
11423 (sh_coerce_float_to_double): Remove.
11424 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11425 (sparc_coerce_float_to_double): Remove.
11426 * v850-tdep.c (v850_gdbarch_init): Likewise.
11427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11428 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11429 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11430 (hppa_coerce_float_to_double): Remove prototype.
11431 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11432
f436a26a
DJ
114332003-01-04 Daniel Jacobowitz <drow@mvista.com>
11434
11435 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11436
248f8055
DJ
114372003-01-04 Daniel Jacobowitz <drow@mvista.com>
11438
11439 Suggested by Stewart Brown <sb24@avaya.com>:
11440 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11441 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11442 (c_type_print_varspec_suffix): Likewise.
11443
72cfdc76
MK
114442003-01-04 Mark Kettenis <kettenis@gnu.org>
11445
bfd260bb
MK
11446 * configure.in: Don't set and AC_SUBST SUBDIRS.
11447 * configure: Regenerated.
11448
72cfdc76
MK
11449 * configure.in: Remove code dealing with shared libraries.
11450 * Makefile.in: Remove HLDFLAGS and HLDENV.
11451 * configure: Regenerated.
11452
c8b8a898
AC
114532003-01-04 Andrew Cagney <ac131313@redhat.com>
11454
11455 * frame.c (deprecated_frame_xmalloc): New function.
11456 (deprecated_set_frame_saved_regs_hack): New function.
11457 (deprecated_set_frame_extra_info_hack): New function.
11458 * frame.h (deprecated_frame_xmalloc): Declare.
11459 (deprecated_set_frame_saved_regs_hack): Declare.
11460 (deprecated_set_frame_extra_info_hack): Declare.
11461
14abd0fb
MK
114622003-01-04 Mark Kettenis <kettenis@gnu.org>
11463
8ee53726
MK
11464 * configure.in: Move code that provides the --enable-gdbtk option
11465 right after the code that handles the --enable-tui option, and
11466 polish it somewhat.
11467 * configure: Regenerated.
11468
14abd0fb
MK
11469 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11470 AC_CHECK_FUNCS and remove the old check for pread64.
11471 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11472 * acconfig.h (_GNU_SOURCE): Add.
11473 (HAVE_PREAD64): Remove.
11474 * configure, aclocal.m4, config.in: Regenerated.
11475
b2fb4676
AC
114762003-01-03 Andrew Cagney <ac131313@redhat.com>
11477
11478 * alpha-tdep.c: Use get_frame_saved_regs.
11479 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11480 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11481 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11482 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11483 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11484
8dcde887
MK
114852003-01-03 Mark Kettenis <kettenis@gnu.org>
11486
11487 * configure.in: Remove all use of the SUBDIRS variable; add
11488 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11489 code providing the --enable-multi-ice option, and move it right in
11490 front of the code that checks whether gdbserver is supported.
11491 Polish that too.
11492 * configure: Regenerated.
11493 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11494 @SUBDIRS@.
11495
8ccd593b
AC
114962003-01-03 Andrew Cagney <cagney@redhat.com>
11497
11498 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11499 * avr-tdep.c, cris-tdep.c: Ditto.
11500 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11501 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11502
91151a06
MK
115032003-01-03 Mark Kettenis <kettenis@gnu.org>
11504
11505 * configure.in: Remove --enable-netrom option.
11506 * configure: Regenerated.
11507
8fe84d01
MK
115082003-01-03 Mark Kettenis <kettenis@gnu.org>
11509
11510 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11511 declaration for `struct re_pattern_buffer' instead.
11512 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11513
f0394be6
JB
115142003-01-03 J. Brobecker <brobecker@gnat.com>
11515
11516 * mdebugread.c (parse_symbol): Count until the stEnd matching
11517 the structure name.
11518
27e9bf90
MK
115192003-01-02 Mark Kettenis <kettenis@gnu.org>
11520
93d331ba
MK
11521 * configure.in: Remove --with-cpu option.
11522 subscripts. Remove evil changequotes here.
11523 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11524 * config.in, configure: Regenerated.
8ffd9b1b 11525
27e9bf90
MK
11526 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11527 * configure.in: Cleanup section that sources GDB and BFD configure
11528 subscripts. Remove evil changequotes here.
11529 * config.in, configure: Regenerated.
11530
50abf9e5
AC
115312003-01-02 Andrew Cagney <ac131313@redhat.com>
11532
11533 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11534 frame accessor methods.
11535 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11536 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11537 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11538 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11539 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11540 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11541 * z8k-tdep.c: Ditto.
8ffd9b1b 11542
287c1a40
MK
115432003-01-02 Mark Kettenis <kettenis@gnu.org>
11544
f5dbc56d
MK
11545 * configure.in: Remove UI_OUT configuration code.
11546 * ada-lang.c: Update assuming UI_OUT is always true.
11547 * Makefile.in (UIOUT_CFLAGS): Remove.
11548 * configure: Regenerated.
11549 * TODO: Remove blurb about elimination of -DUI_OUT.
11550
627af7ea
MK
11551 * configure.in: Move code that provides the --enable-gdbcli,
11552 --enable-gdbmi options right before the code that handles the
11553 --enable-tui option. Polish a bit.
11554 * configure: Regenerated.
11555
06825bd1
MK
11556 * configure.in: Rewrite check for GNU regex and the
11557 --without-included regex option, and move it into the "Checks for
11558 library functions" section. This makes us use the system regex
11559 again by default on systems with version 2 of the GNU C library.
11560 This was apparently broken.
11561 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11562 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11563 * config.in, configure: Regenerated.
11564
287c1a40
MK
11565 * configure.in: Move code that provides the --enable-tui option
11566 before the "Checks for libraries" section. Polish the code
11567 somewhat and set need_curses to yes if we build the TUI. Rewrite
11568 code that looks for a library providing termcap functionality to
11569 match more closely what's done in the Readline library, and move
11570 it into to the "Checks for libraries" section.
11571 * configure: Regenerated.
11572 * Makefile.in (TERMCAP): Remove variable.
11573 * config/i386/go32.mh (TERMCAP): Remove variable.
11574
684e56bf
AC
115752003-01-02 Andrew Cagney <ac131313@redhat.com>
11576
11577 * MAINTAINERS: Mention gdb_mbuild.sh.
11578 * gdb_mbuild.sh: Rewrite.
11579
e1ea1d75
MK
115802003-01-02 Mark Kettenis <kettenis@gnu.org>
11581
11582 * configure.in: Fix typo in last change.
11583 * config.in, configure: Regenerated.
11584
1b831c93
AC
115852003-01-02 Andrew Cagney <ac131313@redhat.com>
11586
11587 * valarith.c (value_binop): Delete obsolete code and comments.
11588 * configure.host: Ditto.
11589 * buildsym.h (make_blockvector): Ditto.
11590 * buildsym.c (make_blockvector): Ditto.
11591 * defs.h (enum language): Ditto.
11592 (chill_demangle): Ditto.
11593 * elfread.c (elf_symtab_read): Ditto.
11594 * dwarfread.c (CHILL_PRODUCER): Ditto.
11595 (set_cu_language): Ditto.
11596 (handle_producer): Ditto.
11597 * expprint.c (print_subexp): Ditto.
11598 * gdbtypes.c (chill_varying_type): Ditto.
11599 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11600 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11601 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11602 (chill_varying_type): Ditto.
11603 * language.h (_LANG_chill): Ditto.
11604 * language.c (binop_result_type, integral_type): Ditto.
11605 (character_type, string_type, structured_type): Ditto.
11606 (lang_bool_type, binop_type_check): Ditto.
11607 * stabsread.h (os9k_stabs): Ditto.
11608 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11609 (define_symbol, read_type, read_struct_fields): Ditto.
11610 (read_array_type, read_enum_type, read_huge_number): Ditto.
11611 (read_range_type, start_stabs): Ditto.
11612 * symfile.c (init_filename_language_table): Ditto.
11613 (add_psymbol_with_dem_name_to_list): Ditto.
11614 * symtab.c (symbol_init_language_specific): Ditto.
11615 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11616 * symtab.h (struct general_symbol_info): Ditto.
11617 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11618 * typeprint.c (typedef_print): Ditto.
11619 * utils.c (fprintf_symbol_filtered): Ditto.
11620 * valops.c (value_cast, search_struct_field, value_slice): Delete
11621 obsolete code.
11622 (varying_to_slice): Delete function.
11623 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11624 (varying_to_slice): Delete declaration.
11625 * MAINTAINERS: Update.
11626
8bb2c122
MK
116272003-01-02 Mark Kettenis <kettenis@gnu.org>
11628
97bf5e38
MK
11629 * configure.in: Reorganize "Checks for library functions section"
11630 a bit. Remove check for `btowc' and `isascii' functions.
11631 * configure: Regenerated.
11632
5ee754fc
MK
11633 * acconfig.h (_MSE_INT_H): Remove.
11634 * configure.in: Create "Checks for header files" section, and move
11635 appropriate tests there. Don't check for objlist.h, wchar.h,
11636 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11637 misdetection fix. Also add "Checks for types", "Checks for
11638 compiler characteristics" and "Checks for library functions"
11639 sections.
11640 * config.in, configure: Regenerated.
11641
8bb2c122
MK
11642 * configure.in: Create "Checks for programs" section, and move
11643 appropriate tests there.
11644
9a156167
MK
116452003-01-01 Mark Kettenis <kettenis@gnu.org>
11646
11647 * configure.in: Create "Checks for libraries" section, and move
11648 appropriate tests there. Cleanup check for wctype in libw. Use
11649 AC_SEARCH_LIBS to see whether we need libsocket.
11650 * configure: Regenerated.
11651
a80e2bcb 11652For older changes see ChangeLog-2002
c906108c
SS
11653\f
11654Local Variables:
11655mode: change-log
11656left-margin: 8
11657fill-column: 74
11658version-control: never
11659End:
This page took 1.112032 seconds and 4 git commands to generate.