Add support for v850e1 machine number.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-09 Nick Clifton <nickc@redhat.com>
2
3 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
4
5 2003-09-04 Andrew Cagney <cagney@redhat.com>
6
7 * avr-tdep.c: Include "dis-asm.h".
8 * cris-tdep.c: Include "dis-asm.h".
9 (cris_delayed_get_disassembler): Use "struct disassemble_info"
10 instead of corresponding typedef.
11 * h8300-tdep.c: Include "dis-asm.h".
12 * ia64-tdep.c: Include "dis-asm.h".
13 * i386-tdep.c: Include "dis-asm.h".
14 (i386_print_insn): Use "struct disassemble_info" instead of
15 corresponding typedef.
16 * m68k-tdep.c: Include "dis-asm.h".
17 * mcore-tdep.c: Include "dis-asm.h".
18 * mips-tdep.c: Include "dis-asm.h".
19 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
20 instead of corresponding typedef.
21 * ns32k-tdep.c: Include "dis-asm.h".
22 * s390-tdep.c: Include "dis-asm.h".
23 * sparc-tdep.c: Include "dis-asm.h".
24 * vax-tdep.c: Include "dis-asm.h".
25 * v850-tdep.c: Include "dis-asm.h".
26 * mn10300-tdep.c: Include "dis-asm.h".
27 * rs6000-tdep.c: Include "dis-asm.h".
28 * xstormy16-tdep.c: Include "dis-asm.h".
29 (_initialize_xstormy16_tdep): Delete "extern" declaration of
30 print_insn_xstormy16.
31 * Makefile.in (v850-tdep.o): Update dependencies.
32 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
33 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
34 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
35 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
36 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
37 (gdbarch_h): Remove $(dis_asm_h).
38 * disasm.c: Include "dis-asm.h".
39 (dis_asm_read_memory): Use "struct disassemble_info" instead of
40 corresponding typedef.
41 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
42 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
43 * gdbarch.sh: Do not include "dis-asm.h".
44 (struct disassemble_info): Declare opaque.
45 (TARGET_PRINT_INSN): Update declaration.
46 * gdbarch.h, gdbarch.c: Re-generate.
47
48 2003-09-08 Andrew Cagney <cagney@redhat.com>
49
50 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
51 CALL_DUMMY_ADDRESS, change to a predicate.
52 * gdbarch.h, gdbarch.c: Re-generate.
53 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
54 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
55 * infcall.c (call_function_by_hand): Ditto.
56 * sparc-tdep.c (sparc_push_return_address): Ditto.
57 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
58 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
59 CALL_DUMMY_ADDRESS with entry_point_address.
60 * v850-tdep.c (v850_push_return_address): Ditto.
61 * s390-tdep.c (s390_push_return_address): Ditto.
62 * rs6000-tdep.c (ppc_push_return_address): Ditto.
63 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
64 * mcore-tdep.c (mcore_push_return_address): Ditto.
65 * cris-tdep.c (cris_push_return_address): Ditto.
66 * arm-tdep.c (arm_push_return_address): Ditto.
67
68 2003-09-08 Andrew Cagney <cagney@redhat.com>
69
70 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
71 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
72 and REG_UNMODIFIED to REG_SAME_VALUE.
73 (execute_cfa_program): Update.
74 (dwarf2_frame_cache): Update. Initialize table to
75 REG_UNSPECIFIED, complain if CFI fails to specify a register's
76 location.
77 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
78
79 2003-09-08 Andrew Cagney <cagney@redhat.com>
80
81 * gnu-nat.c: Remove "inline" function attribute.
82 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
83
84 2003-09-08 Kevin Buettner <kevinb@redhat.com>
85
86 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
87 target.
88
89 2003-09-08 Kevin Buettner <kevinb@redhat.com>
90
91 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
92 (frame_extra_info): Rename this struct to frv_unwind_cache.
93 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
94 Add fields ``prev_sp'' and ``base''.
95 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
96 (frv_saved_pc_after_call, frv_init_extra_frame_info)
97 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
98 Delete.
99 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
100 Revise all callers. Fill in the unwind cache argument and make
101 other adjustments to account for new frame mechanisms.
102 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
103 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
104 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
105 (frv_frame_unwind, frv_frame_base): New structs.
106 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
107 additional arguments expected by this method and adjust function
108 body accordingly.
109 (frv_gdbarch_init): Remove calls to the following functions:
110 set_gdbarch_deprecated_init_frame_pc(),
111 set_gdbarch_deprecated_saved_pc_after_call(),
112 set_gdbarch_deprecated_frame_chain(),
113 set_gdbarch_deprecated_frame_saved_pc(),
114 set_gdbarch_deprecated_frame_init_saved_regs(),
115 set_gdbarch_deprecated_push_arguments(),
116 set_gdbarch_deprecated_push_return_address(),
117 set_gdbarch_deprecated_pop_frame(),
118 set_gdbarch_deprecated_call_dummy_words(),
119 set_gdbarch_deprecated_sizeof_call_dummy_words(),
120 set_gdbarch_deprecated_init_extra_frame_info(),
121 set_gdbarch_deprecated_dummy_write_sp(), and
122 set_gdbarch_deprecated_pc_in_call_dummy().
123 Add calls to the following functions:
124 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
125 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
126 frame_base_set_default().
127 * Makefile.in (frv-tdep.o): Update dependencies.
128
129 2003-09-09 Mark Kettenis <kettenis@gnu.org>
130
131 * dwarf2-frame.c (read_encoded_value): Add support for
132 DW_EH_PE_aligned encoding.
133
134 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
135
136 * infrun.c (normal_stop): Don't print a message if the inferior
137 has exited.
138
139 2003-09-08 Jim Blandy <jimb@redhat.com>
140
141 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
142 * dbxread.c: #include "gdb_assert.h".
143 (read_dbx_symtab): If the objfile has no .data section, use the
144 section index for the .bss section instead.
145
146 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
147
148 * frame.c (deprecated_safe_get_selected_frame): New function.
149 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
150 * findvar.c (read_var_value): Call it.
151
152 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
153
154 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
155 (sh64-tdep.o): Add dependencies.
156 * configure.tgt: Add FIXME to sh-*-linux*.
157 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
158 (sh_gdbarch_init): Always set correct sh_show_regs function
159 pointer. Call sh64_gdbarch_init() if machine type is sh5.
160 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
161 * sh64-tdep.c: New file, containing all sh64 related code from
162 sh-tdep.c.
163 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
164 * config/sh/linux.mt (TDEPFILES): Ditto.
165 * config/sh/nbsd.mt (TDEPFILES): Ditto.
166 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
167 * config/sh/wince.mt (TDEPFILES): Ditto.
168
169 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
170
171 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
172 (stop_wait_callback): Handle !lp->signalled also.
173 (lin_lwp_has_pending, flush_callback): New functions.
174 (lin_lwp_wait): Call flush_callback.
175 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
176 (linux_proc_pending_signals): New function.
177 * linux-nat.h (linux_proc_pending_signals): Add prototype.
178
179 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
180
181 From Nick Kelsey <nickk@ubicom.com>:
182 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
183 when the stop PC is at the beginning of a function also.
184
185 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
186
187 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
188 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
189
190 2003-09-06 Mark Kettenis <kettenis@gnu.org>
191
192 * sol-thread.c: Include "gdb_string.h".
193
194 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
195
196 * gcore.c: Reorder include files in alphabetical order. Include
197 "gdb_assert.h". Various coding style fixes.
198 (derive_stack_segment, derive_heap_segment): Replace check for
199 non-null BOTTOM and TOP with gdb_assert.
200 (derive_heap_segment): Replace check for successful creation of
201 ZERO with gdb_assert.
202 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
203
204 2003-09-04 Andrew Cagney <cagney@redhat.com>
205
206 * thread-db.c (verbose_dlsym): New function.
207 (thread_db_load): Use verbose_dlsym
208 (thread_db_new_objfile): Print that libthread_db was loaded, and
209 that thread debugging was enabled.
210
211 2003-09-04 Andrew Cagney <cagney@redhat.com>
212
213 * configure.tgt: Add "mips64*-*-*" target. Delete
214 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
215 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
216 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
217 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
218 mips*-sony-*, and mips64*-*-elf* targets.
219 * config/mips/embedl.mt: Delete file.
220 * config/mips/embedl64.mt: Delete file.
221 * config/mips/mips.mt: Delete file.
222 * config/mips/mips64.mt: Delete file.
223 * config/mips/tm-embed.h: Delete file.
224 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
225 * config/mips/embed64.mt: Delete out-of-date comment.
226
227 2003-09-04 Andrew Cagney <cagney@redhat.com>
228
229 * hppa-tdep.c (hppa_gdbarch_init): Set
230 "have_nonsteppable_watchpoint".
231 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
232 * mips-tdep.c (mips_dump_tdep): Do not print
233 HAVE_NONSTEPPABLE_WATCHPOINT.
234 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
235 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
236 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
237 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
238
239 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
240
241 * breakpoint.c (watchpoint_check): Remove accidentally checked in
242 unused code. Add comment.
243
244 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
245
246 * breakpoint.c (watchpoint_check): Check for pc being in an
247 epilogue if watchpoint frame couldn't be found.
248
249 2003-09-04 Andrew Cagney <cagney@redhat.com>
250
251 * Makefile.in: Re-generate all dependencies.
252
253 2003-09-03 Andrew Cagney <cagney@redhat.com>
254
255 * arch-utils.h (legacy_print_insn): Delete declaration.
256 * arch-utils.c (legacy_print_insn): Delete function.
257 * disasm.c (deprecated_tm_print_insn_info): Delete.
258 (_initialize_disasm): Delete function, contained code initializing
259 deprecated_tm_print_insn_info.
260 * gdbarch.sh (deprecated_tm_print_insn): Delete.
261 (deprecated_tm_print_insn_info): Delete.
262 (TARGET_PRINT_INSN): Do not provide a default.
263 * gdbarch.h, gdbarch.c: Re-generate.
264
265 2003-09-03 Andrew Cagney <cagney@redhat.com>
266
267 * disasm.c (fprintf_disasm): New function.
268 (gdb_disassemble_info): Call "init_disassemble_info", instead of
269 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
270 reverts 2003-08-14 change.
271 (_initialize_disasm): Call "init_disassemble_info", instead of
272 INIT_DISASSEMBLE_INFO_NO_ARCH.
273
274 2003-09-03 Michael Snyder <msnyder@redhat.com>
275
276 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
277
278 2003-09-03 Andrew Cagney <cagney@redhat.com>
279
280 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
281 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
282 * symfile.c (syms_from_objfile): Update.
283 (reread_symbols): `Update
284 * exec.c (exec_file_attach): Update.
285 (exec_file_attach): Update.
286 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
287 2003-08-29 change.
288 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
289
290 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
291
292 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
293 trad-frame.h.
294 (arm_get_cache): Delete macro.
295 (struct arm_prologue_cache): Update comments. Make saved_regs into
296 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
297 to prev_sp.
298 (thumb_scan_prologue): Update for cache changes. Don't call
299 DEPRECATED_PC_IN_CALL_DUMMY.
300 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
301 argument and use it in desperation search for our prologue. Do not
302 search past the specified PC.
303 (arm_make_prologue_cache): Simplify.
304
305 (arm_prologue_this_id, arm_prologue_prev_register)
306 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
307 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
308 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
309 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
310 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
311
312 (arm_frame_chain_valid, arm_find_callers_reg)
313 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
314 (arm_pop_frame): Delete obsolete methods.
315 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
316
317 (arm_gdbarch_init): Update for new frame methods. Register prologue
318 and sigtramp unwinders. Set the default frame base method.
319
320 * Makefile.in (arm-tdep.o): Update dependencies.
321 * varobj.c (find_frame_addr_in_frame_chain): Call
322 get_frame_base_address.
323 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
324
325 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
326
327 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
328 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
329 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
330 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
331 Take NEXT_FRAME and CACHE arguments. Call
332 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
333 Set unwound_pc in CACHE instead of modifying the frame argument.
334 Don't bother checking the frame type when looking for sigtramp
335 frames.
336 (arm_make_prologue_cache, arm_frame_chain)
337 (arm_init_extra_frame_info): New functions.
338
339 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
340
341 * arm-tdep.c (arm_get_cache): Define.
342 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
343 unwound_sp, unwound_pc, and saved_regs.
344 (thumb_scan_prologue): Take a cache instead of the frame.
345 (arm_scan_prologue): Likewise.
346 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
347 instead of a temporary frame.
348 (arm_init_extra_frame_info): Allocate and use a cache.
349 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
350
351 2003-09-03 Andrew Cagney <cagney@redhat.com>
352
353 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
354 * config/mips/wince.mt (TM_CLIBS): Ditto.
355 * config/sh/wince.mt (TM_CLIBS): Ditto.
356 * config/pa/hppa64.mt (TM_CLIBS): Delete.
357 * config/sparc/sp64.mt (CC): Delete.
358
359 2003-09-03 Andrew Cagney <cagney@redhat.com>
360
361 * defs.h: Do not include "arch-utils.h".
362 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
363 GDB_MULTI_ARCH_PURE.
364 * configure.in (GDB_MULTI_ARCH): Do not define.
365 * configure, config.in: Regenerate.
366 * configure.tgt: Do not set variable "gdb_multi_arch".
367 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
368 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
369 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
370 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
371 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
372 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
373 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
374 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
375 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
376 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
377 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
378 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
379 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
380 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
381 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
382 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
383 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
384 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
385
386 2003-08-30 Michael Chastain <mec@shout.net>
387
388 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
389 * config/m68k/nm-hp300hpux.h: Delete.
390 * config/m68k/tm-hp300hpux.h: Delete.
391 * config/m68k/xm-hp300hpux.h: Delete.
392 * config/m68k/xm-hp300bsd.h: Delete.
393 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
394 tm-hp300hpux.h, xm-hp300hpux.h.
395 * somsolib.c: Remove comment about hp300 shared libraries.
396
397 2003-08-31 Mark Kettenis <kettenis@gnu.org>
398
399 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
400 Only define PTRACE_GET_THREAD_AREA is not already defined.
401 Various style fixes in code and comments and some additional
402 spelling fixes in comments. Move after functions dealing with
403 debug registers.
404 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
405 Fix coding-style.
406
407 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
408 frame_unwind_register_unsigned instead of
409 frame_unwind_unsigned_register.
410
411 2003-08-30 Mark Kettenis <kettenis@gnu.org>
412
413 * configure.in: Search for gethostbyname in libnsl.
414 * configure: Regenerated.
415
416 2003-08-29 Mark Kettenis <kettenis@gnu.org>
417
418 * configure.in: Remove redundant AC_MSG_RESULT in check for
419 uintptr_t in stdint.h.
420 * configure: Regenerated.
421
422 * amd64-nat.h (struct regcache): Add opaque declaration.
423
424 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
425 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
426 Change "register array" to "register cache" in comments.
427 (x86_64_linux_gregset64_reg_offset): New variable.
428 (GETREGS_SUPPLIES): Remove macro.
429 (supply_gregset): Call amd64_supply_native_gregset instead of
430 x86_64_linux_supply_gregset.
431 (fill_gregset): Rename `regno' to `regnum'. Call
432 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
433 (store_regs): Rename `regno' to `regnum'.
434 (store_fpregs): Rename `regno' to `regnum'.
435 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
436 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
437 Reorganize function a bit.
438 (store_inferior_registers): Rename `regno' to `regnum'. Use
439 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
440 Reorganize function a bit.
441 (_initialize_x86_64_linux_nat): New function.
442 * config/i386/x86-64linux.mh.
443
444 2003-08-29 Andrew Cagney <cagney@redhat.com>
445
446 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
447 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
448 (target_remove_watchpoint): Delete macro.
449 (target_insert_watchpoint): Delete macro.
450 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
451 (remote_mips_stopped_by_watchpoint): Delete declaration.
452 (remote_mips_remove_watchpoint): Delete declaration.
453 (remote_mips_set_watchpoint): Delete declaration.
454 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
455 * remote-mips.c (_initialize_remote_mips): Set
456 "to_insert_watchpoint", "to_stopped_by_watchpoint",
457 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
458 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
459 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
460 (mips_stopped_by_watchpoint): Rename
461 remote_mips_stopped_by_watchpoint.
462 (mips_can_hardware_watchpoint): Rename
463 remote_mips_can_use_hardware_watchpoint, update function
464 signature.
465
466 2003-08-29 Mark Kettenis <kettenis@gnu.org>
467
468 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
469 USER_DS. We haven't given them a register number yet.
470
471 * amd64-nat.h: New file.
472 * amd64-nat.c: New file.
473 * amd64fbsd-nat.c: Include "amd64-nat.h".
474 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
475 (amd64fbsd32_r_reg_offset): New variable.
476 (supply_gregset): Simply call amd64_supply_native_gregset.
477 (fill_gregset): Rename `regno' to `regnum'. Simply call
478 amd64_collect_native_gregset.
479 (fill_fpregset): Rename `regno' to `regnum'.
480 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
481 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
482 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
483 `fpregset_t'. Call amd64_supply_native_gregset instead of
484 supply_gregset. Call x86_64_supply_fxsave instead of
485 supply_fpregset.
486 (store_inferior_registers): Rename `regno' to `regnum'. Replace
487 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
488 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
489 `fpregset_t'. Call amd64_collect_native_gregset instead of
490 fill_gregset. Call x86_64_collect_fxsave instead of
491 fill_fpregset.
492 (_initialize_am64fbsd_nat): Initialize
493 amd64_native_gregset32_reg_offset and
494 amd64_native_gregset64_reg_offset.
495 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
496
497 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
498 null pointer. Fix typo in comment.
499
500 * regcache.c (supply_register): Reimplement to call
501 regcache_raw_supply.
502 (regcache_collect): Reimplement by calling regcache_raw_collect.
503
504 2003-08-28 Mark Kettenis <kettenis@gnu.org>
505
506 * regcache.c (register_buffer): Consitify first argument.
507 (regcache_raw_supply, regcache_raw_collect): New
508 functions.
509
510 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
511
512 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
513 by Nathan J. Williams.
514
515 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
516
517 * lin-lwp.c (wait_lwp): New function, copied from
518 stop_wait_callback. Clean up.
519 (stop_wait_callback): Use wait_lwp.
520
521 2003-08-28 Andrew Cagney <cagney@redhat.com>
522
523 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
524 flavour and disassembler options.
525 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
526 (mips_gdbarch_init): Set "print_insn". Delete initialization of
527 deprecated_tm_print_insn_info.
528
529 2003-08-27 Andrew Cagney <cagney@redhat.com>
530
531 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
532 Use target_read_memory.
533 (s390_get_frame_info): Update. Do not reference
534 deprecated_tm_print_insn_info.
535 (s390_check_function_end, s390_is_sigreturn): Ditto.
536
537 2003-08-27 Andrew Cagney <cagney@redhat.com>
538
539 * Makefile.in (cris-tdep.o): Update dependencies.
540 * cris-tdep.c: Include "gdb_assert.h".
541 (cris_gdbarch_init): Set print_insn.
542 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
543 (cris_delayed_get_disassembler): Simplify, directly call the
544 disassembler returned by cris_get_disassembler.
545 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
546 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
547 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
548 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
549 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
550 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
551 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
552 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
553 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
554 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
555 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
556 (gdb_print_insn_sparc): Delete function.
557 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
558 deprecated_tm_print_insn_info.
559 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
560 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
561 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
563 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
564 * s390-tdep.c (gdb_print_insn_s390): Delete function.
565 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
566 (s390_gdbarch_init): Set print_insn.
567
568 2003-08-27 Andrew Cagney <cagney@redhat.com>
569
570 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
571 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
572 * infcall.c (call_function_by_hand): Convert the entry point
573 address into a code address.
574
575 2003-08-27 Andrew Cagney <cagney@redhat.com>
576
577 * dsrec.c: Include "gdb_string.h".
578 * Makefile.in (dsrec.o): Update dependencies.
579
580 2003-08-27 Michael Chastain <mec@shout.net>
581
582 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
583
584 2003-08-27 Andrew Cagney <cagney@redhat.com>
585
586 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
587 (alpha_osf1_init_abi): Do not set call_dummy_address.
588
589 2003-08-27 David Carlton <carlton@kealia.com>
590
591 From Randolph Chung <tausq@debian.org>:
592 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
593 compiles with -Wformat-nonliteral -Werror.
594
595 2003-08-26 Jim Blandy <jimb@redhat.com>
596
597 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
598 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
599 bfd_lookup_symbol, since we only want symbols in code sections.
600 (look_for_base): Pass zero as the SECT_FLAGS argument to
601 bfd_lookup_symbol, since we're not concerned about which section
602 the symbol is in.
603
604 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
605
606 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
607 we are frameless or the return address register is already known.
608
609 2003-08-26 Andrew Cagney <cagney@redhat.com>
610
611 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
612 in size. Add comments.
613
614 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
615
616 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
617 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
618
619 2003-08-26 Jason Merrill <jason@redhat.com>
620
621 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
622 case out of #ifdef MIPS block.
623
624 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
625
626 PR java/1322
627 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
628 available before calling SECT_OFF_TEXT.
629 * PROBLEMS: Remove description of java/1322.
630
631 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
632
633 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
634 bof, and nat0-nat127 as pseudo-registers.
635 (ia64_frame_cache): New struct used to cache frame info.
636 (ia64_register_reggroup_p): New routine used to override default
637 register grouping so registers without names are still saved and
638 restored.
639 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
640 pseudo values.
641 (ia64_pseudo_register_read): New routine to read pseudo-registers.
642 (ia64_pseudo_register_write): New routine to write pseudo-registers.
643 (ia64_alloc_frame_cache): New routine to create a new
644 ia64_frame_cache.
645 (examine_prologue): Change prototype to add next_frame pointer.
646 Assume frameless until otherwise proven. Verify that the cfm for
647 current frame matches the cfm that should occur for the prologues
648 alloc insn and if equal, mark as not frameless. At end of routine,
649 if not frameless, calculate registers for the previous frame and store
650 in the cache, if a cache is provided.
651 (ia64_skip_prologue): Use new prototype when calling examine_prologue
652 and pass 0 for next_frame.
653 (ia64_store_return_value): Change to use convert_typed_floating()
654 instead of calling ia64_convert_to_raw().
655 (ia64_extract_return_value): Change to use convert_typed_floating()
656 instead of calling ia64_convert_to_virtual().
657 (ia64_frame_cache): New routine to support new frame model.
658 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
659 (ia64_frame_sniffer): Ditto.
660 (ia64_sigtramp_frame_init_saved_regs): Ditto.
661 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
662 (ia64_sigtramp_frame_prev_register): Ditto.
663 (ia64_sigtramp_frame_sniffer): Ditto.
664 (ia64_frame_base_address): Ditto.
665 (ia64_extract_struct_value_address): Change to issue error message.
666 (ia64_frame_align): New routine to align sp.
667 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
668 (ia64_push_arguments): Removed. Logic moved to
669 ia64_push_dummy_call().
670 (ia64_push_return_address): Ditto.
671 (ia64_unwind_dummy_id): New function.
672 (ia64_unwind_pc): Ditto.
673 (ia64_convert_register_p): Ditto.
674 (ia64_register_to_value): Ditto.
675 (ia64_value_to_register): Ditto.
676 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
677 (ia64_register_byte, ia64_register_raw_size): Ditto.
678 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
679 (ia64_saved_pc_after_call): Ditto.
680 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
681 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
682 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
683 (ia64_register_convert_to_raw): Ditto.
684 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
685 (ia64_init_extra_frame_info): Ditto.
686 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
687 (ia64_gdbarch_init): Remove registering of deprecated functions that
688 are no longer used. Add registration of new gdbarch functions.
689 Remove registering deprecated_write_sp. Replace
690 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
691 Delete set_gdbarch_deprecated_register_convertible(),
692 set_gdbarch_deprecated_register_convert_to_virtual(), and
693 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
694 set_gdbarch_deprecated_register_size(),
695 set_gdbarch_deprecated_register_bytes(),
696 set_gdbarch_pcregnum(),
697 set_gdbarch_deprecated_register_byte(),
698 set_gdbarch_deprecated_register_raw_size(),
699 set_gdbarch_deprecated_max_register_raw_size(),
700 set_gdbarch_deprecated_register_virtual_size(),
701 and set_gdbarch_deprecated_max_register_virtual_size() calls.
702 Replace set_gdbarch_deprecated_extract_return_value() with
703 set_gdbarch_extract_return_value(). Remove calls to:
704 set_gdbarch_deprecated_saved_pc_after_call();
705 set_gdbarch_deprecated_frame_chain(),
706 set_gdbarch_deprecated_frame_saved_pc(),
707 set_gdbarch_deprecated_frame_init_saved_regs(),
708 set_gdbarch_deprecated_get_saved_register(),
709 set_gdbarch_deprecated_call_dummy_words(),
710 set_gdbarch_deprecated_sizeof_call_dummy_words(),
711 set_gdbarch_deprecated_init_extra_frame_info(),
712 set_gdbarch_deprecated_frame_args_address(),
713 set_gdbarch_deprecated_frame_locals_address(),
714 and set_gdbarch_deprecated_dummy_write_sp().
715 Add set_gdbarch_convert_register_p(),
716 set_gdbarch_register_to_value(),
717 set_gdbarch_value_to_register(),
718 set_gdbarch_push_dummy_call(),
719 set_gdbarch_frame_align(),
720 set_gdbarch_unwind_dummy_id(),
721 set_gdbarch_unwind_pc(),
722 frame_unwind_append_sniffer(),
723 frame_unwind_append_sniffer(),
724 and frame_base_set_default().
725
726 2003-08-25 Chris Demetriou <cgd@broadcom.com>
727
728 * configure.tgt: Document need for special "mipsisa64" handling.
729 (mipsisa64*-*-linux64): Handle as target linux64.
730 (mipsisa64*-*-*): Handle as target embed64.
731
732 2003-08-18 Michael Chastain <mec@shout.net>
733
734 * PROBLEMS: Document pr gdb/1322, the Java anonymous
735 objfile bug.
736
737 2003-08-24 Mark Kettenis <kettenis@gnu.org>
738
739 * i387-tdep.h: Update copyright date.
740 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
741
742 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
743 CFLAGS games to reflect reality.
744
745 2003-08-24 Andrew Cagney <cagney@redhat.com>
746
747 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
748 GDB_MULTI_ARCH is always non-zero.
749 * osabi.c (_initialize_gdb_osabi): Ditto.
750 (gdbarch_init_osabi): Ditto.
751 * sparc-tdep.c: Ditto for #if code.
752
753 2003-08-23 Mark Kettenis <kettenis@gnu.org>
754
755 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
756 Update comments.
757 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
758 comments.
759 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
760 x86_64_supply_fxsave.
761 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
762 x86_64_supply_fxsave.
763 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
764 x86_64_supply_fxsave.
765
766 2003-08-23 Andreas Jaeger <aj@suse.de>
767
768 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
769 i387_supply_fxsave.
770
771 2003-08-23 Mark Kettenis <kettenis@gnu.org>
772
773 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
774 i387_supply_register.
775 (go32_fetch_registers): Adjust call to i387_supply_fsave.
776 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
777 i387_supply_fsave.
778 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
779 i387_supply_fxsave.
780 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
781 i387_supply_fsave.
782 * i386bsd-nat.c (supply_fpregset): Adjust call to
783 i387_supply_fsave.
784 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
785 call to i387_supply_fxsave. Call i387_supply_fsave instead of
786 supply_fpregset.
787 (store_inferior_registers): Remove extraneous whitespace. Call
788 i387_fill_fsave instead of fill_fpregset.
789 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
790 (supply_fpregset): Likewise.
791 * i386v4-nat.c (supply_fpregset): Adjust call to
792 i387_supply_fsave.
793 * i386-interix-nat.c (supply_fpregset): Adjust call to
794 i387_supply_fsave.
795 * i386-linux-nat.c (supply_fpregset): Adjust call to
796 i387_supply_fsave.
797 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
798 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
799 i387supply_fsave and i387_supply_fxsave.
800 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
801 Incorporate code from `i387_supply_register.
802 (i387_supply_register): Remove.
803 (i387_supply_fxsave): Add `regnum' argument.
804 Update comments.
805 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
806 prototype.
807 (i387_supply_register): remove prototype.
808 Update comments.
809
810 2003-08-22 Michael Chastain <mec@shout.net>
811
812 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
813 Add lines for files in gdb/testsuite/gdb.cp/* that are
814 still not 8.3 unique.
815
816 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
817
818 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
819 TYPE_VPTR_FIELDNO is valid.
820
821 2003-08-19 Mark Kettenis <kettenis@gnu.org>
822
823 * utils.c (set_width_command): Remove prototypes.
824 (set_screen_size): New prototype.
825 (init_page_info): Simplify by fetching the screen size from
826 Readline. Call set_screen_size.
827 (set_screen_size): New function.
828 (set_width): Add missing whitespace in comment.
829 (set_width_command): Call set_screen_size.
830 (set_height_command): New function.
831 (initialize_utils): Fix formatting. Make "set height" command
832 call set_height_command. Remove redundant code that turns off
833 pagination if output isn't a terminal. Remove redundant call to
834 set_width_command.
835
836 2003-08-22 Mark Kettenis <kettenis@gnu.org>
837
838 * sparc64-tdep.h (sparc64_regnum): Fix comment.
839 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
840 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
841 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
842 `case' keyword.
843 (sparc64_register_info): Give the reister with number
844 SPARC64_STATE_REGNUM a name.
845 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
846 %asi and %ccr.
847 (sparc64_push_dummy_call): Take BIAS into account when checking
848 stcak alignment.
849 (sparc_software_single_step): Remove assertions that check whether
850 NPC and NNPC were zero.
851 (sparc_supply_rwindow): Make public. Merge functionality with
852 sparc64_supply_rwindow.
853 (sparc_fill_rwindow): Make public. Merge functionality with
854 sparc64_fill_rwindow.
855 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
856 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
857 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
858 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
859 sparc_supply_rwindow instead of sparc64_supply_rwindow.
860
861 * reggroups.c: Add whitespace after declarations of local
862 variables in functions.
863
864 2003-08-21 Michael Chastain <mec@shout.net>
865
866 * gdbtypes.h: Change array bound type from an int to enum.
867
868 2003-08-21 Andrew Cagney <cagney@redhat.com>
869
870 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
871 * config/sparc/tm-sparc.h: Ditto.
872 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
873 unconditionally.
874 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
875
876 2003-07-13 Mark Kettenis <kettenis@gnu.org>
877
878 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
879 (register_objfile_data, set_objfile_data, objfile_data): New
880 prototypes.
881 * objfiles.c (objfile_alloc_data, objfile_free_data): New
882 prototypes.
883 (allocate_objfile): Call objfile_alloc_data.
884 (free_objfile): Call objfile_free_data.
885 (struct objfile_data): New.
886 (struct objfile_data_registration): New.
887 (struct objfile_data_registry): New.
888 (objfile_data_registry): New variable.
889 (register_objfile_data): New function.
890 (objfile_alloc_data, objfile_free_data): New functions.
891 (set_objfile_data, objfile_data): New functions.
892 * dwarf2-frame.c (dwarf2_frame_data): New variable.
893 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
894 (_initialize_dwarf2_frame): New function and prototype.
895
896 2003-08-21 Andrew Cagney <cagney@redhat.com>
897
898 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
899 a specific architecture.
900 * arch-utils.h (set_architecture_from_arch_mach): Delete
901 declaration.
902 (target_architecture_hook): Delete declaration.
903 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
904 (default_float_format): Assume GDB_MULTI_ARCH.
905 (default_double_format): Assume GDB_MULTI_ARCH.
906 (set_endian_from_file): Delete function.
907 (arch_ok): Delete function.
908 (set_arch): Delete function.
909 (set_architecture_from_arch_mach): Delete function.
910 (set_architecture_from_file): Delete function.
911 (set_architecture): Assume GDB_MULTI_ARCH.
912 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
913
914 2003-08-21 Mark Kettenis <kettenis@gnu.org>
915
916 Rewrite FreeBSD/sparc64 native configuration.
917 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
918 * sparc64fbsd-nat.c: New file.
919 * sparc64fbsd-tdep.c: New file.
920 * sparc64-tdep.c sparc64-tdep.h: New files.
921 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
922 sparc64fbsd-tdep.o): New dependencies.
923 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
924 and sparc64fbsd-tdep.c.
925 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
926 * config/sparc/fbsd.mh: Remove copyright notice.
927 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
928 sparcbsd-nat.o.
929 * config/sparc/fbsd.mt: Remove copyright notice.
930 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
931 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
932 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
933 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
934 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
935 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
936 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
937 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
938 "sparc/tm-sp64.h".
939 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
940 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
941
942 2003-08-21 Michael Chastain <mec@shout.net>
943
944 * symtab.h: Add doco on the space critical structures and
945 some measurements of space usage.
946
947 2003-08-21 Michael Snyder <msnyder@redhat.com>
948
949 * tracepoint.c (trace_dump_command): Trace break address
950 is subject to DECR_PC_AFTER_BREAK.
951 (set_traceframe_context): Make "trace_line" an int.
952 Fixes suggested by Mark Newman <mark.newman@lmco.com>
953
954 2003-08-20 Michael Snyder <msnyder@redhat.com>
955
956 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
957 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
958 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
959 argument passing.
960 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
961 functions, replace sh_push_dummy_call.
962 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
963
964 2003-08-20 Michael Chastain <mec@shout.net>
965
966 * gdbtypes.h (struct main_type): Rearrange to save space.
967
968 2003-08-20 Michael Snyder <msnyder@redhat.com>
969
970 * trad-frame.c: Comment typo fix.
971
972 2003-08-20 Michael Snyder <msnyder@redhat.com>
973 Kevin Buettner <kevinb@redhat.com>
974
975 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
976 (frv_frame_init_saved_regs): Add declaration.
977 (frame_extra_info): Add new field ``saved_regs''.
978 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
979 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
980 Update frame related code.
981 (frv_extract_struct_value_address): Adjust formatting.
982 * Makefile.in (frv-tdep.o): Update dependencies.
983 * config/frv/tm-frv.h (target_insert_watchpoint)
984 (target_remove_watchpoint, target_insert_hw_breakpoint)
985 (target_remove_hw_breakpoint): Delete these macros.
986 (remote_insert_watchpoint, remote_remove_watchpoint)
987 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
988 these declarations.
989
990 2003-08-20 Michael Chastain <mec@shout.net>
991
992 * defs.h (ENUM_BITFIELD): New macro.
993 * symtab.h (ENUM_BITFIELD): Use it.
994 (BYTE_BITFIELD): Remove old macro, which was already disabled.
995
996 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
997
998 * MAINTAINERS (write after approval): Add myself.
999
1000 2003-08-18 Andrew Cagney <cagney@redhat.com>
1001
1002 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1003 * gdbarch.h, gdbarch.c: Re-generate.
1004 * infcall.c (call_function_by_hand): Adjust the SP by
1005 frame_red_zone_size before allocating any stack space.
1006 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1007 * x86-64-tdep.c (x86_64_frame_align): New function.
1008 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1009
1010 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1011 Remove code adjusting SP so that it skips over the Red Zone.
1012
1013 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1014
1015 * NEWS (New native configurations): Mention FreeBSD/amd64.
1016
1017 2003-08-18 Andrew Cagney <cagney@redhat.com>
1018
1019 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1020 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1021 "m68k_frame_p".
1022 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1023
1024 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1025
1026 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1027
1028 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1029
1030 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1031 Define.
1032 * i386-linux-nat.c: Include "linux-nat.h".
1033 (child_post_startup_inferior): New function.
1034
1035 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1036
1037 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1038 at the start of a frameless function. This probably fixes PR
1039 backtrace/1338.
1040
1041 2003-08-17 Michael Chastain <mec@shout.net>
1042
1043 * symfile.c (find_sym_fns): Remove special case for apollo target.
1044
1045 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1046
1047 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1048 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1049 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1050 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1051 (linux_supports_tracevforkdone): New function.
1052 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1053 TRACEVFORKDONE.
1054 (child_follow_fork): Handle vfork.
1055 (linux_handle_extended_wait): Likewise. Also handle exec.
1056 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1057 * NEWS: Mention fork tracing.
1058
1059 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1060
1061 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1062
1063 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1064
1065 * Makefile.in (i386-linux-nat.o): Update dependencies.
1066 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1067 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1068 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1069 * i386-linux-nat.c: Include "linux-nat.h".
1070 (child_post_startup_inferior): New function.
1071 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1072 * infptrace.c (kill_inferior): Wrap in #ifdef.
1073 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1074 attaching to each LWP.
1075 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1076 (init_lin_lwp_ops): Fill in some more operations.
1077 * linux-nat.h (linux_enable_event_reporting)
1078 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1079 prototypes.
1080 * linux-nat.c (linux_enable_event_reporting): New function.
1081 (child_post_attach, linux_child_post_startup_inferior)
1082 (child_post_startup_inferior, child_follow_fork)
1083 (linux_handle_extended_wait, kill_inferior): New functions.
1084
1085 2003-08-16 Andrew Cagney <cagney@redhat.com>
1086
1087 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1088 * gdbarch.h, gdbarch.c: Re-generate.
1089
1090 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1091
1092 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1093
1094 2003-08-16 Andrew Cagney <cagney@redhat.com>
1095
1096 * NEWS: Mention that "set prompt-escape-char" was deleted.
1097 * top.c (get_prompt_1): Delete function.
1098 (gdb_prompt_escape):
1099 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1100 prompt-escape-char" command.
1101 (MAX_PROMPT_SIZE): Delete macro.
1102 (get_prompt): Simplify, do not call get_prompt_1.
1103
1104 2003-08-16 Andrew Cagney <cagney@redhat.com>
1105
1106 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1107 -Werror. -Wformat-nonliteral problems.
1108
1109 2003-08-15 J. Brobecker <brobecker@gnat.com>
1110
1111 Further multiarching work mostly for hppa64-*-hpux11:
1112 * hppa-tdep.h: New file.
1113 * hppa-tdep.c: #include hppa-tdep.c.
1114 (hppa32_num_regs): Renamed from hppa_num_regs.
1115 (hppa64_num_regs): New constant.
1116 (hppa64_call_dummy_breakpoint_offset): New constant.
1117 (hppa32_call_dummy_length): New constant.
1118 (hppa64_call_dummy_length): New constant.
1119 (hppa32_stack_align): Make name 32bit explicit.
1120 (hppa32_register_virtual_type): Likewise.
1121 (hppa32_extract_return_value): Likewise.
1122 (hppa32_use_struct_convention): Likewise.
1123 (hppa32_store_return_value): Likewise.
1124 (hppa64_register_virtual_type): New function.
1125 (hppa64_extract_return_value): New function.
1126 (hppa64_use_struct_convention): New function.
1127 (hppa64_store_return_value): New function.
1128 (hppa_frame_locals_address): Remove declaration, function does
1129 not exist anymore.
1130 (hppa_register_byte): Add support for PA64 ABI.
1131 (hppa_gdbarch_init): Add support for PA64 ABI.
1132 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1133 Make name 32bit explicit.
1134 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1135 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1136 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1137 (hppa64_hpux_frame_base_before_sigtramp): New function.
1138 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1139 * config/pa/tm-hppa64.h: Remove macros that are no longer
1140 necessary now that the gdbarch vector is properly setup.
1141 Transform some macros into function calls. Some minor cleanup.
1142 * config/pa/tm-hppah.h: Update function calls in macros
1143 following the function renaming in hppa-hpux-tdep.c.
1144 * Makefile.in (hppa_tdep_h): New variable.
1145 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1146
1147 2003-08-14 Michael Snyder <msnyder@redhat.com>
1148
1149 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1150
1151 2003-08-13 J. Brobecker <brobecker@gnat.com>
1152
1153 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1154 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1155 routine.
1156
1157 2003-08-13 Michael Snyder <msnyder@redhat.com>
1158
1159 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1160 (frv_saved_pc_after_call): Use deprecated ftype.
1161 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1162 (frv_remote_translate_xfer_address): Remove.
1163 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1164
1165 2003-08-13 J. Brobecker <brobecker@gnat.com>
1166
1167 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1168 initialization after the common gdbarch initialization, not before.
1169
1170 2003-08-13 J. Brobecker <brobecker@gnat.com>
1171
1172 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1173 (ADDR_BITS_REMOVE): Remove, redundant.
1174
1175 2003-08-13 J. Brobecker <brobecker@gnat.com>
1176
1177 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1178 gdbarch method to clear the 2 low bits of text addresses.
1179
1180 2003-08-12 Andrew Cagney <cagney@redhat.com>
1181
1182 * Makefile.in (dsrec.o): Update dependencies.
1183 * dsrec.c: Include "gdb_assert.h".
1184 (make_srec): Use snprintf instead of sprintf, use a literal format
1185 string.
1186
1187 2003-08-12 Andrew Cagney <cagney@redhat.com>
1188
1189 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1190 FRAME_OBSTACK_ZALLOC.
1191
1192 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1193
1194 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1195 SSE registers.
1196
1197 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1198
1199 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1200 amd64fbsd_sc_reg_offset): Add extern declarations.
1201 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1202 declarations.
1203
1204 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1205
1206 * MAINTAINERS (write after approval): Update my mail address.
1207
1208 2003-08-10 Andrew Cagney <cagney@redhat.com>
1209
1210 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1211
1212 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1213
1214 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1215 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1216 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1217 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1218 i386bsd_sc_reg_offset): Add extern declarations.
1219 * i386obsd-nat.c: Include "i386-tdep.h"
1220 (_initialize_i386obsd_nat): Remove extern declarations.
1221 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1222 declarations.
1223 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1224 declarations.
1225
1226 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1227 instead of frame_read_register.
1228 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1229 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1230 SP_REGNUM.
1231 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1232 instead of frame_unwind_unsigned_register. Use
1233 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1234 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1235 instead of read_register. Use builtin_type_void_data_ptr instead
1236 of builtin_type_void_func_ptr when extracting the address of the
1237 jmp_buf.
1238 (i386_extract_return_value, i386_store_return_value,
1239 i386_pseudo_register_read, i386_pseudo_register_write): Use
1240 register_size instead REGISTER_RAW_SIZE.
1241
1242 2003-08-10 Andrew Cagney <cagney@redhat.com>
1243
1244 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1245 sprintf. Make "name" constant.
1246
1247 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1248
1249 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1250 instead of frame_read_register.
1251 (i387_print_float_info): Use get_frame_register and
1252 get_frame_register_unsigned instead of frame_register_read.
1253
1254 * i386fbsd-nat.c: Include "i386-tdep.h".
1255 (child_resume): Make `eflags' an ULONGEST. Use
1256 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1257 instead of register_read and register_write.
1258
1259 * i386bsd-nat.c (fetch_inferior_registers,
1260 store_inferior_registers): Don't use && at the end of a line.
1261 (_initialize_i386bsd_nat): Fix typo.
1262
1263 * frame.c (_initialize_frame): Add missing backslash.
1264
1265 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1266 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1267 and supply_register instead of manipulating the register buffer
1268 directly.
1269
1270 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1271 * config/i386/nm-i386sol2.h
1272 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1273
1274 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1275 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1276 instructions that GCC likes to mingle into the prologue. Fixes
1277 gdb/1253 and gdb/1255.
1278
1279 2003-08-09 Andrew Cagney <cagney@redhat.com>
1280
1281 Fix GDB PR cli/926.
1282 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1283 * command.h (add_setshow_uinteger_cmd): Declare.
1284 * frame.c (set_backtrace_cmd): New function.
1285 (show_backtrace_cmd): New function.
1286 * frame.c (_initialize_frame): Replace "set/show
1287 backtrace-below-main" with "set/show backtrace past-main". Add
1288 command "set/show backtrace limit".
1289 (backtrace_past_main): Rename "backtrace_below_main".
1290 (backtrace_limit): New variable.
1291 (get_prev_frame): Update. Check the backtrace_limit.
1292
1293 2003-08-09 Andrew Cagney <cagney@redhat.com>
1294
1295 * defs.h (xstrprintf): Declare.
1296 * utils.c (xstrprintf): New function.
1297 * breakpoint.c (insert_breakpoints): Replace sprintf and
1298 non-literal format strings, with xstrprintf and cleanups.
1299 (delete_breakpoint,breakpoint_re_set): Ditto.
1300 (commands_command, insert_breakpoints): Ditto.
1301 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1302 (break_at_finish_command_1): Ditto.
1303
1304 2003-08-09 Andrew Cagney <cagney@redhat.com>
1305
1306 * MAINTAINERS (language support): List Adam Fedor as Objective C
1307 maintainer.
1308
1309 2003-08-08 J. Brobecker <brobecker@gnat.com>
1310
1311 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1312 are now multiarched.
1313
1314 2003-08-08 J. Brobecker <brobecker@gnat.com>
1315
1316 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1317 longer necessary now that hppa64 is partially multiarch'ed.
1318
1319 2003-08-08 Andrew Cagney <cagney@redhat.com>
1320
1321 * interps.c (interp_set): Check for a NULL "old_interp".
1322
1323 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1324
1325 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1326 (install-only): Support DESTDIR.
1327 (uninstall): Likewise.
1328 (install-gdbtk): Likewise.
1329
1330 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1331
1332 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1333 contains something meaningful at all times.
1334
1335 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1336
1337 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1338
1339 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1340
1341 * MAINTAINERS (write after approval): Added self.
1342
1343 2003-08-07 Andrew Cagney <cagney@redhat.com>
1344
1345 * inferior.h (AT_SYMBOL): Define.
1346 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1347 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1348 * mips-tdep.c (mips_call_dummy_address): Delete function.
1349 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1350 set call_dummy_address.
1351
1352 2003-08-07 Andrew Cagney <cagney@redhat.com>
1353
1354 * language.c (op_error): Delete function.
1355 (binop_type_check): Delete function.
1356 * language.h (type_op_error, range_op_error): Delete macros.
1357 (op_error): Delete declaration.
1358
1359 2003-08-07 Andrew Cagney <cagney@redhat.com>
1360
1361 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1362
1363 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1364
1365 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1366 (x86_64_push_arguments): Skip the red zone.
1367
1368 2003-08-05 Andrew Cagney <cagney@redhat.com>
1369
1370 * reggroups.c (reggroup_next): Check for the final entry.
1371
1372 2003-08-04 Andrew Cagney <cagney@redhat.com>
1373
1374 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1375 * cli/cli-script.c (define_command): Call query directly, instead
1376 of passing it a buffer.
1377 * ocd.c (ocd_error): Pass error a constant format string.
1378 * remote-mips.c (mips_error): Use fputs_filtered.
1379
1380 * solib-svr4.c (_initialize_svr4_solib): Update
1381 register_gdbarch_data call.
1382 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1383
1384 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1385 (register_gdbarch_data): Delete "free" parameter. Update
1386 comments.
1387 * gdbarch.h, gdbarch.c: Re-generate.
1388 * reggroups.c (_initialize_reggroup): Update.
1389 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1390 * frame-base.c (_initialize_frame_base): Update.
1391 * frame-unwind.c (_initialize_frame_unwind): Update.
1392 * user-regs.c (_initialize_user_regs): Update.
1393 * remote.c (_initialize_remote): Update.
1394 * regcache.c (_initialize_regcache): Update.
1395
1396 * regcache.c (xfree_regcache_descr): Delete function.
1397 (_initialize_regcache): Update call to register_gdbarch_data.
1398 (init_regcache_descr, init_legacy_regcache_descr): Use
1399 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1400
1401 * remote.c (free_remote_state): Delete function.
1402 (_initialize_remote): Update register_gdbarch_data.
1403 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1404 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1405
1406 2003-08-04 Andrew Cagney <cagney@redhat.com>
1407
1408 * reggroups.c (struct reggroup_el): Define.
1409 (struct reggroups): Delete field "nr_group". Replace array
1410 "group" with a "first" to "last" linked list.
1411 (reggroups_init): Update. Allocate using gdbarch's obstack.
1412 (reggroups_free): Delete function.
1413 (add_group): Update. Add "el" parameter.
1414 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1415 (default_groups): Update.
1416 (reggroup_next): Replace reggroups.
1417 (reggroups_dump): Update.
1418 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1419 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1420 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1421
1422 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1423
1424 * Makefile.in (tui-interp.o): Update dependencies.
1425
1426 2003-08-04 David Carlton <carlton@kealia.com>
1427
1428 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1429 to internal_error call.
1430 * source.c (forward_search_command): Add "%s" format argument.
1431 (reverse_search_command): Ditto.
1432 * top.c (quit_confirm): Ditto.
1433 * cli/cli-setshow.c (do_setshow_command): Ditto.
1434 * cp-valprint.c (cp_print_class_method): Replace
1435 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1436 (cp_print_class_member): Ditto.
1437 * event-top.c (command_line_handler): Ditto.
1438 * linux-proc.c (linux_info_proc_cmd): Ditto.
1439 * p-typeprint.c (pascal_type_print_base): Ditto.
1440 * p-valprint.c (pascal_object_print_class_method): Ditto.
1441 (pascal_object_print_class_member): Ditto.
1442 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1443 * remote.c (remote_cisco_section_offsets): Ditto.
1444 * top.c (command_line_input): Ditto.
1445 * utils.c (vwarning,error_stream,quit): Ditto.
1446 * valprint.c (print_floating,print_binary_chars)
1447 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1448
1449 2003-08-04 Andrew Cagney <cagney@redhat.com>
1450
1451 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1452
1453 2003-08-02 Andrew Cagney <cagney@redhat.com>
1454
1455 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1456 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1457 amd64fbsd-nat.c.
1458
1459 2003-08-02 Andrew Cagney <cagney@redhat.com>
1460
1461 * Makefile.in: Update all dependencies and definitions.
1462
1463 2003-08-02 Adam Fedor <fedor@gnu.org>
1464
1465 * linespec.c (is_objc_method_format): New function
1466 (decode_line_1, locate_first_half): Use it.
1467 Fixes PR objc/1298
1468
1469 2003-08-01 Andrew Cagney <cagney@redhat.com>
1470
1471 * NEWS: Mention that m32r is multi-arch.
1472 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1473 * configure.tgt: Recognize m32r-*-*.
1474 * config/m32r/tm-m32r.h: Delete file.
1475 * config/m32r/m32r.mt: New file.
1476 * m32r-rom.c (m32r_upload_command): Use hostent only when
1477 gethostname succeeds, in order to avoid a compilation
1478 warning.
1479 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1480 compiler warning.
1481
1482 2003-08-01 Michael Snyder <msnyder@redhat.com>
1483
1484 * sh-tdep.c (sh_frame_align): New gdbarch method.
1485 (sh_gdbarch_init): Set up frame_align method.
1486
1487 2003-07-31 Michael Snyder <msnyder@redhat.com>
1488
1489 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1490 which is already covered by the new frames infrastructure.
1491
1492 2003-07-31 Andrew Cagney <cagney@redhat.com>
1493
1494 * user-regs.c (struct user_reg): Add "next" link.
1495 (struct user_regs): Replace "user" with "first" and "last" links.
1496 (append_user_reg): Add pre-allocated "reg" parameter.
1497 (builtin_user_regs): Provide initial value for "last".
1498 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1499 (user_regs_init): Allocate memory from the gdbarch obstack.
1500 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1501 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1502 linked list.
1503 (usernum_to_user_reg): New function.
1504 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1505 (value_of_user_reg): Use usernum_to_user_reg.
1506 (user_regs_free): Delete function.
1507 (_initialize_user_regs): Update register_gdbarch_data call.
1508
1509 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1510
1511 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1512
1513 2003-07-30 Michael Snyder <msnyder@redhat.com>
1514
1515 * value.h (value_being_returned): Add a struct_addr argument.
1516 * infcall.c (call_function_by_hand): Pass struct_addr to
1517 value_being_returned.
1518 * infcmd.c (print_return_value): Pass zero as struct_addr.
1519 * values.c (value_being_returned): If struct_addr is passed,
1520 use it instead of trying to recover it from the inferior.
1521
1522 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1523
1524 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1525 the prologue analyzer won't need to attempt to extract the pc
1526 value from the woefully incomplete dummy frame.
1527 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1528 possible. Disable code which modifies the frame.
1529
1530 2003-07-28 Andrew Cagney <cagney@redhat.com>
1531
1532 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1533 to level 2.
1534 (annotate_breakpoints_table, annotate_record): Ditto.
1535 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1536 (annotate_field_name_end, annotate_field_value): Ditto.
1537 (annotate_field_end, annotate_frame_source_begin): Ditto.
1538 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1539 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1540 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1541 (annotate_frame_address_end, annotate_frame_address): Ditto.
1542 (annotate_frame_args, annotate_frame_end): Ditto.
1543 (annotate_frame_where, annotate_arg_begin): Ditto.
1544 (annotate_arg_name_end, annotate_arg_value): Ditto.
1545 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1546 (annotate_function_call, annotate_signal_name): Ditto.
1547 (annotate_signal_string, annotate_signal_name_end): Ditto.
1548 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1549 (annotate_value_begin, annotate_value_history_value): Ditto.
1550 (annotate_value_history_end, annotate_value_end): Ditto.
1551 (annotate_display_begin, annotate_display_number_end): Ditto.
1552 (annotate_display_format, annotate_display_expression): Ditto.
1553 (annotate_display_expression_end, annotate_display_value): Ditto.
1554 (annotate_display_end, annotate_array_section_begin): Ditto.
1555 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1556 (annotate_elt, annotate_array_section_end): Ditto.
1557
1558 2003-07-28 Andrew Cagney <cagney@redhat.com>
1559
1560 * regcache.c (struct regcache_descr): Update comments on
1561 nr_raw_registers.
1562 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1563 sizeof_raw_register_valid_p.
1564 (init_regcache_descr): Set nr_raw_registers and
1565 sizeof_raw_register_valid_p before calling
1566 init_legacy_regcache_descr.
1567
1568 2003-07-28 Andrew Cagney <cagney@redhat.com>
1569
1570 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1571 MOD NUM_REGS.
1572
1573 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1574
1575 * thread.c (info_threads_command): Use get_selected_frame ().
1576 Check that there is at least one non-sentinel frame.
1577
1578 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1579
1580 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1581 (m68hc11_pop_frame): Remove.
1582 (m68hc11_frame_saved_pc): Remove.
1583 (m68hc11_frame_chain): Remove.
1584 (m68hc11_frame_init_saved_regs): Remove.
1585 (m68hc11_init_extra_frame_info): Remove.
1586 (m68hc11_store_struct_return): Remove.
1587 (m68hc11_saved_pc_after_call): Remove.
1588
1589 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1590
1591 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1592 frame unwind information.
1593 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1594 and adapted for frame unwinding.
1595 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1596 (m68hc11_unwind_pc): New function.
1597 (m68hc11_frame_unwind_cache): New function to analyze frames.
1598 (m68hc11_frame_this_id): New function to create new frame struct.
1599 (m68hc11_frame_prev_register): New function to unwind a register from
1600 the frame.
1601 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1602 (m68hc11_frame_p): New function for the above.
1603 (m68hc11_frame_base_address): New function to return fp of frame.
1604 (m68hc11_frame_args_address): Update for frame.
1605 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1606 (m68hc11_unwind_sp): New function.
1607 (m68hc11_unwind_dummy_id): New function.
1608 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1609 calls.
1610
1611 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1612
1613 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1614 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1615 when we are beyond the current pc.
1616
1617 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1618
1619 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1620 from m68hc11_push_arguments.
1621 (m68hc11_push_arguments): Remove.
1622 (m68hc11_push_return_address): Remove.
1623 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1624 handlers; remove deprecated_extra_stack_alignment_needed.
1625
1626 2003-07-27 Andrew Cagney <cagney@redhat.com>
1627
1628 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1629 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1630 REAL_PC and not the pointer.
1631 * hppa-hpux-tdep.c: Include frame.h
1632
1633 2003-07-27 Andrew Cagney <cagney@redhat.com>
1634
1635 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1636 GDB_MULTI_ACH_PARTIAL.
1637
1638 2003-07-27 Andrew Cagney <cagney@redhat.com>
1639
1640 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1641 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1642 operator at start and not end of line.
1643 (decode_prologue): Ditto.
1644 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1645 frame_unwind_register_unsigned instead of
1646 frame_unwind_unsigned_register.
1647 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1648 read_register.
1649 (m32r_push_dummy_call): Use register_size instead of
1650 REGISTER_RAW_SIZE.
1651 (m32r_frame_sniffer): Replace m32r_frame_p.
1652 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1653 * m32r-rom.c (report_transfer_performance): Delete extern
1654 declaration.
1655 (m32r_load, m32r_upload_command): Use print_transfer_performance
1656 instead of report_transfer_performance.
1657 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1658 / add_show_from_set.
1659
1660 2003-07-26 Andrew Cagney <cagney@redhat.com>
1661
1662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1663 store_return_value and extract_struct_value_address.
1664
1665 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1666
1667 PR c++/1267
1668 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1669 NULL, default to the section containing PC.
1670
1671 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1672
1673 * NEWS: Mention "regs" deprecated for m68hc11 too.
1674
1675 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1676 (m68hc11_print_register): New function to print out one register.
1677 (m68hc11_print_registers_info): New function to print registers.
1678 (show_regs): Deprecate and use the above.
1679 (m68hc11_gdbarch_init): Install the print_registers_info.
1680
1681 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1682
1683 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1684 that we have a SIGTRAP before returning non-zero.
1685
1686 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1687 Elena Zannoni <ezannoni@redhat.com>
1688
1689 * linespec.c (decode_line_2): Avoid crash if
1690 find_function_start_sal() returns empty record.
1691
1692 2003-07-23 Andreas Schwab <schwab@suse.de>
1693
1694 * ia64-tdep.c (ia64_print_insn): New function.
1695 (ia64_gdbarch_init): Set print_insn to it.
1696 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1697 deprecated_tm_print_insn_info.
1698
1699 2003-07-22 Michael Snyder <msnyder@redhat.com>
1700
1701 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1702 handle 8-bit returns (long long).
1703 (h8300h_extract_return_value): Ditto.
1704 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1705
1706 2003-07-22 Andrew Cagney <cagney@redhat.com>
1707
1708 * gdbarch.c Include "gdb_obstack.h".
1709 (struct gdbarch): Add an "obstack".
1710 (alloc_gdbarch_data): Allocate the gdbarch data using
1711 GDBARCH_OBSTACK_CALLOC.
1712 (free_gdbarch_data): Delete function.
1713 (gdbarch_obstack_zalloc): New function.
1714 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1715 Assert that the architecture is not initialized.
1716 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1717 vector from the obstack.
1718 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1719 architecture obstack.
1720 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1721 (set_gdbarch_data): Assert that the data is not initialized.
1722 (struct gdbarch_data): Delete member "free".
1723 (register_gdbarch_data): Do not initialize "free".
1724 * gdbarch.h, gdbarch.c: Re-generate.
1725
1726 2003-07-22 Andrew Cagney <cagney@redhat.com>
1727
1728 * configure.in (build_warnings): Add -Wformat-nonliteral.
1729 * configure: Re-generate.
1730
1731 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1732
1733 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1734
1735 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1736
1737 * findvar.c (read_var_value): Remove case for thread local storage
1738 variables. It is now entirely handled by the dwarf2 location
1739 expression code.
1740 * printcmd.c (address_info): Ditto.
1741 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1742 enumeration value.
1743 (struct symbol): Remove objfile field, which was used by
1744 LOC_THREAD_LOCAL_STATIC only.
1745 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1746 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1747 usage of objfile pointer.
1748 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1749 thread local variables.
1750 Add include of objfiles.h.
1751 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1752 storage variables.
1753 * Makefile.in (dwarf2loc.o): Update dependencies.
1754
1755 2003-07-22 Andrew Cagney <cagney@redhat.com>
1756
1757 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1758 get_frame_base.
1759 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1760 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1761 (struct value): Add opaque declaration.
1762 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1763
1764 2003-07-21 Andrew Cagney <cagney@redhat.com>
1765
1766 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1767 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1768
1769 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1770
1771 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1772 regcache_cooked_read_unsigned instead of read_register.
1773 (m68hc11_saved_pc_after_call): Likewise.
1774 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1775 instead of write_register.
1776 (m68hc11_register_type): New function.
1777 (m68hc11_register_virtual_type): Remove.
1778 (m68hc11_store_return_value): Convert to use the regcache.
1779 (m68hc11_extract_struct_value_address): Likewise.
1780 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1781 m68hc11_register_type; undeprecate store_return_value and
1782 extract_struct_value_address.
1783
1784 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1785
1786 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1787 and translate to use regcache.
1788 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1789
1790 2003-07-18 Andrew Cagney <cagney@redhat.com>
1791
1792 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1793 * gdbarch.h, gdbarch.c: Re-generate.
1794 * i386-tdep.c (i386_gdbarch_init): Do not set
1795 DWARF2_BUILD_FRAME_INFO.
1796 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1797 unconditionally.
1798 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1799 DWARF2_BUILD_FRAME_INFO.
1800
1801 2003-07-18 Andrew Cagney <cagney@redhat.com>
1802
1803 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1804 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1805
1806 2003-07-18 Andrew Cagney <cagney@redhat.com>
1807
1808 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1809 frame_unwind_address_in_block, instead of frame_pc_unwind.
1810 (dwarf2_frame_cache): Ditto.
1811
1812 2003-07-18 Andrew Cagney <cagney@redhat.com>
1813
1814 * user-regs.h (struct gdbarch): Declare opaque.
1815 * ui-out.h (struct ui_file): Declare opaque.
1816 * dwarf2-frame.h (struct frame_info): Declare opaque.
1817
1818 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1819
1820 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1821 #include "...".
1822 (procfs_meminfo): Change strerror to safe_strerror.
1823 (procfs_can_run): Remove K&R badness.
1824
1825 2003-07-17 Michael Snyder <msnyder@redhat.com>
1826
1827 * remote-sim.c: Comment typo fix.
1828
1829 2003-07-17 Andrew Cagney <cagney@redhat.com>
1830
1831 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1832 configure.
1833 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1834 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1835 GDB_MULTI_ARCH_PARTIAL.
1836
1837 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1838
1839 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1840 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1841 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1842
1843 2003-07-16 Theodore A. Roth <troth@openavr.org>
1844
1845 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1846 found.
1847 (avr_frame_unwind_cache): Don't unwind FP for main.
1848 Update a comment.
1849 Save the computed prev_sp.
1850 (avr_saved_regs_unwinder): Remove function.
1851 (avr_frame_prev_register): Use PC unwind logic from
1852 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1853
1854 2003-07-16 Andrew Cagney <cagney@redhat.com>
1855
1856 * frame-base.h (frame_base_p_ftype): Delete definition.
1857 (frame_base_append_predicate): Delete declaration.
1858 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1859 (frame_unwind_append_predicate): Delete declaration.
1860 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1861 (append_predicate): Delete parameter "p".
1862 (frame_unwind_append_predicate): Delete function.
1863 (frame_unwind_append_sniffer): Update call to append_predicate.
1864 (frame_unwind_free): Delete function.
1865 (_initialize_frame_unwind): Pass NULL as "free" to
1866 register_gdbarch_data.
1867 (frame_unwind_init): Append the dummy_frame_sniffer.
1868 (frame_unwind_find_by_frame): Simplify.
1869 * frame-base.c (struct frame_base_table): Delete field "p".
1870 (append_predicate): Delete parameter "p".
1871 (frame_base_append_predicate): Delete function.
1872 (frame_base_append_sniffer): Update call to append_predicate.
1873 (frame_base_free): Delete function.
1874 (frame_base_find_by_frame): Simplify.
1875 (_initialize_frame_base): Pass NULL as "free" to
1876 register_gdbarch_data.
1877 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1878 (x86_64_sigtramp_frame_sniffer): Replace
1879 "x86_64_sigtramp_frame_p".
1880 (x86_64_init_abi): Set the frame unwind sniffers.
1881 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1882 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1883 (m68k_gdbarch_init): Set the frame unwind sniffers.
1884 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1885 "i386_sigtramp_frame_p".
1886 (i386_frame_sniffer): Replace "i386_frame_p".
1887 (i386_gdbarch_init): Set the frame unwind sniffers.
1888 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1889 (avr_gdbarch_init): Set the frame unwind sniffers.
1890 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1891 "alpha_sigtramp_frame_p"
1892 (alpha_heuristic_frame_sniffer): Replace
1893 "alpha_heuristic_frame_p".
1894 (alpha_gdbarch_init): Set the frame unwind sniffers.
1895 (alpha_dwarf2_init_abi): Ditto.
1896 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1897 "alpha_debug_frame_p".
1898 (alpha_mdebug_frame_base_sniffer): Replace
1899 "alpha_mdebug_frame_base_p".
1900 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1901 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1902 (d10v_gdbarch_init): Set the frame unwind sniffer.
1903 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1904 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1905 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1906 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1907 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1908 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1909
1910 2003-07-16 Michael Snyder <msnyder@redhat.com>
1911
1912 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1913 should go thru sh_dsp_register_sim_regno, else the dsp regs
1914 will not get the right values.
1915
1916 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1917
1918 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1919 deprecated_store_floating by call to store_typed_floating.
1920 (sh_sh4_register_convert_to_raw): Substitute call to
1921 deprecated_extract_floating by call to extract_typed_floating.
1922
1923 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1924
1925 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1926
1927 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1928
1929 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1930 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1931 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1932 as possible.
1933 (do_pseudo_register): Remove.
1934 (sh_push_dummy_code): New function.
1935 (sh64_store_struct_return): Rename from sh_store_struct_return.
1936 Only called for sh64 now.
1937 (sh_extract_struct_value_address): Regcache'ify.
1938 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1939 and accomodate new tasks.
1940 (sh64_push_return_address): Rename from sh_push_return_address.
1941 Only called for sh64 now.
1942 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1943 Regcache'ify.
1944 (sh3e_sh4_extract_return_value): Regcache'ify.
1945 (sh_default_store_return_value): Ditto.
1946 (sh3e_sh4_store_return_value): Ditto.
1947 (sh_default_register_byte): Remove.
1948 (sh_sh4_register_byte): Remove.
1949 (sh_default_register_raw_size): Remove.
1950 (sh_sh4_register_raw_size): Remove.
1951 (sh_register_virtual_size): Remove.
1952 (sh_sh3e_register_virtual_type): Remove.
1953 (sh_sh3e_register_type): New function.
1954 (sh_sh4_register_virtual_type): Remove.
1955 (sh_sh4_register_type): New function.
1956 (sh_default_register_virtual_type): Remove.
1957 (sh_default_register_type): New function.
1958 (do_fv_register_info): Add parameters to accomodate call from
1959 sh_print_registers_info.
1960 (do_dr_register_info): Ditto.
1961 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1962 Add parameters to accomodate call from sh_print_registers_info.
1963 (sh_do_fp_register): Ditto.
1964 (sh64_do_pseudo_register): Call do_dr_register_info,
1965 do_fv_register_info and sh_do_fp_register with default parameters.
1966 (sh_do_register): Add parameters to accomodate call from
1967 sh_print_registers_info.
1968 (sh_print_register): Ditto.
1969 (sh_print_registers_info): Rename from sh_do_registers_info.
1970 Add parameters to be used as gdbarch_print_registers_info
1971 implementation. Accomodate removed do_pseudo_register function
1972 pointer.
1973 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1974 function pointer. Call sh_print_register with default parameters.
1975 (sh64_do_registers_info): Call sh_print_registers_info instead of
1976 sh_do_registers_info.
1977 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1978 detection of deprecated vs. non-deprecated functionality.
1979 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1980 function pointer assignments by direct function calls.
1981
1982 2003-07-15 Andrew Cagney <cagney@redhat.com>
1983
1984 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1985 (frame_register_unwind, create_new_frame): Ditto.
1986 (legacy_get_prev_frame, get_frame_type): Ditto.
1987 (get_frame_base_address): Use frame_base_find_by_frame.
1988 (get_frame_locals_address): Use frame_base_find_by_frame.
1989 (get_frame_args_address): Use frame_base_find_by_frame.
1990 * frame-base.h (frame_base_sniffer_ftype): Declare.
1991 (frame_base_append_sniffer): Declare.
1992 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1993 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1994 (frame_base_append_sniffer): New function.
1995 (frame_base_append_predicate): Add a NULL sniffer.
1996 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1997 (struct frame_base_table): Add "sniffer".
1998 (frame_base_free): Free the "sniffer" table.
1999 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2000 (frame_unwind_append_sniffer): Declare.
2001 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2002 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2003 (struct frame_unwind_table): Add "sniffer", delete "middle".
2004 (append_predicate): Add "sniffer" parameter, append the sniffer.
2005 (frame_unwind_init): Update append_predicate call.
2006 (frame_unwind_append_sniffer): New function.
2007 (frame_unwind_append_predicate): Update append_predicate call.
2008 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2009
2010 2003-07-15 Andrew Cagney <cagney@redhat.com>
2011
2012 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2013 before code inhibiting repeated unwind attempts. Add to
2014 commentary on that test's problems.
2015 * blockframe.c (inside_main_func): Look for "main" in the minimal
2016 symbol table.
2017 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2018 identical.
2019
2020 2003-07-15 Andrew Cagney <cagney@redhat.com>
2021
2022 * complaints.c (struct explanation): Define.
2023 (struct complaints): Change type of "explanation" to "struct
2024 explanation".
2025 (symfile_explanations): Convert to a "struct explanation" table.
2026 (vcomplaint): Update.
2027
2028 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2029
2030 * x86-64-linux-nat.c (regmap): Removed.
2031 (supply_gregset, fill_gregset): Call
2032 x86_64_linux_(fill,supply)_gregset functions.
2033 * x86-64-linux-tdep.c (USER_*): New defines.
2034 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2035 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2036 New functions.
2037 (fetch_core_registers): Ditto.
2038 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2039 * x86-64-linux-tdep.h: New file.
2040 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2041 and core-regset.o.
2042 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2043
2044 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2045
2046 * x86-64-tdep.c (x86_64_store_return_value): Use
2047 regcache_cooked_write_part instead of regcache_cooked_write.
2048
2049 * configure.host: Add x86_64-*-freebsd*.
2050 * configure.tgt: Add x86_64-*-freebsd*.
2051 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2052 * amd64fbsd-nat.c: New file.
2053 * amd64fbsd-tdep.c: New file.
2054 * config/i386/nm-fbsd64.h: New file.
2055 * config/i386/fbsd64.mh: New file.
2056 * config/i386/fbsd64.mt: New file.
2057
2058 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2059
2060 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2061 `sc_regs_offset' and `sc_fpregs_offset'.
2062 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2063 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2064 (alpha_sigtramp_register_address): Rewrite to use new members of
2065 `struct gdbarch_tdep'.
2066 (alpha_gdbarch_init): Initialize new members of struct
2067 gdbarch_tdep'.
2068 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2069 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2070 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2071 (alphafbsd_pc_in_sigtramp): Implement.
2072 (alphafbsd_sigtramp_offset): New function.
2073 (alphafbsd_sigcontext_addr): New function.
2074 (alphafbsd_init_abi): Initialize signal trampoline related members
2075 of `struct gdbarch_tdep'.
2076 (_initialize_alphafbsd_tdep): Add prototype.
2077
2078 2003-07-11 Theodore A. Roth <troth@openavr.org>
2079
2080 * Makefile.in (install-only): Quote sed expression when generating
2081 transformed_name.
2082
2083 2003-07-11 Richard Henderson <rth@redhat.com>
2084
2085 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2086 * dwarf2-frame.c: Include complaints.h.
2087 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2088 variable initialization; return NULL on error.
2089 (decode_frame_entry): New.
2090
2091 2003-07-11 Andrew Cagney <cagney@redhat.com>
2092
2093 * frame.h (frame_address_in_block): Delete declaration.
2094 * blockframe.c (frame_address_in_block): Delete function.
2095 (get_frame_block): Use get_frame_address_in_block.
2096 (block_innermost_frame): Ditto.
2097 * stack.c (print_frame, backtrace_command_1): Ditto.
2098
2099 * frame.h (get_frame_address_in_block): Declare.
2100 (frame_unwind_address_in_block): Declare.
2101 * frame.c (frame_unwind_address_in_block): New function.
2102 (get_frame_address_in_block): New function.
2103
2104 2003-07-10 Andrew Cagney <cagney@redhat.com>
2105
2106 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2107 pre-default. Note: re-generate has no effect.
2108
2109 2003-07-10 Andrew Cagney <cagney@redhat.com>
2110
2111 * gdbarch.sh: When a variable, but not a function, compare against
2112 0. Fix problem in previous patch.
2113 * gdbarch.c: Re-generate.
2114
2115 2003-07-10 Andrew Cagney <cagney@redhat.com>
2116
2117 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2118 functions against NULL, not 0.
2119 * gdbarch.c: Re-generate.
2120
2121 2003-07-10 Fred Fish <fnf@ninemoons.com>
2122
2123 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2124 null string instead of a null pointer.
2125 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2126
2127 2003-07-09 Michael Snyder <msnyder@redhat.com>
2128
2129 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2130
2131 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2132
2133 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2134 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2135 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2136 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2137 * x86-64-tdep.c: ... from here.
2138
2139 2003-07-09 Andreas Schwab <schwab@suse.de>
2140
2141 * m68k-tdep.h (enum struct_return): Define.
2142 (struct gdbarch_tdep): Add struct_return.
2143 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2144 bytes are padded to the right, not to the left. Pass struct value
2145 address in register %a1, not on stack.
2146 (m68k_use_struct_convention): New function.
2147 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2148 struct_return in tdep to pcc_struct_return.
2149 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2150 reg_struct_return.
2151
2152 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2153
2154 * somread.c (som_symfile_offsets): Fix compilation error.
2155
2156 2003-07-09 Andrew Cagney <cagney@redhat.com>
2157
2158 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2159 Add comments about the checks.
2160
2161 2003-07-08 Andrew Cagney <cagney@redhat.com>
2162
2163 * Makefile.in: Make dependency section headers consistent.
2164 (config_h): Move to $BUILD headers section.
2165 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2166 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2167 (ada-exp.tab.c): Move to YACC/LEX section.
2168 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2169 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2170
2171 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2172
2173 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2174 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2175 of strerror with safe_strerror, use ISO C function definitions,
2176 and replace instances of sprintf with snprintf.
2177
2178 2003-07-07 Andrew Cagney <cagney@redhat.com>
2179
2180 * frame.c (get_prev_frame): Enable check for identical frames.
2181 Update comments. Update error messages.
2182
2183 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2184
2185 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2186
2187 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2188
2189 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2190 sort_symtab_syms, no longer necessary.
2191
2192 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2193
2194 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2195
2196 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2197
2198 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2199 (mips_register_byte): Likewise.
2200
2201 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2202
2203 * Makefile.in (sparc_tdep_h): New.
2204 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2205 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2206 * sparc-linux-nat.c: Include "sparc-tdep.h".
2207 * sparc-nat.c: Likewise.
2208 * sparc-tdep.c: Likewise.
2209 * sparc64nbsd-nat.c: Likewise.
2210 * sparcnbsd-nat.c: Likewise.
2211 * sparcnbsd-tdep.c: Likewise.
2212 * sparc-tdep.h: New file.
2213 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2214 and sparc_npc_regnum.
2215
2216 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2217
2218 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2219 (mips_linux_cannot_store_register): List supported instead of
2220 unsupported registers.
2221
2222 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2223
2224 * disasm.c (dump_insns): Separate instructions from addresses.
2225
2226 2003-07-07 Andreas Schwab <schwab@suse.de>
2227
2228 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2229 dependencies.
2230 * m68k-tdep.c (NUM_FREGS): Delete.
2231 (SIG_PC_FP_OFFSET): Delete.
2232 (TARGET_M68K): Delete.
2233 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2234 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2235 P_MOVEL_SP, P_MOVEML_SP): Define.
2236 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2237 P_TRAP): Delete.
2238 (m68k_register_raw_size): Delete.
2239 (m68k_register_virtual_size): Delete.
2240 (m68k_register_type): Renamed from m68k_register_virtual_type and
2241 add gdbarch argument.
2242 (m68k_store_struct_return): Delete.
2243 (m68k_deprecated_extract_return_value): Delete.
2244 (m68k_deprecated_extract_struct_value_address): Delete.
2245 (m68k_frame_chain): Delete.
2246 (m68k_frame_saved_pc): Delete.
2247 (m68k_fix_call_dummy): Delete.
2248 (m68k_push_dummy_frame): Delete.
2249 (m68k_pop_frame): Delete.
2250 (m68k_extract_return_value): New function.
2251 (m68k_store_return_value): Rewrite using regcache.
2252 (m68k_extract_struct_value_address): Rewrite using regcache.
2253 (m68k_push_dummy_call): New function.
2254 (struct m68k_frame_cache): Define.
2255 (m68k_alloc_frame_cache): New function.
2256 (m68k_analyze_frame_setup): New function.
2257 (m68k_analyze_register_saves): New function.
2258 (m68k_analyze_prologue): New function.
2259 (m68k_skip_prologue): Rewrite using above functions.
2260 (m68k_unwind_pc): New function.
2261 (m68k_frame_cache): New function.
2262 (m68k_frame_this_id): New function.
2263 (m68k_frame_prev_register): New function.
2264 (m68k_frame_unwind): New variable.
2265 (m68k_frame_p): New function.
2266 (m68k_sigtramp_frame_cache): New function.
2267 (m68k_sigtramp_frame_this_id): New function.
2268 (m68k_sigtramp_frame_prev_register): New function.
2269 (m68k_sigtramp_frame_unwind): New variable.
2270 (m68k_sigtramp_frame_p): New function.
2271 (m68k_frame_base_address): New function.
2272 (m68k_frame_base): New function.
2273 (m68k_unwind_dummy_id): New function.
2274 (fill_gregset): Use regcache_collect.
2275 (fill_fpregset): Likewise.
2276 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2277 defined.
2278 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2279 deprecated_init_frame_pc, deprecated_store_struct_return,
2280 deprecated_extract_return_value, deprecated_store_return_value,
2281 deprecated_frame_chain, deprecated_frame_saved_pc,
2282 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2283 deprecated_register_virtual_size,
2284 deprecated_max_register_raw_size,
2285 deprecated_max_register_virtual_size,
2286 deprecated_register_virtual_type, deprecated_register_size,
2287 deprecated_register_byte, deprecated_register_bytes,
2288 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2289 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2290 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2291 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2292 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2293 deprecated_push_dummy_frame, deprecated_pop_frame,
2294 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2295 only if SYSCALL_TRAP is defined. Set extract_return_value,
2296 store_return_value, extract_struct_value_address, register_type,
2297 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2298 predicates.
2299 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2300 M68K_MAX_REGISTER_SIZE): Define.
2301 (struct m68k_sigtramp_info): Define.
2302 (struct gdbarch_tdep): Add get_sigtramp_info.
2303 * m68klinux-nat.c (fetch_register): Use register_size instead of
2304 REGISTER_RAW_SIZE. Don't put assignment in if.
2305 (store_register): Likewise.
2306 (fetch_inferior_registers): Likewise.
2307 (store_inferior_registers): Likewise.
2308 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2309 (m68k_linux_frame_saved_pc): Delete.
2310 (m68k_linux_sigcontext_reg_offset,
2311 m68k_linux_ucontext_reg_offset): Define.
2312 (m68k_linux_get_sigtramp_info): New function.
2313 (m68k_linux_extract_return_value): Rewrite using regcache.
2314 (m68k_linux_store_return_value): Likewise.
2315 (m68k_linux_extract_struct_value_address): Likewise.
2316 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2317 Don't set deprecated_frame_saved_pc,
2318 deprecated_extract_return_value, deprecated_store_return_value,
2319 deprecated_extract_struct_value_address. Set
2320 extract_return_value, store_return_value,
2321 extract_struct_value_address.
2322
2323 2003-07-07 Andrew Cagney <cagney@redhat.com>
2324
2325 * expprint.c: Include "user-regs.h" instead of "frame.h".
2326 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2327 frame_map_regnum_to_name.
2328 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2329 (frame_map_name_to_regnum): Simplify, call
2330 user_reg_map_name_to_regnum.
2331 (frame_map_regnum_to_name): Simplify, call
2332 user_reg_map_regnum_to_name.
2333 (frame_register_unwind): Update.
2334 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2335 (_initialize_frame_reg): Call user_reg_add_builtin.
2336 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2337 (value_of_register): Use value_of_user_reg.
2338 * eval.c (evaluate_subexp_standard): Update.
2339 * parse.c (write_dollar_variable): Update.
2340 * d10v-tdep.c (d10v_print_registers_info): Update.
2341 * infcmd.c (registers_info): Update.
2342 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2343 (builtin_regs_h): Delete macro.
2344 (user_regs_h): Define.
2345 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2346 (builtin-regs.o): Delete target.
2347 (user-regs.o): Specify dependencies.
2348 (expprint.o): Update dependencies.
2349 (findvar.o): Update dependencies.
2350 (frame.o): Update dependencies.
2351 (std-regs.o): Update dependencies.
2352
2353 2003-07-06 Christopher Faylor <cgf@redhat.com>
2354
2355 * win32-nat.c (solib_symbols_add): Use one variable for all section
2356 address stuff. Pass variable rather than address of variable to
2357 safe_symbol_file_add.
2358
2359 2003-07-06 Andreas Schwab <schwab@suse.de>
2360
2361 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2362
2363 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2364
2365 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2366
2367 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2368
2369 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2370
2371 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2372
2373 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2374 * config/i386/nto.mh: New file.
2375 * config/i386/nm-nto.h: New file.
2376 * configure.host: Add i[3456]86-*-nto*.
2377
2378 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2379
2380 * remote-vx.c (vx_add_symbols): Fix compilation error.
2381
2382 2003-07-03 Andrew Cagney <cagney@redhat.com>
2383
2384 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2385 * gdbarch.h, gdbarch.c: Re-generate.
2386 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2387 (legacy_register_name): Declare.
2388 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2389 (REGISTER_NAME): Define.
2390 * sparc-tdep.c (legacy_register_name): New function.
2391 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2392 (REGISTER_NAME): Define.
2393 (hppa64_register_name): Declare.
2394 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2395 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2396 (hppa64_register_name): New function.
2397 (hppa_register_name): New function.
2398 * arch-utils.c (legacy_register_name): Delete.
2399 * arch-utils.h (legacy_register_name): Delete.
2400
2401 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2402
2403 * cli/cli-interp.c (cli_interpreter_resume): Update the
2404 cli_uiout's stream to gdb_stdout.
2405
2406 2003-07-03 Andrew Cagney <cagney@redhat.com>
2407
2408 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2409 predicate.
2410 * gdbarch.h, gdbarch.c: Re-generate.
2411 * regcache.c (init_regcache_descr): Use legacy code when either
2412 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2413
2414 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2415
2416 * NEWS: Move "set logging" entry into GDB 6.0 section.
2417
2418 2003-07-02 Jim Blandy <jimb@redhat.com>
2419
2420 * s390-tdep.c (struct frame_extra_info): new member:
2421 'stack_bought_valid'.
2422 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2423 initialize fextra_info->stack_bought.
2424 (s390_frameless_function_invocation): Don't trust the value of
2425 fextra_info_ptr->stack_bought unless
2426 fextra_info->stack_bought_valid is set.
2427
2428 New S390 prologue analyzer.
2429 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2430 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2431 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2432 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2433 compute_x_addr, s390_on_stack, s390_store,
2434 s390_get_signal_frame_info): New functions.
2435 (S390_NUM_SPILL_SLOTS): New macro.
2436 (s390_get_frame_info): Rewritten.
2437 (is_arg_reg): Deleted.
2438
2439 Break out the decoding of S/390 instructions into separate
2440 functions, to make it more legible, and easier to check
2441 against the spec.
2442 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2443 is_rx, is_rxe): New functions.
2444 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2445 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2446 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2447 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2448 enums for opcode values. (Is this an improvement?)
2449
2450 2003-07-02 Andrew Cagney <cagney@redhat.com>
2451
2452 * i386-tdep.c: Revert change committed as part of trad-frame code
2453 below.
2454
2455 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2456
2457 * breakpoint.c (insert_catchpoint): Make static.
2458
2459 2003-07-02 Andreas Schwab <schwab@suse.de>
2460
2461 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2462 former ia64_push_arguments and ia64_push_return_address, and use
2463 regcache functions instead of read/write_register.
2464 (ia64_gdbarch_init): Set push_dummy_call instead of
2465 deprecated_push_arguments and deprecated_push_return_address.
2466
2467 2003-07-01 Andreas Jaeger <aj@suse.de>
2468
2469 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2470 before the call.
2471 Set %rax only to number of SSE registers used.
2472
2473 2003-07-01 Andrew Cagney <cagney@redhat.com>
2474
2475 * trad-frame.h: Update comments, a -1 .addr is reserved.
2476 (trad_frame_value_p, trad_frame_addr_p): Declare.
2477 (trad_frame_reg_p): Declare.
2478 (trad_frame_set_value): Rename trad_frame_register_value.
2479 (trad_frame_set_unknown): Declare.
2480 * trad-frame.c (trad_frame_realreg_p): New function.
2481 (trad_frame_addr_p, trad_frame_value_p): New function.
2482 (trad_frame_set_unknown): New function.
2483 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2484 (trad_frame_prev_register): Use trad_frame_realreg_p,
2485 trad_frame_addr_p and trad_frame_value_p.
2486 (trad_frame_set_value): Rename trad_frame_register_value.
2487 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2488 and trad_frame_set_value.
2489
2490 2003-06-30 Jim Blandy <jimb@redhat.com>
2491
2492 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2493 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2494 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2495 for 16 registers, and then 32 more bytes.
2496 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2497 New macros.
2498 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2499 Move up in the file, since it's now used by is_simple_arg.
2500 (is_simple_arg): Don't assume registers are four bytes long.
2501 Exclude all double arguments. Extended floats are not simple
2502 args.
2503 (is_power_of_two): New function.
2504 (pass_by_copy_ref): Call is_power_of_two, and check that the
2505 length fits in a register, rather than listing all the acceptable
2506 sizes. Extended floats are not passed by reference.
2507 (s390_push_arguments): Don't assume registers are four bytes long.
2508 Reserve an argument register to point to the buffer for structures
2509 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2510 S390_STACK_FRAME_OVERHEAD.
2511
2512 2003-06-30 Andreas Schwab <schwab@suse.de>
2513
2514 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2515 format error message.
2516
2517 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2518
2519 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2520
2521 2003-06-30 David Carlton <carlton@kealia.com>
2522
2523 Band-aid for PR c++/1245.
2524 * Makefile.in (cp-support.o): Depend on complaints_h.
2525 * cp-support.c: Include complaints.h. Add declaration for
2526 find_last_component.
2527 (cp_find_first_component): Separate code into
2528 cp_find_first_component_aux.
2529 (cp_find_first_component_aux): Call demangled_name_complaint.
2530 (demangled_name_complaint): New.
2531
2532 2003-06-30 Andrew Cagney <cagney@redhat.com>
2533
2534 * remote.c (remote_write_bytes): Explicitly compute and then use
2535 the payload size. Update comments to reflect. Fixes problem of
2536 GDB not sending small packets as found by Fred Fish.
2537
2538 2003-06-30 Andrew Cagney <cagney@redhat.com>
2539
2540 * remote.c (remote_async_wait): Fix -Wformat problem.
2541
2542 2003-06-29 Andrew Cagney <cagney@redhat.com>
2543
2544 * remote.c (remote_wait): Call error, and not warning, when the
2545 packet is corrupt.
2546 (remote_async_wait): Ditto.
2547
2548 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * sparc-tdep.c (sparc_y_regnum): Make external again.
2551
2552 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2553
2554 * cli/cli-logging.c (pop_output_files): Add void to function
2555 definition.
2556
2557 2003-06-29 Andrew Cagney <cagney@redhat.com>
2558
2559 * frame.c (frame_register_unwind): Use unsigned char when dumping
2560 the buffer contents.
2561
2562 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2563
2564 * cli/cli-logging.c: New file.
2565 * cli-out.c (struct ui_out_data): Add original_stream.
2566 (cli_redirect): New function.
2567 (cli_ui_out_impl): Add cli_redirect.
2568 (cli_out_new): Initialize original_stream.
2569 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2570 (uo_redirect, ui_out_redirect): New.
2571 * ui-out.h (struct ui_out_impl): Add redirect member.
2572 (redirect_ftype): New.
2573 (ui_out_redirect): Add prototype.
2574 * Makefile.in: Add rules for cli-logging.c.
2575 * NEWS: Mention "set logging".
2576
2577 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2578
2579 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2580
2581 2003-06-27 Andrew Cagney <cagney@redhat.com>
2582
2583 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2584 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2585 * avr-tdep.c (avr_call_dummy_address): Delete function.
2586 (avr_gdbarch_init): Do not set call_dummy_address.
2587
2588 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2589
2590 * symfile.c (syms_from_objfile): Move variables to inner block.
2591 Move the checks for the non-mainline case a bit earlier to avoid
2592 doing some useless computations.
2593
2594 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2595
2596 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2597
2598 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2599
2600 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2601 sections.
2602
2603 2003-06-26 Michael Chastain <mec@shout.net>
2604
2605 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2606 gdb/testsuite/gdb.c++/pr-1210.exp.
2607
2608 2003-06-26 Andrew Cagney <cagney@redhat.com>
2609
2610 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2611 altivec_expression.h and altivec_registers.h.
2612
2613 2003-06-26 Andrew Cagney <cagney@redhat.com>
2614
2615 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2616 info->mach when MIPS16. Patch suggested by Fred Fish.
2617
2618 2003-06-26 Andrew Cagney <cagney@redhat.com>
2619
2620 * utils.c (internal_vproblem): Print the problem to a reason
2621 buffer and then pass to query. Make the msg variable more local.
2622
2623 2003-06-26 Andrew Cagney <cagney@redhat.com>
2624
2625 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2626 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2627 * gdbarch.h, gdbarch.c: Re-generate.
2628 * frame-base.c (default_frame_args_address): Update. Use
2629 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2630 not available.
2631 (default_frame_locals_address): Ditto for
2632 DEPRECATED_FRAME_LOCALS_ADDRESS.
2633 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2634 (vax_frame_num_args): Update.
2635 (vax_gdbarch_init): Update.
2636 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2638 * mcore-tdep.c (mcore_gdbarch_init): Update.
2639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2640 * ia64-tdep.c (ia64_gdbarch_init): Update.
2641 * symtab.h (address_class): Update comments.
2642 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2643 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2644 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2645 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2646 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2647 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2648 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2649 * alpha-mdebug-tdep.c: Update.
2650 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2651
2652 2003-06-26 Andreas Jaeger <aj@suse.de>
2653
2654 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2655 of SSE registers so that varargs functions work. Rework handling
2656 of passing arguments on the stack.
2657 (x86_64_store_return_value): Return double and float values in SSE
2658 register.
2659
2660 2003-06-24 Michael Chastain <mec@shout.net>
2661
2662 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2663 the "constructor breakpoints ignored" bug.
2664
2665 2003-06-25 David Carlton <carlton@kealia.com>
2666
2667 * MAINTAINERS: Update e-mail address.
2668
2669 2003-06-24 Jim Blandy <jimb@redhat.com>
2670
2671 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2672
2673 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2674 function.
2675 (ppc_linux_init_abi): Register it as the
2676 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2677
2678 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2679 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2680 method.
2681
2682 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2683 (ppc64_standard_linkage_target): Use it.
2684
2685 2003-06-23 Andrew Cagney <cagney@redhat.com>
2686
2687 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2688 for 0 "int0" and 4 "int32" sized registers.
2689 * gdbtypes.c (builtin_type_int0): Define.
2690 (build_gdbtypes): Initialize builtin_type_int0.
2691 * gdbtypes.h (builtin_type_int0): Declare.
2692
2693 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2694
2695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2696 as characters are unsigned.
2697
2698 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2699
2700 PR gdb/1179
2701 * dwarfread.c (struct_type): Skip static fields without crashing.
2702
2703 2003-06-22 Andrew Cagney <cagney@redhat.com>
2704
2705 GDB 6.0 branch created.
2706 * README: Update.
2707 * PROBLEMS: Update. Empty.
2708 * NEWS: Update.
2709
2710 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2711
2712 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2713 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2714
2715 2003-06-22 Andrew Cagney <cagney@redhat.com>
2716
2717 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2718 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2719 Velikov.
2720
2721 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2722
2723 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2724 compilers.
2725
2726 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2727
2728 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2729 argument of val_print.
2730 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2731 to the address argument of baseclass_offset or target_read_memory.
2732 Do add it to the argument of cp_print_value_fields.
2733
2734 2003-06-21 Andrew Cagney <cagney@redhat.com>
2735
2736 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2737 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2738 instead of 0..NUM_REGS.
2739 (mips_register_reggroup_p): New function.
2740 (mips_pseudo_register_write): New function.
2741 (mips_pseudo_register_read): New function.
2742 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2743 based on the register's type.
2744 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2745 cooked.
2746 (mips_get_saved_register): Simplify. Assert that REGNO is a
2747 pseudo / cooked.
2748 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2749 (mips_register_type): Replace mips_register_virtual_type. Map
2750 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2751 when available.
2752 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2753 that the register is cooked / virtual.
2754 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2755 Only get the extra info when needed.
2756 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2757 (mips32_heuristic_proc_desc): Fetch the cooked register.
2758 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2759 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2760 (mips_print_register): Use gdbarch_register_type, instead of
2761 REGISTER_VIRTUAL_TYPE.
2762 (print_gp_register_row): Use gdbarch_register_type, instead of
2763 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2764 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2765 Print the pseudo / cooked registers.
2766 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2767 Print the pseudo / cooked registers.
2768 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2769 REG_NUM is pseudo / cooked.
2770 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2771 (mips_n32n64_xfer_return_value): Ditto.
2772 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2773 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2774 (mips_register_sim_regno): New function.
2775 (mips_gdbarch_init): Set deprecated_register_byte,
2776 register_group_p, pseudo_register_write, pseudo_register_read,
2777 register_sim_regno, and num_pseudo_regs. Set register_type,
2778 instead of register_virtual_type.
2779 * Makefile.in (mips-tdep.o): Update dependencies.
2780 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2781 REGISTER_VIRTUAL_TYPE.
2782 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2783 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2784 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2785 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2786 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2787
2788 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2789
2790 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2791 * cli/cli-cmds.c: Include "gdb_vfork.h".
2792 (shell_escape): Use vfork.
2793
2794 2003-06-21 Andrew Cagney <cagney@redhat.com>
2795
2796 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2797 32 bit floating-point register saves.
2798
2799 * frame.h (deprecated_unwind_get_saved_register): Delete.
2800 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2801 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2802 and deprecated_get_next_frame_hack instead of
2803 deprecated_unwind_get_saved_register.
2804
2805 * mips-tdep.c (mips_dump_tdep): Do not print
2806 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2807
2808 * frame.c (get_frame_register): New function.
2809 (frame_unwind_register_signed): New function.
2810 (get_frame_register_signed): New function.
2811 (frame_unwind_register_unsigned): New function.
2812 (get_frame_register_unsigned): New function.
2813 * frame.h: Add comments on naming schema.
2814 (get_frame_register, frame_unwind_register_signed): Declare.
2815 (get_frame_register_signed, get_frame_register_signed): Declare.
2816 (frame_unwind_register_unsigned): Declare.
2817 (get_frame_register_unsigned): Declare.
2818
2819 2003-06-20 Theodore A. Roth <troth@openavr.org>
2820
2821 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2822
2823 2003-06-20 Theodore A. Roth <troth@openavr.org>
2824
2825 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2826 (avr_read_sp): Ditto.
2827
2828 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2829
2830 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2831 * config/arm/nm-linux.h: Likewise.
2832 * config/arm/tm-linux.h: Likewise.
2833 * config/ia64/nm-linux.h: Likewise.
2834 * config/ia64/tm-ia64.h: Likewise.
2835 * config/s390/tm-linux.h: Likewise.
2836 * config/s390/tm-s390.h: Likewise.
2837 * s390-nat.c: Likewise.
2838 * s390-tdep.c: Likewise.
2839
2840 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2841 * config/ia64/linux.mt: Likewise.
2842 * config/m68k/linux.mh: Likewise.
2843 * config/mips/linux.mt: Likewise.
2844 * config/powerpc/linux.mh: Likewise.
2845 * config/sh/linux.mt: Likewise.
2846
2847 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2848
2849 * solib.c (solib_open): Change tests for whether to search
2850 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2851 comments.
2852
2853 2003-06-19 Theodore A. Roth <troth@openavr.org>
2854
2855 * avr-tdep.c (avr_frame_address): Delete function.
2856 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2857 set_gdbarch_frame_args_address.
2858
2859 2003-06-19 Andrew Cagney <cagney@redhat.com>
2860
2861 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2862 (REGISTER_CONVERT_FROM_TYPE): Delete.
2863 (mips_register_convert_to_type): Delete declaration.
2864 (mips_register_convert_from_type): Delete declaration.
2865 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2866 kernel/.
2867
2868 2003-06-19 Michael Snyder <msnyder@redhat.com>
2869
2870 * linux-nat.h: New file.
2871 * linux-nat.c: Include linux-nat.h.
2872 * lin-lwp.c: Include linux-nat.h.
2873 Move struct lwp_info def to linux-nat.h.
2874 * linux-proc.c: Include linux-nat.h.
2875 (linux_make_note_section): Iterate over lwps instead of threads.
2876 (linux_do_thread_registers): Use lwp instead of merged pid.
2877 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2878 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2879 Add dependency on linux_nat_h.
2880
2881 2003-06-19 Theodore A. Roth <troth@openavr.org>
2882
2883 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2884
2885 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2886
2887 * varobj.c (get_type, get_target_type): Use check_typedef.
2888
2889 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2890
2891 * breakpoint.c (insert_catchpoint): Call internal_error.
2892
2893 2003-06-19 Theodore A. Roth <troth@openavr.org>
2894
2895 * avr-tdep.c (avr_push_dummy_code): Delete function.
2896 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2897
2898 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2899
2900 * arch-utils.c (default_prepare_to_proceed): Remove.
2901 (generic_prepare_to_proceed): Remove.
2902 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2903 (generic_prepare_to_proceed): Remove prototype.
2904 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2905 * gdbarch.c: Regenerate.
2906 * gdbarch.h: Regenerate.
2907 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2908 * hppah-nat.c (hppa_switched_threads): Remove.
2909 * infrun.c (prepare_to_proceed): New static function, copied from
2910 generic_prepare_to_proceed. Remove select_it argument.
2911 (proceed): Call prepare_to_proceed.
2912 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2913 variables.
2914 (ptrace_wait): Don't set the removed variables.
2915 (hppa_switched_threads): Remove.
2916 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2917 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2918 (lin_lwp_prepare_to_proceed): Remove prototype.
2919 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2920 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2921
2922 2003-06-18 Theodore A. Roth <troth@openavr.org>
2923
2924 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2925 trad-frame.h.
2926 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2927 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2928 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2929 (AVR_PROLOGUE_*): Enumerate prologue types.
2930 (struct frame_extra_info): Remove.
2931 (struct avr_unwind_cache): Define.
2932 (avr_write_sp): Delete function.
2933 (avr_read_fp): Ditto.
2934 (avr_init_extra_frame_info): Ditto.
2935 (avr_pop_frame): Ditto.
2936 (avr_frame_saved_pc): Ditto.
2937 (avr_saved_pc_after_call): Ditto.
2938 (avr_push_return_address): Ditto.
2939 (avr_frame_chain): Ditto.
2940 (avr_store_struct_return): Ditto.
2941 (avr_push_arguments): Ditto.
2942 (avr_scan_prologue): Update comments. Changed to set up the info for
2943 cache unwinding. Now returns end of prologue PC.
2944 (avr_skip_prologue): Better handling of functions lacking a prologue
2945 by using avr_scan_prologue.
2946 (avr_scan_arg_moves): New function.
2947 (avr_saved_regs_unwinder): Ditto.
2948 (avr_frame_unwind_cache): Ditto.
2949 (avr_unwind_pc): Ditto.
2950 (avr_frame_this_id): Ditto.
2951 (avr_frame_prev_register): Ditto.
2952 (avr_frame_p): Ditto.
2953 (avr_frame_base_address ): Ditto.
2954 (avr_unwind_dummy_id): Ditto.
2955 (avr_push_dummy_code): Ditto.
2956 (push_stack_item): Ditto.
2957 (pop_stack_item): Ditto.
2958 (avr_push_dummy_call): Ditto.
2959 (struct stack_item): Define.
2960 (avr_frame_unwind): Declare structure.
2961 (avr_frame_base): Ditto.
2962 (avr_gdbarch_init): Remove calls to
2963 set_gdbarch_deprecated_init_frame_pc,
2964 set_gdbarch_deprecated_target_read_fp,
2965 set_gdbarch_deprecated_dummy_write_sp,
2966 set_gdbarch_deprecated_fp_regnum,
2967 set_gdbarch_deprecated_push_arguments,
2968 set_gdbarch_deprecated_push_return_address,
2969 set_gdbarch_deprecated_pop_frame,
2970 set_gdbarch_deprecated_store_struct_return,
2971 set_gdbarch_deprecated_frame_init_saved_regs,
2972 set_gdbarch_deprecated_init_extra_frame_info,
2973 set_gdbarch_deprecated_frame_chain,
2974 set_gdbarch_deprecated_frame_saved_pc,
2975 set_gdbarch_deprecated_saved_pc_after_call.
2976 Add calls to set_gdbarch_push_dummy_call,
2977 set_gdbarch_push_dummy_code,
2978 frame_unwind_append_predicate,
2979 frame_base_set_default,
2980 set_gdbarch_unwind_dummy_id,
2981 set_gdbarch_unwind_pc.
2982 Wrap a long line.
2983
2984 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2985
2986 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2987 registers for H8/300S.
2988 (h8300_print_registers_info): Ditto.
2989 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2990
2991 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2992
2993 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2994 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2995 (lin_lwp_wait): Likewise. Update comments.
2996 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2997 (pull_pid_from_list, linux_record_stopped_pid): New.
2998
2999 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3000
3001 * ada-lang.c (scan_discrim_bound): Name first argument.
3002 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3003 declared by ALL_BLOCK_SYMBOLS.
3004
3005 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3006
3007 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3008 ("regcache.h"): Include it.
3009 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3010
3011 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3012
3013 * NEWS: Mention gdbserver detach change and "disconnect" command.
3014 * infcmd.c (disconnect_command): New function.
3015 (_initialize_infcmd): Add ``disconnect'' command.
3016 * remote.c (remote_async_detach): Delete.
3017 (remote_detach): Merge remote_async_detach.
3018 (remote_disconnect): New.
3019 (init_remote_ops): Set to_disconnect.
3020 (init_remote_cisco_ops): Likewise.
3021 (init_remote_async_ops): Likewise. Use remote_detach.
3022 * target.c (cleanup_target): Default to_disconnect.
3023 (update_current_target): Inherit to_disconnect.
3024 (target_disconnect, debug_to_disconnect): New functions.
3025 (setup_target_debug): Set to_disconnect.
3026 * target.h (struct target_ops): Add to_disconnect.
3027 (target_disconnect): Add prototype.
3028
3029 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3030
3031 * breakpoint.c (insert_catchpoint): New function.
3032 (insert_breakpoints): Use catch_exceptions to call
3033 insert_catchpoint. Disable catchpoints if they fail to insert.
3034
3035 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * symfile.c (reread_symbols): Clear sym_private.
3038
3039 2003-06-17 Andrew Cagney <cagney@redhat.com>
3040
3041 * trad-frame.h (struct frame_info): Add opaque declaration.
3042 * remote-fileio.h (struct cmd_list_element): Add opaque
3043 declaration.
3044 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3045 comments.
3046
3047 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3048
3049 * remote.c (remote_prepare_to_store): Replace call to
3050 deprecated_read_register_bytes with multiple regcache_raw_read
3051 calls.
3052
3053 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3054
3055 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3056 (nto_find_and_open_solib): Likewise.
3057 (nto_init_solib_absolute_prefix): Likewise.
3058 (_initialize_nto_tdep): Fix indentation.
3059
3060 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3061
3062 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3063
3064 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3065
3066 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3067
3068 2003-06-17 Jim Blandy <jimb@redhat.com>
3069
3070 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3071
3072 2003-06-16 Theodore A. Roth <troth@openavr.org>
3073
3074 * avr-tdep.c (avr_extract_return_value): New function.
3075 (avr_gdbarch_init): Set extract_return_value method.
3076
3077 2003-06-16 Andrew Cagney <cagney@redhat.com>
3078
3079 * frame.h (deprecated_get_next_frame_hack): Declare.
3080 * frame.c (legacy_saved_regs_prev_register): Only require
3081 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3082 there are always saved regs.
3083 (deprecated_generic_get_saved_register): Do not require
3084 DEPRECATED_FRAME_INIT_SAVED_REGS.
3085 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3086 use frame ID unwind instead.
3087 (deprecated_get_next_frame_hack): New function.
3088
3089 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3090
3091 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3092 (h8300_push_dummy_call): ...this function. Some minor optimization.
3093 (h8300_push_return_address): Remove.
3094 (h8300_gdbarch_init): Remove calls to
3095 set_gdbarch_deprecated_dummy_write_sp,
3096 set_gdbarch_deprecated_push_arguments and
3097 set_gdbarch_deprecated_push_return_address.
3098 Add call to set_gdbarch_push_dummy_call.
3099
3100 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3101
3102 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3103 (E_PSEUDO_EXR_REGNUM): Ditto.
3104 (h8300_is_argument_spill): Check for instructions moving argument
3105 registers into safe registers.
3106 (h8300_skip_prologue): Check for stm instruction to push registers
3107 used for register variables onto stack.
3108 (gdb_print_insn_h8300): Remove.
3109 (h8300_examine_prologue): Add a comment.
3110 (h8300_register_name): Take pseudo registers into account.
3111 (h8300s_register_name): Ditto.
3112 (h8300sx_register_name): Ditto.
3113 (h8300_print_register): Ditto.
3114 (h8300_print_registers_info): Define "nice" printing order.
3115 (h8300_saved_pc_after_call): Take pseudo registers into account.
3116 (h8300_register_type): Ditto. Return type used for remote connection
3117 when requesting real CCR or EXR register, return actual type when
3118 requesting pseudo CCR or EXR.
3119 (h8300_pseudo_register_read): New function.
3120 (h8300_pseudo_register_write): Ditto.
3121 (h8300_dbg_reg_to_regnum): Ditto.
3122 (h8300s_dbg_reg_to_regnum): Ditto.
3123 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3124 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3125 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3126 set_gdbarch_print_insn architecture dependent.
3127 Call set_gdbarch_pseudo_register_read and
3128 set_gdbarch_pseudo_register_write.
3129 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3130
3131 2003-06-16 Andrew Cagney <cagney@redhat.com>
3132
3133 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3134 * gdbarch.h, gdbarch.c: Re-generate.
3135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3136 * s390-tdep.c (s390_gdbarch_init): Update.
3137 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3138 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3139 * mips-tdep.c (mips_gdbarch_init): Update.
3140 * mcore-tdep.c (mcore_gdbarch_init): Update.
3141 * cris-tdep.c (cris_gdbarch_init): Update.
3142 * infcall.c (call_function_by_hand): Update.
3143 * ia64-tdep.c (ia64_push_arguments): Update comment.
3144 * frame.c (legacy_get_prev_frame): Do not assume
3145 SAVE_DUMMY_FRAME_TOS_P.
3146 * dummy-frame.c (find_dummy_frame): Update comment.
3147
3148 2003-06-16 Andrew Cagney <cagney@redhat.com>
3149
3150 * regcache.c (do_cooked_read): Do not use register_valid_p.
3151
3152 2003-06-15 Theodore A. Roth <troth@openavr.org>
3153
3154 * avr-tdep.c (avr_register_type): Remove a blank line.
3155 (avr_scan_prologue): Correct some comments.
3156
3157 2003-06-15 Theodore A. Roth <troth@openavr.org>
3158
3159 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3160 prologue types.
3161 Properly scan prologues generated by gcc with the -mcall-prologues
3162 option.
3163 Add code to scan -mcall-prologues for mega devices.
3164
3165 2003-06-15 Theodore A. Roth <troth@openavr.org>
3166
3167 * avr-tdep.c (avr_register_byte): Delete function.
3168 (avr_register_raw_size): Delete function.
3169 (avr_register_virtual_size): Delete function.
3170 (avr_register_virtual_type): Delete function.
3171 (avr_register_type): New function.
3172 (avr_address_to_pointer): Remove unused code.
3173 (avr_read_fp): Need to read FP as two separate bytes due to change to
3174 avr_register_type() usage.
3175 (avr_gdbarch_init): Don't set deprecated_register_size.
3176 Don't set deprecated_register_bytes.
3177 Don't set deprecated_register_byte.
3178 Don't set deprecated_register_raw_size.
3179 Don't set deprecated_max_register_raw_size.
3180 Don't set deprecated_register_virtual_size.
3181 Don't set deprecated_max_register_virtual_size.
3182 Don't set deprecated_register_virtual_type.
3183 Set register_type method.
3184
3185 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3186
3187 * Makefile.in (linux-nat.o): Add rule.
3188 * linux-nat.c: New file.
3189 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3190 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3191 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3192 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3193 * config/arm/linux.mh (NATDEPFILES): Likewise.
3194 * config/i386/linux.mh (NATDEPFILES): Likewise.
3195 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3196 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3197 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3198 * config/mips/linux.mh (NATDEPFILES): Likewise.
3199 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3200 * config/s390/s390.mh (NATDEPFILES): Likewise.
3201 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3202
3203 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3204
3205 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3206 replace out-of-date comment.
3207
3208 2003-06-15 Andrew Cagney <cagney@redhat.com>
3209
3210 * rdi-share/host.h (Fail): Change to a varargs function.
3211 * remote-rdi.c (Fail): Update.
3212
3213 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3214
3215 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3216 (i386_convert_register_p, i386_register_to_value,
3217 i386_register_from_value): Handle types longer than 8 bytes.
3218
3219 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3220
3221 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3222 Move floating-point code to new function in i387-tdep.c.
3223 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3224 New functions containing code moved here from i386-tdep.c.
3225 * i387-tdep.h: Add opaque declaration for `struct type'.
3226 (i387_register_to_value, i387_value_to_register): New prototypes.
3227 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3228 (x86_64_init_abi): Set convert_register_p, register_to_value and
3229 value_to_register here.
3230
3231 2003-06-14 Andrew Cagney <cagney@redhat.com>
3232
3233 * mips-tdep.c (mips_register_to_value): Make static.
3234 (mips_value_to_register): Make static.
3235 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3236 * ia64-tdep.c (ia64_register_raw_size): Make static.
3237 (ia64_register_virtual_size): Make static.
3238 (ia64_register_byte): Make static.
3239 * i387-tdep.c: Include "i387-tdep.h".
3240 (print_387_control_word): Delete function.
3241 (print_387_status_word): Delete function.
3242 (print_387_status_bits): Delete function.
3243 (print_387_control_bits): Delete function.
3244 * Makefile.in (i387-tdep.o): Update dependencies.
3245 * rdi-share/host.h (Fail): Declare.
3246 * remote-rdi.c (Fail): Update to match declaration.
3247
3248 2003-06-14 Andrew Cagney <cagney@redhat.com>
3249
3250 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3251 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3252 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3253 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3254 * README: Delete reference to remote-array.
3255 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3256 (remote-array.o): Delete target.
3257 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3258 * remote-array.c: Delete file.
3259
3260 2003-06-14 Andrew Cagney <cagney@redhat.com>
3261 Mark Kettenis <kettenis@gnu.org>
3262
3263 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3264 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3265 parameter with "frame".
3266 * gdbarch.h, gdbarch.c: Re-generate.
3267 * frame.h (put_frame_register): Declare.
3268 * frame.c (put_frame_register): New function.
3269 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3270 (legacy_register_to_value): Rewrite, use "frame" to get the
3271 register value.
3272 (legacy_value_to_register): Rewrite, use "frame" to find the
3273 register's location before storing.
3274 * arch-utils.h (legacy_convert_register_p): Update.
3275 (legacy_register_to_value, legacy_value_to_register): Update.
3276 * findvar.c (value_from_register): Rewrite, eliminate use of
3277 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3278 "frame" to REGISTER_TO_VALUE.
3279 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3280 lval_reg_frame_relative + lval_register branch of the switch. Do
3281 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3282 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3283 I386_EDI_REGNUM): New defines.
3284 (i386_next_regnum, i386_convert_register_p,
3285 i386_register_to_value, i386_value_to_register): New functions.
3286 (i386_register_convertible, i386_register_convert_to_virtual,
3287 i386_convert_to_raw): Remove functions.
3288 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3289 value_to_register instead of register_convertible,
3290 register_convert_to_virtual and register_convert_to_raw.
3291 * mips-tdep.c (mips_convert_register_p): New function.
3292 (mips_value_to_register): Replace mips_register_convert_from_type.
3293 (mips_register_to_value): Replace mips_register_convert_to_type.
3294 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3295 register_to_value.
3296 * alpha-tdep.c (alpha_convert_register_p): Update.
3297 (alpha_value_to_register): Update, store the register.
3298 (alpha_register_to_value): Update, fetch the register.
3299
3300 2003-06-14 Theodore A. Roth <troth@openavr.org>
3301
3302 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3303 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3304 Don't set deprecated_call_dummy_words.
3305 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3306 Don't set remote_translate_xfer_address.
3307 (avr_io_reg_read_command): Remove commented out debug printf.
3308 Wrap a long line.
3309
3310 2003-06-14 Theodore A. Roth <troth@openavr.org>
3311
3312 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3313 causes gdb to seg fault.
3314
3315 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3316
3317 * sparc-nat.c (fetch_inferior_registers): Correct
3318 a reference to "registers".
3319
3320 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3321
3322 * Makefile.in (exc_request_U_h): Define
3323 (exc_request_S_h): Likewise.
3324 (msg_reply_S_h): Likewise.
3325 (msg_U_h): Likewise.
3326 (notify_S_h): Likewise.
3327 (process_reply_S_h): Likewise.
3328 (gnu-nat.o): Depend on gdb_obstack_h
3329 * gnu-nat.c: Include "gdb_obstack.h".
3330
3331 2003-06-13 Andrew Cagney <cagney@redhat.com>
3332
3333 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3334 * gdbarch.h, gdbarch.c: Re-generate.
3335
3336 2003-06-13 Andrew Cagney <cagney@redhat.com>
3337
3338 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3339 when deprecated REGISTER macros can be deleted.
3340 * gdbarch.h, gdbarch.c: Re-generate.
3341
3342 2003-06-13 Jim Blandy <jimb@redhat.com>
3343
3344 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3345 Linux entry point symbols for _dl_debug_state, too.
3346
3347 2003-06-13 Andrew Cagney <cagney@redhat.com>
3348
3349 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3350 available, do not use the FP register, and always save the TOS.
3351 * dummy-frame.c (dummy_frame_this_id): Do not assert
3352 SAVE_DUMMY_FRAME_TOS.
3353 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3354 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3355 (i386_push_dummy_call): Add 8 to the returned SP.
3356 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3357 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3358 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3359 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3360 (x86_64_push_dummy_call): Return "sp + 16".
3361 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3362 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3363 save_dummy_frame_tos.
3364
3365 2003-06-13 Jim Blandy <jimb@redhat.com>
3366
3367 * frv-tdep.c (frv_use_struct_convention): Delete static
3368 declaration for function deleted in my change of 2003-06-12.
3369
3370 2003-06-13 Theodore A. Roth <troth@openavr.org>
3371
3372 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3373 (avr_pointer_to_address): Shift code addrs left 1 bit.
3374 (avr_convert_from_func_ptr_addr): Delete function since operation is
3375 better handled by avr_address_to_pointer and avr_pointer_to_address.
3376 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3377
3378 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3379
3380 From Kelley Cook <kelleycook@wideopenwest.com>:
3381 * configure.host: Accept i[34567]86 variants.
3382 * configure.tgt: Likewise.
3383 * nlm/configure.in: Likewise.
3384 * nlm/configure: Regenerated.
3385
3386 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3387
3388 * arm-tdep.c (solib-svr4.h): Dont' include it.
3389 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3390 * arm-linux-tdep.c: ... here. Make static.
3391 (arm_linux_init_abi): Register it.
3392 (solib-svr4.h): Include it.
3393 * Makefile.in: Update dependencies.
3394 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3395 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3396
3397 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3398
3399 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3400 indicate registers used for return values.
3401 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3402 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3403 members.
3404 (h8300_init_extra_frame_info): Ditto.
3405 (h8300_frame_locals_address): Removed.
3406 (h8300_frame_args_address): Removed.
3407 (h8300_extract_return_value): Use new regcache structure. Only care
3408 for 16 bit CPUs.
3409 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3410 (h8300_store_return_value): Use new regcache structure. Only care
3411 for 16 bit CPUs.
3412 (h8300h_store_return_value): Same function for 32 bit CPUs.
3413 (h8300_store_struct_return): Removed.
3414 (h8300_extract_struct_value_address): Use new regcache structure.
3415 (h8300h_extract_struct_value_address): Removed.
3416 (h8300_push_dummy_code): New function.
3417 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3418 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3419 set_gdbarch_store_return_value architecture dependent.
3420 Call set_gdbarch_push_dummy_code and
3421 set_gdbarch_extract_struct_value_address.
3422 Remove calls to set_gdbarch_frame_args_address,
3423 set_gdbarch_frame_locals_address,
3424 set_gdbarch_deprecated_store_struct_return,
3425 set_gdbarch_deprecated_extract_return_value,
3426 set_gdbarch_deprecated_extract_struct_value_address,
3427 set_gdbarch_deprecated_call_dummy_words and
3428 set_gdbarch_deprecated_sizeof_call_dummy_words.
3429
3430 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3431
3432 * h8300-tdep.c (h8300_register_byte): Remove.
3433 (h8300h_register_byte): Remove.
3434 (h8300_register_virtual_type): Remove. Substitute by...
3435 (h8300_register_type): New function.
3436 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3437 (h8300h_extract_struct_value_address): Ditto.
3438 (h8300_gdbarch_init): Drop calls to
3439 set_gdbarch_deprecated_register_byte and
3440 set_gdbarch_deprecated_register_virtual_type.
3441 Add call to set_gdbarch_register_type.
3442
3443 2003-06-13 Andrew Cagney <cagney@redhat.com>
3444
3445 * gdbarch.sh: Update comments on registers.
3446 (deprecated_register_byte): Rename register_byte.
3447 (deprecated_register_raw_size): Rename register_raw_size.
3448 (deprecated_register_virtual_size): Rename register_virtual_size.
3449 (deprecated_register_virtual_type): Rename register_virtual_type.
3450 * gdbarch.h, gdbarch.c: Re-generate.
3451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3452 * vax-tdep.c (vax_gdbarch_init): Update.
3453 * v850-tdep.c (v850_gdbarch_init): Update.
3454 * sparc-tdep.c (sparc_gdbarch_init): Update.
3455 * sh-tdep.c (sh_gdbarch_init): Update.
3456 * s390-tdep.c (s390_gdbarch_init): Update.
3457 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3458 * ns32k-tdep.c: Update.
3459 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3460 * mips-tdep.c (mips_gdbarch_init): Update.
3461 * mcore-tdep.c (mcore_gdbarch_init): Update.
3462 * m68k-tdep.c (m68k_gdbarch_init): Update.
3463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3464 * ia64-tdep.c (ia64_gdbarch_init): Update.
3465 * hppa-tdep.c (hppa_gdbarch_init): Update.
3466 * h8300-tdep.c (h8300_gdbarch_init): Update.
3467 * frv-tdep.c (frv_gdbarch_init): Update.
3468 * cris-tdep.c (cris_gdbarch_init): Update.
3469 * avr-tdep.c (avr_gdbarch_init): Update.
3470 * alpha-tdep.c (alpha_gdbarch_init): Update.
3471 * arm-tdep.c (arm_gdbarch_init): Update.
3472
3473 2003-06-13 Andrew Cagney <cagney@redhat.com>
3474
3475 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3476 mips_o32_use_struct_convention with always_use_struct_convention.
3477
3478 2003-06-12 David Carlton <carlton@kealia.com>
3479
3480 * cp-namespace.c (cp_set_block_scope): Comment out
3481 processing_has_namespace_info branch.
3482
3483 2003-06-12 Jim Blandy <jimb@redhat.com>
3484
3485 Recognize and skip 64-bit PowerPC Linux linkage functions.
3486 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3487 insn_pattern, insns_match_pattern, d_field, ds_field): New
3488 functions, macros, and types for working with PPC instructions.
3489 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3490 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3491 ppc64_skip_trampoline_code): New functions, variables, and macros
3492 for recognizing and skipping linkage functions.
3493 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3494 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3495
3496 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3497 register offsets for both the 32- and 64-bit interfaces.
3498
3499 Actually finish the job started by my change of 2003-05-29.
3500 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3501 other #definition of this.
3502 (ppc_linux_skip_trampoline_code): Remove declaration.
3503 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3504 static.
3505 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3506 method for GDBARCH.
3507
3508 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3509 'long' on ppc64-*-linux*.
3510
3511 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3512 isn't #defined, assume the register doesn't exist: act as if
3513 tdep->ppc_mq_regnum were -1.
3514
3515 * configure.host, configure.tgt: Add entries for
3516 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3517 powerpc/linux.mt.
3518 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3519 New files.
3520
3521 * arch-utils.c (always_use_struct_convention): New function.
3522 * arch-utils.h (always_use_struct_convention): New prototype.
3523 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3524 (alpha_gdbarch_init): Register always_use_struct_convention,
3525 instead of alpha_use_struct_convention.
3526 * cris-tdep.c (cris_use_struct_convention): Delete.
3527 (cris_gdbarch_init): Register always_use_struct_convention,
3528 instead of cris_use_struct_convention.
3529 * frv-tdep.c (frv_use_struct_convention): Delete.
3530 (frv_gdbarch_init): Register always_use_struct_convention,
3531 instead of frv_use_struct_convention.
3532 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3533 (h8300_gdbarch_init): Register always_use_struct_convention,
3534 instead of h8300_use_struct_convention.
3535 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3536 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3537 instead of mips_o32_use_struct_convention.
3538
3539 2003-06-12 Andrew Cagney <cagney@redhat.com>
3540
3541 * wince.c: Include "mips-tdep.h".
3542 * mips-tdep.h (mips_next_pc): Declare.
3543 * mcore-tdep.c: Make more local functions static.
3544 * Makefile.in (wince.o): Update dependencies.
3545
3546 2003-06-12 David Carlton <carlton@kealia.com>
3547
3548 * symtab.c (lookup_symbol_aux_minsyms): Replace
3549 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3550 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3551 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3552 SYMBOL_NATURAL_NAME.
3553
3554 2003-06-12 Andreas Schwab <schwab@suse.de>
3555
3556 * Makefile.in (tuiDisassem.o): Update dependencies.
3557
3558 2003-06-12 David Carlton <carlton@bactrian.org>
3559
3560 * symtab.h: Delete declaration of make_symbol_overload_list.
3561 Add declaration of lookup_partial_symbol.
3562 * symtab.c (remove_params): Move to cp-support.c.
3563 (overload_list_add_symbol, make_symbol_overload_list)
3564 (sym_return_val_size, sym_return_val_index): Ditto.
3565 (lookup_partial_symbol): Make extern.
3566 * cp-support.h: Add declaration of make_symbol_overload_list.
3567 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3568 symtab.h, and block.h.
3569 (remove_params): Move here from symtab.c.
3570 (overload_list_add_symbol, make_symbol_overload_list)
3571 (sym_return_val_size, sym_return_val_index): Ditto.
3572 * valops.c: Include cp-support.h.
3573 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3574 frame_h, and block_h.
3575 (valops.o): Depend on cp_support_h.
3576
3577 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3578
3579 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3580 substitute by NUM_REGS throughout.
3581 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3582 (h8300s_register_name): New function for H8S registers.
3583 (h8300sx_register_name): Ditto for H8SX registers.
3584 (h8300_print_register): Revise register printing, avoid depending
3585 on 32 bit long.
3586 (h8300_register_byte): Only care for H8/300 registers.
3587 (h8300h_register_byte): New function for any other architecture.
3588 (h8300_register_raw_size): Remove.
3589 (h8300_register_virtual_type): Revise to return actually useful
3590 type.
3591 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3592 (h8300h_extract_struct_value_address): New function for any other
3593 architecture.
3594 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3595 set_gdbarch_register_name, set_gdbarch_register_byte,
3596 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3597 Remove calls to set_gdbarch_deprecated_register_size,
3598 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3599 set_gdbarch_deprecated_max_register_raw_size,
3600 set_gdbarch_register_virtual_size and
3601 set_gdbarch_deprecated_max_register_virtual_size entirely.
3602 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3603 set_gdbarch_long_double_bit.
3604
3605 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3606
3607 * doublest.c (convert_doublest_to_floatformat): When dealing
3608 with the implied integer bit, only alter mant_bits if we are
3609 processing a full 32 bits of mantissa.
3610
3611 2003-06-11 David Carlton <carlton@bactrian.org>
3612
3613 * dictionary.h: New.
3614 * dictionary.c: New.
3615 * block.h: Add opaque declaration for struct dictionary.
3616 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3617 'sym' members.
3618 (BLOCK_DICT): New macro.
3619 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3620 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3621 BLOCK_SHOULD_SORT.
3622 (ALL_BLOCK_SYMBOLS): Update definition.
3623 * Makefile.in (SFILES): Add dictionary.c.
3624 (dictionary_h): New.
3625 (COMMON_OBS): Add dictionary.o.
3626 (dictionary.o): New.
3627 (ada-lang.o): Depend on dictionary_h.
3628 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3629 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3630 (mi-cmd-stack.o): Ditto.
3631 (gdbtk-cmds.o): Update dependencies.
3632 (gdbtk-stack.o): Ditto.
3633 * ada-lang.c: Include dictionary.h.
3634 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3635 (fill_in_ada_prototype, debug_print_block): Ditto.
3636 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3637 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3638 'is_sorted'.
3639 * mdebugread.c: Include dictionary.h.
3640 (struct parse_stack): Delete 'maxsyms' member.
3641 (parse_symbol): Update calls to new_block. Delete calls to
3642 shrink_block. Use dictionary methods.
3643 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3644 Update calls to new_symtab. Don't maintain maxsyms data.
3645 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3646 (add_symbol): Just call dict_add_symbol.
3647 (new_symtab): Delete 'maxsyms' argument.
3648 (new_symtab): Update calls to new_block.
3649 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3650 (shrink_block): Delete function.
3651 (fixup_sigtramp): Update call to new_block. Add symbol via
3652 dict_add_symbol.
3653 * jv-lang.c: Include dictionary.h.
3654 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3655 appropriately. Set class_symtab->free_func. Make sure the
3656 blockvector is big enough to hold two blocks.
3657 (add_class_symtab_symbol): Use dictionary methods.
3658 (free_class_block): New function.
3659 (type_from_class): Replace explicit iteration by
3660 ALL_BLOCK_SYMBOLS.
3661 * symtab.h (struct symtab): Replace 'free_ptr' method by
3662 'free_func'.
3663 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3664 sort_symtab_syms.
3665 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3666 sort_symtab_syms.
3667 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3668 Include dictionary.h.
3669 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3670 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3671 sort_symtab_syms.
3672 * objfiles.c: Include dictionary.h.
3673 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3674 * buildsym.c: Include dictionary.h.
3675 (finish_block): Use dictionary methods.
3676 (end_symtab): Set free_func to NULL, not free_ptr.
3677 * tracepoint.c: Include dictionary.h.
3678 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3679 (scope_info): Ditto.
3680 * stack.c: Include dictionary.h.
3681 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3682 (print_block_frame_labels, print_frame_arg_vars)
3683 (print_frame_args): Ditto.
3684 * symmisc.c (free_symtab_block): Use dictionary methods.
3685 (dump_symtab): Ditto.
3686 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3687 Include dictionary.h.
3688 * symfile.h: Delete declarations of sort_block_syms,
3689 sort_symtab_syms.
3690 * symfile.c (sort_block_syms): Delete.
3691 (sort_symtab_syms): Delete.
3692 * symtab.c: Include dictionary.h.
3693 (lookup_block_symbol): Use dictionary iterators.
3694 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3695 (search_symbols, make_symbol_completion_list): Ditto.
3696 (make_symbol_overload_list): Ditto.
3697 * valops.c (value_of_local): Use dict_empty.
3698 Include dictionary.h.
3699
3700 2003-06-11 J. Brobecker <brobecker@gnat.com>
3701
3702 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3703
3704 2003-06-11 David Carlton <carlton@bactrian.org>
3705
3706 * block.h (BLOCK_SHOULD_SORT): Delete.
3707 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3708 blocks.
3709 * ada-lang.c (ada_add_block_symbols): Ditto.
3710 * symfile.c (sort_block_syms): Delete.
3711 (sort_symtab_syms): Ditto.
3712 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3713 declarations.
3714 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3715 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3716 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3717 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3718 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3719 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3720 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3721
3722 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3723
3724 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3725 bits to 128.
3726
3727 2003-06-11 Andrew Cagney <cagney@redhat.com>
3728
3729 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3730 REGISTER_CONVERTIBLE.
3731 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3732 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3733 * gdbarch.h, gdbarch.c: Re-generate.
3734 * arch-utils.h (deprecated_register_convertible_not): Rename
3735 generic_register_convertible_not.
3736 * arch-utils.c (deprecated_register_convertible_not): Rename
3737 generic_register_convertible.
3738 (legacy_convert_register_p, legacy_register_to_value): Update.
3739 * sh-tdep.c (sh64_push_arguments): Update.
3740 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3741 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3742 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3743 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3744 * arch-utils.c (legacy_value_to_register): Update.
3745 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3746 (rs6000_register_convert_to_raw): Make parameter "from" const.
3747 * mips-tdep.c (mips_gdbarch_init): Update.
3748 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3749 * infcmd.c (default_print_registers_info): Update.
3750 * ia64-tdep.c (ia64_gdbarch_init): Update.
3751 (ia64_register_convert_to_raw): Make parameter "from" const.
3752 * i386-tdep.c (i386_gdbarch_init): Update.
3753 (i386_register_convert_to_raw): Update.
3754
3755 2003-06-11 Andrew Cagney <cagney@redhat.com>
3756
3757 * remote-fileio.c: Include "remote-fileio.h".
3758 * Makefile.in (remote-fileio.o): Update dependencies.
3759 (remote_fileio_h): Fix typo.
3760
3761 2003-06-11 Andrew Cagney <cagney@redhat.com>
3762
3763 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3764 (xstormy16_save_dummy_frame_tos): Make static.
3765 (_initialize_xstormy16_tdep): Add declaration.
3766 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3767 * v850-tdep.c: Make local functions static.
3768 (_initialize_v850_tdep): Add declaration.
3769 * sparc-tdep.c: Make local functions static.
3770 (_initialize_sparc_tdep): Add declaration.
3771 * sh-tdep.c: Make local functions static.
3772 (_initialize_sh_tdep): Add declaration.
3773 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3774 * s390-tdep.c: Make local functions static.
3775 (_initialize_s390_tdep): Add declaration.
3776 * dbxread.c (find_stab_function_addr): Make static.
3777 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3778 * ocd.c (_initialize_remote_ocd): Add declaration.
3779 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3780 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3781 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3782 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3783 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3784 * remote-array.c (_initialize_array): Add declaration.
3785 (_initialize_remote_monitors): Add declaration.
3786 * remote-mips.c: Make local functions static.
3787 (_initialize_remote_mips): Add declaration.
3788 * mcore-tdep.c: Make all local functions static.
3789 (_initialize_mcore_tdep): Add declaration.
3790 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3791 * abug-rom.c (_initialize_abug_rom): Add declaration.
3792 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3793 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3794 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3795 * remote-est.c (_initialize_est): Add declaration.
3796 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3797 (m68hc11_call_dummy_address): Make static.
3798 * ia64-tdep.c: Make local functions static.
3799 (_initialize_ia64_tdep): Add declaration.
3800 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3801 * monitor.c (monitor_wait_filter): Make static.
3802 (_initialize_remote_monitors): Add declaration.
3803 * remote-hms.c (_initialize_remote_hms): Add declaration.
3804 * remote-e7000.c (fetch_regs_from_dump): Make static.
3805 (expect_n): Make static.
3806 (_initialize_remote_e7000): Add declaration.
3807 * ser-e7kpc.c: Always include "defs.h".
3808 (_initialize_ser_e7000pc): Add declaration.
3809 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3810 * cris-tdep.c: Make all but one function static.
3811 (_initialize_cris_tdep): Add declaration.
3812 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3813 * solib.c (update_solib_list): Make static.
3814 (_initialize_solib): Add declaration.
3815 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3816 (_initialize_avr_tdep): Add declaration.
3817 * remote-rdi.c (voiddummy): Make static.
3818 (_initialize_remote_rdi): Add declaration.
3819 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3820 * remote-rdp.c (send_rdp): Make static.
3821 (_initialize_remote_rdp): Add declaration.
3822 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3823
3824 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3825
3826 * remote-fileio.c: Make ari happy.
3827
3828 2003-06-10 J. Brobecker <brobecker@gnat.com>
3829
3830 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3831 fetching the trailing bytes of the buffer we are about to write.
3832
3833 2003-06-10 Andrew Cagney <cagney@redhat.com>
3834
3835 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3836 * Makefile.in (remote-fileio.o): Update dependencies.
3837 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3838 include <setjmp.h>, or <sys/types.h> conditional on USG.
3839 (remote_fio_jmp_buf): Delete global variable.
3840
3841 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3842 Martin M. Hunt <hunt@redhat.com>
3843
3844 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3845 (SFILES): Add remote-fileio.c.
3846 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3847 dependencies for building remote.o.
3848 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3849 * remote-fileio.h: New header file defining remote File-I/O interface.
3850 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3851 static storage class.
3852 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3853 'F' packet.
3854 (_initialize_remote): Call initialize_remote_fileio().
3855 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3856 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3857 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3858 (captured_main): Initialize new ui_files.
3859 * ui-file.c: Add read and fgets input functions.
3860 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3861 (null_file_read): New function.
3862 (ui_file_read): New function.
3863 (set_ui_file_read): New function.
3864 (stdio_file_read): New function.
3865 * ui-file.h: New type ui_file_read_ftype.
3866 (set_ui_file_read): Declare.
3867 (ui_file_read): Declare.
3868
3869 2003-06-09 Andrew Cagney <cagney@redhat.com>
3870
3871 * frame.h (deprecated_unwind_get_saved_register): Rename
3872 generic_unwind_get_saved_register, update comments.
3873 * mips-tdep.c (mips_get_saved_register): Update.
3874 * frame.c (deprecated_unwind_get_saved_register): Update.
3875
3876 2003-06-09 Andrew Cagney <cagney@redhat.com>
3877
3878 * vax-tdep.c (vax_frame_locals_address): Delete function.
3879 (vax_gdbarch_init): Do not set frame_locals_address.
3880 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3881 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3882 * s390-tdep.c (s390_frame_args_address): Delete function.
3883 (s390_gdbarch_init): Do not set frame_args_address or
3884 frame_locals_address.
3885 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3886 (ns32k_gdbarch_init): Do not set frame_locals_address.
3887 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3888 (hppa_frame_locals_address): Delete function.
3889 (hppa_gdbarch_init): Do not set frame_args_address, or
3890 frame_locals_address.
3891 * arm-tdep.c (arm_frame_args_address): Delete.
3892 (arm_frame_locals_address): Delete.
3893 (arm_gdbarch_init): Do not set frame_args_address, or
3894 frame_locals_address.
3895
3896 2003-06-09 Andrew Cagney <cagney@redhat.com>
3897
3898 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3899 * gdbarch.h, gdbarch.c: Re-generate.
3900 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3901 * arch-utils.c (frame_num_args_unknown): Delete function.
3902 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3903 (frame_info): Use FRAME_NUM_ARGS_P.
3904 * arm-tdep.c (arm_frame_num_args): Delete function.
3905 (arm_gdbarch_init): Do not set frame_num_args.
3906 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3907 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3908 (hppa_gdbarch_init): Do not set frame_num_args.
3909 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3911 frame_num_args to default frame_num_args_unknown.
3912 * v850-tdep.c (v850_gdbarch_init): Ditto.
3913 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3914 * sh-tdep.c (sh_gdbarch_init): Ditto.
3915 * s390-tdep.c (s390_gdbarch_init): Ditto.
3916 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3917 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3918 * mips-tdep.c (mips_gdbarch_init): Ditto.
3919 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3920 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3922 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3923 * i386-tdep.c (i386_gdbarch_init): Ditto.
3924 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3925 * frv-tdep.c (frv_gdbarch_init): Ditto.
3926 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3927 * cris-tdep.c (cris_gdbarch_init): Ditto.
3928 * avr-tdep.c (avr_gdbarch_init): Ditto.
3929 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3930
3931 2003-06-09 Andrew Cagney <cagney@redhat.com>
3932
3933 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3934 (print_frame_args): Moved to "stack.c".
3935 * stack.c: Include "gdb_assert.h".
3936 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3937 (print_frame_args): Moved from "printcmd.c".
3938 * frame.h (print_frame_args): Delete declaration.
3939 * Makefile.in (stack.o): Update dependencies.
3940
3941 2003-06-08 Andrew Cagney <cagney@redhat.com>
3942
3943 * frame.c (get_prev_frame): Remove reference to
3944 frame_args_address_correct in comments.
3945 * frame-base.c (default_frame_args_address): Delete code
3946 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3947 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3948 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3949 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3950 (vax_frame_args_address_correct): Delete declaration.
3951
3952 2003-06-08 Andrew Cagney <cagney@redhat.com>
3953
3954 * gdbarch.sh (UNWIND_SP): Add.
3955 * gdbarch.h, gdbarch.c: Re-generate.
3956 * frame.c (frame_sp_unwind): New function.
3957 (get_frame_sp): New function.
3958 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3959 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3960 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3961 value.
3962 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3963 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3964
3965 2003-06-08 Andrew Cagney <cagney@redhat.com>
3966
3967 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3968 REMOTE_BREAKPOINT.
3969 * remote.c: Update.
3970 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3971 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3972 * config/m68k/tm-sun3.h: Update.
3973 * config/m68k/tm-m68klynx.h: Update.
3974 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3975
3976 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3977 trad_frame". Update comments.
3978 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3979 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3980 (trad_frame_register_value, trad_frame_prev_register): Update.
3981
3982 2003-06-08 Andrew Cagney <cagney@redhat.com>
3983
3984 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3985 from GCC's acinclude.m4.
3986 * configure.in: Check for getopt's delcaration.
3987 * aclocal.m4, config.in, configure: Re-generate.
3988 * main.c (error_init): Delete declaration.
3989 * defs.h (error_init): Declare.
3990 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3991 (rs6000_convert_from_func_ptr_addr): Make static.
3992 (_initialize_rs6000_tdep): Add declaration.
3993 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3994 (show_commands, set_verbose, show_history): Delete declaration.
3995 * top.h (set_verbose): Add declaration.
3996 (show_history, set_history, show_commands): Add declaration.
3997 (do_restore_instream_cleanup): Add declaration.
3998 * objc-lang.c (specialcmp): Make static.
3999 (print_object_command): Make static.
4000 (find_objc_msgsend): Make static.
4001 (find_objc_msgcall_submethod_helper): Make static.
4002 (find_objc_msgcall_submethod): Make static.
4003 (_initialize_objc_language): Add declaration.
4004 (find_implementation_from_class): Make static.
4005 (find_implementation): Make static.
4006 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4007 * objc-lang.h (lookup_struct_typedef): Add declaration.
4008 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4009 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4010 (do_restore_user_call_depth): Make static.
4011 (do_restore_instream_cleanup): Delete declaration.
4012 (dont_repeat): Delete declaration.
4013 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4014 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4015 * reggroups.c (_initialize_reggroup): Add declaration.
4016 * cp-support.c (_initialize_cp_support): Add declaration.
4017 * cp-abi.c (_initialize_cp_abi): Add declaration.
4018 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4019 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4020 (_initialize_gnu_v3_abi): Add declaration.
4021 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4022 (_initialize_gnu_v2_abi): Add declaration.
4023 * frame-base.c (_initialize_frame_base): Add declaration.
4024 * doublest.c (floatformat_from_length): Make static.
4025 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4026 * frame.c (create_sentinel_frame): Make static.
4027 (_initialize_frame): Add declaration.
4028 * top.c (do_catch_errors): Make static.
4029 (gdb_rl_operate_and_get_next_completion): Make static.
4030 * typeprint.c: Include "typeprint.h".
4031 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4032 (sentinel_frame_this_id): Make static.
4033 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4034 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4035 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4036 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4037 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4038 * maint.c (maintenance_print_architecture): Make static.
4039 * signals/signals.c (_initialize_signals): Add declaration.
4040 * std-regs.c (_initialize_frame_reg): Add declaration.
4041 * jv-exp.y (push_variable): ISO C definition.
4042 (push_qualified_expression_name): Ditto.
4043 * memattr.c (_initialize_mem): Add declaration.
4044 * remote.c (remote_check_watch_resources): Make static.
4045 (remote_stopped_by_watchpoint): Make static.
4046 (remote_stopped_data_address): Make static.
4047 * d10v-tdep.c (nr_dmap_regs): Make static.
4048 (a0_regnum): Make static.
4049 (d10v_frame_unwind_cache): Make static.
4050 (d10v_frame_p): Make static.
4051 * osabi.c (show_osabi): Make static.
4052 (_initialize_gdb_osabi): Add extern declaration.
4053 * gdbtypes.c (make_qualified_type): Make static.
4054 (safe_parse_type): Make static.
4055 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4056 * macrotab.c (macro_bcache_free): Make static.
4057 * interps.c (interp_set_quiet): Make static.
4058 (interpreter_exec_cmd): Make static.
4059 * stack.h (select_frame_command): New file.
4060 * stack.c: Include "stack.h".
4061 (select_frame_command_wrapper): Delete function.
4062 (select_frame_command): Make global.
4063 * infcall.c: Include "infcall.h".
4064 * linespec.c: Include "linespec.h".
4065 * symfile.c (sections_overlap): Make static.
4066 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4067 * charset.c (_initialize_charset): Add missing prototype.
4068 * regcache.c (init_legacy_regcache_descr): Make static.
4069 (do_regcache_xfree): Make static.
4070 (regcache_xfer_part): Make static.
4071 (_initialize_regcache): Add missing prototype.
4072 * breakpoint.c (parse_breakpoint_sals): Make static.
4073 (breakpoint_sals_to_pc): Make static.
4074 * interps.h (clear_interpreter_hooks): ISO C declaration.
4075 * Makefile.in (stack_h): Define.
4076 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4077 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4078
4079 2003-06-08 Andrew Cagney <cagney@redhat.com>
4080
4081 * Makefile.in (d10v-tdep.o): Update dependencies.
4082 (SFILES): Add trad-frame.c.
4083 (trad_frame_h): Define.
4084 (COMMON_OBS): Add trad-frame.o.
4085 (trad-frame.o): Specify dependencies.
4086 * d10v-tdep.c: Include "trad-frame.h".
4087 (saved_regs_unwinder): Delete function.
4088 (d10v_frame_prev_register): Use trad_frame_prev_register.
4089 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4090 trad_frame", delete "regs" and "prev_sp".
4091 (prologue_find_regs): Use trad-frame.
4092 * trad-frame.h, trad-frame.c: New files.
4093
4094 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4095
4096 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4097
4098 2003-06-07 Adam Fedor <fedor@gnu.org>
4099
4100 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4101 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4102 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4103 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4104 resolve_msgsend_super, resolve_msgsend_super_stret):
4105 Use it.
4106
4107 2003-06-07 Andrew Cagney <cagney@redhat.com>
4108
4109 * symfile.h: Re-indent, clean up comments.
4110
4111 2003-06-07 Andrew Cagney <cagney@redhat.com>
4112
4113 * inferior.h (deprecated_write_sp): Replace
4114 generic_target_write_sp.
4115 * regcache.c (deprecated_write_sp): Replace
4116 generic_target_write_sp.
4117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4118 * vax-tdep.c (vax_gdbarch_init): Update.
4119 * v850-tdep.c (v850_gdbarch_init): Update.
4120 * sparc-tdep.c (sparc_gdbarch_init): Update.
4121 * sh-tdep.c (sh_gdbarch_init): Update.
4122 * s390-tdep.c (s390_gdbarch_init): Update.
4123 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4124 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4125 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4126 * mcore-tdep.c (mcore_gdbarch_init): Update.
4127 * m68k-tdep.c (m68k_gdbarch_init): Update.
4128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4129 * ia64-tdep.c (ia64_gdbarch_init): Update.
4130 * h8300-tdep.c (h8300_gdbarch_init): Update.
4131 * frv-tdep.c (frv_gdbarch_init): Update.
4132 * cris-tdep.c (cris_gdbarch_init): Update.
4133 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4134
4135 2003-06-07 Andrew Cagney <cagney@redhat.com>
4136
4137 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4138 Assert that PC_REGNUM is valid.
4139 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4140
4141 2003-06-07 Andrew Cagney <cagney@redhat.com>
4142
4143 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4144 * gdbarch.h, gdbarch.c: Regenerate.
4145 * mn10300-tdep.c: Include "gdb_assert.h".
4146 (mn10300_read_fp): New function.
4147 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4148 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4149 * ia64-tdep.c: Include "gdb_assert.h".
4150 (ia64_read_fp): New function.
4151 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4152 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4153 * regcache.c (generic_target_read_sp): Delete function.
4154 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4155 * inferior.h (generic_target_read_sp): Delete declaration.
4156 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4157 generic_target_read_sp.
4158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4159 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4160 * sh-tdep.c (sh_gdbarch_init): Ditto.
4161 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4162 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4163
4164 2003-06-07 Andrew Cagney <cagney@redhat.com>
4165
4166 * gdbarch.sh: Comment each field of startup_gdbarch.
4167 * gdbarch.h, gdbarch.c: Re-generate.
4168
4169 2003-06-07 Andrew Cagney <cagney@redhat.com>
4170
4171 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4172 * gdbarch.h, gdbarch.c: Re-generate.
4173 * regcache.c: Update comments on read_pc et.al.
4174 (generic_target_read_pc): Delete function.
4175 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4176 * inferior.h (generic_target_read_pc): Delete declaration.
4177 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4178 generic_target_read_pc.
4179 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4180 * sh-tdep.c (sh_gdbarch_init): Ditto.
4181 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4183
4184 2003-06-07 Andrew Cagney <cagney@redhat.com>
4185
4186 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4187 "index" with "special_local_sect". Use strcmp instead of STREQ.
4188 Append period to coments.
4189
4190 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4191
4192 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4193 (elfstab_offset_sections): Likewise.
4194 * gdb-stabs.h (stab_section_info): Likewise.
4195 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4196 * objfiles.c (objfile_relocate): Likewise.
4197 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4198 * remote.c (get_offsets): Likewise.
4199 (remote_cisco_objfile_relocate): Likewise.
4200 * somread.c (som_symfile_offsets): Likewise.
4201 * symfile.c (alloc_section_addr_info): New function.
4202 (build_section_addr_info_from_section_tab): Use it.
4203 (free_section_addr_info): Adjust.
4204 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4205 (syms_from_objfile): Allocate local_addr dynamically.
4206 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4207 dynamically.
4208 (add_symbol_file_command): Allocate sect_opts dynamically.
4209 (reread_symbols): Avoid use of SECT_OFF_MAX.
4210 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4211 (alloc_section_addr_info): Declare it.
4212 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4213 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4214 dynamically.
4215 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4216
4217 2003-06-06 Andrew Cagney <cagney@redhat.com>
4218
4219 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4220 (d10v_frame_unwind_cache): Do not set "return_pc".
4221
4222 2003-06-06 Michael Snyder <msnyder@redhat.com>
4223
4224 * h8300-tdep.c: Make tidy (long lines).
4225
4226 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4227
4228 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4229 to regcache_collect().
4230
4231 2003-06-05 J. Brobecker <brobecker@gnat.com>
4232
4233 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4234 pc_in_sigtramp multiarch method.
4235 (hppa_hpux_som_init_abi): Use it.
4236 (hppa_hpux_elf_init_abi): Likewise.
4237 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4238 macro has been multiarched.
4239 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4240 macro here, as hppa64 isn't multiarched yet.
4241
4242 2003-06-05 Andrew Cagney <cagney@redhat.com>
4243
4244 * Makefile.in (value_h): Add $(frame_h).
4245 * value.h: Include "frame.h".
4246 (struct value): Replace "frame_addr" with "frame_id".
4247 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4248 * values.c (allocate_value): Use VALUE_FRAME_ID.
4249 (value_copy): Use VALUE_FRAME_ID.
4250 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4251 * valops.c (value_assign): Update. Use frame_find_by_id.
4252
4253 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4254
4255 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4256 in each pass.
4257
4258 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4259
4260 * thread-db.c (check_event): For create/death event breakpoints,
4261 loop through all messages to ensure that we read the message
4262 corresponding to the breakpoint we are at.
4263
4264 2003-06-04 Michael Snyder <msnyder@redhat.com>
4265
4266 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4267
4268 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4269
4270 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4271 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4272 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4273 when handling .eh_frame sections.
4274
4275 2003-06-04 J. Brobecker <brobecker@gnat.com>
4276
4277 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4278 prepare_to_proceed procedure instead of the hppa-specific one.
4279 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4280
4281 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4282
4283 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4284 * config.in: Regenerated.
4285 * configure.in: Add test for syscall function and check for
4286 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4287 * configure: Regenerated.
4288 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4289 <sys/syscall.h>.
4290 (kill_lwp): New function that uses tkill syscall or
4291 uses kill, depending on whether threading model is nptl or not.
4292 All callers of kill() changed to use kill_lwp().
4293 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4294 see if all threads have already exited in the nptl model.
4295 (stop_and_resume_callback): New callback function used by the
4296 lin_lwp_wait thread exit handling code.
4297 (stop_wait_callback): Check for threads already having exited and
4298 delete such threads fromt the lwp list when discovered.
4299 (stop_callback): Don't assert retcode of kill call.
4300
4301 Roland McGrath <roland@redhat.com>
4302 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4303 nptl libthread_db.
4304
4305 2003-06-03 Richard Henderson <rth@redhat.com>
4306
4307 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4308 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4309 (alpha_sigtramp_frame_prev_register): Likewise.
4310 (alpha_heuristic_frame_prev_register): Likewise.
4311 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4312
4313 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4314 alpha-specific register id names.
4315 (alpha_mdebug_frame_unwind_cache): Likewise.
4316 (alpha_mdebug_frame_prev_register): Likewise.
4317
4318 2003-06-03 Richard Henderson <rth@redhat.com>
4319
4320 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4321 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4322 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4323 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4324 unwind routines.
4325 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4326 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4327 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4328
4329 * alpha-linux-tdep.c: Remove unnecessary includes.
4330 * Makefile.in (alpha-linux-tdep.o): Update.
4331
4332 2003-06-03 Richard Henderson <rth@redhat.com>
4333
4334 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4335 (alphabsd_fill_fpreg): Likewise.
4336
4337 2003-06-03 J. Brobecker <brobecker@gnat.com>
4338
4339 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4340 references to struct frame_info fields by calls to the equivalent
4341 accessors. Necessary now that frame_info is opaque.
4342
4343 2003-06-03 J. Brobecker <brobecker@gnat.com>
4344
4345 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4346 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4347 structure, field no longer exists.
4348
4349 2003-06-03 J. Brobecker <brobecker@gnat.com>
4350
4351 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4352 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4353
4354 2003-06-03 J. Brobecker <brobecker@gnat.com>
4355
4356 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4357 references to struct frame_info fields by calls to the equivalent
4358 accessors. Necessary now that frame_info is opaque.
4359
4360 2003-06-03 J. Brobecker <brobecker@gnat.com>
4361
4362 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4363 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4364 structure, field no longer exists.
4365
4366 2003-06-03 Theodore A. Roth <troth@openavr.org>
4367
4368 * remote.c (init_remote_state): Compute sizeof_g_packet by
4369 accumulation of the size of all registers instead of blindly using
4370 DEPRECATED_REGISTER_BYTES.
4371
4372 2003-06-03 Michael Snyder <msnyder@redhat.com>
4373
4374 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4375 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4376 for h8300sx.
4377
4378 2003-06-03 J. Brobecker <brobecker@gnat.com>
4379
4380 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4381 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4382
4383 2003-06-03 Andrew Cagney <cagney@redhat.com>
4384
4385 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4386 (sparc_convert_to_raw): Delete function.
4387 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4388 register_convert_to_virtual.
4389
4390 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4391
4392 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4393 layer if not dealing with a statically-linked threaded program.
4394
4395 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4396
4397 * solib.c (solib_open): Update comment to reflect actual search order.
4398
4399 2003-06-03 Andrew Cagney <cagney@redhat.com>
4400
4401 * frame.c (get_frame_memory_signed): New function.
4402 (get_frame_memory, get_frame_memory_unsigned): New function.
4403 (get_frame_arch): New function.
4404 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4405 (get_frame_memory, get_frame_unsigned_memory): Declare.
4406 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4407 get_frame_memory_unsigned and get_frame_arch.
4408 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4409
4410 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4411
4412 * MAINTAINERS (write after approval): Add myself.
4413
4414 2003-06-03 Jim Blandy <jimb@redhat.com>
4415
4416 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4417 elements of gregset_t are 64 bits each, but access registers
4418 are still 32 bits, so they're packed two per gregset_t
4419 element. Unpack/pack them properly.
4420
4421 2003-06-02 David Carlton <carlton@bactrian.org>
4422
4423 * linespec.c (find_methods): Break out code into
4424 add_matching_methods and add_constructors.
4425 (add_matching_methods): New.
4426 (add_constructors): Ditto.
4427
4428 2003-06-02 Andrew Cagney <cagney@redhat.com>
4429
4430 * sparc-tdep.c (sparc_print_registers): Delete call to
4431 REGISTER_CONVERTIBLE.
4432 (sparc_gdbarch_init): Do not set register_convertible.
4433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4434 * frv-tdep.c (frv_gdbarch_init): Ditto.
4435 * cris-tdep.c (cris_gdbarch_init): Ditto.
4436
4437 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4438
4439 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4440 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4441 (syms_from_objfile): Ditto.
4442
4443 2003-06-03 Andreas Schwab <schwab@suse.de>
4444
4445 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4446 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4447
4448 2003-06-02 Richard Henderson <rth@redhat.com>
4449
4450 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4451 a member of all_reggroup.
4452
4453 2003-06-02 Richard Henderson <rth@redhat.com>
4454
4455 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4456 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4457 (alpha_lds, alpha_sts): New.
4458 (alpha_convert_register_p): Change from _register_convertible.
4459 (alpha_register_to_value): Change from _convert_to_virtual;
4460 restructure and fail for type sizes other than 4 or 8.
4461 (alpha_value_to_register): Similarly.
4462 (alpha_extract_return_value): Use alpha_sts.
4463 (alpha_store_return_value): Use alpha_lds.
4464 (alpha_gdbarch_init): Update hooks.
4465
4466 2003-06-02 Richard Henderson <rth@redhat.com>
4467
4468 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4469 regnum identifiers.
4470 (alpha_sigtramp_register_address): Likewise.
4471
4472 2003-06-02 Richard Henderson <rth@redhat.com>
4473
4474 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4475 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4476 * alpha-tdep.h: Declare them.
4477
4478 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4479 Remove zerobuf. Don't error on UNIQUE.
4480 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4481 (ALPHA_REGSET_UNIQUE): Provide default.
4482 (supply_gregset): Use alpha_supply_int_regs.
4483 (fill_gregset): Use alpha_fill_int_regs.
4484 (supply_fpregset): Use alpha_supply_fp_regs.
4485 (fill_fpregset): Use alpha_fill_fp_regs.
4486 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4487 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4488 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4489 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4490 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4491 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4492
4493 2003-06-02 Richard Henderson <rth@redhat.com>
4494
4495 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4496
4497 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4498 (alpha_store_return_value): Likewise.
4499
4500 2003-06-02 David Carlton <carlton@math.stanford.edu>
4501
4502 * block.c (contained_in): Add 'const' to arguments.
4503 (block_function): Ditto.
4504 * block.h: Update declarations for block_function and
4505 contained_in.
4506
4507 2003-06-02 David Carlton <carlton@math.stanford.edu>
4508
4509 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4510 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4511 * p-valprint.c (pascal_val_print): Ditto.
4512 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4513
4514 2003-06-02 Richard Henderson <rth@redhat.com>
4515
4516 * alpha-tdep.c (alpha_push_dummy_call): Use
4517 builtin_type_ieee_double_little instead of builtin_type_double.
4518
4519 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4520 sign-extension of 32-bit values.
4521 (alpha_store_return_value): Similarly.
4522
4523 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4524 (alpha_extract_return_value): Likewise.
4525 (alpha_store_return_value): Likewise.
4526
4527 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4528 (alpha_store_return_value): Error on IEEE Quad floats.
4529
4530 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4531 (alpha_extract_struct_value_address): Likewise.
4532 (alpha_store_return_value): Likewise.
4533 (alpha_store_struct_return): Remove.
4534 (alpha_gdbarch_init): Update hook registration to match.
4535
4536 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4537 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4538 macros where appropriate.
4539 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4540 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4541
4542 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4543 for SP, GP; void_func_ptr for PC; non-language-specific types
4544 for all others.
4545 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4546
4547 2003-06-02 Richard Henderson <rth@redhat.com>
4548
4549 * top.h (lim_at_start): Declare.
4550 * main.c (captured_main): Set it.
4551 * top.c (lim_at_start): Define.
4552 (command_loop): Use it instead of &environ.
4553 * event-top.c (command_handler): Likewise.
4554
4555 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4556
4557 * mipsnbsd-tdep.c: Update copyright years.
4558 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4559
4560 2003-06-01 Richard Henderson <rth@redhat.com>
4561
4562 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4563 (alpha-linux-tdep.o): Update dependencies.
4564 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4565 * alpha-mdebug-tdep.c: Remove unneeded includes.
4566
4567 2003-06-01 Richard Henderson <rth@redhat.com>
4568
4569 * alpha-tdep.c (alpha_register_reggroup_p): New.
4570 (alpha_gdbarch_init): Register it.
4571
4572 2003-06-02 Andrew Cagney <cagney@redhat.com>
4573
4574 * dwarfread.c: Eliminate "register"
4575 (decode_die_type): Eliminate assignment within "if".
4576 (struct_type, decode_array_element_type): Ditto.
4577 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4578 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4579 (decode_modified_type, completedieinfo): Ditto.
4580 * block.c: Eliminate "register".
4581 (blockvector_for_pc_sect): Eliminate assignment within "if".
4582 * cp-support.h (struct symbol): Opaque declaration.
4583 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4584
4585 2003-06-01 Richard Henderson <rth@redhat.com>
4586
4587 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4588 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4589
4590 2003-06-01 Adam Fedor <fedor@gnu.org>
4591
4592 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4593 * gdbarch.[ch]: Regenerate.
4594 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4595 (hppa_gdbarch_init): Set it in the gdbarch vector.
4596 * i386-tdep.c (i386_fetch_pointer_argument): New
4597 (i386_gdbarch_init): Set it into gdbarch.
4598 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4599 (rs6000_gdbarch_init): Set it in gdbarch.
4600 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4601 (sparc_gdbarch_init): Set it in gdbarch.
4602
4603 2003-06-01 Andrew Cagney <cagney@redhat.com>
4604
4605 * defs.h (extract_address): Delete declaration.
4606 * findvar.c (extract_address): Delete function.
4607 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4608 extract_address with the inline equivalent,
4609 extract_unsigned_integer.
4610 (xstormy16_extract_struct_value_address): Ditto.
4611 (xstormy16_pointer_to_address): Ditto.
4612 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4613 * v850-tdep.c (v850_push_arguments): Ditto.
4614 (v850_extract_return_value): Ditto.
4615 (v850_extract_struct_value_address): Ditto.
4616 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4617 (sparcnbsd_get_longjmp_target_64): Ditto.
4618 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4619 (get_longjmp_target): Ditto.
4620 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4621 (sh64_extract_struct_value_address): Ditto.
4622 (sh_push_arguments): Ditto.
4623 (sh64_push_arguments): Ditto.
4624 * remote-vxsparc.c (vx_read_register): Ditto.
4625 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4626 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4627 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4628 * mipsv4-nat.c (get_longjmp_target): Ditto.
4629 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4630 * mips-nat.c (get_longjmp_target): Ditto.
4631 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4632 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4633 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4634 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4635 * irix5-nat.c (get_longjmp_target): Ditto.
4636 * irix4-nat.c (get_longjmp_target): Ditto.
4637 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4638 (ia64_push_arguments): Ditto.
4639 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4640 * h8300-tdep.c (h8300_push_arguments): Ditto.
4641 (h8300_store_return_value): Ditto.
4642 (h8300_extract_struct_value_address): Ditto.
4643 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4644 (frv_push_arguments): Ditto.
4645 * avr-tdep.c (avr_pointer_to_address): Ditto.
4646 (avr_push_arguments): Ditto.
4647 * arm-tdep.c (arm_push_dummy_call): Ditto.
4648 (arm_get_longjmp_target): Ditto.
4649 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4650 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4651 (alpha_get_longjmp_target): Ditto.
4652
4653 * solib-irix.c (extract_mips_address): Inline extract_address,
4654 replacing it with extract_signed_integer.
4655 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4656 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4657 (first_link_map_member, open_symbol_file_object): Ditto.
4658 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4659 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4660 (LM_NEXT, LM_NAME): Ditto.
4661
4662 2003-06-01 Richard Henderson <rth@redhat.com>
4663
4664 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4665 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4666 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4667 (alpha_cannot_store_register): Likewise.
4668 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4669 * alpha-nat.c (supply_gregset): Likewise.
4670 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4671
4672 2003-06-01 Andrew Cagney <cagney@redhat.com>
4673
4674 * infcall.c (call_function_by_hand): Update comment on
4675 DEPRECATED_DUMMY_WRITE_SP.
4676
4677 * mips-tdep.c (mips_gdbarch_init): Do not set
4678 deprecated_dummy_write_sp.
4679 (mips_eabi_push_dummy_call): Set the SP register.
4680 (mips_o64_push_dummy_call): Set the SP register.
4681 (mips_o32_push_dummy_call): Set the SP register.
4682 (mips_n32n64_push_dummy_call): Set the SP register.
4683
4684 2003-06-01 Richard Henderson <rth@redhat.com>
4685
4686 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4687 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4688 (supply_gregset): Likewise.
4689 * alpha-tdep.c (alpha_store_return_value): Likewise.
4690 (alpha_get_longjmp_target): Likewise.
4691 (alpha_register_name): Constify array.
4692 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4693 deprecated_register_size, deprecated_register_bytes,
4694 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4695 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4696 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4697
4698 2003-06-01 Richard Henderson <rth@redhat.com>
4699
4700 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4701 from arg_reg_buffer to regcache to avoid double conversion.
4702
4703 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4704
4705 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4706 SP_REGNUM.
4707 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4708 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4709
4710 2003-06-01 Richard Henderson <rth@redhat.com>
4711
4712 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4713 (decode_frame_entry): Set it. Skip FDE augmentation.
4714
4715 2003-06-01 Richard Henderson <rth@redhat.com>
4716
4717 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4718 not overlapping PC_REGNUM.
4719
4720 2003-06-01 Richard Henderson <rth@redhat.com>
4721
4722 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4723 alpha_push_arguments. Don't dump argument register data to
4724 the target stack. Fix float and 128-bit long double semantics.
4725 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4726 (alpha_fix_call_dummy): Remove.
4727 (alpha_call_dummy_words): Remove.
4728 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4729
4730 2003-06-01 Richard Henderson <rth@redhat.com>
4731
4732 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4733
4734 2003-06-01 Andrew Cagney <cagney@redhat.com>
4735
4736 * mips-tdep.c (is_mips16_addr): New function.
4737 (make_mips16_addr, unmake_mips16_addr): New functions.
4738 (pc_is_mips16, mips_fetch_instruction): Use.
4739 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4740 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4741 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4742 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4743 TARGET_MIPS.
4744 * config/mips/tm-mips.h: Update copyright.
4745 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4746 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4747 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4748 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4749 (TM_PRINT_INSN_MACH): Delete.
4750 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4751
4752 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4753 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4754 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4755 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4756 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4757 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4758 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4759 mips*-*-riscos* and mips*-*-sysv* onto mips.
4760 * config/mips/mips64.mt: New file.
4761 * config/mips/mips.mt: New file.
4762 * config/mips/littlemips.mt: Delete file.
4763 * config/mips/decstation.mt: Delete file.
4764 * config/mips/vr4300el.mt: Delete file.
4765 * config/mips/vr5000el.mt: Delete file.
4766 * config/mips/vr5000.mt: Delete file.
4767 * config/mips/vr4100.mt: Delete file.
4768 * config/mips/vr4xxxel.mt: Delete file.
4769 * config/mips/vr4300.mt: Delete file.
4770 * config/mips/vr4xxx.mt: Delete file.
4771 * config/mips/bigmips.mt: Delete file.
4772 * config/mips/bigmips64.mt: Delete file.
4773 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4774 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4775 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4776 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4777 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4778 "tm-bigmips.h".
4779 * config/mips/tm-irix3.h: Ditto.
4780 * config/mips/tm-mipsv4.h: Ditto.
4781 * config/mips/tm-embed.h: Ditto.
4782 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4783 "tm-bigmips64.h".
4784 * config/mips/tm-vr5000el.h: Delete file.
4785 * config/mips/tm-tx39l.h: Delete file.
4786 * config/mips/tm-vr4300el.h: Delete file.
4787 * config/mips/tm-vr4xxxel.h: Delete file.
4788 * config/mips/tm-vr4300.h: Delete file.
4789 * config/mips/tm-vr4100.h: Delete file.
4790 * config/mips/tm-vr4xxx.h: Delete file.
4791 * config/mips/tm-vr5000.h: Delete file.
4792 * config/mips/tm-embedl64.h: Delete file.
4793 * config/mips/tm-embedl.h: Delete file.
4794 * config/mips/tm-embed64.h: Delete file.
4795 * config/mips/tm-bigmips64.h: Delete file.
4796 * config/mips/tm-bigmips.h: Delete file.
4797
4798 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4799
4800 Fix gdb/1216.
4801 * shnbsd-nat.c: Include "sh-tdep.h".
4802
4803 From Richard Henderson <rth@redhat.com>:
4804 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4805
4806 2003-05-31 Andrew Cagney <cagney@redhat.com>
4807
4808 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4809 forward declaration.
4810 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4811 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4812 (mips_find_saved_regs): Use set_reg_offset.
4813 (mips_frame_init_saved_regs): Delete function.
4814 (mips_pop_frame): Call mips_find_saved_regs instead of
4815 DEPRECATED_FRAME_INIT_SAVED_REGS.
4816
4817 2003-05-31 Andrew Cagney <cagney@redhat.com>
4818
4819 * mips-tdep.c (mips_gdbarch_init): Do not set
4820 deprecated_max_register_raw_size, register_virtual_size, and
4821 deprecated_max_register_virtual_size.
4822
4823 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4824
4825 * i386-tdep.c: Include "dwarf2-frame.h".
4826 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4827 * Makefile.in (i386-tdep.o): Update dependencies.
4828
4829 * dwarf2-frame.c, dwarf2-frame.h: New files.
4830 * Makefile.in (SFILES): Add dwarf2-frame.c.
4831 (dwarf2_frame_h): Define.
4832 (COMMON_OBS): Add dwarf2-frame.o.
4833 (dwarf2-frame.o): Add dependencies.
4834
4835 2003-05-31 Andreas Jaeger <aj@suse.de>
4836
4837 * x86-64-linux-nat.c: Fix comment.
4838
4839 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4840
4841 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4842 function signature.
4843
4844 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4845 have a sigcontext_addr handler.
4846 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4847 sigcontext_addr handler.
4848
4849 2003-05-31 Andrew Cagney <cagney@redhat.com>
4850
4851 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4852 (print_fp_register_row): Replace do_fp_register_row.
4853 (mips_print_fp_register): Add "file" and "frame" parameters.
4854 (mips_print_register): Add "file" and "frame" parameters.
4855 (mips_print_registers_info): Replace mips_do_registers_info.
4856 (mips_gdbarch_init): Set print_registers_info instead of
4857 deprecated_do_registers_info.
4858 (mips_read_fp_register_single): Add "frame" parameter.
4859 (mips_read_fp_register_double): Add "frame" parameter.
4860
4861 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4862
4863 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4864 Fixes a bug where GDB would print the wrong register names for
4865 targets without SSE.
4866
4867 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4868 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4869 registers.
4870
4871 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4872 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4873 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4874 TDEP->sc_sp_offset.
4875
4876 From Michal Ludvig <mludvig@suse.cz>:
4877 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4878 and `sc_num_regs'.
4879 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4880 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4881 I386_ST0_REGNUM): Move here from...
4882 * i386-tdep.c: ... here.
4883 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4884 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4885 registers if possible.
4886 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4887 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4888 Remove variables.
4889 (i386bsd_sc_reg_offset): New variable.
4890 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4891 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4892 TDEP->sc_sp_offset.
4893 (i386fbsd_sc_reg_offset): New variable.
4894 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4895 TDEP->sc_num_regs.
4896 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4897 variables.
4898 (i386fbsd4_sc_reg_offset): New variable.
4899 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4900 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4901 TDEP->sc_sp_offset.
4902 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4903 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4904 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4905 Remove variables.
4906 (i386nbsd_sc_reg_offset): New variable.
4907 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4908 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4909 TDEP->sc_sp_offset.
4910 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4911 Remove variables.
4912 (i386obsd_sc_reg_offset): New variable.
4913 (i386obsd_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 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4917 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4918 for frame pointer offset in `struct sigcontext'.
4919
4920 2003-05-31 Andrew Cagney <cagney@redhat.com>
4921
4922 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4923 architecture methods call_dummy_words, sizeof_call_dummy_words,
4924 push_return_address, store_struct_return, and fix_call_dummy. Set
4925 push_dummy_call instead of deprecated_push_arguments.
4926 (mips_store_struct_return): Delete function.
4927 (mips_fix_call_dummy): Delete function.
4928 (mips_push_return_address): Delete function.
4929 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4930 RA_REGNUM and T9_REGNUM.
4931 (mips_n32n64_push_dummy_call): Ditto for
4932 mips_n32n64_push_arguments.
4933 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4934 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4935
4936 2003-05-31 Andrew Cagney <cagney@redhat.com>
4937
4938 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4939 "dummy_addr" to "bp_addr".
4940 * infcall.c (call_function_by_hand): Pass "funaddr" to
4941 gdbarch_push_dummy_call.
4942 * gdbarch.h, gdbarch.c: Re-generate.
4943 * i386-tdep.c (i386_push_dummy_call): Update.
4944 * arm-tdep.c (arm_push_dummy_call): Update.
4945 * d10v-tdep.c (d10v_push_dummy_call): Update.
4946
4947 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4948
4949 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4950 variable declarations.
4951 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4952 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4953 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4954 x86_64_init_frame_pc, x86_64_init_frame_pc,
4955 x86_64_function_has_prologue): Remove prototypes.
4956 (X86_64_NUM_GREGS): New define.
4957 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4958 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4959 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4960 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4961 XMM1_REGNUM): Remove defines.
4962 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4963 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4964 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4965 X86_64_XMM1_REGNUM): New defines.
4966 (struct x86_64_register_info): Renamed from `struct
4967 register_info'. Remove `size' member.
4968 (x86_64_register_info_table): Remove variable.
4969 (x86_64_register_info): New variable.
4970 (X86_64_NUM_REGS): New define.
4971 (X86_64_NUM_GREGS): Remove define.
4972 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4973 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4974 Remove variables.
4975 (x86_54_dwarf2_reg_to_regnum): Remove function.
4976 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4977 (x86_64_dwarf_reg_to_regnum): New function.
4978 (x86_64_register_name): Rewrite.
4979 (x86_64_register_raw_size): Remove function.
4980 (x86_64_register_byte_table): Remove variable.
4981 (x86_64_register_byte): Remove function.
4982 (x86_64_register_virtual_type): Remove function.
4983 (x86_64_register_type): New function.
4984 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4985 x86_64_register_convert_to_raw): Remove functions.
4986 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4987 (x86_64_use_struct_convention): Make static. Adjust for renamed
4988 defines.
4989 (x86_64_frame_init_saved_regs): Remove function.
4990 (x86_64_push_arguments): Make static. Change to accept a regcache
4991 as argument.
4992 (x86_64_store_return_value, x86_64_extract_return_value): Make
4993 static. Rewrite based on i386 counterparts.
4994 (x86_64_push_dummy_call): New function.
4995 (X86_64_NUM_SAVED_REGS): New define.
4996 (x86_64_register_number): Remove function.
4997 (x86_64_store_struct_return): Remove function.
4998 (x86_64_frameless_function_invocation,
4999 x86_64_function_has_prologue): Remove functions.
5000 (PROLOG_BUFSIZE): Remove define.
5001 (struct x86_64_frame_cache): New structure.
5002 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5003 x86_64_frame_cache, x86_64_frame_this_id,
5004 x86_64_frame_prev_register, x86_64_frame_p,
5005 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5006 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5007 functions.
5008 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5009 variables.
5010 (x86_64_skip_prologue): Rewrite in terms of
5011 x86_64_analyze_prologue.
5012 (x86_64_frame_base_address): New function.
5013 (x86_64_frame_base): New variable.
5014 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5015 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5016 set deprecated_fp_regnum, deprecated_register_size,
5017 deprecated_register_bytes, register_raw_size, register_byte,
5018 register_virtual_type, register_convertiable,
5019 register_convert_to_virtual, convert_to_raw,
5020 deprecated_get_saved_register, deprecated_target_read_fp,
5021 deprecated_push_arguments, deprecated_push_return_address,
5022 deprecated_pop_frame, deprecated_store_struct_return,
5023 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5024 frameless_function_invocation, deprecated_frame_saved_pc,
5025 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5026 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5027 deprecated_init_frame_pc and virtual_frame_pointer. Call
5028 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5029 and x86_64_frame_p. Call frame_base_set_default to register
5030 x86_64_frame_base.
5031 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5032 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5033 (_initialize_x86_64_tdep): Remove function.
5034 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5035 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5036 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5037 define.
5038 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5039 (x86_64_linux_sigcontext_addr): Rewrite.
5040 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5041 x86_64_linux_frame_saved_pc): Remove functions.
5042 (x86_64_linux_pc_in_sigtramp): Renamed from
5043 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5044 trampoline.
5045 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5046 Remove_functions.
5047 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5048 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5049 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5050 (x86_64_regmap): Rename to regmap.
5051 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5052 x86_64_num_gregs.
5053 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5054 x86_64_regmap.
5055 (x86_64_fxsave_offset): Remove function.
5056 (supply_fpregset): Simply call x86_64_supply_fxsave.
5057 (fill_fpregset): Simply call x86_64_fill_fxsave.
5058 (fetch_inferior_registers, store_inferior_registers): Avoid
5059 asignment in if-statement.
5060 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5061 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5062 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5063 (fetch_core_registers): Remove function.
5064 (linux_elf_core_fns): Remove.
5065 (offsetoff): Don't define.
5066 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5067 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5068 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5069 add core-regset.o.
5070 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5071 protection against multiple includes instead of NM_X86_64_h. Add
5072 various comments. Include "config/nm-linux.h". Don't include
5073 <signal.h>.
5074 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5075 GET_THREAD_SIGNALS): Remove defines.
5076 (x86_64_register_u_addr, kernel_u_size,
5077 lin_thread_get_thread_signals): Remove prototypes.
5078 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5079 [HAVE_LINK_H]: Don't include "solib.h".
5080 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5081 * config/i386/tm-x86-64linux.h: Fix comments.
5082 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5083 x86-64-tdep.o): Update dependencies.
5084
5085 2003-05-30 Andrew Cagney <cagney@redhat.com>
5086
5087 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5088 Change parameter type to a "struct regcache *".
5089
5090 * gdbarch.sh: Regardless of the multi-arch level, always define
5091 the macro when not already defined.
5092 * gdbarch.h, gdbarch.c: Re-generate.
5093
5094 2003-05-30 Richard Henderson <rth@redhat.com>
5095
5096 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5097 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5098 (alpha_mdebug_frame_this_id): Likewise.
5099 (alpha_mdebug_frame_prev_register): Likewise.
5100 (alpha_mdebug_frame_base_address): Likewise.
5101 (alpha_mdebug_frame_locals_address): Likewise.
5102 (alpha_mdebug_frame_args_address): Likewise.
5103 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5104 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5105 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5106 loop increment.
5107 (alpha_heuristic_frame_this_id): Make static.
5108 (alpha_heuristic_frame_prev_register): Likewise.
5109 (alpha_heuristic_frame_base_address): Likewise.
5110 * alpha-tdep.h: Update.
5111
5112 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5113
5114 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5115 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5116 defenitions.
5117 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5118 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5119 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5120 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5121 I386_ST0_REGNUM): New defines.
5122 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5123 codestream_get): Remove define.
5124 (codestream_next_addr, condestream_addr, condestream_buf,
5125 codestream_off, codestream_cnt): Remove variables.
5126 (codestream_fill, codestream_seek, codestream_read): Remove
5127 functions.
5128 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5129 functionality.
5130 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5131 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5132 i386_frame_saved_pc, i386_saved_pc_after_call,
5133 i386_frame_num_args, i386_frame_init_saved_regs,
5134 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5135 i386_push_arguments): Remove functions.
5136 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5137 functionality. Use i386_analyze_prologue instead of
5138 i386_get_frame_setup.
5139 (I386_NUM_SAVED_REGS): New define.
5140 (struct i386_frame_cache): New structure.
5141 (i386_alloc_frame_cache, i386_analyze_struct_return,
5142 i386_skip_probe, i386_analyze_frame_setup,
5143 i386_analyze_register_saves, i386_analyze_prologue,
5144 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5145 i386_frame_prev_register, i386_sigtramp_frame_cache,
5146 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5147 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5148 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5149 New functions.
5150 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5151 New variables.
5152 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5153 I386_EAX_REGNUM and I386_EDX_REGNUM.
5154 (i386_extract_return_value, i386_store_return_value): Use
5155 I386_ST0_REGNUM where appropriate.
5156 (i386_extract_struct_value_address): Rewrite to use extract_address.
5157 (i386_svr4_pc_in_sigtramp): Add comment.
5158 (i386_svr4_sigcontext_addr): Rewrite.
5159 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5160 TDEP->sc_sp_offset.
5161 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5162 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5163 of new defines. Set push_dummy_call, don't set
5164 deprecated_push_arguments, deprecated_push_return_address,
5165 deprecated_pop_frame. Don't set parm_boundary. Don't set
5166 deprecated_frame_chain, deprecated_frame_saved_pc,
5167 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5168 save_dummy_frame_tos, unwind_pc. Call
5169 frame_unwind_append_predicate and frame_base_set_default. Don't
5170 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5171 Don't set frameless_function_invocation. Don't set
5172 deprecated_register_bytes, deprecated_register_size,
5173 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5174 * i386-linux-tdep.c: Fix formatting in some comments.
5175 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5176 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5177 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5178 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5179 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5180 redundant parentheses.
5181 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5182 (i386_linux_sigcontext_addr): Use it. Rewrite.
5183 (find_minsym_and_objfile): Change name of second argument.
5184 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5185 changed. Use frame_pc_unwind instead of
5186 DEPRECATED_SAVED_PC_AFTER_CALL.
5187 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5188 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5189 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5190 unwinder.
5191 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5192 "dummy-frame.h".
5193 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5194 (_initialize_i386_cygwin_tdep): New prototype.
5195 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5196 deprecated_frame_chain_valid.
5197 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5198 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5199 Rely on the SVR4 defaults.
5200 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5201 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5202
5203 2003-05-30 Andrew Cagney <cagney@redhat.com>
5204
5205 * infcall.c (call_function_by_hand): Always call
5206 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5207
5208 2003-05-30 Richard Henderson <rth@redhat.com>
5209
5210 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5211 increment.
5212
5213 2003-05-29 Jim Blandy <jimb@redhat.com>
5214
5215 Use gdbarch methods for solib stuff on PowerPC Linux.
5216 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5217 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5218 show through.
5219 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5220 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5221 giving the same effect as the #definitions above.
5222
5223 2003-05-29 Adam Fedor <fedor@gnu.org>
5224
5225 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5226 (find_implementation_from_class): Replace it with the standard
5227 case i.e. do nothing.
5228
5229 2003-05-29 Richard Henderson <rth@redhat.com>
5230
5231 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5232 (alpha_linux_sigtramp_offset): Use it. Make static.
5233 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5234 update for new frame model.
5235 * alpha-mdebug-tdep.c: New file.
5236 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5237 (alpha_osf1_init_abi): Install it.
5238 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5239 (linked_proc_desc_table): Remove.
5240 (alpha_frame_past_sigtramp_frame): Remove.
5241 (alpha_dynamic_sigtramp_offset): Remove.
5242 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5243 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5244 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5245 (push_sigtramp_desc): Remove.
5246 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5247 (alpha_cannot_store_register): Likewise.
5248 (alpha_sigcontext_addr): Remove.
5249 (alpha_find_saved_regs): Remove.
5250 (alpha_frame_init_saved_regs): Remove.
5251 (alpha_init_frame_pc_first): Remove.
5252 (read_next_frame_reg): Remove.
5253 (alpha_frame_saved_pc): Remove.
5254 (alpha_saved_pc_after_call): Remove.
5255 (temp_proc_desc, temp_saved_regs): Remove.
5256 (alpha_about_to_return): Remove.
5257 (cached_proc_desc): Remove.
5258 (alpha_frame_chain): Remove.
5259 (alpha_print_extra_frame_info): Remove.
5260 (alpha_init_extra_frame_info): Remove.
5261 (alpha_frame_locals_address): Remove.
5262 (alpha_frame_args_address): Remove.
5263 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5264 (alpha_push_dummy_frame): Remove.
5265 (alpha_pop_frame): Remove.
5266 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5267 (alpha_read_insn): New.
5268 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5269 for different insn encodings.
5270 (alpha_in_lenient_prologue): Remove.
5271 (struct alpha_sigtramp_unwind_cache): New.
5272 (alpha_sigtramp_frame_unwind_cache): New.
5273 (alpha_sigtramp_register_address): New.
5274 (alpha_sigtramp_frame_this_id): New.
5275 (alpha_sigtramp_frame_prev_register): New.
5276 (alpha_sigtramp_frame_unwind): New.
5277 (alpha_sigtramp_frame_p): New.
5278 (struct alpha_heuristic_unwind_cache): New.
5279 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5280 don't count nop insns that occur between functions.
5281 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5282 heuristic_proc_desc, but without the mdebug wrapping.
5283 (alpha_heuristic_frame_this_id): New.
5284 (alpha_heuristic_frame_prev_register): New.
5285 (alpha_heuristic_frame_unwind): New.
5286 (alpha_heuristic_frame_p): New.
5287 (alpha_heuristic_frame_base_address): New.
5288 (alpha_heuristic_frame_base): New.
5289 (alpha_unwind_dummy_id): New.
5290 (alpha_unwind_pc): New.
5291 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5292 frame related deprecated initializations; install replacements.
5293 (alpha_dump_tdep): Remove.
5294 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5295 (alpha_read_insn, alpha_after_prologue,
5296 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5297 alpha_heuristic_frame_prev_register,
5298 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5299 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5300 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5301 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5302
5303 2003-05-29 Andrew Cagney <cagney@redhat.com>
5304
5305 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5306 dependant on the availability of ASSERT_FUNCTION.
5307 (ASSERT_FUNCTION): Do not define when there is no function name.
5308
5309 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5310
5311 From Jimi X <jimix@watson.ibm.com>:
5312 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5313
5314 2003-05-28 Jim Blandy <jimb@redhat.com>
5315
5316 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5317 argument to ptrace to int; the system headers should give it the
5318 right type, and pointers don't fit in ints on powerpc64-*-*.
5319
5320 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5321
5322 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5323 DW_TAG_catch_block.
5324
5325 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5326
5327 * stabsread.c (dbx_lookup_type): Make static.
5328 (read_type): Ditto.
5329 (add_undefined_type): Ditto.
5330 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5331 not export.
5332
5333 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5334
5335 * hpread.c (hpread_has_name): Make static.
5336 (hpread_psymtab_to_symtab): Ditto.
5337 (file_exists): Ditto.
5338 (hpread_call_pxdb): Ditto.
5339 (hpread_pxdb_needed): Ditto.
5340 (hpread_quick_traverse): Ditto.
5341 (hpread_get_header): Ditto.
5342 (hpread_get_lntt): Ditto.
5343 (hpread_get_slt): Ditto.
5344 (class_of): Ditto.
5345
5346 2003-05-25 Andreas Schwab <schwab@suse.de>
5347
5348 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5349 stack_align and deprecated_extra_stack_alignment_needed.
5350 (m68k_stack_align): Delete.
5351
5352 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5353 (m68k_register_virtual_size): Likewise.
5354 (altos_skip_prologue): Remove obsolete function.
5355 (isi_frame_num_args): Likewise.
5356 (news_frame_num_args): Likewise.
5357 (m68k_fix_call_dummy): Make static.
5358 (m68k_push_dummy_frame): Likewise.
5359 (m68k_pop_frame): Likewise.
5360 (m68k_skip_prologue): Likewise.
5361 (m68k_frame_init_saved_regs): Likewise.
5362 (m68k_saved_pc_after_call): Likewise.
5363 (m68k_get_longjmp_target): Make multi-arch.
5364 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5365 structure. Register m68k_get_longjmp_target if enabled.
5366 * m68k-tdep.h (struct gdbarch_tdep): Define.
5367 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5368
5369 * Makefile.in (config.status): Also depend on configure.tgt
5370 and configure.host.
5371 (m68klinux-tdep.o): Update dependencies.
5372 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5373 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5374 (M68K_LINUX_JB_PC): Define.
5375 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5376 and take additional parameter.
5377 (m68k_linux_sigtramp_saved_pc): Update.
5378 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5379 m68k_linux_pc_in_sigtramp, in_plt_section,
5380 find_solib_trampoline_target.
5381 * config/m68k/tm-linux.h: Don't include any tm headers.
5382 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5383 (JB_ELEMENT_SIZE): Likewise.
5384 (JB_PC): Likewise.
5385 (GET_LONGJMP_TARGET): Likewise.
5386 (IN_SIGTRAMP): Likewise.
5387 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5388
5389 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5390
5391 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5392 (sparc32_push_arguments): Re-implement by calling
5393 sparc32_do_push_arguments.
5394
5395 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5396
5397 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5398 SPARC_O1_REGNUM): New defines.
5399 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5400 (sparc32_store_return_value): New function.
5401 (sparc_extract_struct_value_address): Rewrite to operate on a
5402 regcache.
5403 (sparc_gdbarch_init): Don't set
5404 deprecated_extract_struct_value_address. Set
5405 extract_struct_value_address instead. Don't set
5406 deprecated_extract_return_value and deprecated_store_return_value
5407 for 32-bit targets. Set extract_return_value and
5408 store_return_value instead.
5409 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5410 DEPRECTAED_EXTRACT_RETURN_VALUE,
5411 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5412 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5413 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5414 (sparc_store_return_value): Remove prototype.
5415 (sparc32_store_return_value): New prototype.
5416 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5417 Adjust prototypes.
5418
5419 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5420
5421 * sparcnbsd-tdep.c: Include "gdb_string.h".
5422
5423 2003-05-23 Andrew Cagney <cagney@redhat.com>
5424
5425 * p-valprint.c (pascal_val_print): Replace extract_address with
5426 the inline equivalent extract_unsigned_integer.
5427 * jv-valprint.c (java_value_print): Ditto.
5428 * ada-valprint.c (ada_val_print_1): Ditto.
5429 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5430
5431 2003-05-23 Theodore A. Roth <troth@openavr.org>
5432
5433 * blockframe.c (frameless_look_for_prologue): Remove unused
5434 after_prologue variable.
5435
5436 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5437
5438 * blockframe.c (get_pc_function_start): Rewrite to avoid
5439 asignments in if-statements.
5440
5441 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5442
5443 Committed by Elena Zannoni <ezannoni@redhat.com>.
5444 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5445 files, don't relocate absolute symbols (and do use mst_abs).
5446
5447 2003-05-23 Andrew Cagney <cagney@redhat.com>
5448
5449 * objc-lang.c: Include "gdb_assert.h".
5450 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5451 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5452 (gdb_check, gdb_check_fatal): Delete functions.
5453 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5454 gdb_assert.
5455 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5456 * Makefile.in (objc-lang.o): Update dependencies.
5457
5458 2003-05-22 Ian Lance Taylor <ian@airs.com>
5459
5460 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5461 with fprintf_filtered, not fprintf_unfiltered.
5462
5463 2003-05-22 Andrew Cagney <cagney@redhat.com>
5464
5465 * stack.c (frame_info): Inline extract_address, replacing it with
5466 extract_unsigned_integer.
5467 * findvar.c (unsigned_pointer_to_address): Ditto.
5468 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5469 * dwarf2expr.c (dwarf2_read_address): Ditto.
5470 * frame.c (frame_pc_unwind): Update comment.
5471 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5472
5473 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5474
5475 * infptrace.c (detach): Call print_sys_errmsg rather than
5476 perror_with_name to issue warning message when errno is non-zero
5477 after calling ptrace detach.
5478
5479 2003-05-21 J. Brobecker <brobecker@gnat.com>
5480
5481 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5482 macro definitions from here...
5483 * hppa-tdep.c: ...to there.
5484
5485 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5486
5487 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5488 register_ptrace_addr(). Fix all callers.
5489
5490 2003-05-21 Andreas Schwab <schwab@suse.de>
5491
5492 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5493 dependencies.
5494 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5495 end.
5496 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5497 (_initialize_m68k_linux_tdep): New function.
5498 (m68k_linux_frame_saved_pc): Make static.
5499 (m68k_linux_extract_return_value): Likewise.
5500 (m68k_linux_store_return_value): Likewise.
5501 (m68k_linux_extract_struct_value_address): Likewise.
5502 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5503 Remove.
5504 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5505 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5506 (DEPRECATED_FRAME_SAVED_PC): Remove.
5507
5508 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5509
5510 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5511 regset numbering rather than our own.
5512
5513 2003-05-19 David Carlton <carlton@bactrian.org>
5514
5515 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5516
5517 2003-05-19 David Carlton <carlton@bactrian.org>
5518
5519 Partial fix for PR c++/827.
5520 * cp-support.h: Include symtab.h.
5521 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5522 * cp-namespace.c: Update contributors.
5523 (cp_lookup_symbol_nonlocal): New.
5524 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5525 (lookup_symbol_file): Ditto.
5526 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5527 * block.h: Declare block_scope, block_using, block_global_block.
5528 * block.c (block_scope): New.
5529 (block_using, block_global_block): Ditto.
5530 * Makefile.in (cp_support_h): Depend on symtab_h.
5531 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5532
5533 2003-05-19 David Carlton <carlton@bactrian.org>
5534
5535 * language.h (struct language_defn): Add 'la_value_of_this'
5536 and 'la_lookup_symbol_nonlocal' members.
5537 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5538 lookup_symbol_static, lookup_symbol_global,
5539 lookup_symbol_aux_block.
5540 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5541 if we should search fields of this and how to do static/global
5542 lookup.
5543 (lookup_symbol_aux_block): Make extern.
5544 (basic_lookup_symbol_nonlocal): New.
5545 (lookup_symbol_static, lookup_symbol_global): Ditto.
5546 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5547 'la_lookup_symbol_nonlocal' members.
5548 * c-lang.c (c_language_defn, cplus_language_defn)
5549 (asm_language_defn, minimal_language_defn): Ditto.
5550 * jv-lang.c (java_language_defn): Ditto.
5551 * language.c (unknown_language_defn, auto_language_defn)
5552 (local_language_defn): Ditto.
5553 * m2-lang.c (m2_language_defn): Ditto.
5554 * objc-lang.c (objc_language_defn): Ditto.
5555 * scm-lang.c (scm_language_defn): Ditto.
5556 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5557 * p-lang.c (pascal_language_defn): Ditto for both.
5558 * Makefile.in (f-lang.o): Depend on value_h.
5559 (p-lang.o): Ditto.
5560
5561 2003-05-19 David Carlton <carlton@bactrian.org>
5562
5563 * block.h: Declare block_static_block.
5564 * block.c (block_static_block): New.
5565 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5566 lookup_symbol_aux_local, calling block_static_block instead.
5567 (lookup_symbol_aux_local): Delete 'static_block' argument.
5568
5569 2003-05-19 David Carlton <carlton@bactrian.org>
5570
5571 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5572
5573 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5574
5575 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5576 register numbers mapping.
5577
5578 2003-05-18 Adam Fedor <fedor@gnu.org>
5579
5580 * symtab.c (completion_list_objc_symbol): New function.
5581 (make_symbol_completion_list): Use it to add ObjC symbols
5582 when looking though the list.
5583 (language_search_unquoted_string): New function.
5584 (make_file_symbol_completion_list): Use it.
5585
5586 2003-05-18 Andreas Schwab <schwab@suse.de>
5587
5588 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5589 dependencies.
5590 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5591 as m68k_linux_extract_return_value.
5592 (DEPRECATED_STORE_RETURN_VALUE): Define as
5593 m68k_linux_store_return_value.
5594 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5595 m68k_linux_extract_struct_value_address.
5596 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5597 get_next_frame, get_frame_base, get_frame_pc.
5598 (m68k_linux_frame_saved_pc): Use get_frame_base.
5599 (m68k_linux_extract_return_value): New function.
5600 (m68k_linux_store_return_value): New function.
5601 (m68k_linux_extract_struct_value_address): New function.
5602 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5603
5604 * c-exp.y (typebase): Remove duplicate occurence of
5605 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5606 of lookup_signed_typename.
5607
5608 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5609
5610 * dwarf2loc.c (find_location_expression): Change type of second
5611 argument to `size_t *'.
5612 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5613 for size variable.
5614
5615 2003-05-18 David Carlton <carlton@bactrian.org>
5616
5617 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5618 'linkage_name'. Add comment.
5619 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5620 'linkage_name'.
5621 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5622 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5623 (lookup_block_symbol): Ditto.
5624
5625 2003-05-16 Andrew Cagney <cagney@redhat.com>
5626
5627 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5628 * gdbarch.h, gdbarch.c: Re-generate.
5629 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5630 * TODO (REGISTER_BYTES): Delete reference.
5631 * alpha-tdep.c (alpha_gdbarch_init): Update.
5632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5633 * x86-64-tdep.c (x86_64_init_abi): Update.
5634 * vax-tdep.c (vax_gdbarch_init): Update.
5635 * v850-tdep.c (v850_gdbarch_init): Update.
5636 * sparc-tdep.c (sparc_gdbarch_init): Update.
5637 * sh-tdep.c (sh_gdbarch_init): Update.
5638 * s390-tdep.c (s390_gdbarch_init): Update.
5639 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5640 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5641 (ns32k_gdbarch_init_32382): Update.
5642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5643 * mcore-tdep.c (mcore_gdbarch_init): Update.
5644 * m68k-tdep.c (m68k_gdbarch_init): Update.
5645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5646 * ia64-tdep.c (ia64_gdbarch_init): Update.
5647 * i386-tdep.c (i386_gdbarch_init): Update.
5648 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5649 * hppa-tdep.c (hppa_gdbarch_init): Update.
5650 * h8300-tdep.c (h8300_gdbarch_init): Update.
5651 * frv-tdep.c (frv_gdbarch_init): Update.
5652 * cris-tdep.c (cris_gdbarch_init): Update.
5653 * avr-tdep.c (avr_gdbarch_init): Update.
5654 * arm-tdep.c (arm_gdbarch_init): Update.
5655 * sparc-tdep.c (sparc_pop_frame): Update.
5656 * rs6000-tdep.c (rs6000_pop_frame): Update.
5657 * remote.c (init_remote_state): Update.
5658 (remote_prepare_to_store): Update.
5659 * remote-vx.c (vx_prepare_to_store): Update.
5660 * remote-sds.c (sds_fetch_registers): Update.
5661 (sds_prepare_to_store): Update.
5662 * remote-array.c: Update.
5663 * regcache.c (init_legacy_regcache_descr): Update.
5664 (init_regcache_descr): Update.
5665 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5666 (mips_o64_extract_return_value): Update.
5667 * irix5-nat.c (fetch_core_registers): Update.
5668 * irix4-nat.c (fetch_core_registers): Update.
5669 * i386-tdep.h: Update.
5670 * hppa-tdep.c (pa_do_registers_info): Update.
5671 (pa_do_strcat_registers_info): Update.
5672 * cris-tdep.c (cris_register_bytes_ok): Update.
5673 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5674 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5675 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5676 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5677 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5678 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5679 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5680 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5681 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5682 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5683 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5684 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5685 (REGISTER_BYTES_OK): Update.
5686 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5687 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5688
5689 2003-05-16 Ian Lance Taylor <ian@airs.com>
5690
5691 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5692 (vax_print_insn, print_insn_arg): Remove static functions.
5693 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5694 print_insn_vax from opcodes library.
5695 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5696
5697 2003-05-15 Andrew Cagney <cagney@redhat.com>
5698
5699 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5700 * target.h (memory_breakpoint_from_pc): Delete declaration.
5701 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5702 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5703 * monitor.c (monitor_insert_breakpoint): Use
5704 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5705 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5706 * gdbarch.h, gdbarch.c: Re-generate.
5707 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5708 (sparc_gdbarch_init): Set breakpoint_from_pc to
5709 sparc_breakpoint_from_pc.
5710 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5711 (BREAKPOINT_FROM_PC): Define.
5712 (sparc_breakpoint_from_pc): Declare.
5713 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5714 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5715 (BREAKPOINT_FROM_PC): Define.
5716 (BREAKPOINT): Delete macro.
5717 * target.h: Update comment.
5718 * s390-tdep.c (s390_gdbarch_init): Update comments.
5719 * remote.c: Update comments.
5720 * remote-mips.c: Update comments.
5721 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5722 * mem-break.c: Update comment.
5723 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5724 (ia64_memory_insert_breakpoint): Update.
5725 * config/sparc/tm-sparc.h: Update comment.
5726 * config/pa/tm-hppa64.h: Update comment.
5727 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5728 (rs6000_breakpoint_from_pc): Update.
5729 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5730 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5731 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5732 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5733 (mips_breakpoint_from_pc): Update.
5734 (mips_dump_tdep): Update.
5735
5736 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5737 * minsyms.c (lookup_minimal_symbol): Inline
5738 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5739
5740 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5741 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5742 * p-lang.c (pascal_printstr): Ditto.
5743 * objc-lang.c (objc_printstr): Ditto.
5744 * m2-lang.c (m2_printstr): Ditto.
5745 * jv-valprint.c (java_print_value_fields): Ditto.
5746 * f-lang.c (f_printstr): Ditto.
5747 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5748 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5749 for repeat_count_threshold.
5750 * Makefile.in (cp-valprint.o): Update dependencies.
5751
5752 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5753
5754 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5755 (examine_prologue): Support looking through leaf functions, knowing
5756 they start with mov r2,r12. Support skipping over indirect stores
5757 of the input registers. Upon hitting a non-nop branch instruction
5758 or predicated instruction, bail out by setting lim_pc to the current
5759 pc value in the loop. At the end, if the lim_pc value is still
5760 beyond our calculated value and we have trust_limit set,
5761 use the lim_pc value.
5762
5763 2003-05-15 Andrew Cagney <cagney@redhat.com>
5764
5765 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5766 generic_find_dummy_frame.
5767 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5768 (deprecated_generic_find_dummy_frame): Update.
5769 (deprecated_read_register_dummy): Update.
5770 * frame.c (deprecated_generic_get_saved_register): Update.
5771
5772 2003-05-15 Theodore A. Roth <troth@openavr.org>
5773
5774 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5775 (avr_gdbarch_init): Set breakpoint_from_pc method.
5776
5777 2003-05-15 Andrew Cagney <cagney@redhat.com>
5778
5779 * regcache.c (build_regcache): Set deprecated_register_valid
5780 directly.
5781 (deprecated_grub_regcache_for_register_valid): Delete function.
5782 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5783 declaration.
5784
5785 2003-05-15 David Carlton <carlton@bactrian.org>
5786
5787 Committed by Elena Zannoni <ezannoni@redhat.com>
5788 * symtab.c (lookup_symbol_aux): Delete calls to
5789 lookup_symbol_aux_minsyms.
5790 (lookup_symbol_aux_minsyms): Comment out function and
5791 prototype. Delete lookup by mangled name.
5792
5793 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5794
5795 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5796 correctly indicate an empty stack and ``stack_allocated'' to the
5797 indicate the number of elements initially allocated.
5798 (dwarf_expr_grow_stack): Simplify method for computing new
5799 stack size. Don't loop infinitely if ``stack_len'' is zero.
5800 (execute_stack_op): Move ``ctx->in_reg'' initialization
5801 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5802 be used in conjuction with DW_OP_piece. Revise error message
5803 accordingly.
5804
5805 2003-05-14 Theodore A. Roth <troth@openavr.org>
5806
5807 * MAINTAINERS: Update my email address.
5808 * avr-tdep.c: Ditto.
5809
5810 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5811
5812 * symtab.h (enum domain_enum): Rename from namespace_enum.
5813 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5814 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5815 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5816 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5817 TYPES_NAMESPACE, METHODS_NAMESPACE.
5818 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5819 (struct symbol, struct partial_symbol): Rename field
5820 'namespace_enum namespace' to 'domain_enum domain'.
5821 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5822 Delete old define kludge for namespace.
5823
5824 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5825 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5826 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5827 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5828 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5829 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5830 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5831 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5832 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5833 occurrences of the above.
5834
5835 2003-05-14 Ian Lance Taylor <ian@airs.com>
5836
5837 * Makefile.in (install-only): Use $(SHELL) when running
5838 mkinstalldirs.
5839
5840 2003-05-13 Ian Lance Taylor <ian@airs.com>
5841
5842 * MAINTAINERS (write after approval): Add myself.
5843
5844 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5845 second and third arguments.
5846 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5847 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5848
5849 2003-05-13 Andrew Cagney <cagney@redhat.com>
5850
5851 * defs.h (store_address): Delete declaration.
5852 findvar.c (store_address): Delete function.
5853 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5854 store_unsigned_integer.
5855 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5856 * v850-tdep.c (v850_push_arguments): Ditto.
5857 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5858 * sh-tdep.c (sh64_get_saved_register): Ditto.
5859 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5860 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5861 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5862 (mips_get_saved_register): Ditto.
5863 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5864 (find_func_descr, ia64_push_arguments): Ditto.
5865 * i386-tdep.c (i386_push_arguments): Ditto.
5866 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5867 * frv-tdep.c (frv_push_arguments): Ditto.
5868 * frame.c (legacy_saved_regs_prev_register): Ditto.
5869 (deprecated_generic_get_saved_register): Ditto.
5870 * findvar.c (unsigned_address_to_pointer): Ditto.
5871 * dwarf2read.c (dwarf2_const_value): Ditto.
5872 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5873 * alpha-tdep.c (alpha_push_arguments): Ditto.
5874
5875 2003-05-12 J. Brobecker <brobecker@gnat.com>
5876
5877 * NEWS: Mention that the hppa-hpux port has been partially
5878 multiarched (32bit ABIT only, so far).
5879
5880 2003-05-11 Andrew Cagney <cagney@redhat.com>
5881
5882 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5883 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5884 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5885 sim/testsuite/sim/arm/misaligned2.ms, and
5886 sim/testsuite/sim/arm/misaligned3.ms.
5887 * disasm.h (struct ui_file): Add opaque struct declaration.
5888 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5889 * frame.h (struct ui_file): Ditto.
5890
5891 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5892
5893 * value.h: Pretty print.
5894
5895 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5896
5897 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5898
5899 2003-05-08 Andrew Cagney <cagney@redhat.com>
5900
5901 * regcache.h (max_register_size): Delete declaration.
5902 * regcache.c (max_register_size): Delete function.
5903 (struct regcache_descr): Delete field "max_register_size".
5904 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5905 registers fit in MAX_REGISTER_SIZE.
5906 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5907 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5908 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5909 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5910 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5911 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5912 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5913 * dve3900-rom.c, hppa-tdep.c: Ditto.
5914
5915 2003-05-08 David Carlton <carlton@math.stanford.edu>
5916
5917 * valops.c (push_word): Fix typo.
5918
5919 2003-05-08 Andrew Cagney <cagney@redhat.com>
5920
5921 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5922 * gdbarch.h: Re-generate.
5923 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5924 (legacy_max_register_raw_size): Delete declaration.
5925 * regcache.c (legacy_max_register_raw_size): Delete function.
5926 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5927 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5928 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5929 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5930 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5931 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5932 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5933 * findvar.c, dwarf2cfi.c: Ditto.
5934
5935 2003-05-08 Andrew Cagney <cagney@redhat.com>
5936
5937 * mips-tdep.c (read_signed_register): New function, moved to here
5938 from "regcache.c".
5939 (read_signed_register_pid): Ditto.
5940 * regcache.c (read_signed_register_pid): Delete function, moved to
5941 "mips-tdep.c".
5942 (read_signed_register): Ditto.
5943 * regcache.h (read_signed_register): Delete declaration.
5944 (read_signed_register_pid): Delete declaration.
5945
5946 2003-05-08 Andrew Cagney <cagney@redhat.com>
5947
5948 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5949 * gdbarch.h: Re-generate.
5950 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5951 (legacy_max_register_virtual_size): Delete declaration.
5952 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5953 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5954 * tracepoint.c (memrange_sortmerge): Ditto.
5955 * sparc-tdep.c (sparc_print_registers): Ditto.
5956 * regcache.c (legacy_max_register_virtual_size): Delete function.
5957
5958 2002-05-08 J. Brobecker <brobecker@gnat.com>
5959
5960 * fork-child.c (escape_bang_in_quoted_argument): New function.
5961 (fork_inferior): Escape '!' characters in quoted arguments
5962 only when needed.
5963
5964 2003-05-08 J. Brobecker <brobecker@gnat.com>
5965
5966 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5967 the language of the CU is not currently supported by GDB.
5968
5969 2003-05-08 J. Brobecker <brobecker@gnat.com>
5970
5971 * defs.h (language): Add language_minimal enum value.
5972 * c-lang.c (minimal_language_defn): New language definition.
5973 (_initialize_c_language): Add the new minimal language to the list
5974 of languages known to GDB.
5975
5976 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5977
5978 * frame.c (get_frame_type): Don't attempt to lazily initialize
5979 frame's unwinder for legacy frames.
5980
5981 2003-05-07 Andrew Cagney <cagney@redhat.com>
5982
5983 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5984 and "regcache" parameters.
5985 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5986
5987 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5988
5989 * dwarf2read.c (dwarf_decode_lines): Only use output of
5990 check_cu_functions() when calling record_line(). Do not update
5991 the current address.
5992
5993 2003-05-07 Andrew Cagney <cagney@redhat.com>
5994
5995 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5996 code.
5997
5998 2003-05-07 Jim Blandy <jimb@redhat.com>
5999
6000 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6001 'maint info symtabs' and 'maint info psymtabs'.
6002 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6003 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6004 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6005 Declarations updated.
6006 * maint.c (maintenance_list_command): Delete.
6007 (_initialize_maint_cmds): Update calls to add_cmd.
6008 * gdbcmd.h (maintenancelistlist): Delete declaration.
6009 * cli/cli-cmds.c (maintenancelistlist): Delete.
6010 (init_cmd_lists): Don't initialize it.
6011 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6012
6013 2003-05-07 Andrew Cagney <cagney@redhat.com>
6014
6015 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6016 "regcache".
6017 (d10v_print_registers_info): Update.
6018 (d10v_dmap_register, d10v_imap_register): Delete functions.
6019 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6020 and "imap_register".
6021 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6022 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6023 * arch-utils.c (generic_remote_translate_xfer_address): Add
6024 "regcache" and "gdbarch" parameters.
6025 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6026 parameter. Change class to multi-arch.
6027 * gdbarch.h, gdbarch.c: Re-generate.
6028 * remote.c (remote_xfer_memory): Use
6029 gdbarch_remote_translate_xfer_address.
6030
6031 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6032
6033 * infrun.c (prev_pc): Move declaration ahead of proceed().
6034 (proceed): Refresh prev_pc value before resuming.
6035 (stop_stepping): Remove code to refresh prev_pc.
6036
6037 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6038
6039 * nto-tdep.c: Removed stray comment.
6040
6041 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6042
6043 * i386-nto-tdep.c: Fix old K&R function definitions.
6044 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6045 Also change add_show_from_set() call to add_setshow_cmd().
6046 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6047
6048 2003-05-05 Andrew Cagney <cagney@redhat.com>
6049
6050 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6051 (fprint_dummy_frames): New function.
6052 (maintenance_print_dummy_frames): New function.
6053 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6054 * frame.c (fprint_frame_id): Make global.
6055 * frame.h (fprint_frame_id): Declare.
6056 * Makefile.in (dummy-frame.o): Update dependencies.
6057
6058 2003-05-05 Andrew Cagney <cagney@redhat.com>
6059
6060 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6061 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6062 SIZEOF_CALL_DUMMY_WORDS.
6063 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6064 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6065 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6066 CALL_DUMMY_BREAKPOINT_OFFSET.
6067 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6068 CALL_DUMMY_START_OFFSET.
6069 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6070 * gdbarch.h, gdbarch.c: Re-generate.
6071 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6072 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6073 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6074 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6075 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6076 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6077 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6078 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6079 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6080 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6081 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6082 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6083 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6084 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6085 * config/sparc/tm-sparc.h: Update.
6086
6087 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6088
6089 * configure.tgt: Add i[3456]86-*-nto*.
6090 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6091 * nto-tdep.c: New file. Neutrino target support routines.
6092 * nto-tdep.h: New file. Neutrino target header.
6093 * config/tm-qnxnto.h: New file.
6094 * config/i386/i386nto.mt: New file.
6095 * config/i386/tm-i386nto.h: New file.
6096
6097 2003-05-04 Andrew Cagney <cagney@redhat.com>
6098
6099 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6100 (load_infrun_state): Ditto.
6101 (struct thread_info): Drop "prev_func_name" field.
6102 * thread.c (load_infrun_state): Update.
6103 (save_infrun_state): Update.
6104 * infrun.c (prev_func_name): Delete variable.
6105 (init_wait_for_inferior): Do not clear prev_func_name.
6106 (stop_stepping, keep_going, context_switch): Do not swap
6107 prev_func_name.
6108 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6109 instead of PC_IN_SIGTRAMP.
6110
6111 2003-05-04 Andrew Cagney <cagney@redhat.com>
6112
6113 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6114 REGISTER_BYTE with register_offset_hack.
6115 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6116 that REGISTER_BYTE is consistent with the regcache.
6117 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6118 * gdbarch.h, gdbarch.c: Regenerate.
6119
6120 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6121
6122 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6123 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6124
6125 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6126
6127 2003-05-03 J. Brobecker <brobecker@gnat.com>
6128
6129 From Thierry Schneider <tpschneider1@yahoo.com>
6130 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6131 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6132 (mi-cmd-symbol.o): Add rule.
6133
6134 2003-05-03 Andrew Cagney <cagney@redhat.com>
6135
6136 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6137 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6138 * gdbarch.h, gdbarch.c: Re-generate.
6139 * d10v-tdep.c (d10v_push_dummy_code): New function.
6140 (d10v_gdbarch_init): Set push_dummy_code.
6141 * infcall.c (legacy_push_dummy_code): New function.
6142 (generic_push_dummy_code): New function.
6143 (push_dummy_code): New function.
6144 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6145 instead of dummy_addr, to push_dummy_call. Move call to
6146 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6147 switch.
6148 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6149
6150 2003-05-03 Andrew Cagney <cagney@redhat.com>
6151
6152 * disasm.h (print_insn): Declare.
6153 * disasm.c (init_gdb_disassemble_info): New function.
6154 (gdb_disassembly): Call init_gdb_disassemble_info.
6155 (gdb_print_insn): New function.
6156 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6157 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6158 * mcore-tdep.c: Include "disasm.h"
6159 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6160 * d10v-tdep.c: Include "disasm.h".
6161 (display_trace): Call gdb_print_insn, instead of print_insn.
6162 (print_insn): Delete function.
6163 * printcmd.c: Include "disasm.h".
6164 (print_insn): Delete function.
6165 (print_formatted): Call gdb_print_insn, instead of print_insn.
6166 * Makefile.in (printcmd.o): Update dependencies.
6167 (mcore-tdep.o, d10v-tdep.o): Ditto.
6168
6169 2003-05-02 Andrew Cagney <cagney@redhat.com>
6170
6171 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6172 PC_REGNUM, re-indent.
6173 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6174 PC_REGNUM isn't set.
6175
6176 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6177 * gdbarch.h, gdbarch.c: Re-generate.
6178 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6179 register_virtual_size, pc_regnum, or register_bytes.
6180 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6181 (d10v_register_type): Use D10V_PC_REGNUM.
6182 (d10v_print_registers_info, d10v_read_pc): Ditto.
6183 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6184 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6185
6186 2003-05-02 David Carlton <carlton@bactrian.org>
6187
6188 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6189 the name with mstrsave.
6190
6191 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6192
6193 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6194 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6195 (host_charset_name, target_charset_name): New vars for use by
6196 set/show commands.
6197 (host_charset_enum, target_charset_enum): New enums for set/show
6198 commands.
6199 (set_charset_sfunc, set_host_charset_sfunc,
6200 set_target_charset_sfunc): New functions.
6201 (set_host_charset, set_target_charset): Make static.
6202 (list_charsets, set_host_charset_command,
6203 set_target_charset_command): Delete functions.
6204 (show_charset_command): Rewrite as....
6205 (show_charset): Hook this up with the set/show command mechanism.
6206 (_initialize_charset): Change names of charsets to match the
6207 set/show enums. Use host_charset_name and target_charset_name.
6208 Use set/show mechanism for charset, host-charset, target-charset
6209 commands. Do not make 'show host-charset' and 'show
6210 target-charset' be aliases of 'show charset'.
6211
6212 * charset.h (set_host_charset, set_target_charset): Don't export,
6213 they are not used outside the file.
6214
6215 2003-05-01 Andrew Cagney <cagney@redhat.com>
6216
6217 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6218 (gdb_disassembly): Make "di" non static, always initialize and
6219 cleanup. Always use dis_asm_read_memory.
6220 (gdb_dis_asm_read_memory): Delete function.
6221
6222 2003-05-01 Andrew Cagney <cagney@redhat.com>
6223
6224 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6225 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6226
6227 2003-04-30 Andrew Cagney <cagney@redhat.com>
6228
6229 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6230 "tm_print_insn_info".
6231 (TARGET_PRINT_INSN_INFO): Delete macro.
6232 (dis_asm_read_memory): Delete function declaration.
6233 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6234 (tm_print_insn_info): Delete variable definition.
6235 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6236 * gdbarch.h, gdbarch.c: Re-generate.
6237 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6238 "deprecated_tm_print_insn_info".
6239 * mcore-tdep.c (mcore_dump_insn): Ditto.
6240 * mips-tdep.c (mips_gdbarch_init): Ditto.
6241 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6242 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6243 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6244 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6245 instead of TARGET_PRINT_INSN_INFO, add comment.
6246 * s390-tdep.c (s390_get_frame_info): Instead of
6247 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6248 (s390_check_function_end, s390_is_sigreturn): Ditto.
6249 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6250 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6251 * disasm.c: Include "gdbcore.h".
6252 (_initialize_disasm): New function, initialize
6253 "deprecated_tm_print_insn_info".
6254 (deprecated_tm_print_insn_info): New variable.
6255 (dis_asm_read_memory): Moved from "corefile.c", made static.
6256 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6257 * Makefile.in (disasm.o): Update dependencies.
6258
6259 2003-04-30 Andrew Cagney <cagney@redhat.com>
6260
6261 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6262
6263 2003-04-29 Adam Fedor <fedor@gnu.org>
6264
6265 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6266 * infcall.c (find_function_addr): Make non-static.
6267 * infcall.h (find_function_addr): Declare.
6268 * Makefile.in (eval.o): Update dependencies.
6269
6270 2003-04-28 Adam Fedor <fedor@gnu.org>
6271
6272 * symtab.c (symbol_find_demangled_name): Check for and demangle
6273 ObjC symbols.
6274 (symbol_init_demangled_name): Init for language_objc as well.
6275
6276 2003-04-28 Andrew Cagney <cagney@redhat.com>
6277
6278 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6279 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6280 * gdbarch.h, gdbarch.c: Re-generate.
6281 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6282 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6283 * inferior.h (deprecated_read_fp): Rename read_fp.
6284 (generic_target_read_fp): Delete declaration.
6285 * regcache.c (generic_target_read_fp): Delete function.
6286 (deprecated_read_fp): Replace read_fp, use
6287 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6288 * d10v-tdep.c (d10v_read_fp): Delete function.
6289 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6290
6291 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6292 deprecated_target_read_fp to generic_target_read_fp.
6293 * sh-tdep.c (sh_gdbarch_init): Ditto.
6294 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6296 * frv-tdep.c (frv_gdbarch_init): Ditto.
6297
6298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6299 deprecated_fp_regnum.
6300 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6301 * vax-tdep.c (vax_gdbarch_init): Ditto.
6302 * v850-tdep.c (v850_gdbarch_init): Ditto.
6303 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6304 * sh-tdep.c (sh_gdbarch_init): Ditto.
6305 * s390-tdep.c (s390_gdbarch_init): Ditto.
6306 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6307 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6308 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6309 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6311 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6312 * i386-tdep.c (i386_gdbarch_init): Ditto.
6313 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6314 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6315 * frv-tdep.c (frv_gdbarch_init): Ditto.
6316 * cris-tdep.c (cris_gdbarch_init): Ditto.
6317 * avr-tdep.c (avr_gdbarch_init): Ditto.
6318 * arm-tdep.c (arm_gdbarch_init): Ditto.
6319 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6320
6321 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6322 * v850-tdep.c (v850_gdbarch_init): Ditto.
6323 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6324 * sh-tdep.c (sh_gdbarch_init): Ditto.
6325 * s390-tdep.c (s390_gdbarch_init): Ditto.
6326 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6328 * mips-tdep.c (mips_gdbarch_init): Ditto.
6329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6330 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6331 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6332 * frv-tdep.c (frv_gdbarch_init): Ditto.
6333 * avr-tdep.c (avr_gdbarch_init): Ditto.
6334 * arm-tdep.c (arm_gdbarch_init): Ditto.
6335
6336 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6337 DEPRECATED_FP_REGNUM.
6338 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6339 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6340 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6341 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6342 (sparc32_register_virtual_type): Ditto.
6343 * sh-tdep.c (sh64_frame_chain): Ditto.
6344 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6345 (sh_nofp_frame_init_saved_regs): Ditto.
6346 (sh64_nofp_frame_init_saved_regs): Ditto.
6347 (sh_fp_frame_init_saved_regs): Ditto.
6348 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6349 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6350 * procfs.c (procfs_fetch_registers): Ditto.
6351 (procfs_store_registers): Ditto.
6352 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6353 (store_inferior_registers, fetch_core_registers): Ditto.
6354 (fetch_kcore_registers, clear_regs): Ditto.
6355 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6356 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6357 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6358 * nlm/i386.c (do_status): Ditto.
6359 * mipsv4-nat.c (supply_gregset): Ditto.
6360 * mips-tdep.c: Ditto for comments.
6361 * mips-nat.c (fetch_inferior_registers): Ditto.
6362 (store_inferior_registers, fetch_core_registers): Ditto.
6363 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6364 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6365 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6366 (i386_do_pop_frame, i386_register_type): Ditto.
6367 * hppa-tdep.c (hppa_frame_chain): Ditto.
6368 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6369 (hppa_pop_frame, hppa_read_fp): Ditto.
6370 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6371 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6372 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6373 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6374 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6375 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6376 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6377 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6378 * blockframe.c: Ditto for comments.
6379 * arch-utils.h: Ditto for comments.
6380 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6381 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6382 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6383 * alpha-tdep.h: Ditto for comments.
6384 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6385 (alpha_cannot_store_register): Ditto.
6386 (alpha_push_dummy_frame): Ditto.
6387 * alpha-nat.c (supply_gregset): Ditto.
6388
6389 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6390 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6391 * config/sparc/tm-sparc.h: Update comment.
6392
6393 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6394 deprecated_read_fp instead of TARGET_READ_FP.
6395 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6396 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6397 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6398 deprecated_read_fp instead of read_fp.
6399 * s390-tdep.c (s390_push_arguments): Ditto.
6400 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6401 * frame.h: Ditto in comments.
6402 * frame.c (legacy_get_prev_frame): Ditto.
6403 * dummy-frame.c (dummy_frame_this_id): Ditto.
6404 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6405
6406 2003-04-28 Andrew Cagney <cagney@redhat.com>
6407
6408 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6409 * gdbarch.h, gdbarch.c: Re-generate.
6410 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6411 * vax-tdep.c (_initialize_vax_tdep): Update.
6412 * v850-tdep.c (_initialize_v850_tdep): Update.
6413 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6414 * s390-tdep.c (_initialize_s390_tdep): Update.
6415 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6416 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6417 * mips-tdep.c (_initialize_mips_tdep): Update.
6418 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6419 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6420 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6421 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6422 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6423 * frv-tdep.c (_initialize_frv_tdep): Update.
6424 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6425 (_initialize_cris_tdep): Update.
6426 * arch-utils.c (legacy_print_insn): Update.
6427 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6428
6429 2003-04-26 Adam Fedor <fedor@gnu.org>
6430
6431 * linespec.c (decode_objc): New function to decode ObjC calls
6432 (decode_line_1): Check for ObjC calls (using decode_objc)
6433 * Makefile (linespec.o): Update dependencies.
6434
6435 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6436
6437 * breakpoint.h (struct breakpoint_ops): New.
6438 (struct breakpoint): Add ops member.
6439
6440 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6441 (mention): Use new breakpoint ops member.
6442 (set_raw_breakpoint): Initialize ops field to NULL.
6443 (print_exception_catchpoint, print_one_exception_catchpoint)
6444 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6445 (gnu_v3_exception_catchpoint_ops): New.
6446 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6447
6448 2003-04-25 Adam Fedor <fedor@gnu.org>
6449
6450 * Makefile.in (COMMON_OBS): Add objc-lang.o
6451
6452 2003-04-25 Andrew Cagney <cagney@redhat.com>
6453
6454 * d10v-tdep.c (print_insn): Delete function.
6455 (display_trace): Use TARGET_PRINT_INSN.
6456 (_initialize_d10v_tdep): Do not set tm_print_insn.
6457 (d10v_gdbarch_init): Set print_insn.
6458
6459 2003-04-25 Andrew Cagney <cagney@redhat.com>
6460
6461 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6462 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6463 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6464 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6465 (nr_dmap_regs, a0_regnum): ... new functions.
6466 (d10v_print_registers_info): Use a0_regnum, use register_size.
6467 (d10v_register_byte): Delete function.
6468 (d10v_register_raw_size): Delete function.
6469 (d10v_register_type): Use a0_regnum.
6470 (d10v_print_registers_info): Use a0_regnum.
6471 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6472 (d10v_gdbarch_init): Do not set register_byte or
6473 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6474 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6475 extract_address.
6476 (trace_command): Use XCALLOC.
6477 (print_insn): Delete reference to tm_print_insn.
6478 (saved_regs_unwinder): Use store_unsigned_integer instead of
6479 store_address.
6480 * frame.h (FRAME_OBSTACK_CALLOC): Define
6481
6482 2003-04-25 David Carlton <carlton@bactrian.org>
6483
6484 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6485
6486 2003-04-24 Adam Fedor <fedor@gnu.org>
6487
6488 * objc-lang.c: Include "valprint.h"
6489 * Makefile.in (objc-lang.o): Update dependencies.
6490
6491 2003-04-24 Adam Fedor <fedor@gnu.org>
6492
6493 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6494 architecture dependant compilation and mark as unimplemented
6495 (until they get put in the gdbarch vector).
6496
6497 2003-04-23 David Carlton <carlton@bactrian.org>
6498
6499 * cp-support.c (cp_find_first_component): Accept 'operator' in
6500 more locations.
6501
6502 2003-04-23 Andrew Cagney <cagney@redhat.com>
6503
6504 * infcall.c (call_function_by_hand): Eliminate redundant
6505 indentation. Move "saved_async" and "old_cleanups" to where they
6506 are needed.
6507
6508 2003-04-23 Andrew Cagney <cagney@redhat.com>
6509
6510 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6511 and "buffer". Move the "name" code to where it is needed.
6512
6513 2003-04-23 Andrew Cagney <cagney@redhat.com>
6514
6515 * infcall.c (call_function_by_hand): Move variables "start_sp",
6516 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6517 code to ON_STACK switch branch.
6518
6519 2003-04-23 Andrew Cagney <cagney@redhat.com>
6520
6521 * infcall.c (call_function_by_hand): Make declaration of "i",
6522 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6523 lint.
6524
6525 2003-04-23 Andrew Cagney <cagney@redhat.com>
6526
6527 * infcall.c (call_function_by_hand): Delete variable
6528 "n_method_args". Localize "param_type"'s declaration to the loop
6529 that it is used. Reinstate code assigning to said variable -
6530 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6531 Rationalize code using "param_type".
6532
6533 2003-04-22 Andrew Cagney <cagney@redhat.com>
6534
6535 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6536 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6537 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6538 to DEPRECATED_PUSH_RETURN_ADDRESS.
6539
6540 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6541
6542 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6543 on the DWARF2 register number prior to fetching a register.
6544
6545 2003-04-22 J. Brobecker <brobecker@gnat.com>
6546
6547 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6548 Update all the tests using SOFT_FLOAT considering the fact that
6549 this macro was always set to 0.
6550 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6551 considering the fact that this macro was always set to 0.
6552 * hppa-tdep.h (hppa_store_return_value): Likewise.
6553 (hppa_extract_return_value): Likewise.
6554
6555 2003-04-22 J. Brobecker <brobecker@gnat.com>
6556
6557 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6558 the hppa-pro target only.
6559
6560 2003-04-21 J. Brobecker <brobecker@gnat.com>
6561
6562 Ongoing multi-arch conversion effort for HP/UX:
6563 * config/pa/tm-hppa.h: Move all macro that are no longer
6564 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6565 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6566
6567 2003-04-21 J. Brobecker <brobecker@gnat.com>
6568
6569 * config/pa/tm-hppa.h: Obsolete a section that was only used
6570 for hppa-pro.
6571
6572 2003-04-21 J. Brobecker <brobecker@gnat.com>
6573
6574 Ongoing multi-arch conversion for HP/UX.
6575 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6576 if already defined (allows hppa64 to stay non-multiarched for now).
6577 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6578
6579 2003-04-21 Andrew Cagney <cagney@redhat.com>
6580
6581 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6582
6583 2003-04-21 Andrew Cagney <cagney@redhat.com>
6584
6585 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6586 "i386_num_mmx_regs".
6587
6588 2003-04-21 Andrew Cagney <cagney@redhat.com>
6589
6590 * infcall.c: New file.
6591 * infcall.h: New file.
6592 * valarith.c: Include "infcall.h".
6593 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6594 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6595 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6596 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6597 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6598 (SFILES): Add "infcall.c"
6599 (COMMON_OBS): Add "infcall.o".
6600 (infcall.o): Specify dependencies.
6601 * value.h (call_function_by_hand): Delete declaration.
6602 * inferior.h (run_stack_dummy): Delete declaration.
6603 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6604 (run_stack_dummy): Move to "infcall.c", merged into
6605 call_function_by_hand.
6606 * valops.c (call_function_by_hand): Moved to "infcall.c".
6607 (find_function_addr, value_arg_coerce): Ditto.
6608 (unwindonsignal_p, coerce_float_to_double): Ditto.
6609 (_initialize_valops): Move "set/show coerce-float-to-double", and
6610 "set/show unwindonsignal" commands to "infcall.c".
6611 * v850-tdep.c, target.h: Update comments.
6612 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6613 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6614 (sh64_init_extra_frame_info): Update comments.
6615 * mn10300-tdep.c: Update comments.
6616 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6617 * config/sparc/tm-sparc.h: Update comments.
6618 * breakpoint.h: Update comments.
6619 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6620 * arm-tdep.c: Update comment.
6621
6622 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6623
6624 * i386-tdep.c (i386_num_register_names): New variable.
6625 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6626 (MM0_REGNUM): Remove redundant parentheses in define.
6627 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6628 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6629 i386_mxcsr_regnum_p): Remove redundant parentheses.
6630 (i386_register_name): Use i386_num_register_names.
6631
6632 * i386-tdep.c (i386_extract_return_value,
6633 i386_store_return_value): Correct check for availability of
6634 floating-point registers.
6635
6636 * i386-tdep.c (i386_frame_num_args): Remove function.
6637 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6638
6639 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6640 mmx_regnum_to_fp_regnum. Adjust all callers.
6641
6642 * i386-tdep.c (i386_get_longjmp_target): Use
6643 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6644 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6645 extract_address.
6646
6647 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6648
6649 * core-regset.c: Update comments to reflect reality. Re-order
6650 includes.
6651 (fetch_core_registers): Use switch instead of if. Remove
6652 redundant prototype.
6653
6654 2003-04-18 Jim Blandy <jimb@redhat.com>
6655
6656 * s390-tdep.c (s390_frame_align): New function.
6657 (s390_gdbarch_init): Register it with the gdbarch object.
6658
6659 2003-04-17 Richard Henderson <rth@redhat.com>
6660
6661 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6662
6663 2003-04-17 Michael Snyder <msnyder@redhat.com>
6664 Karen Bennet <bennet@redhat.com>
6665
6666 Committed by Elena Zannoni <ezannoni@redhat.com>
6667 * gdb_gcore.sh: New script to create a core dump of a process.
6668
6669 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6670
6671 * values.c (value_being_returned): Don't fetch the return
6672 value if the return type is void.
6673
6674 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6675
6676 * thread-db.c: Reindented.
6677
6678 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6679
6680 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6681 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6682 as types.
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6709
6710 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6711 the size of ``long double'' to 16, instead of 8.
6712
6713 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6714
6715 * i386-linux-nat.c: Add some whitespace to make things more
6716 readable.
6717 (fetch_register, store_register, fetch_inferior_registers,
6718 store_inferior_registers): Get rid of assignment in if-statement.
6719 (store_register): Fix typo in error message.
6720
6721 2003-04-16 Andrew Cagney <cagney@redhat.com>
6722
6723 * utils.c (xmmalloc): Always allocate something, matches
6724 libiberty/xmalloc's semantics.
6725 (xmrealloc, xmcalloc): Ditto.
6726
6727 2003-04-16 Andrew Cagney <cagney@redhat.com>
6728
6729 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6730 update comments.
6731 (get_frame_type): Initialize unwind and type when needed.
6732 (get_frame_id, frame_register_unwind): Ditto.
6733
6734 2003-04-16 Andrew Cagney <cagney@redhat.com>
6735
6736 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6737 obsolete.
6738 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6739 * sparcl-stub.c: Obsolete file.
6740 * config/sparc/tm-sparclet.h: Obsolete file.
6741 * sparclet-stub.c: Obsolete file.
6742 * sparclet-rom.c: Obsolete file.
6743 * sparcl-tdep.c: Obsolete file.
6744 * config/sparc/tm-sparclite.h: Obsolete file.
6745 * config/sparc/sparclite.mt: Obsolete file.
6746 * config/sparc/sparclet.mt: Obsolete file.
6747 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6748 sparc86x-*-* obsolete.
6749
6750 2003-04-15 David Carlton <carlton@math.stanford.edu>
6751
6752 * Makefile.in (SFILES): Add cp-namespace.c.
6753 (COMMON_OBS): Add cp-namespace.o.
6754 (block.o): Depend on gdb_obstack_h and cp_support_h.
6755 (buildsym.o): Depend on cp_support_h.
6756 (cp-namespace.o): New.
6757 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6758 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6759 (dwarf2read.o): Depend on cp_support_h.
6760 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6761 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6762 processing_current_namespace.
6763 (read_namespace): Update processing_current_namespace; check for
6764 anonymous namespaces.
6765 (dwarf2_name): New function.
6766 (dwarf2_extension): Ditto.
6767 * cp-support.h: Update copyright, contributors.
6768 Add inclusion guards.
6769 Add opaque declaration for structs obstack, block, symbol.
6770 (struct using_direct): New struct.
6771 Add declarations for cp_find_first_component,
6772 cp_entire_prefix_len, processing_has_namespace_info,
6773 processing_current_namespace, cp_is_anonymous,
6774 cp_add_using_directive, cp_initialize_namespace,
6775 cp_finalize_namespace, cp_set_block_scope,
6776 cp_scan_for_anonymous_namespaces.
6777 * cp-namespace.c: New file.
6778 * cp-support.c: Update copyright.
6779 Include ctype.h, gdb_assert.h, gdbcmd.h.
6780 New variable maint_cplus_cmd_list.
6781 (cp_find_first_component): New function.
6782 (cp_entire_prefix_len, maint_cplus_command)
6783 (first_component_command, _initialize_cp_support): Ditto.
6784 * buildsym.c: Include cp-support.h.
6785 New variable using_list.
6786 (add_symbol_to_list): Check for anonymous namespaces.
6787 (finish_block): Set block's scope.
6788 (start_symtab): Initialize C++ namespace support.
6789 (end_symtab): Finalize C++ namespace support.
6790 * block.h: Add opaque declarations for structs
6791 block_namespace_info, using_direct, and obstack.
6792 Add declarations for block_set_scope and block_set_using.
6793 (struct block): Add 'language_specific' member.
6794 (BLOCK_NAMESPACE): New macro.
6795 * block.c: Include gdb_obstack.h and cp-support.h.
6796 (struct block_namespace_info): New struct.
6797 (block_set_scope): New function.
6798 (block_set_using, block_initialize_namespace): Ditto.
6799
6800 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6801
6802 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6803 (locate_base): Return early if there aren't any link map offsets.
6804 (svr4_solib_create_inferior_hook): Warn if shared library support
6805 is unavailable.
6806
6807 2003-04-14 David Carlton <carlton@math.stanford.edu>
6808
6809 * symtab.c (symbol_set_names): Add prefix when storing Java names
6810 in hash table. Fix for PR java/1039.
6811
6812 2003-04-14 David Carlton <carlton@math.stanford.edu>
6813
6814 * symtab.c (symbol_set_names): Rename 'name' arg to
6815 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6816 * symtab.h: Change 'name' argument in declaration of
6817 symbol_set_names to 'linkage_name'.
6818 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6819
6820 2003-04-14 Andrew Cagney <cagney@redhat.com>
6821
6822 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6823 return the fully sign-extended register value.
6824 (get_frame_pointer): Ditto.
6825 (mips_pop_frame): Initialize "proc_desc" after checking for a
6826 dummy frame.
6827
6828 2003-04-14 Andrew Cagney <cagney@redhat.com>
6829
6830 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6831 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6832 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6833 (mips_push_register): Delete function.
6834 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6835 PUSH_FP_REGNUM.
6836
6837 2003-04-14 Jim Blandy <jimb@redhat.com>
6838
6839 * symmisc.c: #include "gdb_regex.h".
6840 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6841 functions.
6842 * maint.c (maintenance_list_command): New function.
6843 (_initialize_maint_cmds): Register the above as commands.
6844 * symtab.h (maintenance_list_symtabs,
6845 maintenance_list_psymtabs): New declarations.
6846 * cli/cli-cmds.c (maintenancelistlist): New variable.
6847 (init_cmd_lists): Initialize it.
6848 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6849 * gdbcmd.h (maintenancelistlist): New declaration.
6850 * Makefile.in (symmisc.o): Update dependencies.
6851
6852 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6853
6854 * s390-nat.c: Include asm/types.h for addr_t.
6855
6856 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6857
6858 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6859 actually incoming type.
6860
6861 2003-04-13 Andrew Cagney <cagney@redhat.com>
6862
6863 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6864 get_next_frame and get_frame_saved_regs.
6865
6866 2003-04-13 Andrew Cagney <cagney@redhat.com>
6867
6868 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6869 of gdbarch_num_regs.
6870
6871 2003-04-13 Andrew Cagney <cagney@redhat.com>
6872
6873 * frame.h: Mention what replaced what in "struct frame_info".
6874 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6875 deprecated_update_frame_base_hack and
6876 deprecated_update_frame_pc_hack.
6877 * hppa-tdep.c: Ditto.
6878
6879 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6880
6881 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6882 to read_reg and update its comment. Remove regnum member.
6883 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6884 Don't call read_reg when setting in_reg. Call read_reg to get
6885 the frame base if it's in a register. Return the register number
6886 on the stack instead of in the context. Remove extra arguments
6887 to read_reg.
6888 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6889 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6890 the register number on the expression stack.
6891 (needs_frame_read_reg): Remove extra arguments.
6892
6893 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6894
6895 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6896 made non-static.
6897 (execute_stack_op): All callers updated.
6898 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6899 * dwarf2loc.c (find_location_expression): New function.
6900 (dwarf_expr_frame_base): Call it.
6901 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6902 (dwarf2_tracepoint_var_ref): New function, broken out from
6903 locexpr_tracepoint_var_ref.
6904 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6905 Make static.
6906 (loclist_read_variable, loclist_read_needs_frame): New functions.
6907 (loclist_describe_location, loclist_tracepoint_var_ref): New
6908 functions.
6909 (dwarf2_loclist_funcs): New struct location_funcs.
6910 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6911 (struct dwarf2_locexpr_baton): Add comments.
6912 (dwarf2_loclist_funcs): New extern.
6913 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6914 base_address and base_known.
6915 (dwarf_loc_buffer): New variable.
6916 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6917 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6918 (dwarf2_has_info): Initialize dwarf_loc_offset.
6919 (dwarf2_build_psymtabs): Read in .debug_loc.
6920 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6921 DWARF_LOC_SIZE.
6922 (psymtab_to_symtab_1): Likewise. Move base address calculation
6923 here, from...
6924 (dwarf2_get_pc_bounds): ... here. Use the base address from
6925 cu_header.
6926 (dwarf2_symbol_mark_computed): Handle location lists.
6927
6928 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6929
6930 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6931 if the linkage name demangled successfully.
6932
6933 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6934
6935 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6936 disassmbly_flavour): Removed.
6937
6938 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6939
6940 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6941
6942 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6943
6944 2003-04-12 Andrew Cagney <cagney@redhat.com>
6945
6946 * frame.h (struct frame_info): Move definition from here ...
6947 * frame.c (struct frame_info): ... to here.
6948
6949 2003-04-12 Andrew Cagney <cagney@redhat.com>
6950
6951 * gdbthread.h (save_infrun_state): Delete parameter
6952 "prev_func_start".
6953 (struct thread_info): Delete field "prev_func_start".
6954 (load_infrun_state): Ditto.
6955 * thread.c (load_infrun_state, save_infrun_state): Update.
6956 * infrun.c (prev_func_start): Delete variable.
6957 (context_switch, init_wait_for_inferior): Update.
6958 (stop_stepping, keep_going): Update.
6959
6960 2003-04-12 Andrew Cagney <cagney@redhat.com>
6961
6962 * gdbarch.sh: Add missing opaque declarations.
6963 * gdbarch.h: Regnerate.
6964 * symtab.h: Add missing opaque declarations.
6965 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6966 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6967 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6968 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6969 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6970 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6971 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6972 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6973 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6974 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6975 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6976 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6977 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6978
6979 2003-04-11 Andrew Cagney <cagney@redhat.com>
6980
6981 * frame.c (get_frame_id): Return this frame's "id".
6982 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6983 function start.
6984 (legacy_saved_regs_this_id): Replace function body with
6985 internal-error.
6986 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6987 FRAME_OBSTACK_ZALLOC.
6988 (create_new_frame): Mark the frame ID as valid.
6989
6990 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6991
6992 * Makefile.in (libbfd_h): Added missing setting.
6993 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6994 according to the selected ABI.
6995
6996 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6997
6998 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6999
7000 2003-04-11 Andrew Cagney <cagney@redhat.com>
7001
7002 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7003 SAVED_PC_AFTER_CALL.
7004 * gdbarch.h, gdbarch.c: Regenerate.
7005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7006 * x86-64-tdep.c (x86_64_init_abi): Update.
7007 * vax-tdep.c (vax_gdbarch_init): Update.
7008 * v850-tdep.c (v850_gdbarch_init): Update.
7009 * sparc-tdep.c (sparc_gdbarch_init): Update.
7010 * sh-tdep.c (sh_gdbarch_init): Update.
7011 * s390-tdep.c (s390_gdbarch_init): Update.
7012 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7013 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7014 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7015 * mips-tdep.c (mips_gdbarch_init): Update.
7016 * mcore-tdep.c (mcore_gdbarch_init): Update.
7017 * m68k-tdep.c (m68k_gdbarch_init): Update.
7018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7019 * ia64-tdep.c (ia64_gdbarch_init): Update.
7020 (ia64_saved_pc_after_call): Update declaration.
7021 * i386ly-tdep.c (i386lynx_init_abi): Update.
7022 * i386-tdep.c (i386_gdbarch_init): Update.
7023 * hppa-tdep.c (hppa_gdbarch_init): Update.
7024 * h8300-tdep.c (h8300_gdbarch_init): Update.
7025 * frv-tdep.c (frv_gdbarch_init): Update.
7026 * cris-tdep.c (cris_gdbarch_init): Update.
7027 * avr-tdep.c (avr_gdbarch_init): Update.
7028 * arm-tdep.c (arm_gdbarch_init): Update.
7029 * alpha-tdep.c (alpha_gdbarch_init): Update.
7030 * ns32knbsd-nat.c (frame_num_args): Update.
7031 * ns32k-tdep.c (umax_frame_num_args): Update.
7032 * mips-tdep.c (mips_init_frame_pc_first): Update.
7033 * infrun.c (step_over_function): Update.
7034 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7035 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7036 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7037 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7038 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7039 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7040 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7041 * arch-utils.c (init_frame_pc_default): Update.
7042 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7043 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7044 declaration.
7045
7046 2003-04-11 Andrew Cagney <cagney@redhat.com>
7047
7048 * i387-tdep.c: Update copyright.
7049 (i387_to_double): Delete function.
7050 (double_to_i387): Delete function.
7051
7052 2003-04-10 Andrew Cagney <cagney@redhat.com>
7053
7054 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7055 frame's function's address. Simplify.
7056 (d10v_frame_unwind_cache): Check that the frame's function is
7057 non-zero.
7058
7059 2003-04-10 Jim Blandy <jimb@redhat.com>
7060
7061 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7062 call to set_gdbarch_deprecated_push_arguments.
7063
7064 2003-04-10 Andrew Cagney <cagney@redhat.com>
7065
7066 * frame.c (fprint_frame_id): New function.
7067 (fprint_frame_type, fprint_frame): New function.
7068 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7069 (create_sentinel_frame, get_frame_id): Ditto.
7070 (frame_id_p, frame_id_eq): Ditto.
7071 (frame_id_inner, create_new_frame): Ditto.
7072 (legacy_get_prev_frame, get_prev_frame): Ditto.
7073 (deprecated_update_frame_pc_hack): Ditto.
7074 (frame_register_unwind): Ditto.
7075 (deprecated_update_frame_base_hack): Ditto.
7076
7077 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7078
7079 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7080 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7081 frame_chain function.
7082 * Makefile.in: Add dependencies due to above change.
7083
7084 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7085
7086 * blockframe.c (legacy_frame_chain_valid): Move call to
7087 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7088 inside_entry_file.
7089
7090 2003-04-09 Andrew Cagney <cagney@redhat.com>
7091
7092 * frame.h (struct frame_id): Replace "pc" and "base" with
7093 "stack_addr" and "code_addr". Update comments.
7094 (frame_id_build): Update parameter names and comment.
7095 (struct frame_info): Replace "id_p" and "id" with "this_id".
7096 * dummy-frame.c (dummy_frame_this_id): Update.
7097 * breakpoint.c (print_one_breakpoint): Update.
7098 * frame.c (get_frame_id): Update.
7099 (get_frame_base, frame_id_build): Update.
7100 (create_sentinel_frame, legacy_get_prev_frame): Update.
7101 (deprecated_update_frame_base_hack): Update.
7102 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7103 (frame_id_inner): Ditto.
7104
7105 2003-04-09 Andrew Cagney <cagney@redhat.com>
7106
7107 * defs.h (gdb_print_host_address): Make "addr" parameter a
7108 pointer constant.
7109 * utils.c (gdb_print_host_address): Update.
7110
7111 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7112
7113 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7114 register number for R0 is 0.
7115
7116 2003-04-09 J. Brobecker <brobecker@gnat.com>
7117
7118 * frame.h (struct gdbarch): Add opaque structure definition
7119 to avoid a compilation warning on LynxOS 4.0.
7120
7121 2003-04-09 Andrew Cagney <cagney@redhat.com>
7122
7123 * frame.h (struct frame_info): Delete field "pc". Replace
7124 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7125 structure.
7126 * frame.c (frame_pc_unwind): Update.
7127 (create_sentinel_frame): Do not set "pc".
7128 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7129 (get_frame_pc): Call frame_pc_unwind.
7130 (deprecated_update_frame_pc_hack): Update.
7131 (create_new_frame): Use "pc" not "->pc".
7132
7133 2003-04-09 Andrew Cagney <cagney@redhat.com>
7134
7135 * frame.c (get_frame_id): Eliminate code updating "frame".
7136 (legacy_get_prev_frame): Ditto.
7137 (get_frame_base): Return id.base directly.
7138 (deprecated_update_frame_base_hack): Update "id.base".
7139 * frame.h (struct frame_info): Delete field "frame".
7140
7141 2003-04-09 Andrew Cagney <cagney@redhat.com>
7142
7143 * NEWS: Mention that the "Sequent family" is obsolete.
7144 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7145 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7146 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7147 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7148 * config/i386/tm-ptx4.h: Obsolete file.
7149 * config/i386/tm-ptx.h: Obsolete file.
7150 * symm-tdep.c: Obsolete file.
7151 * config/i386/symmetry.mt: Obsolete file.
7152 * config/i386/tm-symmetry.h: Obsolete file.
7153 * symm-nat.c: Obsolete file.
7154 * config/i386/nm-symmetry.h: Obsolete file.
7155 * config/i386/xm-symmetry.h: Obsolete file.
7156 * config/i386/symmetry.mh: Obsolete file.
7157 * config/i386/nm-ptx4.h: Obsolete file.
7158 * config/i386/ptx4.mh: Obsolete file.
7159 * config/i386/ptx.mt: Obsolete file.
7160 * config/i386/ptx.mh: Obsolete file.
7161 * config/i386/xm-ptx4.h: Obsolete file.
7162 * config/i386/xm-ptx.h: Obsolete file.
7163
7164 2003-04-09 Andrew Cagney <cagney@redhat.com>
7165
7166 Obsolete mips*-*-mach3*.
7167 * NEWS: Mention that mips*-*-mach3* is obsolete.
7168 * m3-nat.c: Obsolete file.
7169 * config/nm-m3.h: Obsolete file.
7170 * config/mips/tm-mipsm3.h: Obsolete file.
7171 * config/mips/mipsm3.mt: Obsolete file.
7172 * config/mips/mipsm3.mh: Obsolete file.
7173 * config/mips/xm-mipsm3.h: Obsolete file.
7174 * mipsm3-nat.c: Obsolete file.
7175 * configure.host: Obsolete mips-dec-mach3*.
7176 * configure.tgt: Obsolete mips*-*-mach3*.
7177
7178 2003-04-09 Andrew Cagney <cagney@redhat.com>
7179
7180 * doublest.h: Update copyright.
7181 (deprecated_store_floating, deprecated_extract_floating): Rename
7182 store_floating and extract_floating. Update comments.
7183 * doublest.c: Update copyright.
7184 (extract_floating_by_length): Replace extract_floating.
7185 (store_floating_by_length): Replace store_floating.
7186 (deprecated_extract_floating): New function.
7187 (deprecated_store_floating): New function.
7188 (extract_typed_floating): Call extract_floating_by_length.
7189 (store_typed_floating): Call store_floating_by_length.
7190 * x86-64-tdep.c (x86_64_store_return_value): Update.
7191 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7192 (sh64_extract_return_value): Update.
7193 (sh_sh4_register_convert_to_virtual): Update.
7194 (sh_sh64_register_convert_to_virtual): Update.
7195 (sh_sh4_register_convert_to_raw): Update.
7196 (sh_sh64_register_convert_to_raw): Update.
7197 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7198 (rs6000_register_convert_to_raw): Update.
7199 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7200 (ia64_register_convert_to_raw): Update.
7201 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7202 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7203 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7204 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7205 (alpha_register_convert_to_raw): Update.
7206
7207 2003-04-08 Andrew Cagney <cagney@redhat.com>
7208
7209 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7210 * gdbarch.h, gdbarch.c: Re-generate.
7211 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7212 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7213 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7214 conditionally, use frame_pc_unwind as an alternative. Add
7215 comments.
7216 * arch-utils.c (init_frame_pc_default): Only call
7217 SAVED_PC_AFTER_CALL when available.
7218
7219 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7220
7221 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7222 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7223 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7224 (start_remote): Ditto.
7225 (handle_inferior_event): Ditto.
7226 (save_inferior_status): Ditto.
7227 (restore_inferior_status): Ditto.
7228 * infcmd.c (attach_command): Ditto.
7229 * fork-child.c (startup_inferior): Ditto.
7230 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7231 * alpha-tdep.c (heuristic_proc_start): Ditto.
7232 * mips-tdep.c (heuristic_proc_start): Ditto.
7233 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7234 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7235 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7236 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7237 * remote-vx.c (vx_create_inferior): Ditto.
7238
7239 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7240
7241 * infrun.c (stop_soon_quietly): Make it an enum, to better
7242 override the default behavior of handle_inferior_event.
7243 (clear_proceed_status): Update uses of stop_soon_quietly to
7244 reflect that it is now an enum.
7245 (start_remote): Ditto.
7246 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7247 is set to handle the new GNU/Linux kernel behavior for
7248 attach/sigstop. Update uses of stop_soon_quietly.
7249 * inferior.h (enum stop_kind): New enum.
7250 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7251 Reset normal handle_inferior_event behavior, afterwards.
7252 * fork-child.c (startup_inferior): Update.
7253 * alpha-tdep.c (heuristic_proc_start): Update.
7254 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7255 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7256 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7257 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7258 * remote-vx.c (vx_create_inferior): Update.
7259 * mips-tdep.c (heuristic_proc_start): Update.
7260
7261 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7262
7263 * disasm.c (dump_insns): Move variables inside loop, or they will
7264 be freed more than once, causing wild memory corruptions.
7265 (gdb_disassembly): Look for the substring "-thread",
7266 instead of "-threads" in the target name, to make sure to find
7267 the 'multi-thread' target. Also, make sure we do the right thing
7268 with the "core" target.
7269
7270 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7271
7272 * mips-tdep.c (mips_print_fp_register): New function, created from
7273 do_fp_register_row(). Registers are now (also) printed as hex.
7274 Only one register is printed per row.
7275 (mips_print_register, do_fp_register_row): Print floating point
7276 registers with mips_print_fp_register().
7277
7278 2003-04-06 Andrew Cagney <cagney@redhat.com>
7279
7280 * valprint.h (inspect_it): Add extern declaration.
7281 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7282 (selectors_info, classes_info): Ditto.
7283 (find_objc_msgcall): Fix indentation.
7284 (objc_printstr): Delete extern declarations.
7285
7286 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7287
7288 2003-04-06 Andrew Cagney <cagney@redhat.com>
7289
7290 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7291 Update comment.
7292 * frame.c (legacy_saved_regs_this_id): Update.
7293 (legacy_get_prev_frame): Update.
7294 * xstormy16-tdep.c: Update comment.
7295 * sparc-tdep.c (sparc_frame_chain): Update comment.
7296 * blockframe.c (legacy_frame_chain_valid): Update.
7297
7298 2003-04-06 Andrew Cagney <cagney@redhat.com>
7299
7300 * valprint.c (val_print_type_code_int): Delete #ifdef
7301 PRINT_TYPELESS_INTEGER code.
7302
7303 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7304 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7305 multi-arch definition.
7306 * gdbarch.h: Re-generate.
7307
7308 2003-04-05 Andrew Cagney <cagney@redhat.com>
7309
7310 Eliminate FRAME_FIND_SAVED_REGS.
7311 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7312 Change FSR parameter to a pointer.
7313 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7314 Assume FSR parameter is a pointer.
7315 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7316 Make fsr a pointer.
7317 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7318 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7319 saved_regs a pointer.
7320 (hppa_frame_saved_pc): Ditto.
7321 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7322 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7323 pointer.
7324 (restore_pc_queue): Make fsr a pointer.
7325 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7326 (hppa_frame_chain): Make saved_regs a pointer, call
7327 hppa_frame_init_saved_regs.
7328 * sparc-tdep.c: Include "gdb_assert.h".
7329 (sparc_frame_find_saved_regs): Replace internal_error with
7330 gdb_assert.
7331 * remote-vxsparc.c (vx_read_register): Delete reference to
7332 FRAME_FIND_SAVED_REGS.
7333 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7334 * gdbarch.h: Regenerate.
7335 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7336 (deprecated_get_frame_saved_regs): Delete declaration.
7337 (struct frame_saved_regs): Delete definition.
7338 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7339 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7340 (hppa_frame_find_saved_regs): Delete declaration.
7341 (FRAME_FIND_SAVED_REGS): Delete macro.
7342 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7343 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7344 FRAME_FIND_SAVED_REGS in comment.
7345
7346 2003-04-05 Andrew Cagney <cagney@redhat.com>
7347
7348 * frame.c (frame_func_unwind, get_frame_func): New functions.
7349 * frame.h (get_frame_func, frame_func_unwind): Declare.
7350 (struct frame_info): Add field "prev_func" for caching the
7351 previous frame's function address.
7352 * arm-tdep.c (arm_frameless_function_invocation): Combine
7353 get_pc_function_start and get_frame_pc into get_frame_func.
7354 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7355 (sh64_nofp_frame_init_saved_regs): Ditto.
7356 * s390-tdep.c (s390_function_start): Ditto.
7357 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7358 (rs6000_frameless_function_invocation): Ditto.
7359 (rs6000_frame_saved_pc): Ditto.
7360 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7361 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7362 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7363 (i386_frame_init_saved_regs): Ditto.
7364 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7365 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7366 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7367 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7368 * blockframe.c (frameless_look_for_prologue): Ditto.
7369
7370 2003-04-05 Andrew Cagney <cagney@redhat.com>
7371
7372 * frame.c (legacy_get_prev_frame): Link prev to next at the
7373 function start. Update comments.
7374
7375 2003-04-05 Andrew Cagney <cagney@redhat.com>
7376
7377 * frame.c (get_frame_id): Update comment.
7378 (legacy_get_prev_frame): Update comment.
7379 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7380 * gdbarch.h: Regenerate.
7381 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7382 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7383
7384 2003-04-05 Andrew Cagney <cagney@redhat.com>
7385
7386 * stack.c (print_frame_info): Use get_frame_pc.
7387
7388 2003-04-04 Andrew Cagney <cagney@redhat.com>
7389
7390 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7391 the frame's type from the unwinder.
7392 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7393 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7394 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7395 (get_frame_base_address): Use get_frame_type.
7396 (get_frame_locals_address, get_frame_args_address): Ditto.
7397 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7398 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7399 (struct frame_info): Add comment explaining why the frame contains
7400 a "type" field.
7401 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7402 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7403 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7404 NORMAL_FRAME.
7405 * frame-unwind.h: Include "frame.h".
7406 (struct frame_unwind): Add "type" field.
7407 * Makefile.in (frame_unwind_h): Add $(frame_h).
7408
7409 2003-04-04 Andrew Cagney <cagney@redhat.com>
7410
7411 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7412 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7413 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7414 get_frame_base.
7415 (d10v_unwind_dummy_id): Use frame_id_build.
7416 * frame.c (find_frame_sal): Use get_frame_pc.
7417 (create_new_frame): Use deprecated_update_frame_pc_hack and
7418 deprecated_update_frame_base_hack.
7419 (create_sentinel_frame): Add comment about ->pc going away.
7420 (get_prev_frame): Add comment about ->pc going away.
7421 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7422 frame_id_build, deprecated_update_frame_pc_hack and
7423 deprecated_update_frame_base_hack.
7424 (select_frame): Use get_frame_pc.
7425 (legacy_saved_regs_this_id): Use frame_id_build.
7426
7427 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7428
7429 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7430 signed integer case.
7431 (classify_argument): Handle enumerations and references.
7432
7433 2003-04-04 Andrew Cagney <cagney@redhat.com>
7434
7435 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7436 ID to NULL.
7437
7438 2003-04-01 Adam Fedor <fedor@gnu.org>
7439
7440 * gdb/objc-lang.c (selectors_info): Replace calls to
7441 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7442 SYMBOL_NATURAL_NAME.
7443 (classes_info, find_methods): Likewise.
7444
7445 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7446
7447 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7448 ``mach'' to the value determined by bfd_default_set_arch_mach().
7449
7450 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7451
7452 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7453 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7454 (mi-cmd-file.o): Update dependencies.
7455
7456 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7457
7458 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7459 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7460
7461 2003-04-01 Adam Fedor <fedor@gnu.org>
7462
7463 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7464 * language.h (struct language_defn): Add la_demangle.
7465 (language_demangle): Declare.
7466 * language.c (language_demangle): New function.
7467 (unk_lang_demangle): Likewise.
7468 (unknown_language_defn, auto_language_defn, local_language_defn):
7469 Add ukn_lang_demangle.
7470 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7471 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7472 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7473 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7474 * jv-lang.c (java_demangle): New function
7475 (java_language_defn): Use it for la_demangle element.
7476 * objc-lang.c (objc_demangle): Add options argument
7477 (objc_language_defn): Use objc_demangle for la_demangle element.
7478 * maint.c (maintenance_demangle): Replace switch with
7479 call to language_demangle.
7480 * utils.c (fprintf_symbol_filtered): Likewise.
7481
7482 2003-04-01 Andrew Cagney <cagney@redhat.com>
7483
7484 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7485 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7486 PRINT_TYPELESS_INTEGER.
7487 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7488 PUSH_RETURN_ADDRESS.
7489
7490 2003-04-01 Andrew Cagney <cagney@redhat.com>
7491
7492 * Makefile.in (d10v-tdep.o): Update dependencies.
7493 * d10v-tdep.c: Include "frame-base.h".
7494 (d10v_frame_unwind): Make constant.
7495 (d10v_frame_base_address): New function.
7496 (d10v_frame_base): New variable.
7497 (d10v_gdbarch_init): Set frame_base default.
7498 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7499 comment for base.
7500 (d10v_frame_unwind_cache): Set and use "prev_sp".
7501 (d10v_frame_this_id): Use the previous frame's inner most stack
7502 address and this frame's func address for the frame ID. Use
7503 frame_id_build. Don't analyze beyond the current instruction.
7504
7505 2003-04-01 Andrew Cagney <cagney@redhat.com>
7506
7507 * frame.h (get_frame_locals_address, get_frame_args_address):
7508 Refer to the base address, instead of the address of the first
7509 local or parameter.
7510
7511 2003-04-01 Andrew Cagney <cagney@redhat.com>
7512
7513 Add frame debug info addresses:
7514 * frame-base.c: New file.
7515 * frame-base.h: New file.
7516 * frame.h (struct frame_base): Add opaque declaration.
7517 (get_frame_base): Update comment.
7518 (get_frame_base_address): Declare.
7519 (get_frame_locals_address): Declare.
7520 (get_frame_args_address): Declare.
7521 (struct frame_info): Add "base" and "base_cache". Update
7522 comments on the unwinder.
7523 * frame.c: Include "frame-base.h".
7524 (get_frame_locals_address): New function.
7525 (get_frame_base_address): New function.
7526 (get_frame_args_address): New function.
7527 * findvar.c (read_var_value): Use get_frame_locals_address and
7528 get_frame_args_address.
7529 * stack.c (frame_info): Use get_frame_locals_address and
7530 get_frame_args_address.
7531 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7532 moved to "frame-base.c".
7533 * printcmd.c (print_frame_nameless_args): Ditto.
7534 * symtab.h (address_class): Update comments.
7535 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7536 get_frame_base_address.
7537 * dwarf2expr.c (execute_stack_op): Ditto.
7538 * Makefile.in (frame_base_h): Define.
7539 (frame.o): Update dependencies.
7540 (frame-base.o): Add dependencies.
7541 (SFILES): Add frame-base.c.
7542 (COMMON_OBS): Add frame-base.o.
7543
7544 2003-04-01 Andrew Cagney <cagney@redhat.com>
7545
7546 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7547 CALL_DUMMY_LENGTH): Ditto.
7548 * gdbarch.c: Re-generate.
7549 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7550 (CALL_DUMMY_LENGTH): Delete macro.
7551 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7552 * arm-tdep.c (arm_gdbarch_init): Ditto.
7553 * avr-tdep.c (avr_gdbarch_init): Ditto.
7554 * cris-tdep.c (cris_gdbarch_init): Ditto.
7555 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7556 * frv-tdep.c (frv_gdbarch_init): Ditto.
7557 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7558 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7559 * i386-tdep.c (i386_gdbarch_init): Ditto.
7560 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7562 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7563 * mips-tdep.c (mips_gdbarch_init): Ditto.
7564 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7565 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7566 * s390-tdep.c (s390_gdbarch_init): Ditto.
7567 * sh-tdep.c (sh_gdbarch_init): Ditto.
7568 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7569 * v850-tdep.c (v850_gdbarch_init): Ditto.
7570 * vax-tdep.c (vax_gdbarch_init): Ditto.
7571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7572
7573 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7574
7575 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7576
7577 2003-04-01 Andrew Cagney <cagney@redhat.com>
7578
7579 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7580 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7581 * gdbarch.h, gdbarch.c: Re-generate.
7582 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7583 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7584 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7585 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7586 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7587 * infcmd.c (run_stack_dummy): Simplify assuming
7588 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7589 * infrun.c (handle_inferior_event): Ditto.
7590 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7591 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7592 * arm-tdep.c (arm_gdbarch_init): Ditto.
7593 * avr-tdep.c (avr_gdbarch_init): Ditto.
7594 * cris-tdep.c (cris_gdbarch_init): Ditto.
7595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7596 * frv-tdep.c (frv_gdbarch_init): Ditto.
7597 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7598 * i386-tdep.c (i386_gdbarch_init): Ditto.
7599 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7601 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7602 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7603 * mips-tdep.c (mips_gdbarch_init): Ditto.
7604 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7605 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7606 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7607 * s390-tdep.c (s390_gdbarch_init): Ditto.
7608 * sh-tdep.c (sh_gdbarch_init): Ditto.
7609 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7610 * v850-tdep.c (v850_gdbarch_init): Ditto.
7611 * vax-tdep.c (vax_gdbarch_init): Ditto.
7612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7613
7614 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7615
7616 * symfile.c (symfile_relocate_debug_section): Update call to
7617 bfd_simple_get_relocated_section_contents.
7618
7619 2003-03-31 Andrew Cagney <cagney@redhat.com>
7620
7621 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7622 * gdbarch.h, gdbarch.c: Regenerate.
7623 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7624 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7625 available.
7626 * frame.h (generic_fix_call_dummy): Delete declaration.
7627 * dummy-frame.h: Update comment.
7628 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7629 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7630 fix_call_dummy.
7631 * sh-tdep.c (sh_gdbarch_init): Ditto.
7632 * s390-tdep.c (s390_gdbarch_init): Ditto.
7633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7634 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7636 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7637 * i386-tdep.c (i386_gdbarch_init): Ditto.
7638 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7639 * frv-tdep.c (frv_gdbarch_init): Ditto.
7640 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7641 * cris-tdep.c (cris_gdbarch_init): Ditto.
7642 * avr-tdep.c (avr_gdbarch_init): Ditto.
7643 * arm-tdep.c (arm_gdbarch_init): Ditto.
7644
7645 2003-03-31 J. Brobecker <brobecker@gnat.com>
7646
7647 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7648 (INIT_FRAME_AP): Likewise.
7649 (EXTRA_FRAME_INFO): Likewise.
7650
7651 2003-03-31 Andrew Cagney <cagney@redhat.com>
7652
7653 * gdbarch.sh: Include "symfile.h".
7654 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7655 * gdbarch.h, gdbarch.c: Re-generate.
7656 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7658 call_dummy_address, the default is at entry_point_address.
7659 * v850-tdep.c (v850_gdbarch_init): Ditto.
7660 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7661 * sh-tdep.c (sh_gdbarch_init): Ditto.
7662 * s390-tdep.c (s390_gdbarch_init): Ditto.
7663 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7664 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7665 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7666 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7667 * i386-tdep.c (i386_gdbarch_init): Ditto.
7668 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7669 * frv-tdep.c (frv_gdbarch_init): Ditto.
7670 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7671 * cris-tdep.c (cris_gdbarch_init): Ditto.
7672 * arm-tdep.c (arm_gdbarch_init): Ditto.
7673
7674 2003-03-31 Andrew Cagney <cagney@redhat.com>
7675
7676 * gdbarch.sh (CALL_DUMMY_P): Delete.
7677 * gdbarch.h, gdbarch.c: Re-generate.
7678 * inferior.h (CALL_DUMMY_P): Delete macro.
7679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7680 * vax-tdep.c (vax_gdbarch_init): Update.
7681 * v850-tdep.c (v850_gdbarch_init): Update.
7682 * sparc-tdep.c (sparc_gdbarch_init): Update.
7683 * sh-tdep.c (sh_gdbarch_init): Update.
7684 * s390-tdep.c (s390_gdbarch_init): Update.
7685 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7686 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7687 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7688 * mips-tdep.c (mips_gdbarch_init): Update.
7689 * mcore-tdep.c (mcore_gdbarch_init): Update.
7690 * m68k-tdep.c (m68k_gdbarch_init): Update.
7691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7692 * ia64-tdep.c (ia64_gdbarch_init): Update.
7693 * i386-tdep.c (i386_gdbarch_init): Update.
7694 * h8300-tdep.c (h8300_gdbarch_init): Update.
7695 * frv-tdep.c (frv_gdbarch_init): Update.
7696 * d10v-tdep.c (d10v_gdbarch_init): Update.
7697 * cris-tdep.c (cris_gdbarch_init): Update.
7698 * breakpoint.c (deprecated_frame_in_dummy): Update.
7699 * avr-tdep.c (avr_gdbarch_init): Update.
7700 * alpha-tdep.c (alpha_gdbarch_init): Update.
7701 * arm-tdep.c (arm_gdbarch_init): Update.
7702 * dummy-frame.c (dummy_frame_this_id): Update comments.
7703 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7704 * frame.c (legacy_get_prev_frame): Ditto.
7705 * valops.c (call_function_by_hand): Delete function.
7706 (hand_function_call): Rename to call_function_by_hand
7707
7708 2003-03-30 Andrew Cagney <cagney@redhat.com>
7709
7710 2002-11-10 Klee Dienes <kdienes@apple.com>
7711 * value.h (struct value): Update comment.
7712
7713 2003-03-30 Andrew Cagney <cagney@redhat.com>
7714
7715 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7716 D10V_FP_REGNUM.
7717 (d10v_gdbarch_init): Do not set fp_regnum.
7718
7719 * frame.c (get_frame_base): Force ID initialization.
7720 (get_prev_frame): Move computation of the frame ID from here ...
7721 (get_frame_id): ... to here.
7722 (legacy_get_prev_frame): Mark the frame ID as valid.
7723 * frame.h (struct frame_info): Add field "id_p".
7724
7725 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7726
7727 * i386-tdep.c (i386_store_struct_return): Removed.
7728 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7729
7730 2003-03-30 Andrew Cagney <cagney@redhat.com>
7731
7732 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7733 * gdbarch.h, gdbarch.c: Regenerate.
7734 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7736 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7737 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7738 * i386-tdep.c (i386_gdbarch_init): Ditto.
7739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7740 * cris-tdep.c (cris_gdbarch_init): Ditto.
7741 * vax-tdep.c (vax_gdbarch_init): Ditto.
7742 * s390-tdep.c (s390_gdbarch_init): Ditto.
7743 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7744 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7745 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7746 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7747 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7748 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7749 * sparc-tdep.c (sparc_gdbarch_init): Update.
7750 * sh-tdep.c (sh_gdbarch_init): Update.
7751 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7752 * mips-tdep.c (mips_gdbarch_init): Update.
7753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7754 * ia64-tdep.c (ia64_gdbarch_init): Update.
7755 * frv-tdep.c (frv_gdbarch_init): Update.
7756 * avr-tdep.c (avr_gdbarch_init): Update.
7757 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7758 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7759 instead of when push_dummy_call is not available.
7760
7761 2003-03-30 Andrew Cagney <cagney@redhat.com>
7762
7763 * infttrace.c: Include "gdbthread.h".
7764 (parent_attach_all): Fix function signature.
7765 (call_ptrace): Update call.
7766 * Makefile.in (infttrace.o): Update dependencies.
7767
7768 2003-03-30 Andrew Cagney <cagney@redhat.com>
7769
7770 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7771 PUSH_RETURN_ADDRESS.
7772 * gdbarch.h, gdbarch.c: Regenerate.
7773 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7774 * x86-64-tdep.c (x86_64_init_abi): Update.
7775 * v850-tdep.c (v850_gdbarch_init): Update.
7776 * sparc-tdep.c (sparc_gdbarch_init): Update.
7777 * sh-tdep.c (sh_gdbarch_init): Update.
7778 * s390-tdep.c (s390_gdbarch_init): Update.
7779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7780 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7781 * mips-tdep.c (mips_gdbarch_init): Update.
7782 * mcore-tdep.c (mcore_gdbarch_init): Update.
7783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7784 * ia64-tdep.c (ia64_gdbarch_init): Update.
7785 * i386-tdep.c (i386_gdbarch_init): Update.
7786 * h8300-tdep.c (h8300_gdbarch_init): Update.
7787 * frv-tdep.c (frv_gdbarch_init): Update.
7788 * cris-tdep.c (cris_gdbarch_init): Update.
7789 * avr-tdep.c (avr_gdbarch_init): Update.
7790 * arm-tdep.c (arm_gdbarch_init): Update.
7791 * valops.c (hand_function_call): Update.
7792
7793 2003-03-29 Andrew Cagney <cagney@redhat.com>
7794
7795 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7796 sizeof_call_dummy_words.
7797 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7798 define.
7799 * gdbarch.h: Regenerate.
7800
7801 2003-03-29 Andrew Cagney <cagney@redhat.com>
7802
7803 * infttrace.h: New file.
7804 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7805 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7806 (hpread_read_doc_function_type): Detect an initialized type1.
7807 (hpread_quick_traverse): Initialize mod_name_string.
7808 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7809 (som_solib_get_solib_by_pc): Declare.
7810 (so_lib_thread_start_addr): Declare.
7811 (no_shared_libraries): Declare.
7812 * somread.c (init_import_symbols): Make static. Add forward
7813 declaration.
7814 * config/pa/nm-hppah.h: Include "infttrace.h" for
7815 parent_attach_all.
7816 (hppa_insert_hw_watchpoint): Declare.
7817 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7818 * hppah-nat.c: Include "gdb_string.h".
7819 (parent_attach_all): Delete extern declaration, moved to
7820 "infttrace.h".
7821 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7822 int.
7823 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7824 * Makefile.in (infttrace_h): Define.
7825 (hpread.o): Update dependencies.
7826 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7827 * hppa-hpux-tdep.c: Include "gdb_string.h".
7828 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7829 * infrun.c (handle_inferior_event): Always initialize
7830 stepped_after_stopped_by_watchpoint. Add default and remove
7831 fallthrough in switch statement.
7832 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7833 parameter to int.
7834 (hppa_remove_hw_watchpoint): Ditto.
7835
7836 2003-03-29 Andrew Cagney <cagney@redhat.com>
7837
7838 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7839 offset.
7840
7841 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7842
7843 * arm-tdep.c (arm_push_arguments): Delete.
7844 (struct stack_item): New type.
7845 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7846 (arm_store_struct_return): Delte.
7847 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7848 arm_push_arguments or arm_store_struct_return.
7849
7850 2003-03-28 Andrew Cagney <cagney@redhat.com>
7851
7852 * Makefile.in (d10v-tdep.o): Update dependencies.
7853 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7854 * d10v-tdep.c: Include "remote.h".
7855 (target_resume_hook): Delete extern declaration.
7856 (target_wait_loop_hook): Ditto.
7857 (tdisassemble_command): Eliminate assignment in "if" conditional.
7858 (d10v_ts2_register_sim_regno): Eliminate call to
7859 legacy_register_sim_regno.
7860 (d10v_ts3_register_sim_regno): Ditto.
7861
7862 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7863
7864 * thread.c: Reindented.
7865 * lin-lwp.c: Ditto.
7866 * linux-proc.c: Ditto.
7867
7868 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7869
7870 * MAINTAINERS (write after approval): Add myself.
7871
7872 2003-03-27 Theodore A. Roth <troth@openavr.org>
7873
7874 * objc-exp.y: Add missing semi-colons.
7875
7876 2003-03-27 Andrew Cagney <cagney@redhat.com>
7877
7878 * regcache.c (write_sp): Delete function and references.
7879 * inferior.h (write_sp): Delete declaration.
7880 * valops.c (hand_function_call): Replace write_sp with
7881 TARGET_WRITE_SP.
7882 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7883 (sparc_pop_frame): Ditto.
7884
7885 2003-03-27 Andrew Cagney <cagney@redhat.com>
7886
7887 * NEWS: Mention removal of support for hppa*-*-bsd* and
7888 hppa*-*-osf* natives, and hppa*-*-pro* target.
7889 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7890 * config/pa/xm-pa.h: Obsolete file.
7891 * config/pa/xm-hppab.h: Obsolete file.
7892 * config/pa/nm-hppab.h: Obsolete file.
7893 * config/pa/tm-hppab.h: Obsolete file.
7894 * config/pa/tm-hppao.h: Obsolete file.
7895 * config/pa/nm-hppao.h: Obsolete file.
7896 * config/pa/tm-pro.h: Obsolete file.
7897 * config/pa/hppaosf.mt: Obsolete file.
7898 * config/pa/hppaosf.mh: Obsolete file.
7899 * config/pa/hppapro.mt: Obsolete file.
7900 * config/pa/hppabsd.mt: Obsolete file.
7901 * config/pa/hppabsd.mh: Obsolete file.
7902 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7903 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7904 hppa*-*-osf*.
7905
7906 2003-03-27 Andrew Cagney <cagney@redhat.com>
7907
7908 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7909 push_arguments. Don't set push_return_address or write_sp.
7910 (d10v_push_dummy_call): Replace d10v_push_arguments.
7911 (d10v_push_return_address, d10v_write_sp): Delete function,
7912 handled by push_dummy_call.
7913
7914 2003-03-26 Andrew Cagney <cagney@redhat.com>
7915
7916 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7917 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7918 regcache and dummy_addr parameters.
7919 * gdbarch.h, gdbarch.c: Re-generate.
7920 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7921 available; assume it will handle stack alignment and return
7922 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7923 legacy_push_arguments.
7924 (legacy_push_arguments): Rename default_push_arguments.
7925 * value.h (legacy_push_arguments): Rename default_push_arguments.
7926 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7927 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7928 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7929 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7930 * config/i386/tm-symmetry.h: Update.
7931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7932 * x86-64-tdep.c (x86_64_init_abi): Update.
7933 * v850-tdep.c (v850_gdbarch_init): Update.
7934 * sparc-tdep.c (sparc_gdbarch_init): Update.
7935 * sh-tdep.c (sh_gdbarch_init): Update.
7936 * s390-tdep.c (s390_gdbarch_init): Update.
7937 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7938 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7939 * mips-tdep.c (mips_gdbarch_init): Update.
7940 * mcore-tdep.c (mcore_gdbarch_init): Update.
7941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7942 * ia64-tdep.c (ia64_gdbarch_init): Update.
7943 * i386-tdep.c (i386_gdbarch_init): Update.
7944 * hppa-tdep.c (hppa_gdbarch_init): Update.
7945 * h8300-tdep.c (h8300_gdbarch_init): Update.
7946 * frv-tdep.c (frv_gdbarch_init): Update.
7947 * d10v-tdep.c (d10v_gdbarch_init): Update.
7948 * cris-tdep.c (cris_gdbarch_init): Update.
7949 * avr-tdep.c (avr_gdbarch_init): Update.
7950 * arm-tdep.c (arm_gdbarch_init): Update.
7951 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7952 * alpha-tdep.c (alpha_gdbarch_init): Update.
7953
7954 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7955
7956 * signals/signals.c (do_target_signal_to_host): Correct realtime
7957 signal range test.
7958
7959 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7960
7961 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7962 (struct sal_chain, map_catch_names): Remove.
7963 (catch_exception_command_1): Don't call
7964 handle_gnu_4_16_catch_command.
7965
7966 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7967
7968 From Mark Dettinger <dettinge@de.ibm.com>:
7969 * dwarf2cfi.c (read_2u): Increment pointer by two.
7970
7971 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7972
7973 * signals/signals.c: Fix typos in last change.
7974
7975 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7976
7977 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7978 not already defined. Use __SIGRTMIN if available.
7979 (target_signal_from_host): Remove SIGRTMIN block.
7980 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7981 the signal is within the realtime range.
7982
7983 2003-03-25 Adam Fedor <fedor@gnu.org>
7984
7985 * Makefile.in (infrun.o): Add $(language_h)
7986 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7987 for language specific trampolines.
7988 * language.h (struct language_defn): Add skip_trampoline.
7989 (skip_language_trampoline): Declare.
7990 * language.c (unk_lang_trampoline, skip_language_trampoline):
7991 New functions.
7992 (unknown_language_defn, auto_language_defn, local_language_defn):
7993 Add ukn_lang_trampoline.
7994 * ada-lang.c (ada_language_defn): Add NULL for language
7995 specific skip_trampoline.
7996 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7997 scm-lang.c: Likewise.
7998 * objc-lang.c (objc_skip_trampoline): New function.
7999 (objc_language_defn): Add objc_skip_trampoline.
8000
8001 2003-03-25 Andrew Cagney <cagney@redhat.com>
8002
8003 * frame.c (get_prev_frame): Delay validating a frame's ID -
8004 non-NULL, didn't go backwards - until an attempt to unwind it to
8005 the previous frame.
8006
8007 2003-03-25 Andrew Cagney <cagney@redhat.com>
8008
8009 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8010 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8011 * gdbarch.h, gdbarch.c: Re-generate.
8012 * config/sparc/tm-sparc.h
8013 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8014 * sparc-tdep.c (sparc_gdbarch_init): Set
8015 deprecated_extra_stack_alignment_needed.
8016 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8017 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8018 extra_stack_alignment_needed.
8019 * v850-tdep.c (v850_gdbarch_init): Ditto.
8020 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8021 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8022 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8023 * cris-tdep.c (cris_gdbarch_init): Ditto.
8024 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8026
8027 2003-03-25 Andrew Cagney <cagney@redhat.com>
8028
8029 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8030 STORE_STRUCT_RETURN.
8031 * gdbarch.h, gdbarch.c: Regenerate.
8032 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8033 (d10v_push_arguments): Set the struct return register.
8034 (d10v_gdbarch_init): Update.
8035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8036 * x86-64-tdep.c (x86_64_init_abi): Update.
8037 * vax-tdep.c (vax_gdbarch_init): Update.
8038 * v850-tdep.c (v850_gdbarch_init): Update.
8039 * sparc-tdep.c (sparc_gdbarch_init): Update.
8040 * sh-tdep.c (sh_gdbarch_init): Update.
8041 * s390-tdep.c (s390_gdbarch_init): Update.
8042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8045 * mips-tdep.c (mips_gdbarch_init): Update.
8046 * mcore-tdep.c (mcore_gdbarch_init): Update.
8047 * m68k-tdep.c (m68k_gdbarch_init): Update.
8048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8049 * ia64-tdep.c (ia64_gdbarch_init): Update.
8050 * i386-tdep.c (i386_gdbarch_init): Update.
8051 * hppa-tdep.c (hppa_gdbarch_init): Update.
8052 * h8300-tdep.c (h8300_gdbarch_init): Update.
8053 * frv-tdep.c (frv_gdbarch_init): Update.
8054 * cris-tdep.c (cris_gdbarch_init): Update.
8055 * avr-tdep.c (avr_gdbarch_init): Update.
8056 * arm-tdep.c (arm_gdbarch_init): Update.
8057 * alpha-tdep.c (alpha_gdbarch_init): Update.
8058
8059 2003-03-25 Andrew Cagney <cagney@redhat.com>
8060
8061 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8062 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8063 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8064 * gdbarch.h, gdbarch.c: Regenerate.
8065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8066 call_dummy_stack_adjust_p.
8067 * vax-tdep.c (vax_gdbarch_init): Ditto.
8068 * v850-tdep.c (v850_gdbarch_init): Ditto.
8069 * sh-tdep.c (sh_gdbarch_init): Ditto.
8070 * s390-tdep.c (s390_gdbarch_init): Ditto.
8071 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8072 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8073 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8074 * mips-tdep.c (mips_gdbarch_init): Ditto.
8075 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8076 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8078 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8079 * i386-tdep.c (i386_gdbarch_init): Ditto.
8080 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8081 * frv-tdep.c (frv_gdbarch_init): Ditto.
8082 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8083 * cris-tdep.c (cris_gdbarch_init): Ditto.
8084 * avr-tdep.c (avr_gdbarch_init): Ditto.
8085 * arm-tdep.c (arm_gdbarch_init): Ditto.
8086 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8087 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8088 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8089 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8090 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8091 call_dummy_stack_adjust_p.
8092 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8093 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8094 * sparc-tdep.c (sparc32_push_arguments): Update.
8095 * valops.c (hand_function_call): Update.
8096
8097 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8098
8099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8100 set_gdbarch_char_signed.
8101
8102 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8103
8104 PR cli/548
8105 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8106
8107 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8108
8109 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8110 (_initialize_arm_tdep): Don't set tm_print_insn.
8111
8112 2003-03-24 Adam Fedor <fedor@gnu.org>
8113
8114 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8115 * objc-lang.h: Add multiple inclusion protection.
8116 (start_msglist, add_msglist, end_msglist): Additional declarations.
8117
8118 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8119
8120 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8121 value was renamed to ARM_FLOAT_SOFT_FPA.
8122
8123 2003-03-23 Andrew Cagney <cagney@redhat.com>
8124
8125 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8126 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8127 * gdbarch.h, gdbarch.c: Regenerate.
8128 * valops.c (hand_function_call): Update.
8129 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8130 * frame.c (legacy_saved_regs_this_id): Update.
8131 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8132 * dummy-frame.h: Update.
8133 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8134 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8135 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8136 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8137 * config/m68k/tm-sun3.h: Update.
8138 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8140 * x86-64-tdep.c (x86_64_init_abi): Update.
8141 * vax-tdep.c (vax_gdbarch_init): Update.
8142 * v850-tdep.c (v850_gdbarch_init): Update.
8143 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8144 * sh-tdep.c (sh_gdbarch_init): Update.
8145 * s390-tdep.c (s390_gdbarch_init): Update.
8146 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8147 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8148 (frame_get_saved_regs): Update.
8149 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8150 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8151 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8152 * mips-tdep.c (mips_gdbarch_init): Update.
8153 * mcore-tdep.c (mcore_gdbarch_init): Update.
8154 * m68k-tdep.c (m68k_gdbarch_init): Update.
8155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8156 * ia64-tdep.c (ia64_gdbarch_init): Update.
8157 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8158 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8159 (i386_interix_back_one_frame): Update.
8160 * hppa-tdep.c (hppa_gdbarch_init): Update.
8161 (hppa_init_extra_frame_info): Update.
8162 * h8300-tdep.c (h8300_gdbarch_init): Update.
8163 * frv-tdep.c (frv_gdbarch_init): Update.
8164 * cris-tdep.c (cris_gdbarch_init): Update.
8165 * avr-tdep.c (avr_gdbarch_init): Update.
8166 * arm-tdep.c (arm_gdbarch_init): Update.
8167 * alpha-tdep.c (alpha_gdbarch_init): Update.
8168
8169 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8170
8171 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8172 (arm_get_fp_model): Declare.
8173 * arm-tdep.c (fp_model_strings): New string array.
8174 (arm_fp_model, current_fp_model): New variables.
8175 (arm_get_fp_model): New function.
8176 (arm_set_fp): New function.
8177 (set_fp_model_sfunc): New function.
8178 (show_fp_model): New function.
8179 (_initialize_arm_tdep): Add new command to set/show the FPU.
8180 (arm_extract_return_value): Use arm_get_fp_model.
8181 (arm_store_return_value): Likewise.
8182 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8183 to initialize the floating-point data types.
8184 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8185 model is FPA.
8186
8187 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8188
8189 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8190 the current setting of each value.
8191 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8192 new_set and new_show. Use add_setshow_cmd_full and
8193 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8194 commands and add new version as subcommands of "set/show arm".
8195
8196 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8197
8198 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8199 (set_arm_command, show_arm_command): New functions.
8200 (_initialize_arm_tdep): Add them.
8201 (num_disassembly_options): Renamed from num_flavor_options.
8202 (valid_disassembly_styles): Renamed from valid_flavors.
8203 (disassembly_style): Renamed from disassembly_flavor.
8204 (set_disassembly_style_sfunc): Renamed from
8205 set_disassembly_flavor_sfunc.
8206 (set_disassembly_style): Renamed from set_disassembly_flavor.
8207 (arm_othernames): Updated.
8208 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8209 command. Add "set/show arm disassembly" commands. Deprecate
8210 "othernames" command.
8211
8212 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8213
8214 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8215 (arm-tdep.o): Depend on elf_arm_h.
8216
8217 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8218
8219 * Makefile.in (coff_internal_h): Define.
8220 (arm-tdep.o): Update dependencies.
8221
8222 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8223
8224 * arm-tdep.c (prologue_cache): Delete.
8225 (check_prologue_cache, save_prologue_cache): Delete.
8226 (arm_scan_prologue): Don't check or update the prologue_cache.
8227 (arm_gdb_arch_init): Don't initialize it.
8228 (_initialize_arm_tdep): Likewise.
8229
8230 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8231
8232 * MAINTAINERS (tui): Maintainer of tui code.
8233
8234 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8235
8236 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8237 (i386-cygwin-tdep.o): Add dependencies.
8238 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8239 * i386-cygwin-tdep.c: New file.
8240 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8241 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8242
8243 2003-03-20 Andrew Cagney <cagney@redhat.com>
8244
8245 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8246 (handle_inferior_event): Remove code calling
8247 DYNAMIC_TRAMPOLINE_NEXTPC.
8248
8249 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8250 already has a full path.
8251
8252 * main.c (gdb_main): Return 1.
8253 (captured_main): Call error to report an invalid interpreter.
8254
8255 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8256 * alpha-osf1-tdep.c: Include "gdb_string.h".
8257
8258 2003-03-19 J. Brobecker <brobecker@gnat.com>
8259
8260 Continuing work to convert the hppa targets to multiarch partial.
8261
8262 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8263 method, now that hppa_push_dummy_frame has a conformant prototype.
8264 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8265 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8266 for the switch to multiarch partial.
8267
8268 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8269
8270 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8271 when iss is issNull.
8272
8273 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8274
8275 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8276 NUM_REGS bounds check.
8277
8278 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8279
8280 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8281 * mips-tdep.c (gdb_assert.h): Include.
8282 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8283 (mips_register_name): Handle integer registers explicitly. Add
8284 bounds checking.
8285 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8286 (mips_lsi33k_reg_names): Don't list integer registers; they're
8287 handled by mips_register_name() now.
8288 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8289 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8290 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8291 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8292 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8293
8294 2003-03-18 Andrew Cagney <cagney@redhat.com>
8295
8296 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8297 a void pointer.
8298 * gdbtypes.h (print_scalar_formatted): Update declaration.
8299 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8300
8301 2003-03-18 J. Brobecker <brobecker@gnat.com>
8302
8303 * infrun.c (observer.h): Add #include.
8304 (normal_stop): Add call to observer_notify_normal_stop.
8305 * Makefile.in (infrun.o): Add dependency on observer.h.
8306
8307 2003-03-18 J. Brobecker <brobecker@gnat.com>
8308
8309 Continuing work to convert the hppa targets to multiarch partial.
8310 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8311 parameter. Reformat comment.
8312 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8313 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8314 to match new profile.
8315
8316 2003-03-18 J. Brobecker <brobecker@gnat.com>
8317
8318 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8319 appear to be working in any case.
8320
8321 2003-03-18 J. Brobecker <brobecker@gnat.com>
8322
8323 * observer.c (observer_test_first_observer): New static variable.
8324 (observer_test_second_observer): Likewise.
8325 (observer_test_third_observer): Likewise.
8326 (observer_test_first_notification_function): New static function.
8327 (observer_test_second_notification_function): Likewise.
8328 (observer_test_third_notification_function): Likewise.
8329
8330 2003-03-17 J. Brobecker <brobecker@gnat.com>
8331
8332 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8333 * somsolib.c (gdb_assert.h): Likewise.
8334 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8335 (somsolib.o): Likewise.
8336
8337 2003-03-17 Andrew Cagney <cagney@redhat.com>
8338
8339 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8340 BFD. Simplify setting of di.endian.
8341
8342 2003-03-17 Andrew Cagney <cagney@redhat.com>
8343
8344 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8345 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8346
8347 From Elena Zannoni <ezannoni@redhat.com>
8348 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8349 vector and floating-point parameters.
8350 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8351 convention.
8352 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8353
8354 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8355
8356 * MAINTAINERS: Remove my name from several maintainership roles.
8357
8358 2003-03-17 Andrew Cagney <cagney@redhat.com>
8359
8360 Fix frame off-by-one bug.
8361 * frame-unwind.h (frame_this_id_ftype): Replace
8362 frame_unwind_id_ftype.
8363 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8364 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8365 with "prev_register".
8366 * frame-unwind.c (frame_unwind_find_by_pc): Return
8367 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8368 comment.
8369 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8370 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8371 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8372 (dummy_frame_unwind): Update.
8373 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8374 sentinel_frame_register_unwind.
8375 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8376 (sentinel_frame_unwinder): Update.
8377 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8378 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8379 * frame.c (create_sentinel_frame): Update. Initialize
8380 "prologue_cache" instead of "unwind_cache".
8381 (frame_register_unwind): Call this frame's prev_register with the
8382 next frame and this frame's prologue cache.
8383 (get_prev_frame): Simplify. Always call prev frame's this_id with
8384 this frame and prev frame's prologue cache. Document that this
8385 call is shifted one to the left when compared to the
8386 frame_register_unwind call.
8387 (legacy_saved_regs_prev_register): Replace
8388 frame_saved_regs_register_unwind.
8389 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8390 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8391 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8392 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8393 (d10v_frame_unwind): Update.
8394 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8395 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8396 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8397 "saved_regs" with "this_saved_regs".
8398
8399 2003-03-16 Andrew Cagney <cagney@redhat.com>
8400
8401 * frame.c (frame_pop): Don't call target_store_registers. Fix
8402 problem reported by Mark Kettenis.
8403
8404 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8405
8406 * i386-tdep.c (i386_register_type): Renamed from
8407 i386_register_virtual_type. Adjust function signature.
8408 (i386_gdbarch_init): Set register_type instead of
8409 deprecated_max_register_raw_size,
8410 deprecated_max_register_virtual_size and register_virtual_type.
8411
8412 2003-03-14 Andrew Cagney <cagney@redhat.com>
8413
8414 * frame.c (get_prev_frame): When a legacy frame, always call
8415 legacy_get_prev_frame. Simplify unwind code using assumption that
8416 the unwinder is new.
8417 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8418 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8419 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8420
8421 2003-03-14 Andrew Cagney <cagney@redhat.com>
8422
8423 * frame.c (get_saved_register): Delete function.
8424 * frame.h (get_saved_register): Delete declaration.
8425 * xstormy16-tdep.c: Update comment.
8426 * regcache.h: Update comments.
8427 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8428 get_saved_register and extract_address, use
8429 frame_read_unsigned_register.
8430 (sparc_frame_saved_pc): Ditto.
8431 (sparc_get_saved_register): Instead of get_saved_register, use
8432 frame_register.
8433 (sparc_pop_frame): Ditto.
8434 * findvar.c: Update comments.
8435 (value_of_register): Call frame_register instead of
8436 get_saved_register.
8437 (value_from_register): Ditto.
8438 * config/sparc/tm-sparc.h: Update comment.
8439 * breakpoint.c: Update comment.
8440
8441 2003-03-14 Andrew Cagney <cagney@redhat.com>
8442
8443 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8444 GET_SAVED_REGISTER.
8445 * gdbarch.h, gdbarch.c: Re-generate.
8446 * frame.h: Update comments.
8447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8448 * x86-64-tdep.c (x86_64_init_abi): Update.
8449 * sparc-tdep.c (sparc_gdbarch_init): Update.
8450 * sh-tdep.c (sh_gdbarch_init): Update.
8451 * mips-tdep.c (mips_gdbarch_init): Update.
8452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8453 * cris-tdep.c (cris_gdbarch_init): Update.
8454 * ia64-tdep.c (ia64_gdbarch_init): Update.
8455 * frame.c (frame_register): Update.
8456 (get_saved_register): Update.
8457 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8458
8459 2003-03-13 Andrew Cagney <cagney@redhat.com>
8460
8461 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8462 * gdbarch.h, gdbarch.c: Regenerate.
8463 * valops.c (hand_function_call): Update comment.
8464 * stack.c (return_command): Update comment.
8465 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8466 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8468 * x86-64-tdep.c (x86_64_init_abi): Update.
8469 * vax-tdep.c (vax_gdbarch_init): Update.
8470 * v850-tdep.c (v850_gdbarch_init): Update.
8471 * sparc-tdep.c (sparc_gdbarch_init): Update.
8472 * sh-tdep.c (sh_gdbarch_init): Update.
8473 * s390-tdep.c (s390_gdbarch_init): Update.
8474 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8475 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8477 * mips-tdep.c (mips_gdbarch_init): Update.
8478 * mcore-tdep.c (mcore_gdbarch_init): Update.
8479 * m68k-tdep.c (m68k_gdbarch_init): Update.
8480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8481 * ia64-tdep.c (ia64_gdbarch_init): Update.
8482 * i386-tdep.c (i386_gdbarch_init): Update.
8483 * hppa-tdep.c (hppa_gdbarch_init): Update.
8484 * h8300-tdep.c (h8300_gdbarch_init): Update.
8485 * frv-tdep.c (frv_gdbarch_init): Update.
8486 * cris-tdep.c (cris_gdbarch_init): Update.
8487 * avr-tdep.c (avr_gdbarch_init): Update.
8488 * arm-tdep.c (arm_gdbarch_init): Update.
8489 * alpha-tdep.c (alpha_gdbarch_init): Update.
8490
8491 2003-03-13 Andrew Cagney <cagney@redhat.com>
8492
8493 * frame.c (legacy_frame_p): New function.
8494 (get_prev_frame): Use legacy_frame_p.
8495 * frame.h (legacy_frame_p): Declare.
8496
8497 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8498
8499 * MAINTAINERS (write after approval): Alphabetically
8500 listing corrected.
8501
8502 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8503
8504 * MAINTAINERS (write after approval): Add myself.
8505
8506 2003-03-12 Andrew Cagney <cagney@redhat.com>
8507
8508 * frame.c (get_prev_frame): Rename the frame parameter to
8509 "this_frame".
8510 (get_next_frame, legacy_get_prev_frame): Ditto.
8511
8512 2003-03-12 Andrew Cagney <cagney@redhat.com>
8513
8514 * frame.c (get_current_frame): Check target_has_registers before
8515 checking target_has_stack.
8516 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8517 instead of deprecated_selected_frame.
8518 * findvar.c (value_of_register): Pass "frame", not
8519 deprecated_selected_frame, to value_of_builtin_reg.
8520
8521 2003-03-12 Andrew Cagney <cagney@redhat.com>
8522
8523 * regcache.c (regcache_cooked_write_signed): New function.
8524 (regcache_cooked_write_unsigned): New function.
8525 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8526 (regcache_cooked_read_signed): Fix regnum in range assertion.
8527 * regcache.h (regcache_cooked_write_signed): Declare.
8528 (regcache_cooked_write_unsigned): Declare.
8529
8530 2003-03-12 Andrew Cagney <cagney@redhat.com>
8531
8532 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8533 * gdbarch.h, gdbarch.c: Re-generate.
8534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8535 * x86-64-tdep.h: Update.
8536 * x86-64-tdep.c (x86_64_init_abi): Update.
8537 * v850-tdep.c (v850_gdbarch_init): Update.
8538 * sparc-tdep.c (sparc_gdbarch_init): Update.
8539 * sh-tdep.c (sh_gdbarch_init): Update.
8540 * s390-tdep.c (s390_gdbarch_init): Update.
8541 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8542 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8543 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8545 * mips-tdep.c (mips_gdbarch_init): Update.
8546 * mcore-tdep.c (mcore_gdbarch_init): Update.
8547 * m68k-tdep.c (m68k_gdbarch_init): Update.
8548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8549 * ia64-tdep.c (ia64_gdbarch_init): Update.
8550 * i386-tdep.c (i386_gdbarch_init): Update.
8551 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8552 * hppa-tdep.c (hppa_gdbarch_init): Update.
8553 * h8300-tdep.c (h8300_gdbarch_init): Update.
8554 * frv-tdep.c (frv_gdbarch_init): Update.
8555 * cris-tdep.c (cris_gdbarch_init): Update.
8556 * avr-tdep.c (avr_gdbarch_init): Update.
8557 * arm-tdep.c (arm_gdbarch_init): Update.
8558 * alpha-tdep.c (alpha_gdbarch_init): Update.
8559 * sh-tdep.c (sh_init_extra_frame_info): Update.
8560 (sh64_init_extra_frame_info): Update.
8561 * ns32knbsd-nat.c (frame_num_args): Update.
8562 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8563 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8564 (xstormy16_frame_chain_valid): Update.
8565 * vax-tdep.c (vax_saved_pc_after_call): Update.
8566 * v850-tdep.c (v850_frame_chain): Update.
8567 (v850_pop_frame): Update.
8568 (v850_init_extra_frame_info): Update.
8569 * sparc-tdep.c (setup_arbitrary_frame): Update.
8570 * ns32k-tdep.c (umax_frame_num_args): Update.
8571 * s390-tdep.c (s390_pop_frame_regular): Update.
8572 * mn10300-tdep.c (mn10300_frame_chain): Update.
8573 (mn10300_pop_frame_regular): Update.
8574 (mn10300_init_extra_frame_info): Update.
8575 * mips-tdep.c (mips_init_frame_pc_first): Update.
8576 (mips_frame_chain): Update.
8577 (mips_pop_frame): Update.
8578 * mcore-tdep.c (mcore_frame_chain): Update.
8579 (mcore_pop_frame): Update.
8580 (mcore_init_extra_frame_info): Update.
8581 * arch-utils.c (init_frame_pc_default): Update.
8582 * m68k-tdep.c (isi_frame_num_args): Update.
8583 (delta68_frame_num_args): Update.
8584 (news_frame_num_args): Update.
8585 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8586 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8587 (alpha_frame_chain): Update.
8588 (alpha_pop_frame): Update.
8589 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8590 (hppa_init_extra_frame_info): Update.
8591 (hppa_frame_chain): Update.
8592 (hppa_frame_chain_valid): Update.
8593 * cris-tdep.c (cris_init_extra_frame_info): Update.
8594 * avr-tdep.c (avr_init_extra_frame_info): Update.
8595 * arm-tdep.c (arm_frame_chain_valid): Update.
8596 (arm_init_extra_frame_info): Update.
8597 (arm_pop_frame): Update.
8598 * frame.c (frame_pc_unwind): Update.
8599 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8600 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8601 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8602 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8603 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8604 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8605
8606 2003-03-12 Andrew Cagney <cagney@redhat.com>
8607
8608 Eliminate the need for POP_FRAME.
8609 * frame.c (do_frame_unwind_register): New function.
8610 (frame_pop): When no POP_FRAME, pop the frame using register
8611 unwind and a scratch regcache.
8612 (frame_saved_regs_pop): Delete function.
8613 (trad_frame_unwinder): Update.
8614 * d10v-tdep.c (d10v_frame_pop): Delete function.
8615 (d10v_frame_unwind): Update.
8616 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8617 (sentinel_frame_unwinder): Update.
8618 * dummy-frame.c (dummy_frame_pop): Delete function.
8619 (dummy_frame_unwind): Update.
8620 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8621 (struct frame_unwind): Update.
8622
8623 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8624
8625 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8626 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8627 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8628 Do range checks on register number obtained from debugging info.
8629 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8630 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8631 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8632 mapping function.
8633 (do_fp_register_row): Fix typo which caused double type to be
8634 used when attempting to unpack a float.
8635
8636 2003-03-11 J. Brobecker <brobecker@gnat.com>
8637
8638 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8639
8640 2003-03-11 Andrew Cagney <cagney@redhat.com>
8641
8642 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8643 frame. Problem found by Corinna Vinschen.
8644
8645 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8646
8647 * doublest.c (floatformat_from_length): Accept also
8648 the real size of 'long double' type.
8649
8650 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8651
8652 From Klee Dienes <kdienes@apple.com>:
8653 * breakpoint.c (bpstat_copy): Copy the command lines as well
8654 as the old value, to match what is freed in bpstat_clear.
8655
8656 2003-03-10 David Carlton <carlton@math.stanford.edu>
8657
8658 * minsyms.c (add_minsym_to_hash_table): Replace
8659 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8660 (compare_minimal_symbols, compact_minimal_symbols)
8661 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8662 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8663 of DEPRECATED_SYMBOL_MATCHES_NAME.
8664 (lookup_minimal_symbol_solib_trampoline): Ditto.
8665
8666 2003-03-10 Andrew Cagney <cagney@redhat.com>
8667
8668 * regcache.h (regcache_cooked_read_ftype): Define.
8669 (regcache_save, regcache_restore): Add a cooked_read parameter.
8670 * regcache.c (regcache_save, regcache_restore): Update.
8671 (do_cooked_read): New function.
8672 (regcache_cpy): Pass do_cooked_read to regcache_save and
8673 regcache_restore.
8674
8675 2003-03-10 Andrew Cagney <cagney@redhat.com>
8676
8677 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8678 * gdbarch.h, gdbarch.c: Re-generate.
8679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8680 * x86-64-tdep.h: Update.
8681 * x86-64-tdep.c (x86_64_init_abi): Update.
8682 * v850-tdep.c (v850_gdbarch_init): Update.
8683 * sparc-tdep.c (sparc_gdbarch_init): Update.
8684 * sh-tdep.c (sh_gdbarch_init): Update.
8685 * s390-tdep.c (s390_gdbarch_init): Update.
8686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8687 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8688 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8689 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8690 * mips-tdep.c (mips_gdbarch_init): Update.
8691 * mcore-tdep.c (mcore_gdbarch_init): Update.
8692 * m68k-tdep.c (m68k_gdbarch_init): Update.
8693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8694 * ia64-tdep.c (ia64_gdbarch_init): Update.
8695 * i386-tdep.c (i386_gdbarch_init): Update.
8696 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8697 * hppa-tdep.c (hppa_gdbarch_init): Update.
8698 * h8300-tdep.c (h8300_gdbarch_init): Update.
8699 * frv-tdep.c (frv_gdbarch_init): Update.
8700 * cris-tdep.c (cris_gdbarch_init): Update.
8701 * avr-tdep.c (avr_gdbarch_init): Update.
8702 * arm-tdep.c (arm_gdbarch_init): Update.
8703 * alpha-tdep.c (alpha_gdbarch_init): Update.
8704 * sh-tdep.c (sh_init_extra_frame_info): Update.
8705 (sh64_init_extra_frame_info): Update.
8706 * ns32knbsd-nat.c (frame_num_args): Update.
8707 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8708 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8709 (xstormy16_frame_chain_valid): Update.
8710 * vax-tdep.c (vax_saved_pc_after_call): Update.
8711 * v850-tdep.c (v850_frame_chain): Update.
8712 (v850_pop_frame): Update.
8713 (v850_init_extra_frame_info): Update.
8714 * sparc-tdep.c (setup_arbitrary_frame): Update.
8715 * ns32k-tdep.c (umax_frame_num_args): Update.
8716 * s390-tdep.c (s390_pop_frame_regular): Update.
8717 * mn10300-tdep.c (mn10300_frame_chain): Update.
8718 (mn10300_pop_frame_regular): Update.
8719 (mn10300_init_extra_frame_info): Update.
8720 * mips-tdep.c (mips_init_frame_pc_first): Update.
8721 (mips_frame_chain): Update.
8722 (mips_pop_frame): Update.
8723 * mcore-tdep.c (mcore_frame_chain): Update.
8724 (mcore_pop_frame): Update.
8725 (mcore_init_extra_frame_info): Update.
8726 * arch-utils.c (init_frame_pc_default): Update.
8727 * m68k-tdep.c (isi_frame_num_args): Update.
8728 (delta68_frame_num_args): Update.
8729 (news_frame_num_args): Update.
8730 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8731 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8732 (alpha_frame_chain): Update.
8733 (alpha_pop_frame): Update.
8734 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8735 (hppa_init_extra_frame_info): Update.
8736 (hppa_frame_chain): Update.
8737 (hppa_frame_chain_valid): Update.
8738 * cris-tdep.c (cris_init_extra_frame_info): Update.
8739 * avr-tdep.c (avr_init_extra_frame_info): Update.
8740 * arm-tdep.c (arm_frame_chain_valid): Update.
8741 (arm_init_extra_frame_info): Update.
8742 (arm_pop_frame): Update.
8743 * frame.c (frame_pc_unwind): Update.
8744 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8745 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8746 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8747 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8748 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8749 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8750
8751 2003-03-10 Andrew Cagney <cagney@redhat.com>
8752
8753 * gdbarch.sh (gdbarch_unwind_pc): New method.
8754 * gdbarch.h, gdbarch.c: Regenerate.
8755 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8756 but use read_pc and FRAME_SAVED_PC as fall backs.
8757 (frame_saved_regs_pc_unwind): Delete function.
8758 (trad_frame_unwinder): Update.
8759 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8760 (struct frame_unwind): Update.
8761 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8762 (dummy_frame_unwind): Update.
8763 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8764 (sentinel_frame_unwinder): Update.
8765 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8766 (d10v_frame_unwind): Update.
8767 (d10v_unwind_pc): New function.
8768 (d10v_gdbarch_init): Set unwind_pc.
8769
8770 2003-03-10 Andrew Cagney <cagney@redhat.com>
8771
8772 * gdbarch.h: Re-generate.
8773
8774 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8775 PC.
8776 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8777 the PC register.
8778
8779 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8780
8781 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8782
8783 2003-03-08 Andrew Cagney <cagney@redhat.com>
8784
8785 * cli-out.c: Update copyright.
8786 (cli_out_data): Define typedef. Use instead of ui_out_data.
8787
8788 2003-03-08 Andrew Cagney <cagney@redhat.com>
8789
8790 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8791 the result.
8792
8793 2003-03-07 Andrew Cagney <cagney@redhat.com>
8794
8795 * gdbarch.sh: Don't generate two macro definitions when an
8796 undefined macro taking no arguments.
8797 * gdbarch.h: Regenerate.
8798
8799 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8800
8801 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8802 (x86_64_unwind_dummy_id): New functions.
8803 (x86_64_init_abi): Register these two new functions.
8804
8805 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8806
8807 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8808 (x86_64_skip_prologue): Move prologue detection to
8809 separate function.
8810 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8811
8812 2003-03-05 Andrew Cagney <cagney@redhat.com>
8813
8814 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8815 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8816 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8817 to use unwind_dummy_id when a dummy frame.
8818 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8819 predicate.
8820 * gdbarch.h, gdbarch.c: Regneerate.
8821
8822 2003-03-05 Andrew Cagney <cagney@redhat.com>
8823
8824 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8825 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8826 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8827 values.
8828
8829 2003-03-05 Andrew Cagney <cagney@redhat.com>
8830
8831 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8832 (struct d10v_unwind_cache): Delete field "frameless". Replace
8833 "next_addr" with "sp_offset". Add "r11_offset".
8834 (d10v_frame_unwind_cache): Update.
8835 (prologue_find_regs): Update. When "mv r11, sp", save the
8836 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8837 RN was saved in r11_offset.
8838
8839 2003-03-05 Andrew Cagney <cagney@redhat.com>
8840
8841 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8842 cached PC value in the next frame.
8843
8844 2003-03-05 Andrew Cagney <cagney@redhat.com>
8845
8846 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8847 "id_unwind_cache" with "id".
8848 (frame_id_unwind): Delete declaration.
8849 * frame.c (frame_id_unwind): Delete function.
8850 (get_prev_frame): Call the frame id unwind method directly. Store
8851 the returned next frame's ID value in NEXT_FRAME. Note that there
8852 is a problem with the wrong unwind ID being called with the wrong
8853 unwind cache.
8854
8855 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8858
8859 2003-03-05 James Ingham <jingham@apple.com>
8860 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8863 (auto_cp_abi): New variable.
8864 (current_cp_abi, num_cp_abis): Make static.
8865 (CP_ABI_MAX): Define.
8866 (cp_abis): Turn into an array.
8867 (value_virtual_fn_field): Fix formatting.
8868 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8869 takes a pointer.
8870 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8871 (list_cp_abis, _initialize_cp_abi): New functions.
8872 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8873 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8874 switch_to_cp_abi. Update prototype for register_cp_abi.
8875 * Makefile.in (cp-abi.o): Update dependencies.
8876 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8877 instead of switch_to_cp_abi.
8878 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8879 register_cp_abi.
8880 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8881 register_cp_abi.
8882 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8883
8884 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8887 * dwarf2loc.c: Include "regcache.h".
8888 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8889 register_size.
8890 * Makefile.in (dwarf2loc.o): Update dependencies.
8891
8892 2003-03-04 Theodore A. Roth <troth@openavr.org>
8893
8894 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8895 number of io registers reported by remote target is not a multiple of
8896 step.
8897
8898 2003-03-04 David Carlton <carlton@math.stanford.edu>
8899
8900 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8901 (lookup_symbol_aux_psymtabs): Update call to
8902 lookup_partial_symbol.
8903 (lookup_transparent_type, find_main_psymtab)
8904 (make_symbol_overload_list): Ditto.
8905
8906 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8907
8908 * MAINTAINERS (Write after approval): Update my email address.
8909
8910 2003-03-03 Andrew Cagney <cagney@redhat.com>
8911
8912 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8913 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8914 predicate. Replace MAX_REGISTER_RAW_SIZE.
8915 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8916 MAX_REGISTER_VIRTUAL_SIZE.
8917 * regcache.c (legacy_max_register_raw_size): New function.
8918 (legacy_max_register_virtual_size): New function.
8919 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8920 (MAX_REGISTER_RAW_SIZE): Define.
8921 (legacy_max_register_raw_size): Declare.
8922 (legacy_max_register_virtual_size): Declare.
8923 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8924 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8925 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8926 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8927 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8928 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8929 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8930 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8931 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8933 * vax-tdep.c (vax_gdbarch_init): Update.
8934 * v850-tdep.c (v850_gdbarch_init): Update.
8935 * sparc-tdep.c (sparc_gdbarch_init): Update.
8936 * sh-tdep.c (sh_gdbarch_init): Update.
8937 * s390-tdep.c (s390_gdbarch_init): Update.
8938 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8939 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8940 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8941 * mips-tdep.c (mips_gdbarch_init): Update.
8942 * mcore-tdep.c (mcore_gdbarch_init): Update.
8943 * m68k-tdep.c (m68k_gdbarch_init): Update.
8944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8945 * ia64-tdep.c (ia64_gdbarch_init): Update.
8946 * i386-tdep.c (i386_gdbarch_init): Update.
8947 * hppa-tdep.c (hppa_gdbarch_init): Update.
8948 * h8300-tdep.c (h8300_gdbarch_init): Update.
8949 * frv-tdep.c (frv_gdbarch_init): Update.
8950 * cris-tdep.c (cris_gdbarch_init): Update.
8951 * avr-tdep.c (avr_gdbarch_init): Update.
8952 * arm-tdep.c (arm_gdbarch_init): Update.
8953 * alpha-tdep.c (alpha_gdbarch_init): Update.
8954 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8955 max_register_raw_size or max_register_virtual_size.
8956
8957 2003-03-03 David Carlton <carlton@math.stanford.edu>
8958
8959 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8960 SYMBOL_MATCHES_NAME, add comment.
8961 (SYMBOL_MATCHES_NATURAL_NAME): New.
8962 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8963 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8964 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8965 * symtab.c (lookup_partial_symbol): Use
8966 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8967 unhelpful comment.
8968 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8969 SYMBOL_MATCHES_NAME.
8970 Fix for PR c++/33.
8971
8972 2003-03-03 David Carlton <carlton@math.stanford.edu>
8973
8974 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8975 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8976 by regexp matching against SYMBOL_NATURAL_NAME.
8977
8978 2003-03-03 David Carlton <carlton@math.stanford.edu>
8979
8980 * linespec.c (find_method): Extract code into collect_methods.
8981 (collect_methods): New.
8982
8983 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8984
8985 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8986 get_frame_base.
8987
8988 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8989 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8990
8991 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8992
8993 * arch-utils.c (generic_register_byte): Fix to use the loop index
8994 and not regnum when summing the size of all registers up to regnum.
8995
8996 2003-03-01 Andrew Cagney <cagney@redhat.com>
8997
8998 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8999 FRAME_INIT_SAVED_REGS.
9000 * gdbarch.h, gdbarch.c: Regenerate.
9001 * stack.c (frame_info): Update.
9002 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9003 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9004 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9005 * ns32k-tdep.c (ns32k_pop_frame): Update.
9006 * mips-tdep.c (mips_pop_frame): Update.
9007 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9008 * ia64-tdep.c (ia64_frame_chain): Update.
9009 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9010 (ia64_frameless_function_invocation): Update.
9011 (ia64_init_extra_frame_info): Update.
9012 (ia64_pop_frame_regular): Update.
9013 * frame.h (struct frame_info): Update comment.
9014 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9015 * frame.c (frame_saved_regs_register_unwind): Update.
9016 (frame_saved_regs_register_unwind): Update.
9017 (deprecated_generic_get_saved_register): Update.
9018 * cris-tdep.c: Update comment.
9019 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9020 Rename macro.
9021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9022 * x86-64-tdep.c (x86_64_init_abi): Update.
9023 * vax-tdep.c (vax_gdbarch_init): Update.
9024 * v850-tdep.c (v850_gdbarch_init): Update.
9025 * sparc-tdep.c (sparc_gdbarch_init): Update.
9026 * sh-tdep.c (sh_gdbarch_init): Update.
9027 * s390-tdep.c (s390_gdbarch_init): Update.
9028 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9029 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9030 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9031 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9032 * mips-tdep.c (mips_gdbarch_init): Update.
9033 * mcore-tdep.c (mcore_gdbarch_init): Update.
9034 * m68k-tdep.c (m68k_gdbarch_init): Update.
9035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9036 * ia64-tdep.c (ia64_gdbarch_init): Update.
9037 * i386-tdep.c (i386_gdbarch_init): Update.
9038 * frv-tdep.c (frv_gdbarch_init): Update.
9039 * avr-tdep.c (avr_gdbarch_init): Update.
9040 * arm-tdep.c (arm_gdbarch_init): Update.
9041 * alpha-tdep.c (alpha_gdbarch_init): Update.
9042
9043 2003-03-01 Andrew Cagney <cagney@redhat.com>
9044
9045 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9046 option enum and switch. When no windows, set the interpreter to
9047 INTERP_CONSOLE.
9048
9049 2003-03-01 Andrew Cagney <cagney@redhat.com>
9050
9051 * main.c (captured_main): Replace magic option characters with an
9052 enum.
9053
9054 2003-03-01 Andrew Cagney <cagney@redhat.com>
9055
9056 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9057 INIT_EXTRA_FRAME_INFO.
9058 * gdbarch.h, gdbarch.c: Regenerate.
9059 * arm-tdep.c: Update comments.
9060 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9061 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9062 * frame.h, avr-tdep.c: Ditto.
9063 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9064 (create_new_frame, legacy_get_prev_frame): Ditto.
9065 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9066 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9068 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9069 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9070 * v850-tdep.c (v850_gdbarch_init): Ditto.
9071 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9072 * sh-tdep.c (sh_gdbarch_init): Ditto.
9073 * s390-tdep.c (s390_gdbarch_init): Ditto.
9074 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9075 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9076 * mips-tdep.c (mips_gdbarch_init): Ditto.
9077 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9079 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9080 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9081 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9082 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9083 * frv-tdep.c (frv_gdbarch_init): Ditto.
9084 * cris-tdep.c (cris_gdbarch_init): Ditto.
9085 * avr-tdep.c (avr_gdbarch_init): Ditto.
9086 * arm-tdep.c (arm_gdbarch_init): Ditto.
9087 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9088 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9089
9090 2003-03-01 Andrew Cagney <cagney@redhat.com>
9091
9092 * gdbarch.sh (register_type): New function with predicate.
9093 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9094 * gdbarch.h, gdbarch.c: Re-generate.
9095 * arch-utils.c (generic_register_byte): Use generic_register_size.
9096 (generic_register_size): When available, use
9097 gdbarch_register_type.
9098 * regcache.c (init_regcache_descr): When available, initialize the
9099 register type array using gdbarch_register_type. If the
9100 architecture supplies gdbarch_register_type, do not use the legacy
9101 regcache layout.
9102 * d10v-tdep.c (d10v_register_type): Replace
9103 d10v_register_virtual_type.
9104 (d10v_gdbarch_init): Set register_type instead of
9105 register_virtual_type.
9106
9107 2003-03-01 Andrew Cagney <cagney@redhat.com>
9108
9109 * Makefile.in (ax-gdb.o): Update dependencies.
9110 * ax-gdb.c: Include "regcache.h".
9111 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9112 * findvar.c (value_of_register): Ditto.
9113 * infcmd.c (default_print_registers_info): Ditto.
9114
9115 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9116
9117 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9118 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9119
9120 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9121
9122 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9123 of STREQ.
9124
9125 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9126
9127 * Makefile.in (dwarf2loc.o): Update dependencies.
9128 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9129 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9130 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9131 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9132 (locexpr_tracepoint_var_ref): New function.
9133 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9134
9135 2003-02-28 Andrew Cagney <cagney@redhat.com>
9136
9137 * regcache.c (register_size): New function.
9138 * regcache.h (register_size): Declare
9139 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9140 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9141
9142 2003-02-28 David Carlton <carlton@math.stanford.edu>
9143
9144 * linespec.c (decode_compound): Extract code into find_method.
9145 (find_method): New.
9146
9147 2003-02-28 J. Brobecker <brobecker@gnat.com>
9148
9149 * Makefile.in: Add rules to build and link in observer.o.
9150
9151 2003-02-27 J. Brobecker <brobecker@gnat.com>
9152
9153 * observer.c: Minor comments edits.
9154
9155 2003-02-27 J. Brobecker <brobecker@gnat.com>
9156
9157 * observer.h, observer.c: New file.
9158
9159 2003-02-27 Andrew Cagney <cagney@redhat.com>
9160
9161 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9162
9163 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9164
9165 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9166 (M6812_OP_STS_EXT): Likewise.
9167 (m6811_prologue): Use the above to recognize prologue.
9168 (m6812_prologue): Likewise.
9169
9170 2003-02-27 David Carlton <carlton@math.stanford.edu>
9171
9172 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9173 SYMBOL_PRINT_NAME.
9174 (compare_psymbols): Ditto.
9175 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9176
9177 2003-02-27 Michael Snyder <msnyder@redhat.com>
9178
9179 * f-lang.c (build_fortran_types): New function.
9180 (_initialize_f_language): Gdbarch-register built-in fortran types.
9181 * doublest.c (extract_floating): Fix warning text.
9182
9183 2003-02-27 Andrew Cagney <cagney@redhat.com>
9184
9185 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9186 predicate. Replaces PUSH_DUMMY_FRAME.
9187 * gdbarch.h, gdbarch.c: Regnerate.
9188 * valops.c (hand_function_call): Update. Call
9189 generic_push_dummy_frame directly.
9190 * vax-tdep.c (vax_gdbarch_init): Update.
9191 * sparc-tdep.c (sparc_gdbarch_init): Update.
9192 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9193 * m68k-tdep.c (m68k_gdbarch_init): Update.
9194 * hppa-tdep.c (hppa_gdbarch_init): Update.
9195 * alpha-tdep.c (alpha_gdbarch_init): Update.
9196 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9197 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9198 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9200 push_dummy_frame to generic_push_dummy_frame.
9201 * v850-tdep.c (v850_gdbarch_init): Ditto.
9202 * sh-tdep.c (sh_gdbarch_init): Ditto.
9203 * s390-tdep.c (s390_gdbarch_init): Ditto.
9204 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9205 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9206 * mips-tdep.c (mips_gdbarch_init): Ditto.
9207 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9209 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9210 * i386-tdep.c (i386_gdbarch_init): Ditto.
9211 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9212 * frv-tdep.c (frv_gdbarch_init): Ditto.
9213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9214 * cris-tdep.c (cris_gdbarch_init): Ditto.
9215 * avr-tdep.c (avr_gdbarch_init): Ditto.
9216 * arm-tdep.c (arm_gdbarch_init): Ditto.
9217
9218 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9219
9220 * mips-tdep.c (show_mips_abi): New function.
9221 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9222 command ``show mips abi''.
9223
9224 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9225
9226 From Elena Zannoni <ezannoni@redhat.com>
9227 * dbxread.c (process_one_symbol): Only record line 0 if one or
9228 more sline entries have been seen for the function.
9229
9230 2003-02-26 Michael Chastain <mec@shout.net>
9231
9232 * configure: Regenerate with autoconf 000227.
9233
9234 2003-02-26 Michael Chastain <mec@shout.net>
9235
9236 Close PR build/660.
9237 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9238 for old libc5/glibc.
9239 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9240
9241 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9242
9243 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9244 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9245
9246 2003-02-26 Michael Chastain <mec@shout.net>
9247
9248 * configure.in: New variable HAVE_UINTPTR_T.
9249 * configure, config.in: Regenerated.
9250
9251 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9252
9253 Fix PR build/1097.
9254 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9255
9256 2003-02-25 Andrew Cagney <cagney@redhat.com>
9257
9258 * frame.c (get_prev_frame): Add comment on check for
9259 inside_entry_func. Only check for inside_entry_file when not a
9260 dummy and not a sentinel. Check that the new frame is not inner
9261 to the old frame.
9262
9263 2003-02-25 Andrew Cagney <cagney@redhat.com>
9264
9265 * frame.c (frame_debug): New variable.
9266 (_initialize_frame): Add "set/show debug frame" command.
9267 (get_prev_frame): When frame_debug, print reason why unwind
9268 failed.
9269
9270 2003-02-25 Michael Chastain <mec@shout.net>
9271
9272 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9273 to avoid uintptr_t definition problems.
9274
9275 2003-02-25 David Carlton <carlton@math.stanford.edu>
9276
9277 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9278 (SYMBOL_LINKAGE_NAME): Ditto.
9279 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9280 SYMBOL_LINKAGE_NAME.
9281 (struct general_symbol_info): Expand comment.
9282 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9283 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9284 (SYMBOL_MATCHES_REGEXP): Ditto.
9285 * symtab.c (symbol_natural_name): New function.
9286 * objfiles.h: Replace all uses of SYMBOL_NAME by
9287 DEPRECATED_SYMBOL_NAME.
9288 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9289 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9290 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9291 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9292 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9293 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9294 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9295 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9296 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9297 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9298 * ada-exp.y: Ditto.
9299 * ada-exp.y: Update copyright.
9300 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9301 * cp-valprint.c: Ditto.
9302
9303 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9304
9305 * infptrace.c (detach): Do not flag error if ptrace detach fails
9306 and errno is set to ESRCH.
9307
9308 2003-02-24 Andrew Cagney <cagney@redhat.com>
9309
9310 * infptrace.c (udot_info): Change type of udot_off to long. Use
9311 paddr when printing udot_off's value.
9312
9313 2003-02-24 David Carlton <carlton@math.stanford.edu>
9314
9315 * symtab.c (make_symbol_overload_list): Only read in partial
9316 symtabs containing a matching partial symbol.
9317
9318 2003-02-24 David Carlton <carlton@math.stanford.edu>
9319
9320 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9321 do the comparison, not strcmp.
9322 * symfile.c (compare_psymbols): Ditto.
9323 * defs.h: Declare strcmp_iw_ordered.
9324 * utils.c (strcmp_iw_ordered): New function.
9325
9326 2003-02-24 Jim Blandy <jimb@redhat.com>
9327
9328 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9329 support, shared libs): Remove my name from here, to better reflect
9330 reality.
9331
9332 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9333
9334 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9335 (target_ops): Add to_have_continuable_watchpoint.
9336 * target.c (update_current_target): Add INHERIT line for
9337 to_have_continuable_watchpoint.
9338 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9339 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9340 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9341 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9342
9343 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9344
9345 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9346 maintainership.
9347
9348 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9349
9350 * solib.c (solib_open): Call target defined search function after
9351 failing with solib-search-path.
9352 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9353 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9354
9355 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9356
9357 * MAINTAINERS: Add myself to Write After section.
9358
9359 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9360
9361 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9362
9363 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9364
9365 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9366 (m68hc11_add_reggroups): New function.
9367 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9368 (m68hc11_gdbarch_init): Install the reggroups.
9369 (_initialize_m68hc11_tdep): Initialize them.
9370
9371 2003-02-21 James E Wilson <wilson@tuliptree.org>
9372
9373 * MAINTAINERS: Update my email address.
9374
9375 2003-02-21 David Carlton <carlton@math.stanford.edu>
9376
9377 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9378
9379 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9380
9381 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9382 * symtab.h: Add opaque declarations of struct axs_value and
9383 struct agent_expr.
9384 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9385 (struct location_funcs): New type.
9386 (struct symbol): Add "loc" to aux_value.
9387 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9388 * dwarf2read.c: Include "dwarf2expr.h".
9389 (dwarf2_symbol_mark_computed): New function.
9390 (read_func_scope): Use it.
9391 (var_decode_location): New function.
9392 (new_symbol): Use it.
9393 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9394
9395 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9396 (dwarf2expr_h, dwarf2loc_h): New variables.
9397 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9398 (dwarf2expr.o, dwarf2loc.o): New rules.
9399 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9400 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9401 LOC_COMPUTED_ARG.
9402 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9403 * m2-exp.y (yylex): Likewise.
9404 * printcmd.c (address_info, print_frame_args): Likewise.
9405 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9406 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9407 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9408 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9409 * symtab.c (lookup_block_symbol): Likewise.
9410
9411 2003-02-20 Adam Fedor <fedor@gnu.org>
9412
9413 * symtab.h: Remove objc_specific struct
9414 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9415 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9416 Have language_objc use cplus_specific struct.
9417
9418 2003-02-20 Tom Tromey <tromey@redhat.com>
9419
9420 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9421 TYPE_NAME, when printing a String value. PR java/1075.
9422
9423 2003-02-20 Adam Fedor <fedor@gnu.org>
9424
9425 * objc-lang.h (find_methods): Remove declaration.
9426 * objc-lang.c (find_methods): Make static.
9427
9428 2003-02-20 Christopher Faylor <cgf@redhat.com>
9429
9430 * win32-nat.c (get_image_name): Check return value from
9431 ReadProcessMemory.
9432 (child_xfer_memory): Ditto.
9433
9434 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9435
9436 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9437 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9438 '${exec_prefix}' (in addition to the expansion thereof) as
9439 relocatable.
9440 * configure: Rebuilt.
9441
9442 2003-02-20 David Carlton <carlton@math.stanford.edu>
9443
9444 * symtab.c (search_symbols): Revert the search_symbols part of my
9445 2002-12-23 patch. Add comment.
9446
9447 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9450 * dbxread.c (elfstab_build_psymtabs): Don't call
9451 install_minimal_symbols.
9452 (stabsect_build_psymtabs): Likewise.
9453 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9454 earlier.
9455 * somread.c (som_symfile_read): Call install_minimal_symbols
9456 and do_cleanups earlier.
9457 * nlmread.c (nlm_symfile_read): Likewise.
9458 * mdebugread.c (elfmdebug_build_psymtabs): Call
9459 install_minimal_symbols and make appropriate cleanups.
9460
9461 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9462
9463 * solib.c (reload_shared_libraries): New function.
9464 (_initialize_solib): Add callbacks for ``set solib-search-path''
9465 and ``set solib-absolute-prefix''.
9466
9467 2003-02-20 David Carlton <carlton@math.stanford.edu>
9468
9469 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9470 expand comment.
9471 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9472 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9473 * ada-typeprint.c (ada_typedef_print): Ditto.
9474 * ax-gdb.c (gen_var_ref): Ditto.
9475 * breakpoint.c (print_one_breakpoint): Ditto.
9476 * buildsym.c (finish_block): Ditto.
9477 * c-valprint.c (c_val_print): Ditto.
9478 * expprint.c (print_subexp): Ditto.
9479 * findvar.c (locate_var_value): Ditto.
9480 * infcmd.c (jump_command): Ditto.
9481 * linespec.c (decode_line_2, decode_compound): Ditto.
9482 * maint.c (maintenance_translate_address): Ditto.
9483 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9484 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9485 Ditto.
9486 * p-valprint.c (pascal_val_print): Ditto.
9487 * stabsread.c (define_symbol): Ditto.
9488 * stack.c (print_frame, frame_info, print_block_frame_locals)
9489 (print_frame_arg_vars, return_command): Ditto.
9490 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9491 * symmisc.c (print_symbol): Ditto.
9492 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9493 (compare_search_syms, print_symbol_info, print_msymbol_info)
9494 (rbreak_command): Ditto.
9495 * tracepoint.c (tracepoints_info): Ditto.
9496 * typeprint.c (typedef_print): Ditto.
9497 * valops.c (value_of_variable, hand_function_call): Ditto.
9498 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9499 * ada-typeprint.c: Update Copyright.
9500 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9501 * tracepoint.c, cli/cli-cmds.c: Ditto.
9502
9503 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9504
9505 * frame.c (generic_unwind_get_saved_register): Make non-static.
9506 * frame.h (generic_unwind_get_saved_register): Declare.
9507 * mips-tdep.c (read_next_frame_reg): Fetch register from
9508 current regcache when frame is NULL.
9509 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9510 that must be NULL.
9511 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9512 instead of frame_register_unwind().
9513
9514 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9515
9516 * remote-sim.c (gdbsim_insert_breakpoint)
9517 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9518 code.
9519
9520 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9521
9522 * remote.c (_initialize_remote): Add commands "set/show remote
9523 hardware-watchpoint-limit" and "set/show remote
9524 hardware-breakpoint-limit".
9525 (remote_hw_watchpoint_limit): Initialize to -1.
9526 (remote_hw_breakpoint_limit): Ditto.
9527 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9528
9529 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9530
9531 * coff-pe-read.c: New file - support reading of minimal symbols from a
9532 portable executable using the export table.
9533 * coff-pe-read.h: New file.
9534 * coffread.c: Include coff-pe-read.h.
9535 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9536 debugging symbols found.
9537 * Makefile.in (SFILES): Add coff-pe-read.o.
9538 (coff_pe_read_h): Define.
9539 (COMMON_OBS): Add coff-pe-read.o.
9540 (coffread.o): Add coff_pe_read_h dependency.
9541 (coff-pe-read.o): New target.
9542
9543 2003-02-19 David Carlton <carlton@math.stanford.edu>
9544
9545 * Makefile.in (SFILES): Add block.c.
9546 (block_h): New.
9547 (COMMON_OBS): Add block.o.
9548 (block.o): New.
9549 (x86-64-tdep.o): Add $(block_h).
9550 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9551 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9552 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9553 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9554 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9555 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9556 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9557 * value.h: Add opaque declaration for struct block.
9558 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9559 * ada-lang.h: Ditto.
9560 * x86-64-tdep.c: #include "block.h"
9561 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9562 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9563 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9564 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9565 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9566 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9567 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9568 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9569 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9570 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9571 * symtab.c (block_function): Ditto.
9572 (contained_in): Ditto.
9573 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9574 block.h. Add opaque declaration for struct block.
9575 * symtab.h: Move block_function and contained_in declarations to
9576 block.h. Add opaque declarations for struct block, struct
9577 blockvector.
9578 (struct block): Move to block.h.
9579 (struct blockvector): Ditto.
9580 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9581 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9582 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9583 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9584 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9585 Ditto.
9586 * block.c: New file.
9587 * block.h: New file.
9588
9589 2003-02-19 Theodore A. Roth <troth@openavr.org>
9590
9591 * avr-tdep.c (avr_extract_return_value): Remove function.
9592 (avr_store_return_value): Remove function.
9593 (avr_extract_struct_value_address): Remove function.
9594 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9595
9596 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9597
9598 * rs6000-tdep.c: Include "gdb_assert.h".
9599 (registers_e500): Add "acc" and "spefscr".
9600 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9601 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9602 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9603 really is "r0".
9604 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9605
9606 2003-02-18 Keith Seitz <keiths@redhat.com>
9607
9608 * Makefile.in: Add gdbtk-interps.c.
9609
9610 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9611
9612 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9613 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9614
9615 2003-02-18 Andrew Cagney <cagney@redhat.com>
9616
9617 * symtab.h (struct objfile): Add opaque declaration.
9618
9619 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9620
9621 From Jim Ingham <jingham@apple.com>:
9622 * dbxread.c (process_one_symbol): Use last_function_start rather
9623 than function_start_offset to find the real beginning of the
9624 current function. The latter is just the text section offset on
9625 some systems, the former is always the real function start.
9626
9627 2003-02-17 Andrew Cagney <cagney@redhat.com>
9628
9629 * configure.in: Revert ${target} != ${host}.
9630
9631 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9632
9633 * configure.in (Makefile): Use the test ${target} != ${host},
9634 instead of the absence of the "nm.h" file, to determine of the
9635 configuration non-native.
9636 * configure: Regenerate.
9637
9638 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9639
9640 From Brian Ford <ford@vss.fsi.com>
9641
9642 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9643 conditionalize tui_active test.
9644 (lookup_cmd_1): Ditto.
9645
9646 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9647
9648 * configure.in: Add check for _etext.
9649 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9650 available.
9651 * config.in, configure: regenerated.
9652
9653 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9654
9655 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9656
9657 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9658
9659 * main.c (tui_version): Delete variable.
9660 (captured_main): When --tui, set interpreter_p to "tui" instead of
9661 enabling tui_version.
9662 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9663 tui_version.
9664 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9665 * cli/cli-cmds.c (disassemble_command): Ditto.
9666 * defs.h (tui_version): Delete declaration.
9667 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9668 (tui-interp.o): Add rules.
9669 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9670
9671 2003-02-14 Christopher Faylor <cgf@redhat.com>
9672
9673 * win32-nat.c (register_loaded_dll): Correctly set address range for
9674 just-loaded dll.
9675
9676 2003-02-12 Jason Molenda (jmolenda@apple.com)
9677
9678 * symmisc.c (print_objfile_statistics): Include information about
9679 the number of psymtabs and symtabs in each object file.
9680
9681 2003-02-13 Keith R Seitz <keiths@redhat.com>
9682
9683 * main.h (struct captured_main_args): Add interpreter_p.
9684 * main.c (captured_main): Initialize interpreter_p from context.
9685 * gdb.c (main): Set interpreter_p argument.
9686 * Makefile.in (gdb.o): Add dependency for interps.h.
9687
9688 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9689
9690 * event-top.c (cli_command_loop): Delete declaration.
9691 (_initialize_event_loop): Delete function setting event_loop_hook.
9692 * event-top.h (cli_command_loop): Declare. Update copyright.
9693 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9694 * interps.c (current_interp_command_loop): When event_loop_p, call
9695 cli_command_loop.
9696
9697 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9698
9699 * interps.h (interp_command_loop_ftype): Change return type to
9700 void.
9701
9702 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9703
9704 * x86-64-tdep.c (x86_64_extract_return_value)
9705 (x86_64_store_return_value): Use regcache instead of regbuf.
9706 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9707 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9708
9709 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9710
9711 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9712 * aclocal.m4: Regenerate.
9713 * configure: Regenerate.
9714
9715 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9716 TCL_LD_SEARCH_FLAGS.
9717
9718 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9719
9720 * dwarf2cfi.c: Reindented.
9721
9722 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9723
9724 * interps.c (clear_interpreter_hooks): Convert function definition
9725 to ISO C.
9726
9727 2003-02-07 David Carlton <carlton@math.stanford.edu>
9728
9729 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9730
9731 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9732
9733 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9734 (struct type): ...to here.
9735 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9736 field.
9737 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9738 (replace_type): Set length on all type variants for a given type.
9739
9740 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9741
9742 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9743 <sys/stat.h>.
9744 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9745
9746 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9747
9748 * Makefile.in (symm-nat.o): Update dependencies.
9749 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9750 (lynx-nat.o, ia64-linux-nat.): Ditto.
9751 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9752 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9753 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9754
9755 * Makefile.in (inflow_h): Define.
9756 (procfs.o, inflow.o, procfs.o): Update dependencies.
9757 * inftarg.c (child_stop): Delete extern declaration of
9758 inferior_process_group. Include "inflow.h".
9759 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9760 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9761 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9762 (our_process_group, inferior_process_group): Extern declarations.
9763
9764 * procfs.c: Include "gdb_assert.h".
9765
9766 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9767 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9768 * jv-typeprint.c (java_type_print_base): Ditto.
9769 * typeprint.c (typedef_print): Eliminate STREQ.
9770 * cli/cli-script.c (define_command, define_command): Ditto.
9771 * main.c (captured_main): Ditto.
9772 * values.c (lookup_internalvar): Ditto.
9773 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9774 within `if' conditional.
9775 * linespec.c (decode_line_2): Ditto.
9776 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9777 (bfd_openw_with_cleanup): Ditto.
9778
9779 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9780
9781 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9782 legacy_extract_return_value and store_return_value to
9783 legacy_return_value.
9784
9785 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9786
9787 * win32-nat.c (get_relocated_section_addrs): New function. Find
9788 section load addresses for symbol handling in relocated DLLs.
9789 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9790
9791 2003-02-05 Fred Fish <fnf@intrinsity.com>
9792
9793 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9794 '=' and '!='.
9795 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9796 with '&' and '=='.
9797 (angel_RDI_info): Ditto.
9798 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9799 with '&' and '!='.
9800 (threads_continue_all_with_signals): Ditto.
9801
9802 2003-02-05 Jim Ingham <jingham@apple.com>
9803 Keith Seitz <keiths@redhat.com>
9804 Elena Zannoni <ezannoni@redhat.com>
9805 Andrew Cagney <ac131313@redhat.com>
9806
9807 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9808 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9809 (SUBDIR_MI_OBS): Add "mi-interp.o".
9810 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9811 (SFILES): Add "interps.c".
9812 (COMMON_OBS): Add "interps.o".
9813 (interps_h, mi_main_h): Define.
9814 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9815 (mi-main.o, main.o, event-top.o): Update dependencies.
9816 * cli/cli-interp.c: New file.
9817 * interps.h, interps.c: New files.
9818 * top.c: (gdb_init): Don't install the default interpreter, handed
9819 by captured_main.
9820 * main.c: Include "interps.h".
9821 (interpreter_p): Note that it should malloc'ed.
9822 (captured_command_loop): Call current_interp_command_loop.
9823 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9824 xfree and xstrdup when updating interpreter_p. Install the
9825 default interpreter. Add hack to stop mi1's copyright notice
9826 being encoded.
9827 * event-top.h (gdb_setup_readline): Declare.
9828 (gdb_disable_readline): Declare.
9829 * event-top.c: Include "interps.h".
9830 (display_gdb_prompt): Call current_interp_display_prompt_p.
9831 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9832 gdb_stdlog, and gdb_stdtarg.
9833 (_initialize_event_loop): Don't call gdb_setup_readline.
9834 * cli-out.c (cli_out_set_stream): New function.
9835 * cli-out.h (cli_out_set_stream): Declare.
9836
9837 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9838
9839 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9840 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9841 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9842 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9843 config/i386/i386v42mp.mt: Removed.
9844
9845 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9846
9847 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9848 GDB_OSABI_SOLARIS.
9849
9850 2003-02-05 Michael Chastain <mec@shout.net>
9851
9852 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9853 2.12.1 and earlier versions.
9854
9855 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9856
9857 Remove orphaned hosts, targets and files.
9858 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9859 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9860 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9861 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9862 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9863 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9864 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9865 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9866 * config/sparc/tm-sp64sim.h: Delete.
9867 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9868 hosts.
9869 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9870 mips*-dec-mach3* targets.
9871
9872 2003-02-04 Michael Chastain <mec@shout.net>
9873
9874 * NEWS: Fix typo: sepcifying -> specifying.
9875
9876 2003-02-04 Michael Chastain <mec@shout.net>
9877
9878 * dwarfread.c: Add documentation on the state of dwarf-1,
9879 looking towards obsoletion.
9880
9881 2003-02-03 Michael Chastain <mec@shout.net>
9882
9883 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9884 gdb/testsuite/gdb.c++/pr-1023.exp.
9885
9886 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9887
9888 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9889 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9890
9891 * utils.c (init_page_info): Delete reference to MPW in comments.
9892 * main.c (captured_main): Delete #ifdef MPW.
9893
9894 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9895
9896 * NEWS: Note that the m32r-*-elf* is obsolete.
9897 * monitor.c (monitor_expect): Obsolete reference to m32r.
9898 * configure.tgt: Mark m32r-*-elf* as obsolete.
9899 * MAINTAINERS: Mark m32k as obsolete.
9900 * m32r-rom.c: Obsolete file.
9901 * config/m32r/m32r.mt: Obsolete file.
9902 * config/m32r/tm-m32r.h: Obsolete file.
9903 * m32r-stub.c: Obsolete file.
9904 * m32r-tdep.c: Obsolete file.
9905
9906 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9907
9908 * NEWS: Mention that the z8k-zilog-none is obsolete.
9909 * MAINTAINERS: Mark z8k as obsolete.
9910 * configure.tgt: Obsolete the z8k-*-coff* target.
9911 * config/z8k/z8k.mt: Obsolete file.
9912 * config/z8k/tm-z8k.h: Obsolete file.
9913 * z8k-tdep.c: Obsolete file.
9914
9915 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9916
9917 * NEWS: Mention that the mn10200-elf is obsolete.
9918 * configure.tgt: Obsolete mn10200-*-* target.
9919 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9920 mention that the mn10200 is obsolete.
9921 * breakpoint.h: Ditto.
9922 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9923 * config/mn10200/mn10200.mt: Obsolete file.
9924 * config/mn10200/tm-mn10200.h: Obsolete file.
9925 * mn10200-tdep.c: Obsolete file.
9926
9927 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9928
9929 * MAINTAINERS: Mark h8500 as obsolete.
9930 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9931 * findvar.c (value_from_register): Ditto.
9932 * h8500-tdep.c: Mark file as obsolete.
9933 * config/h8500/h8500.mt: Ditto.
9934 * config/h8500/tm-h8500.h: Ditto.
9935 * NEWS: Mention that h8500 is obsolete.
9936
9937 2003-02-04 David Carlton <carlton@math.stanford.edu>
9938
9939 * objfiles.c (allocate_objfile): Always set name. Add comment at
9940 start of function.
9941 * jv-lang.c (get_dynamics_objfile): Add comment.
9942
9943 2003-02-04 David Carlton <carlton@math.stanford.edu>
9944
9945 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9946 * printcmd.c (build_address_symbolic): Replace uses of
9947 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9948 SYMBOL_NAME, and asm_demangle.
9949 Update copyright.
9950
9951 2003-02-04 David Carlton <carlton@math.stanford.edu>
9952
9953 * linespec.c (decode_compound): Extract code into
9954 lookup_prefix_sym.
9955 (lookup_prefix_sym): New function.
9956
9957 2003-02-04 David Carlton <carlton@math.stanford.edu>
9958
9959 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9960 FLOAT_COERCION_BADNESS.
9961 * gdbtypes.c (rank_one_type): Replace all uses of
9962 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9963
9964 2003-02-04 Jim Blandy <jimb@redhat.com>
9965
9966 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9967 section, let dwarf_macinfo_section point to it, not
9968 dwarf_loc_section.
9969
9970 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9971
9972 Pointed out by Anton Blanchard <anton@samba.org>.
9973 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9974 (ppc_linux_at_sigtramp_return_path): Use it.
9975
9976 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9977
9978 * defs.h (streq): Add prototype.
9979 * utils.c (streq): New function.
9980
9981 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9982 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9983 * mdebugread.c (new_symbol): Likewise.
9984 * stabsread.c (define_symbol): Likewise.
9985 * coffread.c (process_coff_symbol): Likewise.
9986 * dwarfread.c (new_symbol): Likewise.
9987
9988 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9989 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9990 here.
9991 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9992 SYMBOL_INIT_DEMANGLED_NAME.
9993 * objfiles.c: Include "hashtab.h".
9994 (allocate_objfile): Call htab_set_functions_ex for the
9995 demangled_names_hash.
9996 (free_objfile): Call htab_delete for the demangled_names_hash.
9997 * objfiles.h (struct htab): Add declaration.
9998 (struct objfile): Add demangled_names_hash.
9999 * symfile.c: Include "hashtab.h".
10000 (reread_symbols): Call htab_delete for the demangled_names_hash.
10001 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10002 SYMBOL_NAME in the bcache.
10003 * symtab.c: Include "hashtab.h". Update comments.
10004 (create_demangled_names_hash, symbol_set_names): New functions.
10005 (symbol_find_demangled_name): New function, broken out from
10006 symbol_init_demangled_names.
10007 (symbol_init_demangled_names): Use it.
10008 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10009 (SYMBOL_SET_NAMES): New macro.
10010 (symbol_set_names): Add prototype.
10011
10012 2003-02-03 Jim Blandy <jimb@redhat.com>
10013
10014 Use a single, consistent representation for an empty minimal
10015 symbol table in an objfile.
10016 * objfiles.c (terminate_minimal_symbol_table): New function.
10017 (allocate_objfile): Call it.
10018 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10019 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10020 non-NULL.
10021 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10022 objfile has minimal symbols, compare minimal_symbol_count to zero,
10023 instead of comparing msymbols with NULL.
10024 * objfiles.c (have_minimal_symbols): Same.
10025 * solib-sunos.c (solib_add_common_symbols): Call
10026 terminate_minimal_symbol_table.
10027 * symfile.c (reread_symbols): Same.
10028
10029 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10030
10031 * s390-tdep.c (s390_address_class_type_flags)
10032 (s390_address_class_type_flags_to_name)
10033 (s390_address_class_name_to_type_flags): New functions.
10034 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10035 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10036
10037 2003-02-03 Michael Snyder <msnyder@redhat.com>
10038
10039 * arm-tdep.c: Fix spell-o in comment.
10040
10041 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10042
10043 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10044 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10045 error messages to contain BFD filename.
10046
10047 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10048
10049 Fix PR gdb/742 gdb/743 gdb/877
10050 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10051 (do_mixed_source_and_assembly): Use
10052 make_cleanup_ui_out_tuple_begin_end and
10053 make_cleanup_ui_out_tuple_begin_end.
10054 (do_mixed_source_and_assembly): Ditto.
10055 * thread.c (do_captured_list_thread_ids): Ditto.
10056 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10057 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10058 ui_out_tuple_end): Delete prototypes.
10059 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10060 ui_out_list_end, ui_out_tuple_end): Delete.
10061
10062 From Kevin Buettner <kevinb@redhat.com>:
10063 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10064 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10065 (do_cleanup_table_end): New functions.
10066 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10067 Use cleanups to invoke_ui_out_tuple_end().
10068 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10069 * cli/cli-setshow.c (cmd_show_list): Use
10070 make_cleanup_ui_out_tuple_begin_end.
10071
10072 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10073
10074 * frame.c (frame_unwind_register): New function.
10075 (frame_unwind_unsigned_register): Use.
10076 (frame_unwind_signed_register): Use.
10077 (frame_read_register): New function.
10078 * frame.h (frame_unwind_register): Declare.
10079 (frame_read_register): Declare.
10080
10081 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10082 and frame_unwind_register instead of read_memory, write_register
10083 and deprecated_write_register_bytes.
10084
10085 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10086
10087 * frame.h: Note that namelen can be negative.
10088 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10089 NAME's length.
10090
10091 * NEWS: Mention that the d10v's `regs' command is deprecated.
10092 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10093 (d10v_print_registers_info): New function.
10094 (show_regs): Call d10v_print_registers_info.
10095 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10096
10097 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10098
10099 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10100 lost in the previous patch.
10101
10102 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10103
10104 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10105 * stack.c (print_frame_info_base): Output complete FRAME tuple
10106 for synthesized frames.
10107
10108 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10109
10110 * mips-nat.c (zerobuf): Delete.
10111 (fetch_inferior_registers): Alloc local zerobuf.
10112 (fetch_core_registers): Alloc local zerobuf.
10113 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10114 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10115 * thread-db.c (thread_db_store_registers): Ditto.
10116 * sh-tdep.c (sh_do_register): Ditto.
10117 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10118 * remote-sim.c (gdbsim_store_register): Ditto.
10119 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10120 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10121 * monitor.c (monitor_supply_register): Ditto.
10122 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10123 * mips-nat.c (fetch_inferior_registers): Ditto.
10124 * m68klinux-nat.c (fetch_register): Ditto.
10125 * lynx-nat.c (fetch_inferior_registers): Ditto.
10126 (fetch_inferior_registers): Ditto.
10127 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10128 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10129 (hpux_thread_store_registers): Ditto.
10130 * hppah-nat.c (fetch_register): Ditto.
10131 * hppab-nat.c (fetch_register): Ditto.
10132 * hppa-tdep.c (pa_register_look_aside): Ditto.
10133 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10134 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10135
10136 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10137
10138 * gdbarch.sh: Explictly specify all method levels. When a
10139 variable with an empty level, provide a non-multi-arch default.
10140 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10141 * gdbarch.h: Re-generate.
10142 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10143 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10144
10145 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10146
10147 * defs.h (host_pointer_to_address): Delete declaration.
10148 (address_to_host_pointer): Delete declaration.
10149 * utils.c (host_pointer_to_address): Delete function.
10150 (address_to_host_pointer): Delete function.
10151 * procfs.c (procfs_address_to_host_pointer): New function.
10152 * procfs.c (proc_set_watchpoint): Use.
10153 (procfs_can_use_hw_breakpoint): Update comments.
10154 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10155 (som_solib_add): Use.
10156 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10157 * hppa-tdep.c (unwind_command): Use.
10158
10159 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10160
10161 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10162 strlen d_name.
10163
10164 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10165 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10166 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10167 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10168 (define_symbol): Update.
10169 * symfile.c (generic_load): Remove references to nindy.
10170 * symtab.c: Remove references to nindy.
10171
10172 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10173
10174 * infcmd.c (print_float_info): Delete code conditional on
10175 FLOAT_INFO.
10176 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10177 * config/m68k/nm-apollo68b.h: Ditto.
10178 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10179 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10180 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10181
10182 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10183
10184 * config/i386/tm-i386os9k.h: Removed.
10185
10186 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10187 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10188 they're identical to i[3456]86-*-sysv* now.
10189 * config/i386/i386v32.mh: Removed.
10190 * config/i386/xm-i386v32.h: Removed.
10191 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10192
10193 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10194
10195 * config/i386/i386dgux.mh: Removed.
10196 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10197
10198 * configure.in: Fix typo.
10199 * configure: Regenerated.
10200
10201 2003-01-31 David Carlton <carlton@math.stanford.edu>
10202
10203 * dwarf2read.c (dwarf2_locate_sections): Set
10204 dwarf_ranges_section.
10205
10206 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10207
10208 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10209 * utils.c: Update comments documenting legitimate uses of PTR.
10210
10211 * utils.c: Re-indent.
10212
10213 * config/djgpp/fnchange.lst: Delete nindy files.
10214 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10215 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10216 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10217 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10218 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10219 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10220 * Makefile.in (init.c): Remove nindy references.
10221 (saber_gdb): Delete rule.
10222 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10223 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10224 and a68v-nat.c.
10225 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10226 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10227 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10228 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10229 nindy-share/stop.h.
10230 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10231 * saber.suppress: Delete file.
10232
10233 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10234
10235 * dbxread.c (stabs_data): New static variable.
10236 (fill_symbuf): Support an in-memory buffer for stabs data.
10237 (stabs_seek): New function.
10238 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10239 (read_ofile_symtab): Use stabs_seek.
10240 (elfstab_build_psymtabs): Take an asection* instead of
10241 an offset and size. Relocate the stabs data if necessary.
10242 Save the section* for dbx_psymtab_to_symtab.
10243 * dwarf2read.c: Add section variables for each debug section.
10244 (dwarf2_locate_sections): Fill them in.
10245 (dwarf2_read_section): Take an asection* argument.
10246 Relocate the section contents if necessary.
10247 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10248 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10249 it to dwarf2_read_section.
10250 (dwarf2_build_frame_info): Update callers.
10251 * elfread.c (elf_symfile_read): Update call to
10252 elfstab_build_psymtabs.
10253 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10254 (DBX_STAB_SECTION): New macro.
10255 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10256 * symfile.c (symfile_dummy_outputs): New function.
10257 (symfile_relocate_debug_section): New function.
10258 * symfile.h (symfile_relocate_debug_section): Add prototype.
10259
10260 2003-01-31 Richard Henderson <rth@redhat.com>
10261
10262 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10263 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10264 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10265 * alpha-tdep.c (alpha_register_name): Add "unique".
10266 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10267 (ALPHA_UNIQUE_REGNUM): New.
10268 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10269
10270 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10271
10272 * README: Remove reference to Ericsson 1800 monitor.
10273 * Makefile.in (remote-es.o): Delete rule.
10274 (ALLDEPFILES): Delete remote-es.c.
10275 * remote-es.c: Delete file.
10276 * config/m68k/es1800.mt: Delete file.
10277 * config/djgpp/fnchange.lst: Update.
10278 * configure.tgt: Delete m68*-ericsson-* target.
10279
10280 2003-01-31 Adam Fedor <fedor@gnu.org>
10281
10282 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10283 Remove duplicate/shadowing variable of same name.
10284
10285 2003-01-30 Jim Blandy <jimb@redhat.com>
10286
10287 * symfile.c (find_separate_debug_file): Assert that the objfile's
10288 directory name we compute ends with a slash, and then assume that
10289 that's so everywhere we use it.
10290
10291 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10292
10293 * valops.c (value_assign): Flush frame cache after stores to memory
10294 also.
10295
10296 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10297
10298 * Makefile.in (mon960-rom.o): Delete rule.
10299 * mon960-rom.c: Delete file.
10300
10301 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10302
10303 * d10v-tdep.c: Include "frame-unwind.h".
10304 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10305 list.
10306 (next_addr, uses_frame): Delete.
10307 (struct d10v_unwind_cache): Define.
10308 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10309 Use info instead of next_addr and uses_frame globals.
10310 (d10v_frame_init_saved_regs): Delete function.
10311 (d10v_init_extra_frame_info): Delete function.
10312 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10313 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10314 init_frame_pc or frame_saved_pc.
10315 (d10v_pop_frame): Delete function.
10316 (do_d10v_pop_frame): Delete function.
10317 (d10v_frame_chain): Delete function.
10318 (d10v_frame_chain_valid): Delete function.
10319 (d10v_frame_pc_unwind): New function.
10320 (d10v_frame_id_unwind): New function.
10321 (saved_regs_unwinder): New function.
10322 (d10v_frame_register_unwind): New function.
10323 (d10v_frame_pop): New function.
10324 (d10v_frame_unwind): New variable.
10325 (d10v_frame_p): New function.
10326 (d10v_frame_saved_pc): Delete function.
10327 * Makefile.in (d10v-tdep.o): Update dependencies.
10328
10329 2003-01-30 J. Brobecker <brobecker@gnat.com>
10330
10331 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10332 causing some regressions due to a change in the default value
10333 for this macro.
10334
10335 2003-01-29 Richard Henderson <rth@redhat.com>
10336 Elena Zannoni <ezannoni@redhat.com>
10337 Daniel Jacobowitz <drow@mvista.com>
10338
10339 Fix PR gdb/961.
10340 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10341 variables.
10342 (RANGES_SECTION): New.
10343 (dwarf_ranges_buffer): New variable.
10344 (struct comp_unit_head): Add member "die".
10345 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10346 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10347 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10348 (dwarf2_locate_sections): Likewise.
10349 (dwarf2_build_psymtabs): Read .debug_ranges.
10350 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10351 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10352 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10353 Look for DW_AT_ranges and return the bounding box.
10354
10355 2003-01-29 Brian Ford <ford@vss.fsi.com>
10356
10357 * win32-nat.c (cygwin_pid): Removed as unused.
10358 (child_attach): Try fall back to Cygwin pid.
10359
10360 2003-01-29 Jim Blandy <jimb@redhat.com>
10361
10362 * objfiles.h (struct objfile): Doc fix.
10363
10364 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10365
10366 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10367 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10368 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10369 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10370 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10371 (FRAME_SAVED_PC): Change to a function with predicate.
10372 * gdbarch.h, gdbarch.c: Re-generate.
10373
10374 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10375
10376 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10377
10378 * complaints.c (complain): Delete function.
10379 * complaints.h (struct deprecated_complaint): Delete definition.
10380 (complain): Delete declaration.
10381
10382 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10383
10384 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10385 dummy frames.
10386
10387 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10388
10389 * sentinel-frame.h, sentinel-frame.c: New files.
10390 * Makefile.in (frame.o): Update dependencies.
10391 (SFILES): Add sentinel-frame.c.
10392 (sentinel_frame_h): Define.
10393 (COMMON_OBS): Add sentinel-frame.o.
10394 (sentinel-frame.o): Specify dependencies.
10395 * frame.c: Include "sentinel-frame.h".
10396 (frame_register_unwind): Rewrite assuming that there is always a a
10397 ->next frame.
10398 (frame_register, generic_unwind_get_saved_register): Ditto.
10399 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10400 (create_sentinel_frame, unwind_to_current_frame): New functions.
10401 (get_current_frame): Rewrite using create_sentinel_frame and
10402 unwind_to_current_frame. When possible, always create a frame.
10403 (create_new_frame): Set next to the sentinel frame.
10404 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10405 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10406 ID cache when necessary.
10407 (frame_saved_regs_id_unwind): Use frame_relative_level.
10408 (deprecated_generic_get_saved_register): Use frame_relative_level,
10409 get_frame_saved_regs, get_frame_pc, get_frame_base and
10410 get_next_frame.
10411 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10412 frame_register.
10413
10414 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10415
10416 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10417
10418 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10419
10420 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10421 (maintenance_set_profile_cmd): Use error () instead of warning ().
10422
10423 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10424
10425 * configure.in: Check that -pg works if using --enable-profiling.
10426 Check for monstartup and _mcleanup regardless of --enable-profiling.
10427 * maint.c: Check for monstartup and _mcleanup before using them.
10428 * config.in: Regenerated.
10429 * configure: Regenerated.
10430
10431 2003-01-24 Nick Clifton <nickc@redhat.com>
10432
10433 * Add sh2e support:
10434
10435 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10436
10437 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10438 (sh2e_show_regs): New.
10439 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10440 * config/sh/tm-sh.h: Added sh2e to comments.
10441
10442 2003-01-23 Jim Blandy <jimb@redhat.com>
10443
10444 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10445 symbols found)" message here; we haven't checked for a separate
10446 debug info file yet, so we don't know yet.
10447 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10448 we've looked everywhere. Also, there's no need to print a special
10449 message when we're loading the separate debug info file: the one
10450 symbol_file_add prints is fine.
10451
10452 2003-01-23 Alexander Larsson <alexl@redhat.com>
10453 Jim Blandy <jimb@redhat.com>
10454
10455 Add support for executables whose debug info has been separated
10456 out into a separate file, leaving only a link behind.
10457 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10458 and separate_debug_objfile_backlink.
10459 (put_objfile_before): New declaration.
10460 * symfile.c: #include "filenames.h".
10461 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10462 debug info in a separate file, read that, too. Save the addrs
10463 argument, so we can use it again to read the separated debug info;
10464 syms_from_objfile modifies the table we pass it.
10465 (reread_symbols): After re-reading an objfile, call
10466 reread_separate_symbols to refresh its separate debug info
10467 objfile, if it has one.
10468 (reread_separate_symbols, find_separate_debug_file,
10469 get_debug_link_info, separate_debug_file_exists): New functions.
10470 (debug_file_directory): New global var.
10471 (_initialize_symfile): Initialize debug_file_directory, and
10472 provide the new `set debug-file-directory' command to let the user
10473 change it.
10474 * objfiles.c (free_objfile): If this objfile has its debug info in
10475 a separate objfile, free that one too. If this is itself a
10476 separate debug info objfile, clear our parent's backlink.
10477 (put_objfile_before): New function.
10478 * utils.c (gnu_debuglink_crc32): New function.
10479 * defs.h (gnu_debuglink_crc32): New declaration.
10480 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10481 * configure.in: Handle --with-separate-debug-dir config option.
10482 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10483 * acconfig.h (DEBUGDIR): New macro.
10484 * configure, aclocal.m4, config.in: Regenerated.
10485
10486 2003-01-22 Jim Blandy <jimb@redhat.com>
10487
10488 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10489 like the old symbol_file_add, but taking new arguments: you can
10490 now pass in either a `struct section_addr_info' list to say where
10491 each section is loaded, or a `struct section_offsets' table. Pass
10492 these new arguments through to syms_from_objfile as appropriate.
10493 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10494 with the appropriate quiescent values for the new arguments.
10495
10496 * symfile.c: #include "gdb_assert.h".
10497 (syms_from_objfile): Add the ability to pass in a section offset
10498 table directly, as an alternative to the section_addr_info table.
10499 Document arguments better.
10500 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10501 * symfile.h (syms_from_objfile): Update declaration.
10502 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10503 syms_from_objfile.
10504 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10505
10506 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10507
10508 Original patch by Tom Tromey <tromey@cygnus.com> and
10509 Jason Molenda <jmolenda@apple.com>.
10510 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10511 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10512 * NEWS: Mention profiling.
10513 * configure.in (--enable-gdbtk): Fix typo.
10514 (--enable-profiling): New. Set PROFILE_CFLAGS.
10515 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10516 Fill in function.
10517 (profiling_state): New variable.
10518 (mcleanup_wrapper): New function.
10519 (_initialize_maint): Remove NOTYET, fix call to
10520 add_setshow_boolean_cmd for "maint set profile".
10521 * configure: Regenerated.
10522
10523 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10524
10525 * Makefile.in (install-gdbtk): Install PNG images too.
10526
10527 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10528
10529 * exec.c (text_start): Delete global variable.
10530 (exec_file_attach): Make text_start local to the function.
10531 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10532 * valops.c (hand_function_call): Delete code that handles
10533 BEFORE_TEXT_END and AFTER_TEXT_END.
10534 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10535 of CALL_DUMMY_LOCATION.
10536 * gdbarch.c: Regenerate.
10537 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10538 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10539 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10540 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10541 (text_end): Delete extern declaration.
10542
10543 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10544
10545 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10546 * blockframe.c (backtrace_below_main): Move to "frame.c".
10547 (frame_chain_valid): Delete check for backtrace_below_main.
10548 (_initialize_blockframe): Delete initialization, move ``set
10549 backtrace-below-main'' command to "frame.c".
10550 (do_flush_frames_sfunc): Delete function.
10551 * frame.c: Include "command.h" and "gdbcmd.h".
10552 (frame_type_from_pc): New function.
10553 (create_new_frame): Use frame_type_from_pc.
10554 (legacy_get_prev_frame): New function.
10555 (get_prev_frame): Rewrite. When an old style frame, call
10556 legacy_get_prev_frame. Otherwize, unwind the PC first.
10557 (_initialize_frame): Add ``set backtrace-below-main'' command.
10558 * Makefile.in (frame.o): Update dependencies.
10559
10560 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10561
10562 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10563 DEPRECATED_REGISTERS_INFO.
10564
10565 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10566
10567 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10568 Maintainers'. Update `Various Maintainers'.
10569
10570 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10571
10572 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10573 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10574 Suppress actual parameters when `-'.
10575 * gdbarch.h, gdbarch.c: Regenerate.
10576
10577 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10578
10579 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10580 code handling dummy frames.
10581
10582 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10583
10584 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10585 (struct frame_unwind): Add field pop.
10586 * frame.h (frame_pop): Declare.
10587 * frame.c (frame_saved_regs_pop): New function.
10588 (trad_frame_unwinder): Add frame_saved_regs_pop.
10589 (frame_pop): New function.
10590 * dummy-frame.c (dummy_frame_pop): New function.
10591 (discard_innermost_dummy): New function.
10592 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10593 (dummy_frame_unwind): Add dummy_frame_pop.
10594 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10595 * valops.c (hand_function_call): Ditto.
10596 * stack.c (return_command): Ditto.
10597
10598 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10599
10600 * cris-tdep.c: Fix function declaration indentation.
10601 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10602 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10603 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10604 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10605 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10606 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10607
10608 2003-01-18 Michael Chastain <mec@shout.net>
10609
10610 * README (Unpacking and Installation -- quick overview):
10611 Warn against ".../gdb-5.3/gdb/configure".
10612
10613 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10614
10615 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10616 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10617 (struct frame_unwind): Declare opaque.
10618 (dummy_frame_p): Declare function.
10619 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10620 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10621 * dummy-frame.c: Include "frame-unwind.h".
10622 (dummy_frame_p): New function.
10623 (dummy_frame_unwind): New variable.
10624 * frame.c: Include "frame-unwind.h".
10625 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10626 to use the new unwind field.
10627 (set_unwind_by_pc): Delete function.
10628 (create_new_frame, get_prev_frame): Set unwind field using
10629 frame_unwind_find_by_pc.
10630 (trad_frame_unwind, trad_frame_unwinder): New variables.
10631 * frame.h (trad_frame_unwind): Declare variable.
10632 (frame_id_unwind_ftype): Delete declaration.
10633 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10634 (struct frame_unwind): Declare opaque.
10635 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10636 register_unwind with a single unwind pointer.
10637 * frame-unwind.h, frame-unwind.c: New files.
10638 * Makefile.in (SFILES): Add frame-unwind.c.
10639 (frame_unwind_h): Define.
10640 (COMMON_OBS): Add frame-unwind.o.
10641 (frame-unwind.o): Specify dependencies.
10642 (frame.o, dummy-frame.o): Update dependencies.
10643
10644 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10645
10646 * ada-valprint.c: Eliminate PTR.
10647 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10648 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10649 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10650 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10651 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10652 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10653 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10654
10655 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10656
10657 * main.c (captured_main): Don't use PTR.
10658 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10659 * gdbtypes.c (lookup_primitive_typename): Ditto.
10660 (lookup_struct_elt_type): Ditto.
10661 * f-valprint.c (info_common_command): Ditto.
10662 (list_all_visible_commons): Ditto.
10663 * jv-typeprint.c (java_type_print_base): Ditto.
10664
10665 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10666 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10667 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10668 i386-interix-nat.c and i386-interix-tdep.c. Rename
10669 m68klinux-nat.c and m68klinux-tdep.c. Rename
10670 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10671 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10672 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10673 * main.c (captured_main): Use xfree, not free.
10674
10675 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10676
10677 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10678 ID back using a parameter.
10679 * frame.c (frame_id_unwind): Update call.
10680 (frame_saved_regs_id_unwind): Update.
10681 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10682 * dummy-frame.h (struct frame_id): Add opaque declaration.
10683 (dummy_frame_id_unwind): Update declaration.
10684
10685 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10686
10687 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10688
10689 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10690
10691 * MAINTAINERS (Stephen P. Smith): Updated email address.
10692
10693 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10694
10695 Fix PR gdb/898
10696 * breakpoint.c (until_break_command): Add new argument. Use it to
10697 decide whether to stop only at the current frame or not.
10698 * breakpoint.h (until_break_command): Update prototype.
10699 * infcmd.c (until_command): Add new argument to until_break_command
10700 call.
10701 (advance_command): New function.
10702 (_initialize_infcmd): Update help string for 'until' command.
10703 Add new 'advance' command.
10704
10705 2003-01-14 David Carlton <carlton@math.stanford.edu>
10706
10707 * linespec.c (decode_line_1): Normalize comments.
10708 (set_flags): Ditto.
10709 (locate_first_half): Ditto.
10710 (decode_compound): Ditto.
10711 (symtab_from_filename): Ditto.
10712 (decode_all_digits): Ditto.
10713 (decode_dollar): Ditto.
10714 (find_methods): Ditto.
10715 (find_toplevel_char): Ditto.
10716
10717 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10718
10719 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10720 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10721 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10722 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10723 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10724 * language.c, language.h, m32r-tdep.c: Update copyright.
10725 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10726 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10727 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10728 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10729 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10730 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10731
10732 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10733
10734 * stabsread.h (process_later, resolve_cfront_continuation):
10735 Obsolete.
10736 Update copyright years.
10737 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10738 Update copyright year.
10739 * dbxread.c(struct cont_elem): Obsolete.
10740 (process_later, process_now): Obsolete functions.
10741 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10742 Update copyright year.
10743 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10744 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10745 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10746 (parse_partial_symbols): Obsolete cfront support.
10747 * stabsread.c
10748 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10749 macros.
10750 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10751 read_cfront_baseclasses, read_cfront_member_functions,
10752 resolve_cfront_continuation,read_cfront_static_fields,
10753 copy_cfront_struct_fields): Obsolete functions.
10754 (define_symbol, read_one_struct_field): Obsolete cfront support.
10755 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10756 Update Copyright year.
10757
10758 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10759
10760 * stack.c (print_frame_info, print_stack_frame_base_stub,
10761 print_stack_frame_base, show_and_print_stack_frame_stub,
10762 show_and_print_stack_frame, print_only_stack_frame_stub,
10763 print_only_stack_frame): Delete functions.
10764 (print_stack_frame_stub): Call print_frame_info instead of
10765 print_frame_info_base.
10766 (print_frame_info_base): Rename to print_frame_info.
10767 (backtrace_command_1): Call print_frame_info, instead of
10768 print_frame_info_base.
10769 (current_frame_command): Call print_stack_frame, instead of
10770 print_only_stack_frame.
10771 (frame_command): Call print_stack_frame, instead of
10772 show_and_print_stack_frame.
10773 (up_command): Ditto.
10774 (down_command): Ditto.
10775 * frame.h (print_only_stack_frame): Delete prototype.
10776 * infrun.c (normal_stop): Call print_stack_frame, instead of
10777 show_and_print_stack_frame.
10778 * thread.c (info_threads_command): Call print_stack_frame, instead
10779 of print_only_stack_frame.
10780
10781 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10782
10783 * README (Graphical interface to GDB): Update URL. Point at
10784 gdb/links/.
10785
10786 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10787 version match.
10788
10789 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10792 lines.
10793
10794 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10795
10796 * thread-db.c (attach_thread): Prototype.
10797 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10798 thread information (ti), and valid flags (th_valid, ti_valid).
10799 (attach_thread): Move target_pid_to_str call to after the thread
10800 is added to GDB's list. Initialize the cache.
10801 (thread_get_info_callback, thread_db_map_id2thr)
10802 (thread_db_get_info): New functions.
10803 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10804 (thread_db_store_registers, thread_db_thread_alive)
10805 (thread_db_get_thread_local_address): Use them.
10806 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10807 of calling error() for threads in unknown state.
10808
10809 (clear_lwpid_callback): New function.
10810 (thread_db_resume): Use it to clear the cache.
10811
10812 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10813
10814 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10815 (resume_callback): Remove dead code.
10816
10817 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10818
10819 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10820 predicate.
10821 * gdbarch.h, gdbarch.c: Regenerate.
10822 * stack.c (frame_info): Only initialize the saved registers when
10823 FRAME_INIT_SAVED_REGS_P.
10824 * frame.c (frame_saved_regs_register_unwind): Assert
10825 FRAME_INIT_SAVED_REGS_P.
10826 (deprecated_generic_get_saved_register): Ditto.
10827
10828 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10829
10830 * source.c (openp): Squelch warning about "filename".
10831
10832 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10833
10834 * source.c (openp): If the file does not exist don't necessarily
10835 search the path.
10836
10837 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10838
10839 Fix PR gdb/872.
10840 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10841 (integer_types_same_name_p): New function.
10842 (rank_one_type): Use it.
10843 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10844
10845 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10846
10847 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10848 variables.
10849 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10850 * configure.in: Add --with-sysroot.
10851 * configure: Regenerated.
10852 * main.c (gdb_sysroot): New variable.
10853 (captured_main): Initialize gdb_sysroot.
10854 * defs.h (gdb_sysroot): New extern declaration.
10855 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10856
10857 2003-01-12 Michael Chastain <mec@shout.net>
10858
10859 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10860
10861 2003-01-12 Michael Chastain <mec@shout.net>
10862
10863 * top.c (print_gdb_version): Bump copyright year to 2003.
10864
10865 2003-01-12 David Carlton <carlton@bactrian.org>
10866
10867 * linespec.c (symtab_from_filename): Rename variable 's' to
10868 'file_symtab'.
10869
10870 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10871
10872 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10873 dummy frame.
10874 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10875
10876 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10877
10878 * d10v-tdep.c: Include "gdb_assert.h".
10879 (d10v_store_return_value): Rewrite to match current interface.
10880 (d10v_extract_struct_value_address): Ditto.
10881 (d10v_extract_return_value): Ditto.
10882 (d10v_gdbarch_init): Set store_restore_value,
10883 extract_struct_value_address and extract_return_value.
10884
10885 2003-01-12 J. Brobecker <brobecker@gnat.com>
10886
10887 * hpread.c (set_namestring): New procedure replacing the
10888 SET_NAMESTRING macro.
10889 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10890 by calls to set_namestring.
10891
10892 2003-01-11 J. Brobecker <brobecker@gnat.com>
10893
10894 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10895 a compilation warning.
10896 (hpread_process_one_debug_symbol): Likewise.
10897
10898 2003-01-10 David Carlton <carlton@math.stanford.edu>
10899
10900 * linespec.c (decode_line_1): Rename variable 's' to
10901 'file_symtab'.
10902 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10903 (decode_dollar): Ditto.
10904 (decode_variable): Ditto.
10905 (symbol_found): Ditto.
10906
10907 2003-01-09 Michael Chastain <mec@shout.net>
10908
10909 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10910
10911 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10912
10913 * win32-nat.c (set_process_privilege): New function.
10914 (child_attach): Call set_process_privilege() to enable the
10915 SE_DEBUG_NAME user privilege if available in process token.
10916
10917 2003-01-10 J. Brobecker <brobecker@gnat.com>
10918
10919 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10920 compilation error in the previous revision.
10921
10922 2003-01-09 David Carlton <carlton@math.stanford.edu>
10923
10924 * linespec.c: Update copyright.
10925
10926 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10927
10928 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10929 than inferior_ptid.
10930 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10931
10932 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10933
10934 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10935 Update comments.
10936 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10937 (frame_saved_regs_zalloc): Update.
10938 (frame_saved_regs_register_unwind): Update.
10939 (create_new_frame): Update.
10940 (get_prev_frame): Update.
10941 (frame_extra_info_zalloc): Update.
10942 (deprecated_get_frame_saved_regs): Update.
10943 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10944 * cris-tdep.c: Update comment.
10945
10946 * somsolib.h: Fix function indentation.
10947 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10948 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10949 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10950 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10951 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10952
10953 * infrun.c (follow_fork): Use ISO C definition.
10954 * expprint.c (print_subexp): Use xfree instead of free.
10955 * charset.c: Include "gdb_string.h" instead of <string.h>.
10956 (register_iconv_charsets): Use ISO C definition.
10957 (host_charset, target_charset): Ditto.
10958 * Makefile.in (charset.o): Update dependencies.
10959 (mi-cmd-env.o): Update dependencies.
10960
10961 2003-01-08 Andrew Cagney <cagney@redhat.com>
10962
10963 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10964 get_frame_base.
10965
10966 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10967
10968 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10969 build directories. Save edited gdb output in Mbuild.log. If a
10970 build fails, remove any final GDB executable.
10971
10972 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10973
10974 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10975 replacing hex constants with function names and stripping leading
10976 file name directory prefixes.
10977
10978 2003-01-08 Andrew Cagney <cagney@redhat.com>
10979
10980 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10981 get_frame_base.
10982
10983 2003-01-08 David Carlton <carlton@math.stanford.edu>
10984
10985 * linespec.c (decode_line_1): Move code into decode_variable.
10986 (decode_variable): New function.
10987
10988 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10989
10990 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10991
10992 2003-01-08 Andrew Cagney <cagney@redhat.com>
10993
10994 * cris-tdep.c (cris_frame_init_saved_regs): Use
10995 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10996 saved_regs buffer.
10997 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10998 (sh64_nofp_frame_init_saved_regs): Ditto.
10999 (sh_fp_frame_init_saved_regs): Ditto.
11000 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11001 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11002 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11003 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11004
11005 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11006
11007 * minsyms.c (lookup_minimal_symbol): Update comment.
11008 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11009 (lookup_minimal_symbol_solib_trampoline): Likewise.
11010
11011 2003-01-08 Andrew Cagney <cagney@redhat.com>
11012
11013 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11014 frame_relative_level.
11015
11016 * alpha-tdep.c: Use get_frame_extra_info.
11017 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11018 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11019 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11020 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11021
11022 * alpha-tdep.c: Use get_next_frame.
11023 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11024 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11025 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11026 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11027 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11028 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11029 * xstormy16-tdep.c: Ditto.
11030
11031 2003-01-07 Andrew Cagney <cagney@redhat.com>
11032
11033 * alpha-tdep.c: Use get_frame_base.
11034 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11035 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11036 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11037 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11038 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11039 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11040 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11041 * config/sparc/tm-sparc.h: Ditto.
11042
11043 2003-01-07 Andrew Cagney <cagney@redhat.com>
11044
11045 * frame.c (deprecated_get_frame_context): New function.
11046 (deprecated_set_frame_context): New function.
11047 * frame.h (deprecated_get_frame_context): Declare.
11048 (deprecated_set_frame_context): Declare.
11049 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11050 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11051
11052 2003-01-07 Andrew Cagney <cagney@redhat.com>
11053
11054 * frame.c (deprecated_set_frame_next_hack): New function.
11055 (deprecated_set_frame_prev_hack): New function.
11056 * frame.h (deprecated_set_frame_next_hack): Declare.
11057 (deprecated_set_frame_prev_hack): Declare.
11058 * mcore-tdep.c (analyze_dummy_frame): Use
11059 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11060 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11061
11062 2003-01-07 David Carlton <carlton@math.stanford.edu>
11063
11064 * linespec.c (decode_line_1): Move code into decode_dollar.
11065 (decode_dollar): New function.
11066
11067 2003-01-07 Andrew Cagney <cagney@redhat.com>
11068
11069 * arm-tdep.c (arm_init_extra_frame_info): Use
11070 deprecated_update_frame_base_hack.
11071 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11072 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11073 (fix_frame_pointer): Ditto.
11074 (mn10300_analyze_prologue): Ditto.
11075
11076 2003-01-07 Andrew Cagney <cagney@redhat.com>
11077
11078 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11079 extra_info using frame_extra_info_zalloc.
11080 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11081 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11082 (sh64_init_extra_frame_info): Ditto.
11083 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11084 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11085 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11086 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11087 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11088 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11089 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11090 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11091 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11092 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11093 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11094 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11095
11096 * mn10300-tdep.c (analyze_dummy_frame): Use
11097 deprecated_set_frame_extra_info_hack.
11098 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11099
11100 2003-01-07 J. Brobecker <brobecker@gnat.com>
11101
11102 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11103 class is not scText. These do not define "real" procedures.
11104 (parse_partial_symbols): Likewise.
11105
11106 2003-01-06 Michael Snyder <msnyder@redhat.com>
11107
11108 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11109
11110 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11111
11112 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11113 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11114 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11115 deprecated_frame_xmalloc_with_cleanup.
11116 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11117 deprecated_frame_xmalloc.
11118 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11119 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11120
11121 2003-01-06 Andrew Cagney <cagney@redhat.com>
11122
11123 * x86-64-linux-tdep.c: Include "osabi.h".
11124 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11125
11126 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11127
11128 2003-01-06 Andrew Cagney <cagney@redhat.com>
11129
11130 * MAINTAINERS (Target Instruction Set Architectures): Update
11131 arm-elf. Can be built with -Werror, has been multiarched.
11132
11133 * value.h (unpack_long): Make buffer parameter constant.
11134 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11135 * scm-lang.h (scm_parse): Ditto.
11136 * defs.h (extract_typed_address, extract_address): Ditto.
11137 (extract_long_unsigned_integer): Ditto.
11138 * inferior.h (unsigned_pointer_to_address): Ditto.
11139 (signed_pointer_to_address): Ditto.
11140 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11141 * gdbarch.h, gdbarch.c: Regenerate.
11142 * findvar.c (extract_long_unsigned_integer): Update.
11143 (extract_address): Update.
11144 (extract_typed_address): Update.
11145 (unsigned_pointer_to_address): Update.
11146 * values.c (unpack_long): Update.
11147 (unpack_double): Update.
11148 (unpack_pointer): Update.
11149 (unpack_field_as_long): Update.
11150 * d10v-tdep.c (d10v_pointer_to_address): Update.
11151 * avr-tdep.c (avr_pointer_to_address): Update.
11152 * scm-lang.c (scm_unpack): Update.
11153 * findvar.c (signed_pointer_to_address): Update.
11154
11155 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11156
11157 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11158 since it is in i386-tdep.c.
11159
11160 2003-01-06 J. Brobecker <brobecker@gnat.com>
11161
11162 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11163 failure introduced in the previous change.
11164
11165 2003-01-05 Michael Chastain <mec@shout.net>
11166
11167 * README: Remove references to deleted remote-*.c files:
11168 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11169 remote-nrom.c, remote-os9k.c, remote-udi.c.
11170
11171 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11172
11173 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11174 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11175 i386_get_longjmp_target.
11176
11177 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11178
11179 * arm-tdep.c (prologue_cache): Change to a pointer.
11180 (_initialize_arm_tdep): Allocate prologue_cache.
11181 (check_prologue_cache): Update.
11182 (save_prologue_cache): Update.
11183 (arm_gdbarch_init): Update.
11184
11185 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11186
11187 * stabsread.c (update_method_name_from_physname): Call complaint()
11188 instead of error.
11189
11190 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11191
11192 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11193 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11194 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11195
11196 * blockframe.c: Include "gdbcmd.h" and "command.h".
11197 (backtrace_below_main): New variable.
11198 (file_frame_chain_valid, func_frame_chain_valid)
11199 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11200 (generic_func_frame_chain_valid): Remove functions.
11201 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11202 (_initialize_blockframe): New function.
11203 * Makefile.in (blockframe.o): Update dependencies.
11204 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11205 comment. Call frame_chain_valid ().
11206 * frame.h: Remove old prototypes. Add prototype for
11207 frame_chain_valid and update comments to match.
11208 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11209 Remove old comment.
11210 * gdbarch.h: Regenerated.
11211 * gdbarch.c: Regenerated.
11212
11213 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11214 set_gdbarch_frame_chain_valid.
11215 * avr-tdep.c (avr_gdbarch_init): Likewise.
11216 * cris-tdep.c (cris_gdbarch_init): Likewise.
11217 * frv-tdep.c (frv_gdbarch_init): Likewise.
11218 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11219 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11220 (i386_nw_init_abi): Likewise.
11221 (i386_gdbarch_init): Likewise.
11222 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11224 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11225 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11226 * mips-tdep.c (mips_gdbarch_init): Likewise.
11227 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11228 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11229 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11230 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11231 * s390-tdep.c (s390_gdbarch_init): Likewise.
11232 * sh-tdep.c (sh_gdbarch_init): Likewise.
11233 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11234 * v850-tdep.c (v850_gdbarch_init): Likewise.
11235 * vax-tdep.c (vax_gdbarch_init): Likewise.
11236 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11237
11238 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11239 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11240 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11241 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11242 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11243 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11244 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11245 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11246
11247 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11248
11249 * Makefile.in (acconfig_h): Remove incorrect macro.
11250 (config_h): Define.
11251 (osabi.o): Update dependencies.
11252 * configure.tgt: Set gdb_osabi based on target triplet.
11253 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11254 * configure: Regenerated.
11255 * config.in: Regenerated.
11256 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11257 (GDB_OSABI_DEFAULT): Define if not already defined.
11258 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11259 (set_osabi_string): New variables.
11260 (gdbarch_register_osabi): Add new OS ABI to
11261 gdb_osabi_available_names.
11262 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11263 (set_osabi, show_osabi): New functions.
11264 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11265
11266 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11267
11268 * arch-utils.c (gdbarch_info_init): Set osabi to
11269 GDB_OSABI_UNINITIALIZED.
11270 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11271 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11272 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11273 * gdbarch.c: Regenerated.
11274 * gdbarch.h: Regenerated.
11275 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11276 there's no BFD.
11277 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11278 * osabi.h (enum gdb_osabi): Move to defs.h.
11279 (gdbarch_init_osabi): Update prototype.
11280 * defs.h (enum gdb_osabi): Moved here.
11281 * Makefile.in: Update dependencies.
11282
11283 * alpha-tdep.h: Don't include "osabi.h".
11284 (struct gdbarch_tdep): Remove osabi member.
11285 * alpha-tdep.c: Include "osabi.h".
11286 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11287 iterate over arches. Update call to gdbarch_init_osabi.
11288 (alpha_dump_tdep): Don't dump osabi.
11289 * alpha-linux-tdep.c: Include "osabi.h".
11290 * alpha-osf1-tdep.c: Include "osabi.h".
11291 * alphafbsd-tdep.c: Include "osabi.h".
11292 * alphanbsd-tdep.c: Include "osabi.h".
11293
11294 * arm-tdep.h: Don't include "osabi.h".
11295 (struct gdbarch_tdep): Remove osabi member.
11296 * arm-tdep.c: Include "osabi.h".
11297 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11298 iterate over arches. Update call to gdbarch_init_osabi.
11299 (arm_dump_tdep): Don't dump osabi.
11300 * arm-linux-tdep.c: Include "osabi.h".
11301 * armnbsd-tdep.c: Include "osabi.h".
11302
11303 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11304 Update call to gdbarch_init_osabi.
11305
11306 * i386-tdep.h: Don't include "osabi.h".
11307 (struct gdbarch_tdep): Remove osabi member.
11308 * i386-tdep.c: Include "osabi.h".
11309 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11310 iterate over arches. Update call to gdbarch_init_osabi.
11311 (i386_dump_tdep): Don't dump osabi.
11312 * i386-linux-tdep.c: Include "osabi.h".
11313 * i386-sol2-tdep.c: Include "osabi.h".
11314 * i386bsd-tdep.c: Include "osabi.h".
11315 * i386gnu-tdep.c: Include "osabi.h".
11316 * i386ly-tdep.c: Include "osabi.h".
11317 * i386nbsd-tdep.c: Include "osabi.h".
11318 * i386obsd-tdep.c: Include "osabi.h".
11319
11320 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11321 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11322 check osabi when iterating over arches. Update call to
11323 gdbarch_init_osabi.
11324 (mips_dump_tdep): Don't dump osabi.
11325
11326 * ns32k-tdep.h: Don't include "osabi.h".
11327 (struct gdbarch_tdep): Remove.
11328 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11329 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11330 allocate tdep. Update call to gdbarch_init_osabi.
11331 (ns32k_dump_tdep): Remove.
11332 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11333 * ns32knbsd-tdep.c: Include "osabi.h".
11334
11335 * ppc-tdep.h: Don't include "osabi.h".
11336 (struct gdbarch_tdep): Remove osabi member.
11337 * rs6000-tdep.c: Include "osabi.h".
11338 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11339 osabi when iterating over arches. Update call to
11340 gdbarch_init_osabi.
11341 (rs6000_dump_tdep): Don't dump osabi.
11342 * ppc-linux-tdep.c: Include "osabi.h".
11343 * ppcnbsd-tdep.c: Include "osabi.h".
11344
11345 * sh-tdep.h: Don't include "osabi.h".
11346 (struct gdbarch_tdep): Remove osabi member.
11347 * sh-tdep.c: Include "osabi.h".
11348 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11349 iterate over arches. Update call to gdbarch_init_osabi.
11350 (sh_dump_tdep): Don't dump osabi.
11351 * shnbsd-tdep.c: Include "osabi.h".
11352
11353 * sparc-tdep.c: Include "osabi.h".
11354 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11355 iterate over arches. Update call to gdbarch_init_osabi.
11356 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11357 tdep structure.
11358
11359 * vax-tdep.h: Don't include "osabi.h".
11360 (struct gdbarch_tdep): Remove.
11361 * vax-tdep.c: Include "osabi.h".
11362 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11363 iterate over arches. Don't allocate tdep. Update call
11364 to gdbarch_init_osabi.
11365 (vax_dump_tdep): Remove.
11366 (_initialize_vax_tdep): Update call to gdbarch_register.
11367
11368 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11369
11370 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11371 entirely.
11372 (breakpoint_re_set_one): Don't fetch the value for a disabled
11373 watchpoint.
11374
11375 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11378 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11379 (COERCE_FLOAT_TO_DOUBLE): Remove.
11380 * gdbarch.c: Regenerate.
11381 * gdbarch.h: Regenerate.
11382 * Makefile.in: Remove value_h from gdbarch_h.
11383 * valops.c (coerce_float_to_double): New variable.
11384 (default_coerce_float_to_double): Remove.
11385 (standard_coerce_float_to_double): Remove.
11386 (value_arg_coerce): Use coerce_float_to_double.
11387 (_initialize_valops): Add "set coerce-float-to-double".
11388 * value.h (default_coerce_float_to_double): Remove prototype.
11389 (standard_coerce_float_to_double): Remove prototype.
11390
11391 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11392 prototyped.
11393 * mdebugread.c (parse_symbol): Likewise.
11394 * stabsread.c (define_symbol): Mark all functions as prototyped.
11395
11396 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11397 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11398 set_gdbarch_coerce_float_to_double.
11399 * arm-tdep.c (arm_gdbarch_init): Likewise.
11400 * frv-tdep.c (frv_gdbarch_init): Likewise.
11401 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11402 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11403 * mips-tdep.c (mips_gdbarch_init): Likewise.
11404 (mips_coerce_float_to_double): Remove.
11405 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11406 (rs6000_coerce_float_to_double): Remove.
11407 * s390-tdep.c (s390_gdbarch_init): Likewise.
11408 * sh-tdep.c (sh_gdbarch_init): Likewise.
11409 (sh_coerce_float_to_double): Remove.
11410 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11411 (sparc_coerce_float_to_double): Remove.
11412 * v850-tdep.c (v850_gdbarch_init): Likewise.
11413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11414 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11415 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11416 (hppa_coerce_float_to_double): Remove prototype.
11417 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11418
11419 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11422
11423 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11424
11425 Suggested by Stewart Brown <sb24@avaya.com>:
11426 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11427 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11428 (c_type_print_varspec_suffix): Likewise.
11429
11430 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11431
11432 * configure.in: Don't set and AC_SUBST SUBDIRS.
11433 * configure: Regenerated.
11434
11435 * configure.in: Remove code dealing with shared libraries.
11436 * Makefile.in: Remove HLDFLAGS and HLDENV.
11437 * configure: Regenerated.
11438
11439 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11440
11441 * frame.c (deprecated_frame_xmalloc): New function.
11442 (deprecated_set_frame_saved_regs_hack): New function.
11443 (deprecated_set_frame_extra_info_hack): New function.
11444 * frame.h (deprecated_frame_xmalloc): Declare.
11445 (deprecated_set_frame_saved_regs_hack): Declare.
11446 (deprecated_set_frame_extra_info_hack): Declare.
11447
11448 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11449
11450 * configure.in: Move code that provides the --enable-gdbtk option
11451 right after the code that handles the --enable-tui option, and
11452 polish it somewhat.
11453 * configure: Regenerated.
11454
11455 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11456 AC_CHECK_FUNCS and remove the old check for pread64.
11457 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11458 * acconfig.h (_GNU_SOURCE): Add.
11459 (HAVE_PREAD64): Remove.
11460 * configure, aclocal.m4, config.in: Regenerated.
11461
11462 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11463
11464 * alpha-tdep.c: Use get_frame_saved_regs.
11465 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11466 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11467 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11468 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11469 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11470
11471 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11472
11473 * configure.in: Remove all use of the SUBDIRS variable; add
11474 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11475 code providing the --enable-multi-ice option, and move it right in
11476 front of the code that checks whether gdbserver is supported.
11477 Polish that too.
11478 * configure: Regenerated.
11479 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11480 @SUBDIRS@.
11481
11482 2003-01-03 Andrew Cagney <cagney@redhat.com>
11483
11484 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11485 * avr-tdep.c, cris-tdep.c: Ditto.
11486 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11487 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11488
11489 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11490
11491 * configure.in: Remove --enable-netrom option.
11492 * configure: Regenerated.
11493
11494 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11495
11496 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11497 declaration for `struct re_pattern_buffer' instead.
11498 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11499
11500 2003-01-03 J. Brobecker <brobecker@gnat.com>
11501
11502 * mdebugread.c (parse_symbol): Count until the stEnd matching
11503 the structure name.
11504
11505 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11506
11507 * configure.in: Remove --with-cpu option.
11508 subscripts. Remove evil changequotes here.
11509 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11510 * config.in, configure: Regenerated.
11511
11512 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11513 * configure.in: Cleanup section that sources GDB and BFD configure
11514 subscripts. Remove evil changequotes here.
11515 * config.in, configure: Regenerated.
11516
11517 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11518
11519 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11520 frame accessor methods.
11521 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11522 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11523 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11524 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11525 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11526 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11527 * z8k-tdep.c: Ditto.
11528
11529 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11530
11531 * configure.in: Remove UI_OUT configuration code.
11532 * ada-lang.c: Update assuming UI_OUT is always true.
11533 * Makefile.in (UIOUT_CFLAGS): Remove.
11534 * configure: Regenerated.
11535 * TODO: Remove blurb about elimination of -DUI_OUT.
11536
11537 * configure.in: Move code that provides the --enable-gdbcli,
11538 --enable-gdbmi options right before the code that handles the
11539 --enable-tui option. Polish a bit.
11540 * configure: Regenerated.
11541
11542 * configure.in: Rewrite check for GNU regex and the
11543 --without-included regex option, and move it into the "Checks for
11544 library functions" section. This makes us use the system regex
11545 again by default on systems with version 2 of the GNU C library.
11546 This was apparently broken.
11547 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11548 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11549 * config.in, configure: Regenerated.
11550
11551 * configure.in: Move code that provides the --enable-tui option
11552 before the "Checks for libraries" section. Polish the code
11553 somewhat and set need_curses to yes if we build the TUI. Rewrite
11554 code that looks for a library providing termcap functionality to
11555 match more closely what's done in the Readline library, and move
11556 it into to the "Checks for libraries" section.
11557 * configure: Regenerated.
11558 * Makefile.in (TERMCAP): Remove variable.
11559 * config/i386/go32.mh (TERMCAP): Remove variable.
11560
11561 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11562
11563 * MAINTAINERS: Mention gdb_mbuild.sh.
11564 * gdb_mbuild.sh: Rewrite.
11565
11566 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11567
11568 * configure.in: Fix typo in last change.
11569 * config.in, configure: Regenerated.
11570
11571 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11572
11573 * valarith.c (value_binop): Delete obsolete code and comments.
11574 * configure.host: Ditto.
11575 * buildsym.h (make_blockvector): Ditto.
11576 * buildsym.c (make_blockvector): Ditto.
11577 * defs.h (enum language): Ditto.
11578 (chill_demangle): Ditto.
11579 * elfread.c (elf_symtab_read): Ditto.
11580 * dwarfread.c (CHILL_PRODUCER): Ditto.
11581 (set_cu_language): Ditto.
11582 (handle_producer): Ditto.
11583 * expprint.c (print_subexp): Ditto.
11584 * gdbtypes.c (chill_varying_type): Ditto.
11585 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11586 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11587 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11588 (chill_varying_type): Ditto.
11589 * language.h (_LANG_chill): Ditto.
11590 * language.c (binop_result_type, integral_type): Ditto.
11591 (character_type, string_type, structured_type): Ditto.
11592 (lang_bool_type, binop_type_check): Ditto.
11593 * stabsread.h (os9k_stabs): Ditto.
11594 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11595 (define_symbol, read_type, read_struct_fields): Ditto.
11596 (read_array_type, read_enum_type, read_huge_number): Ditto.
11597 (read_range_type, start_stabs): Ditto.
11598 * symfile.c (init_filename_language_table): Ditto.
11599 (add_psymbol_with_dem_name_to_list): Ditto.
11600 * symtab.c (symbol_init_language_specific): Ditto.
11601 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11602 * symtab.h (struct general_symbol_info): Ditto.
11603 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11604 * typeprint.c (typedef_print): Ditto.
11605 * utils.c (fprintf_symbol_filtered): Ditto.
11606 * valops.c (value_cast, search_struct_field, value_slice): Delete
11607 obsolete code.
11608 (varying_to_slice): Delete function.
11609 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11610 (varying_to_slice): Delete declaration.
11611 * MAINTAINERS: Update.
11612
11613 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11614
11615 * configure.in: Reorganize "Checks for library functions section"
11616 a bit. Remove check for `btowc' and `isascii' functions.
11617 * configure: Regenerated.
11618
11619 * acconfig.h (_MSE_INT_H): Remove.
11620 * configure.in: Create "Checks for header files" section, and move
11621 appropriate tests there. Don't check for objlist.h, wchar.h,
11622 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11623 misdetection fix. Also add "Checks for types", "Checks for
11624 compiler characteristics" and "Checks for library functions"
11625 sections.
11626 * config.in, configure: Regenerated.
11627
11628 * configure.in: Create "Checks for programs" section, and move
11629 appropriate tests there.
11630
11631 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11632
11633 * configure.in: Create "Checks for libraries" section, and move
11634 appropriate tests there. Cleanup check for wctype in libw. Use
11635 AC_SEARCH_LIBS to see whether we need libsocket.
11636 * configure: Regenerated.
11637
11638 For older changes see ChangeLog-2002
11639 \f
11640 Local Variables:
11641 mode: change-log
11642 left-margin: 8
11643 fill-column: 74
11644 version-control: never
11645 End:
This page took 0.294021 seconds and 5 git commands to generate.