Move myself to paper trail section.
[external/binutils.git] / gdb / ChangeLog
1 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2
3         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
4         * gdbarch.h, gdbarch.c: Re-generate.
5         * infcall.c (call_function_by_hand): Update.
6         * hppa-tdep.c (hppa_push_arguments): Update.
7         * ada-lang.c (place_on_stack): Update.
8         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9         * sparc-tdep.c (sparc_gdbarch_init): Update.
10         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11         * hppa-tdep.c (hppa_gdbarch_init): Update.
12         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
13         stack_align.
14
15 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
16
17         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
18         register do need a frame.
19
20 2003-09-11  Andrew Cagney  <cagney@redhat.com>
21
22         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
23         buildable since GDB 5.0.
24         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
25         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
26         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
27         * irix4-nat.c: Delete file.
28         * config/mips/irix4.mh: Delete file.
29         * config/mips/irix3.mh: Delete file.
30         * config/mips/irix3.mt: Delete file.
31         * config/mips/tm-irix3.h: Delete file.
32         * config/mips/nm-irix3.h: Delete file.
33         * config/mips/xm-irix3.h: Delete file.
34         * config/mips/nm-irix4.h: Delete file.
35         * config/mips/xm-irix4.h: Delete file.
36         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
37
38 2003-09-10  J. Brobecker  <brobecker@gnat.com>
39
40         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
41         * Makefile.in (hppa-tdep.o): Update dependencies.
42
43 2003-09-10  James E Wilson  <wilson@specifixinc.com>
44
45         * MAINTAINERS: Change my e-mail address.  Move to paper trail
46         section.
47
48 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
49
50         * MAINTAINERS (frv): New ISA entry.
51
52 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
53
54         * frv-tdep.c (dis-asm.h): Include.
55         * Makefile.in (frv-tdep.o): Update dependencies.
56
57 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
58
59         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
60         Fix typo for high range of floating registers.
61
62 2003-09-09  David Carlton  <carlton@kealia.com>
63
64         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
65         highpc initialization here out of scan_partial_symbols.
66         (scan_partial_symbols): Restructure into a recursive version,
67         calling add_partial_namespace and add_partial_enumeration when
68         appropriate.
69         (add_partial_namespace): New.
70         (add_partial_enumeration, locate_pdi_sibling): Ditto.
71
72 2003-09-09  Andrew Cagney  <cagney@redhat.com>
73
74         * rs6000-tdep.c (ppc_push_return_address): Delete function.
75         (rs6000_push_dummy_call): Set LR to BP_ADDR.
76         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
77         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
78
79         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
80         (rs6000_push_dummy_call): Set the "TOC" register.
81
82         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
83         methods "max_register_raw_size", "max_register_virtual_size" or
84         "register_virtual_size".
85
86 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
87
88         * MAINTAINERS: Update my e-mail address.
89
90 2003-09-09  Andrew Cagney  <cagney@redhat.com>
91
92         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
93         (rs6000_push_dummy_call): Store the struct return address.
94         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
95
96 2003-09-09  Andrew Cagney  <cagney@redhat.com>
97
98         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
99         "ppc_sysv_abi_push_arguments".
100         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
101         "ppc_sysv_abi_push_arguments".
102         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
103         instead of "push_arguments".
104         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
105
106 2003-09-09  Andrew Cagney  <cagney@redhat.com>
107
108         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
109         instead of CALL_DUMMY_ADDRESS.
110
111 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
112
113         * p-lang.c: Eliminate "register".
114         * c-lang.c: Ditto.
115         * expprint.c: Ditto.
116         * f-lang.c: Ditto.
117         * jv-lang.c: Ditto.
118         * language.c: Ditto.
119         * m2-lang.c: Ditto.
120         * parse.c: Ditto.
121         * scm-lang.c: Ditto.
122         * objc-lang.c: Ditto.
123
124 2003-09-09  Nick Clifton  <nickc@redhat.com>
125
126         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
127
128 2003-09-04  Andrew Cagney  <cagney@redhat.com>
129
130         * avr-tdep.c: Include "dis-asm.h".
131         * cris-tdep.c: Include "dis-asm.h".
132         (cris_delayed_get_disassembler): Use "struct disassemble_info"
133         instead of corresponding typedef.
134         * h8300-tdep.c: Include "dis-asm.h".
135         * ia64-tdep.c: Include "dis-asm.h".
136         * i386-tdep.c: Include "dis-asm.h".
137         (i386_print_insn): Use "struct disassemble_info" instead of
138         corresponding typedef.
139         * m68k-tdep.c: Include "dis-asm.h".
140         * mcore-tdep.c: Include "dis-asm.h".
141         * mips-tdep.c: Include "dis-asm.h".
142         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
143         instead of corresponding typedef.
144         * ns32k-tdep.c: Include "dis-asm.h".
145         * s390-tdep.c: Include "dis-asm.h".
146         * sparc-tdep.c: Include "dis-asm.h".
147         * vax-tdep.c: Include "dis-asm.h".
148         * v850-tdep.c: Include "dis-asm.h".
149         * mn10300-tdep.c: Include "dis-asm.h".
150         * rs6000-tdep.c: Include "dis-asm.h".
151         * xstormy16-tdep.c: Include "dis-asm.h".
152         (_initialize_xstormy16_tdep): Delete "extern" declaration of
153         print_insn_xstormy16.
154         * Makefile.in (v850-tdep.o): Update dependencies.
155         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
156         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
157         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
158         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
159         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
160         (gdbarch_h): Remove $(dis_asm_h).
161         * disasm.c: Include "dis-asm.h".
162         (dis_asm_read_memory): Use "struct disassemble_info" instead of
163         corresponding typedef.
164         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
165         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
166         * gdbarch.sh: Do not include "dis-asm.h".
167         (struct disassemble_info): Declare opaque.
168         (TARGET_PRINT_INSN): Update declaration.
169         * gdbarch.h, gdbarch.c: Re-generate.
170
171 2003-09-08  Andrew Cagney  <cagney@redhat.com>
172
173         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
174         CALL_DUMMY_ADDRESS, change to a predicate.
175         * gdbarch.h, gdbarch.c: Re-generate.
176         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
177         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
178         * infcall.c (call_function_by_hand): Ditto.
179         * sparc-tdep.c (sparc_push_return_address): Ditto.
180         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
181         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
182         CALL_DUMMY_ADDRESS with entry_point_address.
183         * v850-tdep.c (v850_push_return_address): Ditto.
184         * s390-tdep.c (s390_push_return_address): Ditto.
185         * rs6000-tdep.c (ppc_push_return_address): Ditto.
186         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
187         * mcore-tdep.c (mcore_push_return_address): Ditto.
188         * cris-tdep.c (cris_push_return_address): Ditto.
189         * arm-tdep.c (arm_push_return_address): Ditto.
190
191 2003-09-08  Andrew Cagney  <cagney@redhat.com>
192
193         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
194         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
195         and REG_UNMODIFIED to REG_SAME_VALUE.
196         (execute_cfa_program): Update.
197         (dwarf2_frame_cache): Update.  Initialize table to
198         REG_UNSPECIFIED, complain if CFI fails to specify a register's
199         location.
200         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
201
202 2003-09-08  Andrew Cagney  <cagney@redhat.com>
203
204         * gnu-nat.c: Remove "inline" function attribute.
205         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
206
207 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
208
209         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
210         target.
211
212 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
213
214         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
215         (frame_extra_info): Rename this struct to frv_unwind_cache.
216         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
217         Add fields ``prev_sp'' and ``base''.
218         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
219         (frv_saved_pc_after_call, frv_init_extra_frame_info)
220         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
221         Delete.
222         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
223         Revise all callers.  Fill in the unwind cache argument and make
224         other adjustments to account for new frame mechanisms.
225         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
226         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
227         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
228         (frv_frame_unwind, frv_frame_base): New structs.
229         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
230         additional arguments expected by this method and adjust function
231         body accordingly.
232         (frv_gdbarch_init): Remove calls to the following functions:
233         set_gdbarch_deprecated_init_frame_pc(),
234         set_gdbarch_deprecated_saved_pc_after_call(),
235         set_gdbarch_deprecated_frame_chain(),
236         set_gdbarch_deprecated_frame_saved_pc(),
237         set_gdbarch_deprecated_frame_init_saved_regs(),
238         set_gdbarch_deprecated_push_arguments(),
239         set_gdbarch_deprecated_push_return_address(),
240         set_gdbarch_deprecated_pop_frame(),
241         set_gdbarch_deprecated_call_dummy_words(),
242         set_gdbarch_deprecated_sizeof_call_dummy_words(),
243         set_gdbarch_deprecated_init_extra_frame_info(),
244         set_gdbarch_deprecated_dummy_write_sp(), and
245         set_gdbarch_deprecated_pc_in_call_dummy().
246         Add calls to the following functions:
247         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
248         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
249         frame_base_set_default().
250         * Makefile.in (frv-tdep.o): Update dependencies.
251         
252 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
253
254         * dwarf2-frame.c (read_encoded_value): Add support for
255         DW_EH_PE_aligned encoding.
256
257 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
258
259         * infrun.c (normal_stop): Don't print a message if the inferior
260         has exited.
261
262 2003-09-08  Jim Blandy  <jimb@redhat.com>
263
264         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
265         * dbxread.c: #include "gdb_assert.h".
266         (read_dbx_symtab): If the objfile has no .data section, use the
267         section index for the .bss section instead.
268
269 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
270
271         * frame.c (deprecated_safe_get_selected_frame): New function.
272         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
273         * findvar.c (read_var_value): Call it.
274
275 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
276
277         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
278         (sh64-tdep.o): Add dependencies.
279         * configure.tgt: Add FIXME to sh-*-linux*.
280         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
281         (sh_gdbarch_init): Always set correct sh_show_regs function
282         pointer.  Call sh64_gdbarch_init() if machine type is sh5. 
283         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
284         * sh64-tdep.c: New file, containing all sh64 related code from
285         sh-tdep.c.
286         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
287         * config/sh/linux.mt (TDEPFILES): Ditto.
288         * config/sh/nbsd.mt (TDEPFILES): Ditto. 
289         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
290         * config/sh/wince.mt (TDEPFILES): Ditto.
291
292 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
293
294         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
295         (stop_wait_callback): Handle !lp->signalled also.
296         (lin_lwp_has_pending, flush_callback): New functions.
297         (lin_lwp_wait): Call flush_callback.
298         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
299         (linux_proc_pending_signals): New function.
300         * linux-nat.h (linux_proc_pending_signals): Add prototype.
301
302 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
303
304         From Nick Kelsey <nickk@ubicom.com>:
305         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
306         when the stop PC is at the beginning of a function also.
307
308 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
309
310         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
311         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
312
313 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
314
315         * sol-thread.c: Include "gdb_string.h".
316
317 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
318
319         * gcore.c: Reorder include files in alphabetical order.  Include
320         "gdb_assert.h".  Various coding style fixes.
321         (derive_stack_segment, derive_heap_segment): Replace check for
322         non-null BOTTOM and TOP with gdb_assert.
323         (derive_heap_segment): Replace check for successful creation of
324         ZERO with gdb_assert.
325         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
326
327 2003-09-04  Andrew Cagney  <cagney@redhat.com>
328
329         * thread-db.c (verbose_dlsym): New function.
330         (thread_db_load): Use verbose_dlsym
331         (thread_db_new_objfile): Print that libthread_db was loaded, and
332         that thread debugging was enabled.
333
334 2003-09-04  Andrew Cagney  <cagney@redhat.com>
335
336         * configure.tgt: Add "mips64*-*-*" target.  Delete
337         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
338         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
339         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
340         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
341         mips*-sony-*, and mips64*-*-elf* targets.
342         * config/mips/embedl.mt: Delete file.
343         * config/mips/embedl64.mt: Delete file.
344         * config/mips/mips.mt: Delete file.
345         * config/mips/mips64.mt: Delete file.
346         * config/mips/tm-embed.h: Delete file.
347         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
348         * config/mips/embed64.mt: Delete out-of-date comment.
349
350 2003-09-04  Andrew Cagney  <cagney@redhat.com>
351
352         * hppa-tdep.c (hppa_gdbarch_init): Set
353         "have_nonsteppable_watchpoint".
354         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
355         * mips-tdep.c (mips_dump_tdep): Do not print
356         HAVE_NONSTEPPABLE_WATCHPOINT.
357         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
358         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
359         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
360         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
361
362 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
363
364         * breakpoint.c (watchpoint_check): Remove accidentally checked in
365         unused code.  Add comment.
366
367 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
368
369         * breakpoint.c (watchpoint_check): Check for pc being in an
370         epilogue if watchpoint frame couldn't be found.
371
372 2003-09-04  Andrew Cagney  <cagney@redhat.com>
373
374         * Makefile.in: Re-generate all dependencies.
375
376 2003-09-03  Andrew Cagney  <cagney@redhat.com>
377
378         * arch-utils.h (legacy_print_insn): Delete declaration.
379         * arch-utils.c (legacy_print_insn): Delete function.
380         * disasm.c (deprecated_tm_print_insn_info): Delete.
381         (_initialize_disasm): Delete function, contained code initializing
382         deprecated_tm_print_insn_info.
383         * gdbarch.sh (deprecated_tm_print_insn): Delete.
384         (deprecated_tm_print_insn_info): Delete.
385         (TARGET_PRINT_INSN): Do not provide a default.
386         * gdbarch.h, gdbarch.c: Re-generate.
387
388 2003-09-03  Andrew Cagney  <cagney@redhat.com>
389
390         * disasm.c (fprintf_disasm): New function.
391         (gdb_disassemble_info): Call "init_disassemble_info", instead of
392         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
393         reverts 2003-08-14 change.
394         (_initialize_disasm): Call "init_disassemble_info", instead of
395         INIT_DISASSEMBLE_INFO_NO_ARCH.
396
397 2003-09-03  Michael Snyder  <msnyder@redhat.com>
398
399         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
400
401 2003-09-03  Andrew Cagney  <cagney@redhat.com>
402
403         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
404         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
405         * symfile.c (syms_from_objfile): Update.
406         (reread_symbols): `Update
407         * exec.c (exec_file_attach): Update.
408         (exec_file_attach): Update.
409         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
410         2003-08-29 change.
411         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
412
413 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
414
415         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
416         trad-frame.h.
417         (arm_get_cache): Delete macro.
418         (struct arm_prologue_cache): Update comments.  Make saved_regs into
419         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
420         to prev_sp.
421         (thumb_scan_prologue): Update for cache changes.  Don't call
422         DEPRECATED_PC_IN_CALL_DUMMY.
423         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
424         argument and use it in desperation search for our prologue.  Do not
425         search past the specified PC.
426         (arm_make_prologue_cache): Simplify.
427
428         (arm_prologue_this_id, arm_prologue_prev_register)
429         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
430         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
431         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
432         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
433         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
434
435         (arm_frame_chain_valid, arm_find_callers_reg)
436         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
437         (arm_pop_frame): Delete obsolete methods.
438         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
439
440         (arm_gdbarch_init): Update for new frame methods.  Register prologue
441         and sigtramp unwinders.  Set the default frame base method.
442
443         * Makefile.in (arm-tdep.o): Update dependencies.
444         * varobj.c (find_frame_addr_in_frame_chain): Call
445         get_frame_base_address.
446         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
447
448 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
449
450         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
451         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
452         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
453         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
454         Take NEXT_FRAME and CACHE arguments.  Call
455         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
456         Set unwound_pc in CACHE instead of modifying the frame argument.
457         Don't bother checking the frame type when looking for sigtramp
458         frames.
459         (arm_make_prologue_cache, arm_frame_chain)
460         (arm_init_extra_frame_info): New functions.
461
462 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
463
464         * arm-tdep.c (arm_get_cache): Define.
465         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
466         unwound_sp, unwound_pc, and saved_regs.
467         (thumb_scan_prologue): Take a cache instead of the frame.
468         (arm_scan_prologue): Likewise.
469         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
470         instead of a temporary frame.
471         (arm_init_extra_frame_info): Allocate and use a cache.
472         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
473
474 2003-09-03  Andrew Cagney  <cagney@redhat.com>
475
476         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
477         * config/mips/wince.mt (TM_CLIBS): Ditto.
478         * config/sh/wince.mt (TM_CLIBS): Ditto.
479         * config/pa/hppa64.mt (TM_CLIBS): Delete.
480         * config/sparc/sp64.mt (CC): Delete.
481
482 2003-09-03  Andrew Cagney  <cagney@redhat.com>
483
484         * defs.h: Do not include "arch-utils.h".
485         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
486         GDB_MULTI_ARCH_PURE.
487         * configure.in (GDB_MULTI_ARCH): Do not define.
488         * configure, config.in: Regenerate.
489         * configure.tgt: Do not set variable "gdb_multi_arch".
490         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
491         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
492         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
493         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
494         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
495         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
496         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
497         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
498         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
499         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
500         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
501         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
502         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
503         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
504         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
505         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
506         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
507         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
508         
509 2003-08-30  Michael Chastain  <mec@shout.net>
510
511         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
512         * config/m68k/nm-hp300hpux.h: Delete.
513         * config/m68k/tm-hp300hpux.h: Delete.
514         * config/m68k/xm-hp300hpux.h: Delete.
515         * config/m68k/xm-hp300bsd.h: Delete.
516         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
517         tm-hp300hpux.h, xm-hp300hpux.h.
518         * somsolib.c: Remove comment about hp300 shared libraries.
519
520 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
521
522         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
523         Only define PTRACE_GET_THREAD_AREA is not already defined.
524         Various style fixes in code and comments and some additional
525         spelling fixes in comments.  Move after functions dealing with
526         debug registers.
527         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
528         Fix coding-style.
529
530         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
531         frame_unwind_register_unsigned instead of
532         frame_unwind_unsigned_register.
533
534 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
535
536         * configure.in: Search for gethostbyname in libnsl.
537         * configure: Regenerated.
538
539 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
540
541         * configure.in: Remove redundant AC_MSG_RESULT in check for
542         uintptr_t in stdint.h.
543         * configure: Regenerated.
544
545         * amd64-nat.h (struct regcache): Add opaque declaration.
546
547         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
548         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
549         Change "register array" to "register cache" in comments.
550         (x86_64_linux_gregset64_reg_offset): New variable.
551         (GETREGS_SUPPLIES): Remove macro.
552         (supply_gregset): Call amd64_supply_native_gregset instead of
553         x86_64_linux_supply_gregset.
554         (fill_gregset): Rename `regno' to `regnum'.  Call
555         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
556         (store_regs): Rename `regno' to `regnum'.
557         (store_fpregs): Rename `regno' to `regnum'.
558         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
559         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
560         Reorganize function a bit.
561         (store_inferior_registers): Rename `regno' to `regnum'.  Use
562         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
563         Reorganize function a bit.
564         (_initialize_x86_64_linux_nat): New function.
565         * config/i386/x86-64linux.mh.
566
567 2003-08-29  Andrew Cagney  <cagney@redhat.com>
568
569         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
570         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
571         (target_remove_watchpoint): Delete macro.
572         (target_insert_watchpoint): Delete macro.
573         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
574         (remote_mips_stopped_by_watchpoint): Delete declaration.
575         (remote_mips_remove_watchpoint): Delete declaration.
576         (remote_mips_set_watchpoint): Delete declaration.
577         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
578         * remote-mips.c (_initialize_remote_mips): Set
579         "to_insert_watchpoint", "to_stopped_by_watchpoint",
580         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
581         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
582         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
583         (mips_stopped_by_watchpoint): Rename
584         remote_mips_stopped_by_watchpoint.
585         (mips_can_hardware_watchpoint): Rename
586         remote_mips_can_use_hardware_watchpoint, update function
587         signature.
588
589 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
590
591         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
592         USER_DS.  We haven't given them a register number yet.
593
594         * amd64-nat.h: New file.
595         * amd64-nat.c: New file.
596         * amd64fbsd-nat.c: Include "amd64-nat.h".
597         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
598         (amd64fbsd32_r_reg_offset): New variable.
599         (supply_gregset): Simply call amd64_supply_native_gregset.
600         (fill_gregset): Rename `regno' to `regnum'.  Simply call
601         amd64_collect_native_gregset.
602         (fill_fpregset): Rename `regno' to `regnum'.
603         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
604         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
605         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
606         `fpregset_t'.  Call amd64_supply_native_gregset instead of
607         supply_gregset.  Call x86_64_supply_fxsave instead of
608         supply_fpregset.
609         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
610         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
611         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
612         `fpregset_t'.  Call amd64_collect_native_gregset instead of
613         fill_gregset.  Call x86_64_collect_fxsave instead of
614         fill_fpregset.
615         (_initialize_am64fbsd_nat): Initialize
616         amd64_native_gregset32_reg_offset and
617         amd64_native_gregset64_reg_offset.
618         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
619
620         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
621         null pointer.  Fix typo in comment.
622
623         * regcache.c (supply_register): Reimplement to call
624         regcache_raw_supply.
625         (regcache_collect): Reimplement by calling regcache_raw_collect.
626
627 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
628
629         * regcache.c (register_buffer): Consitify first argument.
630         (regcache_raw_supply, regcache_raw_collect): New
631         functions.
632
633 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
634
635         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
636         by Nathan J. Williams.
637
638 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
639
640         * lin-lwp.c (wait_lwp): New function, copied from
641         stop_wait_callback.  Clean up.
642         (stop_wait_callback): Use wait_lwp.
643
644 2003-08-28  Andrew Cagney  <cagney@redhat.com>
645
646         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
647         flavour and disassembler options.
648         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
649         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
650         deprecated_tm_print_insn_info.
651         
652 2003-08-27  Andrew Cagney  <cagney@redhat.com>
653
654         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
655         Use target_read_memory.
656         (s390_get_frame_info): Update.  Do not reference
657         deprecated_tm_print_insn_info.
658         (s390_check_function_end, s390_is_sigreturn): Ditto.
659
660 2003-08-27  Andrew Cagney  <cagney@redhat.com>
661
662         * Makefile.in (cris-tdep.o): Update dependencies.
663         * cris-tdep.c: Include "gdb_assert.h".
664         (cris_gdbarch_init): Set print_insn.
665         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
666         (cris_delayed_get_disassembler): Simplify, directly call the
667         disassembler returned by cris_get_disassembler.
668         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
669         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
670         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
671         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
672         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
673         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
674         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
675         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
676         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
677         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
678         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
679         (gdb_print_insn_sparc): Delete function.
680         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
681         deprecated_tm_print_insn_info.
682         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
683         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
684         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
685         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
686         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
687         * s390-tdep.c (gdb_print_insn_s390): Delete function.
688         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
689         (s390_gdbarch_init): Set print_insn.
690
691 2003-08-27  Andrew Cagney  <cagney@redhat.com>
692
693         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
694         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
695         * infcall.c (call_function_by_hand): Convert the entry point
696         address into a code address.
697
698 2003-08-27  Andrew Cagney  <cagney@redhat.com>
699
700         * dsrec.c: Include "gdb_string.h".
701         * Makefile.in (dsrec.o): Update dependencies.
702
703 2003-08-27  Michael Chastain  <mec@shout.net>
704
705         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
706
707 2003-08-27  Andrew Cagney  <cagney@redhat.com>
708
709         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
710         (alpha_osf1_init_abi): Do not set call_dummy_address.
711
712 2003-08-27  David Carlton  <carlton@kealia.com>
713
714         From Randolph Chung  <tausq@debian.org>:
715         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
716         compiles with -Wformat-nonliteral -Werror.
717
718 2003-08-26  Jim Blandy  <jimb@redhat.com>
719
720         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
721         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
722         bfd_lookup_symbol, since we only want symbols in code sections.
723         (look_for_base): Pass zero as the SECT_FLAGS argument to
724         bfd_lookup_symbol, since we're not concerned about which section
725         the symbol is in.
726
727 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
728
729         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
730         we are frameless or the return address register is already known. 
731
732 2003-08-26  Andrew Cagney  <cagney@redhat.com>
733
734         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
735         in size.  Add comments.
736
737 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
738
739         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
740         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr(). 
741
742 2003-08-26  Jason Merrill  <jason@redhat.com>
743
744         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
745         case out of #ifdef MIPS block.
746
747 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
748
749         PR java/1322
750         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
751         available before calling SECT_OFF_TEXT.
752         * PROBLEMS: Remove description of java/1322.
753
754 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
755
756         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63, 
757         bof, and nat0-nat127 as pseudo-registers.
758         (ia64_frame_cache): New struct used to cache frame info.
759         (ia64_register_reggroup_p): New routine used to override default
760         register grouping so registers without names are still saved and 
761         restored.
762         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their 
763         pseudo values.
764         (ia64_pseudo_register_read): New routine to read pseudo-registers.
765         (ia64_pseudo_register_write): New routine to write pseudo-registers.
766         (ia64_alloc_frame_cache): New routine to create a new 
767         ia64_frame_cache.
768         (examine_prologue): Change prototype to add next_frame pointer.
769         Assume frameless until otherwise proven.  Verify that the cfm for
770         current frame matches the cfm that should occur for the prologues 
771         alloc insn and if equal, mark as not frameless.  At end of routine,
772         if not frameless, calculate registers for the previous frame and store
773         in the cache, if a cache is provided.
774         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
775         and pass 0 for next_frame.
776         (ia64_store_return_value): Change to use convert_typed_floating()
777         instead of calling ia64_convert_to_raw().
778         (ia64_extract_return_value): Change to use convert_typed_floating()
779         instead of calling ia64_convert_to_virtual().
780         (ia64_frame_cache): New routine to support new frame model.
781         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
782         (ia64_frame_sniffer): Ditto.
783         (ia64_sigtramp_frame_init_saved_regs): Ditto.
784         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
785         (ia64_sigtramp_frame_prev_register): Ditto.
786         (ia64_sigtramp_frame_sniffer): Ditto.
787         (ia64_frame_base_address): Ditto.
788         (ia64_extract_struct_value_address): Change to issue error message.
789         (ia64_frame_align): New routine to align sp.
790         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
791         (ia64_push_arguments): Removed.  Logic moved to 
792         ia64_push_dummy_call().
793         (ia64_push_return_address): Ditto.
794         (ia64_unwind_dummy_id): New function.
795         (ia64_unwind_pc): Ditto.
796         (ia64_convert_register_p): Ditto.
797         (ia64_register_to_value): Ditto.
798         (ia64_value_to_register): Ditto.
799         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
800         (ia64_register_byte, ia64_register_raw_size): Ditto.
801         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
802         (ia64_saved_pc_after_call): Ditto.
803         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
804         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
805         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
806         (ia64_register_convert_to_raw): Ditto.
807         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
808         (ia64_init_extra_frame_info): Ditto.
809         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
810         (ia64_gdbarch_init): Remove registering of deprecated functions that
811         are no longer used.  Add registration of new gdbarch functions.
812         Remove registering deprecated_write_sp.  Replace
813         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
814         Delete set_gdbarch_deprecated_register_convertible(),
815         set_gdbarch_deprecated_register_convert_to_virtual(), and
816         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
817         set_gdbarch_deprecated_register_size(),
818         set_gdbarch_deprecated_register_bytes(),
819         set_gdbarch_pcregnum(),
820         set_gdbarch_deprecated_register_byte(),
821         set_gdbarch_deprecated_register_raw_size(),
822         set_gdbarch_deprecated_max_register_raw_size(),
823         set_gdbarch_deprecated_register_virtual_size(),
824         and set_gdbarch_deprecated_max_register_virtual_size() calls.
825         Replace set_gdbarch_deprecated_extract_return_value() with
826         set_gdbarch_extract_return_value().  Remove calls to:
827         set_gdbarch_deprecated_saved_pc_after_call();
828         set_gdbarch_deprecated_frame_chain(),
829         set_gdbarch_deprecated_frame_saved_pc(),
830         set_gdbarch_deprecated_frame_init_saved_regs(),
831         set_gdbarch_deprecated_get_saved_register(),
832         set_gdbarch_deprecated_call_dummy_words(),
833         set_gdbarch_deprecated_sizeof_call_dummy_words(),
834         set_gdbarch_deprecated_init_extra_frame_info(),
835         set_gdbarch_deprecated_frame_args_address(),
836         set_gdbarch_deprecated_frame_locals_address(),
837         and set_gdbarch_deprecated_dummy_write_sp().
838         Add set_gdbarch_convert_register_p(),
839         set_gdbarch_register_to_value(),
840         set_gdbarch_value_to_register(),
841         set_gdbarch_push_dummy_call(),
842         set_gdbarch_frame_align(),
843         set_gdbarch_unwind_dummy_id(),
844         set_gdbarch_unwind_pc(),
845         frame_unwind_append_sniffer(),
846         frame_unwind_append_sniffer(),
847         and frame_base_set_default().
848
849 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
850
851         * configure.tgt: Document need for special "mipsisa64" handling.
852         (mipsisa64*-*-linux64): Handle as target linux64.
853         (mipsisa64*-*-*): Handle as target embed64.
854
855 2003-08-18  Michael Chastain  <mec@shout.net>
856
857         * PROBLEMS: Document pr gdb/1322, the Java anonymous
858         objfile bug.
859
860 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
861
862         * i387-tdep.h: Update copyright date.
863         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
864
865         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
866         CFLAGS games to reflect reality.
867
868 2003-08-24  Andrew Cagney  <cagney@redhat.com>
869
870         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
871         GDB_MULTI_ARCH is always non-zero.
872         * osabi.c (_initialize_gdb_osabi): Ditto.
873         (gdbarch_init_osabi): Ditto.
874         * sparc-tdep.c: Ditto for #if code.
875
876 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
877
878         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
879         Update comments.
880         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
881         comments.
882         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
883         x86_64_supply_fxsave.
884         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
885         x86_64_supply_fxsave.
886         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
887         x86_64_supply_fxsave.
888
889 2003-08-23  Andreas Jaeger  <aj@suse.de>
890
891         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
892         i387_supply_fxsave.
893
894 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
895
896         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
897         i387_supply_register.
898         (go32_fetch_registers): Adjust call to i387_supply_fsave.
899         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
900         i387_supply_fsave.
901         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
902         i387_supply_fxsave.
903         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
904         i387_supply_fsave.
905         * i386bsd-nat.c (supply_fpregset): Adjust call to
906         i387_supply_fsave.
907         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
908         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
909         supply_fpregset.
910         (store_inferior_registers): Remove extraneous whitespace.  Call
911         i387_fill_fsave instead of fill_fpregset.
912         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
913         (supply_fpregset): Likewise.
914         * i386v4-nat.c (supply_fpregset): Adjust call to
915         i387_supply_fsave.
916         * i386-interix-nat.c (supply_fpregset): Adjust call to
917         i387_supply_fsave.
918         * i386-linux-nat.c (supply_fpregset): Adjust call to
919         i387_supply_fsave.
920         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
921         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
922         i387supply_fsave and i387_supply_fxsave.
923         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
924         Incorporate code from `i387_supply_register.
925         (i387_supply_register): Remove.
926         (i387_supply_fxsave): Add `regnum' argument.
927         Update comments.
928         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
929         prototype.
930         (i387_supply_register): remove prototype.
931         Update comments.
932         
933 2003-08-22  Michael Chastain  <mec@shout.net>
934
935         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
936         Add lines for files in gdb/testsuite/gdb.cp/* that are
937         still not 8.3 unique.
938
939 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
940
941         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
942         TYPE_VPTR_FIELDNO is valid.
943
944 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
945
946         * utils.c (set_width_command): Remove prototypes.
947         (set_screen_size): New prototype.
948         (init_page_info): Simplify by fetching the screen size from
949         Readline.  Call set_screen_size.
950         (set_screen_size): New function.
951         (set_width): Add missing whitespace in comment.
952         (set_width_command): Call set_screen_size.
953         (set_height_command): New function.
954         (initialize_utils): Fix formatting.  Make "set height" command
955         call set_height_command.  Remove redundant code that turns off
956         pagination if output isn't a terminal.  Remove redundant call to
957         set_width_command.
958         
959 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
960
961         * sparc64-tdep.h (sparc64_regnum): Fix comment.
962         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
963         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
964         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
965         `case' keyword.
966         (sparc64_register_info): Give the reister with number
967         SPARC64_STATE_REGNUM a name.
968         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
969         %asi and %ccr.
970         (sparc64_push_dummy_call): Take BIAS into account when checking
971         stcak alignment.
972         (sparc_software_single_step): Remove assertions that check whether
973         NPC and NNPC were zero.
974         (sparc_supply_rwindow): Make public.  Merge functionality with
975         sparc64_supply_rwindow.
976         (sparc_fill_rwindow): Make public.  Merge functionality with
977         sparc64_fill_rwindow.
978         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
979         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
980         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
981         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
982         sparc_supply_rwindow instead of sparc64_supply_rwindow.
983
984         * reggroups.c: Add whitespace after declarations of local
985         variables in functions.
986
987 2003-08-21  Michael Chastain  <mec@shout.net>
988
989         * gdbtypes.h: Change array bound type from an int to enum.
990
991 2003-08-21  Andrew Cagney  <cagney@redhat.com>
992
993         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
994         * config/sparc/tm-sparc.h: Ditto.
995         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
996         unconditionally.
997         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
998
999 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
1000
1001         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1002         (register_objfile_data, set_objfile_data, objfile_data): New
1003         prototypes.
1004         * objfiles.c (objfile_alloc_data, objfile_free_data): New
1005         prototypes.
1006         (allocate_objfile): Call objfile_alloc_data.
1007         (free_objfile): Call objfile_free_data.
1008         (struct objfile_data): New.
1009         (struct objfile_data_registration): New.
1010         (struct objfile_data_registry): New.
1011         (objfile_data_registry): New variable.
1012         (register_objfile_data): New function.
1013         (objfile_alloc_data, objfile_free_data): New functions.
1014         (set_objfile_data, objfile_data): New functions.
1015         * dwarf2-frame.c (dwarf2_frame_data): New variable.
1016         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1017         (_initialize_dwarf2_frame): New function and prototype.
1018
1019 2003-08-21  Andrew Cagney  <cagney@redhat.com>
1020
1021         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1022         a specific architecture.
1023         * arch-utils.h (set_architecture_from_arch_mach): Delete
1024         declaration.
1025         (target_architecture_hook): Delete declaration.
1026         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1027         (default_float_format): Assume GDB_MULTI_ARCH.
1028         (default_double_format): Assume GDB_MULTI_ARCH.
1029         (set_endian_from_file): Delete function.
1030         (arch_ok): Delete function.
1031         (set_arch): Delete function.
1032         (set_architecture_from_arch_mach): Delete function.
1033         (set_architecture_from_file): Delete function.
1034         (set_architecture): Assume GDB_MULTI_ARCH.
1035         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1036
1037 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
1038
1039         Rewrite FreeBSD/sparc64 native configuration.
1040         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1041         * sparc64fbsd-nat.c: New file.
1042         * sparc64fbsd-tdep.c: New file.
1043         * sparc64-tdep.c sparc64-tdep.h: New files.
1044         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1045         sparc64fbsd-tdep.o): New dependencies.
1046         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1047         and sparc64fbsd-tdep.c.
1048         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1049         * config/sparc/fbsd.mh: Remove copyright notice.
1050         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1051         sparcbsd-nat.o.
1052         * config/sparc/fbsd.mt: Remove copyright notice.
1053         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1054         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1055         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1056         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1057         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1058         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1059         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1060         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1061         "sparc/tm-sp64.h".
1062         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1063         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1064
1065 2003-08-21  Michael Chastain  <mec@shout.net>
1066
1067         * symtab.h: Add doco on the space critical structures and
1068         some measurements of space usage.
1069
1070 2003-08-21  Michael Snyder  <msnyder@redhat.com>
1071
1072         * tracepoint.c (trace_dump_command): Trace break address
1073         is subject to DECR_PC_AFTER_BREAK.
1074         (set_traceframe_context): Make "trace_line" an int.
1075         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
1076         
1077 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1078
1079         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1080         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set 
1081         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for 
1082         argument passing.
1083         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New 
1084         functions, replace sh_push_dummy_call.
1085         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1086
1087 2003-08-20  Michael Chastain  <mec@shout.net>
1088
1089         * gdbtypes.h (struct main_type): Rearrange to save space.
1090
1091 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1092
1093         * trad-frame.c: Comment typo fix.
1094
1095 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1096             Kevin Buettner  <kevinb@redhat.com>
1097
1098         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1099         (frv_frame_init_saved_regs): Add declaration.
1100         (frame_extra_info): Add new field ``saved_regs''.
1101         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1102         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1103         Update frame related code.
1104         (frv_extract_struct_value_address): Adjust formatting.
1105         * Makefile.in (frv-tdep.o): Update dependencies.
1106         * config/frv/tm-frv.h (target_insert_watchpoint)
1107         (target_remove_watchpoint, target_insert_hw_breakpoint)
1108         (target_remove_hw_breakpoint): Delete these macros.
1109         (remote_insert_watchpoint, remote_remove_watchpoint)
1110         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1111         these declarations.
1112
1113 2003-08-20  Michael Chastain  <mec@shout.net>
1114
1115         * defs.h (ENUM_BITFIELD): New macro.
1116         * symtab.h (ENUM_BITFIELD): Use it.
1117         (BYTE_BITFIELD): Remove old macro, which was already disabled.
1118
1119 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
1120
1121         * MAINTAINERS (write after approval): Add myself.
1122         
1123 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1124
1125         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1126         * gdbarch.h, gdbarch.c: Re-generate.
1127         * infcall.c (call_function_by_hand): Adjust the SP by
1128         frame_red_zone_size before allocating any stack space.
1129         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1130         * x86-64-tdep.c (x86_64_frame_align): New function.
1131         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1132
1133         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1134         Remove code adjusting SP so that it skips over the Red Zone.
1135
1136 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1137
1138         * NEWS (New native configurations): Mention FreeBSD/amd64.
1139
1140 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1141
1142         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1143         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
1144         "m68k_frame_p".
1145         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1146
1147 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1148
1149         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1150
1151 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
1152
1153         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1154         Define.
1155         * i386-linux-nat.c: Include "linux-nat.h".
1156         (child_post_startup_inferior): New function.
1157         
1158 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1159
1160         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1161         at the start of a frameless function.  This probably fixes PR
1162         backtrace/1338.
1163
1164 2003-08-17  Michael Chastain  <mec@shout.net>
1165
1166         * symfile.c (find_sym_fns): Remove special case for apollo target.
1167
1168 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1169
1170         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1171         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1172         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1173         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1174         (linux_supports_tracevforkdone): New function.
1175         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1176         TRACEVFORKDONE.
1177         (child_follow_fork): Handle vfork.
1178         (linux_handle_extended_wait): Likewise.  Also handle exec.
1179         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1180         * NEWS: Mention fork tracing.
1181
1182 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1183
1184         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1185
1186 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1187
1188         * Makefile.in (i386-linux-nat.o): Update dependencies.
1189         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1190         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1191         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1192         * i386-linux-nat.c: Include "linux-nat.h".
1193         (child_post_startup_inferior): New function.
1194         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1195         * infptrace.c (kill_inferior): Wrap in #ifdef.
1196         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1197         attaching to each LWP.
1198         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1199         (init_lin_lwp_ops): Fill in some more operations.
1200         * linux-nat.h (linux_enable_event_reporting)
1201         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1202         prototypes.
1203         * linux-nat.c (linux_enable_event_reporting): New function.
1204         (child_post_attach, linux_child_post_startup_inferior)
1205         (child_post_startup_inferior, child_follow_fork)
1206         (linux_handle_extended_wait, kill_inferior): New functions.
1207
1208 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1209
1210         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1211         * gdbarch.h, gdbarch.c: Re-generate.
1212
1213 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
1214
1215         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1216
1217 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1218
1219         * NEWS: Mention that "set prompt-escape-char" was deleted.
1220         * top.c (get_prompt_1): Delete function.
1221         (gdb_prompt_escape):
1222         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
1223         prompt-escape-char" command.
1224         (MAX_PROMPT_SIZE): Delete macro.
1225         (get_prompt): Simplify, do not call get_prompt_1.
1226
1227 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1228
1229         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1230         -Werror.  -Wformat-nonliteral problems.
1231
1232 2003-08-15  J. Brobecker  <brobecker@gnat.com>
1233
1234         Further multiarching work mostly for hppa64-*-hpux11:
1235         * hppa-tdep.h: New file.
1236         * hppa-tdep.c: #include hppa-tdep.c.
1237         (hppa32_num_regs): Renamed from hppa_num_regs.
1238         (hppa64_num_regs): New constant.
1239         (hppa64_call_dummy_breakpoint_offset): New constant.
1240         (hppa32_call_dummy_length): New constant.
1241         (hppa64_call_dummy_length): New constant.
1242         (hppa32_stack_align): Make name 32bit explicit.
1243         (hppa32_register_virtual_type): Likewise.
1244         (hppa32_extract_return_value): Likewise.
1245         (hppa32_use_struct_convention): Likewise.
1246         (hppa32_store_return_value): Likewise.
1247         (hppa64_register_virtual_type): New function.
1248         (hppa64_extract_return_value): New function.
1249         (hppa64_use_struct_convention): New function.
1250         (hppa64_store_return_value): New function.
1251         (hppa_frame_locals_address): Remove declaration, function does
1252         not exist anymore.
1253         (hppa_register_byte): Add support for PA64 ABI.
1254         (hppa_gdbarch_init): Add support for PA64 ABI.
1255         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1256         Make name 32bit explicit.
1257         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1258         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1259         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1260         (hppa64_hpux_frame_base_before_sigtramp): New function.
1261         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1262         * config/pa/tm-hppa64.h: Remove macros that are no longer
1263         necessary now that the gdbarch vector is properly setup.
1264         Transform some macros into function calls. Some minor cleanup. 
1265         * config/pa/tm-hppah.h: Update function calls in macros
1266         following the function renaming in hppa-hpux-tdep.c.
1267         * Makefile.in (hppa_tdep_h): New variable.
1268         (hppa-tdep.o): Add dependency over hppa_tdep_h.
1269
1270 2003-08-14  Michael Snyder  <msnyder@redhat.com>
1271
1272         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1273
1274 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1275
1276         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1277         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1278         routine.
1279
1280 2003-08-13  Michael Snyder  <msnyder@redhat.com>
1281
1282         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1283         (frv_saved_pc_after_call): Use deprecated ftype.
1284         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1285         (frv_remote_translate_xfer_address): Remove.
1286         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1287
1288 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1289
1290         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1291         initialization after the common gdbarch initialization, not before.
1292
1293 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1294
1295         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1296         (ADDR_BITS_REMOVE): Remove, redundant.
1297
1298 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1299
1300         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1301         gdbarch method to clear the 2 low bits of text addresses.
1302
1303 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1304
1305         * Makefile.in (dsrec.o): Update dependencies.
1306         * dsrec.c: Include "gdb_assert.h".
1307         (make_srec): Use snprintf instead of sprintf, use a literal format
1308         string.
1309
1310 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1311
1312         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1313         FRAME_OBSTACK_ZALLOC.
1314
1315 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
1316
1317         * i386-tdep.c (i386_gdbarch_init): Enable default support for
1318         SSE registers.
1319
1320 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1321
1322         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1323         amd64fbsd_sc_reg_offset): Add extern declarations.
1324         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1325         declarations.
1326
1327 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
1328
1329         * MAINTAINERS (write after approval): Update my mail address.
1330
1331 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1332
1333         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1334
1335 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1336
1337         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1338         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1339         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1340         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1341         i386bsd_sc_reg_offset): Add extern declarations.
1342         * i386obsd-nat.c: Include "i386-tdep.h"
1343         (_initialize_i386obsd_nat): Remove extern declarations.
1344         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1345         declarations.
1346         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1347         declarations.
1348
1349         * i386-tdep.c (i386_register_to_value): Use get_frame_register
1350         instead of frame_read_register.
1351         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1352         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
1353         SP_REGNUM.
1354         (i386_frame_prev_register): Use frame_unwind_register_unsigned
1355         instead of frame_unwind_unsigned_register.  Use
1356         I386_EFLAGS_REGISTER instead of PS_REGNUM.
1357         (i386_get_longjmp_target): Use regcache_read_unsigned_register
1358         instead of read_register.  Use builtin_type_void_data_ptr instead
1359         of builtin_type_void_func_ptr when extracting the address of the
1360         jmp_buf.
1361         (i386_extract_return_value, i386_store_return_value,
1362         i386_pseudo_register_read, i386_pseudo_register_write): Use
1363         register_size instead REGISTER_RAW_SIZE.
1364
1365 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1366
1367         * infcall.c (call_function_by_hand): Use xstrprintf instead of
1368         sprintf.  Make "name" constant.
1369
1370 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1371
1372         * i387-tdep.c (i387_register_to_value): Use get_frame_register
1373         instead of frame_read_register.
1374         (i387_print_float_info): Use get_frame_register and
1375         get_frame_register_unsigned instead of frame_register_read.
1376
1377         * i386fbsd-nat.c: Include "i386-tdep.h".
1378         (child_resume): Make `eflags' an ULONGEST.  Use
1379         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1380         instead of register_read and register_write.
1381
1382         * i386bsd-nat.c (fetch_inferior_registers,
1383         store_inferior_registers): Don't use && at the end of a line.
1384         (_initialize_i386bsd_nat): Fix typo.
1385
1386         * frame.c (_initialize_frame): Add missing backslash.
1387
1388         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1389         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1390         and supply_register instead of manipulating the register buffer
1391         directly.
1392
1393         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1394         * config/i386/nm-i386sol2.h
1395         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1396
1397         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1398         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1399         instructions that GCC likes to mingle into the prologue.  Fixes
1400         gdb/1253 and gdb/1255.
1401
1402 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1403
1404         Fix GDB PR cli/926.
1405         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1406         * command.h (add_setshow_uinteger_cmd): Declare.
1407         * frame.c (set_backtrace_cmd): New function.
1408         (show_backtrace_cmd): New function.
1409         * frame.c (_initialize_frame): Replace "set/show
1410         backtrace-below-main" with "set/show backtrace past-main".  Add
1411         command "set/show backtrace limit".
1412         (backtrace_past_main): Rename "backtrace_below_main".
1413         (backtrace_limit): New variable.
1414         (get_prev_frame): Update.  Check the backtrace_limit.
1415
1416 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1417
1418         * defs.h (xstrprintf): Declare.
1419         * utils.c (xstrprintf): New function.
1420         * breakpoint.c (insert_breakpoints): Replace sprintf and
1421         non-literal format strings, with xstrprintf and cleanups.
1422         (delete_breakpoint,breakpoint_re_set): Ditto.
1423         (commands_command, insert_breakpoints): Ditto.
1424         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1425         (break_at_finish_command_1): Ditto.
1426
1427 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1428
1429         * MAINTAINERS (language support): List Adam Fedor as Objective C
1430         maintainer.
1431
1432 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1433
1434         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1435         are now multiarched.
1436
1437 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1438
1439         * config/pa/tm-hppa64.h: Remove lots of macros that are no
1440         longer necessary now that hppa64 is partially multiarch'ed.
1441
1442 2003-08-08  Andrew Cagney  <cagney@redhat.com>
1443
1444         * interps.c (interp_set): Check for a NULL "old_interp".
1445
1446 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
1447
1448         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1449         (install-only): Support DESTDIR.
1450         (uninstall): Likewise.
1451         (install-gdbtk): Likewise.
1452
1453 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
1454
1455         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1456         contains something meaningful at all times.
1457
1458 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1459
1460         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1461
1462 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1463
1464         * MAINTAINERS (write after approval): Added self.
1465
1466 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1467
1468         * inferior.h (AT_SYMBOL): Define.
1469         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1470         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1471         * mips-tdep.c (mips_call_dummy_address): Delete function.
1472         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1473         set call_dummy_address.
1474
1475 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1476
1477         * language.c (op_error): Delete function.
1478         (binop_type_check): Delete function.
1479         * language.h (type_op_error, range_op_error): Delete macros.
1480         (op_error): Delete declaration.
1481
1482 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1483
1484         * interps.h (INTERP_MI2, INTERP_MI3): Define.
1485
1486 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
1487
1488         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1489         (x86_64_push_arguments): Skip the red zone.
1490
1491 2003-08-05  Andrew Cagney  <cagney@redhat.com>
1492
1493         * reggroups.c (reggroup_next): Check for the final entry.
1494
1495 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1496
1497         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1498         * cli/cli-script.c (define_command): Call query directly, instead
1499         of passing it a buffer.
1500         * ocd.c (ocd_error): Pass error a constant format string.
1501         * remote-mips.c (mips_error): Use fputs_filtered.
1502
1503         * solib-svr4.c (_initialize_svr4_solib): Update
1504         register_gdbarch_data call.
1505         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1506
1507         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1508         (register_gdbarch_data): Delete "free" parameter.  Update
1509         comments.
1510         * gdbarch.h, gdbarch.c: Re-generate.
1511         * reggroups.c (_initialize_reggroup): Update.
1512         * gnu-v3-abi.c (init_gnuv3_ops): Update.
1513         * frame-base.c (_initialize_frame_base): Update.
1514         * frame-unwind.c (_initialize_frame_unwind): Update.
1515         * user-regs.c (_initialize_user_regs): Update.
1516         * remote.c (_initialize_remote): Update.
1517         * regcache.c (_initialize_regcache): Update.
1518
1519         * regcache.c (xfree_regcache_descr): Delete function.
1520         (_initialize_regcache): Update call to register_gdbarch_data.
1521         (init_regcache_descr, init_legacy_regcache_descr): Use
1522         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1523
1524         * remote.c (free_remote_state): Delete function.
1525         (_initialize_remote): Update register_gdbarch_data.
1526         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1527         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1528
1529 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1530
1531         * reggroups.c (struct reggroup_el): Define.
1532         (struct reggroups): Delete field "nr_group".  Replace array
1533         "group" with a "first" to "last" linked list.
1534         (reggroups_init): Update.  Allocate using gdbarch's obstack.
1535         (reggroups_free): Delete function.
1536         (add_group): Update.  Add "el" parameter.
1537         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1538         (default_groups): Update.
1539         (reggroup_next): Replace reggroups.
1540         (reggroups_dump): Update.
1541         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1542         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1543         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1544
1545 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
1546
1547         * Makefile.in (tui-interp.o): Update dependencies.
1548
1549 2003-08-04  David Carlton  <carlton@kealia.com>
1550
1551         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1552         to internal_error call.
1553         * source.c (forward_search_command): Add "%s" format argument.
1554         (reverse_search_command): Ditto.
1555         * top.c (quit_confirm): Ditto.
1556         * cli/cli-setshow.c (do_setshow_command): Ditto.
1557         * cp-valprint.c (cp_print_class_method): Replace
1558         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1559         (cp_print_class_member): Ditto.
1560         * event-top.c (command_line_handler): Ditto.
1561         * linux-proc.c (linux_info_proc_cmd): Ditto.
1562         * p-typeprint.c (pascal_type_print_base): Ditto.
1563         * p-valprint.c (pascal_object_print_class_method): Ditto.
1564         (pascal_object_print_class_member): Ditto.
1565         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1566         * remote.c (remote_cisco_section_offsets): Ditto.
1567         * top.c (command_line_input): Ditto.
1568         * utils.c (vwarning,error_stream,quit): Ditto.
1569         * valprint.c (print_floating,print_binary_chars)
1570         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1571
1572 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1573
1574         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1575
1576 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1577
1578         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1579         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1580         amd64fbsd-nat.c.
1581
1582 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1583
1584         * Makefile.in: Update all dependencies and definitions.
1585
1586 2003-08-02  Adam Fedor  <fedor@gnu.org>
1587
1588         * linespec.c (is_objc_method_format): New function
1589         (decode_line_1, locate_first_half): Use it.
1590         Fixes PR objc/1298
1591
1592 2003-08-01  Andrew Cagney  <cagney@redhat.com>
1593
1594         * NEWS: Mention that m32r is multi-arch.
1595         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1596         * configure.tgt: Recognize m32r-*-*.
1597         * config/m32r/tm-m32r.h: Delete file.
1598         * config/m32r/m32r.mt: New file.
1599         * m32r-rom.c (m32r_upload_command): Use hostent only when 
1600         gethostname succeeds, in order to avoid a compilation
1601         warning.
1602         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1603         compiler warning.
1604
1605 2003-08-01  Michael Snyder  <msnyder@redhat.com>
1606
1607         * sh-tdep.c (sh_frame_align): New gdbarch method.
1608         (sh_gdbarch_init): Set up frame_align method.
1609
1610 2003-07-31  Michael Snyder  <msnyder@redhat.com>
1611
1612         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1613         which is already covered by the new frames infrastructure.
1614
1615 2003-07-31  Andrew Cagney  <cagney@redhat.com>
1616
1617         * user-regs.c (struct user_reg): Add "next" link.
1618         (struct user_regs): Replace "user" with "first" and "last" links.
1619         (append_user_reg): Add pre-allocated "reg" parameter.
1620         (builtin_user_regs): Provide initial value for "last".
1621         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1622         (user_regs_init): Allocate memory from the gdbarch obstack.
1623         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1624         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1625         linked list.
1626         (usernum_to_user_reg): New function.
1627         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1628         (value_of_user_reg): Use usernum_to_user_reg.
1629         (user_regs_free): Delete function.
1630         (_initialize_user_regs): Update register_gdbarch_data call.
1631
1632 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
1633
1634         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1635
1636 2003-07-30  Michael Snyder  <msnyder@redhat.com>
1637
1638         * value.h (value_being_returned): Add a struct_addr argument.
1639         * infcall.c (call_function_by_hand): Pass struct_addr to 
1640         value_being_returned.
1641         * infcmd.c (print_return_value): Pass zero as struct_addr.
1642         * values.c (value_being_returned): If struct_addr is passed,
1643         use it instead of trying to recover it from the inferior.
1644
1645 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
1646
1647         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1648         the prologue analyzer won't need to attempt to extract the pc
1649         value from the woefully incomplete dummy frame.
1650         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1651         possible.  Disable code which modifies the frame.
1652
1653 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1654
1655         * annotate.c (annotate_breakpoints_headers): Restrict annotation
1656         to level 2.
1657         (annotate_breakpoints_table, annotate_record): Ditto.
1658         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1659         (annotate_field_name_end, annotate_field_value): Ditto.
1660         (annotate_field_end, annotate_frame_source_begin): Ditto.
1661         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1662         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1663         (annotate_frame_begin, annotate_frame_function_name): Ditto.
1664         (annotate_frame_address_end, annotate_frame_address): Ditto.
1665         (annotate_frame_args, annotate_frame_end): Ditto.
1666         (annotate_frame_where, annotate_arg_begin): Ditto.
1667         (annotate_arg_name_end, annotate_arg_value): Ditto.
1668         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1669         (annotate_function_call, annotate_signal_name): Ditto.
1670         (annotate_signal_string, annotate_signal_name_end): Ditto.
1671         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1672         (annotate_value_begin, annotate_value_history_value): Ditto.
1673         (annotate_value_history_end, annotate_value_end): Ditto.
1674         (annotate_display_begin, annotate_display_number_end): Ditto.
1675         (annotate_display_format, annotate_display_expression): Ditto.
1676         (annotate_display_expression_end, annotate_display_value): Ditto.
1677         (annotate_display_end, annotate_array_section_begin): Ditto.
1678         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1679         (annotate_elt, annotate_array_section_end): Ditto.
1680
1681 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1682
1683         * regcache.c (struct regcache_descr): Update comments on
1684         nr_raw_registers.
1685         (init_legacy_regcache_descr): Don't set nr_raw_registers or
1686         sizeof_raw_register_valid_p.
1687         (init_regcache_descr): Set nr_raw_registers and
1688         sizeof_raw_register_valid_p before calling
1689         init_legacy_regcache_descr.
1690
1691 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1692
1693         * mips-tdep.c (print_gp_register_row): Print the GPR's register
1694         MOD NUM_REGS.
1695
1696 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
1697
1698         * thread.c (info_threads_command): Use get_selected_frame ().
1699         Check that there is at least one non-sentinel frame.
1700
1701 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1702
1703         * m68hc11-tdep.c (struct frame_extra_info): Remove.
1704         (m68hc11_pop_frame): Remove.
1705         (m68hc11_frame_saved_pc): Remove.
1706         (m68hc11_frame_chain): Remove.
1707         (m68hc11_frame_init_saved_regs): Remove.
1708         (m68hc11_init_extra_frame_info): Remove.
1709         (m68hc11_store_struct_return): Remove.
1710         (m68hc11_saved_pc_after_call): Remove.
1711
1712 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1713
1714         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1715         frame unwind information.
1716         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1717         and adapted for frame unwinding.
1718         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1719         (m68hc11_unwind_pc): New function.
1720         (m68hc11_frame_unwind_cache): New function to analyze frames.
1721         (m68hc11_frame_this_id): New function to create new frame struct.
1722         (m68hc11_frame_prev_register): New function to unwind a register from
1723         the frame.
1724         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1725         (m68hc11_frame_p): New function for the above.
1726         (m68hc11_frame_base_address): New function to return fp of frame.
1727         (m68hc11_frame_args_address): Update for frame.
1728         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1729         (m68hc11_unwind_sp): New function.
1730         (m68hc11_unwind_dummy_id): New function.
1731         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1732         calls.
1733
1734 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1735
1736         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1737         (m68hc11_guess_from_prologue): Advance the pc and frame size only
1738         when we are beyond the current pc.
1739
1740 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1741
1742         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1743         from m68hc11_push_arguments.
1744         (m68hc11_push_arguments): Remove.
1745         (m68hc11_push_return_address): Remove.
1746         (m68hc11_gdbarch_init): Install the above; remove above deprecated
1747         handlers; remove deprecated_extra_stack_alignment_needed.
1748
1749 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1750
1751         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1752         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1753         REAL_PC and not the pointer.
1754         * hppa-hpux-tdep.c: Include frame.h
1755
1756 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1757
1758         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1759         GDB_MULTI_ACH_PARTIAL.
1760
1761 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1762
1763         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1764         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1765         operator at start and not end of line.
1766         (decode_prologue): Ditto.
1767         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1768         frame_unwind_register_unsigned instead of
1769         frame_unwind_unsigned_register.
1770         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1771         read_register.
1772         (m32r_push_dummy_call): Use register_size instead of
1773         REGISTER_RAW_SIZE.
1774         (m32r_frame_sniffer): Replace m32r_frame_p.
1775         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1776         * m32r-rom.c (report_transfer_performance): Delete extern
1777         declaration.
1778         (m32r_load, m32r_upload_command): Use print_transfer_performance
1779         instead of report_transfer_performance.
1780         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1781         / add_show_from_set.
1782
1783 2003-07-26  Andrew Cagney  <cagney@redhat.com>
1784
1785         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1786         store_return_value and extract_struct_value_address.
1787
1788 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
1789
1790         PR c++/1267
1791         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1792         NULL, default to the section containing PC.
1793
1794 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
1795
1796         * NEWS: Mention "regs" deprecated for m68hc11 too.
1797
1798         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1799         (m68hc11_print_register): New function to print out one register.
1800         (m68hc11_print_registers_info): New function to print registers.
1801         (show_regs): Deprecate and use the above.
1802         (m68hc11_gdbarch_init): Install the print_registers_info.
1803
1804 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
1805
1806         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1807         that we have a SIGTRAP before returning non-zero.
1808
1809 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
1810             Elena Zannoni  <ezannoni@redhat.com>
1811
1812         * linespec.c (decode_line_2): Avoid crash if 
1813         find_function_start_sal() returns empty record.
1814
1815 2003-07-23  Andreas Schwab  <schwab@suse.de>
1816
1817         * ia64-tdep.c (ia64_print_insn): New function.
1818         (ia64_gdbarch_init): Set print_insn to it.
1819         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1820         deprecated_tm_print_insn_info.
1821
1822 2003-07-22  Michael Snyder  <msnyder@redhat.com>
1823
1824         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1825         handle 8-bit returns (long long).
1826         (h8300h_extract_return_value): Ditto.
1827         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1828
1829 2003-07-22  Andrew Cagney  <cagney@redhat.com>
1830
1831         * gdbarch.c Include "gdb_obstack.h".
1832         (struct gdbarch): Add an "obstack".
1833         (alloc_gdbarch_data): Allocate the gdbarch data using
1834         GDBARCH_OBSTACK_CALLOC.
1835         (free_gdbarch_data): Delete function.
1836         (gdbarch_obstack_zalloc): New function.
1837         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1838         Assert that the architecture is not initialized.
1839         (gdbarch_alloc): Allocate an obstack, allocate the architecture
1840         vector from the obstack.
1841         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1842         architecture obstack.
1843         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1844         (set_gdbarch_data): Assert that the data is not initialized.
1845         (struct gdbarch_data): Delete member "free".
1846         (register_gdbarch_data): Do not initialize "free".
1847         * gdbarch.h, gdbarch.c: Re-generate.
1848         
1849 2003-07-22  Andrew Cagney  <cagney@redhat.com>
1850
1851         * configure.in (build_warnings): Add -Wformat-nonliteral.
1852         * configure: Re-generate.
1853
1854 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
1855
1856         * dwarf2loc.c (locexpr_describe_location): Fix typos.
1857
1858 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
1859
1860         * findvar.c (read_var_value): Remove case for thread local storage
1861         variables.  It is now entirely handled by the dwarf2 location
1862         expression code.
1863         * printcmd.c (address_info): Ditto.
1864         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1865         enumeration value.
1866         (struct symbol): Remove objfile field, which was used by
1867         LOC_THREAD_LOCAL_STATIC only.
1868         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1869         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1870         usage of objfile pointer.
1871         * dwarf2loc.c (locexpr_describe_location): Add case to handle
1872         thread local variables.
1873         Add include of objfiles.h.
1874         * dwarf2expr.c (execute_stack_op): Add comments about thread local
1875         storage variables.
1876         * Makefile.in (dwarf2loc.o): Update dependencies.
1877
1878 2003-07-22  Andrew Cagney  <cagney@redhat.com>
1879
1880         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1881         get_frame_base.
1882         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1883         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1884         (struct value): Add opaque declaration.
1885         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1886
1887 2003-07-21  Andrew Cagney  <cagney@redhat.com>
1888
1889         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1890         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1891
1892 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
1893
1894         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
1895         regcache_cooked_read_unsigned instead of read_register.
1896         (m68hc11_saved_pc_after_call): Likewise.
1897         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1898         instead of write_register.
1899         (m68hc11_register_type): New function.
1900         (m68hc11_register_virtual_type): Remove.
1901         (m68hc11_store_return_value): Convert to use the regcache.
1902         (m68hc11_extract_struct_value_address): Likewise.
1903         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1904         m68hc11_register_type; undeprecate store_return_value and
1905         extract_struct_value_address.
1906
1907 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
1908
1909         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1910         and translate to use regcache.
1911         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1912
1913 2003-07-18  Andrew Cagney  <cagney@redhat.com>
1914
1915         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1916         * gdbarch.h, gdbarch.c: Re-generate.
1917         * i386-tdep.c (i386_gdbarch_init): Do not set
1918         DWARF2_BUILD_FRAME_INFO.
1919         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1920         unconditionally.
1921         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1922         DWARF2_BUILD_FRAME_INFO.
1923
1924 2003-07-18  Andrew Cagney  <cagney@redhat.com>
1925
1926         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1927         * disasm.c (gdb_disassemble_info): Initilize di.arch.
1928
1929 2003-07-18  Andrew Cagney  <cagney@redhat.com>
1930
1931         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1932         frame_unwind_address_in_block, instead of frame_pc_unwind.
1933         (dwarf2_frame_cache): Ditto.
1934
1935 2003-07-18  Andrew Cagney  <cagney@redhat.com>
1936
1937         * user-regs.h (struct gdbarch): Declare opaque.
1938         * ui-out.h (struct ui_file): Declare opaque.
1939         * dwarf2-frame.h (struct frame_info): Declare opaque.
1940
1941 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
1942
1943         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
1944         #include "...".
1945         (procfs_meminfo): Change strerror to safe_strerror.
1946         (procfs_can_run): Remove K&R badness.
1947
1948 2003-07-17  Michael Snyder  <msnyder@redhat.com>
1949
1950         * remote-sim.c: Comment typo fix.
1951
1952 2003-07-17  Andrew Cagney  <cagney@redhat.com>
1953
1954         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
1955         configure.
1956         * sparc-tdep.c (sparc_intreg_size): Make non-static.
1957         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1958         GDB_MULTI_ARCH_PARTIAL.
1959
1960 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
1961
1962         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1963         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
1964         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1965
1966 2003-07-16  Theodore A. Roth  <troth@openavr.org>
1967
1968         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1969         found.
1970         (avr_frame_unwind_cache): Don't unwind FP for main.
1971         Update a comment.
1972         Save the computed prev_sp.
1973         (avr_saved_regs_unwinder): Remove function.
1974         (avr_frame_prev_register): Use PC unwind logic from 
1975         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1976
1977 2003-07-16  Andrew Cagney  <cagney@redhat.com>
1978
1979         * frame-base.h (frame_base_p_ftype): Delete definition.
1980         (frame_base_append_predicate): Delete declaration.
1981         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1982         (frame_unwind_append_predicate): Delete declaration.
1983         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1984         (append_predicate): Delete parameter "p".
1985         (frame_unwind_append_predicate): Delete function.
1986         (frame_unwind_append_sniffer): Update call to append_predicate.
1987         (frame_unwind_free): Delete function.
1988         (_initialize_frame_unwind): Pass NULL as "free" to
1989         register_gdbarch_data.
1990         (frame_unwind_init): Append the dummy_frame_sniffer.
1991         (frame_unwind_find_by_frame): Simplify.
1992         * frame-base.c (struct frame_base_table): Delete field "p".
1993         (append_predicate): Delete parameter "p".
1994         (frame_base_append_predicate): Delete function.
1995         (frame_base_append_sniffer): Update call to append_predicate.
1996         (frame_base_free): Delete function.
1997         (frame_base_find_by_frame): Simplify.
1998         (_initialize_frame_base): Pass NULL as "free" to
1999         register_gdbarch_data.
2000         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2001         (x86_64_sigtramp_frame_sniffer): Replace
2002         "x86_64_sigtramp_frame_p".
2003         (x86_64_init_abi): Set the frame unwind sniffers.
2004         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2005         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2006         (m68k_gdbarch_init): Set the frame unwind sniffers.
2007         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2008         "i386_sigtramp_frame_p".
2009         (i386_frame_sniffer): Replace "i386_frame_p".
2010         (i386_gdbarch_init): Set the frame unwind sniffers.
2011         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2012         (avr_gdbarch_init): Set the frame unwind sniffers.
2013         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2014         "alpha_sigtramp_frame_p"
2015         (alpha_heuristic_frame_sniffer): Replace
2016         "alpha_heuristic_frame_p".
2017         (alpha_gdbarch_init): Set the frame unwind sniffers.
2018         (alpha_dwarf2_init_abi): Ditto.
2019         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2020         "alpha_debug_frame_p".
2021         (alpha_mdebug_frame_base_sniffer): Replace
2022         "alpha_mdebug_frame_base_p".
2023         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2024         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2025         (d10v_gdbarch_init): Set the frame unwind sniffer.
2026         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2027         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2028         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2029         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2030         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2031         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2032
2033 2003-07-16  Michael Snyder  <msnyder@redhat.com>
2034
2035         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2036         should go thru sh_dsp_register_sim_regno, else the dsp regs
2037         will not get the right values.
2038
2039 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2040
2041         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2042         deprecated_store_floating by call to store_typed_floating.
2043         (sh_sh4_register_convert_to_raw): Substitute call to
2044         deprecated_extract_floating by call to extract_typed_floating.
2045
2046 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2047
2048         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2049
2050 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2051
2052         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2053         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2054         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
2055         as possible.
2056         (do_pseudo_register): Remove.
2057         (sh_push_dummy_code): New function.
2058         (sh64_store_struct_return): Rename from sh_store_struct_return.
2059         Only called for sh64 now.
2060         (sh_extract_struct_value_address): Regcache'ify.
2061         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
2062         and accomodate new tasks.
2063         (sh64_push_return_address): Rename from sh_push_return_address.
2064         Only called for sh64 now.
2065         (sh_default_extract_return_value): Rename from sh_extract_return_value.
2066         Regcache'ify.
2067         (sh3e_sh4_extract_return_value): Regcache'ify.
2068         (sh_default_store_return_value): Ditto.
2069         (sh3e_sh4_store_return_value): Ditto.
2070         (sh_default_register_byte): Remove.
2071         (sh_sh4_register_byte): Remove.
2072         (sh_default_register_raw_size): Remove.
2073         (sh_sh4_register_raw_size): Remove.
2074         (sh_register_virtual_size): Remove.
2075         (sh_sh3e_register_virtual_type): Remove.
2076         (sh_sh3e_register_type): New function.
2077         (sh_sh4_register_virtual_type): Remove.
2078         (sh_sh4_register_type): New function.
2079         (sh_default_register_virtual_type): Remove.
2080         (sh_default_register_type): New function.
2081         (do_fv_register_info): Add parameters to accomodate call from
2082         sh_print_registers_info.
2083         (do_dr_register_info): Ditto.
2084         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2085         Add parameters to accomodate call from sh_print_registers_info.
2086         (sh_do_fp_register): Ditto.
2087         (sh64_do_pseudo_register): Call do_dr_register_info,
2088         do_fv_register_info and sh_do_fp_register with default parameters.
2089         (sh_do_register): Add parameters to accomodate call from
2090         sh_print_registers_info.
2091         (sh_print_register): Ditto.
2092         (sh_print_registers_info): Rename from sh_do_registers_info.
2093         Add parameters to be used as gdbarch_print_registers_info
2094         implementation.  Accomodate removed do_pseudo_register function
2095         pointer.
2096         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2097         function pointer. Call sh_print_register with default parameters.
2098         (sh64_do_registers_info): Call sh_print_registers_info instead of
2099         sh_do_registers_info.
2100         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2101         detection of deprecated vs. non-deprecated functionality.
2102         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
2103         function pointer assignments by direct function calls.
2104
2105 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2106
2107         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2108         (frame_register_unwind, create_new_frame): Ditto.
2109         (legacy_get_prev_frame, get_frame_type): Ditto.
2110         (get_frame_base_address): Use frame_base_find_by_frame.
2111         (get_frame_locals_address): Use frame_base_find_by_frame.
2112         (get_frame_args_address): Use frame_base_find_by_frame.
2113         * frame-base.h (frame_base_sniffer_ftype): Declare.
2114         (frame_base_append_sniffer): Declare.
2115         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2116         * frame-base.c (append_predicate): Add a "sniffer" parameter.
2117         (frame_base_append_sniffer): New function.
2118         (frame_base_append_predicate): Add a NULL sniffer.
2119         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2120         (struct frame_base_table): Add "sniffer".
2121         (frame_base_free): Free the "sniffer" table.
2122         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2123         (frame_unwind_append_sniffer): Declare.
2124         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2125         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2126         (struct frame_unwind_table): Add "sniffer", delete "middle".
2127         (append_predicate): Add "sniffer" parameter, append the sniffer.
2128         (frame_unwind_init): Update append_predicate call.
2129         (frame_unwind_append_sniffer): New function.
2130         (frame_unwind_append_predicate): Update append_predicate call.
2131         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2132
2133 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2134
2135         * frame.c (get_prev_frame): Move disabled inside_entry_func to
2136         before code inhibiting repeated unwind attempts.  Add to
2137         commentary on that test's problems.
2138         * blockframe.c (inside_main_func): Look for "main" in the minimal
2139         symbol table.
2140         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2141         identical.
2142
2143 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2144
2145         * complaints.c (struct explanation): Define.
2146         (struct complaints): Change type of "explanation" to "struct
2147         explanation".
2148         (symfile_explanations): Convert to a "struct explanation" table.
2149         (vcomplaint): Update.
2150
2151 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
2152
2153         * x86-64-linux-nat.c (regmap): Removed.
2154         (supply_gregset, fill_gregset): Call 
2155         x86_64_linux_(fill,supply)_gregset functions.
2156         * x86-64-linux-tdep.c (USER_*): New defines.
2157         (user_to_gdb_regmap, x86_64_core_fns): New structure.
2158         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2159         New functions.
2160         (fetch_core_registers): Ditto.
2161         (_initialize_x86_64_linux_tdep): Call add_core_fns().
2162         * x86-64-linux-tdep.h: New file.
2163         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2164         and core-regset.o.
2165         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2166
2167 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
2168
2169         * x86-64-tdep.c (x86_64_store_return_value): Use
2170         regcache_cooked_write_part instead of regcache_cooked_write.
2171
2172         * configure.host: Add x86_64-*-freebsd*.
2173         * configure.tgt: Add x86_64-*-freebsd*.
2174         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2175         * amd64fbsd-nat.c: New file.
2176         * amd64fbsd-tdep.c: New file.
2177         * config/i386/nm-fbsd64.h: New file.
2178         * config/i386/fbsd64.mh: New file.
2179         * config/i386/fbsd64.mt: New file.
2180
2181 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
2182
2183         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2184         `sc_regs_offset' and `sc_fpregs_offset'.
2185         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2186         SIGFRAME_FPREGSAVE_OFF): Remove defines.
2187         (alpha_sigtramp_register_address): Rewrite to use new members of
2188         `struct gdbarch_tdep'.
2189         (alpha_gdbarch_init): Initialize new members of struct
2190         gdbarch_tdep'.
2191         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2192         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2193         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2194         (alphafbsd_pc_in_sigtramp): Implement.
2195         (alphafbsd_sigtramp_offset): New function.
2196         (alphafbsd_sigcontext_addr): New function.
2197         (alphafbsd_init_abi): Initialize signal trampoline related members
2198         of `struct gdbarch_tdep'.
2199         (_initialize_alphafbsd_tdep): Add prototype.
2200
2201 2003-07-11  Theodore A. Roth  <troth@openavr.org>
2202
2203         * Makefile.in (install-only): Quote sed expression when generating
2204         transformed_name.
2205
2206 2003-07-11  Richard Henderson  <rth@redhat.com>
2207
2208         * Makefile.in (dwarf2-frame.o): Add complaints_h.
2209         * dwarf2-frame.c: Include complaints.h.
2210         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2211         variable initialization; return NULL on error.
2212         (decode_frame_entry): New.
2213
2214 2003-07-11  Andrew Cagney  <cagney@redhat.com>
2215
2216         * frame.h (frame_address_in_block): Delete declaration.
2217         * blockframe.c (frame_address_in_block): Delete function.
2218         (get_frame_block): Use get_frame_address_in_block.
2219         (block_innermost_frame): Ditto.
2220         * stack.c (print_frame, backtrace_command_1): Ditto.
2221
2222         * frame.h (get_frame_address_in_block): Declare.
2223         (frame_unwind_address_in_block): Declare.
2224         * frame.c (frame_unwind_address_in_block): New function.
2225         (get_frame_address_in_block): New function.
2226
2227 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2228
2229         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
2230         pre-default.   Note: re-generate has no effect.
2231         
2232 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2233
2234         * gdbarch.sh: When a variable, but not a function, compare against
2235         0.  Fix problem in previous patch.
2236         * gdbarch.c: Re-generate.
2237         
2238 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2239
2240         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
2241         functions against NULL, not 0.
2242         * gdbarch.c: Re-generate.
2243         
2244 2003-07-10  Fred Fish  <fnf@ninemoons.com>
2245
2246         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2247         null string instead of a null pointer.
2248         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2249
2250 2003-07-09  Michael Snyder  <msnyder@redhat.com>
2251
2252         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2253
2254 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
2255
2256         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2257         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2258         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2259         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2260         * x86-64-tdep.c: ... from here.
2261
2262 2003-07-09  Andreas Schwab  <schwab@suse.de>
2263
2264         * m68k-tdep.h (enum struct_return): Define.
2265         (struct gdbarch_tdep): Add struct_return.
2266         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2267         bytes are padded to the right, not to the left.  Pass struct value
2268         address in register %a1, not on stack.
2269         (m68k_use_struct_convention): New function.
2270         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
2271         struct_return in tdep to pcc_struct_return.
2272         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2273         reg_struct_return.
2274
2275 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
2276
2277         * somread.c (som_symfile_offsets): Fix compilation error.   
2278
2279 2003-07-09  Andrew Cagney  <cagney@redhat.com>
2280
2281         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2282         Add comments about the checks.
2283
2284 2003-07-08  Andrew Cagney  <cagney@redhat.com>
2285
2286         * Makefile.in: Make dependency section headers consistent.
2287         (config_h): Move to $BUILD headers section.
2288         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2289         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2290         (ada-exp.tab.c): Move to YACC/LEX section.
2291         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2292         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2293
2294 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
2295
2296         * nto-procfs.c: Cleaned up a bunch of ARI hits.
2297         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2298         of strerror with safe_strerror, use ISO C function definitions,
2299         and replace instances of sprintf with snprintf.
2300
2301 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2302
2303         * frame.c (get_prev_frame): Enable check for identical frames.
2304         Update comments.  Update error messages.
2305
2306 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2307
2308         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2309
2310 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2311
2312         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2313         sort_symtab_syms, no longer necessary.
2314
2315 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2316
2317         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2318
2319 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2320
2321         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2322         (mips_register_byte): Likewise.
2323
2324 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2325
2326         * Makefile.in (sparc_tdep_h): New.
2327         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2328         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2329         * sparc-linux-nat.c: Include "sparc-tdep.h".
2330         * sparc-nat.c: Likewise.
2331         * sparc-tdep.c: Likewise.
2332         * sparc64nbsd-nat.c: Likewise.
2333         * sparcnbsd-nat.c: Likewise.
2334         * sparcnbsd-tdep.c: Likewise.
2335         * sparc-tdep.h: New file.
2336         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2337         and sparc_npc_regnum.
2338
2339 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2340
2341         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2342         (mips_linux_cannot_store_register): List supported instead of
2343         unsupported registers.
2344
2345 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2346
2347         * disasm.c (dump_insns): Separate instructions from addresses.
2348
2349 2003-07-07  Andreas Schwab  <schwab@suse.de>
2350
2351         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2352         dependencies.
2353         * m68k-tdep.c (NUM_FREGS): Delete.
2354         (SIG_PC_FP_OFFSET): Delete.
2355         (TARGET_M68K): Delete.
2356         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2357         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2358         P_MOVEL_SP, P_MOVEML_SP): Define.
2359         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2360         P_TRAP): Delete.
2361         (m68k_register_raw_size): Delete.
2362         (m68k_register_virtual_size): Delete.
2363         (m68k_register_type): Renamed from m68k_register_virtual_type and
2364         add gdbarch argument.
2365         (m68k_store_struct_return): Delete.
2366         (m68k_deprecated_extract_return_value): Delete.
2367         (m68k_deprecated_extract_struct_value_address): Delete.
2368         (m68k_frame_chain): Delete.
2369         (m68k_frame_saved_pc): Delete.
2370         (m68k_fix_call_dummy): Delete.
2371         (m68k_push_dummy_frame): Delete.
2372         (m68k_pop_frame): Delete.
2373         (m68k_extract_return_value): New function.
2374         (m68k_store_return_value): Rewrite using regcache.
2375         (m68k_extract_struct_value_address): Rewrite using regcache.
2376         (m68k_push_dummy_call): New function.
2377         (struct m68k_frame_cache): Define.
2378         (m68k_alloc_frame_cache): New function.
2379         (m68k_analyze_frame_setup): New function.
2380         (m68k_analyze_register_saves): New function.
2381         (m68k_analyze_prologue): New function.
2382         (m68k_skip_prologue): Rewrite using above functions.
2383         (m68k_unwind_pc): New function.
2384         (m68k_frame_cache): New function.
2385         (m68k_frame_this_id): New function.
2386         (m68k_frame_prev_register): New function.
2387         (m68k_frame_unwind): New variable.
2388         (m68k_frame_p): New function.
2389         (m68k_sigtramp_frame_cache): New function.
2390         (m68k_sigtramp_frame_this_id): New function.
2391         (m68k_sigtramp_frame_prev_register): New function.
2392         (m68k_sigtramp_frame_unwind): New variable.
2393         (m68k_sigtramp_frame_p): New function.
2394         (m68k_frame_base_address): New function.
2395         (m68k_frame_base): New function.
2396         (m68k_unwind_dummy_id): New function.
2397         (fill_gregset): Use regcache_collect.
2398         (fill_fpregset): Likewise.
2399         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2400         defined.
2401         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
2402         deprecated_init_frame_pc, deprecated_store_struct_return,
2403         deprecated_extract_return_value, deprecated_store_return_value,
2404         deprecated_frame_chain, deprecated_frame_saved_pc,
2405         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2406         deprecated_register_virtual_size,
2407         deprecated_max_register_raw_size,
2408         deprecated_max_register_virtual_size,
2409         deprecated_register_virtual_type, deprecated_register_size,
2410         deprecated_register_byte, deprecated_register_bytes,
2411         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2412         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2413         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2414         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2415         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2416         deprecated_push_dummy_frame, deprecated_pop_frame,
2417         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
2418         only if SYSCALL_TRAP is defined.  Set extract_return_value,
2419         store_return_value, extract_struct_value_address, register_type,
2420         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
2421         predicates.
2422         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2423         M68K_MAX_REGISTER_SIZE): Define.
2424         (struct m68k_sigtramp_info): Define.
2425         (struct gdbarch_tdep): Add get_sigtramp_info.
2426         * m68klinux-nat.c (fetch_register): Use register_size instead of
2427         REGISTER_RAW_SIZE.  Don't put assignment in if.
2428         (store_register): Likewise.
2429         (fetch_inferior_registers): Likewise.
2430         (store_inferior_registers): Likewise.
2431         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2432         (m68k_linux_frame_saved_pc): Delete.
2433         (m68k_linux_sigcontext_reg_offset,
2434         m68k_linux_ucontext_reg_offset): Define.
2435         (m68k_linux_get_sigtramp_info): New function.
2436         (m68k_linux_extract_return_value): Rewrite using regcache.
2437         (m68k_linux_store_return_value): Likewise.
2438         (m68k_linux_extract_struct_value_address): Likewise.
2439         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2440         Don't set deprecated_frame_saved_pc,
2441         deprecated_extract_return_value, deprecated_store_return_value,
2442         deprecated_extract_struct_value_address.  Set
2443         extract_return_value, store_return_value,
2444         extract_struct_value_address.
2445
2446 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2447
2448         * expprint.c: Include "user-regs.h" instead of "frame.h".
2449         (print_subexp): Use user_reg_map_regnum_to_name, instead of
2450         frame_map_regnum_to_name.
2451         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2452         (frame_map_name_to_regnum): Simplify, call
2453         user_reg_map_name_to_regnum.
2454         (frame_map_regnum_to_name): Simplify, call
2455         user_reg_map_regnum_to_name.
2456         (frame_register_unwind): Update.
2457         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2458         (_initialize_frame_reg): Call user_reg_add_builtin.
2459         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2460         (value_of_register): Use value_of_user_reg.
2461         * eval.c (evaluate_subexp_standard): Update.
2462         * parse.c (write_dollar_variable): Update.
2463         * d10v-tdep.c (d10v_print_registers_info): Update.
2464         * infcmd.c (registers_info): Update.
2465         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2466         (builtin_regs_h): Delete macro.
2467         (user_regs_h): Define.
2468         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2469         (builtin-regs.o): Delete target.
2470         (user-regs.o): Specify dependencies.
2471         (expprint.o): Update dependencies.
2472         (findvar.o): Update dependencies.
2473         (frame.o): Update dependencies.
2474         (std-regs.o): Update dependencies.
2475
2476 2003-07-06  Christopher Faylor  <cgf@redhat.com>
2477
2478         * win32-nat.c (solib_symbols_add): Use one variable for all section
2479         address stuff.  Pass variable rather than address of variable to
2480         safe_symbol_file_add.
2481
2482 2003-07-06  Andreas Schwab  <schwab@suse.de>
2483
2484         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2485
2486 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
2487
2488         * rs6000-nat.c (vmap_symtab): Fix compilation error.
2489
2490 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2491
2492         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2493
2494 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2495
2496         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
2497         * config/i386/nto.mh: New file.
2498         * config/i386/nm-nto.h: New file.
2499         * configure.host: Add i[3456]86-*-nto*.
2500
2501 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
2502
2503         * remote-vx.c (vx_add_symbols): Fix compilation error.
2504
2505 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2506
2507         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2508         * gdbarch.h, gdbarch.c: Re-generate.
2509         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2510         (legacy_register_name): Declare.
2511         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2512         (REGISTER_NAME): Define.
2513         * sparc-tdep.c (legacy_register_name): New function.
2514         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2515         (REGISTER_NAME): Define.
2516         (hppa64_register_name): Declare.
2517         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2518         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2519         (hppa64_register_name): New function.
2520         (hppa_register_name): New function.
2521         * arch-utils.c (legacy_register_name): Delete.
2522         * arch-utils.h (legacy_register_name): Delete.
2523
2524 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
2525
2526         * cli/cli-interp.c (cli_interpreter_resume): Update the
2527         cli_uiout's stream to gdb_stdout.
2528
2529 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2530
2531         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2532         predicate.
2533         * gdbarch.h, gdbarch.c: Re-generate.
2534         * regcache.c (init_regcache_descr): Use legacy code when either
2535         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2536
2537 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2538
2539         * NEWS: Move "set logging" entry into GDB 6.0 section.
2540
2541 2003-07-02  Jim Blandy  <jimb@redhat.com>
2542
2543         * s390-tdep.c (struct frame_extra_info): new member:
2544         'stack_bought_valid'.
2545         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2546         initialize fextra_info->stack_bought.
2547         (s390_frameless_function_invocation): Don't trust the value of
2548         fextra_info_ptr->stack_bought unless
2549         fextra_info->stack_bought_valid is set.
2550
2551         New S390 prologue analyzer.
2552         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2553         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2554         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2555         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2556         compute_x_addr, s390_on_stack, s390_store,
2557         s390_get_signal_frame_info): New functions.
2558         (S390_NUM_SPILL_SLOTS): New macro.
2559         (s390_get_frame_info): Rewritten.
2560         (is_arg_reg): Deleted.
2561
2562         Break out the decoding of S/390 instructions into separate
2563         functions, to make it more legible, and easier to check
2564         against the spec.
2565         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2566         is_rx, is_rxe): New functions.
2567         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2568         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2569         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2570         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2571         enums for opcode values.  (Is this an improvement?)
2572
2573 2003-07-02  Andrew Cagney  <cagney@redhat.com>
2574
2575         * i386-tdep.c: Revert change committed as part of trad-frame code
2576         below.
2577
2578 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2579
2580         * breakpoint.c (insert_catchpoint): Make static.
2581
2582 2003-07-02  Andreas Schwab  <schwab@suse.de>
2583
2584         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2585         former ia64_push_arguments and ia64_push_return_address, and use
2586         regcache functions instead of read/write_register.
2587         (ia64_gdbarch_init): Set push_dummy_call instead of
2588         deprecated_push_arguments and deprecated_push_return_address.
2589
2590 2003-07-01  Andreas Jaeger  <aj@suse.de>
2591
2592         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2593         before the call.
2594         Set %rax only to number of SSE registers used.
2595
2596 2003-07-01  Andrew Cagney  <cagney@redhat.com>
2597
2598         * trad-frame.h: Update comments, a -1 .addr is reserved.
2599         (trad_frame_value_p, trad_frame_addr_p): Declare.
2600         (trad_frame_reg_p): Declare.
2601         (trad_frame_set_value): Rename trad_frame_register_value.
2602         (trad_frame_set_unknown): Declare.
2603         * trad-frame.c (trad_frame_realreg_p): New function.
2604         (trad_frame_addr_p, trad_frame_value_p): New function.
2605         (trad_frame_set_unknown): New function.
2606         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2607         (trad_frame_prev_register): Use trad_frame_realreg_p,
2608         trad_frame_addr_p and trad_frame_value_p.
2609         (trad_frame_set_value): Rename trad_frame_register_value.
2610         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2611         and trad_frame_set_value.
2612
2613 2003-06-30  Jim Blandy  <jimb@redhat.com>
2614
2615         Patch from IBM (authors unspecified, probably Ulrich Weigand and
2616         Gerhard Tonn) for argument passing on the S/390 and S/390x:
2617         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2618         for 16 registers, and then 32 more bytes.
2619         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2620         New macros.
2621         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2622         Move up in the file, since it's now used by is_simple_arg.
2623         (is_simple_arg): Don't assume registers are four bytes long.
2624         Exclude all double arguments.  Extended floats are not simple
2625         args.
2626         (is_power_of_two): New function.
2627         (pass_by_copy_ref): Call is_power_of_two, and check that the
2628         length fits in a register, rather than listing all the acceptable
2629         sizes.  Extended floats are not passed by reference.
2630         (s390_push_arguments): Don't assume registers are four bytes long.
2631         Reserve an argument register to point to the buffer for structures
2632         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
2633         S390_STACK_FRAME_OVERHEAD.
2634
2635 2003-06-30  Andreas Schwab  <schwab@suse.de>
2636
2637         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2638         format error message.
2639
2640 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
2641
2642         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2643
2644 2003-06-30  David Carlton  <carlton@kealia.com>
2645
2646         Band-aid for PR c++/1245.
2647         * Makefile.in (cp-support.o): Depend on complaints_h.
2648         * cp-support.c: Include complaints.h.  Add declaration for
2649         find_last_component.
2650         (cp_find_first_component): Separate code into
2651         cp_find_first_component_aux.
2652         (cp_find_first_component_aux): Call demangled_name_complaint.
2653         (demangled_name_complaint): New.
2654
2655 2003-06-30  Andrew Cagney  <cagney@redhat.com>
2656
2657         * remote.c (remote_write_bytes): Explicitly compute and then use
2658         the payload size.  Update comments to reflect.  Fixes problem of
2659         GDB not sending small packets as found by Fred Fish.
2660
2661 2003-06-30  Andrew Cagney  <cagney@redhat.com>
2662
2663         * remote.c (remote_async_wait): Fix -Wformat problem.
2664
2665 2003-06-29  Andrew Cagney  <cagney@redhat.com>
2666
2667         * remote.c (remote_wait): Call error, and not warning, when the
2668         packet is corrupt.
2669         (remote_async_wait): Ditto.
2670
2671 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
2672
2673         * sparc-tdep.c (sparc_y_regnum): Make external again.
2674
2675 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
2676
2677         * cli/cli-logging.c (pop_output_files): Add void to function
2678         definition.
2679
2680 2003-06-29  Andrew Cagney  <cagney@redhat.com>
2681
2682         * frame.c (frame_register_unwind): Use unsigned char when dumping
2683         the buffer contents.
2684
2685 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
2686
2687         * cli/cli-logging.c: New file.
2688         * cli-out.c (struct ui_out_data): Add original_stream.
2689         (cli_redirect): New function.
2690         (cli_ui_out_impl): Add cli_redirect.
2691         (cli_out_new): Initialize original_stream.
2692         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2693         (uo_redirect, ui_out_redirect): New.
2694         * ui-out.h (struct ui_out_impl): Add redirect member.
2695         (redirect_ftype): New.
2696         (ui_out_redirect): Add prototype.
2697         * Makefile.in: Add rules for cli-logging.c.
2698         * NEWS: Mention "set logging".
2699
2700 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2701
2702         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2703
2704 2003-06-27  Andrew Cagney  <cagney@redhat.com>
2705
2706         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2707         (m68hc11_gdbarch_init): Do not set call_dummy_address.
2708         * avr-tdep.c (avr_call_dummy_address): Delete function.
2709         (avr_gdbarch_init): Do not set call_dummy_address.
2710
2711 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2712
2713         * symfile.c (syms_from_objfile): Move variables to inner block.
2714         Move the checks for the non-mainline case a bit earlier to avoid
2715         doing some useless computations.
2716
2717 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2718
2719         * dwarfread.c (decode_modified_type): Gag new compiler warning.
2720
2721 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
2722
2723         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2724         sections.
2725
2726 2003-06-26  Michael Chastain  <mec@shout.net>
2727
2728         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2729         gdb/testsuite/gdb.c++/pr-1210.exp.
2730
2731 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2732
2733         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2734         altivec_expression.h and altivec_registers.h.
2735
2736 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2737
2738         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2739         info->mach when MIPS16.  Patch suggested by Fred Fish.
2740
2741 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2742
2743         * utils.c (internal_vproblem): Print the problem to a reason
2744         buffer and then pass to query.  Make the msg variable more local.
2745
2746 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2747
2748         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
2749         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
2750         * gdbarch.h, gdbarch.c: Re-generate.
2751         * frame-base.c (default_frame_args_address): Update.  Use
2752         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2753         not available.
2754         (default_frame_locals_address): Ditto for
2755         DEPRECATED_FRAME_LOCALS_ADDRESS.
2756         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2757         (vax_frame_num_args): Update.
2758         (vax_gdbarch_init): Update.
2759         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2760         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2761         * mcore-tdep.c (mcore_gdbarch_init): Update.
2762         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2763         * ia64-tdep.c (ia64_gdbarch_init): Update.
2764         * symtab.h (address_class): Update comments.
2765         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2766         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2767         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2768         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2769         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2770         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2771         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2772         * alpha-mdebug-tdep.c: Update.
2773         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2774
2775 2003-06-26  Andreas Jaeger  <aj@suse.de>
2776
2777         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2778         of SSE registers so that varargs functions work.  Rework handling
2779         of passing arguments on the stack.
2780         (x86_64_store_return_value): Return double and float values in SSE
2781         register.
2782
2783 2003-06-24  Michael Chastain  <mec@shout.net>
2784
2785         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2786         the "constructor breakpoints ignored" bug.
2787
2788 2003-06-25  David Carlton  <carlton@kealia.com>
2789
2790         * MAINTAINERS: Update e-mail address.
2791
2792 2003-06-24  Jim Blandy  <jimb@redhat.com>
2793
2794         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2795
2796         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2797         function.
2798         (ppc_linux_init_abi): Register it as the
2799         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2800
2801         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2802         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2803         method.
2804
2805         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2806         (ppc64_standard_linkage_target): Use it.
2807
2808 2003-06-23  Andrew Cagney  <cagney@redhat.com>
2809
2810         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2811         for 0 "int0" and 4 "int32" sized registers.
2812         * gdbtypes.c (builtin_type_int0): Define.
2813         (build_gdbtypes): Initialize builtin_type_int0.
2814         * gdbtypes.h (builtin_type_int0): Declare.
2815
2816 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
2817
2818         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2819         as characters are unsigned.
2820
2821 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2822
2823         PR gdb/1179
2824         * dwarfread.c (struct_type): Skip static fields without crashing.
2825
2826 2003-06-22  Andrew Cagney  <cagney@redhat.com>
2827
2828         GDB 6.0 branch created.
2829         * README: Update.
2830         * PROBLEMS: Update.  Empty.
2831         * NEWS: Update.
2832
2833 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2834
2835         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2836         Suggested by Nick Hibma <n_hibma@webweaving.org>.
2837
2838 2003-06-22  Andrew Cagney  <cagney@redhat.com>
2839
2840         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2841         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
2842         Velikov.
2843
2844 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2845
2846         * cli/cli-cmds.c (shell_escape): Silence warnings from old
2847         compilers.
2848
2849 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
2850
2851         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2852         argument of val_print.
2853         * cp-valprint.c (cp_print_value): Don't add the offset parameter
2854         to the address argument of baseclass_offset or target_read_memory.
2855         Do add it to the argument of cp_print_value_fields.
2856
2857 2003-06-21  Andrew Cagney  <cagney@redhat.com>
2858
2859         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2860         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2861         instead of 0..NUM_REGS.
2862         (mips_register_reggroup_p): New function.
2863         (mips_pseudo_register_write): New function.
2864         (mips_pseudo_register_read): New function.
2865         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2866         based on the register's type.
2867         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
2868         cooked.
2869         (mips_get_saved_register): Simplify.  Assert that REGNO is a
2870         pseudo / cooked.
2871         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
2872         (mips_register_type): Replace mips_register_virtual_type.  Map
2873         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
2874         when available.
2875         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
2876         that the register is cooked / virtual.
2877         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2878         Only get the extra info when needed.
2879         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2880         (mips32_heuristic_proc_desc): Fetch the cooked register.
2881         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2882         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2883         (mips_print_register): Use gdbarch_register_type, instead of
2884         REGISTER_VIRTUAL_TYPE.
2885         (print_gp_register_row): Use gdbarch_register_type, instead of
2886         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
2887         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2888         Print the pseudo / cooked registers.
2889         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2890         Print the pseudo / cooked registers.
2891         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
2892         REG_NUM is pseudo / cooked.
2893         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2894         (mips_n32n64_xfer_return_value): Ditto.
2895         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2896         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2897         (mips_register_sim_regno): New function.
2898         (mips_gdbarch_init): Set deprecated_register_byte,
2899         register_group_p, pseudo_register_write, pseudo_register_read,
2900         register_sim_regno, and num_pseudo_regs.  Set register_type,
2901         instead of register_virtual_type.
2902         * Makefile.in (mips-tdep.o): Update dependencies.
2903         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2904         REGISTER_VIRTUAL_TYPE.
2905         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2906         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2907         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2908         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2909         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2910
2911 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
2912
2913         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2914         * cli/cli-cmds.c: Include "gdb_vfork.h".
2915         (shell_escape): Use vfork.
2916
2917 2003-06-21  Andrew Cagney  <cagney@redhat.com>
2918
2919         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2920         32 bit floating-point register saves.
2921
2922         * frame.h (deprecated_unwind_get_saved_register): Delete.
2923         * frame.c (deprecated_unwind_get_saved_register): Delete function.
2924         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2925         and deprecated_get_next_frame_hack instead of
2926         deprecated_unwind_get_saved_register.
2927
2928         * mips-tdep.c (mips_dump_tdep): Do not print
2929         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2930
2931         * frame.c (get_frame_register): New function.
2932         (frame_unwind_register_signed): New function.
2933         (get_frame_register_signed): New function.
2934         (frame_unwind_register_unsigned): New function.
2935         (get_frame_register_unsigned): New function.
2936         * frame.h: Add comments on naming schema.
2937         (get_frame_register, frame_unwind_register_signed): Declare.
2938         (get_frame_register_signed, get_frame_register_signed): Declare.
2939         (frame_unwind_register_unsigned): Declare.
2940         (get_frame_register_unsigned): Declare.
2941
2942 2003-06-20  Theodore A. Roth  <troth@openavr.org>
2943
2944         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2945
2946 2003-06-20  Theodore A. Roth  <troth@openavr.org>
2947
2948         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2949         (avr_read_sp): Ditto.
2950
2951 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
2952
2953         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2954         * config/arm/nm-linux.h: Likewise.
2955         * config/arm/tm-linux.h: Likewise.
2956         * config/ia64/nm-linux.h: Likewise.
2957         * config/ia64/tm-ia64.h: Likewise.
2958         * config/s390/tm-linux.h: Likewise.
2959         * config/s390/tm-s390.h: Likewise.
2960         * s390-nat.c: Likewise.
2961         * s390-tdep.c: Likewise.
2962
2963         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2964         * config/ia64/linux.mt: Likewise.
2965         * config/m68k/linux.mh: Likewise.
2966         * config/mips/linux.mt: Likewise.
2967         * config/powerpc/linux.mh: Likewise.
2968         * config/sh/linux.mt: Likewise.
2969
2970 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
2971
2972         * solib.c (solib_open): Change tests for whether to search
2973         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
2974         comments.
2975
2976 2003-06-19  Theodore A. Roth  <troth@openavr.org>
2977
2978         * avr-tdep.c (avr_frame_address): Delete function.
2979         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2980         set_gdbarch_frame_args_address.
2981
2982 2003-06-19  Andrew Cagney  <cagney@redhat.com>
2983
2984         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2985         (REGISTER_CONVERT_FROM_TYPE): Delete.
2986         (mips_register_convert_to_type): Delete declaration.
2987         (mips_register_convert_from_type): Delete declaration.
2988         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
2989         kernel/.
2990
2991 2003-06-19  Michael Snyder  <msnyder@redhat.com>
2992
2993         * linux-nat.h: New file.
2994         * linux-nat.c: Include linux-nat.h.
2995         * lin-lwp.c: Include linux-nat.h.
2996         Move struct lwp_info def to linux-nat.h.
2997         * linux-proc.c: Include linux-nat.h.
2998         (linux_make_note_section): Iterate over lwps instead of threads.
2999         (linux_do_thread_registers): Use lwp instead of merged pid.
3000         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3001         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3002         Add dependency on linux_nat_h.
3003
3004 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3005
3006         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3007
3008 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3009
3010         * varobj.c (get_type, get_target_type): Use check_typedef.
3011
3012 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3013
3014         * breakpoint.c (insert_catchpoint): Call internal_error.
3015
3016 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3017
3018         * avr-tdep.c (avr_push_dummy_code): Delete function.
3019         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3020
3021 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3022
3023         * arch-utils.c (default_prepare_to_proceed): Remove.
3024         (generic_prepare_to_proceed): Remove.
3025         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3026         (generic_prepare_to_proceed): Remove prototype.
3027         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3028         * gdbarch.c: Regenerate.
3029         * gdbarch.h: Regenerate.
3030         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3031         * hppah-nat.c (hppa_switched_threads): Remove.
3032         * infrun.c (prepare_to_proceed): New static function, copied from
3033         generic_prepare_to_proceed.  Remove select_it argument.
3034         (proceed): Call prepare_to_proceed.
3035         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3036         variables.
3037         (ptrace_wait): Don't set the removed variables.
3038         (hppa_switched_threads): Remove.
3039         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3040         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3041         (lin_lwp_prepare_to_proceed): Remove prototype.
3042         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3043         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3044
3045 2003-06-18  Theodore A. Roth  <troth@openavr.org>
3046
3047         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3048         trad-frame.h.
3049         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3050         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3051         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3052         (AVR_PROLOGUE_*): Enumerate prologue types.
3053         (struct frame_extra_info): Remove.
3054         (struct avr_unwind_cache): Define.
3055         (avr_write_sp): Delete function.
3056         (avr_read_fp): Ditto.
3057         (avr_init_extra_frame_info): Ditto.
3058         (avr_pop_frame): Ditto.
3059         (avr_frame_saved_pc): Ditto.
3060         (avr_saved_pc_after_call): Ditto.
3061         (avr_push_return_address): Ditto.
3062         (avr_frame_chain): Ditto.
3063         (avr_store_struct_return): Ditto.
3064         (avr_push_arguments): Ditto.
3065         (avr_scan_prologue): Update comments. Changed to set up the info for
3066         cache unwinding. Now returns end of prologue PC.
3067         (avr_skip_prologue): Better handling of functions lacking a prologue
3068         by using avr_scan_prologue.
3069         (avr_scan_arg_moves): New function.
3070         (avr_saved_regs_unwinder): Ditto.
3071         (avr_frame_unwind_cache): Ditto.
3072         (avr_unwind_pc): Ditto.
3073         (avr_frame_this_id): Ditto.
3074         (avr_frame_prev_register): Ditto.
3075         (avr_frame_p): Ditto.
3076         (avr_frame_base_address ): Ditto.
3077         (avr_unwind_dummy_id): Ditto.
3078         (avr_push_dummy_code): Ditto.
3079         (push_stack_item): Ditto.
3080         (pop_stack_item): Ditto.
3081         (avr_push_dummy_call): Ditto.
3082         (struct stack_item): Define.
3083         (avr_frame_unwind): Declare structure.
3084         (avr_frame_base): Ditto.
3085         (avr_gdbarch_init): Remove calls to
3086         set_gdbarch_deprecated_init_frame_pc,
3087         set_gdbarch_deprecated_target_read_fp,
3088         set_gdbarch_deprecated_dummy_write_sp,
3089         set_gdbarch_deprecated_fp_regnum,
3090         set_gdbarch_deprecated_push_arguments,
3091         set_gdbarch_deprecated_push_return_address,
3092         set_gdbarch_deprecated_pop_frame,
3093         set_gdbarch_deprecated_store_struct_return,
3094         set_gdbarch_deprecated_frame_init_saved_regs,
3095         set_gdbarch_deprecated_init_extra_frame_info,
3096         set_gdbarch_deprecated_frame_chain,
3097         set_gdbarch_deprecated_frame_saved_pc,
3098         set_gdbarch_deprecated_saved_pc_after_call.
3099         Add calls to set_gdbarch_push_dummy_call,
3100         set_gdbarch_push_dummy_code,
3101         frame_unwind_append_predicate,
3102         frame_base_set_default,
3103         set_gdbarch_unwind_dummy_id,
3104         set_gdbarch_unwind_pc.
3105         Wrap a long line.
3106
3107 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
3108
3109         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3110         registers for H8/300S.
3111         (h8300_print_registers_info): Ditto.
3112         (h8300_gdbarch_init): Accommodate register count for H8/300S.
3113
3114 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
3115
3116         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3117         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3118         (lin_lwp_wait): Likewise.  Update comments.
3119         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3120         (pull_pid_from_list, linux_record_stopped_pid): New.
3121
3122 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3123
3124         * ada-lang.c (scan_discrim_bound): Name first argument.
3125         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3126         declared by ALL_BLOCK_SYMBOLS.
3127
3128 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3129
3130         * ada-tasks.c (find_function_in_inferior): Don't declare it.
3131         ("regcache.h"): Include it.
3132         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3133
3134 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3135
3136         * NEWS: Mention gdbserver detach change and "disconnect" command.
3137         * infcmd.c (disconnect_command): New function.
3138         (_initialize_infcmd): Add ``disconnect'' command.
3139         * remote.c (remote_async_detach): Delete.
3140         (remote_detach): Merge remote_async_detach.
3141         (remote_disconnect): New.
3142         (init_remote_ops): Set to_disconnect.
3143         (init_remote_cisco_ops): Likewise.
3144         (init_remote_async_ops): Likewise.  Use remote_detach.
3145         * target.c (cleanup_target): Default to_disconnect.
3146         (update_current_target): Inherit to_disconnect.
3147         (target_disconnect, debug_to_disconnect): New functions.
3148         (setup_target_debug): Set to_disconnect.
3149         * target.h (struct target_ops): Add to_disconnect.
3150         (target_disconnect): Add prototype.
3151
3152 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3153
3154         * breakpoint.c (insert_catchpoint): New function.
3155         (insert_breakpoints): Use catch_exceptions to call
3156         insert_catchpoint.  Disable catchpoints if they fail to insert.
3157
3158 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3159
3160         * symfile.c (reread_symbols): Clear sym_private.
3161
3162 2003-06-17  Andrew Cagney  <cagney@redhat.com>
3163
3164         * trad-frame.h (struct frame_info): Add opaque declaration.
3165         * remote-fileio.h (struct cmd_list_element): Add opaque
3166         declaration.
3167         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3168         comments.
3169
3170 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3171
3172         * remote.c (remote_prepare_to_store): Replace call to
3173         deprecated_read_register_bytes with multiple regcache_raw_read
3174         calls.
3175
3176 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3177
3178         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3179         (nto_find_and_open_solib): Likewise.
3180         (nto_init_solib_absolute_prefix): Likewise.
3181         (_initialize_nto_tdep): Fix indentation.
3182
3183 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3184
3185         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3186
3187 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3188
3189         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3190
3191 2003-06-17  Jim Blandy  <jimb@redhat.com>
3192
3193         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3194
3195 2003-06-16  Theodore A. Roth  <troth@openavr.org>
3196
3197         * avr-tdep.c (avr_extract_return_value): New function.
3198         (avr_gdbarch_init): Set extract_return_value method.
3199
3200 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3201
3202         * frame.h (deprecated_get_next_frame_hack): Declare.
3203         * frame.c (legacy_saved_regs_prev_register): Only require
3204         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
3205         there are always saved regs.
3206         (deprecated_generic_get_saved_register): Do not require
3207         DEPRECATED_FRAME_INIT_SAVED_REGS.
3208         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3209         use frame ID unwind instead.
3210         (deprecated_get_next_frame_hack): New function.
3211
3212 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3213
3214         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
3215         (h8300_push_dummy_call): ...this function.  Some minor optimization.
3216         (h8300_push_return_address): Remove.
3217         (h8300_gdbarch_init): Remove calls to
3218         set_gdbarch_deprecated_dummy_write_sp,
3219         set_gdbarch_deprecated_push_arguments and
3220         set_gdbarch_deprecated_push_return_address.
3221         Add call to set_gdbarch_push_dummy_call.
3222
3223 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3224
3225         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3226         (E_PSEUDO_EXR_REGNUM): Ditto.
3227         (h8300_is_argument_spill): Check for instructions moving argument
3228         registers into safe registers.
3229         (h8300_skip_prologue): Check for stm instruction to push registers
3230         used for register variables onto stack.
3231         (gdb_print_insn_h8300): Remove.
3232         (h8300_examine_prologue): Add a comment.
3233         (h8300_register_name): Take pseudo registers into account.
3234         (h8300s_register_name): Ditto.
3235         (h8300sx_register_name): Ditto.
3236         (h8300_print_register): Ditto.
3237         (h8300_print_registers_info): Define "nice" printing order.
3238         (h8300_saved_pc_after_call): Take pseudo registers into account.
3239         (h8300_register_type): Ditto.  Return type used for remote connection
3240         when requesting real CCR or EXR register, return actual type when
3241         requesting pseudo CCR or EXR.
3242         (h8300_pseudo_register_read): New function.
3243         (h8300_pseudo_register_write): Ditto.
3244         (h8300_dbg_reg_to_regnum): Ditto.
3245         (h8300s_dbg_reg_to_regnum): Ditto.
3246         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3247         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3248         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3249         set_gdbarch_print_insn architecture dependent.
3250         Call set_gdbarch_pseudo_register_read and
3251         set_gdbarch_pseudo_register_write.
3252         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3253
3254 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3255
3256         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3257         * gdbarch.h, gdbarch.c: Re-generate.
3258         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3259         * s390-tdep.c (s390_gdbarch_init): Update.
3260         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3261         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3262         * mips-tdep.c (mips_gdbarch_init): Update.
3263         * mcore-tdep.c (mcore_gdbarch_init): Update.
3264         * cris-tdep.c (cris_gdbarch_init): Update.
3265         * infcall.c (call_function_by_hand): Update.
3266         * ia64-tdep.c (ia64_push_arguments): Update comment.
3267         * frame.c (legacy_get_prev_frame): Do not assume
3268         SAVE_DUMMY_FRAME_TOS_P.
3269         * dummy-frame.c (find_dummy_frame): Update comment.
3270
3271 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3272
3273         * regcache.c (do_cooked_read): Do not use register_valid_p.
3274
3275 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3276
3277         * avr-tdep.c (avr_register_type): Remove a blank line.
3278         (avr_scan_prologue): Correct some comments.
3279
3280 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3281
3282         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3283         prologue types.
3284         Properly scan prologues generated by gcc with the -mcall-prologues
3285         option.
3286         Add code to scan -mcall-prologues for mega devices.
3287
3288 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3289
3290         * avr-tdep.c (avr_register_byte): Delete function.
3291         (avr_register_raw_size): Delete function.
3292         (avr_register_virtual_size): Delete function.
3293         (avr_register_virtual_type): Delete function.
3294         (avr_register_type): New function.
3295         (avr_address_to_pointer): Remove unused code.
3296         (avr_read_fp): Need to read FP as two separate bytes due to change to
3297         avr_register_type() usage.
3298         (avr_gdbarch_init): Don't set deprecated_register_size.
3299         Don't set deprecated_register_bytes.
3300         Don't set deprecated_register_byte.
3301         Don't set deprecated_register_raw_size.
3302         Don't set deprecated_max_register_raw_size.
3303         Don't set deprecated_register_virtual_size.
3304         Don't set deprecated_max_register_virtual_size.
3305         Don't set deprecated_register_virtual_type.
3306         Set register_type method.
3307
3308 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
3309
3310         * Makefile.in (linux-nat.o): Add rule.
3311         * linux-nat.c: New file.
3312         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3313         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3314         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3315         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3316         * config/arm/linux.mh (NATDEPFILES): Likewise.
3317         * config/i386/linux.mh (NATDEPFILES): Likewise.
3318         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3319         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3320         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3321         * config/mips/linux.mh (NATDEPFILES): Likewise.
3322         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3323         * config/s390/s390.mh (NATDEPFILES): Likewise.
3324         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3325
3326 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3327
3328         * i387-tdep.c: Reorder includes, fix some whitespace issues and
3329         replace out-of-date comment.
3330
3331 2003-06-15  Andrew Cagney  <cagney@redhat.com>
3332
3333         * rdi-share/host.h (Fail): Change to a varargs function.
3334         * remote-rdi.c (Fail): Update.
3335
3336 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3337
3338         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3339         (i386_convert_register_p, i386_register_to_value,
3340         i386_register_from_value): Handle types longer than 8 bytes.
3341
3342 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3343
3344         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3345         Move floating-point code to new function in i387-tdep.c.
3346         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3347         New functions containing code moved here from i386-tdep.c.
3348         * i387-tdep.h: Add opaque declaration for `struct type'.
3349         (i387_register_to_value, i387_value_to_register): New prototypes.
3350         * x86-64-tdep.c (x86_64_convert_register_p): New function.
3351         (x86_64_init_abi): Set convert_register_p, register_to_value and
3352         value_to_register here.
3353
3354 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3355
3356         * mips-tdep.c (mips_register_to_value): Make static.
3357         (mips_value_to_register): Make static.
3358         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3359         * ia64-tdep.c (ia64_register_raw_size): Make static.
3360         (ia64_register_virtual_size): Make static.
3361         (ia64_register_byte): Make static.
3362         * i387-tdep.c: Include "i387-tdep.h".
3363         (print_387_control_word): Delete function.
3364         (print_387_status_word): Delete function.
3365         (print_387_status_bits): Delete function.
3366         (print_387_control_bits): Delete function.
3367         * Makefile.in (i387-tdep.o): Update dependencies.
3368         * rdi-share/host.h (Fail): Declare.
3369         * remote-rdi.c (Fail): Update to match declaration.
3370
3371 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3372
3373         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3374         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3375         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3376         * config/djgpp/fnchange.lst: Delete "remote-array.c".
3377         * README: Delete reference to remote-array.
3378         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3379         (remote-array.o): Delete target.
3380         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3381         * remote-array.c: Delete file.
3382
3383 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3384             Mark Kettenis  <kettenis@gnu.org>
3385
3386         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3387         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3388         parameter with "frame".
3389         * gdbarch.h, gdbarch.c: Re-generate.
3390         * frame.h (put_frame_register): Declare.
3391         * frame.c (put_frame_register): New function.
3392         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3393         (legacy_register_to_value): Rewrite, use "frame" to get the
3394         register value.
3395         (legacy_value_to_register): Rewrite, use "frame" to find the
3396         register's location before storing.
3397         * arch-utils.h (legacy_convert_register_p): Update.
3398         (legacy_register_to_value, legacy_value_to_register): Update.
3399         * findvar.c (value_from_register): Rewrite, eliminate use of
3400         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3401         "frame" to REGISTER_TO_VALUE.
3402         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3403         lval_reg_frame_relative + lval_register branch of the switch.  Do
3404         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
3405         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3406         I386_EDI_REGNUM): New defines.
3407         (i386_next_regnum, i386_convert_register_p,
3408         i386_register_to_value, i386_value_to_register): New functions.
3409         (i386_register_convertible, i386_register_convert_to_virtual,
3410         i386_convert_to_raw): Remove functions.
3411         (i386_gdbarch_init): Set convert_register_p, register_to_value and
3412         value_to_register instead of register_convertible,
3413         register_convert_to_virtual and register_convert_to_raw.
3414         * mips-tdep.c (mips_convert_register_p): New function.
3415         (mips_value_to_register): Replace mips_register_convert_from_type.
3416         (mips_register_to_value): Replace mips_register_convert_to_type.
3417         (mips_gdbarch_init): Set conver_register_p, value_to_register and
3418         register_to_value.
3419         * alpha-tdep.c (alpha_convert_register_p): Update.
3420         (alpha_value_to_register): Update, store the register.
3421         (alpha_register_to_value): Update, fetch the register.
3422
3423 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3424
3425         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3426         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3427         Don't set deprecated_call_dummy_words.
3428         Remove commented out set_gdbarch_believe_pcc_promotion() call.
3429         Don't set remote_translate_xfer_address.
3430         (avr_io_reg_read_command): Remove commented out debug printf.
3431         Wrap a long line.
3432
3433 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3434
3435         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3436         causes gdb to seg fault.
3437
3438 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
3439
3440         * sparc-nat.c (fetch_inferior_registers): Correct
3441         a reference to "registers".
3442
3443 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
3444
3445         * Makefile.in (exc_request_U_h): Define
3446         (exc_request_S_h): Likewise.
3447         (msg_reply_S_h): Likewise.
3448         (msg_U_h): Likewise.
3449         (notify_S_h): Likewise.
3450         (process_reply_S_h): Likewise.
3451         (gnu-nat.o): Depend on gdb_obstack_h
3452         * gnu-nat.c: Include "gdb_obstack.h".
3453
3454 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3455
3456         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3457         * gdbarch.h, gdbarch.c: Re-generate.
3458
3459 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3460
3461         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
3462         when deprecated REGISTER macros can be deleted.
3463         * gdbarch.h, gdbarch.c: Re-generate.
3464
3465 2003-06-13  Jim Blandy  <jimb@redhat.com>
3466
3467         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3468         Linux entry point symbols for _dl_debug_state, too.
3469
3470 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3471
3472         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3473         available, do not use the FP register, and always save the TOS.
3474         * dummy-frame.c (dummy_frame_this_id): Do not assert
3475         SAVE_DUMMY_FRAME_TOS.
3476         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3477         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3478         (i386_push_dummy_call): Add 8 to the returned SP.
3479         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3480         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3481         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3482         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3483         (x86_64_push_dummy_call): Return "sp + 16".
3484         (x86_64_init_abi): Do not set save_dummy_frame_tos.
3485         * alpha-tdep.c (alpha_gdbarch_init): Do not set
3486         save_dummy_frame_tos.
3487
3488 2003-06-13  Jim Blandy  <jimb@redhat.com>
3489
3490         * frv-tdep.c (frv_use_struct_convention): Delete static
3491         declaration for function deleted in my change of 2003-06-12.
3492
3493 2003-06-13  Theodore A. Roth  <troth@openavr.org>
3494
3495         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3496         (avr_pointer_to_address): Shift code addrs left 1 bit.
3497         (avr_convert_from_func_ptr_addr): Delete function since operation is
3498         better handled by avr_address_to_pointer and avr_pointer_to_address.
3499         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3500
3501 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
3502
3503         From Kelley Cook  <kelleycook@wideopenwest.com>:
3504         * configure.host: Accept i[34567]86 variants.
3505         * configure.tgt: Likewise.
3506         * nlm/configure.in: Likewise.
3507         * nlm/configure: Regenerated.
3508
3509 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
3510
3511         * arm-tdep.c (solib-svr4.h): Dont' include it.
3512         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3513         * arm-linux-tdep.c: ... here.  Make static.
3514         (arm_linux_init_abi): Register it.
3515         (solib-svr4.h): Include it.
3516         * Makefile.in: Update dependencies.
3517         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3518         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3519
3520 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3521
3522         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3523         indicate registers used for return values.
3524         (struct frame_extra_info): Drop args_pointer and locals_pointer.
3525         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3526         members.
3527         (h8300_init_extra_frame_info): Ditto.
3528         (h8300_frame_locals_address): Removed.
3529         (h8300_frame_args_address): Removed.
3530         (h8300_extract_return_value): Use new regcache structure. Only care
3531         for 16 bit CPUs.
3532         (h8300h_extract_return_value): Same function for 32 bit CPUs.
3533         (h8300_store_return_value): Use new regcache structure. Only care
3534         for 16 bit CPUs.
3535         (h8300h_store_return_value): Same function for 32 bit CPUs.
3536         (h8300_store_struct_return): Removed.
3537         (h8300_extract_struct_value_address): Use new regcache structure.
3538         (h8300h_extract_struct_value_address): Removed.
3539         (h8300_push_dummy_code): New function.
3540         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3541         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
3542         set_gdbarch_store_return_value architecture dependent.
3543         Call set_gdbarch_push_dummy_code and
3544         set_gdbarch_extract_struct_value_address.
3545         Remove calls to set_gdbarch_frame_args_address,
3546         set_gdbarch_frame_locals_address,
3547         set_gdbarch_deprecated_store_struct_return,
3548         set_gdbarch_deprecated_extract_return_value,
3549         set_gdbarch_deprecated_extract_struct_value_address,
3550         set_gdbarch_deprecated_call_dummy_words and
3551         set_gdbarch_deprecated_sizeof_call_dummy_words.
3552
3553 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3554
3555         * h8300-tdep.c (h8300_register_byte): Remove.
3556         (h8300h_register_byte): Remove.
3557         (h8300_register_virtual_type): Remove.  Substitute by...
3558         (h8300_register_type): New function.
3559         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3560         (h8300h_extract_struct_value_address): Ditto.
3561         (h8300_gdbarch_init): Drop calls to
3562         set_gdbarch_deprecated_register_byte and
3563         set_gdbarch_deprecated_register_virtual_type.
3564         Add call to set_gdbarch_register_type.
3565
3566 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3567
3568         * gdbarch.sh: Update comments on registers.
3569         (deprecated_register_byte): Rename register_byte.
3570         (deprecated_register_raw_size): Rename register_raw_size.
3571         (deprecated_register_virtual_size): Rename register_virtual_size.
3572         (deprecated_register_virtual_type): Rename register_virtual_type.
3573         * gdbarch.h, gdbarch.c: Re-generate.
3574         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3575         * vax-tdep.c (vax_gdbarch_init): Update.
3576         * v850-tdep.c (v850_gdbarch_init): Update.
3577         * sparc-tdep.c (sparc_gdbarch_init): Update.
3578         * sh-tdep.c (sh_gdbarch_init): Update.
3579         * s390-tdep.c (s390_gdbarch_init): Update.
3580         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3581         * ns32k-tdep.c: Update.
3582         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3583         * mips-tdep.c (mips_gdbarch_init): Update.
3584         * mcore-tdep.c (mcore_gdbarch_init): Update.
3585         * m68k-tdep.c (m68k_gdbarch_init): Update.
3586         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3587         * ia64-tdep.c (ia64_gdbarch_init): Update.
3588         * hppa-tdep.c (hppa_gdbarch_init): Update.
3589         * h8300-tdep.c (h8300_gdbarch_init): Update.
3590         * frv-tdep.c (frv_gdbarch_init): Update.
3591         * cris-tdep.c (cris_gdbarch_init): Update.
3592         * avr-tdep.c (avr_gdbarch_init): Update.
3593         * alpha-tdep.c (alpha_gdbarch_init): Update.
3594         * arm-tdep.c (arm_gdbarch_init): Update.
3595
3596 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3597
3598         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3599         mips_o32_use_struct_convention with always_use_struct_convention.
3600
3601 2003-06-12  David Carlton  <carlton@kealia.com>
3602
3603         * cp-namespace.c (cp_set_block_scope): Comment out
3604         processing_has_namespace_info branch.
3605
3606 2003-06-12  Jim Blandy  <jimb@redhat.com>
3607
3608         Recognize and skip 64-bit PowerPC Linux linkage functions.
3609         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3610         insn_pattern, insns_match_pattern, d_field, ds_field): New
3611         functions, macros, and types for working with PPC instructions.
3612         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3613         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3614         ppc64_skip_trampoline_code): New functions, variables, and macros
3615         for recognizing and skipping linkage functions.
3616         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3617         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3618
3619         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3620         register offsets for both the 32- and 64-bit interfaces.
3621
3622         Actually finish the job started by my change of 2003-05-29.
3623         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3624         other #definition of this.
3625         (ppc_linux_skip_trampoline_code): Remove declaration.
3626         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3627         static.
3628         (ppc_linux_init_abi): Register it as the skip_trampoline_code
3629         method for GDBARCH.
3630
3631         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3632         'long' on ppc64-*-linux*.
3633
3634         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3635         isn't #defined, assume the register doesn't exist: act as if
3636         tdep->ppc_mq_regnum were -1.
3637
3638         * configure.host, configure.tgt: Add entries for
3639         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3640         powerpc/linux.mt.
3641         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3642         New files.
3643
3644         * arch-utils.c (always_use_struct_convention): New function.
3645         * arch-utils.h (always_use_struct_convention): New prototype.
3646         * alpha-tdep.c (alpha_use_struct_convention): Delete.
3647         (alpha_gdbarch_init): Register always_use_struct_convention,
3648         instead of alpha_use_struct_convention.
3649         * cris-tdep.c (cris_use_struct_convention): Delete.
3650         (cris_gdbarch_init): Register always_use_struct_convention,
3651         instead of cris_use_struct_convention.
3652         * frv-tdep.c (frv_use_struct_convention): Delete.
3653         (frv_gdbarch_init): Register always_use_struct_convention,
3654         instead of frv_use_struct_convention.
3655         * h8300-tdep.c (h8300_use_struct_convention): Delete.
3656         (h8300_gdbarch_init): Register always_use_struct_convention,
3657         instead of h8300_use_struct_convention.
3658         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3659         (mips_o32_gdbarch_init): Register always_use_struct_convention,
3660         instead of mips_o32_use_struct_convention.
3661
3662 2003-06-12  Andrew Cagney  <cagney@redhat.com>
3663
3664         * wince.c: Include "mips-tdep.h".
3665         * mips-tdep.h (mips_next_pc): Declare.
3666         * mcore-tdep.c: Make more local functions static.
3667         * Makefile.in (wince.o): Update dependencies.
3668
3669 2003-06-12  David Carlton  <carlton@kealia.com>
3670
3671         * symtab.c (lookup_symbol_aux_minsyms): Replace
3672         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3673         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3674         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3675         SYMBOL_NATURAL_NAME.
3676
3677 2003-06-12  Andreas Schwab  <schwab@suse.de>
3678
3679         * Makefile.in (tuiDisassem.o): Update dependencies.
3680
3681 2003-06-12  David Carlton  <carlton@bactrian.org>
3682
3683         * symtab.h: Delete declaration of make_symbol_overload_list.
3684         Add declaration of lookup_partial_symbol.
3685         * symtab.c (remove_params): Move to cp-support.c.
3686         (overload_list_add_symbol, make_symbol_overload_list)
3687         (sym_return_val_size, sym_return_val_index): Ditto.
3688         (lookup_partial_symbol): Make extern.
3689         * cp-support.h: Add declaration of make_symbol_overload_list.
3690         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3691         symtab.h, and block.h.
3692         (remove_params): Move here from symtab.c.
3693         (overload_list_add_symbol, make_symbol_overload_list)
3694         (sym_return_val_size, sym_return_val_index): Ditto.
3695         * valops.c: Include cp-support.h.
3696         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3697         frame_h, and block_h.
3698         (valops.o): Depend on cp_support_h.
3699
3700 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
3701
3702         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3703         substitute by NUM_REGS throughout.
3704         (h8300_register_name): Only care for H8/300 and H8/300H registers.
3705         (h8300s_register_name): New function for H8S registers.
3706         (h8300sx_register_name): Ditto for H8SX registers.
3707         (h8300_print_register): Revise register printing, avoid depending
3708         on 32 bit long.
3709         (h8300_register_byte): Only care for H8/300 registers.
3710         (h8300h_register_byte): New function for any other architecture.
3711         (h8300_register_raw_size): Remove.
3712         (h8300_register_virtual_type): Revise to return actually useful
3713         type.
3714         (h8300_extract_struct_value_address): Only care for H8/300 registers.
3715         (h8300h_extract_struct_value_address): New function for any other
3716         architecture.
3717         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
3718         set_gdbarch_register_name, set_gdbarch_register_byte,
3719         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3720         Remove calls to set_gdbarch_deprecated_register_size,
3721         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3722         set_gdbarch_deprecated_max_register_raw_size,
3723         set_gdbarch_register_virtual_size and
3724         set_gdbarch_deprecated_max_register_virtual_size entirely.
3725         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3726         set_gdbarch_long_double_bit.
3727
3728 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
3729
3730         * doublest.c (convert_doublest_to_floatformat): When dealing
3731         with the implied integer bit, only alter mant_bits if we are
3732         processing a full 32 bits of mantissa.
3733
3734 2003-06-11  David Carlton  <carlton@bactrian.org>
3735
3736         * dictionary.h: New.
3737         * dictionary.c: New.
3738         * block.h: Add opaque declaration for struct dictionary.
3739         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3740         'sym' members.
3741         (BLOCK_DICT): New macro.
3742         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3743         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3744         BLOCK_SHOULD_SORT.
3745         (ALL_BLOCK_SYMBOLS): Update definition.
3746         * Makefile.in (SFILES): Add dictionary.c.
3747         (dictionary_h): New.
3748         (COMMON_OBS): Add dictionary.o.
3749         (dictionary.o): New.
3750         (ada-lang.o): Depend on dictionary_h.
3751         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3752         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3753         (mi-cmd-stack.o): Ditto.
3754         (gdbtk-cmds.o): Update dependencies.
3755         (gdbtk-stack.o): Ditto.
3756         * ada-lang.c: Include dictionary.h.
3757         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3758         (fill_in_ada_prototype, debug_print_block): Ditto.
3759         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3760         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
3761         'is_sorted'.
3762         * mdebugread.c: Include dictionary.h.
3763         (struct parse_stack): Delete 'maxsyms' member.
3764         (parse_symbol): Update calls to new_block.  Delete calls to
3765         shrink_block.  Use dictionary methods.
3766         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3767         Update calls to new_symtab.  Don't maintain maxsyms data.
3768         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3769         (add_symbol): Just call dict_add_symbol.
3770         (new_symtab): Delete 'maxsyms' argument.
3771         (new_symtab): Update calls to new_block.
3772         (new_block): Delete 'maxsyms' argument; add 'function' argument.
3773         (shrink_block): Delete function.
3774         (fixup_sigtramp): Update call to new_block.  Add symbol via
3775         dict_add_symbol.
3776         * jv-lang.c: Include dictionary.h.
3777         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3778         appropriately.  Set class_symtab->free_func.  Make sure the
3779         blockvector is big enough to hold two blocks.
3780         (add_class_symtab_symbol): Use dictionary methods.
3781         (free_class_block): New function.
3782         (type_from_class): Replace explicit iteration by
3783         ALL_BLOCK_SYMBOLS.
3784         * symtab.h (struct symtab): Replace 'free_ptr' method by
3785         'free_func'.
3786         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3787         sort_symtab_syms.
3788         * dwarfread.c (psymtab_to_symtab_1): Delete call to
3789         sort_symtab_syms.
3790         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3791         Include dictionary.h.
3792         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3793         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3794         sort_symtab_syms.
3795         * objfiles.c: Include dictionary.h.
3796         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3797         * buildsym.c: Include dictionary.h.
3798         (finish_block): Use dictionary methods.
3799         (end_symtab): Set free_func to NULL, not free_ptr.
3800         * tracepoint.c: Include dictionary.h.
3801         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3802         (scope_info): Ditto.
3803         * stack.c: Include dictionary.h.
3804         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3805         (print_block_frame_labels, print_frame_arg_vars)
3806         (print_frame_args): Ditto.
3807         * symmisc.c (free_symtab_block): Use dictionary methods.
3808         (dump_symtab): Ditto.
3809         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3810         Include dictionary.h.
3811         * symfile.h: Delete declarations of sort_block_syms,
3812         sort_symtab_syms.
3813         * symfile.c (sort_block_syms): Delete.
3814         (sort_symtab_syms): Delete.
3815         * symtab.c: Include dictionary.h.
3816         (lookup_block_symbol): Use dictionary iterators.
3817         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3818         (search_symbols, make_symbol_completion_list): Ditto.
3819         (make_symbol_overload_list): Ditto.
3820         * valops.c (value_of_local): Use dict_empty.
3821         Include dictionary.h.
3822
3823 2003-06-11  J. Brobecker  <brobecker@gnat.com>
3824
3825         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3826
3827 2003-06-11  David Carlton  <carlton@bactrian.org>
3828
3829         * block.h (BLOCK_SHOULD_SORT): Delete.
3830         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3831         blocks.
3832         * ada-lang.c (ada_add_block_symbols): Ditto.
3833         * symfile.c (sort_block_syms): Delete.
3834         (sort_symtab_syms): Ditto.
3835         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3836         declarations.
3837         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3838         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3839         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3840         * dwarfread.c (psymtab_to_symtab_1): Ditto.
3841         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3842         * mdebugread.c (psymtab_to_symtab_1): Ditto.
3843         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3844
3845 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
3846
3847         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3848         bits to 128.
3849
3850 2003-06-11  Andrew Cagney  <cagney@redhat.com>
3851
3852         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3853         REGISTER_CONVERTIBLE.
3854         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3855         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3856         * gdbarch.h, gdbarch.c: Re-generate.
3857         * arch-utils.h (deprecated_register_convertible_not): Rename
3858         generic_register_convertible_not.
3859         * arch-utils.c (deprecated_register_convertible_not): Rename
3860         generic_register_convertible.
3861         (legacy_convert_register_p, legacy_register_to_value): Update.
3862         * sh-tdep.c (sh64_push_arguments): Update.
3863         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3864         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3865         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3866         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3867         * arch-utils.c (legacy_value_to_register): Update.
3868         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3869         (rs6000_register_convert_to_raw): Make parameter "from" const.
3870         * mips-tdep.c (mips_gdbarch_init): Update.
3871         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
3872         * infcmd.c (default_print_registers_info): Update.
3873         * ia64-tdep.c (ia64_gdbarch_init): Update.
3874         (ia64_register_convert_to_raw): Make parameter "from" const.
3875         * i386-tdep.c (i386_gdbarch_init): Update.
3876         (i386_register_convert_to_raw): Update.
3877
3878 2003-06-11  Andrew Cagney  <cagney@redhat.com>
3879
3880         * remote-fileio.c: Include "remote-fileio.h".
3881         * Makefile.in (remote-fileio.o): Update dependencies.
3882         (remote_fileio_h): Fix typo.
3883
3884 2003-06-11  Andrew Cagney  <cagney@redhat.com>
3885
3886         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3887         (xstormy16_save_dummy_frame_tos): Make static.
3888         (_initialize_xstormy16_tdep): Add declaration.
3889         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3890         * v850-tdep.c: Make local functions static.
3891         (_initialize_v850_tdep): Add declaration.
3892         * sparc-tdep.c: Make local functions static.
3893         (_initialize_sparc_tdep): Add declaration.
3894         * sh-tdep.c: Make local functions static.
3895         (_initialize_sh_tdep): Add declaration.
3896         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3897         * s390-tdep.c: Make local functions static.
3898         (_initialize_s390_tdep): Add declaration.
3899         * dbxread.c (find_stab_function_addr): Make static.
3900         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3901         * ocd.c (_initialize_remote_ocd): Add declaration.
3902         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3903         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3904         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3905         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3906         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3907         * remote-array.c (_initialize_array): Add declaration.
3908         (_initialize_remote_monitors): Add declaration.
3909         * remote-mips.c: Make local functions static.
3910         (_initialize_remote_mips): Add declaration.
3911         * mcore-tdep.c: Make all local functions static.
3912         (_initialize_mcore_tdep): Add declaration.
3913         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3914         * abug-rom.c (_initialize_abug_rom): Add declaration.
3915         * rom68k-rom.c (_initialize_rom68k): Add declaration.
3916         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3917         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3918         * remote-est.c (_initialize_est): Add declaration.
3919         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3920         (m68hc11_call_dummy_address): Make static.
3921         * ia64-tdep.c: Make local functions static.
3922         (_initialize_ia64_tdep): Add declaration.
3923         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3924         * monitor.c (monitor_wait_filter): Make static.
3925         (_initialize_remote_monitors): Add declaration.
3926         * remote-hms.c (_initialize_remote_hms): Add declaration.
3927         * remote-e7000.c (fetch_regs_from_dump): Make static.
3928         (expect_n): Make static.
3929         (_initialize_remote_e7000): Add declaration.
3930         * ser-e7kpc.c: Always include "defs.h".
3931         (_initialize_ser_e7000pc): Add declaration.
3932         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3933         * cris-tdep.c: Make all but one function static.
3934         (_initialize_cris_tdep): Add declaration.
3935         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3936         * solib.c (update_solib_list): Make static.
3937         (_initialize_solib): Add declaration.
3938         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3939         (_initialize_avr_tdep): Add declaration.
3940         * remote-rdi.c (voiddummy): Make static.
3941         (_initialize_remote_rdi): Add declaration.
3942         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3943         * remote-rdp.c (send_rdp): Make static.
3944         (_initialize_remote_rdp): Add declaration.
3945         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3946
3947 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
3948
3949         * remote-fileio.c: Make ari happy.
3950
3951 2003-06-10  J. Brobecker  <brobecker@gnat.com>
3952
3953         * rs6000-nat.c (child_xfer_memory): Compute the right address when
3954         fetching the trailing bytes of the buffer we are about to write.
3955
3956 2003-06-10  Andrew Cagney  <cagney@redhat.com>
3957
3958         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3959         * Makefile.in (remote-fileio.o): Update dependencies.
3960         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
3961         include <setjmp.h>, or <sys/types.h> conditional on USG.
3962         (remote_fio_jmp_buf): Delete global variable.
3963
3964 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
3965             Martin M. Hunt  <hunt@redhat.com>
3966
3967         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3968         (SFILES): Add remote-fileio.c.
3969         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
3970         dependencies for building remote.o.
3971         * remote-fileio.c: New file implementing the remote File-I/O protocol.
3972         * remote-fileio.h: New header file defining remote File-I/O interface.
3973         * remote.c (remote_write_bytes, remote_read_bytes): Remove
3974         static storage class.
3975         (remote_wait, remote_async_wait): Call remote_fileio_request() on
3976         'F' packet.
3977         (_initialize_remote): Call initialize_remote_fileio().
3978         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3979         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3980         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3981         (captured_main): Initialize new ui_files.
3982         * ui-file.c: Add read and fgets input functions.
3983         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3984         (null_file_read): New function.
3985         (ui_file_read): New function.
3986         (set_ui_file_read): New function.
3987         (stdio_file_read): New function.
3988         * ui-file.h: New type ui_file_read_ftype.
3989         (set_ui_file_read): Declare.
3990         (ui_file_read): Declare.
3991
3992 2003-06-09  Andrew Cagney  <cagney@redhat.com>
3993
3994         * frame.h (deprecated_unwind_get_saved_register): Rename
3995         generic_unwind_get_saved_register, update comments.
3996         * mips-tdep.c (mips_get_saved_register): Update.
3997         * frame.c (deprecated_unwind_get_saved_register): Update.
3998
3999 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4000
4001         * vax-tdep.c (vax_frame_locals_address): Delete function.
4002         (vax_gdbarch_init): Do not set frame_locals_address.
4003         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4004         (m68hc11_gdbarch_init): Do not set frame_locals_address.
4005         * s390-tdep.c (s390_frame_args_address): Delete function.
4006         (s390_gdbarch_init): Do not set frame_args_address or
4007         frame_locals_address.
4008         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4009         (ns32k_gdbarch_init): Do not set frame_locals_address.
4010         * hppa-tdep.c (hppa_frame_args_address): Delete function.
4011         (hppa_frame_locals_address): Delete function.
4012         (hppa_gdbarch_init): Do not set frame_args_address, or
4013         frame_locals_address.
4014         * arm-tdep.c (arm_frame_args_address): Delete.
4015         (arm_frame_locals_address): Delete.
4016         (arm_gdbarch_init): Do not set frame_args_address, or
4017         frame_locals_address.
4018
4019 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4020
4021         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4022         * gdbarch.h, gdbarch.c: Re-generate.
4023         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4024         * arch-utils.c (frame_num_args_unknown): Delete function.
4025         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4026         (frame_info): Use FRAME_NUM_ARGS_P.
4027         * arm-tdep.c (arm_frame_num_args): Delete function.
4028         (arm_gdbarch_init): Do not set frame_num_args.
4029         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4030         * hppa-tdep.c (hppa_frame_num_args): Delete function.
4031         (hppa_gdbarch_init): Do not set frame_num_args.
4032         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4033         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4034         frame_num_args to default frame_num_args_unknown.
4035         * v850-tdep.c (v850_gdbarch_init): Ditto.
4036         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4037         * sh-tdep.c (sh_gdbarch_init): Ditto.
4038         * s390-tdep.c (s390_gdbarch_init): Ditto.
4039         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4040         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4041         * mips-tdep.c (mips_gdbarch_init): Ditto.
4042         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4043         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4044         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4045         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4046         * i386-tdep.c (i386_gdbarch_init): Ditto.
4047         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4048         * frv-tdep.c (frv_gdbarch_init): Ditto.
4049         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4050         * cris-tdep.c (cris_gdbarch_init): Ditto.
4051         * avr-tdep.c (avr_gdbarch_init): Ditto.
4052         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4053
4054 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4055
4056         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4057         (print_frame_args): Moved to "stack.c".
4058         * stack.c: Include "gdb_assert.h".
4059         (print_frame_nameless_args): Moved from "printcmd.c", made static.
4060         (print_frame_args): Moved from "printcmd.c".
4061         * frame.h (print_frame_args): Delete declaration.
4062         * Makefile.in (stack.o): Update dependencies.
4063
4064 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4065
4066         * frame.c (get_prev_frame): Remove reference to
4067         frame_args_address_correct in comments.
4068         * frame-base.c (default_frame_args_address): Delete code
4069         conditional on FRAME_ARGS_ADDRESS_CORRECT.
4070         * vax-tdep.c (vax_frame_args_address_correct): Delete.
4071         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4072         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4073         (vax_frame_args_address_correct): Delete declaration.
4074
4075 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4076
4077         * gdbarch.sh (UNWIND_SP): Add.
4078         * gdbarch.h, gdbarch.c: Re-generate.
4079         * frame.c (frame_sp_unwind): New function.
4080         (get_frame_sp): New function.
4081         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4082         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4083         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4084         value.
4085         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4086         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4087
4088 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4089
4090         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4091         REMOTE_BREAKPOINT.
4092         * remote.c: Update.
4093         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4094         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4095         * config/m68k/tm-sun3.h: Update.
4096         * config/m68k/tm-m68klynx.h: Update.
4097         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4098
4099         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4100         trad_frame".  Update comments.
4101         * d10v-tdep.c (struct d10v_unwind_cache): Update.
4102         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4103         (trad_frame_register_value, trad_frame_prev_register): Update.
4104
4105 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4106
4107         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4108         from GCC's acinclude.m4.
4109         * configure.in: Check for getopt's delcaration.
4110         * aclocal.m4, config.in, configure: Re-generate.
4111         * main.c (error_init): Delete declaration.
4112         * defs.h (error_init): Declare.
4113         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4114         (rs6000_convert_from_func_ptr_addr): Make static.
4115         (_initialize_rs6000_tdep): Add declaration.
4116         * cli/cli-cmds.c (dont_repeat): Delete declaration.
4117         (show_commands, set_verbose, show_history): Delete declaration.
4118         * top.h (set_verbose): Add declaration.
4119         (show_history, set_history, show_commands): Add declaration.
4120         (do_restore_instream_cleanup): Add declaration.
4121         * objc-lang.c (specialcmp): Make static.
4122         (print_object_command): Make static.
4123         (find_objc_msgsend): Make static.
4124         (find_objc_msgcall_submethod_helper): Make static.
4125         (find_objc_msgcall_submethod): Make static.
4126         (_initialize_objc_language): Add declaration.
4127         (find_implementation_from_class): Make static.
4128         (find_implementation): Make static.
4129         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4130         * objc-lang.h (lookup_struct_typedef): Add declaration.
4131         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4132         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4133         (do_restore_user_call_depth): Make static.
4134         (do_restore_instream_cleanup): Delete declaration.
4135         (dont_repeat): Delete declaration.
4136         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4137         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4138         * reggroups.c (_initialize_reggroup): Add declaration.
4139         * cp-support.c (_initialize_cp_support): Add declaration.
4140         * cp-abi.c (_initialize_cp_abi): Add declaration.
4141         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4142         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4143         (_initialize_gnu_v3_abi): Add declaration.
4144         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4145         (_initialize_gnu_v2_abi): Add declaration.
4146         * frame-base.c (_initialize_frame_base): Add declaration.
4147         * doublest.c (floatformat_from_length): Make static.
4148         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4149         * frame.c (create_sentinel_frame): Make static.
4150         (_initialize_frame): Add declaration.
4151         * top.c (do_catch_errors): Make static.
4152         (gdb_rl_operate_and_get_next_completion): Make static.
4153         * typeprint.c: Include "typeprint.h".
4154         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4155         (sentinel_frame_this_id): Make static.
4156         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4157         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4158         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4159         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4160         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4161         * maint.c (maintenance_print_architecture): Make static.
4162         * signals/signals.c (_initialize_signals): Add declaration.
4163         * std-regs.c (_initialize_frame_reg): Add declaration.
4164         * jv-exp.y (push_variable): ISO C definition.
4165         (push_qualified_expression_name): Ditto.
4166         * memattr.c (_initialize_mem): Add declaration.
4167         * remote.c (remote_check_watch_resources): Make static.
4168         (remote_stopped_by_watchpoint): Make static.
4169         (remote_stopped_data_address): Make static.
4170         * d10v-tdep.c (nr_dmap_regs): Make static.
4171         (a0_regnum): Make static.
4172         (d10v_frame_unwind_cache): Make static.
4173         (d10v_frame_p): Make static.
4174         * osabi.c (show_osabi): Make static.
4175         (_initialize_gdb_osabi): Add extern declaration.
4176         * gdbtypes.c (make_qualified_type): Make static.
4177         (safe_parse_type): Make static.
4178         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4179         * macrotab.c (macro_bcache_free): Make static.
4180         * interps.c (interp_set_quiet): Make static.
4181         (interpreter_exec_cmd): Make static.
4182         * stack.h (select_frame_command): New file.
4183         * stack.c: Include "stack.h".
4184         (select_frame_command_wrapper): Delete function.
4185         (select_frame_command): Make global.
4186         * infcall.c: Include "infcall.h".
4187         * linespec.c: Include "linespec.h".
4188         * symfile.c (sections_overlap): Make static.
4189         * cp-support.h (cp_initialize_namespace): ISO C declaration.
4190         * charset.c (_initialize_charset): Add missing prototype.
4191         * regcache.c (init_legacy_regcache_descr): Make static.
4192         (do_regcache_xfree): Make static.
4193         (regcache_xfer_part): Make static.
4194         (_initialize_regcache): Add missing prototype.
4195         * breakpoint.c (parse_breakpoint_sals): Make static.
4196         (breakpoint_sals_to_pc): Make static.
4197         * interps.h (clear_interpreter_hooks): ISO C declaration.
4198         * Makefile.in (stack_h): Define.
4199         (stack.o, typeprint.o, mi-main.o): Update dependencies.
4200         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4201
4202 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4203
4204         * Makefile.in (d10v-tdep.o): Update dependencies.
4205         (SFILES): Add trad-frame.c.
4206         (trad_frame_h): Define.
4207         (COMMON_OBS): Add trad-frame.o.
4208         (trad-frame.o): Specify dependencies.
4209         * d10v-tdep.c: Include "trad-frame.h".
4210         (saved_regs_unwinder): Delete function.
4211         (d10v_frame_prev_register): Use trad_frame_prev_register.
4212         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4213         trad_frame", delete "regs" and "prev_sp".
4214         (prologue_find_regs): Use trad-frame.
4215         * trad-frame.h, trad-frame.c: New files.
4216
4217 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
4218
4219         * dwarf2cfi.c, dwarf2cfi.h: Remove.
4220
4221 2003-06-07  Adam Fedor  <fedor@gnu.org>
4222
4223         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4224         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4225         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4226         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4227         resolve_msgsend_super, resolve_msgsend_super_stret):
4228         Use it.
4229
4230 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4231
4232         * symfile.h: Re-indent, clean up comments.
4233
4234 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4235
4236         * inferior.h (deprecated_write_sp): Replace
4237         generic_target_write_sp.
4238         * regcache.c (deprecated_write_sp): Replace
4239         generic_target_write_sp.
4240         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4241         * vax-tdep.c (vax_gdbarch_init): Update.
4242         * v850-tdep.c (v850_gdbarch_init): Update.
4243         * sparc-tdep.c (sparc_gdbarch_init): Update.
4244         * sh-tdep.c (sh_gdbarch_init): Update.
4245         * s390-tdep.c (s390_gdbarch_init): Update.
4246         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4247         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4248         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4249         * mcore-tdep.c (mcore_gdbarch_init): Update.
4250         * m68k-tdep.c (m68k_gdbarch_init): Update.
4251         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4252         * ia64-tdep.c (ia64_gdbarch_init): Update.
4253         * h8300-tdep.c (h8300_gdbarch_init): Update.
4254         * frv-tdep.c (frv_gdbarch_init): Update.
4255         * cris-tdep.c (cris_gdbarch_init): Update.
4256         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4257
4258 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4259
4260         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4261         Assert that PC_REGNUM is valid.
4262         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4263
4264 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4265
4266         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4267         * gdbarch.h, gdbarch.c: Regenerate.
4268         * mn10300-tdep.c: Include "gdb_assert.h".
4269         (mn10300_read_fp): New function.
4270         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4271         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
4272         * ia64-tdep.c: Include "gdb_assert.h".
4273         (ia64_read_fp): New function.
4274         (ia64_gdbarch_init): Set deprecated_target_read_fp to
4275         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
4276         * regcache.c (generic_target_read_sp): Delete function.
4277         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4278         * inferior.h (generic_target_read_sp): Delete declaration.
4279         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4280         generic_target_read_sp.
4281         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4282         * sparc-tdep.c (sparc_gdbarch_init): Ditto
4283         * sh-tdep.c (sh_gdbarch_init): Ditto.
4284         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4285         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4286
4287 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4288
4289         * gdbarch.sh: Comment each field of startup_gdbarch.
4290         * gdbarch.h, gdbarch.c: Re-generate.
4291
4292 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4293
4294         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4295         * gdbarch.h, gdbarch.c: Re-generate.
4296         * regcache.c: Update comments on read_pc et.al.
4297         (generic_target_read_pc): Delete function.
4298         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4299         * inferior.h (generic_target_read_pc): Delete declaration.
4300         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4301         generic_target_read_pc.
4302         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4303         * sh-tdep.c (sh_gdbarch_init): Ditto.
4304         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4305         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4306
4307 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4308
4309         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4310         "index" with "special_local_sect".  Use strcmp instead of STREQ.
4311         Append period to coments.
4312
4313 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
4314
4315         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4316         (elfstab_offset_sections): Likewise.
4317         * gdb-stabs.h (stab_section_info): Likewise.
4318         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4319         * objfiles.c (objfile_relocate): Likewise.
4320         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4321         * remote.c (get_offsets): Likewise.
4322         (remote_cisco_objfile_relocate): Likewise.
4323         * somread.c (som_symfile_offsets): Likewise.
4324         * symfile.c (alloc_section_addr_info): New function.
4325         (build_section_addr_info_from_section_tab): Use it.
4326         (free_section_addr_info): Adjust.
4327         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4328         (syms_from_objfile): Allocate local_addr dynamically.
4329         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4330         dynamically.
4331         (add_symbol_file_command): Allocate sect_opts dynamically.
4332         (reread_symbols): Avoid use of SECT_OFF_MAX.
4333         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4334         (alloc_section_addr_info): Declare it.
4335         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4336         * win32-nat.c (solib_symbols_add): Allocate section_addrs
4337         dynamically.
4338         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4339
4340 2003-06-06  Andrew Cagney  <cagney@redhat.com>
4341
4342         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4343         (d10v_frame_unwind_cache): Do not set "return_pc".
4344
4345 2003-06-06  Michael Snyder  <msnyder@redhat.com>
4346
4347         * h8300-tdep.c: Make tidy (long lines).
4348
4349 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
4350
4351         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4352         to regcache_collect().
4353
4354 2003-06-05  J. Brobecker  <brobecker@gnat.com>
4355
4356         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4357         pc_in_sigtramp multiarch method.
4358         (hppa_hpux_som_init_abi): Use it.
4359         (hppa_hpux_elf_init_abi): Likewise.
4360         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4361         macro has been multiarched.
4362         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4363         macro here, as hppa64 isn't multiarched yet.
4364
4365 2003-06-05  Andrew Cagney  <cagney@redhat.com>
4366
4367         * Makefile.in (value_h): Add $(frame_h).
4368         * value.h: Include "frame.h".
4369         (struct value): Replace "frame_addr" with "frame_id".
4370         (VALUE_FRAME_ID): Replace VALUE_FRAME.
4371         * values.c (allocate_value): Use VALUE_FRAME_ID.
4372         (value_copy): Use VALUE_FRAME_ID.
4373         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4374         * valops.c (value_assign): Update.  Use frame_find_by_id.
4375
4376 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
4377
4378         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4379         in each pass.
4380
4381 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
4382
4383         * thread-db.c (check_event): For create/death event breakpoints,
4384         loop through all messages to ensure that we read the message
4385         corresponding to the breakpoint we are at.
4386
4387 2003-06-04  Michael Snyder  <msnyder@redhat.com>
4388
4389         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4390
4391 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
4392
4393         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4394         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4395         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4396         when handling .eh_frame sections.
4397
4398 2003-06-04  J. Brobecker  <brobecker@gnat.com>
4399
4400         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4401         prepare_to_proceed procedure instead of the hppa-specific one.
4402         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4403
4404 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4405
4406         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4407         * config.in: Regenerated.
4408         * configure.in: Add test for syscall function and check for
4409         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4410         * configure: Regenerated.
4411         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4412         <sys/syscall.h>.
4413         (kill_lwp): New function that uses tkill syscall or
4414         uses kill, depending on whether threading model is nptl or not.
4415         All callers of kill() changed to use kill_lwp().
4416         (lin_lwp_wait): Make special check when WIFEXITED occurs to
4417         see if all threads have already exited in the nptl model.
4418         (stop_and_resume_callback): New callback function used by the
4419         lin_lwp_wait thread exit handling code.
4420         (stop_wait_callback): Check for threads already having exited and
4421         delete such threads fromt the lwp list when discovered.
4422         (stop_callback): Don't assert retcode of kill call.
4423
4424         Roland McGrath  <roland@redhat.com>
4425         * i386-linux-nat.c (ps_get_thread_area): New function needed by
4426         nptl libthread_db.
4427
4428 2003-06-03  Richard Henderson  <rth@redhat.com>
4429
4430         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4431         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4432         (alpha_sigtramp_frame_prev_register): Likewise.
4433         (alpha_heuristic_frame_prev_register): Likewise.
4434         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4435
4436         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4437         alpha-specific register id names.
4438         (alpha_mdebug_frame_unwind_cache): Likewise.
4439         (alpha_mdebug_frame_prev_register): Likewise.
4440
4441 2003-06-03  Richard Henderson  <rth@redhat.com>
4442
4443         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4444         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4445         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4446         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4447         unwind routines.
4448         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4449         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4450         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4451
4452         * alpha-linux-tdep.c: Remove unnecessary includes.
4453         * Makefile.in (alpha-linux-tdep.o): Update.
4454
4455 2003-06-03  Richard Henderson  <rth@redhat.com>
4456
4457         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4458         (alphabsd_fill_fpreg): Likewise.
4459
4460 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4461
4462         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
4463         references to struct frame_info fields by calls to the equivalent
4464         accessors. Necessary now that frame_info is opaque.
4465
4466 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4467
4468         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4469         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4470         structure, field no longer exists.
4471
4472 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4473
4474         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4475         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4476
4477 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4478
4479         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4480         references to struct frame_info fields by calls to the equivalent
4481         accessors. Necessary now that frame_info is opaque.
4482
4483 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4484
4485         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4486         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4487         structure, field no longer exists.
4488
4489 2003-06-03  Theodore A. Roth  <troth@openavr.org>
4490
4491         * remote.c (init_remote_state): Compute sizeof_g_packet by
4492         accumulation of the size of all registers instead of blindly using
4493         DEPRECATED_REGISTER_BYTES.
4494
4495 2003-06-03  Michael Snyder  <msnyder@redhat.com>
4496
4497         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4498         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4499         for h8300sx.
4500
4501 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4502
4503         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4504         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4505
4506 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4507
4508         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4509         (sparc_convert_to_raw): Delete function.
4510         (sparc_gdbarch_init): Do not set register_convert_to_raw or
4511         register_convert_to_virtual.
4512
4513 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
4514
4515         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4516         layer if not dealing with a statically-linked threaded program.
4517
4518 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
4519
4520         * solib.c (solib_open): Update comment to reflect actual search order.
4521
4522 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4523
4524         * frame.c (get_frame_memory_signed): New function.
4525         (get_frame_memory, get_frame_memory_unsigned): New function.
4526         (get_frame_arch): New function.
4527         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4528         (get_frame_memory, get_frame_unsigned_memory): Declare.
4529         * d10v-tdep.c (d10v_frame_unwind_cache): Use
4530         get_frame_memory_unsigned and get_frame_arch.
4531         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4532
4533 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
4534
4535         * MAINTAINERS (write after approval): Add myself.
4536
4537 2003-06-03  Jim Blandy  <jimb@redhat.com>
4538
4539         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4540         elements of gregset_t are 64 bits each, but access registers
4541         are still 32 bits, so they're packed two per gregset_t
4542         element.  Unpack/pack them properly.
4543
4544 2003-06-02  David Carlton  <carlton@bactrian.org>
4545
4546         * linespec.c (find_methods): Break out code into
4547         add_matching_methods and add_constructors.
4548         (add_matching_methods): New.
4549         (add_constructors): Ditto.
4550
4551 2003-06-02  Andrew Cagney  <cagney@redhat.com>
4552
4553         * sparc-tdep.c (sparc_print_registers): Delete call to
4554         REGISTER_CONVERTIBLE.
4555         (sparc_gdbarch_init): Do not set register_convertible.
4556         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4557         * frv-tdep.c (frv_gdbarch_init): Ditto.
4558         * cris-tdep.c (cris_gdbarch_init): Ditto.
4559
4560 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
4561
4562         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4563         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4564         (syms_from_objfile): Ditto.
4565
4566 2003-06-03  Andreas Schwab  <schwab@suse.de>
4567
4568         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4569         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4570
4571 2003-06-02  Richard Henderson  <rth@redhat.com>
4572
4573         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4574         a member of all_reggroup.
4575
4576 2003-06-02  Richard Henderson  <rth@redhat.com>
4577
4578         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4579         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4580         (alpha_lds, alpha_sts): New.
4581         (alpha_convert_register_p): Change from _register_convertible.
4582         (alpha_register_to_value): Change from _convert_to_virtual;
4583         restructure and fail for type sizes other than 4 or 8.
4584         (alpha_value_to_register): Similarly.
4585         (alpha_extract_return_value): Use alpha_sts.
4586         (alpha_store_return_value): Use alpha_lds.
4587         (alpha_gdbarch_init): Update hooks.
4588
4589 2003-06-02  Richard Henderson  <rth@redhat.com>
4590
4591         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4592         regnum identifiers.
4593         (alpha_sigtramp_register_address): Likewise.
4594
4595 2003-06-02  Richard Henderson  <rth@redhat.com>
4596
4597         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4598         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4599         * alpha-tdep.h: Declare them.
4600
4601         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4602         Remove zerobuf.  Don't error on UNIQUE.
4603         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4604         (ALPHA_REGSET_UNIQUE): Provide default.
4605         (supply_gregset): Use alpha_supply_int_regs.
4606         (fill_gregset): Use alpha_fill_int_regs.
4607         (supply_fpregset): Use alpha_supply_fp_regs.
4608         (fill_fpregset): Use alpha_fill_fp_regs.
4609         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4610         (alphabsd_supply_reg): Use alpha_supply_int_regs.
4611         (alphabsd_fill_reg): Use alpha_fill_int_regs.
4612         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4613         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4614         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4615
4616 2003-06-02  Richard Henderson  <rth@redhat.com>
4617
4618         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4619
4620         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4621         (alpha_store_return_value): Likewise.
4622
4623 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4624
4625         * block.c (contained_in): Add 'const' to arguments.
4626         (block_function): Ditto.
4627         * block.h: Update declarations for block_function and
4628         contained_in.
4629
4630 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4631
4632         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4633         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4634         * p-valprint.c (pascal_val_print): Ditto.
4635         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4636
4637 2003-06-02  Richard Henderson  <rth@redhat.com>
4638
4639         * alpha-tdep.c (alpha_push_dummy_call): Use
4640         builtin_type_ieee_double_little instead of builtin_type_double.
4641
4642         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4643         sign-extension of 32-bit values.
4644         (alpha_store_return_value): Similarly.
4645
4646         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4647         (alpha_extract_return_value): Likewise.
4648         (alpha_store_return_value): Likewise.
4649
4650         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4651         (alpha_store_return_value): Error on IEEE Quad floats.
4652
4653         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4654         (alpha_extract_struct_value_address): Likewise.
4655         (alpha_store_return_value): Likewise.
4656         (alpha_store_struct_return): Remove.
4657         (alpha_gdbarch_init): Update hook registration to match.
4658
4659         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4660         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4661         macros where appropriate.
4662         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
4663         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4664
4665         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4666         for SP, GP; void_func_ptr for PC; non-language-specific types
4667         for all others.
4668         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4669
4670 2003-06-02  Richard Henderson  <rth@redhat.com>
4671
4672         * top.h (lim_at_start): Declare.
4673         * main.c (captured_main): Set it.
4674         * top.c (lim_at_start): Define.
4675         (command_loop): Use it instead of &environ.
4676         * event-top.c (command_handler): Likewise.
4677
4678 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
4679
4680         * mipsnbsd-tdep.c: Update copyright years.
4681         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4682
4683 2003-06-01  Richard Henderson  <rth@redhat.com>
4684
4685         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4686         (alpha-linux-tdep.o): Update dependencies.
4687         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4688         * alpha-mdebug-tdep.c: Remove unneeded includes.
4689
4690 2003-06-01  Richard Henderson  <rth@redhat.com>
4691
4692         * alpha-tdep.c (alpha_register_reggroup_p): New.
4693         (alpha_gdbarch_init): Register it.
4694
4695 2003-06-02  Andrew Cagney  <cagney@redhat.com>
4696
4697         * dwarfread.c: Eliminate "register"
4698         (decode_die_type): Eliminate assignment within "if".
4699         (struct_type, decode_array_element_type): Ditto.
4700         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4701         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4702         (decode_modified_type, completedieinfo): Ditto.
4703         * block.c: Eliminate "register".
4704         (blockvector_for_pc_sect): Eliminate assignment within "if".
4705         * cp-support.h (struct symbol): Opaque declaration.
4706         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4707
4708 2003-06-01  Richard Henderson  <rth@redhat.com>
4709
4710         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4711         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4712
4713 2003-06-01  Adam Fedor  <fedor@gnu.org>
4714
4715         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4716         * gdbarch.[ch]: Regenerate.
4717         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4718         (hppa_gdbarch_init): Set it in the gdbarch vector.
4719         * i386-tdep.c (i386_fetch_pointer_argument): New
4720         (i386_gdbarch_init): Set it into gdbarch.
4721         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4722         (rs6000_gdbarch_init): Set it in gdbarch.
4723         * sparc-tdep.c (sparc_fetch_pointer_argument): New
4724         (sparc_gdbarch_init): Set it in gdbarch.
4725
4726 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4727
4728         * defs.h (extract_address): Delete declaration.
4729         * findvar.c (extract_address): Delete function.
4730         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4731         extract_address with the inline equivalent,
4732         extract_unsigned_integer.
4733         (xstormy16_extract_struct_value_address): Ditto.
4734         (xstormy16_pointer_to_address): Ditto.
4735         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4736         * v850-tdep.c (v850_push_arguments): Ditto.
4737         (v850_extract_return_value): Ditto.
4738         (v850_extract_struct_value_address): Ditto.
4739         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4740         (sparcnbsd_get_longjmp_target_64): Ditto.
4741         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4742         (get_longjmp_target): Ditto.
4743         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4744         (sh64_extract_struct_value_address): Ditto.
4745         (sh_push_arguments): Ditto.
4746         (sh64_push_arguments): Ditto.
4747         * remote-vxsparc.c (vx_read_register): Ditto.
4748         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4749         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4750         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4751         * mipsv4-nat.c (get_longjmp_target): Ditto.
4752         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4753         * mips-nat.c (get_longjmp_target): Ditto.
4754         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4755         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4756         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4757         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4758         * irix5-nat.c (get_longjmp_target): Ditto.
4759         * irix4-nat.c (get_longjmp_target): Ditto.
4760         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4761         (ia64_push_arguments): Ditto.
4762         * hpux-thread.c (hpux_thread_store_registers): Ditto.
4763         * h8300-tdep.c (h8300_push_arguments): Ditto.
4764         (h8300_store_return_value): Ditto.
4765         (h8300_extract_struct_value_address): Ditto.
4766         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4767         (frv_push_arguments): Ditto.
4768         * avr-tdep.c (avr_pointer_to_address): Ditto.
4769         (avr_push_arguments): Ditto.
4770         * arm-tdep.c (arm_push_dummy_call): Ditto.
4771         (arm_get_longjmp_target): Ditto.
4772         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4773         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4774         (alpha_get_longjmp_target): Ditto.
4775
4776         * solib-irix.c (extract_mips_address): Inline extract_address,
4777         replacing it with extract_signed_integer.
4778         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4779         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4780         (first_link_map_member, open_symbol_file_object): Ditto.
4781         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4782         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4783         (LM_NEXT, LM_NAME): Ditto.
4784
4785 2003-06-01  Richard Henderson  <rth@redhat.com>
4786
4787         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4788         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4789         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4790         (alpha_cannot_store_register): Likewise.
4791         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4792         * alpha-nat.c (supply_gregset): Likewise.
4793         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4794
4795 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4796
4797         * infcall.c (call_function_by_hand): Update comment on
4798         DEPRECATED_DUMMY_WRITE_SP.
4799
4800         * mips-tdep.c (mips_gdbarch_init): Do not set
4801         deprecated_dummy_write_sp.
4802         (mips_eabi_push_dummy_call): Set the SP register.
4803         (mips_o64_push_dummy_call): Set the SP register.
4804         (mips_o32_push_dummy_call): Set the SP register.
4805         (mips_n32n64_push_dummy_call): Set the SP register.
4806
4807 2003-06-01  Richard Henderson  <rth@redhat.com>
4808
4809         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4810         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4811         (supply_gregset): Likewise.
4812         * alpha-tdep.c (alpha_store_return_value): Likewise.
4813         (alpha_get_longjmp_target): Likewise.
4814         (alpha_register_name): Constify array.
4815         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4816         deprecated_register_size, deprecated_register_bytes,
4817         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4818         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4819         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4820
4821 2003-06-01  Richard Henderson  <rth@redhat.com>
4822
4823         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
4824         from arg_reg_buffer to regcache to avoid double conversion.
4825
4826 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
4827
4828         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4829         SP_REGNUM.
4830         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4831         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4832
4833 2003-06-01  Richard Henderson  <rth@redhat.com>
4834
4835         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4836         (decode_frame_entry): Set it.  Skip FDE augmentation.
4837
4838 2003-06-01  Richard Henderson  <rth@redhat.com>
4839
4840         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4841         not overlapping PC_REGNUM.
4842
4843 2003-06-01  Richard Henderson  <rth@redhat.com>
4844
4845         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4846         alpha_push_arguments.  Don't dump argument register data to
4847         the target stack.  Fix float and 128-bit long double semantics.
4848         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
4849         (alpha_fix_call_dummy): Remove.
4850         (alpha_call_dummy_words): Remove.
4851         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4852
4853 2003-06-01  Richard Henderson  <rth@redhat.com>
4854
4855         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4856
4857 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4858
4859         * mips-tdep.c (is_mips16_addr): New function.
4860         (make_mips16_addr, unmake_mips16_addr): New functions.
4861         (pc_is_mips16, mips_fetch_instruction): Use.
4862         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4863         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4864         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4865         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4866         TARGET_MIPS.
4867         * config/mips/tm-mips.h: Update copyright.
4868         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4869         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4870         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4871         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4872         (TM_PRINT_INSN_MACH): Delete.
4873         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4874
4875         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4876         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4877         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4878         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4879         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
4880         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
4881         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
4882         mips*-*-riscos* and mips*-*-sysv* onto mips.
4883         * config/mips/mips64.mt: New file.
4884         * config/mips/mips.mt: New file.
4885         * config/mips/littlemips.mt: Delete file.
4886         * config/mips/decstation.mt: Delete file.
4887         * config/mips/vr4300el.mt: Delete file.
4888         * config/mips/vr5000el.mt: Delete file.
4889         * config/mips/vr5000.mt: Delete file.
4890         * config/mips/vr4100.mt: Delete file.
4891         * config/mips/vr4xxxel.mt: Delete file.
4892         * config/mips/vr4300.mt: Delete file.
4893         * config/mips/vr4xxx.mt: Delete file.
4894         * config/mips/bigmips.mt: Delete file.
4895         * config/mips/bigmips64.mt: Delete file.
4896         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4897         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4898         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4899         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4900         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4901         "tm-bigmips.h".
4902         * config/mips/tm-irix3.h: Ditto.
4903         * config/mips/tm-mipsv4.h: Ditto.
4904         * config/mips/tm-embed.h: Ditto.
4905         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4906         "tm-bigmips64.h".
4907         * config/mips/tm-vr5000el.h: Delete file.
4908         * config/mips/tm-tx39l.h: Delete file.
4909         * config/mips/tm-vr4300el.h: Delete file.
4910         * config/mips/tm-vr4xxxel.h: Delete file.
4911         * config/mips/tm-vr4300.h: Delete file.
4912         * config/mips/tm-vr4100.h: Delete file.
4913         * config/mips/tm-vr4xxx.h: Delete file.
4914         * config/mips/tm-vr5000.h: Delete file.
4915         * config/mips/tm-embedl64.h: Delete file.
4916         * config/mips/tm-embedl.h: Delete file.
4917         * config/mips/tm-embed64.h: Delete file.
4918         * config/mips/tm-bigmips64.h: Delete file.
4919         * config/mips/tm-bigmips.h: Delete file.
4920
4921 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
4922
4923         Fix gdb/1216.
4924         * shnbsd-nat.c: Include "sh-tdep.h".
4925
4926         From Richard Henderson  <rth@redhat.com>:
4927         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4928
4929 2003-05-31  Andrew Cagney  <cagney@redhat.com>
4930
4931         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
4932         forward declaration.
4933         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4934         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4935         (mips_find_saved_regs): Use set_reg_offset.
4936         (mips_frame_init_saved_regs): Delete function.
4937         (mips_pop_frame): Call mips_find_saved_regs instead of
4938         DEPRECATED_FRAME_INIT_SAVED_REGS.
4939
4940 2003-05-31  Andrew Cagney  <cagney@redhat.com>
4941
4942         * mips-tdep.c (mips_gdbarch_init): Do not set
4943         deprecated_max_register_raw_size, register_virtual_size, and
4944         deprecated_max_register_virtual_size.
4945
4946 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
4947
4948         * i386-tdep.c: Include "dwarf2-frame.h".
4949         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4950         * Makefile.in (i386-tdep.o): Update dependencies.
4951
4952         * dwarf2-frame.c, dwarf2-frame.h: New files.
4953         * Makefile.in (SFILES): Add dwarf2-frame.c.
4954         (dwarf2_frame_h): Define.
4955         (COMMON_OBS): Add dwarf2-frame.o.
4956         (dwarf2-frame.o): Add dependencies.
4957
4958 2003-05-31  Andreas Jaeger  <aj@suse.de>
4959
4960         * x86-64-linux-nat.c: Fix comment.
4961
4962 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
4963
4964         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4965         function signature.
4966
4967         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4968         have a sigcontext_addr handler.
4969         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4970         sigcontext_addr handler.
4971
4972 2003-05-31  Andrew Cagney  <cagney@redhat.com>
4973
4974         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4975         (print_fp_register_row): Replace do_fp_register_row.
4976         (mips_print_fp_register): Add "file" and "frame" parameters.
4977         (mips_print_register): Add "file" and "frame" parameters.
4978         (mips_print_registers_info): Replace mips_do_registers_info.
4979         (mips_gdbarch_init): Set print_registers_info instead of
4980         deprecated_do_registers_info.
4981         (mips_read_fp_register_single): Add "frame" parameter.
4982         (mips_read_fp_register_double): Add "frame" parameter.
4983
4984 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
4985
4986         * i386-tdep.c (i386_register_name): Check for MMX registers first.
4987         Fixes a bug where GDB would print the wrong register names for
4988         targets without SSE.
4989
4990         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4991         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4992         registers.
4993
4994         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4995         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4996         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4997         TDEP->sc_sp_offset.
4998
4999         From Michal Ludvig  <mludvig@suse.cz>:
5000         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5001         and `sc_num_regs'.
5002         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5003         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5004         I386_ST0_REGNUM): Move here from...
5005         * i386-tdep.c: ... here.
5006         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5007         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5008         registers if possible.
5009         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5010         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5011         Remove variables.
5012         (i386bsd_sc_reg_offset): New variable.
5013         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5014         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5015         TDEP->sc_sp_offset.
5016         (i386fbsd_sc_reg_offset): New variable.
5017         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5018         TDEP->sc_num_regs.
5019         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5020         variables.
5021         (i386fbsd4_sc_reg_offset): New variable.
5022         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5023         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5024         TDEP->sc_sp_offset.
5025         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5026         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5027         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5028         Remove variables.
5029         (i386nbsd_sc_reg_offset): New variable.
5030         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5031         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5032         TDEP->sc_sp_offset.
5033         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5034         Remove variables.
5035         (i386obsd_sc_reg_offset): New variable.
5036         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5037         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5038         TDEP->sc_sp_offset.
5039         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5040         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
5041         for frame pointer offset in `struct sigcontext'.
5042
5043 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5044
5045         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5046         architecture methods call_dummy_words, sizeof_call_dummy_words,
5047         push_return_address, store_struct_return, and fix_call_dummy.  Set
5048         push_dummy_call instead of deprecated_push_arguments.
5049         (mips_store_struct_return): Delete function.
5050         (mips_fix_call_dummy): Delete function.
5051         (mips_push_return_address): Delete function.
5052         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5053         RA_REGNUM and T9_REGNUM.
5054         (mips_n32n64_push_dummy_call): Ditto for
5055         mips_n32n64_push_arguments.
5056         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5057         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5058
5059 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5060
5061         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
5062         "dummy_addr" to "bp_addr".
5063         * infcall.c (call_function_by_hand): Pass "funaddr" to
5064         gdbarch_push_dummy_call.
5065         * gdbarch.h, gdbarch.c: Re-generate.
5066         * i386-tdep.c (i386_push_dummy_call): Update.
5067         * arm-tdep.c (arm_push_dummy_call): Update.
5068         * d10v-tdep.c (d10v_push_dummy_call): Update.
5069
5070 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5071
5072         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5073         variable declarations.
5074         (x86_64_register_number, x86_64_register_name): Remove prototypes.
5075         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5076         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5077         x86_64_init_frame_pc, x86_64_init_frame_pc,
5078         x86_64_function_has_prologue): Remove prototypes.
5079         (X86_64_NUM_GREGS): New define.
5080         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5081         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
5082         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5083         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5084         XMM1_REGNUM): Remove defines.
5085         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5086         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5087         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5088         X86_64_XMM1_REGNUM): New defines.
5089         (struct x86_64_register_info): Renamed from `struct
5090         register_info'.  Remove `size' member.
5091         (x86_64_register_info_table): Remove variable.
5092         (x86_64_register_info): New variable.
5093         (X86_64_NUM_REGS): New define.
5094         (X86_64_NUM_GREGS): Remove define.
5095         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5096         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5097         Remove variables.
5098         (x86_54_dwarf2_reg_to_regnum): Remove function.
5099         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5100         (x86_64_dwarf_reg_to_regnum): New function.
5101         (x86_64_register_name): Rewrite.
5102         (x86_64_register_raw_size): Remove function.
5103         (x86_64_register_byte_table): Remove variable.
5104         (x86_64_register_byte): Remove function.
5105         (x86_64_register_virtual_type): Remove function.
5106         (x86_64_register_type): New function.
5107         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5108         x86_64_register_convert_to_raw): Remove functions.
5109         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5110         (x86_64_use_struct_convention): Make static.  Adjust for renamed
5111         defines.
5112         (x86_64_frame_init_saved_regs): Remove function.
5113         (x86_64_push_arguments): Make static.  Change to accept a regcache
5114         as argument.
5115         (x86_64_store_return_value, x86_64_extract_return_value): Make
5116         static.  Rewrite based on i386 counterparts.
5117         (x86_64_push_dummy_call): New function.
5118         (X86_64_NUM_SAVED_REGS): New define.
5119         (x86_64_register_number): Remove function.
5120         (x86_64_store_struct_return): Remove function.
5121         (x86_64_frameless_function_invocation,
5122         x86_64_function_has_prologue): Remove functions.
5123         (PROLOG_BUFSIZE): Remove define.
5124         (struct x86_64_frame_cache): New structure.
5125         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5126         x86_64_frame_cache, x86_64_frame_this_id,
5127         x86_64_frame_prev_register, x86_64_frame_p,
5128         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5129         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5130         functions.
5131         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5132         variables.
5133         (x86_64_skip_prologue): Rewrite in terms of
5134         x86_64_analyze_prologue.
5135         (x86_64_frame_base_address): New function.
5136         (x86_64_frame_base): New variable.
5137         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5138         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
5139         set deprecated_fp_regnum, deprecated_register_size,
5140         deprecated_register_bytes, register_raw_size, register_byte,
5141         register_virtual_type, register_convertiable,
5142         register_convert_to_virtual, convert_to_raw,
5143         deprecated_get_saved_register, deprecated_target_read_fp,
5144         deprecated_push_arguments, deprecated_push_return_address,
5145         deprecated_pop_frame, deprecated_store_struct_return,
5146         deprecated_frame_init_saved_regs, deprecated_frame_chain,
5147         frameless_function_invocation, deprecated_frame_saved_pc,
5148         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5149         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5150         deprecated_init_frame_pc and virtual_frame_pointer.  Call
5151         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5152         and x86_64_frame_p.  Call frame_base_set_default to register
5153         x86_64_frame_base.
5154         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5155         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5156         (_initialize_x86_64_tdep): Remove function.
5157         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5158         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5159         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5160         define.
5161         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5162         (x86_64_linux_sigcontext_addr): Rewrite.
5163         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5164         x86_64_linux_frame_saved_pc): Remove functions.
5165         (x86_64_linux_pc_in_sigtramp): Renamed from
5166         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
5167         trampoline.
5168         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5169         Remove_functions.
5170         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
5171         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5172         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5173         (x86_64_regmap): Rename to regmap.
5174         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5175         x86_64_num_gregs.
5176         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
5177         x86_64_regmap.
5178         (x86_64_fxsave_offset): Remove function.
5179         (supply_fpregset): Simply call x86_64_supply_fxsave.
5180         (fill_fpregset): Simply call x86_64_fill_fxsave.
5181         (fetch_inferior_registers, store_inferior_registers): Avoid
5182         asignment in if-statement.
5183         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5184         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5185         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5186         (fetch_core_registers): Remove function.
5187         (linux_elf_core_fns): Remove.
5188         (offsetoff): Don't define.
5189         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5190         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5191         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5192         add core-regset.o.
5193         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5194         protection against multiple includes instead of NM_X86_64_h.  Add
5195         various comments.  Include "config/nm-linux.h".  Don't include
5196         <signal.h>.
5197         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5198         GET_THREAD_SIGNALS): Remove defines.
5199         (x86_64_register_u_addr, kernel_u_size,
5200         lin_thread_get_thread_signals): Remove prototypes.
5201         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5202         [HAVE_LINK_H]: Don't include "solib.h".
5203         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5204         * config/i386/tm-x86-64linux.h: Fix comments.
5205         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5206         x86-64-tdep.o): Update dependencies.
5207
5208 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5209
5210         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5211         Change parameter type to a "struct regcache *".
5212
5213         * gdbarch.sh: Regardless of the multi-arch level, always define
5214         the macro when not already defined.
5215         * gdbarch.h, gdbarch.c: Re-generate.
5216
5217 2003-05-30  Richard Henderson  <rth@redhat.com>
5218
5219         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5220         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5221         (alpha_mdebug_frame_this_id): Likewise.
5222         (alpha_mdebug_frame_prev_register): Likewise.
5223         (alpha_mdebug_frame_base_address): Likewise.
5224         (alpha_mdebug_frame_locals_address): Likewise.
5225         (alpha_mdebug_frame_args_address): Likewise.
5226         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5227         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5228         (alpha_heuristic_frame_unwind_cache): Make static; add missing
5229         loop increment.
5230         (alpha_heuristic_frame_this_id): Make static.
5231         (alpha_heuristic_frame_prev_register): Likewise.
5232         (alpha_heuristic_frame_base_address): Likewise.
5233         * alpha-tdep.h: Update.
5234
5235 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
5236
5237         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5238         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5239         defenitions.
5240         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5241         * i386-tdep.c: Mark functions that are 64-bit safe as such.
5242         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5243         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5244         I386_ST0_REGNUM): New defines.
5245         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5246         codestream_get): Remove define.
5247         (codestream_next_addr, condestream_addr, condestream_buf,
5248         codestream_off, codestream_cnt): Remove variables.
5249         (codestream_fill, codestream_seek, codestream_read): Remove
5250         functions.
5251         (i386_follow_jump): Rewrite to avoid usage of removed codestream
5252         functionality.
5253         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5254         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5255         i386_frame_saved_pc, i386_saved_pc_after_call,
5256         i386_frame_num_args, i386_frame_init_saved_regs,
5257         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5258         i386_push_arguments): Remove functions.
5259         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5260         functionality.  Use i386_analyze_prologue instead of
5261         i386_get_frame_setup.
5262         (I386_NUM_SAVED_REGS): New define.
5263         (struct i386_frame_cache): New structure.
5264         (i386_alloc_frame_cache, i386_analyze_struct_return,
5265         i386_skip_probe, i386_analyze_frame_setup,
5266         i386_analyze_register_saves, i386_analyze_prologue,
5267         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5268         i386_frame_prev_register, i386_sigtramp_frame_cache,
5269         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5270         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5271         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5272         New functions.
5273         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5274         New variables.
5275         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5276         I386_EAX_REGNUM and I386_EDX_REGNUM.
5277         (i386_extract_return_value, i386_store_return_value): Use
5278         I386_ST0_REGNUM where appropriate.
5279         (i386_extract_struct_value_address): Rewrite to use extract_address.
5280         (i386_svr4_pc_in_sigtramp): Add comment.
5281         (i386_svr4_sigcontext_addr): Rewrite.
5282         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5283         TDEP->sc_sp_offset.
5284         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
5285         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5286         of new defines.  Set push_dummy_call, don't set
5287         deprecated_push_arguments, deprecated_push_return_address,
5288         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
5289         deprecated_frame_chain, deprecated_frame_saved_pc,
5290         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
5291         save_dummy_frame_tos, unwind_pc.  Call
5292         frame_unwind_append_predicate and frame_base_set_default.  Don't
5293         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
5294         Don't set frameless_function_invocation.  Don't set
5295         deprecated_register_bytes, deprecated_register_size,
5296         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5297         * i386-linux-tdep.c: Fix formatting in some comments.
5298         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5299         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5300         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5301         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5302         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5303         redundant parentheses.
5304         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5305         (i386_linux_sigcontext_addr): Use it.  Rewrite.
5306         (find_minsym_and_objfile): Change name of second argument.
5307         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
5308         changed.  Use frame_pc_unwind instead of
5309         DEPRECATED_SAVED_PC_AFTER_CALL.
5310         (i386_linux_init_abi): Don't set deprecated_register_bytes.
5311         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5312         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5313         unwinder.
5314         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5315         "dummy-frame.h".
5316         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5317         (_initialize_i386_cygwin_tdep): New prototype.
5318         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5319         deprecated_frame_chain_valid.
5320         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5321         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5322         Rely on the SVR4 defaults.
5323         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5324         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5325
5326 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5327
5328         * infcall.c (call_function_by_hand): Always call
5329         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5330
5331 2003-05-30  Richard Henderson  <rth@redhat.com>
5332
5333         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5334         increment.
5335
5336 2003-05-29  Jim Blandy  <jimb@redhat.com>
5337
5338         Use gdbarch methods for solib stuff on PowerPC Linux.
5339         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5340         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5341         show through.
5342         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5343         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5344         giving the same effect as the #definitions above.
5345
5346 2003-05-29  Adam Fedor  <fedor@gnu.org>
5347
5348         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5349         (find_implementation_from_class): Replace it with the standard
5350         case i.e. do nothing.
5351
5352 2003-05-29  Richard Henderson  <rth@redhat.com>
5353
5354         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5355         (alpha_linux_sigtramp_offset): Use it.  Make static.
5356         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5357         update for new frame model.
5358         * alpha-mdebug-tdep.c: New file.
5359         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5360         (alpha_osf1_init_abi): Install it.
5361         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5362         (linked_proc_desc_table): Remove.
5363         (alpha_frame_past_sigtramp_frame): Remove.
5364         (alpha_dynamic_sigtramp_offset): Remove.
5365         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5366         (alpha_proc_desc_is_dyn_sigtramp): Remove.
5367         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5368         (push_sigtramp_desc): Remove.
5369         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5370         (alpha_cannot_store_register): Likewise.
5371         (alpha_sigcontext_addr): Remove.
5372         (alpha_find_saved_regs): Remove.
5373         (alpha_frame_init_saved_regs): Remove.
5374         (alpha_init_frame_pc_first): Remove.
5375         (read_next_frame_reg): Remove.
5376         (alpha_frame_saved_pc): Remove.
5377         (alpha_saved_pc_after_call): Remove.
5378         (temp_proc_desc, temp_saved_regs): Remove.
5379         (alpha_about_to_return): Remove.
5380         (cached_proc_desc): Remove.
5381         (alpha_frame_chain): Remove.
5382         (alpha_print_extra_frame_info): Remove.
5383         (alpha_init_extra_frame_info): Remove.
5384         (alpha_frame_locals_address): Remove.
5385         (alpha_frame_args_address): Remove.
5386         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5387         (alpha_push_dummy_frame): Remove.
5388         (alpha_pop_frame): Remove.
5389         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5390         (alpha_read_insn): New.
5391         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5392         for different insn encodings.
5393         (alpha_in_lenient_prologue): Remove.
5394         (struct alpha_sigtramp_unwind_cache): New.
5395         (alpha_sigtramp_frame_unwind_cache): New.
5396         (alpha_sigtramp_register_address): New.
5397         (alpha_sigtramp_frame_this_id): New.
5398         (alpha_sigtramp_frame_prev_register): New.
5399         (alpha_sigtramp_frame_unwind): New.
5400         (alpha_sigtramp_frame_p): New.
5401         (struct alpha_heuristic_unwind_cache): New.
5402         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5403         don't count nop insns that occur between functions.
5404         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5405         heuristic_proc_desc, but without the mdebug wrapping.
5406         (alpha_heuristic_frame_this_id): New.
5407         (alpha_heuristic_frame_prev_register): New.
5408         (alpha_heuristic_frame_unwind): New.
5409         (alpha_heuristic_frame_p): New.
5410         (alpha_heuristic_frame_base_address): New.
5411         (alpha_heuristic_frame_base): New.
5412         (alpha_unwind_dummy_id): New.
5413         (alpha_unwind_pc): New.
5414         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
5415         frame related deprecated initializations; install replacements.
5416         (alpha_dump_tdep): Remove.
5417         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5418         (alpha_read_insn, alpha_after_prologue,
5419         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5420         alpha_heuristic_frame_prev_register,
5421         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5422         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5423         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5424         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5425
5426 2003-05-29  Andrew Cagney  <cagney@redhat.com>
5427
5428         * gdb_assert.h (gdb_assert_fail): Provide different definitions
5429         dependant on the availability of ASSERT_FUNCTION.
5430         (ASSERT_FUNCTION): Do not define when there is no function name.
5431
5432 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
5433
5434         From Jimi X <jimix@watson.ibm.com>:
5435         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5436
5437 2003-05-28  Jim Blandy  <jimb@redhat.com>
5438
5439         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5440         argument to ptrace to int; the system headers should give it the
5441         right type, and pointers don't fit in ints on powerpc64-*-*.
5442
5443 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
5444
5445         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5446         DW_TAG_catch_block.
5447
5448 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5449
5450         * stabsread.c (dbx_lookup_type): Make static.
5451         (read_type): Ditto.
5452         (add_undefined_type): Ditto.
5453         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5454         not export.
5455
5456 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5457
5458         * hpread.c (hpread_has_name): Make static.
5459         (hpread_psymtab_to_symtab): Ditto.
5460         (file_exists): Ditto.
5461         (hpread_call_pxdb): Ditto.
5462         (hpread_pxdb_needed): Ditto.
5463         (hpread_quick_traverse): Ditto.
5464         (hpread_get_header): Ditto.
5465         (hpread_get_lntt): Ditto.
5466         (hpread_get_slt): Ditto.
5467         (class_of): Ditto.
5468
5469 2003-05-25  Andreas Schwab  <schwab@suse.de>
5470
5471         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5472         stack_align and deprecated_extra_stack_alignment_needed.
5473         (m68k_stack_align): Delete.
5474
5475         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5476         (m68k_register_virtual_size): Likewise.
5477         (altos_skip_prologue): Remove obsolete function.
5478         (isi_frame_num_args): Likewise.
5479         (news_frame_num_args): Likewise.
5480         (m68k_fix_call_dummy): Make static.
5481         (m68k_push_dummy_frame): Likewise.
5482         (m68k_pop_frame): Likewise.
5483         (m68k_skip_prologue): Likewise.
5484         (m68k_frame_init_saved_regs): Likewise.
5485         (m68k_saved_pc_after_call): Likewise.
5486         (m68k_get_longjmp_target): Make multi-arch.
5487         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5488         structure.  Register m68k_get_longjmp_target if enabled.
5489         * m68k-tdep.h (struct gdbarch_tdep): Define.
5490         * config/m68k/tm-m68k.h: Don't include "regcache.h".
5491
5492         * Makefile.in (config.status): Also depend on configure.tgt
5493         and configure.host.
5494         (m68klinux-tdep.o): Update dependencies.
5495         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5496         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5497         (M68K_LINUX_JB_PC): Define.
5498         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5499         and take additional parameter.
5500         (m68k_linux_sigtramp_saved_pc): Update.
5501         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
5502         m68k_linux_pc_in_sigtramp, in_plt_section,
5503         find_solib_trampoline_target.
5504         * config/m68k/tm-linux.h: Don't include any tm headers.
5505         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5506         (JB_ELEMENT_SIZE): Likewise.
5507         (JB_PC): Likewise.
5508         (GET_LONGJMP_TARGET): Likewise.
5509         (IN_SIGTRAMP): Likewise.
5510         (SVR4_SHARED_LIBS): Define this and include "solib.h".
5511
5512 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5513
5514         * sparc-tdep.c (sparc32_do_push_arguments): New function.
5515         (sparc32_push_arguments): Re-implement by calling
5516         sparc32_do_push_arguments.
5517
5518 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5519
5520         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5521         SPARC_O1_REGNUM): New defines.
5522         (sparc32_extract_return_value): Rewrite to operate on a regcache.
5523         (sparc32_store_return_value): New function.
5524         (sparc_extract_struct_value_address): Rewrite to operate on a
5525         regcache.
5526         (sparc_gdbarch_init): Don't set
5527         deprecated_extract_struct_value_address.  Set
5528         extract_struct_value_address instead. Don't set
5529         deprecated_extract_return_value and deprecated_store_return_value
5530         for 32-bit targets.  Set extract_return_value and
5531         store_return_value instead.
5532         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5533         DEPRECTAED_EXTRACT_RETURN_VALUE,
5534         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5535         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5536         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5537         (sparc_store_return_value): Remove prototype.
5538         (sparc32_store_return_value): New prototype.
5539         (sparc32_extract_return_value, sparc_extract_struct_value_address):
5540         Adjust prototypes.
5541
5542 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
5543
5544         * sparcnbsd-tdep.c: Include "gdb_string.h".
5545
5546 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5547
5548         * p-valprint.c (pascal_val_print): Replace extract_address with
5549         the inline equivalent extract_unsigned_integer.
5550         * jv-valprint.c (java_value_print): Ditto.
5551         * ada-valprint.c (ada_val_print_1): Ditto.
5552         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5553
5554 2003-05-23  Theodore A. Roth  <troth@openavr.org>
5555
5556         * blockframe.c (frameless_look_for_prologue): Remove unused
5557         after_prologue variable.
5558
5559 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
5560
5561         * blockframe.c (get_pc_function_start): Rewrite to avoid
5562         asignments in if-statements.
5563
5564 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
5565
5566         Committed by Elena Zannoni  <ezannoni@redhat.com>.
5567         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5568         files, don't relocate absolute symbols (and do use mst_abs).
5569
5570 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5571
5572         * objc-lang.c: Include "gdb_assert.h".
5573         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5574         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5575         (gdb_check, gdb_check_fatal): Delete functions.
5576         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5577         gdb_assert.
5578         (parse_selector, parse_method, find_methods, find_imps): Ditto.
5579         * Makefile.in (objc-lang.o): Update dependencies.
5580
5581 2003-05-22  Ian Lance Taylor  <ian@airs.com>
5582
5583         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5584         with fprintf_filtered, not fprintf_unfiltered.
5585
5586 2003-05-22  Andrew Cagney  <cagney@redhat.com>
5587
5588         * stack.c (frame_info): Inline extract_address, replacing it with
5589         extract_unsigned_integer.
5590         * findvar.c (unsigned_pointer_to_address): Ditto.
5591         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5592         * dwarf2expr.c (dwarf2_read_address): Ditto.
5593         * frame.c (frame_pc_unwind): Update comment.
5594         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5595
5596 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
5597
5598         * infptrace.c (detach): Call print_sys_errmsg rather than
5599         perror_with_name to issue warning message when errno is non-zero
5600         after calling ptrace detach.
5601
5602 2003-05-21  J. Brobecker  <brobecker@gnat.com>
5603
5604         * config/pa/tm-hppa.h: Delete some unused macros. Move some
5605         macro definitions from here...
5606         * hppa-tdep.c: ...to there.
5607
5608 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
5609
5610         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5611         register_ptrace_addr().  Fix all callers.
5612
5613 2003-05-21  Andreas Schwab  <schwab@suse.de>
5614
5615         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5616         dependencies.
5617         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5618         end.
5619         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5620         (_initialize_m68k_linux_tdep): New function.
5621         (m68k_linux_frame_saved_pc): Make static.
5622         (m68k_linux_extract_return_value): Likewise.
5623         (m68k_linux_store_return_value): Likewise.
5624         (m68k_linux_extract_struct_value_address): Likewise.
5625         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5626         Remove.
5627         (DEPRECATED_STORE_RETURN_VALUE): Remove.
5628         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5629         (DEPRECATED_FRAME_SAVED_PC): Remove.
5630
5631 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
5632
5633         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5634         regset numbering rather than our own.
5635
5636 2003-05-19  David Carlton  <carlton@bactrian.org>
5637
5638         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5639
5640 2003-05-19  David Carlton  <carlton@bactrian.org>
5641
5642         Partial fix for PR c++/827.
5643         * cp-support.h: Include symtab.h.
5644         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5645         * cp-namespace.c: Update contributors.
5646         (cp_lookup_symbol_nonlocal): New.
5647         (lookup_namespace_scope, cp_lookup_symbol_namespace)
5648         (lookup_symbol_file): Ditto.
5649         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5650         * block.h: Declare block_scope, block_using, block_global_block.
5651         * block.c (block_scope): New.
5652         (block_using, block_global_block): Ditto.
5653         * Makefile.in (cp_support_h): Depend on symtab_h.
5654         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5655
5656 2003-05-19  David Carlton  <carlton@bactrian.org>
5657
5658         * language.h (struct language_defn): Add 'la_value_of_this'
5659         and 'la_lookup_symbol_nonlocal' members.
5660         * symtab.h: Declare basic_lookup_symbol_nonlocal,
5661         lookup_symbol_static, lookup_symbol_global,
5662         lookup_symbol_aux_block.
5663         * symtab.c (lookup_symbol_aux): Call language hooks to determine
5664         if we should search fields of this and how to do static/global
5665         lookup.
5666         (lookup_symbol_aux_block): Make extern.
5667         (basic_lookup_symbol_nonlocal): New.
5668         (lookup_symbol_static, lookup_symbol_global): Ditto.
5669         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5670         'la_lookup_symbol_nonlocal' members.
5671         * c-lang.c (c_language_defn, cplus_language_defn)
5672         (asm_language_defn, minimal_language_defn): Ditto.
5673         * jv-lang.c (java_language_defn): Ditto.
5674         * language.c (unknown_language_defn, auto_language_defn)
5675         (local_language_defn): Ditto.
5676         * m2-lang.c (m2_language_defn): Ditto.
5677         * objc-lang.c (objc_language_defn): Ditto.
5678         * scm-lang.c (scm_language_defn): Ditto.
5679         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5680         * p-lang.c (pascal_language_defn): Ditto for both.
5681         * Makefile.in (f-lang.o): Depend on value_h.
5682         (p-lang.o): Ditto.
5683
5684 2003-05-19  David Carlton  <carlton@bactrian.org>
5685
5686         * block.h: Declare block_static_block.
5687         * block.c (block_static_block): New.
5688         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5689         lookup_symbol_aux_local, calling block_static_block instead.
5690         (lookup_symbol_aux_local): Delete 'static_block' argument.
5691
5692 2003-05-19  David Carlton  <carlton@bactrian.org>
5693
5694         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5695
5696 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
5697
5698         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5699         register numbers mapping.
5700
5701 2003-05-18  Adam Fedor  <fedor@gnu.org>
5702
5703         * symtab.c (completion_list_objc_symbol): New function.
5704         (make_symbol_completion_list): Use it to add ObjC symbols
5705         when looking though the list.
5706         (language_search_unquoted_string): New function.
5707         (make_file_symbol_completion_list): Use it.
5708
5709 2003-05-18  Andreas Schwab  <schwab@suse.de>
5710
5711         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5712         dependencies.
5713         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5714         as m68k_linux_extract_return_value.
5715         (DEPRECATED_STORE_RETURN_VALUE): Define as
5716         m68k_linux_store_return_value.
5717         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5718         m68k_linux_extract_struct_value_address.
5719         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5720         get_next_frame, get_frame_base, get_frame_pc.
5721         (m68k_linux_frame_saved_pc): Use get_frame_base.
5722         (m68k_linux_extract_return_value): New function.
5723         (m68k_linux_store_return_value): New function.
5724         (m68k_linux_extract_struct_value_address): New function.
5725         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5726
5727         * c-exp.y (typebase): Remove duplicate occurence of
5728         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
5729         of lookup_signed_typename.
5730
5731 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
5732
5733         * dwarf2loc.c (find_location_expression): Change type of second
5734         argument to `size_t *'.
5735         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5736         for size variable.
5737
5738 2003-05-18  David Carlton  <carlton@bactrian.org>
5739
5740         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5741         'linkage_name'.  Add comment.
5742         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5743         'linkage_name'.
5744         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5745         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5746         (lookup_block_symbol): Ditto.
5747
5748 2003-05-16  Andrew Cagney  <cagney@redhat.com>
5749
5750         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5751         * gdbarch.h, gdbarch.c: Re-generate.
5752         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5753         * TODO (REGISTER_BYTES): Delete reference.
5754         * alpha-tdep.c (alpha_gdbarch_init): Update.
5755         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5756         * x86-64-tdep.c (x86_64_init_abi): Update.
5757         * vax-tdep.c (vax_gdbarch_init): Update.
5758         * v850-tdep.c (v850_gdbarch_init): Update.
5759         * sparc-tdep.c (sparc_gdbarch_init): Update.
5760         * sh-tdep.c (sh_gdbarch_init): Update.
5761         * s390-tdep.c (s390_gdbarch_init): Update.
5762         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5763         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5764         (ns32k_gdbarch_init_32382): Update.
5765         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5766         * mcore-tdep.c (mcore_gdbarch_init): Update.
5767         * m68k-tdep.c (m68k_gdbarch_init): Update.
5768         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5769         * ia64-tdep.c (ia64_gdbarch_init): Update.
5770         * i386-tdep.c (i386_gdbarch_init): Update.
5771         * i386-linux-tdep.c (i386_linux_init_abi): Update.
5772         * hppa-tdep.c (hppa_gdbarch_init): Update.
5773         * h8300-tdep.c (h8300_gdbarch_init): Update.
5774         * frv-tdep.c (frv_gdbarch_init): Update.
5775         * cris-tdep.c (cris_gdbarch_init): Update.
5776         * avr-tdep.c (avr_gdbarch_init): Update.
5777         * arm-tdep.c (arm_gdbarch_init): Update.
5778         * sparc-tdep.c (sparc_pop_frame): Update.
5779         * rs6000-tdep.c (rs6000_pop_frame): Update.
5780         * remote.c (init_remote_state): Update.
5781         (remote_prepare_to_store): Update.
5782         * remote-vx.c (vx_prepare_to_store): Update.
5783         * remote-sds.c (sds_fetch_registers): Update.
5784         (sds_prepare_to_store): Update.
5785         * remote-array.c: Update.
5786         * regcache.c (init_legacy_regcache_descr): Update.
5787         (init_regcache_descr): Update.
5788         * mips-tdep.c (mips_eabi_extract_return_value): Update.
5789         (mips_o64_extract_return_value): Update.
5790         * irix5-nat.c (fetch_core_registers): Update.
5791         * irix4-nat.c (fetch_core_registers): Update.
5792         * i386-tdep.h: Update.
5793         * hppa-tdep.c (pa_do_registers_info): Update.
5794         (pa_do_strcat_registers_info): Update.
5795         * cris-tdep.c (cris_register_bytes_ok): Update.
5796         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5797         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5798         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5799         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5800         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5801         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5802         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5803         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5804         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5805         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5806         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5807         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5808         (REGISTER_BYTES_OK): Update.
5809         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5810         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5811
5812 2003-05-16  Ian Lance Taylor  <ian@airs.com>
5813
5814         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5815         (vax_print_insn, print_insn_arg): Remove static functions.
5816         (vax_gdbarch_init): Call set_gdbarch_print_insn with
5817         print_insn_vax from opcodes library.
5818         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5819
5820 2003-05-15  Andrew Cagney  <cagney@redhat.com>
5821
5822         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5823         * target.h (memory_breakpoint_from_pc): Delete declaration.
5824         * mem-break.c (memory_breakpoint_from_pc): Delete function.
5825         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5826         * monitor.c (monitor_insert_breakpoint): Use
5827         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5828         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5829         * gdbarch.h, gdbarch.c: Re-generate.
5830         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5831         (sparc_gdbarch_init): Set breakpoint_from_pc to
5832         sparc_breakpoint_from_pc.
5833         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5834         (BREAKPOINT_FROM_PC): Define.
5835         (sparc_breakpoint_from_pc): Declare.
5836         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5837         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5838         (BREAKPOINT_FROM_PC): Define.
5839         (BREAKPOINT): Delete macro.
5840         * target.h: Update comment.
5841         * s390-tdep.c (s390_gdbarch_init): Update comments.
5842         * remote.c: Update comments.
5843         * remote-mips.c: Update comments.
5844         * proc-api.c (write_with_trace): Do not check for a breakpoint.
5845         * mem-break.c: Update comment.
5846         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5847         (ia64_memory_insert_breakpoint): Update.
5848         * config/sparc/tm-sparc.h: Update comment.
5849         * config/pa/tm-hppa64.h: Update comment.
5850         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5851         (rs6000_breakpoint_from_pc): Update.
5852         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5853         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5854         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5855         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5856         (mips_breakpoint_from_pc): Update.
5857         (mips_dump_tdep): Update.
5858
5859         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5860         * minsyms.c (lookup_minimal_symbol): Inline
5861         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
5862
5863         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5864         * p-valprint.c (pascal_object_print_value_fields): Ditto.
5865         * p-lang.c (pascal_printstr): Ditto.
5866         * objc-lang.c (objc_printstr): Ditto.
5867         * m2-lang.c (m2_printstr): Ditto.
5868         * jv-valprint.c (java_print_value_fields): Ditto.
5869         * f-lang.c (f_printstr): Ditto.
5870         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
5871         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5872         for repeat_count_threshold.
5873         * Makefile.in (cp-valprint.o): Update dependencies.
5874
5875 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
5876
5877         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5878         (examine_prologue): Support looking through leaf functions, knowing
5879         they start with mov r2,r12.  Support skipping over indirect stores
5880         of the input registers.  Upon hitting a non-nop branch instruction
5881         or predicated instruction, bail out by setting lim_pc to the current
5882         pc value in the loop.  At the end, if the lim_pc value is still
5883         beyond our calculated value and we have trust_limit set,
5884         use the lim_pc value.
5885
5886 2003-05-15  Andrew Cagney  <cagney@redhat.com>
5887
5888         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5889         generic_find_dummy_frame.
5890         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5891         (deprecated_generic_find_dummy_frame): Update.
5892         (deprecated_read_register_dummy): Update.
5893         * frame.c (deprecated_generic_get_saved_register): Update.
5894
5895 2003-05-15  Theodore A. Roth  <troth@openavr.org>
5896
5897         * avr-tdep.c (avr_breakpoint_from_pc): New function.
5898         (avr_gdbarch_init): Set breakpoint_from_pc method.
5899
5900 2003-05-15  Andrew Cagney  <cagney@redhat.com>
5901
5902         * regcache.c (build_regcache): Set deprecated_register_valid
5903         directly.
5904         (deprecated_grub_regcache_for_register_valid): Delete function.
5905         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5906         declaration.
5907
5908 2003-05-15  David Carlton  <carlton@bactrian.org>
5909
5910         Committed by Elena Zannoni <ezannoni@redhat.com>
5911         * symtab.c (lookup_symbol_aux): Delete calls to
5912         lookup_symbol_aux_minsyms.
5913         (lookup_symbol_aux_minsyms): Comment out function and
5914         prototype. Delete lookup by mangled name.
5915
5916 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
5917
5918         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5919         correctly indicate an empty stack and ``stack_allocated'' to the
5920         indicate the number of elements initially allocated.
5921         (dwarf_expr_grow_stack): Simplify method for computing new
5922         stack size.  Don't loop infinitely if ``stack_len'' is zero.
5923         (execute_stack_op): Move ``ctx->in_reg'' initialization
5924         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5925         be used in conjuction with DW_OP_piece.  Revise error message
5926         accordingly.
5927
5928 2003-05-14  Theodore A. Roth  <troth@openavr.org>
5929
5930         * MAINTAINERS: Update my email address.
5931         * avr-tdep.c: Ditto.
5932
5933 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
5934
5935         * symtab.h (enum domain_enum): Rename from namespace_enum.
5936         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5937         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5938         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5939         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5940         TYPES_NAMESPACE, METHODS_NAMESPACE.
5941         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5942         (struct symbol, struct partial_symbol): Rename field
5943         'namespace_enum namespace' to 'domain_enum domain'.
5944         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5945         Delete old define kludge for namespace.
5946
5947         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5948         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5949         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5950         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5951         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5952         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5953         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5954         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5955         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5956         occurrences of the above.
5957
5958 2003-05-14  Ian Lance Taylor  <ian@airs.com>
5959
5960         * Makefile.in (install-only): Use $(SHELL) when running
5961         mkinstalldirs.
5962
5963 2003-05-13  Ian Lance Taylor  <ian@airs.com>
5964
5965         * MAINTAINERS (write after approval): Add myself.
5966
5967         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5968         second and third arguments.
5969         * ser-tcp.c (_initialize_ser_tcp): Likewise.
5970         * ser-unix.c (_initialize_ser_hardwire): Likewise.
5971
5972 2003-05-13  Andrew Cagney  <cagney@redhat.com>
5973
5974         * defs.h (store_address): Delete declaration.
5975         findvar.c (store_address): Delete function.
5976         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5977         store_unsigned_integer.
5978         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5979         * v850-tdep.c (v850_push_arguments): Ditto.
5980         * sparc-tdep.c (sparc_get_saved_register): Ditto.
5981         * sh-tdep.c (sh64_get_saved_register): Ditto.
5982         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5983         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5984         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5985         (mips_get_saved_register): Ditto.
5986         * ia64-tdep.c (ia64_get_saved_register): Ditto.
5987         (find_func_descr, ia64_push_arguments): Ditto.
5988         * i386-tdep.c (i386_push_arguments): Ditto.
5989         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5990         * frv-tdep.c (frv_push_arguments): Ditto.
5991         * frame.c (legacy_saved_regs_prev_register): Ditto.
5992         (deprecated_generic_get_saved_register): Ditto.
5993         * findvar.c (unsigned_address_to_pointer): Ditto.
5994         * dwarf2read.c (dwarf2_const_value): Ditto.
5995         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5996         * alpha-tdep.c (alpha_push_arguments): Ditto.
5997
5998 2003-05-12  J. Brobecker  <brobecker@gnat.com>
5999
6000         * NEWS: Mention that the hppa-hpux port has been partially
6001         multiarched (32bit ABIT only, so far).
6002
6003 2003-05-11  Andrew Cagney  <cagney@redhat.com>
6004
6005         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6006         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6007         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6008         sim/testsuite/sim/arm/misaligned2.ms, and
6009         sim/testsuite/sim/arm/misaligned3.ms.
6010         * disasm.h (struct ui_file): Add opaque struct declaration.
6011         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6012         * frame.h (struct ui_file): Ditto.
6013
6014 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
6015
6016         * value.h: Pretty print.
6017
6018 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
6019
6020         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6021
6022 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6023
6024         * regcache.h (max_register_size): Delete declaration.
6025         * regcache.c (max_register_size): Delete function.
6026         (struct regcache_descr): Delete field "max_register_size".
6027         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6028         registers fit in MAX_REGISTER_SIZE.
6029         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6030         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6031         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6032         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6033         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6034         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6035         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6036         * dve3900-rom.c, hppa-tdep.c: Ditto.
6037
6038 2003-05-08  David Carlton  <carlton@math.stanford.edu>
6039
6040         * valops.c (push_word): Fix typo.
6041
6042 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6043
6044         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6045         * gdbarch.h: Re-generate.
6046         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6047         (legacy_max_register_raw_size): Delete declaration.
6048         * regcache.c (legacy_max_register_raw_size): Delete function.
6049         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6050         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6051         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6052         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6053         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6054         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6055         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6056         * findvar.c, dwarf2cfi.c: Ditto.
6057
6058 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6059
6060         * mips-tdep.c (read_signed_register): New function, moved to here
6061         from "regcache.c".
6062         (read_signed_register_pid): Ditto.
6063         * regcache.c (read_signed_register_pid): Delete function, moved to
6064         "mips-tdep.c".
6065         (read_signed_register): Ditto.
6066         * regcache.h (read_signed_register): Delete declaration.
6067         (read_signed_register_pid): Delete declaration.
6068
6069 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6070
6071         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6072         * gdbarch.h: Re-generate.
6073         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6074         (legacy_max_register_virtual_size): Delete declaration.
6075         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6076         * d10v-tdep.c (d10v_print_registers_info): Ditto.
6077         * tracepoint.c (memrange_sortmerge): Ditto.
6078         * sparc-tdep.c (sparc_print_registers): Ditto.
6079         * regcache.c (legacy_max_register_virtual_size): Delete function.
6080
6081 2002-05-08  J. Brobecker  <brobecker@gnat.com>
6082
6083         * fork-child.c (escape_bang_in_quoted_argument): New function.
6084         (fork_inferior): Escape '!' characters in quoted arguments
6085         only when needed.
6086
6087 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6088
6089         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6090         the language of the CU is not currently supported by GDB.
6091
6092 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6093
6094         * defs.h (language): Add language_minimal enum value.
6095         * c-lang.c (minimal_language_defn): New language definition.
6096         (_initialize_c_language): Add the new minimal language to the list
6097         of languages known to GDB.
6098
6099 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
6100
6101         * frame.c (get_frame_type): Don't attempt to lazily initialize
6102         frame's unwinder for legacy frames.
6103
6104 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6105
6106         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6107         and "regcache" parameters.
6108         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6109
6110 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6111
6112         * dwarf2read.c (dwarf_decode_lines): Only use output of
6113         check_cu_functions() when calling record_line().  Do not update
6114         the current address.
6115
6116 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6117
6118         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6119         code.
6120
6121 2003-05-07  Jim Blandy  <jimb@redhat.com>
6122
6123         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6124         'maint info symtabs' and 'maint info psymtabs'.
6125         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6126         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6127         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6128         Declarations updated.
6129         * maint.c (maintenance_list_command): Delete.
6130         (_initialize_maint_cmds): Update calls to add_cmd.
6131         * gdbcmd.h (maintenancelistlist): Delete declaration.
6132         * cli/cli-cmds.c (maintenancelistlist): Delete.
6133         (init_cmd_lists): Don't initialize it.
6134         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6135
6136 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6137
6138         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6139         "regcache".
6140         (d10v_print_registers_info): Update.
6141         (d10v_dmap_register, d10v_imap_register): Delete functions.
6142         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6143         and "imap_register".
6144         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6145         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6146         * arch-utils.c (generic_remote_translate_xfer_address): Add
6147         "regcache" and "gdbarch" parameters.
6148         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6149         parameter.  Change class to multi-arch.
6150         * gdbarch.h, gdbarch.c: Re-generate.
6151         * remote.c (remote_xfer_memory): Use
6152         gdbarch_remote_translate_xfer_address.
6153
6154 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6155
6156         * infrun.c (prev_pc): Move declaration ahead of proceed().
6157         (proceed): Refresh prev_pc value before resuming.
6158         (stop_stepping): Remove code to refresh prev_pc.
6159
6160 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6161
6162         * nto-tdep.c: Removed stray comment.
6163
6164 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6165
6166         * i386-nto-tdep.c: Fix old K&R function definitions.
6167         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6168         Also change add_show_from_set() call to add_setshow_cmd().
6169         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6170
6171 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6172
6173         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6174         (fprint_dummy_frames): New function.
6175         (maintenance_print_dummy_frames): New function.
6176         (_initialize_dummy_frame): Add command "maint print dummy-frames".
6177         * frame.c (fprint_frame_id): Make global.
6178         * frame.h (fprint_frame_id): Declare.
6179         * Makefile.in (dummy-frame.o): Update dependencies.
6180
6181 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6182
6183         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6184         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6185         SIZEOF_CALL_DUMMY_WORDS.
6186         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6187         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6188         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6189         CALL_DUMMY_BREAKPOINT_OFFSET.
6190         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6191         CALL_DUMMY_START_OFFSET.
6192         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6193         * gdbarch.h, gdbarch.c: Re-generate.
6194         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6195         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6196         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6197         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6198         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6199         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6200         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6201         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6202         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6203         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6204         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6205         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6206         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6207         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6208         * config/sparc/tm-sparc.h: Update.
6209
6210 2003-05-05  Kris Warkentin <kewarken@qnx.com>
6211
6212         * configure.tgt: Add i[3456]86-*-nto*.
6213         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
6214         * nto-tdep.c: New file. Neutrino target support routines.
6215         * nto-tdep.h: New file. Neutrino target header.
6216         * config/tm-qnxnto.h: New file.
6217         * config/i386/i386nto.mt: New file.
6218         * config/i386/tm-i386nto.h: New file.
6219
6220 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6221
6222         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6223         (load_infrun_state): Ditto.
6224         (struct thread_info): Drop "prev_func_name" field.
6225         * thread.c (load_infrun_state): Update.
6226         (save_infrun_state): Update.
6227         * infrun.c (prev_func_name): Delete variable.
6228         (init_wait_for_inferior): Do not clear prev_func_name.
6229         (stop_stepping, keep_going, context_switch): Do not swap
6230         prev_func_name.
6231         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6232         instead of PC_IN_SIGTRAMP.
6233
6234 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6235
6236         * sentinel-frame.c (sentinel_frame_prev_register): Replace
6237         REGISTER_BYTE with register_offset_hack.
6238         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6239         that REGISTER_BYTE is consistent with the regcache.
6240         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6241         * gdbarch.h, gdbarch.c: Regenerate.
6242
6243 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
6244
6245         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6246         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6247
6248         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6249
6250 2003-05-03  J. Brobecker  <brobecker@gnat.com>
6251
6252         From Thierry Schneider <tpschneider1@yahoo.com>
6253         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6254         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6255         (mi-cmd-symbol.o): Add rule.
6256
6257 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6258
6259         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6260         comments noteing that it replaces the old FIX_CALL_DUMMY code.
6261         * gdbarch.h, gdbarch.c: Re-generate.
6262         * d10v-tdep.c (d10v_push_dummy_code): New function.
6263         (d10v_gdbarch_init): Set push_dummy_code.
6264         * infcall.c (legacy_push_dummy_code): New function.
6265         (generic_push_dummy_code): New function.
6266         (push_dummy_code): New function.
6267         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
6268         instead of dummy_addr, to push_dummy_call.  Move call to
6269         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6270         switch.
6271         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6272
6273 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6274
6275         * disasm.h (print_insn): Declare.
6276         * disasm.c (init_gdb_disassemble_info): New function.
6277         (gdb_disassembly): Call init_gdb_disassemble_info.
6278         (gdb_print_insn): New function.
6279         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6280         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
6281         * mcore-tdep.c: Include "disasm.h"
6282         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6283         * d10v-tdep.c: Include "disasm.h".
6284         (display_trace): Call gdb_print_insn, instead of print_insn.
6285         (print_insn): Delete function.
6286         * printcmd.c: Include "disasm.h".
6287         (print_insn): Delete function.
6288         (print_formatted): Call gdb_print_insn, instead of print_insn.
6289         * Makefile.in (printcmd.o): Update dependencies.
6290         (mcore-tdep.o, d10v-tdep.o): Ditto.
6291
6292 2003-05-02  Andrew Cagney  <cagney@redhat.com>
6293
6294         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6295         PC_REGNUM, re-indent.
6296         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6297         PC_REGNUM isn't set.
6298
6299         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6300         * gdbarch.h, gdbarch.c: Re-generate.
6301         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6302         register_virtual_size, pc_regnum, or register_bytes.
6303         (D10V_PC_REGNUM): Rename _PC_REGNUM.
6304         (d10v_register_type): Use D10V_PC_REGNUM.
6305         (d10v_print_registers_info, d10v_read_pc): Ditto.
6306         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6307         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6308
6309 2003-05-02  David Carlton  <carlton@bactrian.org>
6310
6311         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6312         the name with mstrsave.
6313
6314 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
6315
6316         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6317         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6318         (host_charset_name, target_charset_name): New vars for use by
6319         set/show commands.
6320         (host_charset_enum, target_charset_enum): New enums for set/show
6321         commands.
6322         (set_charset_sfunc, set_host_charset_sfunc,
6323         set_target_charset_sfunc): New functions.
6324         (set_host_charset, set_target_charset): Make static.
6325         (list_charsets, set_host_charset_command,
6326         set_target_charset_command): Delete functions.
6327         (show_charset_command): Rewrite as....
6328         (show_charset): Hook this up with the set/show command mechanism.
6329         (_initialize_charset): Change names of charsets to match the
6330         set/show enums. Use host_charset_name and target_charset_name.
6331         Use set/show mechanism for charset, host-charset, target-charset
6332         commands. Do not make 'show host-charset' and 'show
6333         target-charset' be aliases of 'show charset'.
6334
6335         * charset.h (set_host_charset, set_target_charset): Don't export,
6336         they are not used outside the file.
6337
6338 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6339
6340         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6341         (gdb_disassembly): Make "di" non static, always initialize and
6342         cleanup.  Always use dis_asm_read_memory.
6343         (gdb_dis_asm_read_memory): Delete function.
6344
6345 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6346
6347         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6348         (d10v_gdbarch_init): Set frame_align instead of stack_align.
6349
6350 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6351
6352         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6353         "tm_print_insn_info".
6354         (TARGET_PRINT_INSN_INFO): Delete macro.
6355         (dis_asm_read_memory): Delete function declaration.
6356         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6357         (tm_print_insn_info): Delete variable definition.
6358         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6359         * gdbarch.h, gdbarch.c: Re-generate.
6360         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6361         "deprecated_tm_print_insn_info".
6362         * mcore-tdep.c (mcore_dump_insn): Ditto.
6363         * mips-tdep.c (mips_gdbarch_init): Ditto.
6364         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6365         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6366         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6367         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6368         instead of TARGET_PRINT_INSN_INFO, add comment.
6369         * s390-tdep.c (s390_get_frame_info): Instead of
6370         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6371         (s390_check_function_end, s390_is_sigreturn): Ditto.
6372         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6373         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6374         * disasm.c: Include "gdbcore.h".
6375         (_initialize_disasm): New function, initialize
6376         "deprecated_tm_print_insn_info".
6377         (deprecated_tm_print_insn_info): New variable.
6378         (dis_asm_read_memory): Moved from "corefile.c", made static.
6379         (dis_asm_print_address, dis_asm_memory_error): Ditto.
6380         * Makefile.in (disasm.o): Update dependencies.
6381
6382 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6383
6384         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6385
6386 2003-04-29  Adam Fedor  <fedor@gnu.org>
6387
6388         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6389         * infcall.c (find_function_addr): Make non-static.
6390         * infcall.h (find_function_addr): Declare.
6391         * Makefile.in (eval.o): Update dependencies.
6392
6393 2003-04-28  Adam Fedor  <fedor@gnu.org>
6394
6395         * symtab.c (symbol_find_demangled_name): Check for and demangle
6396         ObjC symbols.
6397         (symbol_init_demangled_name): Init for language_objc as well.
6398
6399 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6400
6401         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6402         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6403         * gdbarch.h, gdbarch.c: Re-generate.
6404         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6405         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6406         * inferior.h (deprecated_read_fp): Rename read_fp.
6407         (generic_target_read_fp): Delete declaration.
6408         * regcache.c (generic_target_read_fp): Delete function.
6409         (deprecated_read_fp): Replace read_fp, use
6410         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6411         * d10v-tdep.c (d10v_read_fp): Delete function.
6412         (d10v_gdbarch_init): Do not set deprecated_read_fp.
6413
6414         * sparc-tdep.c (sparc_gdbarch_init): Do not set
6415         deprecated_target_read_fp to generic_target_read_fp.
6416         * sh-tdep.c (sh_gdbarch_init): Ditto.
6417         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6418         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6419         * frv-tdep.c (frv_gdbarch_init): Ditto.
6420
6421         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6422         deprecated_fp_regnum.
6423         * x86-64-tdep.c (x86_64_init_abi): Ditto.
6424         * vax-tdep.c (vax_gdbarch_init): Ditto.
6425         * v850-tdep.c (v850_gdbarch_init): Ditto.
6426         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6427         * sh-tdep.c (sh_gdbarch_init): Ditto.
6428         * s390-tdep.c (s390_gdbarch_init): Ditto.
6429         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6430         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6431         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6432         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6433         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6434         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6435         * i386-tdep.c (i386_gdbarch_init): Ditto.
6436         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6437         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6438         * frv-tdep.c (frv_gdbarch_init): Ditto.
6439         * cris-tdep.c (cris_gdbarch_init): Ditto.
6440         * avr-tdep.c (avr_gdbarch_init): Ditto.
6441         * arm-tdep.c (arm_gdbarch_init): Ditto.
6442         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6443
6444         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6445         * v850-tdep.c (v850_gdbarch_init): Ditto.
6446         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6447         * sh-tdep.c (sh_gdbarch_init): Ditto.
6448         * s390-tdep.c (s390_gdbarch_init): Ditto.
6449         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6450         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6451         * mips-tdep.c (mips_gdbarch_init): Ditto.
6452         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6453         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6454         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6455         * frv-tdep.c (frv_gdbarch_init): Ditto.
6456         * avr-tdep.c (avr_gdbarch_init): Ditto.
6457         * arm-tdep.c (arm_gdbarch_init): Ditto.
6458
6459         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6460         DEPRECATED_FP_REGNUM.
6461         (vax_push_dummy_frame, vax_pop_frame): Ditto.
6462         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6463         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6464         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6465         (sparc32_register_virtual_type): Ditto.
6466         * sh-tdep.c (sh64_frame_chain): Ditto.
6467         (sh64_get_saved_register, sh64_pop_frame): Ditto.
6468         (sh_nofp_frame_init_saved_regs): Ditto.
6469         (sh64_nofp_frame_init_saved_regs): Ditto.
6470         (sh_fp_frame_init_saved_regs): Ditto.
6471         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6472         * remote-e7000.c (fetch_regs_from_dump): Ditto.
6473         * procfs.c (procfs_fetch_registers): Ditto.
6474         (procfs_store_registers): Ditto.
6475         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6476         (store_inferior_registers, fetch_core_registers): Ditto.
6477         (fetch_kcore_registers, clear_regs): Ditto.
6478         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6479         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6480         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6481         * nlm/i386.c (do_status): Ditto.
6482         * mipsv4-nat.c (supply_gregset): Ditto.
6483         * mips-tdep.c: Ditto for comments.
6484         * mips-nat.c (fetch_inferior_registers): Ditto.
6485         (store_inferior_registers, fetch_core_registers): Ditto.
6486         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6487         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6488         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6489         (i386_do_pop_frame, i386_register_type): Ditto.
6490         * hppa-tdep.c (hppa_frame_chain): Ditto.
6491         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6492         (hppa_pop_frame, hppa_read_fp): Ditto.
6493         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6494         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6495         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6496         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6497         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6498         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6499         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6500         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6501         * blockframe.c: Ditto for comments.
6502         * arch-utils.h: Ditto for comments.
6503         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6504         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6505         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6506         * alpha-tdep.h: Ditto for comments.
6507         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6508         (alpha_cannot_store_register): Ditto.
6509         (alpha_push_dummy_frame): Ditto.
6510         * alpha-nat.c (supply_gregset): Ditto.
6511
6512         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6513         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6514         * config/sparc/tm-sparc.h: Update comment.
6515
6516         * hppa-tdep.c (hppa_init_extra_frame_info): Use
6517         deprecated_read_fp instead of TARGET_READ_FP.
6518         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6519         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6520         * sparc-tdep.c (sparc_init_extra_frame_info): Use
6521         deprecated_read_fp instead of read_fp.
6522         * s390-tdep.c (s390_push_arguments): Ditto.
6523         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6524         * frame.h: Ditto in comments.
6525         * frame.c (legacy_get_prev_frame): Ditto.
6526         * dummy-frame.c (dummy_frame_this_id): Ditto.
6527         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6528
6529 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6530
6531         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6532         * gdbarch.h, gdbarch.c: Re-generate.
6533         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6534         * vax-tdep.c (_initialize_vax_tdep): Update.
6535         * v850-tdep.c (_initialize_v850_tdep): Update.
6536         * sparc-tdep.c (_initialize_sparc_tdep): Update.
6537         * s390-tdep.c (_initialize_s390_tdep): Update.
6538         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6539         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6540         * mips-tdep.c (_initialize_mips_tdep): Update.
6541         * mcore-tdep.c (_initialize_mcore_tdep): Update.
6542         * m68k-tdep.c (_initialize_m68k_tdep): Update.
6543         * ia64-tdep.c (_initialize_ia64_tdep): Update.
6544         * hppa-tdep.c (_initialize_hppa_tdep): Update.
6545         * h8300-tdep.c (_initialize_h8300_tdep): Update.
6546         * frv-tdep.c (_initialize_frv_tdep): Update.
6547         * cris-tdep.c (cris_delayed_get_disassembler): Update.
6548         (_initialize_cris_tdep): Update.
6549         * arch-utils.c (legacy_print_insn): Update.
6550         * alpha-tdep.c (_initialize_alpha_tdep): Update.
6551
6552 2003-04-26  Adam Fedor  <fedor@gnu.org>
6553
6554         * linespec.c (decode_objc): New function to decode ObjC calls
6555         (decode_line_1): Check for ObjC calls (using decode_objc)
6556         * Makefile (linespec.o): Update dependencies.
6557
6558 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
6559
6560         * breakpoint.h (struct breakpoint_ops): New.
6561         (struct breakpoint): Add ops member.
6562
6563         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6564         (mention): Use new breakpoint ops member.
6565         (set_raw_breakpoint): Initialize ops field to NULL.
6566         (print_exception_catchpoint, print_one_exception_catchpoint)
6567         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6568         (gnu_v3_exception_catchpoint_ops): New.
6569         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6570
6571 2003-04-25  Adam Fedor  <fedor@gnu.org>
6572
6573         * Makefile.in (COMMON_OBS): Add objc-lang.o
6574
6575 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6576
6577         * d10v-tdep.c (print_insn): Delete function.
6578         (display_trace): Use TARGET_PRINT_INSN.
6579         (_initialize_d10v_tdep): Do not set tm_print_insn.
6580         (d10v_gdbarch_init): Set print_insn.
6581
6582 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6583
6584         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6585         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6586         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6587         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6588         (nr_dmap_regs, a0_regnum): ... new functions.
6589         (d10v_print_registers_info): Use a0_regnum, use register_size.
6590         (d10v_register_byte): Delete function.
6591         (d10v_register_raw_size): Delete function.
6592         (d10v_register_type): Use a0_regnum.
6593         (d10v_print_registers_info): Use a0_regnum.
6594         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6595         (d10v_gdbarch_init): Do not set register_byte or
6596         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6597         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6598         extract_address.
6599         (trace_command): Use XCALLOC.
6600         (print_insn): Delete reference to tm_print_insn.
6601         (saved_regs_unwinder): Use store_unsigned_integer instead of
6602         store_address.
6603         * frame.h (FRAME_OBSTACK_CALLOC): Define
6604
6605 2003-04-25  David Carlton  <carlton@bactrian.org>
6606
6607         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6608
6609 2003-04-24  Adam Fedor  <fedor@gnu.org>
6610
6611         * objc-lang.c: Include "valprint.h"
6612         * Makefile.in (objc-lang.o): Update dependencies.
6613
6614 2003-04-24  Adam Fedor  <fedor@gnu.org>
6615
6616         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6617         architecture dependant compilation and mark as unimplemented
6618         (until they get put in the gdbarch vector).
6619
6620 2003-04-23  David Carlton  <carlton@bactrian.org>
6621
6622         * cp-support.c (cp_find_first_component): Accept 'operator' in
6623         more locations.
6624
6625 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6626
6627         * infcall.c (call_function_by_hand): Eliminate redundant
6628         indentation.  Move "saved_async" and "old_cleanups" to where they
6629         are needed.
6630
6631 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6632
6633         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6634         and "buffer".  Move the "name" code to where it is needed.
6635
6636 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6637
6638         * infcall.c (call_function_by_hand): Move variables "start_sp",
6639         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6640         code to ON_STACK switch branch.
6641
6642 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6643
6644         * infcall.c (call_function_by_hand): Make declaration of "i",
6645         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
6646         lint.
6647
6648 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6649
6650         * infcall.c (call_function_by_hand): Delete variable
6651         "n_method_args".  Localize "param_type"'s declaration to the loop
6652         that it is used.  Reinstate code assigning to said variable -
6653         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
6654         Rationalize code using "param_type".
6655
6656 2003-04-22  Andrew Cagney  <cagney@redhat.com>
6657
6658         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6659         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
6660         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
6661         to DEPRECATED_PUSH_RETURN_ADDRESS.
6662
6663 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
6664
6665         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6666         on the DWARF2 register number prior to fetching a register.
6667
6668 2003-04-22  J. Brobecker  <brobecker@gnat.com>
6669
6670         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6671         Update all the tests using SOFT_FLOAT considering the fact that
6672         this macro was always set to 0.
6673         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6674         considering the fact that this macro was always set to 0.
6675         * hppa-tdep.h (hppa_store_return_value): Likewise.
6676         (hppa_extract_return_value): Likewise.
6677
6678 2003-04-22  J. Brobecker  <brobecker@gnat.com>
6679
6680         * config/pa/tm-hppa.h: Remove obsolete code, was used by
6681         the hppa-pro target only.
6682
6683 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6684
6685         Ongoing multi-arch conversion effort for HP/UX:
6686         * config/pa/tm-hppa.h: Move all macro that are no longer
6687         defined now that GDB_MULTI_ARCH is now set to 1 from here...
6688         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6689
6690 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6691
6692         * config/pa/tm-hppa.h: Obsolete a section that was only used
6693         for hppa-pro.
6694
6695 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6696
6697         Ongoing multi-arch conversion for HP/UX.
6698         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6699         if already defined (allows hppa64 to stay non-multiarched for now).
6700         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6701
6702 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6703
6704         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6705
6706 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6707
6708         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6709         "i386_num_mmx_regs".
6710
6711 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6712
6713         * infcall.c: New file.
6714         * infcall.h: New file.
6715         * valarith.c: Include "infcall.h".
6716         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6717         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6718         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6719         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6720         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6721         (SFILES): Add "infcall.c"
6722         (COMMON_OBS): Add "infcall.o".
6723         (infcall.o): Specify dependencies.
6724         * value.h (call_function_by_hand): Delete declaration.
6725         * inferior.h (run_stack_dummy): Delete declaration.
6726         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6727         (run_stack_dummy): Move to "infcall.c", merged into
6728         call_function_by_hand.
6729         * valops.c (call_function_by_hand): Moved to "infcall.c".
6730         (find_function_addr, value_arg_coerce): Ditto.
6731         (unwindonsignal_p, coerce_float_to_double): Ditto.
6732         (_initialize_valops): Move "set/show coerce-float-to-double", and
6733         "set/show unwindonsignal" commands to "infcall.c".
6734         * v850-tdep.c, target.h: Update comments.
6735         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6736         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6737         (sh64_init_extra_frame_info): Update comments.
6738         * mn10300-tdep.c: Update comments.
6739         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6740         * config/sparc/tm-sparc.h: Update comments.
6741         * breakpoint.h: Update comments.
6742         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6743         * arm-tdep.c: Update comment.
6744
6745 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
6746
6747         * i386-tdep.c (i386_num_register_names): New variable.
6748         (i386_num_mmx_regs): Renamed from mmx_num_regs.
6749         (MM0_REGNUM): Remove redundant parentheses in define.
6750         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6751         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6752         i386_mxcsr_regnum_p): Remove redundant parentheses.
6753         (i386_register_name): Use i386_num_register_names.
6754
6755         * i386-tdep.c (i386_extract_return_value,
6756         i386_store_return_value): Correct check for availability of
6757         floating-point registers.
6758
6759         * i386-tdep.c (i386_frame_num_args): Remove function.
6760         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6761
6762         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6763         mmx_regnum_to_fp_regnum.  Adjust all callers.
6764
6765         * i386-tdep.c (i386_get_longjmp_target): Use
6766         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6767         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
6768         extract_address.
6769
6770 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
6771
6772         * core-regset.c: Update comments to reflect reality.  Re-order
6773         includes.
6774         (fetch_core_registers): Use switch instead of if.  Remove
6775         redundant prototype.
6776
6777 2003-04-18  Jim Blandy  <jimb@redhat.com>
6778
6779         * s390-tdep.c (s390_frame_align): New function.
6780         (s390_gdbarch_init): Register it with the gdbarch object.
6781
6782 2003-04-17  Richard Henderson  <rth@redhat.com>
6783
6784         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6785
6786 2003-04-17  Michael Snyder  <msnyder@redhat.com>
6787             Karen Bennet  <bennet@redhat.com>
6788
6789         Committed by Elena Zannoni  <ezannoni@redhat.com>
6790         * gdb_gcore.sh: New script to create a core dump of a process.
6791
6792 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
6793
6794         * values.c (value_being_returned): Don't fetch the return
6795         value if the return type is void.
6796
6797 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
6798
6799         * thread-db.c: Reindented.
6800
6801 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
6802
6803         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6804         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6805         as types.
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
6832
6833         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6834         the size of ``long double'' to 16, instead of 8.
6835
6836 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
6837
6838         * i386-linux-nat.c: Add some whitespace to make things more
6839         readable.
6840         (fetch_register, store_register, fetch_inferior_registers,
6841         store_inferior_registers): Get rid of assignment in if-statement.
6842         (store_register): Fix typo in error message.
6843
6844 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6845
6846         * utils.c (xmmalloc): Always allocate something, matches
6847         libiberty/xmalloc's semantics.
6848         (xmrealloc, xmcalloc): Ditto.
6849
6850 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6851
6852         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6853         update comments.
6854         (get_frame_type): Initialize unwind and type when needed.
6855         (get_frame_id, frame_register_unwind): Ditto.
6856
6857 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6858
6859         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6860         obsolete.
6861         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6862         * sparcl-stub.c: Obsolete file.
6863         * config/sparc/tm-sparclet.h: Obsolete file.
6864         * sparclet-stub.c: Obsolete file.
6865         * sparclet-rom.c: Obsolete file.
6866         * sparcl-tdep.c: Obsolete file.
6867         * config/sparc/tm-sparclite.h: Obsolete file.
6868         * config/sparc/sparclite.mt: Obsolete file.
6869         * config/sparc/sparclet.mt: Obsolete file.
6870         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6871         sparc86x-*-* obsolete.
6872
6873 2003-04-15  David Carlton  <carlton@math.stanford.edu>
6874
6875         * Makefile.in (SFILES): Add cp-namespace.c.
6876         (COMMON_OBS): Add cp-namespace.o.
6877         (block.o): Depend on gdb_obstack_h and cp_support_h.
6878         (buildsym.o): Depend on cp_support_h.
6879         (cp-namespace.o): New.
6880         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6881         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6882         (dwarf2read.o): Depend on cp_support_h.
6883         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6884         * dwarf2read.c (process_die): Set processing_has_namespace_info,
6885         processing_current_namespace.
6886         (read_namespace): Update processing_current_namespace; check for
6887         anonymous namespaces.
6888         (dwarf2_name): New function.
6889         (dwarf2_extension): Ditto.
6890         * cp-support.h: Update copyright, contributors.
6891         Add inclusion guards.
6892         Add opaque declaration for structs obstack, block, symbol.
6893         (struct using_direct): New struct.
6894         Add declarations for cp_find_first_component,
6895         cp_entire_prefix_len, processing_has_namespace_info,
6896         processing_current_namespace, cp_is_anonymous,
6897         cp_add_using_directive, cp_initialize_namespace,
6898         cp_finalize_namespace, cp_set_block_scope,
6899         cp_scan_for_anonymous_namespaces.
6900         * cp-namespace.c: New file.
6901         * cp-support.c: Update copyright.
6902         Include ctype.h, gdb_assert.h, gdbcmd.h.
6903         New variable maint_cplus_cmd_list.
6904         (cp_find_first_component): New function.
6905         (cp_entire_prefix_len, maint_cplus_command)
6906         (first_component_command, _initialize_cp_support): Ditto.
6907         * buildsym.c: Include cp-support.h.
6908         New variable using_list.
6909         (add_symbol_to_list): Check for anonymous namespaces.
6910         (finish_block): Set block's scope.
6911         (start_symtab): Initialize C++ namespace support.
6912         (end_symtab): Finalize C++ namespace support.
6913         * block.h: Add opaque declarations for structs
6914         block_namespace_info, using_direct, and obstack.
6915         Add declarations for block_set_scope and block_set_using.
6916         (struct block): Add 'language_specific' member.
6917         (BLOCK_NAMESPACE): New macro.
6918         * block.c: Include gdb_obstack.h and cp-support.h.
6919         (struct block_namespace_info): New struct.
6920         (block_set_scope): New function.
6921         (block_set_using, block_initialize_namespace): Ditto.
6922
6923 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
6924
6925         * solib-svr4.c (svr4_have_link_map_offsets): New function.
6926         (locate_base): Return early if there aren't any link map offsets.
6927         (svr4_solib_create_inferior_hook): Warn if shared library support
6928         is unavailable.
6929
6930 2003-04-14  David Carlton  <carlton@math.stanford.edu>
6931
6932         * symtab.c (symbol_set_names): Add prefix when storing Java names
6933         in hash table.  Fix for PR java/1039.
6934
6935 2003-04-14  David Carlton  <carlton@math.stanford.edu>
6936
6937         * symtab.c (symbol_set_names): Rename 'name' arg to
6938         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6939         * symtab.h: Change 'name' argument in declaration of
6940         symbol_set_names to 'linkage_name'.
6941         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6942
6943 2003-04-14  Andrew Cagney  <cagney@redhat.com>
6944
6945         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6946         return the fully sign-extended register value.
6947         (get_frame_pointer): Ditto.
6948         (mips_pop_frame): Initialize "proc_desc" after checking for a
6949         dummy frame.
6950
6951 2003-04-14  Andrew Cagney  <cagney@redhat.com>
6952
6953         * mips-tdep.c (mips_push_dummy_frame): Delete function.
6954         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6955         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6956         (mips_push_register): Delete function.
6957         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6958         PUSH_FP_REGNUM.
6959
6960 2003-04-14  Jim Blandy  <jimb@redhat.com>
6961
6962         * symmisc.c: #include "gdb_regex.h".
6963         (maintenance_list_symtabs, maintenance_list_psymtabs): New
6964         functions.
6965         * maint.c (maintenance_list_command): New function.
6966         (_initialize_maint_cmds): Register the above as commands.
6967         * symtab.h (maintenance_list_symtabs,
6968         maintenance_list_psymtabs): New declarations.
6969         * cli/cli-cmds.c (maintenancelistlist): New variable.
6970         (init_cmd_lists): Initialize it.
6971         * cli/cli-cmds.h (maintenancelistlist): New declaration.
6972         * gdbcmd.h (maintenancelistlist): New declaration.
6973         * Makefile.in (symmisc.o): Update dependencies.
6974
6975 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
6976
6977         * s390-nat.c: Include asm/types.h for addr_t.
6978
6979 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
6980
6981         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6982         actually incoming type.
6983
6984 2003-04-13  Andrew Cagney  <cagney@redhat.com>
6985
6986         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6987         get_next_frame and get_frame_saved_regs.
6988
6989 2003-04-13  Andrew Cagney  <cagney@redhat.com>
6990
6991         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6992         of gdbarch_num_regs.
6993
6994 2003-04-13  Andrew Cagney  <cagney@redhat.com>
6995
6996         * frame.h: Mention what replaced what in "struct frame_info".
6997         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6998         deprecated_update_frame_base_hack and
6999         deprecated_update_frame_pc_hack.
7000         * hppa-tdep.c: Ditto.
7001
7002 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7003
7004         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7005         to read_reg and update its comment.  Remove regnum member.
7006         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7007         Don't call read_reg when setting in_reg.  Call read_reg to get
7008         the frame base if it's in a register.  Return the register number
7009         on the stack instead of in the context.  Remove extra arguments
7010         to read_reg.
7011         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7012         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
7013         the register number on the expression stack.
7014         (needs_frame_read_reg): Remove extra arguments.
7015
7016 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7017
7018         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7019         made non-static.
7020         (execute_stack_op): All callers updated.
7021         * dwarf2expr.h: Add prototype for dwarf2_read_address.
7022         * dwarf2loc.c (find_location_expression): New function.
7023         (dwarf_expr_frame_base): Call it.
7024         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7025         (dwarf2_tracepoint_var_ref): New function, broken out from
7026         locexpr_tracepoint_var_ref.
7027         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7028         Make static.
7029         (loclist_read_variable, loclist_read_needs_frame): New functions.
7030         (loclist_describe_location, loclist_tracepoint_var_ref): New
7031         functions.
7032         (dwarf2_loclist_funcs): New struct location_funcs.
7033         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7034         (struct dwarf2_locexpr_baton): Add comments.
7035         (dwarf2_loclist_funcs): New extern.
7036         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7037         base_address and base_known.
7038         (dwarf_loc_buffer): New variable.
7039         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7040         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7041         (dwarf2_has_info): Initialize dwarf_loc_offset.
7042         (dwarf2_build_psymtabs): Read in .debug_loc.
7043         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7044         DWARF_LOC_SIZE.
7045         (psymtab_to_symtab_1): Likewise.  Move base address calculation
7046         here, from...
7047         (dwarf2_get_pc_bounds): ... here.  Use the base address from
7048         cu_header.
7049         (dwarf2_symbol_mark_computed): Handle location lists.
7050
7051 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7052
7053         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7054         if the linkage name demangled successfully.
7055
7056 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7057
7058         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7059         disassmbly_flavour): Removed.
7060
7061         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7062
7063 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7064
7065         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7066
7067 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7068
7069         * frame.h (struct frame_info): Move definition from here ...
7070         * frame.c (struct frame_info): ... to here.
7071
7072 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7073
7074         * gdbthread.h (save_infrun_state): Delete parameter
7075         "prev_func_start".
7076         (struct thread_info): Delete field "prev_func_start".
7077         (load_infrun_state): Ditto.
7078         * thread.c (load_infrun_state, save_infrun_state): Update.
7079         * infrun.c (prev_func_start): Delete variable.
7080         (context_switch, init_wait_for_inferior): Update.
7081         (stop_stepping, keep_going): Update.
7082
7083 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7084
7085         * gdbarch.sh: Add missing opaque declarations.
7086         * gdbarch.h: Regnerate.
7087         * symtab.h: Add missing opaque declarations.
7088         * value.h, target.h, symfile.h, stabsread.h: Ditto.
7089         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7090         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7091         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7092         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7093         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7094         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7095         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7096         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7097         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7098         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7099         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7100         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7101
7102 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7103
7104         * frame.c (get_frame_id): Return this frame's "id".
7105         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7106         function start.
7107         (legacy_saved_regs_this_id): Replace function body with
7108         internal-error.
7109         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7110         FRAME_OBSTACK_ZALLOC.
7111         (create_new_frame): Mark the frame ID as valid.
7112
7113 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
7114
7115         * Makefile.in (libbfd_h): Added missing setting.
7116         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7117         according to the selected ABI.
7118
7119 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
7120
7121         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7122
7123 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7124
7125         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7126         SAVED_PC_AFTER_CALL.
7127         * gdbarch.h, gdbarch.c: Regenerate.
7128         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7129         * x86-64-tdep.c (x86_64_init_abi): Update.
7130         * vax-tdep.c (vax_gdbarch_init): Update.
7131         * v850-tdep.c (v850_gdbarch_init): Update.
7132         * sparc-tdep.c (sparc_gdbarch_init): Update.
7133         * sh-tdep.c (sh_gdbarch_init): Update.
7134         * s390-tdep.c (s390_gdbarch_init): Update.
7135         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7136         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7137         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7138         * mips-tdep.c (mips_gdbarch_init): Update.
7139         * mcore-tdep.c (mcore_gdbarch_init): Update.
7140         * m68k-tdep.c (m68k_gdbarch_init): Update.
7141         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7142         * ia64-tdep.c (ia64_gdbarch_init): Update.
7143         (ia64_saved_pc_after_call): Update declaration.
7144         * i386ly-tdep.c (i386lynx_init_abi): Update.
7145         * i386-tdep.c (i386_gdbarch_init): Update.
7146         * hppa-tdep.c (hppa_gdbarch_init): Update.
7147         * h8300-tdep.c (h8300_gdbarch_init): Update.
7148         * frv-tdep.c (frv_gdbarch_init): Update.
7149         * cris-tdep.c (cris_gdbarch_init): Update.
7150         * avr-tdep.c (avr_gdbarch_init): Update.
7151         * arm-tdep.c (arm_gdbarch_init): Update.
7152         * alpha-tdep.c (alpha_gdbarch_init): Update.
7153         * ns32knbsd-nat.c (frame_num_args): Update.
7154         * ns32k-tdep.c (umax_frame_num_args): Update.
7155         * mips-tdep.c (mips_init_frame_pc_first): Update.
7156         * infrun.c (step_over_function): Update.
7157         * i386-linux-tdep.c (skip_hurd_resolver): Update.
7158         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7159         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7160         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7161         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7162         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7163         * arm-linux-tdep.c (skip_hurd_resolver): Update.
7164         * arch-utils.c (init_frame_pc_default): Update.
7165         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7166         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7167         declaration.
7168
7169 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7170
7171         * i387-tdep.c: Update copyright.
7172         (i387_to_double): Delete function.
7173         (double_to_i387): Delete function.
7174
7175 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7176
7177         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7178         frame's function's address.  Simplify.
7179         (d10v_frame_unwind_cache): Check that the frame's function is
7180         non-zero.
7181
7182 2003-04-10  Jim Blandy  <jimb@redhat.com>
7183
7184         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7185         call to set_gdbarch_deprecated_push_arguments.
7186
7187 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7188
7189         * frame.c (fprint_frame_id): New function.
7190         (fprint_frame_type, fprint_frame): New function.
7191         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7192         (create_sentinel_frame, get_frame_id): Ditto.
7193         (frame_id_p, frame_id_eq): Ditto.
7194         (frame_id_inner, create_new_frame): Ditto.
7195         (legacy_get_prev_frame, get_prev_frame): Ditto.
7196         (deprecated_update_frame_pc_hack): Ditto.
7197         (frame_register_unwind): Ditto.
7198         (deprecated_update_frame_base_hack): Ditto.
7199
7200 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7201
7202         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7203         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7204         frame_chain function.
7205         * Makefile.in: Add dependencies due to above change.
7206
7207 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7208
7209         * blockframe.c (legacy_frame_chain_valid): Move call to
7210         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7211         inside_entry_file.
7212
7213 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7214
7215         * frame.h (struct frame_id): Replace "pc" and "base" with
7216         "stack_addr" and "code_addr".  Update comments.
7217         (frame_id_build): Update parameter names and comment.
7218         (struct frame_info): Replace "id_p" and "id" with "this_id".
7219         * dummy-frame.c (dummy_frame_this_id): Update.
7220         * breakpoint.c (print_one_breakpoint): Update.
7221         * frame.c (get_frame_id): Update.
7222         (get_frame_base, frame_id_build): Update.
7223         (create_sentinel_frame, legacy_get_prev_frame): Update.
7224         (deprecated_update_frame_base_hack): Update.
7225         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7226         (frame_id_inner): Ditto.
7227
7228 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7229
7230         * defs.h (gdb_print_host_address): Make "addr" parameter a
7231         pointer constant.
7232         * utils.c (gdb_print_host_address): Update.
7233
7234 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
7235
7236         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7237         register number for R0 is 0.
7238
7239 2003-04-09  J. Brobecker  <brobecker@gnat.com>
7240
7241         * frame.h (struct gdbarch): Add opaque structure definition
7242         to avoid a compilation warning on LynxOS 4.0.
7243
7244 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7245
7246         * frame.h (struct frame_info): Delete field "pc".  Replace
7247         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7248         structure.
7249         * frame.c (frame_pc_unwind): Update.
7250         (create_sentinel_frame): Do not set "pc".
7251         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
7252         (get_frame_pc): Call frame_pc_unwind.
7253         (deprecated_update_frame_pc_hack): Update.
7254         (create_new_frame): Use "pc" not "->pc".
7255
7256 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7257
7258         * frame.c (get_frame_id): Eliminate code updating "frame".
7259         (legacy_get_prev_frame): Ditto.
7260         (get_frame_base): Return id.base directly.
7261         (deprecated_update_frame_base_hack): Update "id.base".
7262         * frame.h (struct frame_info): Delete field "frame".
7263
7264 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7265
7266         * NEWS: Mention that the "Sequent family" is obsolete.
7267         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7268         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7269         * configure.host: Obsolete i[3456]86-sequent-bsd*,
7270         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7271         * config/i386/tm-ptx4.h: Obsolete file.
7272         * config/i386/tm-ptx.h: Obsolete file.
7273         * symm-tdep.c: Obsolete file.
7274         * config/i386/symmetry.mt: Obsolete file.
7275         * config/i386/tm-symmetry.h: Obsolete file.
7276         * symm-nat.c: Obsolete file.
7277         * config/i386/nm-symmetry.h: Obsolete file.
7278         * config/i386/xm-symmetry.h: Obsolete file.
7279         * config/i386/symmetry.mh: Obsolete file.
7280         * config/i386/nm-ptx4.h: Obsolete file.
7281         * config/i386/ptx4.mh: Obsolete file.
7282         * config/i386/ptx.mt: Obsolete file.
7283         * config/i386/ptx.mh: Obsolete file.
7284         * config/i386/xm-ptx4.h: Obsolete file.
7285         * config/i386/xm-ptx.h: Obsolete file.
7286
7287 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7288
7289         Obsolete mips*-*-mach3*.
7290         * NEWS: Mention that mips*-*-mach3* is obsolete.
7291         * m3-nat.c: Obsolete file.
7292         * config/nm-m3.h: Obsolete file.
7293         * config/mips/tm-mipsm3.h: Obsolete file.
7294         * config/mips/mipsm3.mt: Obsolete file.
7295         * config/mips/mipsm3.mh: Obsolete file.
7296         * config/mips/xm-mipsm3.h: Obsolete file.
7297         * mipsm3-nat.c: Obsolete file.
7298         * configure.host: Obsolete mips-dec-mach3*.
7299         * configure.tgt: Obsolete mips*-*-mach3*.
7300
7301 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7302
7303         * doublest.h: Update copyright.
7304         (deprecated_store_floating, deprecated_extract_floating): Rename
7305         store_floating and extract_floating.  Update comments.
7306         * doublest.c: Update copyright.
7307         (extract_floating_by_length): Replace extract_floating.
7308         (store_floating_by_length): Replace store_floating.
7309         (deprecated_extract_floating): New function.
7310         (deprecated_store_floating): New function.
7311         (extract_typed_floating): Call extract_floating_by_length.
7312         (store_typed_floating): Call store_floating_by_length.
7313         * x86-64-tdep.c (x86_64_store_return_value): Update.
7314         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7315         (sh64_extract_return_value): Update.
7316         (sh_sh4_register_convert_to_virtual): Update.
7317         (sh_sh64_register_convert_to_virtual): Update.
7318         (sh_sh4_register_convert_to_raw): Update.
7319         (sh_sh64_register_convert_to_raw): Update.
7320         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7321         (rs6000_register_convert_to_raw): Update.
7322         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7323         (ia64_register_convert_to_raw): Update.
7324         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7325         (REGISTER_CONVERT_TO_VIRTUAL): Update.
7326         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7327         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7328         (alpha_register_convert_to_raw): Update.
7329
7330 2003-04-08  Andrew Cagney  <cagney@redhat.com>
7331
7332         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7333         * gdbarch.h, gdbarch.c: Re-generate.
7334         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7335         (d10v_gdbarch_init): Do not set saved_pc_after_call.
7336         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7337         conditionally, use frame_pc_unwind as an alternative.  Add
7338         comments.
7339         * arch-utils.c (init_frame_pc_default): Only call
7340         SAVED_PC_AFTER_CALL when available.
7341
7342 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7343
7344         * infrun.c (stop_soon): Rename from stop_soon_quietly.
7345         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7346         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7347         (start_remote): Ditto.
7348         (handle_inferior_event): Ditto.
7349         (save_inferior_status): Ditto.
7350         (restore_inferior_status): Ditto.
7351         * infcmd.c (attach_command): Ditto.
7352         * fork-child.c (startup_inferior): Ditto.
7353         * inferior.h (stop_soon): Rename from stop_soon_quietly.
7354         * alpha-tdep.c (heuristic_proc_start): Ditto.
7355         * mips-tdep.c (heuristic_proc_start): Ditto.
7356         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7357         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7358         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7359         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7360         * remote-vx.c (vx_create_inferior): Ditto.
7361
7362 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7363
7364         * infrun.c (stop_soon_quietly): Make it an enum, to better
7365         override the default behavior of handle_inferior_event.
7366         (clear_proceed_status): Update uses of stop_soon_quietly to
7367         reflect that it is now an enum.
7368         (start_remote): Ditto.
7369         (handle_inferior_event): Change logic a bit if stop_soon_quietly
7370         is set to handle the new GNU/Linux kernel behavior for
7371         attach/sigstop.  Update uses of stop_soon_quietly.
7372         * inferior.h (enum stop_kind): New enum.
7373         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7374         Reset normal handle_inferior_event behavior, afterwards.
7375         * fork-child.c (startup_inferior): Update.
7376         * alpha-tdep.c (heuristic_proc_start): Update.
7377         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7378         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7379         * solib-osf.c (osf_solib_create_inferior_hook): Update.
7380         * solib-irix.c (irix_solib_create_inferior_hook): Update.
7381         * remote-vx.c (vx_create_inferior): Update.
7382         * mips-tdep.c (heuristic_proc_start): Update.
7383
7384 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
7385
7386         * disasm.c (dump_insns):  Move variables inside loop, or they will
7387         be freed more than once, causing wild memory corruptions.
7388         (gdb_disassembly): Look for the substring "-thread",
7389         instead of "-threads" in the target name, to make sure to find
7390         the 'multi-thread' target.  Also, make sure we do the right thing
7391         with the "core" target.
7392
7393 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
7394
7395         * mips-tdep.c (mips_print_fp_register): New function, created from
7396         do_fp_register_row().  Registers are now (also) printed as hex.
7397         Only one register is printed per row.
7398         (mips_print_register, do_fp_register_row): Print floating point
7399         registers with mips_print_fp_register().
7400
7401 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7402
7403         * valprint.h (inspect_it): Add extern declaration.
7404         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7405         (selectors_info, classes_info): Ditto.
7406         (find_objc_msgcall): Fix indentation.
7407         (objc_printstr): Delete extern declarations.
7408
7409         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7410
7411 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7412
7413         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7414         Update comment.
7415         * frame.c (legacy_saved_regs_this_id): Update.
7416         (legacy_get_prev_frame): Update.
7417         * xstormy16-tdep.c: Update comment.
7418         * sparc-tdep.c (sparc_frame_chain): Update comment.
7419         * blockframe.c (legacy_frame_chain_valid): Update.
7420
7421 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7422
7423         * valprint.c (val_print_type_code_int): Delete #ifdef
7424         PRINT_TYPELESS_INTEGER code.
7425
7426         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7427         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7428         multi-arch definition.
7429         * gdbarch.h: Re-generate.
7430
7431 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7432
7433         Eliminate FRAME_FIND_SAVED_REGS.
7434         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7435         Change FSR parameter to a pointer.
7436         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7437         Assume FSR parameter is a pointer.
7438         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7439         Make fsr a pointer.
7440         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7441         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
7442         saved_regs a pointer.
7443         (hppa_frame_saved_pc): Ditto.
7444         (find_dummy_frame_regs): Make frame_saved_regs a pointer
7445         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
7446         pointer.
7447         (restore_pc_queue): Make fsr a pointer.
7448         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7449         (hppa_frame_chain): Make saved_regs a pointer, call
7450         hppa_frame_init_saved_regs.
7451         * sparc-tdep.c: Include "gdb_assert.h".
7452         (sparc_frame_find_saved_regs): Replace internal_error with
7453         gdb_assert.
7454         * remote-vxsparc.c (vx_read_register): Delete reference to
7455         FRAME_FIND_SAVED_REGS.
7456         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7457         * gdbarch.h: Regenerate.
7458         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7459         (deprecated_get_frame_saved_regs): Delete declaration.
7460         (struct frame_saved_regs): Delete definition.
7461         * frame.c (deprecated_get_frame_saved_regs): Delete function.
7462         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7463         (hppa_frame_find_saved_regs): Delete declaration.
7464         (FRAME_FIND_SAVED_REGS): Delete macro.
7465         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7466         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7467         FRAME_FIND_SAVED_REGS in comment.
7468
7469 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7470
7471         * frame.c (frame_func_unwind, get_frame_func): New functions.
7472         * frame.h (get_frame_func, frame_func_unwind): Declare.
7473         (struct frame_info): Add field "prev_func" for caching the
7474         previous frame's function address.
7475         * arm-tdep.c (arm_frameless_function_invocation): Combine
7476         get_pc_function_start and get_frame_pc into get_frame_func.
7477         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7478         (sh64_nofp_frame_init_saved_regs): Ditto.
7479         * s390-tdep.c (s390_function_start): Ditto.
7480         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7481         (rs6000_frameless_function_invocation): Ditto.
7482         (rs6000_frame_saved_pc): Ditto.
7483         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7484         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7485         * i386-tdep.c (i386_frameless_signal_p): Ditto.
7486         (i386_frame_init_saved_regs): Ditto.
7487         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7488         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7489         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7490         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7491         * blockframe.c (frameless_look_for_prologue): Ditto.
7492
7493 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7494
7495         * frame.c (legacy_get_prev_frame): Link prev to next at the
7496         function start.  Update comments.
7497
7498 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7499
7500         * frame.c (get_frame_id): Update comment.
7501         (legacy_get_prev_frame): Update comment.
7502         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7503         * gdbarch.h: Regenerate.
7504         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7505         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7506
7507 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7508
7509         * stack.c (print_frame_info): Use get_frame_pc.
7510
7511 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7512
7513         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
7514         the frame's type from the unwinder.
7515         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7516         (create_new_frame, legacy_get_prev_frame): When the unwinder's
7517         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7518         (get_frame_base_address): Use get_frame_type.
7519         (get_frame_locals_address, get_frame_args_address): Ditto.
7520         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7521         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7522         (struct frame_info): Add comment explaining why the frame contains
7523         a "type" field.
7524         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7525         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7526         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7527         NORMAL_FRAME.
7528         * frame-unwind.h: Include "frame.h".
7529         (struct frame_unwind): Add "type" field.
7530         * Makefile.in (frame_unwind_h): Add $(frame_h).
7531
7532 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7533
7534         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7535         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7536         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7537         get_frame_base.
7538         (d10v_unwind_dummy_id): Use frame_id_build.
7539         * frame.c (find_frame_sal): Use get_frame_pc.
7540         (create_new_frame): Use deprecated_update_frame_pc_hack and
7541         deprecated_update_frame_base_hack.
7542         (create_sentinel_frame): Add comment about ->pc going away.
7543         (get_prev_frame): Add comment about ->pc going away.
7544         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7545         frame_id_build, deprecated_update_frame_pc_hack and
7546         deprecated_update_frame_base_hack.
7547         (select_frame): Use get_frame_pc.
7548         (legacy_saved_regs_this_id): Use frame_id_build.
7549
7550 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
7551
7552         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7553         signed integer case.
7554         (classify_argument): Handle enumerations and references.
7555
7556 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7557
7558         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7559         ID to NULL.
7560
7561 2003-04-01  Adam Fedor  <fedor@gnu.org>
7562
7563         * gdb/objc-lang.c (selectors_info): Replace calls to
7564         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7565         SYMBOL_NATURAL_NAME.
7566         (classes_info, find_methods): Likewise.
7567
7568 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
7569
7570         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7571         ``mach'' to the value determined by bfd_default_set_arch_mach().
7572
7573 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
7574
7575         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7576         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7577         (mi-cmd-file.o): Update dependencies.
7578
7579 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
7580
7581         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7582         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7583
7584 2003-04-01  Adam Fedor  <fedor@gnu.org>
7585
7586         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7587         * language.h (struct language_defn): Add la_demangle.
7588         (language_demangle): Declare.
7589         * language.c (language_demangle): New function.
7590         (unk_lang_demangle): Likewise.
7591         (unknown_language_defn, auto_language_defn, local_language_defn):
7592         Add ukn_lang_demangle.
7593         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7594         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7595         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7596         (cplus_language_defn): Add cplus_demangle for la_demangle element.
7597         * jv-lang.c (java_demangle): New function
7598         (java_language_defn): Use it for la_demangle element.
7599         * objc-lang.c (objc_demangle): Add options argument
7600         (objc_language_defn): Use objc_demangle for la_demangle element.
7601         * maint.c (maintenance_demangle): Replace switch with
7602         call to language_demangle.
7603         * utils.c (fprintf_symbol_filtered): Likewise.
7604
7605 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7606
7607         * printcmd.c (print_frame_nameless_args): Delete #ifdef
7608         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7609         PRINT_TYPELESS_INTEGER.
7610         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7611         PUSH_RETURN_ADDRESS.
7612
7613 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7614
7615         * Makefile.in (d10v-tdep.o): Update dependencies.
7616         * d10v-tdep.c: Include "frame-base.h".
7617         (d10v_frame_unwind): Make constant.
7618         (d10v_frame_base_address): New function.
7619         (d10v_frame_base): New variable.
7620         (d10v_gdbarch_init): Set frame_base default.
7621         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
7622         comment for base.
7623         (d10v_frame_unwind_cache): Set and use "prev_sp".
7624         (d10v_frame_this_id): Use the previous frame's inner most stack
7625         address and this frame's func address for the frame ID.  Use
7626         frame_id_build.  Don't analyze beyond the current instruction.
7627
7628 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7629
7630         * frame.h (get_frame_locals_address, get_frame_args_address):
7631         Refer to the base address, instead of the address of the first
7632         local or parameter.
7633
7634 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7635
7636         Add frame debug info addresses:
7637         * frame-base.c: New file.
7638         * frame-base.h: New file.
7639         * frame.h (struct frame_base): Add opaque declaration.
7640         (get_frame_base): Update comment.
7641         (get_frame_base_address): Declare.
7642         (get_frame_locals_address): Declare.
7643         (get_frame_args_address): Declare.
7644         (struct frame_info): Add "base" and "base_cache".  Update
7645         comments on the unwinder.
7646         * frame.c: Include "frame-base.h".
7647         (get_frame_locals_address): New function.
7648         (get_frame_base_address): New function.
7649         (get_frame_args_address): New function.
7650         * findvar.c (read_var_value): Use get_frame_locals_address and
7651         get_frame_args_address.
7652         * stack.c (frame_info): Use get_frame_locals_address and
7653         get_frame_args_address.
7654         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7655         moved to "frame-base.c".
7656         * printcmd.c (print_frame_nameless_args): Ditto.
7657         * symtab.h (address_class): Update comments.
7658         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7659         get_frame_base_address.
7660         * dwarf2expr.c (execute_stack_op): Ditto.
7661         * Makefile.in (frame_base_h): Define.
7662         (frame.o): Update dependencies.
7663         (frame-base.o): Add dependencies.
7664         (SFILES): Add frame-base.c.
7665         (COMMON_OBS): Add frame-base.o.
7666
7667 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7668
7669         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7670         CALL_DUMMY_LENGTH): Ditto.
7671         * gdbarch.c: Re-generate.
7672         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7673         (CALL_DUMMY_LENGTH): Delete macro.
7674         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7675         * arm-tdep.c (arm_gdbarch_init): Ditto.
7676         * avr-tdep.c (avr_gdbarch_init): Ditto.
7677         * cris-tdep.c (cris_gdbarch_init): Ditto.
7678         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7679         * frv-tdep.c (frv_gdbarch_init): Ditto.
7680         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7681         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7682         * i386-tdep.c (i386_gdbarch_init): Ditto.
7683         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7684         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7685         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7686         * mips-tdep.c (mips_gdbarch_init): Ditto.
7687         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7688         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7689         * s390-tdep.c (s390_gdbarch_init): Ditto.
7690         * sh-tdep.c (sh_gdbarch_init): Ditto.
7691         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7692         * v850-tdep.c (v850_gdbarch_init): Ditto.
7693         * vax-tdep.c (vax_gdbarch_init): Ditto.
7694         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7695
7696 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
7697
7698         * frame.c (get_prev_frame): Disable call to inside_entry_file().
7699
7700 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7701
7702         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7703         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7704         * gdbarch.h, gdbarch.c: Re-generate.
7705         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7706         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7707         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7708         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7709         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7710         * infcmd.c (run_stack_dummy): Simplify assuming
7711         CALL_DUMMY_BREAKPOINT_OFFSET_P.
7712         * infrun.c (handle_inferior_event): Ditto.
7713         * alpha-tdep.c (alpha_gdbarch_init): Do not set
7714         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7715         * arm-tdep.c (arm_gdbarch_init): Ditto.
7716         * avr-tdep.c (avr_gdbarch_init): Ditto.
7717         * cris-tdep.c (cris_gdbarch_init): Ditto.
7718         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7719         * frv-tdep.c (frv_gdbarch_init): Ditto.
7720         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7721         * i386-tdep.c (i386_gdbarch_init): Ditto.
7722         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7723         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7724         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7725         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7726         * mips-tdep.c (mips_gdbarch_init): Ditto.
7727         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7728         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7729         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7730         * s390-tdep.c (s390_gdbarch_init): Ditto.
7731         * sh-tdep.c (sh_gdbarch_init): Ditto.
7732         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7733         * v850-tdep.c (v850_gdbarch_init): Ditto.
7734         * vax-tdep.c (vax_gdbarch_init): Ditto.
7735         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7736
7737 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
7738
7739         * symfile.c (symfile_relocate_debug_section): Update call to
7740         bfd_simple_get_relocated_section_contents.
7741
7742 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7743
7744         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7745         * gdbarch.h, gdbarch.c: Regenerate.
7746         * inferior.h (FIX_CALL_DUMMY): Delete macro.
7747         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7748         available.
7749         * frame.h (generic_fix_call_dummy): Delete declaration.
7750         * dummy-frame.h: Update comment.
7751         * dummy-frame.c (generic_fix_call_dummy): Delete function.
7752         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7753         fix_call_dummy.
7754         * sh-tdep.c (sh_gdbarch_init): Ditto.
7755         * s390-tdep.c (s390_gdbarch_init): Ditto.
7756         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7757         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7758         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7759         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7760         * i386-tdep.c (i386_gdbarch_init): Ditto.
7761         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7762         * frv-tdep.c (frv_gdbarch_init): Ditto.
7763         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7764         * cris-tdep.c (cris_gdbarch_init): Ditto.
7765         * avr-tdep.c (avr_gdbarch_init): Ditto.
7766         * arm-tdep.c (arm_gdbarch_init): Ditto.
7767
7768 2003-03-31  J. Brobecker  <brobecker@gnat.com>
7769
7770         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7771         (INIT_FRAME_AP): Likewise.
7772         (EXTRA_FRAME_INFO): Likewise.
7773
7774 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7775
7776         * gdbarch.sh: Include "symfile.h".
7777         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7778         * gdbarch.h, gdbarch.c: Re-generate.
7779         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7780         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7781         call_dummy_address, the default is at entry_point_address.
7782         * v850-tdep.c (v850_gdbarch_init): Ditto.
7783         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7784         * sh-tdep.c (sh_gdbarch_init): Ditto.
7785         * s390-tdep.c (s390_gdbarch_init): Ditto.
7786         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7787         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7788         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7789         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7790         * i386-tdep.c (i386_gdbarch_init): Ditto.
7791         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7792         * frv-tdep.c (frv_gdbarch_init): Ditto.
7793         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7794         * cris-tdep.c (cris_gdbarch_init): Ditto.
7795         * arm-tdep.c (arm_gdbarch_init): Ditto.
7796
7797 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7798
7799         * gdbarch.sh (CALL_DUMMY_P): Delete.
7800         * gdbarch.h, gdbarch.c: Re-generate.
7801         * inferior.h (CALL_DUMMY_P): Delete macro.
7802         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7803         * vax-tdep.c (vax_gdbarch_init): Update.
7804         * v850-tdep.c (v850_gdbarch_init): Update.
7805         * sparc-tdep.c (sparc_gdbarch_init): Update.
7806         * sh-tdep.c (sh_gdbarch_init): Update.
7807         * s390-tdep.c (s390_gdbarch_init): Update.
7808         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7809         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7810         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7811         * mips-tdep.c (mips_gdbarch_init): Update.
7812         * mcore-tdep.c (mcore_gdbarch_init): Update.
7813         * m68k-tdep.c (m68k_gdbarch_init): Update.
7814         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7815         * ia64-tdep.c (ia64_gdbarch_init): Update.
7816         * i386-tdep.c (i386_gdbarch_init): Update.
7817         * h8300-tdep.c (h8300_gdbarch_init): Update.
7818         * frv-tdep.c (frv_gdbarch_init): Update.
7819         * d10v-tdep.c (d10v_gdbarch_init): Update.
7820         * cris-tdep.c (cris_gdbarch_init): Update.
7821         * breakpoint.c (deprecated_frame_in_dummy): Update.
7822         * avr-tdep.c (avr_gdbarch_init): Update.
7823         * alpha-tdep.c (alpha_gdbarch_init): Update.
7824         * arm-tdep.c (arm_gdbarch_init): Update.
7825         * dummy-frame.c (dummy_frame_this_id): Update comments.
7826         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7827         * frame.c (legacy_get_prev_frame): Ditto.
7828         * valops.c (call_function_by_hand): Delete function.
7829         (hand_function_call): Rename to call_function_by_hand
7830
7831 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7832
7833         2002-11-10 Klee Dienes <kdienes@apple.com>
7834         * value.h (struct value): Update comment.
7835
7836 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7837
7838         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7839         D10V_FP_REGNUM.
7840         (d10v_gdbarch_init): Do not set fp_regnum.
7841
7842         * frame.c (get_frame_base): Force ID initialization.
7843         (get_prev_frame): Move computation of the frame ID from here ...
7844         (get_frame_id): ... to here.
7845         (legacy_get_prev_frame): Mark the frame ID as valid.
7846         * frame.h (struct frame_info): Add field "id_p".
7847
7848 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
7849
7850         * i386-tdep.c (i386_store_struct_return): Removed.
7851         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7852
7853 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7854
7855         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7856         * gdbarch.h, gdbarch.c: Regenerate.
7857         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7858         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7859         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7860         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7861         * i386-tdep.c (i386_gdbarch_init): Ditto.
7862         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7863         * cris-tdep.c (cris_gdbarch_init): Ditto.
7864         * vax-tdep.c (vax_gdbarch_init): Ditto.
7865         * s390-tdep.c (s390_gdbarch_init): Ditto.
7866         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7867         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7868         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7869         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7870         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7871         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7872         * sparc-tdep.c (sparc_gdbarch_init): Update.
7873         * sh-tdep.c (sh_gdbarch_init): Update.
7874         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7875         * mips-tdep.c (mips_gdbarch_init): Update.
7876         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7877         * ia64-tdep.c (ia64_gdbarch_init): Update.
7878         * frv-tdep.c (frv_gdbarch_init): Update.
7879         * avr-tdep.c (avr_gdbarch_init): Update.
7880         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7881         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
7882         instead of when push_dummy_call is not available.
7883
7884 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7885
7886         * infttrace.c: Include "gdbthread.h".
7887         (parent_attach_all): Fix function signature.
7888         (call_ptrace): Update call.
7889         * Makefile.in (infttrace.o): Update dependencies.
7890
7891 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7892
7893         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7894         PUSH_RETURN_ADDRESS.
7895         * gdbarch.h, gdbarch.c: Regenerate.
7896         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7897         * x86-64-tdep.c (x86_64_init_abi): Update.
7898         * v850-tdep.c (v850_gdbarch_init): Update.
7899         * sparc-tdep.c (sparc_gdbarch_init): Update.
7900         * sh-tdep.c (sh_gdbarch_init): Update.
7901         * s390-tdep.c (s390_gdbarch_init): Update.
7902         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7903         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7904         * mips-tdep.c (mips_gdbarch_init): Update.
7905         * mcore-tdep.c (mcore_gdbarch_init): Update.
7906         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7907         * ia64-tdep.c (ia64_gdbarch_init): Update.
7908         * i386-tdep.c (i386_gdbarch_init): Update.
7909         * h8300-tdep.c (h8300_gdbarch_init): Update.
7910         * frv-tdep.c (frv_gdbarch_init): Update.
7911         * cris-tdep.c (cris_gdbarch_init): Update.
7912         * avr-tdep.c (avr_gdbarch_init): Update.
7913         * arm-tdep.c (arm_gdbarch_init): Update.
7914         * valops.c (hand_function_call): Update.
7915
7916 2003-03-29  Andrew Cagney  <cagney@redhat.com>
7917
7918         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7919         sizeof_call_dummy_words.
7920         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7921         define.
7922         * gdbarch.h: Regenerate.
7923
7924 2003-03-29  Andrew Cagney  <cagney@redhat.com>
7925
7926         * infttrace.h: New file.
7927         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7928         (hpread_get_textlow): Detect an uninitialized dn_bufp.
7929         (hpread_read_doc_function_type): Detect an initialized type1.
7930         (hpread_quick_traverse): Initialize mod_name_string.
7931         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7932         (som_solib_get_solib_by_pc): Declare.
7933         (so_lib_thread_start_addr): Declare.
7934         (no_shared_libraries): Declare.
7935         * somread.c (init_import_symbols): Make static.  Add forward
7936         declaration.
7937         * config/pa/nm-hppah.h: Include "infttrace.h" for
7938         parent_attach_all.
7939         (hppa_insert_hw_watchpoint): Declare.
7940         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7941         * hppah-nat.c: Include "gdb_string.h".
7942         (parent_attach_all): Delete extern declaration, moved to
7943         "infttrace.h".
7944         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7945         int.
7946         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7947         * Makefile.in (infttrace_h): Define.
7948         (hpread.o): Update dependencies.
7949         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7950         * hppa-hpux-tdep.c: Include "gdb_string.h".
7951         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7952         * infrun.c (handle_inferior_event): Always initialize
7953         stepped_after_stopped_by_watchpoint.  Add default and remove
7954         fallthrough in switch statement.
7955         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7956         parameter to int.
7957         (hppa_remove_hw_watchpoint): Ditto.
7958
7959 2003-03-29  Andrew Cagney  <cagney@redhat.com>
7960
7961         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7962         offset.
7963
7964 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
7965
7966         * arm-tdep.c (arm_push_arguments): Delete.
7967         (struct stack_item): New type.
7968         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7969         (arm_store_struct_return): Delte.
7970         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
7971         arm_push_arguments or arm_store_struct_return.
7972
7973 2003-03-28  Andrew Cagney  <cagney@redhat.com>
7974
7975         * Makefile.in (d10v-tdep.o): Update dependencies.
7976         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7977         * d10v-tdep.c: Include "remote.h".
7978         (target_resume_hook): Delete extern declaration.
7979         (target_wait_loop_hook): Ditto.
7980         (tdisassemble_command): Eliminate assignment in "if" conditional.
7981         (d10v_ts2_register_sim_regno): Eliminate call to
7982         legacy_register_sim_regno.
7983         (d10v_ts3_register_sim_regno): Ditto.
7984
7985 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
7986
7987         * thread.c: Reindented.
7988         * lin-lwp.c: Ditto.
7989         * linux-proc.c: Ditto.
7990
7991 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
7992
7993         * MAINTAINERS (write after approval): Add myself.
7994
7995 2003-03-27  Theodore A. Roth  <troth@openavr.org>
7996
7997         * objc-exp.y: Add missing semi-colons.
7998
7999 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8000
8001         * regcache.c (write_sp): Delete function and references.
8002         * inferior.h (write_sp): Delete declaration.
8003         * valops.c (hand_function_call): Replace write_sp with
8004         TARGET_WRITE_SP.
8005         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8006         (sparc_pop_frame): Ditto.
8007
8008 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8009
8010         * NEWS: Mention removal of support for hppa*-*-bsd* and
8011         hppa*-*-osf* natives, and hppa*-*-pro* target.
8012         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8013         * config/pa/xm-pa.h: Obsolete file.
8014         * config/pa/xm-hppab.h: Obsolete file.
8015         * config/pa/nm-hppab.h: Obsolete file.
8016         * config/pa/tm-hppab.h: Obsolete file.
8017         * config/pa/tm-hppao.h: Obsolete file.
8018         * config/pa/nm-hppao.h: Obsolete file.
8019         * config/pa/tm-pro.h: Obsolete file.
8020         * config/pa/hppaosf.mt: Obsolete file.
8021         * config/pa/hppaosf.mh: Obsolete file.
8022         * config/pa/hppapro.mt: Obsolete file.
8023         * config/pa/hppabsd.mt: Obsolete file.
8024         * config/pa/hppabsd.mh: Obsolete file.
8025         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8026         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8027         hppa*-*-osf*.
8028
8029 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8030
8031         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8032         push_arguments.  Don't set push_return_address or write_sp.
8033         (d10v_push_dummy_call): Replace d10v_push_arguments.
8034         (d10v_push_return_address, d10v_write_sp): Delete function,
8035         handled by push_dummy_call.
8036
8037 2003-03-26  Andrew Cagney  <cagney@redhat.com>
8038
8039         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8040         (push_dummy_call): New pure multi-arch replacement with gdbarch,
8041         regcache and dummy_addr parameters.
8042         * gdbarch.h, gdbarch.c: Re-generate.
8043         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8044         available; assume it will handle stack alignment and return
8045         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
8046         legacy_push_arguments.
8047         (legacy_push_arguments): Rename default_push_arguments.
8048         * value.h (legacy_push_arguments): Rename default_push_arguments.
8049         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8050         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8051         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8052         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8053         * config/i386/tm-symmetry.h: Update.
8054         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8055         * x86-64-tdep.c (x86_64_init_abi): Update.
8056         * v850-tdep.c (v850_gdbarch_init): Update.
8057         * sparc-tdep.c (sparc_gdbarch_init): Update.
8058         * sh-tdep.c (sh_gdbarch_init): Update.
8059         * s390-tdep.c (s390_gdbarch_init): Update.
8060         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8061         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8062         * mips-tdep.c (mips_gdbarch_init): Update.
8063         * mcore-tdep.c (mcore_gdbarch_init): Update.
8064         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8065         * ia64-tdep.c (ia64_gdbarch_init): Update.
8066         * i386-tdep.c (i386_gdbarch_init): Update.
8067         * hppa-tdep.c (hppa_gdbarch_init): Update.
8068         * h8300-tdep.c (h8300_gdbarch_init): Update.
8069         * frv-tdep.c (frv_gdbarch_init): Update.
8070         * d10v-tdep.c (d10v_gdbarch_init): Update.
8071         * cris-tdep.c (cris_gdbarch_init): Update.
8072         * avr-tdep.c (avr_gdbarch_init): Update.
8073         * arm-tdep.c (arm_gdbarch_init): Update.
8074         * arm-linux-tdep.c (arm_linux_init_abi): Update.
8075         * alpha-tdep.c (alpha_gdbarch_init): Update.
8076
8077 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8078
8079         * signals/signals.c (do_target_signal_to_host): Correct realtime
8080         signal range test.
8081
8082 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8083
8084         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8085         (struct sal_chain, map_catch_names): Remove.
8086         (catch_exception_command_1): Don't call
8087         handle_gnu_4_16_catch_command.
8088
8089 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8090
8091         From Mark Dettinger <dettinge@de.ibm.com>:
8092         * dwarf2cfi.c (read_2u): Increment pointer by two.
8093
8094 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8095
8096         * signals/signals.c: Fix typos in last change.
8097
8098 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8099
8100         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8101         not already defined.  Use __SIGRTMIN if available.
8102         (target_signal_from_host): Remove SIGRTMIN block.
8103         (do_target_signal_to_host): Remove SIGRTMIN block; check that
8104         the signal is within the realtime range.
8105
8106 2003-03-25  Adam Fedor  <fedor@gnu.org>
8107
8108         * Makefile.in (infrun.o): Add $(language_h)
8109         * infrun.c (handle_inferior_event): Use skip_language_trampoline
8110         for language specific trampolines.
8111         * language.h (struct language_defn): Add skip_trampoline.
8112         (skip_language_trampoline): Declare.
8113         * language.c (unk_lang_trampoline, skip_language_trampoline):
8114         New functions.
8115         (unknown_language_defn, auto_language_defn, local_language_defn):
8116         Add ukn_lang_trampoline.
8117         * ada-lang.c (ada_language_defn): Add NULL for language
8118         specific skip_trampoline.
8119         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8120         scm-lang.c: Likewise.
8121         * objc-lang.c (objc_skip_trampoline): New function.
8122         (objc_language_defn): Add objc_skip_trampoline.
8123
8124 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8125
8126         * frame.c (get_prev_frame): Delay validating a frame's ID -
8127         non-NULL, didn't go backwards - until an attempt to unwind it to
8128         the previous frame.
8129
8130 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8131
8132         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8133         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
8134         * gdbarch.h, gdbarch.c: Re-generate.
8135         * config/sparc/tm-sparc.h
8136         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8137         * sparc-tdep.c (sparc_gdbarch_init): Set
8138         deprecated_extra_stack_alignment_needed.
8139         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8140         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8141         extra_stack_alignment_needed.
8142         * v850-tdep.c (v850_gdbarch_init): Ditto.
8143         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8144         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8145         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8146         * cris-tdep.c (cris_gdbarch_init): Ditto.
8147         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8148         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8149
8150 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8151
8152         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8153         STORE_STRUCT_RETURN.
8154         * gdbarch.h, gdbarch.c: Regenerate.
8155         * d10v-tdep.c (d10v_store_struct_return): Delete function.
8156         (d10v_push_arguments): Set the struct return register.
8157         (d10v_gdbarch_init): Update.
8158         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8159         * x86-64-tdep.c (x86_64_init_abi): Update.
8160         * vax-tdep.c (vax_gdbarch_init): Update.
8161         * v850-tdep.c (v850_gdbarch_init): Update.
8162         * sparc-tdep.c (sparc_gdbarch_init): Update.
8163         * sh-tdep.c (sh_gdbarch_init): Update.
8164         * s390-tdep.c (s390_gdbarch_init): Update.
8165         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8166         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8167         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8168         * mips-tdep.c (mips_gdbarch_init): Update.
8169         * mcore-tdep.c (mcore_gdbarch_init): Update.
8170         * m68k-tdep.c (m68k_gdbarch_init): Update.
8171         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8172         * ia64-tdep.c (ia64_gdbarch_init): Update.
8173         * i386-tdep.c (i386_gdbarch_init): Update.
8174         * hppa-tdep.c (hppa_gdbarch_init): Update.
8175         * h8300-tdep.c (h8300_gdbarch_init): Update.
8176         * frv-tdep.c (frv_gdbarch_init): Update.
8177         * cris-tdep.c (cris_gdbarch_init): Update.
8178         * avr-tdep.c (avr_gdbarch_init): Update.
8179         * arm-tdep.c (arm_gdbarch_init): Update.
8180         * alpha-tdep.c (alpha_gdbarch_init): Update.
8181
8182 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8183
8184         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8185         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8186         CALL_DUMMY_STACK_ADJUST with a predicate variable.
8187         * gdbarch.h, gdbarch.c: Regenerate.
8188         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8189         call_dummy_stack_adjust_p.
8190         * vax-tdep.c (vax_gdbarch_init): Ditto.
8191         * v850-tdep.c (v850_gdbarch_init): Ditto.
8192         * sh-tdep.c (sh_gdbarch_init): Ditto.
8193         * s390-tdep.c (s390_gdbarch_init): Ditto.
8194         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8195         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8196         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8197         * mips-tdep.c (mips_gdbarch_init): Ditto.
8198         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8199         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8200         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8201         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8202         * i386-tdep.c (i386_gdbarch_init): Ditto.
8203         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8204         * frv-tdep.c (frv_gdbarch_init): Ditto.
8205         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8206         * cris-tdep.c (cris_gdbarch_init): Ditto.
8207         * avr-tdep.c (avr_gdbarch_init): Ditto.
8208         * arm-tdep.c (arm_gdbarch_init): Ditto.
8209         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8210         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8211         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8212         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8213         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
8214         call_dummy_stack_adjust_p.
8215         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8216         (CALL_DUMMY_STACK_ADJUST): Delete macro.
8217         * sparc-tdep.c (sparc32_push_arguments): Update.
8218         * valops.c (hand_function_call): Update.
8219
8220 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
8221
8222         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8223         set_gdbarch_char_signed.
8224
8225 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8226
8227         PR cli/548
8228         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8229
8230 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8231
8232         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8233         (_initialize_arm_tdep): Don't set tm_print_insn.
8234
8235 2003-03-24  Adam Fedor  <fedor@gnu.org>
8236
8237         * Makefile.in (YYOBJ): Add objc-exp.tab.o
8238         * objc-lang.h: Add multiple inclusion protection.
8239         (start_msglist, add_msglist, end_msglist): Additional declarations.
8240
8241 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
8242
8243         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8244         value was renamed to ARM_FLOAT_SOFT_FPA.
8245
8246 2003-03-23  Andrew Cagney  <cagney@redhat.com>
8247
8248         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8249         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8250         * gdbarch.h, gdbarch.c: Regenerate.
8251         * valops.c (hand_function_call): Update.
8252         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8253         * frame.c (legacy_saved_regs_this_id): Update.
8254         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8255         * dummy-frame.h: Update.
8256         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8257         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8258         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8259         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8260         * config/m68k/tm-sun3.h: Update.
8261         * blockframe.c (inside_main_func, frame_chain_valid): Update.
8262         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8263         * x86-64-tdep.c (x86_64_init_abi): Update.
8264         * vax-tdep.c (vax_gdbarch_init): Update.
8265         * v850-tdep.c (v850_gdbarch_init): Update.
8266         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8267         * sh-tdep.c (sh_gdbarch_init): Update.
8268         * s390-tdep.c (s390_gdbarch_init): Update.
8269         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8270         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8271         (frame_get_saved_regs): Update.
8272         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8273         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8274         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8275         * mips-tdep.c (mips_gdbarch_init): Update.
8276         * mcore-tdep.c (mcore_gdbarch_init): Update.
8277         * m68k-tdep.c (m68k_gdbarch_init): Update.
8278         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8279         * ia64-tdep.c (ia64_gdbarch_init): Update.
8280         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8281         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8282         (i386_interix_back_one_frame): Update.
8283         * hppa-tdep.c (hppa_gdbarch_init): Update.
8284         (hppa_init_extra_frame_info): Update.
8285         * h8300-tdep.c (h8300_gdbarch_init): Update.
8286         * frv-tdep.c (frv_gdbarch_init): Update.
8287         * cris-tdep.c (cris_gdbarch_init): Update.
8288         * avr-tdep.c (avr_gdbarch_init): Update.
8289         * arm-tdep.c (arm_gdbarch_init): Update.
8290         * alpha-tdep.c (alpha_gdbarch_init): Update.
8291
8292 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8293
8294         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8295         (arm_get_fp_model): Declare.
8296         * arm-tdep.c (fp_model_strings): New string array.
8297         (arm_fp_model, current_fp_model): New variables.
8298         (arm_get_fp_model): New function.
8299         (arm_set_fp): New function.
8300         (set_fp_model_sfunc): New function.
8301         (show_fp_model): New function.
8302         (_initialize_arm_tdep): Add new command to set/show the FPU.
8303         (arm_extract_return_value): Use arm_get_fp_model.
8304         (arm_store_return_value): Likewise.
8305         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
8306         to initialize the floating-point data types.
8307         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8308         model is FPA.
8309
8310 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8311
8312         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
8313         the current setting of each value.
8314         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8315         new_set and new_show.  Use add_setshow_cmd_full and
8316         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
8317         commands and add new version as subcommands of "set/show arm".
8318
8319 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8320
8321         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8322         (set_arm_command, show_arm_command): New functions.
8323         (_initialize_arm_tdep): Add them.
8324         (num_disassembly_options): Renamed from num_flavor_options.
8325         (valid_disassembly_styles): Renamed from valid_flavors.
8326         (disassembly_style): Renamed from disassembly_flavor.
8327         (set_disassembly_style_sfunc): Renamed from
8328         set_disassembly_flavor_sfunc.
8329         (set_disassembly_style): Renamed from set_disassembly_flavor.
8330         (arm_othernames): Updated.
8331         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8332         command.  Add "set/show arm disassembly" commands.  Deprecate
8333         "othernames" command.
8334
8335 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8336
8337         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8338         (arm-tdep.o): Depend on elf_arm_h.
8339
8340 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8341
8342         * Makefile.in (coff_internal_h): Define.
8343         (arm-tdep.o): Update dependencies.
8344
8345 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8346
8347         * arm-tdep.c (prologue_cache): Delete.
8348         (check_prologue_cache, save_prologue_cache): Delete.
8349         (arm_scan_prologue): Don't check or update the prologue_cache.
8350         (arm_gdb_arch_init): Don't initialize it.
8351         (_initialize_arm_tdep): Likewise.
8352
8353 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
8354
8355         * MAINTAINERS (tui): Maintainer of tui code.
8356
8357 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
8358
8359         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8360         (i386-cygwin-tdep.o): Add dependencies.
8361         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8362         * i386-cygwin-tdep.c: New file.
8363         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8364         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8365
8366 2003-03-20  Andrew Cagney  <cagney@redhat.com>
8367
8368         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8369         (handle_inferior_event): Remove code calling
8370         DYNAMIC_TRAMPOLINE_NEXTPC.
8371
8372         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8373         already has a full path.
8374
8375         * main.c (gdb_main): Return 1.
8376         (captured_main): Call error to report an invalid interpreter.
8377
8378         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8379         * alpha-osf1-tdep.c: Include "gdb_string.h".
8380
8381 2003-03-19  J. Brobecker  <brobecker@gnat.com>
8382
8383         Continuing work to convert the hppa targets to multiarch partial.
8384
8385         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8386         method, now that hppa_push_dummy_frame has a conformant prototype.
8387         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8388         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8389         for the switch to multiarch partial.
8390
8391 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
8392
8393         * mdebugread.c (parse_symbol): For stEnd, we're done counting
8394         when iss is issNull.
8395
8396 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8397
8398         * mips-tdep.c (mips_register_name): Fix fencepost error involving
8399         NUM_REGS bounds check.
8400
8401 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8402
8403         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8404         * mips-tdep.c (gdb_assert.h): Include.
8405         (mips_generic_reg_names, mips_processor_reg_names): Make static.
8406         (mips_register_name): Handle integer registers explicitly.  Add
8407         bounds checking.
8408         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8409         (mips_lsi33k_reg_names): Don't list integer registers; they're
8410         handled by mips_register_name() now.
8411         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8412         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8413         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8414         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8415         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8416
8417 2003-03-18  Andrew Cagney  <cagney@redhat.com>
8418
8419         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8420         a void pointer.
8421         * gdbtypes.h (print_scalar_formatted): Update declaration.
8422         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8423
8424 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8425
8426         * infrun.c (observer.h): Add #include.
8427         (normal_stop): Add call to observer_notify_normal_stop.
8428         * Makefile.in (infrun.o): Add dependency on observer.h.
8429
8430 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8431
8432         Continuing work to convert the hppa targets to multiarch partial.
8433         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8434         parameter. Reformat comment.
8435         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8436         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8437         to match new profile.
8438
8439 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8440
8441         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8442         appear to be working in any case.
8443
8444 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8445
8446         * observer.c (observer_test_first_observer): New static variable.
8447         (observer_test_second_observer): Likewise.
8448         (observer_test_third_observer): Likewise.
8449         (observer_test_first_notification_function): New static function.
8450         (observer_test_second_notification_function): Likewise.
8451         (observer_test_third_notification_function): Likewise.
8452
8453 2003-03-17  J. Brobecker  <brobecker@gnat.com>
8454
8455         * hppa-tdep.c (gdb_assert.h): Add missing #include.
8456         * somsolib.c (gdb_assert.h): Likewise.
8457         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8458         (somsolib.o): Likewise.
8459
8460 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8461
8462         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8463         BFD.  Simplify setting of di.endian.
8464
8465 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8466
8467         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8468         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8469
8470         From Elena Zannoni  <ezannoni@redhat.com>
8471         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8472         vector and floating-point parameters.
8473         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8474         convention.
8475         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8476
8477 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
8478
8479         * MAINTAINERS: Remove my name from several maintainership roles.
8480
8481 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8482
8483         Fix frame off-by-one bug.
8484         * frame-unwind.h (frame_this_id_ftype): Replace
8485         frame_unwind_id_ftype.
8486         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8487         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
8488         with "prev_register".
8489         * frame-unwind.c (frame_unwind_find_by_pc): Return
8490         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
8491         comment.
8492         * dummy-frame.c (cached_find_dummy_frame): Delete function.
8493         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8494         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8495         (dummy_frame_unwind): Update.
8496         * sentinel-frame.c (sentinel_frame_prev_register): Replace
8497         sentinel_frame_register_unwind.
8498         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8499         (sentinel_frame_unwinder): Update.
8500         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8501         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8502         * frame.c (create_sentinel_frame): Update. Initialize
8503         "prologue_cache" instead of "unwind_cache".
8504         (frame_register_unwind): Call this frame's prev_register with the
8505         next frame and this frame's prologue cache.
8506         (get_prev_frame): Simplify.  Always call prev frame's this_id with
8507         this frame and prev frame's prologue cache.  Document that this
8508         call is shifted one to the left when compared to the
8509         frame_register_unwind call.
8510         (legacy_saved_regs_prev_register): Replace
8511         frame_saved_regs_register_unwind.
8512         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8513         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8514         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8515         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8516         (d10v_frame_unwind): Update.
8517         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8518         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8519         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8520         "saved_regs" with "this_saved_regs".
8521
8522 2003-03-16  Andrew Cagney  <cagney@redhat.com>
8523
8524         * frame.c (frame_pop): Don't call target_store_registers.  Fix
8525         problem reported by Mark Kettenis.
8526
8527 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
8528
8529         * i386-tdep.c (i386_register_type): Renamed from
8530         i386_register_virtual_type.  Adjust function signature.
8531         (i386_gdbarch_init): Set register_type instead of
8532         deprecated_max_register_raw_size,
8533         deprecated_max_register_virtual_size and register_virtual_type.
8534
8535 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8536
8537         * frame.c (get_prev_frame): When a legacy frame, always call
8538         legacy_get_prev_frame.  Simplify unwind code using assumption that
8539         the unwinder is new.
8540         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8541         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8542         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8543
8544 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8545
8546         * frame.c (get_saved_register): Delete function.
8547         * frame.h (get_saved_register): Delete declaration.
8548         * xstormy16-tdep.c: Update comment.
8549         * regcache.h: Update comments.
8550         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8551         get_saved_register and extract_address, use
8552         frame_read_unsigned_register.
8553         (sparc_frame_saved_pc): Ditto.
8554         (sparc_get_saved_register): Instead of get_saved_register, use
8555         frame_register.
8556         (sparc_pop_frame): Ditto.
8557         * findvar.c: Update comments.
8558         (value_of_register): Call frame_register instead of
8559         get_saved_register.
8560         (value_from_register): Ditto.
8561         * config/sparc/tm-sparc.h: Update comment.
8562         * breakpoint.c: Update comment.
8563
8564 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8565
8566         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8567         GET_SAVED_REGISTER.
8568         * gdbarch.h, gdbarch.c: Re-generate.
8569         * frame.h: Update comments.
8570         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8571         * x86-64-tdep.c (x86_64_init_abi): Update.
8572         * sparc-tdep.c (sparc_gdbarch_init): Update.
8573         * sh-tdep.c (sh_gdbarch_init): Update.
8574         * mips-tdep.c (mips_gdbarch_init): Update.
8575         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8576         * cris-tdep.c (cris_gdbarch_init): Update.
8577         * ia64-tdep.c (ia64_gdbarch_init): Update.
8578         * frame.c (frame_register): Update.
8579         (get_saved_register): Update.
8580         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8581
8582 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8583
8584         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8585         * gdbarch.h, gdbarch.c: Regenerate.
8586         * valops.c (hand_function_call): Update comment.
8587         * stack.c (return_command): Update comment.
8588         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8589         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8590         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8591         * x86-64-tdep.c (x86_64_init_abi): Update.
8592         * vax-tdep.c (vax_gdbarch_init): Update.
8593         * v850-tdep.c (v850_gdbarch_init): Update.
8594         * sparc-tdep.c (sparc_gdbarch_init): Update.
8595         * sh-tdep.c (sh_gdbarch_init): Update.
8596         * s390-tdep.c (s390_gdbarch_init): Update.
8597         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8598         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8599         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8600         * mips-tdep.c (mips_gdbarch_init): Update.
8601         * mcore-tdep.c (mcore_gdbarch_init): Update.
8602         * m68k-tdep.c (m68k_gdbarch_init): Update.
8603         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8604         * ia64-tdep.c (ia64_gdbarch_init): Update.
8605         * i386-tdep.c (i386_gdbarch_init): Update.
8606         * hppa-tdep.c (hppa_gdbarch_init): Update.
8607         * h8300-tdep.c (h8300_gdbarch_init): Update.
8608         * frv-tdep.c (frv_gdbarch_init): Update.
8609         * cris-tdep.c (cris_gdbarch_init): Update.
8610         * avr-tdep.c (avr_gdbarch_init): Update.
8611         * arm-tdep.c (arm_gdbarch_init): Update.
8612         * alpha-tdep.c (alpha_gdbarch_init): Update.
8613
8614 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8615
8616         * frame.c (legacy_frame_p): New function.
8617         (get_prev_frame): Use legacy_frame_p.
8618         * frame.h (legacy_frame_p): Declare.
8619
8620 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8621
8622         * MAINTAINERS (write after approval): Alphabetically
8623         listing corrected.
8624
8625 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8626
8627         * MAINTAINERS (write after approval): Add myself.
8628
8629 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8630
8631         * frame.c (get_prev_frame): Rename the frame parameter to
8632         "this_frame".
8633         (get_next_frame, legacy_get_prev_frame): Ditto.
8634
8635 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8636
8637         * frame.c (get_current_frame): Check target_has_registers before
8638         checking target_has_stack.
8639         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8640         instead of deprecated_selected_frame.
8641         * findvar.c (value_of_register): Pass "frame", not
8642         deprecated_selected_frame, to value_of_builtin_reg.
8643
8644 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8645
8646         * regcache.c (regcache_cooked_write_signed): New function.
8647         (regcache_cooked_write_unsigned): New function.
8648         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8649         (regcache_cooked_read_signed): Fix regnum in range assertion.
8650         * regcache.h (regcache_cooked_write_signed): Declare.
8651         (regcache_cooked_write_unsigned): Declare.
8652
8653 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8654
8655         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8656         * gdbarch.h, gdbarch.c: Re-generate.
8657         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8658         * x86-64-tdep.h: Update.
8659         * x86-64-tdep.c (x86_64_init_abi): Update.
8660         * v850-tdep.c (v850_gdbarch_init): Update.
8661         * sparc-tdep.c (sparc_gdbarch_init): Update.
8662         * sh-tdep.c (sh_gdbarch_init): Update.
8663         * s390-tdep.c (s390_gdbarch_init): Update.
8664         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8665         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8666         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8667         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8668         * mips-tdep.c (mips_gdbarch_init): Update.
8669         * mcore-tdep.c (mcore_gdbarch_init): Update.
8670         * m68k-tdep.c (m68k_gdbarch_init): Update.
8671         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8672         * ia64-tdep.c (ia64_gdbarch_init): Update.
8673         * i386-tdep.c (i386_gdbarch_init): Update.
8674         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8675         * hppa-tdep.c (hppa_gdbarch_init): Update.
8676         * h8300-tdep.c (h8300_gdbarch_init): Update.
8677         * frv-tdep.c (frv_gdbarch_init): Update.
8678         * cris-tdep.c (cris_gdbarch_init): Update.
8679         * avr-tdep.c (avr_gdbarch_init): Update.
8680         * arm-tdep.c (arm_gdbarch_init): Update.
8681         * alpha-tdep.c (alpha_gdbarch_init): Update.
8682         * sh-tdep.c (sh_init_extra_frame_info): Update.
8683         (sh64_init_extra_frame_info): Update.
8684         * ns32knbsd-nat.c (frame_num_args): Update.
8685         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8686         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8687         (xstormy16_frame_chain_valid): Update.
8688         * vax-tdep.c (vax_saved_pc_after_call): Update.
8689         * v850-tdep.c (v850_frame_chain): Update.
8690         (v850_pop_frame): Update.
8691         (v850_init_extra_frame_info): Update.
8692         * sparc-tdep.c (setup_arbitrary_frame): Update.
8693         * ns32k-tdep.c (umax_frame_num_args): Update.
8694         * s390-tdep.c (s390_pop_frame_regular): Update.
8695         * mn10300-tdep.c (mn10300_frame_chain): Update.
8696         (mn10300_pop_frame_regular): Update.
8697         (mn10300_init_extra_frame_info): Update.
8698         * mips-tdep.c (mips_init_frame_pc_first): Update.
8699         (mips_frame_chain): Update.
8700         (mips_pop_frame): Update.
8701         * mcore-tdep.c (mcore_frame_chain): Update.
8702         (mcore_pop_frame): Update.
8703         (mcore_init_extra_frame_info): Update.
8704         * arch-utils.c (init_frame_pc_default): Update.
8705         * m68k-tdep.c (isi_frame_num_args): Update.
8706         (delta68_frame_num_args): Update.
8707         (news_frame_num_args): Update.
8708         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8709         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8710         (alpha_frame_chain): Update.
8711         (alpha_pop_frame): Update.
8712         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8713         (hppa_init_extra_frame_info): Update.
8714         (hppa_frame_chain): Update.
8715         (hppa_frame_chain_valid): Update.
8716         * cris-tdep.c (cris_init_extra_frame_info): Update.
8717         * avr-tdep.c (avr_init_extra_frame_info): Update.
8718         * arm-tdep.c (arm_frame_chain_valid): Update.
8719         (arm_init_extra_frame_info): Update.
8720         (arm_pop_frame): Update.
8721         * frame.c (frame_pc_unwind): Update.
8722         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8723         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8724         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8725         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8726         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8727         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8728
8729 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8730
8731         Eliminate the need for POP_FRAME.
8732         * frame.c (do_frame_unwind_register): New function.
8733         (frame_pop): When no POP_FRAME, pop the frame using register
8734         unwind and a scratch regcache.
8735         (frame_saved_regs_pop): Delete function.
8736         (trad_frame_unwinder): Update.
8737         * d10v-tdep.c (d10v_frame_pop): Delete function.
8738         (d10v_frame_unwind): Update.
8739         * sentinel-frame.c (sentinel_frame_pop): Delete function.
8740         (sentinel_frame_unwinder): Update.
8741         * dummy-frame.c (dummy_frame_pop): Delete function.
8742         (dummy_frame_unwind): Update.
8743         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8744         (struct frame_unwind): Update.
8745
8746 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
8747
8748         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8749         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8750         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8751         Do range checks on register number obtained from debugging info.
8752         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8753         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
8754         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8755         mapping function.
8756         (do_fp_register_row): Fix typo which caused double type to be
8757         used when attempting to unpack a float.
8758
8759 2003-03-11  J. Brobecker  <brobecker@gnat.com>
8760
8761         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8762
8763 2003-03-11  Andrew Cagney  <cagney@redhat.com>
8764
8765         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8766         frame.  Problem found by Corinna Vinschen.
8767
8768 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
8769
8770         * doublest.c (floatformat_from_length): Accept also
8771         the real size of 'long double' type.
8772
8773 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
8774
8775         From Klee Dienes <kdienes@apple.com>:
8776         * breakpoint.c (bpstat_copy): Copy the command lines as well
8777         as the old value, to match what is freed in bpstat_clear.
8778
8779 2003-03-10  David Carlton  <carlton@math.stanford.edu>
8780
8781         * minsyms.c (add_minsym_to_hash_table): Replace
8782         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8783         (compare_minimal_symbols, compact_minimal_symbols)
8784         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8785         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8786         of DEPRECATED_SYMBOL_MATCHES_NAME.
8787         (lookup_minimal_symbol_solib_trampoline): Ditto.
8788
8789 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8790
8791         * regcache.h (regcache_cooked_read_ftype): Define.
8792         (regcache_save, regcache_restore): Add a cooked_read parameter.
8793         * regcache.c (regcache_save, regcache_restore): Update.
8794         (do_cooked_read): New function.
8795         (regcache_cpy): Pass do_cooked_read to regcache_save and
8796         regcache_restore.
8797
8798 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8799
8800         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8801         * gdbarch.h, gdbarch.c: Re-generate.
8802         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8803         * x86-64-tdep.h: Update.
8804         * x86-64-tdep.c (x86_64_init_abi): Update.
8805         * v850-tdep.c (v850_gdbarch_init): Update.
8806         * sparc-tdep.c (sparc_gdbarch_init): Update.
8807         * sh-tdep.c (sh_gdbarch_init): Update.
8808         * s390-tdep.c (s390_gdbarch_init): Update.
8809         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8810         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8811         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8812         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8813         * mips-tdep.c (mips_gdbarch_init): Update.
8814         * mcore-tdep.c (mcore_gdbarch_init): Update.
8815         * m68k-tdep.c (m68k_gdbarch_init): Update.
8816         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8817         * ia64-tdep.c (ia64_gdbarch_init): Update.
8818         * i386-tdep.c (i386_gdbarch_init): Update.
8819         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8820         * hppa-tdep.c (hppa_gdbarch_init): Update.
8821         * h8300-tdep.c (h8300_gdbarch_init): Update.
8822         * frv-tdep.c (frv_gdbarch_init): Update.
8823         * cris-tdep.c (cris_gdbarch_init): Update.
8824         * avr-tdep.c (avr_gdbarch_init): Update.
8825         * arm-tdep.c (arm_gdbarch_init): Update.
8826         * alpha-tdep.c (alpha_gdbarch_init): Update.
8827         * sh-tdep.c (sh_init_extra_frame_info): Update.
8828         (sh64_init_extra_frame_info): Update.
8829         * ns32knbsd-nat.c (frame_num_args): Update.
8830         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8831         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8832         (xstormy16_frame_chain_valid): Update.
8833         * vax-tdep.c (vax_saved_pc_after_call): Update.
8834         * v850-tdep.c (v850_frame_chain): Update.
8835         (v850_pop_frame): Update.
8836         (v850_init_extra_frame_info): Update.
8837         * sparc-tdep.c (setup_arbitrary_frame): Update.
8838         * ns32k-tdep.c (umax_frame_num_args): Update.
8839         * s390-tdep.c (s390_pop_frame_regular): Update.
8840         * mn10300-tdep.c (mn10300_frame_chain): Update.
8841         (mn10300_pop_frame_regular): Update.
8842         (mn10300_init_extra_frame_info): Update.
8843         * mips-tdep.c (mips_init_frame_pc_first): Update.
8844         (mips_frame_chain): Update.
8845         (mips_pop_frame): Update.
8846         * mcore-tdep.c (mcore_frame_chain): Update.
8847         (mcore_pop_frame): Update.
8848         (mcore_init_extra_frame_info): Update.
8849         * arch-utils.c (init_frame_pc_default): Update.
8850         * m68k-tdep.c (isi_frame_num_args): Update.
8851         (delta68_frame_num_args): Update.
8852         (news_frame_num_args): Update.
8853         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8854         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8855         (alpha_frame_chain): Update.
8856         (alpha_pop_frame): Update.
8857         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8858         (hppa_init_extra_frame_info): Update.
8859         (hppa_frame_chain): Update.
8860         (hppa_frame_chain_valid): Update.
8861         * cris-tdep.c (cris_init_extra_frame_info): Update.
8862         * avr-tdep.c (avr_init_extra_frame_info): Update.
8863         * arm-tdep.c (arm_frame_chain_valid): Update.
8864         (arm_init_extra_frame_info): Update.
8865         (arm_pop_frame): Update.
8866         * frame.c (frame_pc_unwind): Update.
8867         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8868         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8869         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8870         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8871         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8872         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8873
8874 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8875
8876         * gdbarch.sh (gdbarch_unwind_pc): New method.
8877         * gdbarch.h, gdbarch.c: Regenerate.
8878         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
8879         but use read_pc and FRAME_SAVED_PC as fall backs.
8880         (frame_saved_regs_pc_unwind): Delete function.
8881         (trad_frame_unwinder): Update.
8882         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8883         (struct frame_unwind): Update.
8884         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8885         (dummy_frame_unwind): Update.
8886         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8887         (sentinel_frame_unwinder): Update.
8888         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8889         (d10v_frame_unwind): Update.
8890         (d10v_unwind_pc): New function.
8891         (d10v_gdbarch_init): Set unwind_pc.
8892
8893 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8894
8895         * gdbarch.h: Re-generate.
8896
8897         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8898         PC.
8899         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8900         the PC register.
8901
8902 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
8903
8904         * gdbarch.sh (save_dummy_frame_tos): Add comment.
8905
8906 2003-03-08  Andrew Cagney  <cagney@redhat.com>
8907
8908         * cli-out.c: Update copyright.
8909         (cli_out_data): Define typedef.  Use instead of ui_out_data.
8910
8911 2003-03-08  Andrew Cagney  <cagney@redhat.com>
8912
8913         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8914         the result.
8915
8916 2003-03-07  Andrew Cagney  <cagney@redhat.com>
8917
8918         * gdbarch.sh: Don't generate two macro definitions when an
8919         undefined macro taking no arguments.
8920         * gdbarch.h: Regenerate.
8921
8922 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
8923
8924         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8925         (x86_64_unwind_dummy_id): New functions.
8926         (x86_64_init_abi): Register these two new functions.
8927
8928 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
8929
8930         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8931         (x86_64_skip_prologue): Move prologue detection to
8932         separate function.
8933         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8934
8935 2003-03-05  Andrew Cagney  <cagney@redhat.com>
8936
8937         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8938         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8939         * frame.c (get_prev_frame): Restructure the frame ID unwind code
8940         to use unwind_dummy_id when a dummy frame.
8941         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8942         predicate.
8943         * gdbarch.h, gdbarch.c: Regneerate.
8944
8945 2003-03-05  Andrew Cagney  <cagney@redhat.com>
8946
8947         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8948         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8949         Do not use d10v_read_sp or d10v_read_fp when obtaining register
8950         values.
8951
8952 2003-03-05  Andrew Cagney  <cagney@redhat.com>
8953
8954         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8955         (struct d10v_unwind_cache): Delete field "frameless".  Replace
8956         "next_addr" with "sp_offset".  Add "r11_offset".
8957         (d10v_frame_unwind_cache): Update.
8958         (prologue_find_regs): Update.  When "mv r11, sp", save the
8959         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
8960         RN was saved in r11_offset.
8961
8962 2003-03-05  Andrew Cagney  <cagney@redhat.com>
8963
8964         * frame.c (deprecated_update_frame_pc_hack): Also update the the
8965         cached PC value in the next frame.
8966
8967 2003-03-05  Andrew Cagney  <cagney@redhat.com>
8968
8969         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8970         "id_unwind_cache" with "id".
8971         (frame_id_unwind): Delete declaration.
8972         * frame.c (frame_id_unwind): Delete function.
8973         (get_prev_frame): Call the frame id unwind method directly.  Store
8974         the returned next frame's ID value in NEXT_FRAME.  Note that there
8975         is a problem with the wrong unwind ID being called with the wrong
8976         unwind cache.
8977
8978 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
8979
8980         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8981
8982 2003-03-05  James Ingham <jingham@apple.com>
8983             Daniel Jacobowitz  <drow@mvista.com>
8984
8985         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8986         (auto_cp_abi): New variable.
8987         (current_cp_abi, num_cp_abis): Make static.
8988         (CP_ABI_MAX): Define.
8989         (cp_abis): Turn into an array.
8990         (value_virtual_fn_field): Fix formatting.
8991         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
8992         takes a pointer.
8993         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8994         (list_cp_abis, _initialize_cp_abi): New functions.
8995         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
8996         declarations for cp_abis, num_cp_abis, current_cp_abi, and
8997         switch_to_cp_abi.  Update prototype for register_cp_abi.
8998         * Makefile.in (cp-abi.o): Update dependencies.
8999         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9000         instead of switch_to_cp_abi.
9001         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
9002         register_cp_abi.
9003         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9004         register_cp_abi.
9005         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9006
9007 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
9008
9009         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9010         * dwarf2loc.c: Include "regcache.h".
9011         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
9012         register_size.
9013         * Makefile.in (dwarf2loc.o): Update dependencies.
9014
9015 2003-03-04  Theodore A. Roth  <troth@openavr.org>
9016
9017         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9018         number of io registers reported by remote target is not a multiple of
9019         step.
9020
9021 2003-03-04  David Carlton  <carlton@math.stanford.edu>
9022
9023         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9024         (lookup_symbol_aux_psymtabs): Update call to
9025         lookup_partial_symbol.
9026         (lookup_transparent_type, find_main_psymtab)
9027         (make_symbol_overload_list): Ditto.
9028
9029 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
9030
9031         * MAINTAINERS (Write after approval): Update my email address.
9032
9033 2003-03-03  Andrew Cagney  <cagney@redhat.com>
9034
9035         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9036         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9037         predicate.  Replace MAX_REGISTER_RAW_SIZE.
9038         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9039         MAX_REGISTER_VIRTUAL_SIZE.
9040         * regcache.c (legacy_max_register_raw_size): New function.
9041         (legacy_max_register_virtual_size): New function.
9042         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9043         (MAX_REGISTER_RAW_SIZE): Define.
9044         (legacy_max_register_raw_size): Declare.
9045         (legacy_max_register_virtual_size): Declare.
9046         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9047         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9048         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9049         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9050         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9051         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9052         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9053         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9054         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9055         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9056         * vax-tdep.c (vax_gdbarch_init): Update.
9057         * v850-tdep.c (v850_gdbarch_init): Update.
9058         * sparc-tdep.c (sparc_gdbarch_init): Update.
9059         * sh-tdep.c (sh_gdbarch_init): Update.
9060         * s390-tdep.c (s390_gdbarch_init): Update.
9061         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9062         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9063         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9064         * mips-tdep.c (mips_gdbarch_init): Update.
9065         * mcore-tdep.c (mcore_gdbarch_init): Update.
9066         * m68k-tdep.c (m68k_gdbarch_init): Update.
9067         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9068         * ia64-tdep.c (ia64_gdbarch_init): Update.
9069         * i386-tdep.c (i386_gdbarch_init): Update.
9070         * hppa-tdep.c (hppa_gdbarch_init): Update.
9071         * h8300-tdep.c (h8300_gdbarch_init): Update.
9072         * frv-tdep.c (frv_gdbarch_init): Update.
9073         * cris-tdep.c (cris_gdbarch_init): Update.
9074         * avr-tdep.c (avr_gdbarch_init): Update.
9075         * arm-tdep.c (arm_gdbarch_init): Update.
9076         * alpha-tdep.c (alpha_gdbarch_init): Update.
9077         * d10v-tdep.c (d10v_gdbarch_init): Do not set
9078         max_register_raw_size or max_register_virtual_size.
9079
9080 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9081
9082         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9083         SYMBOL_MATCHES_NAME, add comment.
9084         (SYMBOL_MATCHES_NATURAL_NAME): New.
9085         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9086         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9087         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9088         * symtab.c (lookup_partial_symbol): Use
9089         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
9090         unhelpful comment.
9091         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9092         SYMBOL_MATCHES_NAME.
9093         Fix for PR c++/33.
9094
9095 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9096
9097         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9098         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9099         by regexp matching against SYMBOL_NATURAL_NAME.
9100
9101 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9102
9103         * linespec.c (find_method): Extract code into collect_methods.
9104         (collect_methods): New.
9105
9106 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
9107
9108         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9109         get_frame_base.
9110
9111         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9112         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9113
9114 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9115
9116         * arch-utils.c (generic_register_byte): Fix to use the loop index
9117         and not regnum when summing the size of all registers up to regnum.
9118
9119 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9120
9121         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9122         FRAME_INIT_SAVED_REGS.
9123         * gdbarch.h, gdbarch.c: Regenerate.
9124         * stack.c (frame_info): Update.
9125         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9126         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9127         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9128         * ns32k-tdep.c (ns32k_pop_frame): Update.
9129         * mips-tdep.c (mips_pop_frame): Update.
9130         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9131         * ia64-tdep.c (ia64_frame_chain): Update.
9132         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9133         (ia64_frameless_function_invocation): Update.
9134         (ia64_init_extra_frame_info): Update.
9135         (ia64_pop_frame_regular): Update.
9136         * frame.h (struct frame_info): Update comment.
9137         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9138         * frame.c (frame_saved_regs_register_unwind): Update.
9139         (frame_saved_regs_register_unwind): Update.
9140         (deprecated_generic_get_saved_register): Update.
9141         * cris-tdep.c: Update comment.
9142         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9143         Rename macro.
9144         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9145         * x86-64-tdep.c (x86_64_init_abi): Update.
9146         * vax-tdep.c (vax_gdbarch_init): Update.
9147         * v850-tdep.c (v850_gdbarch_init): Update.
9148         * sparc-tdep.c (sparc_gdbarch_init): Update.
9149         * sh-tdep.c (sh_gdbarch_init): Update.
9150         * s390-tdep.c (s390_gdbarch_init): Update.
9151         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9152         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9153         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9154         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9155         * mips-tdep.c (mips_gdbarch_init): Update.
9156         * mcore-tdep.c (mcore_gdbarch_init): Update.
9157         * m68k-tdep.c (m68k_gdbarch_init): Update.
9158         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9159         * ia64-tdep.c (ia64_gdbarch_init): Update.
9160         * i386-tdep.c (i386_gdbarch_init): Update.
9161         * frv-tdep.c (frv_gdbarch_init): Update.
9162         * avr-tdep.c (avr_gdbarch_init): Update.
9163         * arm-tdep.c (arm_gdbarch_init): Update.
9164         * alpha-tdep.c (alpha_gdbarch_init): Update.
9165
9166 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9167
9168         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9169         option enum and switch.  When no windows, set the interpreter to
9170         INTERP_CONSOLE.
9171
9172 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9173
9174         * main.c (captured_main): Replace magic option characters with an
9175         enum.
9176
9177 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9178
9179         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9180         INIT_EXTRA_FRAME_INFO.
9181         * gdbarch.h, gdbarch.c: Regenerate.
9182         * arm-tdep.c: Update comments.
9183         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9184         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9185         * frame.h, avr-tdep.c: Ditto.
9186         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9187         (create_new_frame, legacy_get_prev_frame): Ditto.
9188         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9189         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9190         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9191         deprecated_init_extra_frame_info instead of init_extra_frame_info.
9192         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9193         * v850-tdep.c (v850_gdbarch_init): Ditto.
9194         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9195         * sh-tdep.c (sh_gdbarch_init): Ditto.
9196         * s390-tdep.c (s390_gdbarch_init): Ditto.
9197         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9198         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9199         * mips-tdep.c (mips_gdbarch_init): Ditto.
9200         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9201         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9202         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9203         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9204         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9205         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9206         * frv-tdep.c (frv_gdbarch_init): Ditto.
9207         * cris-tdep.c (cris_gdbarch_init): Ditto.
9208         * avr-tdep.c (avr_gdbarch_init): Ditto.
9209         * arm-tdep.c (arm_gdbarch_init): Ditto.
9210         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9211         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9212
9213 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9214
9215         * gdbarch.sh (register_type): New function with predicate.
9216         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9217         * gdbarch.h, gdbarch.c: Re-generate.
9218         * arch-utils.c (generic_register_byte): Use generic_register_size.
9219         (generic_register_size): When available, use
9220         gdbarch_register_type.
9221         * regcache.c (init_regcache_descr): When available, initialize the
9222         register type array using gdbarch_register_type.  If the
9223         architecture supplies gdbarch_register_type, do not use the legacy
9224         regcache layout.
9225         * d10v-tdep.c (d10v_register_type): Replace
9226         d10v_register_virtual_type.
9227         (d10v_gdbarch_init): Set register_type instead of
9228         register_virtual_type.
9229
9230 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9231
9232         * Makefile.in (ax-gdb.o): Update dependencies.
9233         * ax-gdb.c: Include "regcache.h".
9234         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9235         * findvar.c (value_of_register): Ditto.
9236         * infcmd.c (default_print_registers_info): Ditto.
9237
9238 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9239
9240         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9241         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9242
9243 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9244
9245         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9246         of STREQ.
9247
9248 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
9249
9250         * Makefile.in (dwarf2loc.o): Update dependencies.
9251         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9252         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9253         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9254         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9255         (locexpr_tracepoint_var_ref): New function.
9256         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9257
9258 2003-02-28  Andrew Cagney  <cagney@redhat.com>
9259
9260         * regcache.c (register_size): New function.
9261         * regcache.h (register_size): Declare
9262         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9263         max_register_size instead of MAX_REGISTER_RAW_SIZE.
9264
9265 2003-02-28  David Carlton  <carlton@math.stanford.edu>
9266
9267         * linespec.c (decode_compound): Extract code into find_method.
9268         (find_method): New.
9269
9270 2003-02-28  J. Brobecker  <brobecker@gnat.com>
9271
9272         * Makefile.in: Add rules to build and link in observer.o.
9273
9274 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9275
9276         * observer.c: Minor comments edits.
9277
9278 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9279
9280         * observer.h, observer.c: New file.
9281
9282 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9283
9284         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9285
9286 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
9287
9288         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9289         (M6812_OP_STS_EXT): Likewise.
9290         (m6811_prologue): Use the above to recognize prologue.
9291         (m6812_prologue): Likewise.
9292
9293 2003-02-27  David Carlton  <carlton@math.stanford.edu>
9294
9295         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9296         SYMBOL_PRINT_NAME.
9297         (compare_psymbols): Ditto.
9298         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9299
9300 2003-02-27  Michael Snyder  <msnyder@redhat.com>
9301
9302         * f-lang.c (build_fortran_types): New function.
9303         (_initialize_f_language): Gdbarch-register built-in fortran types.
9304         * doublest.c (extract_floating): Fix warning text.
9305
9306 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9307
9308         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9309         predicate.  Replaces PUSH_DUMMY_FRAME.
9310         * gdbarch.h, gdbarch.c: Regnerate.
9311         * valops.c (hand_function_call): Update.  Call
9312         generic_push_dummy_frame directly.
9313         * vax-tdep.c (vax_gdbarch_init): Update.
9314         * sparc-tdep.c (sparc_gdbarch_init): Update.
9315         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9316         * m68k-tdep.c (m68k_gdbarch_init): Update.
9317         * hppa-tdep.c (hppa_gdbarch_init): Update.
9318         * alpha-tdep.c (alpha_gdbarch_init): Update.
9319         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9320         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9321         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9322         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9323         push_dummy_frame to generic_push_dummy_frame.
9324         * v850-tdep.c (v850_gdbarch_init): Ditto.
9325         * sh-tdep.c (sh_gdbarch_init): Ditto.
9326         * s390-tdep.c (s390_gdbarch_init): Ditto.
9327         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9328         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9329         * mips-tdep.c (mips_gdbarch_init): Ditto.
9330         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9331         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9332         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9333         * i386-tdep.c (i386_gdbarch_init): Ditto.
9334         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9335         * frv-tdep.c (frv_gdbarch_init): Ditto.
9336         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9337         * cris-tdep.c (cris_gdbarch_init): Ditto.
9338         * avr-tdep.c (avr_gdbarch_init): Ditto.
9339         * arm-tdep.c (arm_gdbarch_init): Ditto.
9340
9341 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
9342
9343         * mips-tdep.c (show_mips_abi): New function.
9344         (_initialize_mips_tdep): Use show_mips_abi() to implement the
9345         command ``show mips abi''.
9346
9347 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9348
9349         From Elena Zannoni  <ezannoni@redhat.com>
9350         * dbxread.c (process_one_symbol): Only record line 0 if one or
9351         more sline entries have been seen for the function.
9352
9353 2003-02-26  Michael Chastain  <mec@shout.net>
9354
9355         * configure: Regenerate with autoconf 000227.
9356
9357 2003-02-26  Michael Chastain  <mec@shout.net>
9358
9359         Close PR build/660.
9360         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9361         for old libc5/glibc.
9362         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9363
9364 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
9365
9366         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9367         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9368
9369 2003-02-26  Michael Chastain  <mec@shout.net>
9370
9371         * configure.in: New variable HAVE_UINTPTR_T.
9372         * configure, config.in: Regenerated.
9373
9374 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
9375
9376         Fix PR build/1097.
9377         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9378
9379 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9380
9381         * frame.c (get_prev_frame): Add comment on check for
9382         inside_entry_func. Only check for inside_entry_file when not a
9383         dummy and not a sentinel.  Check that the new frame is not inner
9384         to the old frame.
9385
9386 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9387
9388         * frame.c (frame_debug): New variable.
9389         (_initialize_frame): Add "set/show debug frame" command.
9390         (get_prev_frame): When frame_debug, print reason why unwind
9391         failed.
9392
9393 2003-02-25  Michael Chastain  <mec@shout.net>
9394
9395         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9396         to avoid uintptr_t definition problems.
9397
9398 2003-02-25  David Carlton  <carlton@math.stanford.edu>
9399
9400         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9401         (SYMBOL_LINKAGE_NAME): Ditto.
9402         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9403         SYMBOL_LINKAGE_NAME.
9404         (struct general_symbol_info): Expand comment.
9405         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9406         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9407         (SYMBOL_MATCHES_REGEXP): Ditto.
9408         * symtab.c (symbol_natural_name): New function.
9409         * objfiles.h: Replace all uses of SYMBOL_NAME by
9410         DEPRECATED_SYMBOL_NAME.
9411         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9412         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9413         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9414         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9415         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9416         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9417         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9418         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9419         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9420         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9421         * ada-exp.y: Ditto.
9422         * ada-exp.y: Update copyright.
9423         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9424         * cp-valprint.c: Ditto.
9425
9426 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
9427
9428         * infptrace.c (detach): Do not flag error if ptrace detach fails
9429         and errno is set to ESRCH.
9430
9431 2003-02-24  Andrew Cagney  <cagney@redhat.com>
9432
9433         * infptrace.c (udot_info): Change type of udot_off to long.  Use
9434         paddr when printing udot_off's value.
9435
9436 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9437
9438         * symtab.c (make_symbol_overload_list): Only read in partial
9439         symtabs containing a matching partial symbol.
9440
9441 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9442
9443         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9444         do the comparison, not strcmp.
9445         * symfile.c (compare_psymbols): Ditto.
9446         * defs.h: Declare strcmp_iw_ordered.
9447         * utils.c (strcmp_iw_ordered): New function.
9448
9449 2003-02-24  Jim Blandy  <jimb@redhat.com>
9450
9451         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9452         support, shared libs): Remove my name from here, to better reflect
9453         reality.
9454
9455 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9456
9457         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9458         (target_ops): Add to_have_continuable_watchpoint.
9459         * target.c (update_current_target): Add INHERIT line for
9460         to_have_continuable_watchpoint.
9461         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9462         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9463         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9464         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9465
9466 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
9467
9468         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9469         maintainership.
9470
9471 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9472
9473         * solib.c (solib_open): Call target defined search function after
9474         failing with solib-search-path.
9475         * solist.h (target_so_ops): Add find_and_open_solib function hook and
9476         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9477
9478 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9479
9480         * MAINTAINERS: Add myself to Write After section.
9481
9482 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
9483
9484         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9485
9486 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
9487
9488         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9489         (m68hc11_add_reggroups): New function.
9490         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9491         (m68hc11_gdbarch_init): Install the reggroups.
9492         (_initialize_m68hc11_tdep): Initialize them.
9493
9494 2003-02-21  James E Wilson  <wilson@tuliptree.org>
9495
9496         * MAINTAINERS: Update my email address.
9497
9498 2003-02-21  David Carlton  <carlton@math.stanford.edu>
9499
9500         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9501
9502 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
9503
9504         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9505         * symtab.h: Add opaque declarations of struct axs_value and
9506         struct agent_expr.
9507         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9508         (struct location_funcs): New type.
9509         (struct symbol): Add "loc" to aux_value.
9510         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9511         * dwarf2read.c: Include "dwarf2expr.h".
9512         (dwarf2_symbol_mark_computed): New function.
9513         (read_func_scope): Use it.
9514         (var_decode_location): New function.
9515         (new_symbol): Use it.
9516         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9517
9518         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9519         (dwarf2expr_h, dwarf2loc_h): New variables.
9520         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9521         (dwarf2expr.o, dwarf2loc.o): New rules.
9522         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9523         * buildsym.c (finish_block): Handle LOC_COMPUTED and
9524         LOC_COMPUTED_ARG.
9525         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9526         * m2-exp.y (yylex): Likewise.
9527         * printcmd.c (address_info, print_frame_args): Likewise.
9528         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9529         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9530         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9531         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9532         * symtab.c (lookup_block_symbol): Likewise.
9533
9534 2003-02-20  Adam Fedor  <fedor@gnu.org>
9535
9536         * symtab.h: Remove objc_specific struct
9537         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9538         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9539         Have language_objc use cplus_specific struct.
9540
9541 2003-02-20  Tom Tromey  <tromey@redhat.com>
9542
9543         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9544         TYPE_NAME, when printing a String value.  PR java/1075.
9545
9546 2003-02-20  Adam Fedor  <fedor@gnu.org>
9547
9548         * objc-lang.h (find_methods): Remove declaration.
9549         * objc-lang.c (find_methods): Make static.
9550
9551 2003-02-20  Christopher Faylor  <cgf@redhat.com>
9552
9553         * win32-nat.c (get_image_name): Check return value from
9554         ReadProcessMemory.
9555         (child_xfer_memory): Ditto.
9556
9557 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
9558
9559         * configure.in (TARGET_SYSTEM_ROOT): Set default to
9560         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
9561         '${exec_prefix}' (in addition to the expansion thereof) as
9562         relocatable.
9563         * configure: Rebuilt.
9564
9565 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9566
9567         * symtab.c (search_symbols): Revert the search_symbols part of my
9568         2002-12-23 patch.  Add comment.
9569
9570 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9571
9572         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9573         * dbxread.c (elfstab_build_psymtabs): Don't call
9574         install_minimal_symbols.
9575         (stabsect_build_psymtabs): Likewise.
9576         * elfread.c (elf_symfile_read): Call install_minimal_symbols
9577         earlier.
9578         * somread.c (som_symfile_read): Call install_minimal_symbols
9579         and do_cleanups earlier.
9580         * nlmread.c (nlm_symfile_read): Likewise.
9581         * mdebugread.c (elfmdebug_build_psymtabs): Call
9582         install_minimal_symbols and make appropriate cleanups.
9583
9584 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9585
9586         * solib.c (reload_shared_libraries): New function.
9587         (_initialize_solib): Add callbacks for ``set solib-search-path''
9588         and ``set solib-absolute-prefix''.
9589
9590 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9591
9592         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9593         expand comment.
9594         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9595         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9596         * ada-typeprint.c (ada_typedef_print): Ditto.
9597         * ax-gdb.c (gen_var_ref): Ditto.
9598         * breakpoint.c (print_one_breakpoint): Ditto.
9599         * buildsym.c (finish_block): Ditto.
9600         * c-valprint.c (c_val_print): Ditto.
9601         * expprint.c (print_subexp): Ditto.
9602         * findvar.c (locate_var_value): Ditto.
9603         * infcmd.c (jump_command): Ditto.
9604         * linespec.c (decode_line_2, decode_compound): Ditto.
9605         * maint.c (maintenance_translate_address): Ditto.
9606         * objc-lang.c (compare_selectors, compare_classes): Ditto.
9607         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9608         Ditto.
9609         * p-valprint.c (pascal_val_print): Ditto.
9610         * stabsread.c (define_symbol): Ditto.
9611         * stack.c (print_frame, frame_info, print_block_frame_locals)
9612         (print_frame_arg_vars, return_command): Ditto.
9613         * symfile.c (compare_symbols, compare_psymbols): Ditto.
9614         * symmisc.c (print_symbol): Ditto.
9615         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9616         (compare_search_syms, print_symbol_info, print_msymbol_info)
9617         (rbreak_command): Ditto.
9618         * tracepoint.c (tracepoints_info): Ditto.
9619         * typeprint.c (typedef_print): Ditto.
9620         * valops.c (value_of_variable, hand_function_call): Ditto.
9621         * cli/cli-cmds.c (edit_command, list_command): Ditto.
9622         * ada-typeprint.c: Update Copyright.
9623         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9624         * tracepoint.c, cli/cli-cmds.c: Ditto.
9625
9626 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9627
9628         * frame.c (generic_unwind_get_saved_register): Make non-static.
9629         * frame.h (generic_unwind_get_saved_register): Declare.
9630         * mips-tdep.c (read_next_frame_reg): Fetch register from
9631         current regcache when frame is NULL.
9632         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9633         that must be NULL.
9634         (mips_get_saved_register): Call generic_unwind_get_saved_register()
9635         instead of frame_register_unwind().
9636
9637 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9638
9639         * remote-sim.c (gdbsim_insert_breakpoint)
9640         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9641         code.
9642
9643 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9644
9645         * remote.c (_initialize_remote): Add commands "set/show remote
9646         hardware-watchpoint-limit" and "set/show remote
9647         hardware-breakpoint-limit".
9648         (remote_hw_watchpoint_limit): Initialize to -1.
9649         (remote_hw_breakpoint_limit): Ditto.
9650         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9651
9652 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
9653
9654         * coff-pe-read.c: New file - support reading of minimal symbols from a
9655         portable executable using the export table.
9656         * coff-pe-read.h: New file.
9657         * coffread.c: Include coff-pe-read.h.
9658         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9659         debugging symbols found.
9660         * Makefile.in (SFILES): Add coff-pe-read.o.
9661         (coff_pe_read_h): Define.
9662         (COMMON_OBS): Add coff-pe-read.o.
9663         (coffread.o): Add coff_pe_read_h dependency.
9664         (coff-pe-read.o): New target.
9665
9666 2003-02-19  David Carlton  <carlton@math.stanford.edu>
9667
9668         * Makefile.in (SFILES): Add block.c.
9669         (block_h): New.
9670         (COMMON_OBS): Add block.o.
9671         (block.o): New.
9672         (x86-64-tdep.o): Add $(block_h).
9673         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9674         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9675         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9676         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9677         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9678         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9679         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9680         * value.h: Add opaque declaration for struct block.
9681         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9682         * ada-lang.h: Ditto.
9683         * x86-64-tdep.c: #include "block.h"
9684         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9685         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9686         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9687         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9688         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9689         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9690         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9691         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9692         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9693         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9694         * symtab.c (block_function): Ditto.
9695         (contained_in): Ditto.
9696         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9697         block.h.  Add opaque declaration for struct block.
9698         * symtab.h: Move block_function and contained_in declarations to
9699         block.h.  Add opaque declarations for struct block, struct
9700         blockvector.
9701         (struct block): Move to block.h.
9702         (struct blockvector): Ditto.
9703         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9704         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9705         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9706         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9707         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9708         Ditto.
9709         * block.c: New file.
9710         * block.h: New file.
9711
9712 2003-02-19  Theodore A. Roth  <troth@openavr.org>
9713
9714         * avr-tdep.c (avr_extract_return_value): Remove function.
9715         (avr_store_return_value): Remove function.
9716         (avr_extract_struct_value_address): Remove function.
9717         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9718
9719 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
9720
9721         * rs6000-tdep.c: Include "gdb_assert.h".
9722         (registers_e500): Add "acc" and "spefscr".
9723         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9724         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9725         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
9726         really is "r0".
9727         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9728
9729 2003-02-18  Keith Seitz  <keiths@redhat.com>
9730
9731         * Makefile.in: Add gdbtk-interps.c.
9732
9733 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
9734
9735         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9736         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9737
9738 2003-02-18  Andrew Cagney  <cagney@redhat.com>
9739
9740         * symtab.h (struct objfile): Add opaque declaration.
9741
9742 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
9743
9744         From Jim Ingham   <jingham@apple.com>:
9745         * dbxread.c (process_one_symbol): Use last_function_start rather
9746         than function_start_offset to find the real beginning of the
9747         current function.  The latter is just the text section offset on
9748         some systems, the former is always the real function start.
9749
9750 2003-02-17  Andrew Cagney  <cagney@redhat.com>
9751
9752         * configure.in: Revert ${target} != ${host}.
9753
9754 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
9755
9756         * configure.in (Makefile): Use the test ${target} != ${host},
9757         instead of the absence of the "nm.h" file, to determine of the
9758         configuration non-native.
9759         * configure: Regenerate.
9760
9761 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
9762
9763         From Brian Ford  <ford@vss.fsi.com>
9764
9765         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9766         conditionalize tui_active test.
9767         (lookup_cmd_1): Ditto.
9768
9769 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
9770
9771         * configure.in: Add check for _etext.
9772         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9773         available.
9774         * config.in, configure: regenerated.
9775
9776 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
9777
9778         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9779
9780 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
9781
9782         * main.c (tui_version): Delete variable.
9783         (captured_main): When --tui, set interpreter_p to "tui" instead of
9784         enabling tui_version.
9785         * printcmd.c (display_command) [TUI]: Test tui_active instead of
9786         tui_version.
9787         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9788         * cli/cli-cmds.c (disassemble_command): Ditto.
9789         * defs.h (tui_version): Delete declaration.
9790         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9791         (tui-interp.o): Add rules.
9792         (SUBDIR_TUI_OBS): Add "tui-interp.o".
9793
9794 2003-02-14  Christopher Faylor  <cgf@redhat.com>
9795
9796         * win32-nat.c (register_loaded_dll): Correctly set address range for
9797         just-loaded dll.
9798
9799 2003-02-12  Jason Molenda  (jmolenda@apple.com)
9800
9801         * symmisc.c (print_objfile_statistics): Include information about
9802         the number of psymtabs and symtabs in each object file.
9803
9804 2003-02-13  Keith R Seitz  <keiths@redhat.com>
9805
9806         * main.h (struct captured_main_args): Add interpreter_p.
9807         * main.c (captured_main): Initialize interpreter_p from context.
9808         * gdb.c (main): Set interpreter_p argument.
9809         * Makefile.in (gdb.o): Add dependency for interps.h.
9810
9811 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
9812
9813         * event-top.c (cli_command_loop): Delete declaration.
9814         (_initialize_event_loop): Delete function setting event_loop_hook.
9815         * event-top.h (cli_command_loop): Declare.  Update copyright.
9816         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
9817         * interps.c (current_interp_command_loop): When event_loop_p, call
9818         cli_command_loop.
9819
9820 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
9821
9822         * interps.h (interp_command_loop_ftype): Change return type to
9823         void.
9824
9825 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
9826
9827         * x86-64-tdep.c (x86_64_extract_return_value)
9828         (x86_64_store_return_value): Use regcache instead of regbuf.
9829         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9830         * x86-64-linux-nat.c (fill_gregset): Use regcache.
9831
9832 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
9833
9834         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9835         * aclocal.m4: Regenerate.
9836         * configure: Regenerate.
9837
9838         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9839         TCL_LD_SEARCH_FLAGS.
9840
9841 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
9842
9843         * dwarf2cfi.c: Reindented.
9844
9845 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
9846
9847         * interps.c (clear_interpreter_hooks): Convert function definition
9848         to ISO C.
9849
9850 2003-02-07  David Carlton  <carlton@math.stanford.edu>
9851
9852         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9853
9854 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
9855
9856         * gdbtypes.h (struct main_type): Move ``length'' field from here...
9857         (struct type): ...to here.
9858         (TYPE_LENGTH): Adjust to reflect different location of ``length''
9859         field.
9860         * gdbtypes.c (make_qualified_type): Set length on newly created type.
9861         (replace_type): Set length on all type variants for a given type.
9862
9863 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
9864
9865         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9866         <sys/stat.h>.
9867         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9868
9869 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
9870
9871         * Makefile.in (symm-nat.o): Update dependencies.
9872         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9873         (lynx-nat.o, ia64-linux-nat.): Ditto.
9874         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9875         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9876         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9877
9878         * Makefile.in (inflow_h): Define.
9879         (procfs.o, inflow.o, procfs.o): Update dependencies.
9880         * inftarg.c (child_stop): Delete extern declaration of
9881         inferior_process_group.  Include "inflow.h".
9882         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
9883         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9884         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
9885         (our_process_group, inferior_process_group): Extern declarations.
9886
9887         * procfs.c: Include "gdb_assert.h".
9888
9889         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9890         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9891         * jv-typeprint.c (java_type_print_base): Ditto.
9892         * typeprint.c (typedef_print): Eliminate STREQ.
9893         * cli/cli-script.c (define_command, define_command): Ditto.
9894         * main.c (captured_main): Ditto.
9895         * values.c (lookup_internalvar): Ditto.
9896         * utils.c (safe_strerror, parse_escape): Eliminate assignment
9897         within `if' conditional.
9898         * linespec.c (decode_line_2): Ditto.
9899         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9900         (bfd_openw_with_cleanup): Ditto.
9901
9902 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
9903
9904         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9905         legacy_extract_return_value and store_return_value to
9906         legacy_return_value.
9907
9908 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
9909
9910         * win32-nat.c (get_relocated_section_addrs): New function.  Find
9911         section load addresses for symbol handling in relocated DLLs.
9912         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9913
9914 2003-02-05  Fred Fish  <fnf@intrinsity.com>
9915
9916         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9917         '=' and '!='.
9918         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9919         with '&' and '=='.
9920         (angel_RDI_info): Ditto.
9921         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9922         with '&' and '!='.
9923         (threads_continue_all_with_signals): Ditto.
9924
9925 2003-02-05  Jim Ingham <jingham@apple.com>
9926             Keith Seitz  <keiths@redhat.com>
9927             Elena Zannoni  <ezannoni@redhat.com>
9928             Andrew Cagney  <ac131313@redhat.com>
9929
9930         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9931         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9932         (SUBDIR_MI_OBS): Add "mi-interp.o".
9933         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9934         (SFILES): Add "interps.c".
9935         (COMMON_OBS): Add "interps.o".
9936         (interps_h, mi_main_h): Define.
9937         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9938         (mi-main.o, main.o, event-top.o): Update dependencies.
9939         * cli/cli-interp.c: New file.
9940         * interps.h, interps.c: New files.
9941         * top.c: (gdb_init): Don't install the default interpreter, handed
9942         by captured_main.
9943         * main.c: Include "interps.h".
9944         (interpreter_p): Note that it should malloc'ed.
9945         (captured_command_loop): Call current_interp_command_loop.
9946         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
9947         xfree and xstrdup when updating interpreter_p.  Install the
9948         default interpreter.  Add hack to stop mi1's copyright notice
9949         being encoded.
9950         * event-top.h (gdb_setup_readline): Declare.
9951         (gdb_disable_readline): Declare.
9952         * event-top.c: Include "interps.h".
9953         (display_gdb_prompt): Call current_interp_display_prompt_p.
9954         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9955         gdb_stdlog, and gdb_stdtarg.
9956         (_initialize_event_loop): Don't call gdb_setup_readline.
9957         * cli-out.c (cli_out_set_stream): New function.
9958         * cli-out.h (cli_out_set_stream): Declare.
9959
9960 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
9961
9962         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9963         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
9964         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9965         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9966         config/i386/i386v42mp.mt: Removed.
9967
9968 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
9969
9970         * configure.tgt (*-*-solaris*): Set gdb_osabi to
9971         GDB_OSABI_SOLARIS.
9972
9973 2003-02-05  Michael Chastain  <mec@shout.net>
9974
9975         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9976         2.12.1 and earlier versions.
9977
9978 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
9979
9980         Remove orphaned hosts, targets and files.
9981         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9982         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9983         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9984         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9985         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9986         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9987         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9988         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9989         * config/sparc/tm-sp64sim.h: Delete.
9990         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9991         hosts.
9992         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9993         mips*-dec-mach3* targets.
9994
9995 2003-02-04  Michael Chastain  <mec@shout.net>
9996
9997         * NEWS: Fix typo: sepcifying -> specifying.
9998
9999 2003-02-04  Michael Chastain  <mec@shout.net>
10000
10001         * dwarfread.c: Add documentation on the state of dwarf-1,
10002         looking towards obsoletion.
10003
10004 2003-02-03  Michael Chastain  <mec@shout.net>
10005
10006         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10007         gdb/testsuite/gdb.c++/pr-1023.exp.
10008
10009 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10010
10011         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10012         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10013
10014         * utils.c (init_page_info): Delete reference to MPW in comments.
10015         * main.c (captured_main): Delete #ifdef MPW.
10016
10017 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10018
10019         * NEWS: Note that the m32r-*-elf* is obsolete.
10020         * monitor.c (monitor_expect): Obsolete reference to m32r.
10021         * configure.tgt: Mark m32r-*-elf* as obsolete.
10022         * MAINTAINERS: Mark m32k as obsolete.
10023         * m32r-rom.c: Obsolete file.
10024         * config/m32r/m32r.mt: Obsolete file.
10025         * config/m32r/tm-m32r.h: Obsolete file.
10026         * m32r-stub.c: Obsolete file.
10027         * m32r-tdep.c: Obsolete file.
10028
10029 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10030
10031         * NEWS: Mention that the z8k-zilog-none is obsolete.
10032         * MAINTAINERS: Mark z8k as obsolete.
10033         * configure.tgt: Obsolete the z8k-*-coff* target.
10034         * config/z8k/z8k.mt: Obsolete file.
10035         * config/z8k/tm-z8k.h: Obsolete file.
10036         * z8k-tdep.c: Obsolete file.
10037
10038 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10039
10040         * NEWS: Mention that the mn10200-elf is obsolete.
10041         * configure.tgt: Obsolete mn10200-*-* target.
10042         * breakpoint.c (update_breakpoints_after_exec): Update comment to
10043         mention that the mn10200 is obsolete.
10044         * breakpoint.h: Ditto.
10045         * MAINTAINERS: Mark the mn10200-elf as obsolete.
10046         * config/mn10200/mn10200.mt: Obsolete file.
10047         * config/mn10200/tm-mn10200.h: Obsolete file.
10048         * mn10200-tdep.c: Obsolete file.
10049
10050 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10051
10052         * MAINTAINERS: Mark h8500 as obsolete.
10053         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10054         * findvar.c (value_from_register): Ditto.
10055         * h8500-tdep.c: Mark file as obsolete.
10056         * config/h8500/h8500.mt: Ditto.
10057         * config/h8500/tm-h8500.h: Ditto.
10058         * NEWS: Mention that h8500 is obsolete.
10059
10060 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10061
10062         * objfiles.c (allocate_objfile): Always set name.  Add comment at
10063         start of function.
10064         * jv-lang.c (get_dynamics_objfile): Add comment.
10065
10066 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10067
10068         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10069         * printcmd.c (build_address_symbolic): Replace uses of
10070         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10071         SYMBOL_NAME, and asm_demangle.
10072         Update copyright.
10073
10074 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10075
10076         * linespec.c (decode_compound): Extract code into
10077         lookup_prefix_sym.
10078         (lookup_prefix_sym): New function.
10079
10080 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10081
10082         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10083         FLOAT_COERCION_BADNESS.
10084         * gdbtypes.c (rank_one_type): Replace all uses of
10085         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10086
10087 2003-02-04  Jim Blandy  <jimb@redhat.com>
10088
10089         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10090         section, let dwarf_macinfo_section point to it, not
10091         dwarf_loc_section.
10092
10093 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10094
10095         Pointed out by Anton Blanchard <anton@samba.org>.
10096         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10097         (ppc_linux_at_sigtramp_return_path): Use it.
10098
10099 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10100
10101         * defs.h (streq): Add prototype.
10102         * utils.c (streq): New function.
10103
10104         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10105         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10106         * mdebugread.c (new_symbol): Likewise.
10107         * stabsread.c (define_symbol): Likewise.
10108         * coffread.c (process_coff_symbol): Likewise.
10109         * dwarfread.c (new_symbol): Likewise.
10110
10111         * minsyms.c (prim_record_minimal_symbol_and_info): Use
10112         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
10113         here.
10114         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10115         SYMBOL_INIT_DEMANGLED_NAME.
10116         * objfiles.c: Include "hashtab.h".
10117         (allocate_objfile): Call htab_set_functions_ex for the
10118         demangled_names_hash.
10119         (free_objfile): Call htab_delete for the demangled_names_hash.
10120         * objfiles.h (struct htab): Add declaration.
10121         (struct objfile): Add demangled_names_hash.
10122         * symfile.c: Include "hashtab.h".
10123         (reread_symbols): Call htab_delete for the demangled_names_hash.
10124         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10125         SYMBOL_NAME in the bcache.
10126         * symtab.c: Include "hashtab.h".  Update comments.
10127         (create_demangled_names_hash, symbol_set_names): New functions.
10128         (symbol_find_demangled_name): New function, broken out from
10129         symbol_init_demangled_names.
10130         (symbol_init_demangled_names): Use it.
10131         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10132         (SYMBOL_SET_NAMES): New macro.
10133         (symbol_set_names): Add prototype.
10134
10135 2003-02-03  Jim Blandy  <jimb@redhat.com>
10136
10137         Use a single, consistent representation for an empty minimal
10138         symbol table in an objfile.
10139         * objfiles.c (terminate_minimal_symbol_table): New function.
10140         (allocate_objfile): Call it.
10141         * objfiles.h (terminate_minimal_symbol_table): New declaration.
10142         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10143         non-NULL.
10144         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10145         objfile has minimal symbols, compare minimal_symbol_count to zero,
10146         instead of comparing msymbols with NULL.
10147         * objfiles.c (have_minimal_symbols): Same.
10148         * solib-sunos.c (solib_add_common_symbols): Call
10149         terminate_minimal_symbol_table.
10150         * symfile.c (reread_symbols): Same.
10151
10152 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
10153
10154         * s390-tdep.c (s390_address_class_type_flags)
10155         (s390_address_class_type_flags_to_name)
10156         (s390_address_class_name_to_type_flags): New functions.
10157         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10158         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10159
10160 2003-02-03  Michael Snyder  <msnyder@redhat.com>
10161
10162         * arm-tdep.c: Fix spell-o in comment.
10163
10164 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
10165
10166         * dwarf2cfi.c (pointer_encoding): Added new parameter.
10167         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10168         error messages to contain BFD filename.
10169
10170 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
10171
10172         Fix PR gdb/742 gdb/743 gdb/877
10173         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10174         (do_mixed_source_and_assembly): Use
10175         make_cleanup_ui_out_tuple_begin_end and
10176         make_cleanup_ui_out_tuple_begin_end.
10177         (do_mixed_source_and_assembly): Ditto.
10178         * thread.c (do_captured_list_thread_ids): Ditto.
10179         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10180         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10181         ui_out_tuple_end): Delete prototypes.
10182         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10183         ui_out_list_end, ui_out_tuple_end): Delete.
10184
10185         From Kevin Buettner  <kevinb@redhat.com>:
10186         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10187         * ui-out.c (make_cleanup_ui_out_table_begin_end)
10188         (do_cleanup_table_end):  New functions.
10189         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10190         Use cleanups to invoke_ui_out_tuple_end().
10191         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10192         * cli/cli-setshow.c (cmd_show_list): Use
10193         make_cleanup_ui_out_tuple_begin_end.
10194
10195 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10196
10197         * frame.c (frame_unwind_register): New function.
10198         (frame_unwind_unsigned_register): Use.
10199         (frame_unwind_signed_register): Use.
10200         (frame_read_register): New function.
10201         * frame.h (frame_unwind_register): Declare.
10202         (frame_read_register): Declare.
10203
10204         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10205         and frame_unwind_register instead of read_memory, write_register
10206         and deprecated_write_register_bytes.
10207
10208 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10209
10210         * frame.h: Note that namelen can be negative.
10211         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10212         NAME's length.
10213
10214         * NEWS: Mention that the d10v's `regs' command is deprecated.
10215         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10216         (d10v_print_registers_info): New function.
10217         (show_regs): Call d10v_print_registers_info.
10218         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10219
10220 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
10221
10222         * stack.c (print_frame_info): Restore call to annotate_frame_begin
10223         lost in the previous patch.
10224
10225 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10226
10227         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10228         * stack.c (print_frame_info_base): Output complete FRAME tuple
10229         for synthesized frames.
10230
10231 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10232
10233         * mips-nat.c (zerobuf): Delete.
10234         (fetch_inferior_registers): Alloc local zerobuf.
10235         (fetch_core_registers): Alloc local zerobuf.
10236         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10237         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10238         * thread-db.c (thread_db_store_registers): Ditto.
10239         * sh-tdep.c (sh_do_register): Ditto.
10240         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10241         * remote-sim.c (gdbsim_store_register): Ditto.
10242         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10243         * remote-e7000.c (fetch_regs_from_dump): Ditto.
10244         * monitor.c (monitor_supply_register): Ditto.
10245         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10246         * mips-nat.c (fetch_inferior_registers): Ditto.
10247         * m68klinux-nat.c (fetch_register): Ditto.
10248         * lynx-nat.c (fetch_inferior_registers): Ditto.
10249         (fetch_inferior_registers): Ditto.
10250         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10251         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10252         (hpux_thread_store_registers): Ditto.
10253         * hppah-nat.c (fetch_register): Ditto.
10254         * hppab-nat.c (fetch_register): Ditto.
10255         * hppa-tdep.c (pa_register_look_aside): Ditto.
10256         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10257         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10258
10259 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10260
10261         * gdbarch.sh: Explictly specify all method levels.  When a
10262         variable with an empty level, provide a non-multi-arch default.
10263         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10264         * gdbarch.h: Re-generate.
10265         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
10266         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10267
10268 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10269
10270         * defs.h (host_pointer_to_address): Delete declaration.
10271         (address_to_host_pointer): Delete declaration.
10272         * utils.c (host_pointer_to_address): Delete function.
10273         (address_to_host_pointer): Delete function.
10274         * procfs.c (procfs_address_to_host_pointer): New function.
10275         * procfs.c (proc_set_watchpoint): Use.
10276         (procfs_can_use_hw_breakpoint): Update comments.
10277         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10278         (som_solib_add): Use.
10279         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10280         * hppa-tdep.c (unwind_command): Use.
10281
10282 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10283
10284         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10285         strlen d_name.
10286
10287         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10288         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10289         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10290         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10291         (define_symbol): Update.
10292         * symfile.c (generic_load): Remove references to nindy.
10293         * symtab.c: Remove references to nindy.
10294
10295 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10296
10297         * infcmd.c (print_float_info): Delete code conditional on
10298         FLOAT_INFO.
10299         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
10300         * config/m68k/nm-apollo68b.h: Ditto.
10301         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
10302         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10303         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10304
10305 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
10306
10307         * config/i386/tm-i386os9k.h: Removed.
10308
10309         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10310         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10311         they're identical to i[3456]86-*-sysv* now.
10312         * config/i386/i386v32.mh: Removed.
10313         * config/i386/xm-i386v32.h: Removed.
10314         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10315
10316         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10317
10318         * config/i386/i386dgux.mh: Removed.
10319         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10320
10321         * configure.in: Fix typo.
10322         * configure: Regenerated.
10323
10324 2003-01-31  David Carlton  <carlton@math.stanford.edu>
10325
10326         * dwarf2read.c (dwarf2_locate_sections): Set
10327         dwarf_ranges_section.
10328
10329 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10330
10331         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10332         * utils.c: Update comments documenting legitimate uses of PTR.
10333
10334         * utils.c: Re-indent.
10335
10336         * config/djgpp/fnchange.lst: Delete nindy files.
10337         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10338         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10339         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10340         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10341         * nindy-share/README, nindy-share/Onindy.c: Delete files.
10342         * nindy-tdep.c, nindy-share/Makefile: Delete files.
10343         * Makefile.in (init.c): Remove nindy references.
10344         (saber_gdb): Delete rule.
10345         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10346         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10347         and a68v-nat.c.
10348         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10349         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10350         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10351         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10352         nindy-share/stop.h.
10353         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10354         * saber.suppress: Delete file.
10355
10356 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
10357
10358         * dbxread.c (stabs_data): New static variable.
10359         (fill_symbuf): Support an in-memory buffer for stabs data.
10360         (stabs_seek): New function.
10361         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10362         (read_ofile_symtab): Use stabs_seek.
10363         (elfstab_build_psymtabs): Take an asection* instead of
10364         an offset and size.  Relocate the stabs data if necessary.
10365         Save the section* for dbx_psymtab_to_symtab.
10366         * dwarf2read.c: Add section variables for each debug section.
10367         (dwarf2_locate_sections): Fill them in.
10368         (dwarf2_read_section): Take an asection* argument.
10369         Relocate the section contents if necessary.
10370         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10371         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10372         it to dwarf2_read_section.
10373         (dwarf2_build_frame_info): Update callers.
10374         * elfread.c (elf_symfile_read): Update call to
10375         elfstab_build_psymtabs.
10376         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10377         (DBX_STAB_SECTION): New macro.
10378         * stabsread.h (elfstab_build_psymtabs): Update prototype.
10379         * symfile.c (symfile_dummy_outputs): New function.
10380         (symfile_relocate_debug_section): New function.
10381         * symfile.h (symfile_relocate_debug_section): Add prototype.
10382
10383 2003-01-31  Richard Henderson  <rth@redhat.com>
10384
10385         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10386         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
10387         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10388         * alpha-tdep.c (alpha_register_name): Add "unique".
10389         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10390         (ALPHA_UNIQUE_REGNUM): New.
10391         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10392
10393 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10394
10395         * README: Remove reference to Ericsson 1800 monitor.
10396         * Makefile.in (remote-es.o): Delete rule.
10397         (ALLDEPFILES): Delete remote-es.c.
10398         * remote-es.c: Delete file.
10399         * config/m68k/es1800.mt: Delete file.
10400         * config/djgpp/fnchange.lst: Update.
10401         * configure.tgt: Delete m68*-ericsson-* target.
10402
10403 2003-01-31  Adam Fedor  <fedor@gnu.org>
10404
10405         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10406         Remove duplicate/shadowing variable of same name.
10407
10408 2003-01-30  Jim Blandy  <jimb@redhat.com>
10409
10410         * symfile.c (find_separate_debug_file): Assert that the objfile's
10411         directory name we compute ends with a slash, and then assume that
10412         that's so everywhere we use it.
10413
10414 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
10415
10416         * valops.c (value_assign): Flush frame cache after stores to memory
10417         also.
10418
10419 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10420
10421         * Makefile.in (mon960-rom.o): Delete rule.
10422         * mon960-rom.c: Delete file.
10423
10424 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10425
10426         * d10v-tdep.c: Include "frame-unwind.h".
10427         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10428         list.
10429         (next_addr, uses_frame): Delete.
10430         (struct d10v_unwind_cache): Define.
10431         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10432         Use info instead of next_addr and uses_frame globals.
10433         (d10v_frame_init_saved_regs): Delete function.
10434         (d10v_init_extra_frame_info): Delete function.
10435         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10436         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10437         init_frame_pc or frame_saved_pc.
10438         (d10v_pop_frame): Delete function.
10439         (do_d10v_pop_frame): Delete function.
10440         (d10v_frame_chain): Delete function.
10441         (d10v_frame_chain_valid): Delete function.
10442         (d10v_frame_pc_unwind): New function.
10443         (d10v_frame_id_unwind): New function.
10444         (saved_regs_unwinder): New function.
10445         (d10v_frame_register_unwind): New function.
10446         (d10v_frame_pop): New function.
10447         (d10v_frame_unwind): New variable.
10448         (d10v_frame_p): New function.
10449         (d10v_frame_saved_pc): Delete function.
10450         * Makefile.in (d10v-tdep.o): Update dependencies.
10451
10452 2003-01-30  J. Brobecker  <brobecker@gnat.com>
10453
10454         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10455         causing some regressions due to a change in the default value
10456         for this macro.
10457
10458 2003-01-29  Richard Henderson  <rth@redhat.com>
10459             Elena Zannoni  <ezannoni@redhat.com>
10460             Daniel Jacobowitz  <drow@mvista.com>
10461
10462         Fix PR gdb/961.
10463         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
10464         variables.
10465         (RANGES_SECTION): New.
10466         (dwarf_ranges_buffer): New variable.
10467         (struct comp_unit_head): Add member "die".
10468         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10469         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10470         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10471         (dwarf2_locate_sections): Likewise.
10472         (dwarf2_build_psymtabs): Read .debug_ranges.
10473         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10474         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
10475         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10476         Look for DW_AT_ranges and return the bounding box.
10477
10478 2003-01-29  Brian Ford <ford@vss.fsi.com>
10479
10480         * win32-nat.c (cygwin_pid): Removed as unused.
10481         (child_attach): Try fall back to Cygwin pid.
10482
10483 2003-01-29  Jim Blandy  <jimb@redhat.com>
10484
10485         * objfiles.h (struct objfile): Doc fix.
10486
10487 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
10488
10489         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10490         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10491         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10492         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10493         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10494         (FRAME_SAVED_PC): Change to a function with predicate.
10495         * gdbarch.h, gdbarch.c: Re-generate.
10496
10497 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
10498
10499         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10500
10501         * complaints.c (complain): Delete function.
10502         * complaints.h (struct deprecated_complaint): Delete definition.
10503         (complain): Delete declaration.
10504
10505 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
10506
10507         * mips-tdep.c (mips_init_extra_frame_info): Return early for
10508         dummy frames.
10509
10510 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
10511
10512         * sentinel-frame.h, sentinel-frame.c: New files.
10513         * Makefile.in (frame.o): Update dependencies.
10514         (SFILES): Add sentinel-frame.c.
10515         (sentinel_frame_h): Define.
10516         (COMMON_OBS): Add sentinel-frame.o.
10517         (sentinel-frame.o): Specify dependencies.
10518         * frame.c: Include "sentinel-frame.h".
10519         (frame_register_unwind): Rewrite assuming that there is always a a
10520         ->next frame.
10521         (frame_register, generic_unwind_get_saved_register): Ditto.
10522         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10523         (create_sentinel_frame, unwind_to_current_frame): New functions.
10524         (get_current_frame): Rewrite using create_sentinel_frame and
10525         unwind_to_current_frame.  When possible, always create a frame.
10526         (create_new_frame): Set next to the sentinel frame.
10527         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
10528         (deprecated_update_frame_pc_hack): Update the next frame's PC and
10529         ID cache when necessary.
10530         (frame_saved_regs_id_unwind): Use frame_relative_level.
10531         (deprecated_generic_get_saved_register): Use frame_relative_level,
10532         get_frame_saved_regs, get_frame_pc, get_frame_base and
10533         get_next_frame.
10534         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10535         frame_register.
10536
10537 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10538
10539         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10540
10541 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10542
10543         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10544         (maintenance_set_profile_cmd): Use error () instead of warning ().
10545
10546 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10547
10548         * configure.in: Check that -pg works if using --enable-profiling.
10549         Check for monstartup and _mcleanup regardless of --enable-profiling.
10550         * maint.c: Check for monstartup and _mcleanup before using them.
10551         * config.in: Regenerated.
10552         * configure: Regenerated.
10553
10554 2003-01-24  Nick Clifton  <nickc@redhat.com>
10555
10556         * Add sh2e support:
10557
10558         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
10559
10560                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10561                 (sh2e_show_regs): New.
10562                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10563                 * config/sh/tm-sh.h: Added sh2e to comments.
10564
10565 2003-01-23  Jim Blandy  <jimb@redhat.com>
10566
10567         * symfile.c (syms_from_objfile): Don't print the "(no debugging
10568         symbols found)" message here; we haven't checked for a separate
10569         debug info file yet, so we don't know yet.
10570         (symbol_file_add_with_addrs_or_offsets): Print it here, after
10571         we've looked everywhere.  Also, there's no need to print a special
10572         message when we're loading the separate debug info file: the one
10573         symbol_file_add prints is fine.
10574
10575 2003-01-23  Alexander Larsson <alexl@redhat.com>
10576             Jim Blandy  <jimb@redhat.com>
10577
10578         Add support for executables whose debug info has been separated
10579         out into a separate file, leaving only a link behind.
10580         * objfiles.h (struct objfile): New fields: separate_debug_objfile
10581         and separate_debug_objfile_backlink.
10582         (put_objfile_before): New declaration.
10583         * symfile.c: #include "filenames.h".
10584         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10585         debug info in a separate file, read that, too. Save the addrs
10586         argument, so we can use it again to read the separated debug info;
10587         syms_from_objfile modifies the table we pass it.
10588         (reread_symbols): After re-reading an objfile, call
10589         reread_separate_symbols to refresh its separate debug info
10590         objfile, if it has one.
10591         (reread_separate_symbols, find_separate_debug_file,
10592         get_debug_link_info, separate_debug_file_exists): New functions.
10593         (debug_file_directory): New global var.
10594         (_initialize_symfile): Initialize debug_file_directory, and
10595         provide the new `set debug-file-directory' command to let the user
10596         change it.
10597         * objfiles.c (free_objfile): If this objfile has its debug info in
10598         a separate objfile, free that one too.  If this is itself a
10599         separate debug info objfile, clear our parent's backlink.
10600         (put_objfile_before): New function.
10601         * utils.c (gnu_debuglink_crc32): New function.
10602         * defs.h (gnu_debuglink_crc32): New declaration.
10603         * Makefile.in (symfile.o): Note dependency on "filenames.h".
10604         * configure.in: Handle --with-separate-debug-dir config option.
10605         * acinclude.m4 (AC_DEFINE_DIR): New macro.
10606         * acconfig.h (DEBUGDIR): New macro.
10607         * configure, aclocal.m4, config.in: Regenerated.
10608
10609 2003-01-22  Jim Blandy  <jimb@redhat.com>
10610
10611         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10612         like the old symbol_file_add, but taking new arguments: you can
10613         now pass in either a `struct section_addr_info' list to say where
10614         each section is loaded, or a `struct section_offsets' table.  Pass
10615         these new arguments through to syms_from_objfile as appropriate.
10616         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10617         with the appropriate quiescent values for the new arguments.
10618
10619         * symfile.c: #include "gdb_assert.h".
10620         (syms_from_objfile): Add the ability to pass in a section offset
10621         table directly, as an alternative to the section_addr_info table.
10622         Document arguments better.
10623         (symbol_file_add): Pass extra arguments to syms_from_objfile.
10624         * symfile.h (syms_from_objfile): Update declaration.
10625         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10626         syms_from_objfile.
10627         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10628
10629 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
10630
10631         Original patch by Tom Tromey <tromey@cygnus.com> and
10632         Jason Molenda <jmolenda@apple.com>.
10633         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10634         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10635         * NEWS: Mention profiling.
10636         * configure.in (--enable-gdbtk): Fix typo.
10637         (--enable-profiling): New.  Set PROFILE_CFLAGS.
10638         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10639         Fill in function.
10640         (profiling_state): New variable.
10641         (mcleanup_wrapper): New function.
10642         (_initialize_maint): Remove NOTYET, fix call to
10643         add_setshow_boolean_cmd for "maint set profile".
10644         * configure: Regenerated.
10645
10646 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
10647
10648         * Makefile.in (install-gdbtk): Install PNG images too.
10649
10650 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
10651
10652         * exec.c (text_start): Delete global variable.
10653         (exec_file_attach): Make text_start local to the function.
10654         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10655         * valops.c (hand_function_call): Delete code that handles
10656         BEFORE_TEXT_END and AFTER_TEXT_END.
10657         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10658         of CALL_DUMMY_LOCATION.
10659         * gdbarch.c: Regenerate.
10660         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10661         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10662         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10663         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10664         (text_end): Delete extern declaration.
10665
10666 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
10667
10668         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10669         * blockframe.c (backtrace_below_main): Move to "frame.c".
10670         (frame_chain_valid): Delete check for backtrace_below_main.
10671         (_initialize_blockframe): Delete initialization, move ``set
10672         backtrace-below-main'' command to "frame.c".
10673         (do_flush_frames_sfunc): Delete function.
10674         * frame.c: Include "command.h" and "gdbcmd.h".
10675         (frame_type_from_pc): New function.
10676         (create_new_frame): Use frame_type_from_pc.
10677         (legacy_get_prev_frame): New function.
10678         (get_prev_frame): Rewrite.  When an old style frame, call
10679         legacy_get_prev_frame.  Otherwize, unwind the PC first.
10680         (_initialize_frame): Add ``set backtrace-below-main'' command.
10681         * Makefile.in (frame.o): Update dependencies.
10682
10683 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10684
10685         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10686         DEPRECATED_REGISTERS_INFO.
10687
10688 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10689
10690         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10691         Maintainers'.  Update `Various Maintainers'.
10692
10693 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10694
10695         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10696         * gdbarch.sh (POP_FRAME): Change to function with predicate.
10697         Suppress actual parameters when `-'.
10698         * gdbarch.h, gdbarch.c: Regenerate.
10699
10700 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10701
10702         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10703         code handling dummy frames.
10704
10705 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10706
10707         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10708         (struct frame_unwind): Add field pop.
10709         * frame.h (frame_pop): Declare.
10710         * frame.c (frame_saved_regs_pop): New function.
10711         (trad_frame_unwinder): Add frame_saved_regs_pop.
10712         (frame_pop): New function.
10713         * dummy-frame.c (dummy_frame_pop): New function.
10714         (discard_innermost_dummy): New function.
10715         (generic_pop_dummy_frame): Use discard_innermost_dummy.
10716         (dummy_frame_unwind): Add dummy_frame_pop.
10717         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10718         * valops.c (hand_function_call): Ditto.
10719         * stack.c (return_command): Ditto.
10720
10721 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10722
10723         * cris-tdep.c: Fix function declaration indentation.
10724         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10725         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10726         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10727         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10728         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10729         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10730
10731 2003-01-18  Michael Chastain  <mec@shout.net>
10732
10733         * README (Unpacking and Installation -- quick overview):
10734         Warn against ".../gdb-5.3/gdb/configure".
10735
10736 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10737
10738         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10739         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10740         (struct frame_unwind): Declare opaque.
10741         (dummy_frame_p): Declare function.
10742         * dummy-frame.c (dummy_frame_id_unwind): Make static.
10743         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10744         * dummy-frame.c: Include "frame-unwind.h".
10745         (dummy_frame_p): New function.
10746         (dummy_frame_unwind): New variable.
10747         * frame.c: Include "frame-unwind.h".
10748         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10749         to use the new unwind field.
10750         (set_unwind_by_pc): Delete function.
10751         (create_new_frame, get_prev_frame): Set unwind field using
10752         frame_unwind_find_by_pc.
10753         (trad_frame_unwind, trad_frame_unwinder): New variables.
10754         * frame.h (trad_frame_unwind): Declare variable.
10755         (frame_id_unwind_ftype): Delete declaration.
10756         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10757         (struct frame_unwind): Declare opaque.
10758         (struct frame_info): Replace the fields id_unwind, pc_unwind and
10759         register_unwind with a single unwind pointer.
10760         * frame-unwind.h, frame-unwind.c: New files.
10761         * Makefile.in (SFILES): Add frame-unwind.c.
10762         (frame_unwind_h): Define.
10763         (COMMON_OBS): Add frame-unwind.o.
10764         (frame-unwind.o): Specify dependencies.
10765         (frame.o, dummy-frame.o): Update dependencies.
10766
10767 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10768
10769         * ada-valprint.c: Eliminate PTR.
10770         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10771         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10772         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10773         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10774         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10775         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10776         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10777
10778 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
10779
10780         * main.c (captured_main): Don't use PTR.
10781         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10782         * gdbtypes.c (lookup_primitive_typename): Ditto.
10783         (lookup_struct_elt_type): Ditto.
10784         * f-valprint.c (info_common_command): Ditto.
10785         (list_all_visible_commons): Ditto.
10786         * jv-typeprint.c (java_type_print_base): Ditto.
10787
10788         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10789         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10790         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
10791         i386-interix-nat.c and i386-interix-tdep.c.  Rename
10792         m68klinux-nat.c and m68klinux-tdep.c.  Rename
10793         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
10794         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
10795         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10796         * main.c (captured_main): Use xfree, not free.
10797
10798 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
10799
10800         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10801         ID back using a parameter.
10802         * frame.c (frame_id_unwind): Update call.
10803         (frame_saved_regs_id_unwind): Update.
10804         * dummy-frame.c (dummy_frame_id_unwind): Update function.
10805         * dummy-frame.h (struct frame_id): Add opaque declaration.
10806         (dummy_frame_id_unwind): Update declaration.
10807
10808 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
10809
10810         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10811
10812 2003-01-15  Stephen P. Smith <ischis2@cox.net>
10813
10814         * MAINTAINERS (Stephen P. Smith): Updated email address.
10815
10816 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
10817
10818         Fix PR gdb/898
10819         * breakpoint.c (until_break_command): Add new argument.  Use it to
10820         decide whether to stop only at the current frame or not.
10821         * breakpoint.h (until_break_command): Update prototype.
10822         * infcmd.c (until_command): Add new argument to until_break_command
10823         call.
10824         (advance_command): New function.
10825         (_initialize_infcmd): Update help string for 'until' command.
10826         Add new 'advance' command.
10827
10828 2003-01-14  David Carlton  <carlton@math.stanford.edu>
10829
10830         * linespec.c (decode_line_1): Normalize comments.
10831         (set_flags): Ditto.
10832         (locate_first_half): Ditto.
10833         (decode_compound): Ditto.
10834         (symtab_from_filename): Ditto.
10835         (decode_all_digits): Ditto.
10836         (decode_dollar): Ditto.
10837         (find_methods): Ditto.
10838         (find_toplevel_char): Ditto.
10839
10840 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
10841
10842         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10843         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10844         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10845         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10846         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10847         * language.c, language.h, m32r-tdep.c: Update copyright.
10848         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10849         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10850         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10851         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10852         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10853         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10854
10855 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
10856
10857         * stabsread.h (process_later, resolve_cfront_continuation):
10858         Obsolete.
10859         Update copyright years.
10860         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10861         Update copyright year.
10862         * dbxread.c(struct cont_elem): Obsolete.
10863         (process_later, process_now): Obsolete functions.
10864         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10865         Update copyright year.
10866         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10867         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10868         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10869         (parse_partial_symbols): Obsolete cfront support.
10870         * stabsread.c
10871         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10872         macros.
10873         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10874         read_cfront_baseclasses, read_cfront_member_functions,
10875         resolve_cfront_continuation,read_cfront_static_fields,
10876         copy_cfront_struct_fields): Obsolete functions.
10877         (define_symbol, read_one_struct_field): Obsolete cfront support.
10878         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10879         Update Copyright year.
10880
10881 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
10882
10883         * stack.c (print_frame_info, print_stack_frame_base_stub,
10884         print_stack_frame_base, show_and_print_stack_frame_stub,
10885         show_and_print_stack_frame, print_only_stack_frame_stub,
10886         print_only_stack_frame): Delete functions.
10887         (print_stack_frame_stub): Call print_frame_info instead of
10888         print_frame_info_base.
10889         (print_frame_info_base): Rename to print_frame_info.
10890         (backtrace_command_1): Call print_frame_info, instead of
10891         print_frame_info_base.
10892         (current_frame_command): Call print_stack_frame, instead of
10893         print_only_stack_frame.
10894         (frame_command): Call print_stack_frame, instead of
10895         show_and_print_stack_frame.
10896         (up_command): Ditto.
10897         (down_command): Ditto.
10898         * frame.h (print_only_stack_frame): Delete prototype.
10899         * infrun.c (normal_stop): Call print_stack_frame, instead of
10900         show_and_print_stack_frame.
10901         * thread.c (info_threads_command): Call print_stack_frame, instead
10902         of print_only_stack_frame.
10903
10904 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
10905
10906         * README (Graphical interface to GDB): Update URL.  Point at
10907         gdb/links/.
10908
10909         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
10910         version match.
10911
10912 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
10913
10914         * symtab.c (find_pc_sect_line): Don't consider end-of-function
10915         lines.
10916
10917 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
10918
10919         * thread-db.c (attach_thread): Prototype.
10920         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
10921         thread information (ti), and valid flags (th_valid, ti_valid).
10922         (attach_thread): Move target_pid_to_str call to after the thread
10923         is added to GDB's list.  Initialize the cache.
10924         (thread_get_info_callback, thread_db_map_id2thr)
10925         (thread_db_get_info): New functions.
10926         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10927         (thread_db_store_registers, thread_db_thread_alive)
10928         (thread_db_get_thread_local_address): Use them.
10929         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
10930         of calling error() for threads in unknown state.
10931
10932         (clear_lwpid_callback): New function.
10933         (thread_db_resume): Use it to clear the cache.
10934
10935 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
10936
10937         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10938         (resume_callback): Remove dead code.
10939
10940 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
10941
10942         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10943         predicate.
10944         * gdbarch.h, gdbarch.c: Regenerate.
10945         * stack.c (frame_info): Only initialize the saved registers when
10946         FRAME_INIT_SAVED_REGS_P.
10947         * frame.c (frame_saved_regs_register_unwind): Assert
10948         FRAME_INIT_SAVED_REGS_P.
10949         (deprecated_generic_get_saved_register): Ditto.
10950
10951 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
10952
10953         * source.c (openp): Squelch warning about "filename".
10954
10955 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
10956
10957         * source.c (openp): If the file does not exist don't necessarily
10958         search the path.
10959
10960 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
10961
10962         Fix PR gdb/872.
10963         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10964         (integer_types_same_name_p): New function.
10965         (rank_one_type): Use it.
10966         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10967
10968 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
10969
10970         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10971         variables.
10972         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10973         * configure.in: Add --with-sysroot.
10974         * configure: Regenerated.
10975         * main.c (gdb_sysroot): New variable.
10976         (captured_main): Initialize gdb_sysroot.
10977         * defs.h (gdb_sysroot): New extern declaration.
10978         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10979
10980 2003-01-12  Michael Chastain  <mec@shout.net>
10981
10982         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10983
10984 2003-01-12  Michael Chastain  <mec@shout.net>
10985
10986         * top.c (print_gdb_version): Bump copyright year to 2003.
10987
10988 2003-01-12  David Carlton  <carlton@bactrian.org>
10989
10990         * linespec.c (symtab_from_filename): Rename variable 's' to
10991         'file_symtab'.
10992
10993 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
10994
10995         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10996         dummy frame.
10997         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10998
10999 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
11000
11001         * d10v-tdep.c: Include "gdb_assert.h".
11002         (d10v_store_return_value): Rewrite to match current interface.
11003         (d10v_extract_struct_value_address): Ditto.
11004         (d10v_extract_return_value): Ditto.
11005         (d10v_gdbarch_init): Set store_restore_value,
11006         extract_struct_value_address and extract_return_value.
11007
11008 2003-01-12  J. Brobecker  <brobecker@gnat.com>
11009
11010         * hpread.c (set_namestring): New procedure replacing the
11011         SET_NAMESTRING macro.
11012         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11013         by calls to set_namestring.
11014
11015 2003-01-11  J. Brobecker  <brobecker@gnat.com>
11016
11017         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11018         a compilation warning.
11019         (hpread_process_one_debug_symbol): Likewise.
11020
11021 2003-01-10  David Carlton  <carlton@math.stanford.edu>
11022
11023         * linespec.c (decode_line_1): Rename variable 's' to
11024         'file_symtab'.
11025         (decode_all_digits): Rename argument 's' to 'file_symtab'.
11026         (decode_dollar): Ditto.
11027         (decode_variable): Ditto.
11028         (symbol_found): Ditto.
11029
11030 2003-01-09  Michael Chastain  <mec@shout.net>
11031
11032         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11033
11034 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
11035
11036         * win32-nat.c (set_process_privilege): New function.
11037         (child_attach): Call set_process_privilege() to enable the
11038         SE_DEBUG_NAME user privilege if available in process token.
11039
11040 2003-01-10  J. Brobecker  <brobecker@gnat.com>
11041
11042         * hpread.c (hpread_process_one_debug_symbol): Fix a small
11043         compilation error in the previous revision.
11044
11045 2003-01-09  David Carlton  <carlton@math.stanford.edu>
11046
11047         * linespec.c: Update copyright.
11048
11049 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
11050
11051         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11052         than inferior_ptid.
11053         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11054
11055 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
11056
11057         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11058         Update comments.
11059         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11060         (frame_saved_regs_zalloc): Update.
11061         (frame_saved_regs_register_unwind): Update.
11062         (create_new_frame): Update.
11063         (get_prev_frame): Update.
11064         (frame_extra_info_zalloc): Update.
11065         (deprecated_get_frame_saved_regs): Update.
11066         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11067         * cris-tdep.c: Update comment.
11068
11069         * somsolib.h: Fix function indentation.
11070         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11071         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11072         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11073         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11074         * somsolib.c, inftarg.c: Remove assignment in if conditional.
11075
11076         * infrun.c (follow_fork): Use ISO C definition.
11077         * expprint.c (print_subexp): Use xfree instead of free.
11078         * charset.c: Include "gdb_string.h" instead of <string.h>.
11079         (register_iconv_charsets): Use ISO C definition.
11080         (host_charset, target_charset): Ditto.
11081         * Makefile.in (charset.o): Update dependencies.
11082         (mi-cmd-env.o): Update dependencies.
11083
11084 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11085
11086         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11087         get_frame_base.
11088
11089 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11090
11091         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
11092         build directories.  Save edited gdb output in Mbuild.log.  If a
11093         build fails, remove any final GDB executable.
11094
11095 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11096
11097         * gdb_mbuild.sh: Edit the output of `maint print architecture'
11098         replacing hex constants with function names and stripping leading
11099         file name directory prefixes.
11100
11101 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11102
11103         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11104         get_frame_base.
11105
11106 2003-01-08  David Carlton  <carlton@math.stanford.edu>
11107
11108         * linespec.c (decode_line_1): Move code into decode_variable.
11109         (decode_variable): New function.
11110
11111 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11112
11113         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11114
11115 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11116
11117         * cris-tdep.c (cris_frame_init_saved_regs): Use
11118         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11119         saved_regs buffer.
11120         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11121         (sh64_nofp_frame_init_saved_regs): Ditto.
11122         (sh_fp_frame_init_saved_regs): Ditto.
11123         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11124         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11125         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11126         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11127
11128 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
11129
11130         * minsyms.c (lookup_minimal_symbol): Update comment.
11131         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
11132         (lookup_minimal_symbol_solib_trampoline): Likewise.
11133
11134 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11135
11136         * d10v-tdep.c (d10v_init_extra_frame_info): Use
11137         frame_relative_level.
11138
11139         * alpha-tdep.c: Use get_frame_extra_info.
11140         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11141         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11142         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11143         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11144
11145         * alpha-tdep.c: Use get_next_frame.
11146         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11147         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11148         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11149         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11150         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11151         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11152         * xstormy16-tdep.c: Ditto.
11153
11154 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11155
11156         * alpha-tdep.c: Use get_frame_base.
11157         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11158         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11159         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11160         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11161         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11162         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11163         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11164         * config/sparc/tm-sparc.h: Ditto.
11165
11166 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11167
11168         * frame.c (deprecated_get_frame_context): New function.
11169         (deprecated_set_frame_context): New function.
11170         * frame.h (deprecated_get_frame_context): Declare.
11171         (deprecated_set_frame_context): Declare.
11172         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11173         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11174
11175 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11176
11177         * frame.c (deprecated_set_frame_next_hack): New function.
11178         (deprecated_set_frame_prev_hack): New function.
11179         * frame.h (deprecated_set_frame_next_hack): Declare.
11180         (deprecated_set_frame_prev_hack): Declare.
11181         * mcore-tdep.c (analyze_dummy_frame): Use
11182         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11183         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11184
11185 2003-01-07  David Carlton  <carlton@math.stanford.edu>
11186
11187         * linespec.c (decode_line_1): Move code into decode_dollar.
11188         (decode_dollar): New function.
11189
11190 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11191
11192         * arm-tdep.c (arm_init_extra_frame_info): Use
11193         deprecated_update_frame_base_hack.
11194         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11195         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11196         (fix_frame_pointer): Ditto.
11197         (mn10300_analyze_prologue): Ditto.
11198
11199 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11200
11201         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11202         extra_info using frame_extra_info_zalloc.
11203         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11204         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11205         (sh64_init_extra_frame_info): Ditto.
11206         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11207         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11208         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11209         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11210         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11211         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11212         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11213         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11214         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11215         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11216         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11217         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11218
11219         * mn10300-tdep.c (analyze_dummy_frame): Use
11220         deprecated_set_frame_extra_info_hack.
11221         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11222
11223 2003-01-07  J. Brobecker  <brobecker@gnat.com>
11224
11225         * mdebugread.c (parse_symbol): Skip stProc entries which storage
11226         class is not scText. These do not define "real" procedures.
11227         (parse_partial_symbols): Likewise.
11228
11229 2003-01-06  Michael Snyder  <msnyder@redhat.com>
11230
11231         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11232
11233 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
11234
11235         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11236         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11237         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11238         deprecated_frame_xmalloc_with_cleanup.
11239         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11240         deprecated_frame_xmalloc.
11241         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11242         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11243
11244 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11245
11246         * x86-64-linux-tdep.c: Include "osabi.h".
11247         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11248
11249         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11250
11251 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11252
11253         * MAINTAINERS (Target Instruction Set Architectures): Update
11254         arm-elf.  Can be built with -Werror, has been multiarched.
11255
11256         * value.h (unpack_long): Make buffer parameter constant.
11257         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11258         * scm-lang.h (scm_parse): Ditto.
11259         * defs.h (extract_typed_address, extract_address): Ditto.
11260         (extract_long_unsigned_integer): Ditto.
11261         * inferior.h (unsigned_pointer_to_address): Ditto.
11262         (signed_pointer_to_address): Ditto.
11263         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11264         * gdbarch.h, gdbarch.c: Regenerate.
11265         * findvar.c (extract_long_unsigned_integer): Update.
11266         (extract_address): Update.
11267         (extract_typed_address): Update.
11268         (unsigned_pointer_to_address): Update.
11269         * values.c (unpack_long): Update.
11270         (unpack_double): Update.
11271         (unpack_pointer): Update.
11272         (unpack_field_as_long): Update.
11273         * d10v-tdep.c (d10v_pointer_to_address): Update.
11274         * avr-tdep.c (avr_pointer_to_address): Update.
11275         * scm-lang.c (scm_unpack): Update.
11276         * findvar.c (signed_pointer_to_address): Update.
11277
11278 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
11279
11280         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11281         since it is in i386-tdep.c.
11282
11283 2003-01-06  J. Brobecker  <brobecker@gnat.com>
11284
11285         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11286         failure introduced in the previous change.
11287
11288 2003-01-05  Michael Chastain  <mec@shout.net>
11289
11290         * README: Remove references to deleted remote-*.c files:
11291         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11292         remote-nrom.c, remote-os9k.c, remote-udi.c.
11293
11294 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
11295
11296         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11297         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11298         i386_get_longjmp_target.
11299
11300 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
11301
11302         * arm-tdep.c (prologue_cache): Change to a pointer.
11303         (_initialize_arm_tdep): Allocate prologue_cache.
11304         (check_prologue_cache): Update.
11305         (save_prologue_cache): Update.
11306         (arm_gdbarch_init): Update.
11307
11308 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11309
11310         * stabsread.c (update_method_name_from_physname): Call complaint()
11311         instead of error.
11312
11313 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11314
11315         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
11316         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11317         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11318
11319         * blockframe.c: Include "gdbcmd.h" and "command.h".
11320         (backtrace_below_main): New variable.
11321         (file_frame_chain_valid, func_frame_chain_valid)
11322         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11323         (generic_func_frame_chain_valid): Remove functions.
11324         (frame_chain_valid, do_flush_frames_sfunc): New functions.
11325         (_initialize_blockframe): New function.
11326         * Makefile.in (blockframe.o): Update dependencies.
11327         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11328         comment.  Call frame_chain_valid ().
11329         * frame.h: Remove old prototypes.  Add prototype for
11330         frame_chain_valid and update comments to match.
11331         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11332         Remove old comment.
11333         * gdbarch.h: Regenerated.
11334         * gdbarch.c: Regenerated.
11335
11336         * alpha-tdep.c (alpha_gdbarch_init): Don't call
11337         set_gdbarch_frame_chain_valid.
11338         * avr-tdep.c (avr_gdbarch_init): Likewise.
11339         * cris-tdep.c (cris_gdbarch_init): Likewise.
11340         * frv-tdep.c (frv_gdbarch_init): Likewise.
11341         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11342         * i386-tdep.c (i386_svr4_init_abi): Likewise.
11343         (i386_nw_init_abi): Likewise.
11344         (i386_gdbarch_init): Likewise.
11345         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11346         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11347         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11348         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11349         * mips-tdep.c (mips_gdbarch_init): Likewise.
11350         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11351         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11352         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11353         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11354         * s390-tdep.c (s390_gdbarch_init): Likewise.
11355         * sh-tdep.c (sh_gdbarch_init): Likewise.
11356         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11357         * v850-tdep.c (v850_gdbarch_init): Likewise.
11358         * vax-tdep.c (vax_gdbarch_init): Likewise.
11359         * x86-64-tdep.c (x86_64_init_abi): Likewise.
11360
11361         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11362         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11363         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11364         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11365         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11366         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11367         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11368         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11369
11370 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11371
11372         * Makefile.in (acconfig_h): Remove incorrect macro.
11373         (config_h): Define.
11374         (osabi.o): Update dependencies.
11375         * configure.tgt: Set gdb_osabi based on target triplet.
11376         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11377         * configure: Regenerated.
11378         * config.in: Regenerated.
11379         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11380         (GDB_OSABI_DEFAULT): Define if not already defined.
11381         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11382         (set_osabi_string): New variables.
11383         (gdbarch_register_osabi): Add new OS ABI to
11384         gdb_osabi_available_names.
11385         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11386         (set_osabi, show_osabi): New functions.
11387         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11388
11389 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11390
11391         * arch-utils.c (gdbarch_info_init): Set osabi to
11392         GDB_OSABI_UNINITIALIZED.
11393         * gdbarch.sh: Add osabi to struct gdbarch and to struct
11394         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
11395         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11396         * gdbarch.c: Regenerated.
11397         * gdbarch.h: Regenerated.
11398         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11399         there's no BFD.
11400         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11401         * osabi.h (enum gdb_osabi): Move to defs.h.
11402         (gdbarch_init_osabi): Update prototype.
11403         * defs.h (enum gdb_osabi): Moved here.
11404         * Makefile.in: Update dependencies.
11405
11406         * alpha-tdep.h: Don't include "osabi.h".
11407         (struct gdbarch_tdep): Remove osabi member.
11408         * alpha-tdep.c: Include "osabi.h".
11409         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11410         iterate over arches.  Update call to gdbarch_init_osabi.
11411         (alpha_dump_tdep): Don't dump osabi.
11412         * alpha-linux-tdep.c: Include "osabi.h".
11413         * alpha-osf1-tdep.c: Include "osabi.h".
11414         * alphafbsd-tdep.c: Include "osabi.h".
11415         * alphanbsd-tdep.c: Include "osabi.h".
11416
11417         * arm-tdep.h: Don't include "osabi.h".
11418         (struct gdbarch_tdep): Remove osabi member.
11419         * arm-tdep.c: Include "osabi.h".
11420         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11421         iterate over arches.  Update call to gdbarch_init_osabi.
11422         (arm_dump_tdep): Don't dump osabi.
11423         * arm-linux-tdep.c: Include "osabi.h".
11424         * armnbsd-tdep.c: Include "osabi.h".
11425
11426         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11427         Update call to gdbarch_init_osabi.
11428
11429         * i386-tdep.h: Don't include "osabi.h".
11430         (struct gdbarch_tdep): Remove osabi member.
11431         * i386-tdep.c: Include "osabi.h".
11432         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11433         iterate over arches.  Update call to gdbarch_init_osabi.
11434         (i386_dump_tdep): Don't dump osabi.
11435         * i386-linux-tdep.c: Include "osabi.h".
11436         * i386-sol2-tdep.c: Include "osabi.h".
11437         * i386bsd-tdep.c: Include "osabi.h".
11438         * i386gnu-tdep.c: Include "osabi.h".
11439         * i386ly-tdep.c: Include "osabi.h".
11440         * i386nbsd-tdep.c: Include "osabi.h".
11441         * i386obsd-tdep.c: Include "osabi.h".
11442
11443         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11444         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11445         check osabi when iterating over arches.  Update call to
11446         gdbarch_init_osabi.
11447         (mips_dump_tdep): Don't dump osabi.
11448
11449         * ns32k-tdep.h: Don't include "osabi.h".
11450         (struct gdbarch_tdep): Remove.
11451         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11452         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
11453         allocate tdep.  Update call to gdbarch_init_osabi.
11454         (ns32k_dump_tdep): Remove.
11455         (_initialize_ns32k_tdep): Update call to gdbarch_register.
11456         * ns32knbsd-tdep.c: Include "osabi.h".
11457
11458         * ppc-tdep.h: Don't include "osabi.h".
11459         (struct gdbarch_tdep): Remove osabi member.
11460         * rs6000-tdep.c: Include "osabi.h".
11461         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
11462         osabi when iterating over arches.  Update call to
11463         gdbarch_init_osabi.
11464         (rs6000_dump_tdep): Don't dump osabi.
11465         * ppc-linux-tdep.c: Include "osabi.h".
11466         * ppcnbsd-tdep.c: Include "osabi.h".
11467
11468         * sh-tdep.h: Don't include "osabi.h".
11469         (struct gdbarch_tdep): Remove osabi member.
11470         * sh-tdep.c: Include "osabi.h".
11471         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11472         iterate over arches.  Update call to gdbarch_init_osabi.
11473         (sh_dump_tdep): Don't dump osabi.
11474         * shnbsd-tdep.c: Include "osabi.h".
11475
11476         * sparc-tdep.c: Include "osabi.h".
11477         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11478         iterate over arches.  Update call to gdbarch_init_osabi.
11479         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
11480         tdep structure.
11481
11482         * vax-tdep.h: Don't include "osabi.h".
11483         (struct gdbarch_tdep): Remove.
11484         * vax-tdep.c: Include "osabi.h".
11485         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11486         iterate over arches.  Don't allocate tdep.  Update call
11487         to gdbarch_init_osabi.
11488         (vax_dump_tdep): Remove.
11489         (_initialize_vax_tdep): Update call to gdbarch_register.
11490
11491 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11492
11493         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11494         entirely.
11495         (breakpoint_re_set_one): Don't fetch the value for a disabled
11496         watchpoint.
11497
11498 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11499
11500         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11501         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11502         (COERCE_FLOAT_TO_DOUBLE): Remove.
11503         * gdbarch.c: Regenerate.
11504         * gdbarch.h: Regenerate.
11505         * Makefile.in: Remove value_h from gdbarch_h.
11506         * valops.c (coerce_float_to_double): New variable.
11507         (default_coerce_float_to_double): Remove.
11508         (standard_coerce_float_to_double): Remove.
11509         (value_arg_coerce): Use coerce_float_to_double.
11510         (_initialize_valops): Add "set coerce-float-to-double".
11511         * value.h (default_coerce_float_to_double): Remove prototype.
11512         (standard_coerce_float_to_double): Remove prototype.
11513
11514         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11515         prototyped.
11516         * mdebugread.c (parse_symbol): Likewise.
11517         * stabsread.c (define_symbol): Mark all functions as prototyped.
11518
11519         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11520         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11521         set_gdbarch_coerce_float_to_double.
11522         * arm-tdep.c (arm_gdbarch_init): Likewise.
11523         * frv-tdep.c (frv_gdbarch_init): Likewise.
11524         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11525         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11526         * mips-tdep.c (mips_gdbarch_init): Likewise.
11527         (mips_coerce_float_to_double): Remove.
11528         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11529         (rs6000_coerce_float_to_double): Remove.
11530         * s390-tdep.c (s390_gdbarch_init): Likewise.
11531         * sh-tdep.c (sh_gdbarch_init): Likewise.
11532         (sh_coerce_float_to_double): Remove.
11533         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11534         (sparc_coerce_float_to_double): Remove.
11535         * v850-tdep.c (v850_gdbarch_init): Likewise.
11536         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11537         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11538         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11539         (hppa_coerce_float_to_double): Remove prototype.
11540         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11541
11542 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11543
11544         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11545
11546 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11547
11548         Suggested by Stewart Brown <sb24@avaya.com>:
11549         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11550         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
11551         (c_type_print_varspec_suffix): Likewise.
11552
11553 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11554
11555         * configure.in: Don't set and AC_SUBST SUBDIRS.
11556         * configure: Regenerated.
11557
11558         * configure.in: Remove code dealing with shared libraries.
11559         * Makefile.in: Remove HLDFLAGS and HLDENV.
11560         * configure: Regenerated.
11561
11562 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
11563
11564         * frame.c (deprecated_frame_xmalloc): New function.
11565         (deprecated_set_frame_saved_regs_hack): New function.
11566         (deprecated_set_frame_extra_info_hack): New function.
11567         * frame.h (deprecated_frame_xmalloc): Declare.
11568         (deprecated_set_frame_saved_regs_hack): Declare.
11569         (deprecated_set_frame_extra_info_hack): Declare.
11570
11571 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11572
11573         * configure.in: Move code that provides the --enable-gdbtk option
11574         right after the code that handles the --enable-tui option, and
11575         polish it somewhat.
11576         * configure: Regenerated.
11577
11578         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
11579         AC_CHECK_FUNCS and remove the old check for pread64.
11580         * acinclude.m4 (AC_GNU_SOURCE): New macro.
11581         * acconfig.h (_GNU_SOURCE): Add.
11582         (HAVE_PREAD64): Remove.
11583         * configure, aclocal.m4, config.in: Regenerated.
11584
11585 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
11586
11587         * alpha-tdep.c: Use get_frame_saved_regs.
11588         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11589         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11590         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11591         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11592         * vax-tdep.c, xstormy16-tdep.c: Ditto.
11593
11594 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11595
11596         * configure.in: Remove all use of the SUBDIRS variable; add
11597         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
11598         code providing the --enable-multi-ice option, and move it right in
11599         front of the code that checks whether gdbserver is supported.
11600         Polish that too.
11601         * configure: Regenerated.
11602         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11603         @SUBDIRS@.
11604
11605 2003-01-03  Andrew Cagney  <cagney@redhat.com>
11606
11607         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11608         * avr-tdep.c, cris-tdep.c: Ditto.
11609         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11610         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11611
11612 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11613
11614         * configure.in: Remove --enable-netrom option.
11615         * configure: Regenerated.
11616
11617 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11618
11619         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11620         declaration for `struct re_pattern_buffer' instead.
11621         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11622
11623 2003-01-03  J. Brobecker  <brobecker@gnat.com>
11624
11625         * mdebugread.c (parse_symbol): Count until the stEnd matching
11626         the structure name.
11627
11628 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11629
11630         * configure.in: Remove --with-cpu option.
11631         subscripts.  Remove evil changequotes here.
11632         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11633         * config.in, configure: Regenerated.
11634
11635         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11636         * configure.in: Cleanup section that sources GDB and BFD configure
11637         subscripts.  Remove evil changequotes here.
11638         * config.in, configure: Regenerated.
11639
11640 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11641
11642         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11643         frame accessor methods.
11644         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11645         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11646         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11647         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11648         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11649         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11650         * z8k-tdep.c: Ditto.
11651
11652 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11653
11654         * configure.in: Remove UI_OUT configuration code.
11655         * ada-lang.c: Update assuming UI_OUT is always true.
11656         * Makefile.in (UIOUT_CFLAGS): Remove.
11657         * configure: Regenerated.
11658         * TODO: Remove blurb about elimination of -DUI_OUT.
11659
11660         * configure.in: Move code that provides the --enable-gdbcli,
11661         --enable-gdbmi options right before the code that handles the
11662         --enable-tui option.  Polish a bit.
11663         * configure: Regenerated.
11664
11665         * configure.in: Rewrite check for GNU regex and the
11666         --without-included regex option, and move it into the "Checks for
11667         library functions" section.  This makes us use the system regex
11668         again by default on systems with version 2 of the GNU C library.
11669         This was apparently broken.
11670         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11671         * acconfig.h (USE_INCLUDED_REGEX): Remove.
11672         * config.in, configure: Regenerated.
11673
11674         * configure.in: Move code that provides the --enable-tui option
11675         before the "Checks for libraries" section.  Polish the code
11676         somewhat and set need_curses to yes if we build the TUI.  Rewrite
11677         code that looks for a library providing termcap functionality to
11678         match more closely what's done in the Readline library, and move
11679         it into to the "Checks for libraries" section.
11680         * configure: Regenerated.
11681         * Makefile.in (TERMCAP): Remove variable.
11682         * config/i386/go32.mh (TERMCAP): Remove variable.
11683
11684 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11685
11686         * MAINTAINERS: Mention gdb_mbuild.sh.
11687         * gdb_mbuild.sh: Rewrite.
11688
11689 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11690
11691         * configure.in: Fix typo in last change.
11692         * config.in, configure: Regenerated.
11693
11694 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11695
11696         * valarith.c (value_binop): Delete obsolete code and comments.
11697         * configure.host: Ditto.
11698         * buildsym.h (make_blockvector): Ditto.
11699         * buildsym.c (make_blockvector): Ditto.
11700         * defs.h (enum language): Ditto.
11701         (chill_demangle): Ditto.
11702         * elfread.c (elf_symtab_read): Ditto.
11703         * dwarfread.c (CHILL_PRODUCER): Ditto.
11704         (set_cu_language): Ditto.
11705         (handle_producer): Ditto.
11706         * expprint.c (print_subexp): Ditto.
11707         * gdbtypes.c (chill_varying_type): Ditto.
11708         * gdbtypes.h (builtin_type_chill_bool): Ditto.
11709         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11710         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11711         (chill_varying_type): Ditto.
11712         * language.h (_LANG_chill): Ditto.
11713         * language.c (binop_result_type, integral_type): Ditto.
11714         (character_type, string_type, structured_type): Ditto.
11715         (lang_bool_type, binop_type_check): Ditto.
11716         * stabsread.h (os9k_stabs): Ditto.
11717         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11718         (define_symbol, read_type, read_struct_fields): Ditto.
11719         (read_array_type, read_enum_type, read_huge_number): Ditto.
11720         (read_range_type, start_stabs): Ditto.
11721         * symfile.c (init_filename_language_table): Ditto.
11722         (add_psymbol_with_dem_name_to_list): Ditto.
11723         * symtab.c (symbol_init_language_specific): Ditto.
11724         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11725         * symtab.h (struct general_symbol_info): Ditto.
11726         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11727         * typeprint.c (typedef_print): Ditto.
11728         * utils.c (fprintf_symbol_filtered): Ditto.
11729         * valops.c (value_cast, search_struct_field, value_slice): Delete
11730         obsolete code.
11731         (varying_to_slice): Delete function.
11732         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11733         (varying_to_slice): Delete declaration.
11734         * MAINTAINERS: Update.
11735
11736 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11737
11738         * configure.in: Reorganize "Checks for library functions section"
11739         a bit.  Remove check for `btowc' and `isascii' functions.
11740         * configure: Regenerated.
11741
11742         * acconfig.h (_MSE_INT_H): Remove.
11743         * configure.in: Create "Checks for header files" section, and move
11744         appropriate tests there.  Don't check for objlist.h, wchar.h,
11745         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
11746         misdetection fix.  Also add "Checks for types", "Checks for
11747         compiler characteristics" and "Checks for library functions"
11748         sections.
11749         * config.in, configure: Regenerated.
11750
11751         * configure.in: Create "Checks for programs" section, and move
11752         appropriate tests there.
11753
11754 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
11755
11756         * configure.in: Create "Checks for libraries" section, and move
11757         appropriate tests there.  Cleanup check for wctype in libw.  Use
11758         AC_SEARCH_LIBS to see whether we need libsocket.
11759         * configure: Regenerated.
11760
11761 For older changes see ChangeLog-2002
11762 \f
11763 Local Variables:
11764 mode: change-log
11765 left-margin: 8
11766 fill-column: 74
11767 version-control: never
11768 End: