]> Git Repo - binutils.git/blob - gdb/ChangeLog
* dwarf2-frame.c (read_encoded_value): Add support for
[binutils.git] / gdb / ChangeLog
1 2003-09-09  Mark Kettenis  <[email protected]>
2
3         * dwarf2-frame.c (read_encoded_value): Add support for
4         DW_EH_PE_aligned encoding.
5
6 2003-09-08  Daniel Jacobowitz  <[email protected]>
7
8         * infrun.c (normal_stop): Don't print a message if the inferior
9         has exited.
10
11 2003-09-08  Jim Blandy  <[email protected]>
12
13         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
14         * dbxread.c: #include "gdb_assert.h".
15         (read_dbx_symtab): If the objfile has no .data section, use the
16         section index for the .bss section instead.
17
18 2003-09-08  Daniel Jacobowitz  <[email protected]>
19
20         * frame.c (deprecated_safe_get_selected_frame): New function.
21         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
22         * findvar.c (read_var_value): Call it.
23
24 2003-09-08  Corinna Vinschen  <[email protected]>
25
26         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
27         (sh64-tdep.o): Add dependencies.
28         * configure.tgt: Add FIXME to sh-*-linux*.
29         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
30         (sh_gdbarch_init): Always set correct sh_show_regs function
31         pointer.  Call sh64_gdbarch_init() if machine type is sh5. 
32         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
33         * sh64-tdep.c: New file, containing all sh64 related code from
34         sh-tdep.c.
35         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
36         * config/sh/linux.mt (TDEPFILES): Ditto.
37         * config/sh/nbsd.mt (TDEPFILES): Ditto. 
38         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
39         * config/sh/wince.mt (TDEPFILES): Ditto.
40
41 2003-09-07  Daniel Jacobowitz  <[email protected]>
42
43         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
44         (stop_wait_callback): Handle !lp->signalled also.
45         (lin_lwp_has_pending, flush_callback): New functions.
46         (lin_lwp_wait): Call flush_callback.
47         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
48         (linux_proc_pending_signals): New function.
49         * linux-nat.h (linux_proc_pending_signals): Add prototype.
50
51 2003-09-07  Daniel Jacobowitz  <[email protected]>
52
53         From Nick Kelsey <[email protected]>:
54         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
55         when the stop PC is at the beginning of a function also.
56
57 2003-09-06  Daniel Jacobowitz  <[email protected]>
58
59         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
60         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
61
62 2003-09-06  Mark Kettenis  <[email protected]>
63
64         * sol-thread.c: Include "gdb_string.h".
65
66 2003-09-03  Mark Kettenis  <[email protected]>
67
68         * gcore.c: Reorder include files in alphabetical order.  Include
69         "gdb_assert.h".  Various coding style fixes.
70         (derive_stack_segment, derive_heap_segment): Replace check for
71         non-null BOTTOM and TOP with gdb_assert.
72         (derive_heap_segment): Replace check for successful creation of
73         ZERO with gdb_assert.
74         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
75
76 2003-09-04  Andrew Cagney  <[email protected]>
77
78         * thread-db.c (verbose_dlsym): New function.
79         (thread_db_load): Use verbose_dlsym
80         (thread_db_new_objfile): Print that libthread_db was loaded, and
81         that thread debugging was enabled.
82
83 2003-09-04  Andrew Cagney  <[email protected]>
84
85         * configure.tgt: Add "mips64*-*-*" target.  Delete
86         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
87         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
88         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
89         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
90         mips*-sony-*, and mips64*-*-elf* targets.
91         * config/mips/embedl.mt: Delete file.
92         * config/mips/embedl64.mt: Delete file.
93         * config/mips/mips.mt: Delete file.
94         * config/mips/mips64.mt: Delete file.
95         * config/mips/tm-embed.h: Delete file.
96         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
97         * config/mips/embed64.mt: Delete out-of-date comment.
98
99 2003-09-04  Andrew Cagney  <[email protected]>
100
101         * hppa-tdep.c (hppa_gdbarch_init): Set
102         "have_nonsteppable_watchpoint".
103         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
104         * mips-tdep.c (mips_dump_tdep): Do not print
105         HAVE_NONSTEPPABLE_WATCHPOINT.
106         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
107         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
108         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
109         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
110
111 2003-09-04  Corinna Vinschen  <[email protected]>
112
113         * breakpoint.c (watchpoint_check): Remove accidentally checked in
114         unused code.  Add comment.
115
116 2003-09-04  Corinna Vinschen  <[email protected]>
117
118         * breakpoint.c (watchpoint_check): Check for pc being in an
119         epilogue if watchpoint frame couldn't be found.
120
121 2003-09-04  Andrew Cagney  <[email protected]>
122
123         * Makefile.in: Re-generate all dependencies.
124
125 2003-09-03  Andrew Cagney  <[email protected]>
126
127         * arch-utils.h (legacy_print_insn): Delete declaration.
128         * arch-utils.c (legacy_print_insn): Delete function.
129         * disasm.c (deprecated_tm_print_insn_info): Delete.
130         (_initialize_disasm): Delete function, contained code initializing
131         deprecated_tm_print_insn_info.
132         * gdbarch.sh (deprecated_tm_print_insn): Delete.
133         (deprecated_tm_print_insn_info): Delete.
134         (TARGET_PRINT_INSN): Do not provide a default.
135         * gdbarch.h, gdbarch.c: Re-generate.
136
137 2003-09-03  Andrew Cagney  <[email protected]>
138
139         * disasm.c (fprintf_disasm): New function.
140         (gdb_disassemble_info): Call "init_disassemble_info", instead of
141         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
142         reverts 2003-08-14 change.
143         (_initialize_disasm): Call "init_disassemble_info", instead of
144         INIT_DISASSEMBLE_INFO_NO_ARCH.
145
146 2003-09-03  Michael Snyder  <[email protected]>
147
148         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
149
150 2003-09-03  Andrew Cagney  <[email protected]>
151
152         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
153         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
154         * symfile.c (syms_from_objfile): Update.
155         (reread_symbols): `Update
156         * exec.c (exec_file_attach): Update.
157         (exec_file_attach): Update.
158         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
159         2003-08-29 change.
160         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
161
162 2003-09-03  Daniel Jacobowitz  <[email protected]>
163
164         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
165         trad-frame.h.
166         (arm_get_cache): Delete macro.
167         (struct arm_prologue_cache): Update comments.  Make saved_regs into
168         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
169         to prev_sp.
170         (thumb_scan_prologue): Update for cache changes.  Don't call
171         DEPRECATED_PC_IN_CALL_DUMMY.
172         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
173         argument and use it in desperation search for our prologue.  Do not
174         search past the specified PC.
175         (arm_make_prologue_cache): Simplify.
176
177         (arm_prologue_this_id, arm_prologue_prev_register)
178         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
179         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
180         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
181         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
182         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
183
184         (arm_frame_chain_valid, arm_find_callers_reg)
185         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
186         (arm_pop_frame): Delete obsolete methods.
187         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
188
189         (arm_gdbarch_init): Update for new frame methods.  Register prologue
190         and sigtramp unwinders.  Set the default frame base method.
191
192         * Makefile.in (arm-tdep.o): Update dependencies.
193         * varobj.c (find_frame_addr_in_frame_chain): Call
194         get_frame_base_address.
195         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
196
197 2003-09-03  Daniel Jacobowitz  <[email protected]>
198
199         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
200         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
201         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
202         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
203         Take NEXT_FRAME and CACHE arguments.  Call
204         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
205         Set unwound_pc in CACHE instead of modifying the frame argument.
206         Don't bother checking the frame type when looking for sigtramp
207         frames.
208         (arm_make_prologue_cache, arm_frame_chain)
209         (arm_init_extra_frame_info): New functions.
210
211 2003-09-03  Daniel Jacobowitz  <[email protected]>
212
213         * arm-tdep.c (arm_get_cache): Define.
214         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
215         unwound_sp, unwound_pc, and saved_regs.
216         (thumb_scan_prologue): Take a cache instead of the frame.
217         (arm_scan_prologue): Likewise.
218         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
219         instead of a temporary frame.
220         (arm_init_extra_frame_info): Allocate and use a cache.
221         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
222
223 2003-09-03  Andrew Cagney  <[email protected]>
224
225         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
226         * config/mips/wince.mt (TM_CLIBS): Ditto.
227         * config/sh/wince.mt (TM_CLIBS): Ditto.
228         * config/pa/hppa64.mt (TM_CLIBS): Delete.
229         * config/sparc/sp64.mt (CC): Delete.
230
231 2003-09-03  Andrew Cagney  <[email protected]>
232
233         * defs.h: Do not include "arch-utils.h".
234         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
235         GDB_MULTI_ARCH_PURE.
236         * configure.in (GDB_MULTI_ARCH): Do not define.
237         * configure, config.in: Regenerate.
238         * configure.tgt: Do not set variable "gdb_multi_arch".
239         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
240         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
241         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
242         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
243         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
244         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
245         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
246         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
247         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
248         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
249         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
250         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
251         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
252         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
253         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
254         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
255         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
256         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
257         
258 2003-08-30  Michael Chastain  <[email protected]>
259
260         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
261         * config/m68k/nm-hp300hpux.h: Delete.
262         * config/m68k/tm-hp300hpux.h: Delete.
263         * config/m68k/xm-hp300hpux.h: Delete.
264         * config/m68k/xm-hp300bsd.h: Delete.
265         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
266         tm-hp300hpux.h, xm-hp300hpux.h.
267         * somsolib.c: Remove comment about hp300 shared libraries.
268
269 2003-08-31  Mark Kettenis  <[email protected]>
270
271         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
272         Only define PTRACE_GET_THREAD_AREA is not already defined.
273         Various style fixes in code and comments and some additional
274         spelling fixes in comments.  Move after functions dealing with
275         debug registers.
276         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
277         Fix coding-style.
278
279         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
280         frame_unwind_register_unsigned instead of
281         frame_unwind_unsigned_register.
282
283 2003-08-30  Mark Kettenis  <[email protected]>
284
285         * configure.in: Search for gethostbyname in libnsl.
286         * configure: Regenerated.
287
288 2003-08-29  Mark Kettenis  <[email protected]>
289
290         * configure.in: Remove redundant AC_MSG_RESULT in check for
291         uintptr_t in stdint.h.
292         * configure: Regenerated.
293
294         * amd64-nat.h (struct regcache): Add opaque declaration.
295
296         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
297         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
298         Change "register array" to "register cache" in comments.
299         (x86_64_linux_gregset64_reg_offset): New variable.
300         (GETREGS_SUPPLIES): Remove macro.
301         (supply_gregset): Call amd64_supply_native_gregset instead of
302         x86_64_linux_supply_gregset.
303         (fill_gregset): Rename `regno' to `regnum'.  Call
304         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
305         (store_regs): Rename `regno' to `regnum'.
306         (store_fpregs): Rename `regno' to `regnum'.
307         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
308         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
309         Reorganize function a bit.
310         (store_inferior_registers): Rename `regno' to `regnum'.  Use
311         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
312         Reorganize function a bit.
313         (_initialize_x86_64_linux_nat): New function.
314         * config/i386/x86-64linux.mh.
315
316 2003-08-29  Andrew Cagney  <[email protected]>
317
318         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
319         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
320         (target_remove_watchpoint): Delete macro.
321         (target_insert_watchpoint): Delete macro.
322         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
323         (remote_mips_stopped_by_watchpoint): Delete declaration.
324         (remote_mips_remove_watchpoint): Delete declaration.
325         (remote_mips_set_watchpoint): Delete declaration.
326         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
327         * remote-mips.c (_initialize_remote_mips): Set
328         "to_insert_watchpoint", "to_stopped_by_watchpoint",
329         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
330         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
331         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
332         (mips_stopped_by_watchpoint): Rename
333         remote_mips_stopped_by_watchpoint.
334         (mips_can_hardware_watchpoint): Rename
335         remote_mips_can_use_hardware_watchpoint, update function
336         signature.
337
338 2003-08-29  Mark Kettenis  <[email protected]>
339
340         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
341         USER_DS.  We haven't given them a register number yet.
342
343         * amd64-nat.h: New file.
344         * amd64-nat.c: New file.
345         * amd64fbsd-nat.c: Include "amd64-nat.h".
346         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
347         (amd64fbsd32_r_reg_offset): New variable.
348         (supply_gregset): Simply call amd64_supply_native_gregset.
349         (fill_gregset): Rename `regno' to `regnum'.  Simply call
350         amd64_collect_native_gregset.
351         (fill_fpregset): Rename `regno' to `regnum'.
352         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
353         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
354         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
355         `fpregset_t'.  Call amd64_supply_native_gregset instead of
356         supply_gregset.  Call x86_64_supply_fxsave instead of
357         supply_fpregset.
358         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
359         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
360         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
361         `fpregset_t'.  Call amd64_collect_native_gregset instead of
362         fill_gregset.  Call x86_64_collect_fxsave instead of
363         fill_fpregset.
364         (_initialize_am64fbsd_nat): Initialize
365         amd64_native_gregset32_reg_offset and
366         amd64_native_gregset64_reg_offset.
367         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
368
369         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
370         null pointer.  Fix typo in comment.
371
372         * regcache.c (supply_register): Reimplement to call
373         regcache_raw_supply.
374         (regcache_collect): Reimplement by calling regcache_raw_collect.
375
376 2003-08-28  Mark Kettenis  <[email protected]>
377
378         * regcache.c (register_buffer): Consitify first argument.
379         (regcache_raw_supply, regcache_raw_collect): New
380         functions.
381
382 2003-08-28  Daniel Jacobowitz  <[email protected]>
383
384         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
385         by Nathan J. Williams.
386
387 2003-08-28  Daniel Jacobowitz  <[email protected]>
388
389         * lin-lwp.c (wait_lwp): New function, copied from
390         stop_wait_callback.  Clean up.
391         (stop_wait_callback): Use wait_lwp.
392
393 2003-08-28  Andrew Cagney  <[email protected]>
394
395         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
396         flavour and disassembler options.
397         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
398         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
399         deprecated_tm_print_insn_info.
400         
401 2003-08-27  Andrew Cagney  <[email protected]>
402
403         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
404         Use target_read_memory.
405         (s390_get_frame_info): Update.  Do not reference
406         deprecated_tm_print_insn_info.
407         (s390_check_function_end, s390_is_sigreturn): Ditto.
408
409 2003-08-27  Andrew Cagney  <[email protected]>
410
411         * Makefile.in (cris-tdep.o): Update dependencies.
412         * cris-tdep.c: Include "gdb_assert.h".
413         (cris_gdbarch_init): Set print_insn.
414         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
415         (cris_delayed_get_disassembler): Simplify, directly call the
416         disassembler returned by cris_get_disassembler.
417         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
418         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
419         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
420         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
421         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
422         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
423         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
424         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
425         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
426         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
427         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
428         (gdb_print_insn_sparc): Delete function.
429         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
430         deprecated_tm_print_insn_info.
431         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
432         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
433         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
434         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
435         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
436         * s390-tdep.c (gdb_print_insn_s390): Delete function.
437         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
438         (s390_gdbarch_init): Set print_insn.
439
440 2003-08-27  Andrew Cagney  <[email protected]>
441
442         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
443         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
444         * infcall.c (call_function_by_hand): Convert the entry point
445         address into a code address.
446
447 2003-08-27  Andrew Cagney  <[email protected]>
448
449         * dsrec.c: Include "gdb_string.h".
450         * Makefile.in (dsrec.o): Update dependencies.
451
452 2003-08-27  Michael Chastain  <[email protected]>
453
454         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
455
456 2003-08-27  Andrew Cagney  <[email protected]>
457
458         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
459         (alpha_osf1_init_abi): Do not set call_dummy_address.
460
461 2003-08-27  David Carlton  <[email protected]>
462
463         From Randolph Chung  <[email protected]>:
464         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
465         compiles with -Wformat-nonliteral -Werror.
466
467 2003-08-26  Jim Blandy  <[email protected]>
468
469         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
470         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
471         bfd_lookup_symbol, since we only want symbols in code sections.
472         (look_for_base): Pass zero as the SECT_FLAGS argument to
473         bfd_lookup_symbol, since we're not concerned about which section
474         the symbol is in.
475
476 2003-08-26  Jeff Johnston  <[email protected]>
477
478         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
479         we are frameless or the return address register is already known. 
480
481 2003-08-26  Andrew Cagney  <[email protected]>
482
483         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
484         in size.  Add comments.
485
486 2003-08-26  Jeff Johnston  <[email protected]>
487
488         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
489         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr(). 
490
491 2003-08-26  Jason Merrill  <[email protected]>
492
493         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
494         case out of #ifdef MIPS block.
495
496 2003-08-25  Daniel Jacobowitz  <[email protected]>
497
498         PR java/1322
499         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
500         available before calling SECT_OFF_TEXT.
501         * PROBLEMS: Remove description of java/1322.
502
503 2003-08-25  Jeff Johnston  <[email protected]>
504
505         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63, 
506         bof, and nat0-nat127 as pseudo-registers.
507         (ia64_frame_cache): New struct used to cache frame info.
508         (ia64_register_reggroup_p): New routine used to override default
509         register grouping so registers without names are still saved and 
510         restored.
511         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their 
512         pseudo values.
513         (ia64_pseudo_register_read): New routine to read pseudo-registers.
514         (ia64_pseudo_register_write): New routine to write pseudo-registers.
515         (ia64_alloc_frame_cache): New routine to create a new 
516         ia64_frame_cache.
517         (examine_prologue): Change prototype to add next_frame pointer.
518         Assume frameless until otherwise proven.  Verify that the cfm for
519         current frame matches the cfm that should occur for the prologues 
520         alloc insn and if equal, mark as not frameless.  At end of routine,
521         if not frameless, calculate registers for the previous frame and store
522         in the cache, if a cache is provided.
523         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
524         and pass 0 for next_frame.
525         (ia64_store_return_value): Change to use convert_typed_floating()
526         instead of calling ia64_convert_to_raw().
527         (ia64_extract_return_value): Change to use convert_typed_floating()
528         instead of calling ia64_convert_to_virtual().
529         (ia64_frame_cache): New routine to support new frame model.
530         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
531         (ia64_frame_sniffer): Ditto.
532         (ia64_sigtramp_frame_init_saved_regs): Ditto.
533         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
534         (ia64_sigtramp_frame_prev_register): Ditto.
535         (ia64_sigtramp_frame_sniffer): Ditto.
536         (ia64_frame_base_address): Ditto.
537         (ia64_extract_struct_value_address): Change to issue error message.
538         (ia64_frame_align): New routine to align sp.
539         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
540         (ia64_push_arguments): Removed.  Logic moved to 
541         ia64_push_dummy_call().
542         (ia64_push_return_address): Ditto.
543         (ia64_unwind_dummy_id): New function.
544         (ia64_unwind_pc): Ditto.
545         (ia64_convert_register_p): Ditto.
546         (ia64_register_to_value): Ditto.
547         (ia64_value_to_register): Ditto.
548         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
549         (ia64_register_byte, ia64_register_raw_size): Ditto.
550         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
551         (ia64_saved_pc_after_call): Ditto.
552         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
553         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
554         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
555         (ia64_register_convert_to_raw): Ditto.
556         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
557         (ia64_init_extra_frame_info): Ditto.
558         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
559         (ia64_gdbarch_init): Remove registering of deprecated functions that
560         are no longer used.  Add registration of new gdbarch functions.
561         Remove registering deprecated_write_sp.  Replace
562         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
563         Delete set_gdbarch_deprecated_register_convertible(),
564         set_gdbarch_deprecated_register_convert_to_virtual(), and
565         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
566         set_gdbarch_deprecated_register_size(),
567         set_gdbarch_deprecated_register_bytes(),
568         set_gdbarch_pcregnum(),
569         set_gdbarch_deprecated_register_byte(),
570         set_gdbarch_deprecated_register_raw_size(),
571         set_gdbarch_deprecated_max_register_raw_size(),
572         set_gdbarch_deprecated_register_virtual_size(),
573         and set_gdbarch_deprecated_max_register_virtual_size() calls.
574         Replace set_gdbarch_deprecated_extract_return_value() with
575         set_gdbarch_extract_return_value().  Remove calls to:
576         set_gdbarch_deprecated_saved_pc_after_call();
577         set_gdbarch_deprecated_frame_chain(),
578         set_gdbarch_deprecated_frame_saved_pc(),
579         set_gdbarch_deprecated_frame_init_saved_regs(),
580         set_gdbarch_deprecated_get_saved_register(),
581         set_gdbarch_deprecated_call_dummy_words(),
582         set_gdbarch_deprecated_sizeof_call_dummy_words(),
583         set_gdbarch_deprecated_init_extra_frame_info(),
584         set_gdbarch_deprecated_frame_args_address(),
585         set_gdbarch_deprecated_frame_locals_address(),
586         and set_gdbarch_deprecated_dummy_write_sp().
587         Add set_gdbarch_convert_register_p(),
588         set_gdbarch_register_to_value(),
589         set_gdbarch_value_to_register(),
590         set_gdbarch_push_dummy_call(),
591         set_gdbarch_frame_align(),
592         set_gdbarch_unwind_dummy_id(),
593         set_gdbarch_unwind_pc(),
594         frame_unwind_append_sniffer(),
595         frame_unwind_append_sniffer(),
596         and frame_base_set_default().
597
598 2003-08-25  Chris Demetriou  <[email protected]>
599
600         * configure.tgt: Document need for special "mipsisa64" handling.
601         (mipsisa64*-*-linux64): Handle as target linux64.
602         (mipsisa64*-*-*): Handle as target embed64.
603
604 2003-08-18  Michael Chastain  <[email protected]>
605
606         * PROBLEMS: Document pr gdb/1322, the Java anonymous
607         objfile bug.
608
609 2003-08-24  Mark Kettenis  <[email protected]>
610
611         * i387-tdep.h: Update copyright date.
612         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
613
614         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
615         CFLAGS games to reflect reality.
616
617 2003-08-24  Andrew Cagney  <[email protected]>
618
619         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
620         GDB_MULTI_ARCH is always non-zero.
621         * osabi.c (_initialize_gdb_osabi): Ditto.
622         (gdbarch_init_osabi): Ditto.
623         * sparc-tdep.c: Ditto for #if code.
624
625 2003-08-23  Mark Kettenis  <[email protected]>
626
627         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
628         Update comments.
629         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
630         comments.
631         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
632         x86_64_supply_fxsave.
633         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
634         x86_64_supply_fxsave.
635         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
636         x86_64_supply_fxsave.
637
638 2003-08-23  Andreas Jaeger  <[email protected]>
639
640         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
641         i387_supply_fxsave.
642
643 2003-08-23  Mark Kettenis  <[email protected]>
644
645         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
646         i387_supply_register.
647         (go32_fetch_registers): Adjust call to i387_supply_fsave.
648         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
649         i387_supply_fsave.
650         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
651         i387_supply_fxsave.
652         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
653         i387_supply_fsave.
654         * i386bsd-nat.c (supply_fpregset): Adjust call to
655         i387_supply_fsave.
656         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
657         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
658         supply_fpregset.
659         (store_inferior_registers): Remove extraneous whitespace.  Call
660         i387_fill_fsave instead of fill_fpregset.
661         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
662         (supply_fpregset): Likewise.
663         * i386v4-nat.c (supply_fpregset): Adjust call to
664         i387_supply_fsave.
665         * i386-interix-nat.c (supply_fpregset): Adjust call to
666         i387_supply_fsave.
667         * i386-linux-nat.c (supply_fpregset): Adjust call to
668         i387_supply_fsave.
669         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
670         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
671         i387supply_fsave and i387_supply_fxsave.
672         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
673         Incorporate code from `i387_supply_register.
674         (i387_supply_register): Remove.
675         (i387_supply_fxsave): Add `regnum' argument.
676         Update comments.
677         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
678         prototype.
679         (i387_supply_register): remove prototype.
680         Update comments.
681         
682 2003-08-22  Michael Chastain  <[email protected]>
683
684         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
685         Add lines for files in gdb/testsuite/gdb.cp/* that are
686         still not 8.3 unique.
687
688 2003-08-22  Daniel Jacobowitz  <[email protected]>
689
690         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
691         TYPE_VPTR_FIELDNO is valid.
692
693 2003-08-19  Mark Kettenis  <[email protected]>
694
695         * utils.c (set_width_command): Remove prototypes.
696         (set_screen_size): New prototype.
697         (init_page_info): Simplify by fetching the screen size from
698         Readline.  Call set_screen_size.
699         (set_screen_size): New function.
700         (set_width): Add missing whitespace in comment.
701         (set_width_command): Call set_screen_size.
702         (set_height_command): New function.
703         (initialize_utils): Fix formatting.  Make "set height" command
704         call set_height_command.  Remove redundant code that turns off
705         pagination if output isn't a terminal.  Remove redundant call to
706         set_width_command.
707         
708 2003-08-22  Mark Kettenis  <[email protected]>
709
710         * sparc64-tdep.h (sparc64_regnum): Fix comment.
711         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
712         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
713         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
714         `case' keyword.
715         (sparc64_register_info): Give the reister with number
716         SPARC64_STATE_REGNUM a name.
717         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
718         %asi and %ccr.
719         (sparc64_push_dummy_call): Take BIAS into account when checking
720         stcak alignment.
721         (sparc_software_single_step): Remove assertions that check whether
722         NPC and NNPC were zero.
723         (sparc_supply_rwindow): Make public.  Merge functionality with
724         sparc64_supply_rwindow.
725         (sparc_fill_rwindow): Make public.  Merge functionality with
726         sparc64_fill_rwindow.
727         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
728         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
729         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
730         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
731         sparc_supply_rwindow instead of sparc64_supply_rwindow.
732
733         * reggroups.c: Add whitespace after declarations of local
734         variables in functions.
735
736 2003-08-21  Michael Chastain  <[email protected]>
737
738         * gdbtypes.h: Change array bound type from an int to enum.
739
740 2003-08-21  Andrew Cagney  <[email protected]>
741
742         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
743         * config/sparc/tm-sparc.h: Ditto.
744         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
745         unconditionally.
746         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
747
748 2003-07-13  Mark Kettenis  <[email protected]>
749
750         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
751         (register_objfile_data, set_objfile_data, objfile_data): New
752         prototypes.
753         * objfiles.c (objfile_alloc_data, objfile_free_data): New
754         prototypes.
755         (allocate_objfile): Call objfile_alloc_data.
756         (free_objfile): Call objfile_free_data.
757         (struct objfile_data): New.
758         (struct objfile_data_registration): New.
759         (struct objfile_data_registry): New.
760         (objfile_data_registry): New variable.
761         (register_objfile_data): New function.
762         (objfile_alloc_data, objfile_free_data): New functions.
763         (set_objfile_data, objfile_data): New functions.
764         * dwarf2-frame.c (dwarf2_frame_data): New variable.
765         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
766         (_initialize_dwarf2_frame): New function and prototype.
767
768 2003-08-21  Andrew Cagney  <[email protected]>
769
770         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
771         a specific architecture.
772         * arch-utils.h (set_architecture_from_arch_mach): Delete
773         declaration.
774         (target_architecture_hook): Delete declaration.
775         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
776         (default_float_format): Assume GDB_MULTI_ARCH.
777         (default_double_format): Assume GDB_MULTI_ARCH.
778         (set_endian_from_file): Delete function.
779         (arch_ok): Delete function.
780         (set_arch): Delete function.
781         (set_architecture_from_arch_mach): Delete function.
782         (set_architecture_from_file): Delete function.
783         (set_architecture): Assume GDB_MULTI_ARCH.
784         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
785
786 2003-08-21  Mark Kettenis  <[email protected]>
787
788         Rewrite FreeBSD/sparc64 native configuration.
789         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
790         * sparc64fbsd-nat.c: New file.
791         * sparc64fbsd-tdep.c: New file.
792         * sparc64-tdep.c sparc64-tdep.h: New files.
793         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
794         sparc64fbsd-tdep.o): New dependencies.
795         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
796         and sparc64fbsd-tdep.c.
797         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
798         * config/sparc/fbsd.mh: Remove copyright notice.
799         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
800         sparcbsd-nat.o.
801         * config/sparc/fbsd.mt: Remove copyright notice.
802         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
803         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
804         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
805         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
806         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
807         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
808         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
809         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
810         "sparc/tm-sp64.h".
811         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
812         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
813
814 2003-08-21  Michael Chastain  <[email protected]>
815
816         * symtab.h: Add doco on the space critical structures and
817         some measurements of space usage.
818
819 2003-08-21  Michael Snyder  <[email protected]>
820
821         * tracepoint.c (trace_dump_command): Trace break address
822         is subject to DECR_PC_AFTER_BREAK.
823         (set_traceframe_context): Make "trace_line" an int.
824         Fixes suggested by Mark Newman  <[email protected]>
825         
826 2003-08-20  Michael Snyder  <[email protected]>
827
828         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
829         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set 
830         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for 
831         argument passing.
832         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New 
833         functions, replace sh_push_dummy_call.
834         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
835
836 2003-08-20  Michael Chastain  <[email protected]>
837
838         * gdbtypes.h (struct main_type): Rearrange to save space.
839
840 2003-08-20  Michael Snyder  <[email protected]>
841
842         * trad-frame.c: Comment typo fix.
843
844 2003-08-20  Michael Snyder  <[email protected]>
845             Kevin Buettner  <[email protected]>
846
847         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
848         (frv_frame_init_saved_regs): Add declaration.
849         (frame_extra_info): Add new field ``saved_regs''.
850         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
851         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
852         Update frame related code.
853         (frv_extract_struct_value_address): Adjust formatting.
854         * Makefile.in (frv-tdep.o): Update dependencies.
855         * config/frv/tm-frv.h (target_insert_watchpoint)
856         (target_remove_watchpoint, target_insert_hw_breakpoint)
857         (target_remove_hw_breakpoint): Delete these macros.
858         (remote_insert_watchpoint, remote_remove_watchpoint)
859         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
860         these declarations.
861
862 2003-08-20  Michael Chastain  <[email protected]>
863
864         * defs.h (ENUM_BITFIELD): New macro.
865         * symtab.h (ENUM_BITFIELD): Use it.
866         (BYTE_BITFIELD): Remove old macro, which was already disabled.
867
868 2003-08-19  Shrinivas Atre <[email protected]>
869
870         * MAINTAINERS (write after approval): Add myself.
871         
872 2003-08-18  Andrew Cagney  <[email protected]>
873
874         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
875         * gdbarch.h, gdbarch.c: Re-generate.
876         * infcall.c (call_function_by_hand): Adjust the SP by
877         frame_red_zone_size before allocating any stack space.
878         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
879         * x86-64-tdep.c (x86_64_frame_align): New function.
880         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
881
882         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
883         Remove code adjusting SP so that it skips over the Red Zone.
884
885 2003-08-18  Mark Kettenis  <[email protected]>
886
887         * NEWS (New native configurations): Mention FreeBSD/amd64.
888
889 2003-08-18  Andrew Cagney  <[email protected]>
890
891         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
892         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
893         "m68k_frame_p".
894         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
895
896 2003-08-18  Mark Kettenis  <[email protected]>
897
898         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
899
900 2003-08-18  Michal Ludvig  <[email protected]>
901
902         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
903         Define.
904         * i386-linux-nat.c: Include "linux-nat.h".
905         (child_post_startup_inferior): New function.
906         
907 2003-08-18  Mark Kettenis  <[email protected]>
908
909         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
910         at the start of a frameless function.  This probably fixes PR
911         backtrace/1338.
912
913 2003-08-17  Michael Chastain  <[email protected]>
914
915         * symfile.c (find_sym_fns): Remove special case for apollo target.
916
917 2003-08-17  Daniel Jacobowitz  <[email protected]>
918
919         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
920         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
921         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
922         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
923         (linux_supports_tracevforkdone): New function.
924         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
925         TRACEVFORKDONE.
926         (child_follow_fork): Handle vfork.
927         (linux_handle_extended_wait): Likewise.  Also handle exec.
928         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
929         * NEWS: Mention fork tracing.
930
931 2003-08-17  Daniel Jacobowitz  <[email protected]>
932
933         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
934
935 2003-08-17  Daniel Jacobowitz  <[email protected]>
936
937         * Makefile.in (i386-linux-nat.o): Update dependencies.
938         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
939         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
940         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
941         * i386-linux-nat.c: Include "linux-nat.h".
942         (child_post_startup_inferior): New function.
943         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
944         * infptrace.c (kill_inferior): Wrap in #ifdef.
945         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
946         attaching to each LWP.
947         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
948         (init_lin_lwp_ops): Fill in some more operations.
949         * linux-nat.h (linux_enable_event_reporting)
950         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
951         prototypes.
952         * linux-nat.c (linux_enable_event_reporting): New function.
953         (child_post_attach, linux_child_post_startup_inferior)
954         (child_post_startup_inferior, child_follow_fork)
955         (linux_handle_extended_wait, kill_inferior): New functions.
956
957 2003-08-16  Andrew Cagney  <[email protected]>
958
959         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
960         * gdbarch.h, gdbarch.c: Re-generate.
961
962 2003-08-16  Mark Kettenis  <[email protected]>
963
964         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
965
966 2003-08-16  Andrew Cagney  <[email protected]>
967
968         * NEWS: Mention that "set prompt-escape-char" was deleted.
969         * top.c (get_prompt_1): Delete function.
970         (gdb_prompt_escape):
971         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
972         prompt-escape-char" command.
973         (MAX_PROMPT_SIZE): Delete macro.
974         (get_prompt): Simplify, do not call get_prompt_1.
975
976 2003-08-16  Andrew Cagney  <[email protected]>
977
978         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
979         -Werror.  -Wformat-nonliteral problems.
980
981 2003-08-15  J. Brobecker  <[email protected]>
982
983         Further multiarching work mostly for hppa64-*-hpux11:
984         * hppa-tdep.h: New file.
985         * hppa-tdep.c: #include hppa-tdep.c.
986         (hppa32_num_regs): Renamed from hppa_num_regs.
987         (hppa64_num_regs): New constant.
988         (hppa64_call_dummy_breakpoint_offset): New constant.
989         (hppa32_call_dummy_length): New constant.
990         (hppa64_call_dummy_length): New constant.
991         (hppa32_stack_align): Make name 32bit explicit.
992         (hppa32_register_virtual_type): Likewise.
993         (hppa32_extract_return_value): Likewise.
994         (hppa32_use_struct_convention): Likewise.
995         (hppa32_store_return_value): Likewise.
996         (hppa64_register_virtual_type): New function.
997         (hppa64_extract_return_value): New function.
998         (hppa64_use_struct_convention): New function.
999         (hppa64_store_return_value): New function.
1000         (hppa_frame_locals_address): Remove declaration, function does
1001         not exist anymore.
1002         (hppa_register_byte): Add support for PA64 ABI.
1003         (hppa_gdbarch_init): Add support for PA64 ABI.
1004         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1005         Make name 32bit explicit.
1006         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1007         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1008         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1009         (hppa64_hpux_frame_base_before_sigtramp): New function.
1010         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1011         * config/pa/tm-hppa64.h: Remove macros that are no longer
1012         necessary now that the gdbarch vector is properly setup.
1013         Transform some macros into function calls. Some minor cleanup. 
1014         * config/pa/tm-hppah.h: Update function calls in macros
1015         following the function renaming in hppa-hpux-tdep.c.
1016         * Makefile.in (hppa_tdep_h): New variable.
1017         (hppa-tdep.o): Add dependency over hppa_tdep_h.
1018
1019 2003-08-14  Michael Snyder  <[email protected]>
1020
1021         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1022
1023 2003-08-13  J. Brobecker  <[email protected]>
1024
1025         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1026         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1027         routine.
1028
1029 2003-08-13  Michael Snyder  <[email protected]>
1030
1031         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1032         (frv_saved_pc_after_call): Use deprecated ftype.
1033         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1034         (frv_remote_translate_xfer_address): Remove.
1035         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1036
1037 2003-08-13  J. Brobecker  <[email protected]>
1038
1039         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1040         initialization after the common gdbarch initialization, not before.
1041
1042 2003-08-13  J. Brobecker  <[email protected]>
1043
1044         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1045         (ADDR_BITS_REMOVE): Remove, redundant.
1046
1047 2003-08-13  J. Brobecker  <[email protected]>
1048
1049         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1050         gdbarch method to clear the 2 low bits of text addresses.
1051
1052 2003-08-12  Andrew Cagney  <[email protected]>
1053
1054         * Makefile.in (dsrec.o): Update dependencies.
1055         * dsrec.c: Include "gdb_assert.h".
1056         (make_srec): Use snprintf instead of sprintf, use a literal format
1057         string.
1058
1059 2003-08-12  Andrew Cagney  <[email protected]>
1060
1061         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1062         FRAME_OBSTACK_ZALLOC.
1063
1064 2003-08-12  Kevin Buettner  <[email protected]>
1065
1066         * i386-tdep.c (i386_gdbarch_init): Enable default support for
1067         SSE registers.
1068
1069 2003-08-10  Mark Kettenis  <[email protected]>
1070
1071         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1072         amd64fbsd_sc_reg_offset): Add extern declarations.
1073         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1074         declarations.
1075
1076 2003-08-11  Ben Elliston  <[email protected]>
1077
1078         * MAINTAINERS (write after approval): Update my mail address.
1079
1080 2003-08-10  Andrew Cagney  <[email protected]>
1081
1082         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1083
1084 2003-08-10  Mark Kettenis  <[email protected]>
1085
1086         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1087         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1088         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1089         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1090         i386bsd_sc_reg_offset): Add extern declarations.
1091         * i386obsd-nat.c: Include "i386-tdep.h"
1092         (_initialize_i386obsd_nat): Remove extern declarations.
1093         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1094         declarations.
1095         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1096         declarations.
1097
1098         * i386-tdep.c (i386_register_to_value): Use get_frame_register
1099         instead of frame_read_register.
1100         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1101         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
1102         SP_REGNUM.
1103         (i386_frame_prev_register): Use frame_unwind_register_unsigned
1104         instead of frame_unwind_unsigned_register.  Use
1105         I386_EFLAGS_REGISTER instead of PS_REGNUM.
1106         (i386_get_longjmp_target): Use regcache_read_unsigned_register
1107         instead of read_register.  Use builtin_type_void_data_ptr instead
1108         of builtin_type_void_func_ptr when extracting the address of the
1109         jmp_buf.
1110         (i386_extract_return_value, i386_store_return_value,
1111         i386_pseudo_register_read, i386_pseudo_register_write): Use
1112         register_size instead REGISTER_RAW_SIZE.
1113
1114 2003-08-10  Andrew Cagney  <[email protected]>
1115
1116         * infcall.c (call_function_by_hand): Use xstrprintf instead of
1117         sprintf.  Make "name" constant.
1118
1119 2003-08-10  Mark Kettenis  <[email protected]>
1120
1121         * i387-tdep.c (i387_register_to_value): Use get_frame_register
1122         instead of frame_read_register.
1123         (i387_print_float_info): Use get_frame_register and
1124         get_frame_register_unsigned instead of frame_register_read.
1125
1126         * i386fbsd-nat.c: Include "i386-tdep.h".
1127         (child_resume): Make `eflags' an ULONGEST.  Use
1128         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1129         instead of register_read and register_write.
1130
1131         * i386bsd-nat.c (fetch_inferior_registers,
1132         store_inferior_registers): Don't use && at the end of a line.
1133         (_initialize_i386bsd_nat): Fix typo.
1134
1135         * frame.c (_initialize_frame): Add missing backslash.
1136
1137         From Peter Schauer ([email protected]):
1138         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1139         and supply_register instead of manipulating the register buffer
1140         directly.
1141
1142         From Peter Schauer ([email protected]):
1143         * config/i386/nm-i386sol2.h
1144         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1145
1146         Based on a patch from Michael Elizabeth Chastain ([email protected]):
1147         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1148         instructions that GCC likes to mingle into the prologue.  Fixes
1149         gdb/1253 and gdb/1255.
1150
1151 2003-08-09  Andrew Cagney  <[email protected]>
1152
1153         Fix GDB PR cli/926.
1154         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1155         * command.h (add_setshow_uinteger_cmd): Declare.
1156         * frame.c (set_backtrace_cmd): New function.
1157         (show_backtrace_cmd): New function.
1158         * frame.c (_initialize_frame): Replace "set/show
1159         backtrace-below-main" with "set/show backtrace past-main".  Add
1160         command "set/show backtrace limit".
1161         (backtrace_past_main): Rename "backtrace_below_main".
1162         (backtrace_limit): New variable.
1163         (get_prev_frame): Update.  Check the backtrace_limit.
1164
1165 2003-08-09  Andrew Cagney  <[email protected]>
1166
1167         * defs.h (xstrprintf): Declare.
1168         * utils.c (xstrprintf): New function.
1169         * breakpoint.c (insert_breakpoints): Replace sprintf and
1170         non-literal format strings, with xstrprintf and cleanups.
1171         (delete_breakpoint,breakpoint_re_set): Ditto.
1172         (commands_command, insert_breakpoints): Ditto.
1173         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1174         (break_at_finish_command_1): Ditto.
1175
1176 2003-08-09  Andrew Cagney  <[email protected]>
1177
1178         * MAINTAINERS (language support): List Adam Fedor as Objective C
1179         maintainer.
1180
1181 2003-08-08  J. Brobecker  <[email protected]>
1182
1183         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1184         are now multiarched.
1185
1186 2003-08-08  J. Brobecker  <[email protected]>
1187
1188         * config/pa/tm-hppa64.h: Remove lots of macros that are no
1189         longer necessary now that hppa64 is partially multiarch'ed.
1190
1191 2003-08-08  Andrew Cagney  <[email protected]>
1192
1193         * interps.c (interp_set): Check for a NULL "old_interp".
1194
1195 2003-08-08  H.J. Lu  <[email protected]>
1196
1197         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1198         (install-only): Support DESTDIR.
1199         (uninstall): Likewise.
1200         (install-gdbtk): Likewise.
1201
1202 2003-08-08  Elena Zannoni  <[email protected]>
1203
1204         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1205         contains something meaningful at all times.
1206
1207 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <[email protected]>
1208
1209         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1210
1211 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <[email protected]>
1212
1213         * MAINTAINERS (write after approval): Added self.
1214
1215 2003-08-07  Andrew Cagney  <[email protected]>
1216
1217         * inferior.h (AT_SYMBOL): Define.
1218         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1219         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1220         * mips-tdep.c (mips_call_dummy_address): Delete function.
1221         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1222         set call_dummy_address.
1223
1224 2003-08-07  Andrew Cagney  <[email protected]>
1225
1226         * language.c (op_error): Delete function.
1227         (binop_type_check): Delete function.
1228         * language.h (type_op_error, range_op_error): Delete macros.
1229         (op_error): Delete declaration.
1230
1231 2003-08-07  Andrew Cagney  <[email protected]>
1232
1233         * interps.h (INTERP_MI2, INTERP_MI3): Define.
1234
1235 2003-08-07  Michal Ludvig  <[email protected]>
1236
1237         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1238         (x86_64_push_arguments): Skip the red zone.
1239
1240 2003-08-05  Andrew Cagney  <[email protected]>
1241
1242         * reggroups.c (reggroup_next): Check for the final entry.
1243
1244 2003-08-04  Andrew Cagney  <[email protected]>
1245
1246         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1247         * cli/cli-script.c (define_command): Call query directly, instead
1248         of passing it a buffer.
1249         * ocd.c (ocd_error): Pass error a constant format string.
1250         * remote-mips.c (mips_error): Use fputs_filtered.
1251
1252         * solib-svr4.c (_initialize_svr4_solib): Update
1253         register_gdbarch_data call.
1254         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1255
1256         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1257         (register_gdbarch_data): Delete "free" parameter.  Update
1258         comments.
1259         * gdbarch.h, gdbarch.c: Re-generate.
1260         * reggroups.c (_initialize_reggroup): Update.
1261         * gnu-v3-abi.c (init_gnuv3_ops): Update.
1262         * frame-base.c (_initialize_frame_base): Update.
1263         * frame-unwind.c (_initialize_frame_unwind): Update.
1264         * user-regs.c (_initialize_user_regs): Update.
1265         * remote.c (_initialize_remote): Update.
1266         * regcache.c (_initialize_regcache): Update.
1267
1268         * regcache.c (xfree_regcache_descr): Delete function.
1269         (_initialize_regcache): Update call to register_gdbarch_data.
1270         (init_regcache_descr, init_legacy_regcache_descr): Use
1271         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1272
1273         * remote.c (free_remote_state): Delete function.
1274         (_initialize_remote): Update register_gdbarch_data.
1275         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1276         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1277
1278 2003-08-04  Andrew Cagney  <[email protected]>
1279
1280         * reggroups.c (struct reggroup_el): Define.
1281         (struct reggroups): Delete field "nr_group".  Replace array
1282         "group" with a "first" to "last" linked list.
1283         (reggroups_init): Update.  Allocate using gdbarch's obstack.
1284         (reggroups_free): Delete function.
1285         (add_group): Update.  Add "el" parameter.
1286         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1287         (default_groups): Update.
1288         (reggroup_next): Replace reggroups.
1289         (reggroups_dump): Update.
1290         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1291         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1292         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1293
1294 2003-08-04  Daniel Jacobowitz  <[email protected]>
1295
1296         * Makefile.in (tui-interp.o): Update dependencies.
1297
1298 2003-08-04  David Carlton  <[email protected]>
1299
1300         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1301         to internal_error call.
1302         * source.c (forward_search_command): Add "%s" format argument.
1303         (reverse_search_command): Ditto.
1304         * top.c (quit_confirm): Ditto.
1305         * cli/cli-setshow.c (do_setshow_command): Ditto.
1306         * cp-valprint.c (cp_print_class_method): Replace
1307         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1308         (cp_print_class_member): Ditto.
1309         * event-top.c (command_line_handler): Ditto.
1310         * linux-proc.c (linux_info_proc_cmd): Ditto.
1311         * p-typeprint.c (pascal_type_print_base): Ditto.
1312         * p-valprint.c (pascal_object_print_class_method): Ditto.
1313         (pascal_object_print_class_member): Ditto.
1314         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1315         * remote.c (remote_cisco_section_offsets): Ditto.
1316         * top.c (command_line_input): Ditto.
1317         * utils.c (vwarning,error_stream,quit): Ditto.
1318         * valprint.c (print_floating,print_binary_chars)
1319         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1320
1321 2003-08-04  Andrew Cagney  <[email protected]>
1322
1323         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1324
1325 2003-08-02  Andrew Cagney  <[email protected]>
1326
1327         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1328         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1329         amd64fbsd-nat.c.
1330
1331 2003-08-02  Andrew Cagney  <[email protected]>
1332
1333         * Makefile.in: Update all dependencies and definitions.
1334
1335 2003-08-02  Adam Fedor  <[email protected]>
1336
1337         * linespec.c (is_objc_method_format): New function
1338         (decode_line_1, locate_first_half): Use it.
1339         Fixes PR objc/1298
1340
1341 2003-08-01  Andrew Cagney  <[email protected]>
1342
1343         * NEWS: Mention that m32r is multi-arch.
1344         From 2003-07-28 Kei Sakamoto <[email protected]>:
1345         * configure.tgt: Recognize m32r-*-*.
1346         * config/m32r/tm-m32r.h: Delete file.
1347         * config/m32r/m32r.mt: New file.
1348         * m32r-rom.c (m32r_upload_command): Use hostent only when 
1349         gethostname succeeds, in order to avoid a compilation
1350         warning.
1351         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1352         compiler warning.
1353
1354 2003-08-01  Michael Snyder  <[email protected]>
1355
1356         * sh-tdep.c (sh_frame_align): New gdbarch method.
1357         (sh_gdbarch_init): Set up frame_align method.
1358
1359 2003-07-31  Michael Snyder  <[email protected]>
1360
1361         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1362         which is already covered by the new frames infrastructure.
1363
1364 2003-07-31  Andrew Cagney  <[email protected]>
1365
1366         * user-regs.c (struct user_reg): Add "next" link.
1367         (struct user_regs): Replace "user" with "first" and "last" links.
1368         (append_user_reg): Add pre-allocated "reg" parameter.
1369         (builtin_user_regs): Provide initial value for "last".
1370         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1371         (user_regs_init): Allocate memory from the gdbarch obstack.
1372         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1373         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1374         linked list.
1375         (usernum_to_user_reg): New function.
1376         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1377         (value_of_user_reg): Use usernum_to_user_reg.
1378         (user_regs_free): Delete function.
1379         (_initialize_user_regs): Update register_gdbarch_data call.
1380
1381 2003-07-31  Daniel Jacobowitz  <[email protected]>
1382
1383         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1384
1385 2003-07-30  Michael Snyder  <[email protected]>
1386
1387         * value.h (value_being_returned): Add a struct_addr argument.
1388         * infcall.c (call_function_by_hand): Pass struct_addr to 
1389         value_being_returned.
1390         * infcmd.c (print_return_value): Pass zero as struct_addr.
1391         * values.c (value_being_returned): If struct_addr is passed,
1392         use it instead of trying to recover it from the inferior.
1393
1394 2003-07-30  Kevin Buettner  <[email protected]>
1395
1396         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1397         the prologue analyzer won't need to attempt to extract the pc
1398         value from the woefully incomplete dummy frame.
1399         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1400         possible.  Disable code which modifies the frame.
1401
1402 2003-07-28  Andrew Cagney  <[email protected]>
1403
1404         * annotate.c (annotate_breakpoints_headers): Restrict annotation
1405         to level 2.
1406         (annotate_breakpoints_table, annotate_record): Ditto.
1407         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1408         (annotate_field_name_end, annotate_field_value): Ditto.
1409         (annotate_field_end, annotate_frame_source_begin): Ditto.
1410         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1411         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1412         (annotate_frame_begin, annotate_frame_function_name): Ditto.
1413         (annotate_frame_address_end, annotate_frame_address): Ditto.
1414         (annotate_frame_args, annotate_frame_end): Ditto.
1415         (annotate_frame_where, annotate_arg_begin): Ditto.
1416         (annotate_arg_name_end, annotate_arg_value): Ditto.
1417         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1418         (annotate_function_call, annotate_signal_name): Ditto.
1419         (annotate_signal_string, annotate_signal_name_end): Ditto.
1420         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1421         (annotate_value_begin, annotate_value_history_value): Ditto.
1422         (annotate_value_history_end, annotate_value_end): Ditto.
1423         (annotate_display_begin, annotate_display_number_end): Ditto.
1424         (annotate_display_format, annotate_display_expression): Ditto.
1425         (annotate_display_expression_end, annotate_display_value): Ditto.
1426         (annotate_display_end, annotate_array_section_begin): Ditto.
1427         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1428         (annotate_elt, annotate_array_section_end): Ditto.
1429
1430 2003-07-28  Andrew Cagney  <[email protected]>
1431
1432         * regcache.c (struct regcache_descr): Update comments on
1433         nr_raw_registers.
1434         (init_legacy_regcache_descr): Don't set nr_raw_registers or
1435         sizeof_raw_register_valid_p.
1436         (init_regcache_descr): Set nr_raw_registers and
1437         sizeof_raw_register_valid_p before calling
1438         init_legacy_regcache_descr.
1439
1440 2003-07-28  Andrew Cagney  <[email protected]>
1441
1442         * mips-tdep.c (print_gp_register_row): Print the GPR's register
1443         MOD NUM_REGS.
1444
1445 2003-07-28  Daniel Jacobowitz  <[email protected]>
1446
1447         * thread.c (info_threads_command): Use get_selected_frame ().
1448         Check that there is at least one non-sentinel frame.
1449
1450 2003-07-27  Stephane Carrez  <[email protected]>
1451
1452         * m68hc11-tdep.c (struct frame_extra_info): Remove.
1453         (m68hc11_pop_frame): Remove.
1454         (m68hc11_frame_saved_pc): Remove.
1455         (m68hc11_frame_chain): Remove.
1456         (m68hc11_frame_init_saved_regs): Remove.
1457         (m68hc11_init_extra_frame_info): Remove.
1458         (m68hc11_store_struct_return): Remove.
1459         (m68hc11_saved_pc_after_call): Remove.
1460
1461 2003-07-27  Stephane Carrez  <[email protected]>
1462
1463         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1464         frame unwind information.
1465         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1466         and adapted for frame unwinding.
1467         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1468         (m68hc11_unwind_pc): New function.
1469         (m68hc11_frame_unwind_cache): New function to analyze frames.
1470         (m68hc11_frame_this_id): New function to create new frame struct.
1471         (m68hc11_frame_prev_register): New function to unwind a register from
1472         the frame.
1473         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1474         (m68hc11_frame_p): New function for the above.
1475         (m68hc11_frame_base_address): New function to return fp of frame.
1476         (m68hc11_frame_args_address): Update for frame.
1477         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1478         (m68hc11_unwind_sp): New function.
1479         (m68hc11_unwind_dummy_id): New function.
1480         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1481         calls.
1482
1483 2003-07-27  Stephane Carrez  <[email protected]>
1484
1485         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1486         (m68hc11_guess_from_prologue): Advance the pc and frame size only
1487         when we are beyond the current pc.
1488
1489 2003-07-27  Stephane Carrez  <[email protected]>
1490
1491         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1492         from m68hc11_push_arguments.
1493         (m68hc11_push_arguments): Remove.
1494         (m68hc11_push_return_address): Remove.
1495         (m68hc11_gdbarch_init): Install the above; remove above deprecated
1496         handlers; remove deprecated_extra_stack_alignment_needed.
1497
1498 2003-07-27  Andrew Cagney  <[email protected]>
1499
1500         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1501         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1502         REAL_PC and not the pointer.
1503         * hppa-hpux-tdep.c: Include frame.h
1504
1505 2003-07-27  Andrew Cagney  <[email protected]>
1506
1507         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1508         GDB_MULTI_ACH_PARTIAL.
1509
1510 2003-07-27  Andrew Cagney  <[email protected]>
1511
1512         Patch from 2003-07-22 Kei Sakamoto <[email protected]>:
1513         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1514         operator at start and not end of line.
1515         (decode_prologue): Ditto.
1516         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1517         frame_unwind_register_unsigned instead of
1518         frame_unwind_unsigned_register.
1519         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1520         read_register.
1521         (m32r_push_dummy_call): Use register_size instead of
1522         REGISTER_RAW_SIZE.
1523         (m32r_frame_sniffer): Replace m32r_frame_p.
1524         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1525         * m32r-rom.c (report_transfer_performance): Delete extern
1526         declaration.
1527         (m32r_load, m32r_upload_command): Use print_transfer_performance
1528         instead of report_transfer_performance.
1529         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1530         / add_show_from_set.
1531
1532 2003-07-26  Andrew Cagney  <[email protected]>
1533
1534         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1535         store_return_value and extract_struct_value_address.
1536
1537 2003-07-26  Daniel Jacobowitz  <[email protected]>
1538
1539         PR c++/1267
1540         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1541         NULL, default to the section containing PC.
1542
1543 2003-07-24  Stephane Carrez  <[email protected]>
1544
1545         * NEWS: Mention "regs" deprecated for m68hc11 too.
1546
1547         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1548         (m68hc11_print_register): New function to print out one register.
1549         (m68hc11_print_registers_info): New function to print registers.
1550         (show_regs): Deprecate and use the above.
1551         (m68hc11_gdbarch_init): Install the print_registers_info.
1552
1553 2003-07-24  Jeff Johnston  <[email protected]>
1554
1555         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1556         that we have a SIGTRAP before returning non-zero.
1557
1558 2003-07-23  Michal Ludvig  <[email protected]>
1559             Elena Zannoni  <[email protected]>
1560
1561         * linespec.c (decode_line_2): Avoid crash if 
1562         find_function_start_sal() returns empty record.
1563
1564 2003-07-23  Andreas Schwab  <[email protected]>
1565
1566         * ia64-tdep.c (ia64_print_insn): New function.
1567         (ia64_gdbarch_init): Set print_insn to it.
1568         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1569         deprecated_tm_print_insn_info.
1570
1571 2003-07-22  Michael Snyder  <[email protected]>
1572
1573         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1574         handle 8-bit returns (long long).
1575         (h8300h_extract_return_value): Ditto.
1576         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1577
1578 2003-07-22  Andrew Cagney  <[email protected]>
1579
1580         * gdbarch.c Include "gdb_obstack.h".
1581         (struct gdbarch): Add an "obstack".
1582         (alloc_gdbarch_data): Allocate the gdbarch data using
1583         GDBARCH_OBSTACK_CALLOC.
1584         (free_gdbarch_data): Delete function.
1585         (gdbarch_obstack_zalloc): New function.
1586         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1587         Assert that the architecture is not initialized.
1588         (gdbarch_alloc): Allocate an obstack, allocate the architecture
1589         vector from the obstack.
1590         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1591         architecture obstack.
1592         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1593         (set_gdbarch_data): Assert that the data is not initialized.
1594         (struct gdbarch_data): Delete member "free".
1595         (register_gdbarch_data): Do not initialize "free".
1596         * gdbarch.h, gdbarch.c: Re-generate.
1597         
1598 2003-07-22  Andrew Cagney  <[email protected]>
1599
1600         * configure.in (build_warnings): Add -Wformat-nonliteral.
1601         * configure: Re-generate.
1602
1603 2003-07-22  Elena Zannoni  <[email protected]>
1604
1605         * dwarf2loc.c (locexpr_describe_location): Fix typos.
1606
1607 2003-07-22  Elena Zannoni  <[email protected]>
1608
1609         * findvar.c (read_var_value): Remove case for thread local storage
1610         variables.  It is now entirely handled by the dwarf2 location
1611         expression code.
1612         * printcmd.c (address_info): Ditto.
1613         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1614         enumeration value.
1615         (struct symbol): Remove objfile field, which was used by
1616         LOC_THREAD_LOCAL_STATIC only.
1617         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1618         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1619         usage of objfile pointer.
1620         * dwarf2loc.c (locexpr_describe_location): Add case to handle
1621         thread local variables.
1622         Add include of objfiles.h.
1623         * dwarf2expr.c (execute_stack_op): Add comments about thread local
1624         storage variables.
1625         * Makefile.in (dwarf2loc.o): Update dependencies.
1626
1627 2003-07-22  Andrew Cagney  <[email protected]>
1628
1629         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1630         get_frame_base.
1631         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1632         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1633         (struct value): Add opaque declaration.
1634         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1635
1636 2003-07-21  Andrew Cagney  <[email protected]>
1637
1638         From 2003-07-04 Kei Sakamoto <[email protected]>:
1639         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1640
1641 2003-07-20  Stephane Carrez  <[email protected]>
1642
1643         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
1644         regcache_cooked_read_unsigned instead of read_register.
1645         (m68hc11_saved_pc_after_call): Likewise.
1646         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1647         instead of write_register.
1648         (m68hc11_register_type): New function.
1649         (m68hc11_register_virtual_type): Remove.
1650         (m68hc11_store_return_value): Convert to use the regcache.
1651         (m68hc11_extract_struct_value_address): Likewise.
1652         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1653         m68hc11_register_type; undeprecate store_return_value and
1654         extract_struct_value_address.
1655
1656 2003-07-20  Stephane Carrez  <[email protected]>
1657
1658         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1659         and translate to use regcache.
1660         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1661
1662 2003-07-18  Andrew Cagney  <[email protected]>
1663
1664         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1665         * gdbarch.h, gdbarch.c: Re-generate.
1666         * i386-tdep.c (i386_gdbarch_init): Do not set
1667         DWARF2_BUILD_FRAME_INFO.
1668         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1669         unconditionally.
1670         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1671         DWARF2_BUILD_FRAME_INFO.
1672
1673 2003-07-18  Andrew Cagney  <[email protected]>
1674
1675         From 2003-07-04 Kei Sakamoto <[email protected]>:
1676         * disasm.c (gdb_disassemble_info): Initilize di.arch.
1677
1678 2003-07-18  Andrew Cagney  <[email protected]>
1679
1680         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1681         frame_unwind_address_in_block, instead of frame_pc_unwind.
1682         (dwarf2_frame_cache): Ditto.
1683
1684 2003-07-18  Andrew Cagney  <[email protected]>
1685
1686         * user-regs.h (struct gdbarch): Declare opaque.
1687         * ui-out.h (struct ui_file): Declare opaque.
1688         * dwarf2-frame.h (struct frame_info): Declare opaque.
1689
1690 2003-07-18  Kris Warkentin  <[email protected]>
1691
1692         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
1693         #include "...".
1694         (procfs_meminfo): Change strerror to safe_strerror.
1695         (procfs_can_run): Remove K&R badness.
1696
1697 2003-07-17  Michael Snyder  <[email protected]>
1698
1699         * remote-sim.c: Comment typo fix.
1700
1701 2003-07-17  Andrew Cagney  <[email protected]>
1702
1703         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
1704         configure.
1705         * sparc-tdep.c (sparc_intreg_size): Make non-static.
1706         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1707         GDB_MULTI_ARCH_PARTIAL.
1708
1709 2003-07-17  Elena Zannoni  <[email protected]>
1710
1711         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1712         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
1713         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1714
1715 2003-07-16  Theodore A. Roth  <[email protected]>
1716
1717         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1718         found.
1719         (avr_frame_unwind_cache): Don't unwind FP for main.
1720         Update a comment.
1721         Save the computed prev_sp.
1722         (avr_saved_regs_unwinder): Remove function.
1723         (avr_frame_prev_register): Use PC unwind logic from 
1724         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1725
1726 2003-07-16  Andrew Cagney  <[email protected]>
1727
1728         * frame-base.h (frame_base_p_ftype): Delete definition.
1729         (frame_base_append_predicate): Delete declaration.
1730         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1731         (frame_unwind_append_predicate): Delete declaration.
1732         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1733         (append_predicate): Delete parameter "p".
1734         (frame_unwind_append_predicate): Delete function.
1735         (frame_unwind_append_sniffer): Update call to append_predicate.
1736         (frame_unwind_free): Delete function.
1737         (_initialize_frame_unwind): Pass NULL as "free" to
1738         register_gdbarch_data.
1739         (frame_unwind_init): Append the dummy_frame_sniffer.
1740         (frame_unwind_find_by_frame): Simplify.
1741         * frame-base.c (struct frame_base_table): Delete field "p".
1742         (append_predicate): Delete parameter "p".
1743         (frame_base_append_predicate): Delete function.
1744         (frame_base_append_sniffer): Update call to append_predicate.
1745         (frame_base_free): Delete function.
1746         (frame_base_find_by_frame): Simplify.
1747         (_initialize_frame_base): Pass NULL as "free" to
1748         register_gdbarch_data.
1749         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1750         (x86_64_sigtramp_frame_sniffer): Replace
1751         "x86_64_sigtramp_frame_p".
1752         (x86_64_init_abi): Set the frame unwind sniffers.
1753         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1754         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1755         (m68k_gdbarch_init): Set the frame unwind sniffers.
1756         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1757         "i386_sigtramp_frame_p".
1758         (i386_frame_sniffer): Replace "i386_frame_p".
1759         (i386_gdbarch_init): Set the frame unwind sniffers.
1760         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1761         (avr_gdbarch_init): Set the frame unwind sniffers.
1762         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1763         "alpha_sigtramp_frame_p"
1764         (alpha_heuristic_frame_sniffer): Replace
1765         "alpha_heuristic_frame_p".
1766         (alpha_gdbarch_init): Set the frame unwind sniffers.
1767         (alpha_dwarf2_init_abi): Ditto.
1768         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1769         "alpha_debug_frame_p".
1770         (alpha_mdebug_frame_base_sniffer): Replace
1771         "alpha_mdebug_frame_base_p".
1772         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1773         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1774         (d10v_gdbarch_init): Set the frame unwind sniffer.
1775         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1776         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1777         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1778         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1779         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1780         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1781
1782 2003-07-16  Michael Snyder  <[email protected]>
1783
1784         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1785         should go thru sh_dsp_register_sim_regno, else the dsp regs
1786         will not get the right values.
1787
1788 2003-07-16  Corinna Vinschen  <[email protected]>
1789
1790         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1791         deprecated_store_floating by call to store_typed_floating.
1792         (sh_sh4_register_convert_to_raw): Substitute call to
1793         deprecated_extract_floating by call to extract_typed_floating.
1794
1795 2003-07-16  Corinna Vinschen  <[email protected]>
1796
1797         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1798
1799 2003-07-16  Corinna Vinschen  <[email protected]>
1800
1801         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1802         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1803         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
1804         as possible.
1805         (do_pseudo_register): Remove.
1806         (sh_push_dummy_code): New function.
1807         (sh64_store_struct_return): Rename from sh_store_struct_return.
1808         Only called for sh64 now.
1809         (sh_extract_struct_value_address): Regcache'ify.
1810         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
1811         and accomodate new tasks.
1812         (sh64_push_return_address): Rename from sh_push_return_address.
1813         Only called for sh64 now.
1814         (sh_default_extract_return_value): Rename from sh_extract_return_value.
1815         Regcache'ify.
1816         (sh3e_sh4_extract_return_value): Regcache'ify.
1817         (sh_default_store_return_value): Ditto.
1818         (sh3e_sh4_store_return_value): Ditto.
1819         (sh_default_register_byte): Remove.
1820         (sh_sh4_register_byte): Remove.
1821         (sh_default_register_raw_size): Remove.
1822         (sh_sh4_register_raw_size): Remove.
1823         (sh_register_virtual_size): Remove.
1824         (sh_sh3e_register_virtual_type): Remove.
1825         (sh_sh3e_register_type): New function.
1826         (sh_sh4_register_virtual_type): Remove.
1827         (sh_sh4_register_type): New function.
1828         (sh_default_register_virtual_type): Remove.
1829         (sh_default_register_type): New function.
1830         (do_fv_register_info): Add parameters to accomodate call from
1831         sh_print_registers_info.
1832         (do_dr_register_info): Ditto.
1833         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1834         Add parameters to accomodate call from sh_print_registers_info.
1835         (sh_do_fp_register): Ditto.
1836         (sh64_do_pseudo_register): Call do_dr_register_info,
1837         do_fv_register_info and sh_do_fp_register with default parameters.
1838         (sh_do_register): Add parameters to accomodate call from
1839         sh_print_registers_info.
1840         (sh_print_register): Ditto.
1841         (sh_print_registers_info): Rename from sh_do_registers_info.
1842         Add parameters to be used as gdbarch_print_registers_info
1843         implementation.  Accomodate removed do_pseudo_register function
1844         pointer.
1845         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1846         function pointer. Call sh_print_register with default parameters.
1847         (sh64_do_registers_info): Call sh_print_registers_info instead of
1848         sh_do_registers_info.
1849         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1850         detection of deprecated vs. non-deprecated functionality.
1851         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
1852         function pointer assignments by direct function calls.
1853
1854 2003-07-15  Andrew Cagney  <[email protected]>
1855
1856         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1857         (frame_register_unwind, create_new_frame): Ditto.
1858         (legacy_get_prev_frame, get_frame_type): Ditto.
1859         (get_frame_base_address): Use frame_base_find_by_frame.
1860         (get_frame_locals_address): Use frame_base_find_by_frame.
1861         (get_frame_args_address): Use frame_base_find_by_frame.
1862         * frame-base.h (frame_base_sniffer_ftype): Declare.
1863         (frame_base_append_sniffer): Declare.
1864         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1865         * frame-base.c (append_predicate): Add a "sniffer" parameter.
1866         (frame_base_append_sniffer): New function.
1867         (frame_base_append_predicate): Add a NULL sniffer.
1868         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1869         (struct frame_base_table): Add "sniffer".
1870         (frame_base_free): Free the "sniffer" table.
1871         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1872         (frame_unwind_append_sniffer): Declare.
1873         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1874         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1875         (struct frame_unwind_table): Add "sniffer", delete "middle".
1876         (append_predicate): Add "sniffer" parameter, append the sniffer.
1877         (frame_unwind_init): Update append_predicate call.
1878         (frame_unwind_append_sniffer): New function.
1879         (frame_unwind_append_predicate): Update append_predicate call.
1880         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1881
1882 2003-07-15  Andrew Cagney  <[email protected]>
1883
1884         * frame.c (get_prev_frame): Move disabled inside_entry_func to
1885         before code inhibiting repeated unwind attempts.  Add to
1886         commentary on that test's problems.
1887         * blockframe.c (inside_main_func): Look for "main" in the minimal
1888         symbol table.
1889         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1890         identical.
1891
1892 2003-07-15  Andrew Cagney  <[email protected]>
1893
1894         * complaints.c (struct explanation): Define.
1895         (struct complaints): Change type of "explanation" to "struct
1896         explanation".
1897         (symfile_explanations): Convert to a "struct explanation" table.
1898         (vcomplaint): Update.
1899
1900 2003-07-15  Michal Ludvig  <[email protected]>
1901
1902         * x86-64-linux-nat.c (regmap): Removed.
1903         (supply_gregset, fill_gregset): Call 
1904         x86_64_linux_(fill,supply)_gregset functions.
1905         * x86-64-linux-tdep.c (USER_*): New defines.
1906         (user_to_gdb_regmap, x86_64_core_fns): New structure.
1907         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1908         New functions.
1909         (fetch_core_registers): Ditto.
1910         (_initialize_x86_64_linux_tdep): Call add_core_fns().
1911         * x86-64-linux-tdep.h: New file.
1912         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1913         and core-regset.o.
1914         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1915
1916 2003-07-13  Mark Kettenis  <[email protected]>
1917
1918         * x86-64-tdep.c (x86_64_store_return_value): Use
1919         regcache_cooked_write_part instead of regcache_cooked_write.
1920
1921         * configure.host: Add x86_64-*-freebsd*.
1922         * configure.tgt: Add x86_64-*-freebsd*.
1923         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1924         * amd64fbsd-nat.c: New file.
1925         * amd64fbsd-tdep.c: New file.
1926         * config/i386/nm-fbsd64.h: New file.
1927         * config/i386/fbsd64.mh: New file.
1928         * config/i386/fbsd64.mt: New file.
1929
1930 2003-07-11  Mark Kettenis  <[email protected]>
1931
1932         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1933         `sc_regs_offset' and `sc_fpregs_offset'.
1934         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1935         SIGFRAME_FPREGSAVE_OFF): Remove defines.
1936         (alpha_sigtramp_register_address): Rewrite to use new members of
1937         `struct gdbarch_tdep'.
1938         (alpha_gdbarch_init): Initialize new members of struct
1939         gdbarch_tdep'.
1940         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1941         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1942         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1943         (alphafbsd_pc_in_sigtramp): Implement.
1944         (alphafbsd_sigtramp_offset): New function.
1945         (alphafbsd_sigcontext_addr): New function.
1946         (alphafbsd_init_abi): Initialize signal trampoline related members
1947         of `struct gdbarch_tdep'.
1948         (_initialize_alphafbsd_tdep): Add prototype.
1949
1950 2003-07-11  Theodore A. Roth  <[email protected]>
1951
1952         * Makefile.in (install-only): Quote sed expression when generating
1953         transformed_name.
1954
1955 2003-07-11  Richard Henderson  <[email protected]>
1956
1957         * Makefile.in (dwarf2-frame.o): Add complaints_h.
1958         * dwarf2-frame.c: Include complaints.h.
1959         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1960         variable initialization; return NULL on error.
1961         (decode_frame_entry): New.
1962
1963 2003-07-11  Andrew Cagney  <[email protected]>
1964
1965         * frame.h (frame_address_in_block): Delete declaration.
1966         * blockframe.c (frame_address_in_block): Delete function.
1967         (get_frame_block): Use get_frame_address_in_block.
1968         (block_innermost_frame): Ditto.
1969         * stack.c (print_frame, backtrace_command_1): Ditto.
1970
1971         * frame.h (get_frame_address_in_block): Declare.
1972         (frame_unwind_address_in_block): Declare.
1973         * frame.c (frame_unwind_address_in_block): New function.
1974         (get_frame_address_in_block): New function.
1975
1976 2003-07-10  Andrew Cagney  <[email protected]>
1977
1978         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
1979         pre-default.   Note: re-generate has no effect.
1980         
1981 2003-07-10  Andrew Cagney  <[email protected]>
1982
1983         * gdbarch.sh: When a variable, but not a function, compare against
1984         0.  Fix problem in previous patch.
1985         * gdbarch.c: Re-generate.
1986         
1987 2003-07-10  Andrew Cagney  <[email protected]>
1988
1989         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
1990         functions against NULL, not 0.
1991         * gdbarch.c: Re-generate.
1992         
1993 2003-07-10  Fred Fish  <[email protected]>
1994
1995         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1996         null string instead of a null pointer.
1997         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1998
1999 2003-07-09  Michael Snyder  <[email protected]>
2000
2001         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2002
2003 2003-07-09  Mark Kettenis  <[email protected]>
2004
2005         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2006         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2007         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2008         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2009         * x86-64-tdep.c: ... from here.
2010
2011 2003-07-09  Andreas Schwab  <[email protected]>
2012
2013         * m68k-tdep.h (enum struct_return): Define.
2014         (struct gdbarch_tdep): Add struct_return.
2015         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2016         bytes are padded to the right, not to the left.  Pass struct value
2017         address in register %a1, not on stack.
2018         (m68k_use_struct_convention): New function.
2019         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
2020         struct_return in tdep to pcc_struct_return.
2021         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2022         reg_struct_return.
2023
2024 2003-07-09  Joel Brobecker  <[email protected]>      
2025
2026         * somread.c (som_symfile_offsets): Fix compilation error.   
2027
2028 2003-07-09  Andrew Cagney  <[email protected]>
2029
2030         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2031         Add comments about the checks.
2032
2033 2003-07-08  Andrew Cagney  <[email protected]>
2034
2035         * Makefile.in: Make dependency section headers consistent.
2036         (config_h): Move to $BUILD headers section.
2037         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2038         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2039         (ada-exp.tab.c): Move to YACC/LEX section.
2040         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2041         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2042
2043 2003-07-08  Kris Warkentin  <[email protected]>
2044
2045         * nto-procfs.c: Cleaned up a bunch of ARI hits.
2046         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2047         of strerror with safe_strerror, use ISO C function definitions,
2048         and replace instances of sprintf with snprintf.
2049
2050 2003-07-07  Andrew Cagney  <[email protected]>
2051
2052         * frame.c (get_prev_frame): Enable check for identical frames.
2053         Update comments.  Update error messages.
2054
2055 2003-07-07  Joel Brobecker  <[email protected]>
2056
2057         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2058
2059 2003-07-07  Joel Brobecker  <[email protected]>
2060
2061         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2062         sort_symtab_syms, no longer necessary.
2063
2064 2003-07-07  Joel Brobecker  <[email protected]>
2065
2066         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2067
2068 2003-07-07  Joel Brobecker  <[email protected]>
2069
2070         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2071         (mips_register_byte): Likewise.
2072
2073 2003-07-07  Daniel Jacobowitz  <[email protected]>
2074
2075         * Makefile.in (sparc_tdep_h): New.
2076         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2077         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2078         * sparc-linux-nat.c: Include "sparc-tdep.h".
2079         * sparc-nat.c: Likewise.
2080         * sparc-tdep.c: Likewise.
2081         * sparc64nbsd-nat.c: Likewise.
2082         * sparcnbsd-nat.c: Likewise.
2083         * sparcnbsd-tdep.c: Likewise.
2084         * sparc-tdep.h: New file.
2085         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2086         and sparc_npc_regnum.
2087
2088 2003-07-07  Daniel Jacobowitz  <[email protected]>
2089
2090         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2091         (mips_linux_cannot_store_register): List supported instead of
2092         unsupported registers.
2093
2094 2003-07-07  Daniel Jacobowitz  <[email protected]>
2095
2096         * disasm.c (dump_insns): Separate instructions from addresses.
2097
2098 2003-07-07  Andreas Schwab  <[email protected]>
2099
2100         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2101         dependencies.
2102         * m68k-tdep.c (NUM_FREGS): Delete.
2103         (SIG_PC_FP_OFFSET): Delete.
2104         (TARGET_M68K): Delete.
2105         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2106         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2107         P_MOVEL_SP, P_MOVEML_SP): Define.
2108         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2109         P_TRAP): Delete.
2110         (m68k_register_raw_size): Delete.
2111         (m68k_register_virtual_size): Delete.
2112         (m68k_register_type): Renamed from m68k_register_virtual_type and
2113         add gdbarch argument.
2114         (m68k_store_struct_return): Delete.
2115         (m68k_deprecated_extract_return_value): Delete.
2116         (m68k_deprecated_extract_struct_value_address): Delete.
2117         (m68k_frame_chain): Delete.
2118         (m68k_frame_saved_pc): Delete.
2119         (m68k_fix_call_dummy): Delete.
2120         (m68k_push_dummy_frame): Delete.
2121         (m68k_pop_frame): Delete.
2122         (m68k_extract_return_value): New function.
2123         (m68k_store_return_value): Rewrite using regcache.
2124         (m68k_extract_struct_value_address): Rewrite using regcache.
2125         (m68k_push_dummy_call): New function.
2126         (struct m68k_frame_cache): Define.
2127         (m68k_alloc_frame_cache): New function.
2128         (m68k_analyze_frame_setup): New function.
2129         (m68k_analyze_register_saves): New function.
2130         (m68k_analyze_prologue): New function.
2131         (m68k_skip_prologue): Rewrite using above functions.
2132         (m68k_unwind_pc): New function.
2133         (m68k_frame_cache): New function.
2134         (m68k_frame_this_id): New function.
2135         (m68k_frame_prev_register): New function.
2136         (m68k_frame_unwind): New variable.
2137         (m68k_frame_p): New function.
2138         (m68k_sigtramp_frame_cache): New function.
2139         (m68k_sigtramp_frame_this_id): New function.
2140         (m68k_sigtramp_frame_prev_register): New function.
2141         (m68k_sigtramp_frame_unwind): New variable.
2142         (m68k_sigtramp_frame_p): New function.
2143         (m68k_frame_base_address): New function.
2144         (m68k_frame_base): New function.
2145         (m68k_unwind_dummy_id): New function.
2146         (fill_gregset): Use regcache_collect.
2147         (fill_fpregset): Likewise.
2148         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2149         defined.
2150         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
2151         deprecated_init_frame_pc, deprecated_store_struct_return,
2152         deprecated_extract_return_value, deprecated_store_return_value,
2153         deprecated_frame_chain, deprecated_frame_saved_pc,
2154         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2155         deprecated_register_virtual_size,
2156         deprecated_max_register_raw_size,
2157         deprecated_max_register_virtual_size,
2158         deprecated_register_virtual_type, deprecated_register_size,
2159         deprecated_register_byte, deprecated_register_bytes,
2160         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2161         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2162         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2163         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2164         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2165         deprecated_push_dummy_frame, deprecated_pop_frame,
2166         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
2167         only if SYSCALL_TRAP is defined.  Set extract_return_value,
2168         store_return_value, extract_struct_value_address, register_type,
2169         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
2170         predicates.
2171         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2172         M68K_MAX_REGISTER_SIZE): Define.
2173         (struct m68k_sigtramp_info): Define.
2174         (struct gdbarch_tdep): Add get_sigtramp_info.
2175         * m68klinux-nat.c (fetch_register): Use register_size instead of
2176         REGISTER_RAW_SIZE.  Don't put assignment in if.
2177         (store_register): Likewise.
2178         (fetch_inferior_registers): Likewise.
2179         (store_inferior_registers): Likewise.
2180         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2181         (m68k_linux_frame_saved_pc): Delete.
2182         (m68k_linux_sigcontext_reg_offset,
2183         m68k_linux_ucontext_reg_offset): Define.
2184         (m68k_linux_get_sigtramp_info): New function.
2185         (m68k_linux_extract_return_value): Rewrite using regcache.
2186         (m68k_linux_store_return_value): Likewise.
2187         (m68k_linux_extract_struct_value_address): Likewise.
2188         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2189         Don't set deprecated_frame_saved_pc,
2190         deprecated_extract_return_value, deprecated_store_return_value,
2191         deprecated_extract_struct_value_address.  Set
2192         extract_return_value, store_return_value,
2193         extract_struct_value_address.
2194
2195 2003-07-07  Andrew Cagney  <[email protected]>
2196
2197         * expprint.c: Include "user-regs.h" instead of "frame.h".
2198         (print_subexp): Use user_reg_map_regnum_to_name, instead of
2199         frame_map_regnum_to_name.
2200         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2201         (frame_map_name_to_regnum): Simplify, call
2202         user_reg_map_name_to_regnum.
2203         (frame_map_regnum_to_name): Simplify, call
2204         user_reg_map_regnum_to_name.
2205         (frame_register_unwind): Update.
2206         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2207         (_initialize_frame_reg): Call user_reg_add_builtin.
2208         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2209         (value_of_register): Use value_of_user_reg.
2210         * eval.c (evaluate_subexp_standard): Update.
2211         * parse.c (write_dollar_variable): Update.
2212         * d10v-tdep.c (d10v_print_registers_info): Update.
2213         * infcmd.c (registers_info): Update.
2214         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2215         (builtin_regs_h): Delete macro.
2216         (user_regs_h): Define.
2217         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2218         (builtin-regs.o): Delete target.
2219         (user-regs.o): Specify dependencies.
2220         (expprint.o): Update dependencies.
2221         (findvar.o): Update dependencies.
2222         (frame.o): Update dependencies.
2223         (std-regs.o): Update dependencies.
2224
2225 2003-07-06  Christopher Faylor  <[email protected]>
2226
2227         * win32-nat.c (solib_symbols_add): Use one variable for all section
2228         address stuff.  Pass variable rather than address of variable to
2229         safe_symbol_file_add.
2230
2231 2003-07-06  Andreas Schwab  <[email protected]>
2232
2233         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2234
2235 2003-07-04  Joel Brobecker  <[email protected]>
2236
2237         * rs6000-nat.c (vmap_symtab): Fix compilation error.
2238
2239 2003-07-04  Kris Warkentin  <[email protected]>
2240
2241         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2242
2243 2003-07-04  Kris Warkentin  <[email protected]>
2244
2245         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
2246         * config/i386/nto.mh: New file.
2247         * config/i386/nm-nto.h: New file.
2248         * configure.host: Add i[3456]86-*-nto*.
2249
2250 2003-07-03  Joel Brobecker  <[email protected]>
2251
2252         * remote-vx.c (vx_add_symbols): Fix compilation error.
2253
2254 2003-07-03  Andrew Cagney  <[email protected]>
2255
2256         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2257         * gdbarch.h, gdbarch.c: Re-generate.
2258         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2259         (legacy_register_name): Declare.
2260         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2261         (REGISTER_NAME): Define.
2262         * sparc-tdep.c (legacy_register_name): New function.
2263         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2264         (REGISTER_NAME): Define.
2265         (hppa64_register_name): Declare.
2266         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2267         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2268         (hppa64_register_name): New function.
2269         (hppa_register_name): New function.
2270         * arch-utils.c (legacy_register_name): Delete.
2271         * arch-utils.h (legacy_register_name): Delete.
2272
2273 2003-07-03  Daniel Jacobowitz  <[email protected]>
2274
2275         * cli/cli-interp.c (cli_interpreter_resume): Update the
2276         cli_uiout's stream to gdb_stdout.
2277
2278 2003-07-03  Andrew Cagney  <[email protected]>
2279
2280         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2281         predicate.
2282         * gdbarch.h, gdbarch.c: Re-generate.
2283         * regcache.c (init_regcache_descr): Use legacy code when either
2284         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2285
2286 2003-07-02  Daniel Jacobowitz  <[email protected]>
2287
2288         * NEWS: Move "set logging" entry into GDB 6.0 section.
2289
2290 2003-07-02  Jim Blandy  <[email protected]>
2291
2292         * s390-tdep.c (struct frame_extra_info): new member:
2293         'stack_bought_valid'.
2294         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2295         initialize fextra_info->stack_bought.
2296         (s390_frameless_function_invocation): Don't trust the value of
2297         fextra_info_ptr->stack_bought unless
2298         fextra_info->stack_bought_valid is set.
2299
2300         New S390 prologue analyzer.
2301         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2302         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2303         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2304         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2305         compute_x_addr, s390_on_stack, s390_store,
2306         s390_get_signal_frame_info): New functions.
2307         (S390_NUM_SPILL_SLOTS): New macro.
2308         (s390_get_frame_info): Rewritten.
2309         (is_arg_reg): Deleted.
2310
2311         Break out the decoding of S/390 instructions into separate
2312         functions, to make it more legible, and easier to check
2313         against the spec.
2314         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2315         is_rx, is_rxe): New functions.
2316         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2317         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2318         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2319         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2320         enums for opcode values.  (Is this an improvement?)
2321
2322 2003-07-02  Andrew Cagney  <[email protected]>
2323
2324         * i386-tdep.c: Revert change committed as part of trad-frame code
2325         below.
2326
2327 2003-07-02  Daniel Jacobowitz  <[email protected]>
2328
2329         * breakpoint.c (insert_catchpoint): Make static.
2330
2331 2003-07-02  Andreas Schwab  <[email protected]>
2332
2333         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2334         former ia64_push_arguments and ia64_push_return_address, and use
2335         regcache functions instead of read/write_register.
2336         (ia64_gdbarch_init): Set push_dummy_call instead of
2337         deprecated_push_arguments and deprecated_push_return_address.
2338
2339 2003-07-01  Andreas Jaeger  <[email protected]>
2340
2341         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2342         before the call.
2343         Set %rax only to number of SSE registers used.
2344
2345 2003-07-01  Andrew Cagney  <[email protected]>
2346
2347         * trad-frame.h: Update comments, a -1 .addr is reserved.
2348         (trad_frame_value_p, trad_frame_addr_p): Declare.
2349         (trad_frame_reg_p): Declare.
2350         (trad_frame_set_value): Rename trad_frame_register_value.
2351         (trad_frame_set_unknown): Declare.
2352         * trad-frame.c (trad_frame_realreg_p): New function.
2353         (trad_frame_addr_p, trad_frame_value_p): New function.
2354         (trad_frame_set_unknown): New function.
2355         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2356         (trad_frame_prev_register): Use trad_frame_realreg_p,
2357         trad_frame_addr_p and trad_frame_value_p.
2358         (trad_frame_set_value): Rename trad_frame_register_value.
2359         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2360         and trad_frame_set_value.
2361
2362 2003-06-30  Jim Blandy  <[email protected]>
2363
2364         Patch from IBM (authors unspecified, probably Ulrich Weigand and
2365         Gerhard Tonn) for argument passing on the S/390 and S/390x:
2366         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2367         for 16 registers, and then 32 more bytes.
2368         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2369         New macros.
2370         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2371         Move up in the file, since it's now used by is_simple_arg.
2372         (is_simple_arg): Don't assume registers are four bytes long.
2373         Exclude all double arguments.  Extended floats are not simple
2374         args.
2375         (is_power_of_two): New function.
2376         (pass_by_copy_ref): Call is_power_of_two, and check that the
2377         length fits in a register, rather than listing all the acceptable
2378         sizes.  Extended floats are not passed by reference.
2379         (s390_push_arguments): Don't assume registers are four bytes long.
2380         Reserve an argument register to point to the buffer for structures
2381         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
2382         S390_STACK_FRAME_OVERHEAD.
2383
2384 2003-06-30  Andreas Schwab  <[email protected]>
2385
2386         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2387         format error message.
2388
2389 2003-06-30  Joel Brobecker  <[email protected]>
2390
2391         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2392
2393 2003-06-30  David Carlton  <[email protected]>
2394
2395         Band-aid for PR c++/1245.
2396         * Makefile.in (cp-support.o): Depend on complaints_h.
2397         * cp-support.c: Include complaints.h.  Add declaration for
2398         find_last_component.
2399         (cp_find_first_component): Separate code into
2400         cp_find_first_component_aux.
2401         (cp_find_first_component_aux): Call demangled_name_complaint.
2402         (demangled_name_complaint): New.
2403
2404 2003-06-30  Andrew Cagney  <[email protected]>
2405
2406         * remote.c (remote_write_bytes): Explicitly compute and then use
2407         the payload size.  Update comments to reflect.  Fixes problem of
2408         GDB not sending small packets as found by Fred Fish.
2409
2410 2003-06-30  Andrew Cagney  <[email protected]>
2411
2412         * remote.c (remote_async_wait): Fix -Wformat problem.
2413
2414 2003-06-29  Andrew Cagney  <[email protected]>
2415
2416         * remote.c (remote_wait): Call error, and not warning, when the
2417         packet is corrupt.
2418         (remote_async_wait): Ditto.
2419
2420 2003-06-29  Daniel Jacobowitz  <[email protected]>
2421
2422         * sparc-tdep.c (sparc_y_regnum): Make external again.
2423
2424 2003-06-29  Daniel Jacobowitz  <[email protected]>
2425
2426         * cli/cli-logging.c (pop_output_files): Add void to function
2427         definition.
2428
2429 2003-06-29  Andrew Cagney  <[email protected]>
2430
2431         * frame.c (frame_register_unwind): Use unsigned char when dumping
2432         the buffer contents.
2433
2434 2003-06-28  Daniel Jacobowitz  <[email protected]>
2435
2436         * cli/cli-logging.c: New file.
2437         * cli-out.c (struct ui_out_data): Add original_stream.
2438         (cli_redirect): New function.
2439         (cli_ui_out_impl): Add cli_redirect.
2440         (cli_out_new): Initialize original_stream.
2441         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2442         (uo_redirect, ui_out_redirect): New.
2443         * ui-out.h (struct ui_out_impl): Add redirect member.
2444         (redirect_ftype): New.
2445         (ui_out_redirect): Add prototype.
2446         * Makefile.in: Add rules for cli-logging.c.
2447         * NEWS: Mention "set logging".
2448
2449 2003-06-27  Elena Zannoni  <[email protected]>
2450
2451         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2452
2453 2003-06-27  Andrew Cagney  <[email protected]>
2454
2455         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2456         (m68hc11_gdbarch_init): Do not set call_dummy_address.
2457         * avr-tdep.c (avr_call_dummy_address): Delete function.
2458         (avr_gdbarch_init): Do not set call_dummy_address.
2459
2460 2003-06-27  Elena Zannoni  <[email protected]>
2461
2462         * symfile.c (syms_from_objfile): Move variables to inner block.
2463         Move the checks for the non-mainline case a bit earlier to avoid
2464         doing some useless computations.
2465
2466 2003-06-27  Elena Zannoni  <[email protected]>
2467
2468         * dwarfread.c (decode_modified_type): Gag new compiler warning.
2469
2470 2003-06-26  Elena Zannoni  <[email protected]>
2471
2472         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2473         sections.
2474
2475 2003-06-26  Michael Chastain  <[email protected]>
2476
2477         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2478         gdb/testsuite/gdb.c++/pr-1210.exp.
2479
2480 2003-06-26  Andrew Cagney  <[email protected]>
2481
2482         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2483         altivec_expression.h and altivec_registers.h.
2484
2485 2003-06-26  Andrew Cagney  <[email protected]>
2486
2487         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2488         info->mach when MIPS16.  Patch suggested by Fred Fish.
2489
2490 2003-06-26  Andrew Cagney  <[email protected]>
2491
2492         * utils.c (internal_vproblem): Print the problem to a reason
2493         buffer and then pass to query.  Make the msg variable more local.
2494
2495 2003-06-26  Andrew Cagney  <[email protected]>
2496
2497         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
2498         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
2499         * gdbarch.h, gdbarch.c: Re-generate.
2500         * frame-base.c (default_frame_args_address): Update.  Use
2501         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2502         not available.
2503         (default_frame_locals_address): Ditto for
2504         DEPRECATED_FRAME_LOCALS_ADDRESS.
2505         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2506         (vax_frame_num_args): Update.
2507         (vax_gdbarch_init): Update.
2508         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2509         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2510         * mcore-tdep.c (mcore_gdbarch_init): Update.
2511         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2512         * ia64-tdep.c (ia64_gdbarch_init): Update.
2513         * symtab.h (address_class): Update comments.
2514         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2515         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2516         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2517         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2518         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2519         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2520         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2521         * alpha-mdebug-tdep.c: Update.
2522         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2523
2524 2003-06-26  Andreas Jaeger  <[email protected]>
2525
2526         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2527         of SSE registers so that varargs functions work.  Rework handling
2528         of passing arguments on the stack.
2529         (x86_64_store_return_value): Return double and float values in SSE
2530         register.
2531
2532 2003-06-24  Michael Chastain  <[email protected]>
2533
2534         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2535         the "constructor breakpoints ignored" bug.
2536
2537 2003-06-25  David Carlton  <[email protected]>
2538
2539         * MAINTAINERS: Update e-mail address.
2540
2541 2003-06-24  Jim Blandy  <[email protected]>
2542
2543         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2544
2545         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2546         function.
2547         (ppc_linux_init_abi): Register it as the
2548         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2549
2550         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2551         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2552         method.
2553
2554         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2555         (ppc64_standard_linkage_target): Use it.
2556
2557 2003-06-23  Andrew Cagney  <[email protected]>
2558
2559         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2560         for 0 "int0" and 4 "int32" sized registers.
2561         * gdbtypes.c (builtin_type_int0): Define.
2562         (build_gdbtypes): Initialize builtin_type_int0.
2563         * gdbtypes.h (builtin_type_int0): Declare.
2564
2565 2003-06-23  Stephane Carrez  <[email protected]>
2566
2567         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2568         as characters are unsigned.
2569
2570 2003-06-22  Daniel Jacobowitz  <[email protected]>
2571
2572         PR gdb/1179
2573         * dwarfread.c (struct_type): Skip static fields without crashing.
2574
2575 2003-06-22  Andrew Cagney  <[email protected]>
2576
2577         GDB 6.0 branch created.
2578         * README: Update.
2579         * PROBLEMS: Update.  Empty.
2580         * NEWS: Update.
2581
2582 2003-06-22  Daniel Jacobowitz  <[email protected]>
2583
2584         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2585         Suggested by Nick Hibma <[email protected]>.
2586
2587 2003-06-22  Andrew Cagney  <[email protected]>
2588
2589         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2590         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
2591         Velikov.
2592
2593 2003-06-22  Daniel Jacobowitz  <[email protected]>
2594
2595         * cli/cli-cmds.c (shell_escape): Silence warnings from old
2596         compilers.
2597
2598 2003-06-21  Daniel Jacobowitz  <[email protected]>
2599
2600         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2601         argument of val_print.
2602         * cp-valprint.c (cp_print_value): Don't add the offset parameter
2603         to the address argument of baseclass_offset or target_read_memory.
2604         Do add it to the argument of cp_print_value_fields.
2605
2606 2003-06-21  Andrew Cagney  <[email protected]>
2607
2608         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2609         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2610         instead of 0..NUM_REGS.
2611         (mips_register_reggroup_p): New function.
2612         (mips_pseudo_register_write): New function.
2613         (mips_pseudo_register_read): New function.
2614         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2615         based on the register's type.
2616         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
2617         cooked.
2618         (mips_get_saved_register): Simplify.  Assert that REGNO is a
2619         pseudo / cooked.
2620         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
2621         (mips_register_type): Replace mips_register_virtual_type.  Map
2622         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
2623         when available.
2624         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
2625         that the register is cooked / virtual.
2626         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2627         Only get the extra info when needed.
2628         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2629         (mips32_heuristic_proc_desc): Fetch the cooked register.
2630         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2631         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2632         (mips_print_register): Use gdbarch_register_type, instead of
2633         REGISTER_VIRTUAL_TYPE.
2634         (print_gp_register_row): Use gdbarch_register_type, instead of
2635         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
2636         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2637         Print the pseudo / cooked registers.
2638         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2639         Print the pseudo / cooked registers.
2640         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
2641         REG_NUM is pseudo / cooked.
2642         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2643         (mips_n32n64_xfer_return_value): Ditto.
2644         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2645         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2646         (mips_register_sim_regno): New function.
2647         (mips_gdbarch_init): Set deprecated_register_byte,
2648         register_group_p, pseudo_register_write, pseudo_register_read,
2649         register_sim_regno, and num_pseudo_regs.  Set register_type,
2650         instead of register_virtual_type.
2651         * Makefile.in (mips-tdep.o): Update dependencies.
2652         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2653         REGISTER_VIRTUAL_TYPE.
2654         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2655         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2656         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2657         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2658         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2659
2660 2003-06-21  Daniel Jacobowitz  <[email protected]>
2661
2662         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2663         * cli/cli-cmds.c: Include "gdb_vfork.h".
2664         (shell_escape): Use vfork.
2665
2666 2003-06-21  Andrew Cagney  <[email protected]>
2667
2668         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2669         32 bit floating-point register saves.
2670
2671         * frame.h (deprecated_unwind_get_saved_register): Delete.
2672         * frame.c (deprecated_unwind_get_saved_register): Delete function.
2673         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2674         and deprecated_get_next_frame_hack instead of
2675         deprecated_unwind_get_saved_register.
2676
2677         * mips-tdep.c (mips_dump_tdep): Do not print
2678         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2679
2680         * frame.c (get_frame_register): New function.
2681         (frame_unwind_register_signed): New function.
2682         (get_frame_register_signed): New function.
2683         (frame_unwind_register_unsigned): New function.
2684         (get_frame_register_unsigned): New function.
2685         * frame.h: Add comments on naming schema.
2686         (get_frame_register, frame_unwind_register_signed): Declare.
2687         (get_frame_register_signed, get_frame_register_signed): Declare.
2688         (frame_unwind_register_unsigned): Declare.
2689         (get_frame_register_unsigned): Declare.
2690
2691 2003-06-20  Theodore A. Roth  <[email protected]>
2692
2693         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2694
2695 2003-06-20  Theodore A. Roth  <[email protected]>
2696
2697         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2698         (avr_read_sp): Ditto.
2699
2700 2003-06-20  Daniel Jacobowitz  <[email protected]>
2701
2702         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2703         * config/arm/nm-linux.h: Likewise.
2704         * config/arm/tm-linux.h: Likewise.
2705         * config/ia64/nm-linux.h: Likewise.
2706         * config/ia64/tm-ia64.h: Likewise.
2707         * config/s390/tm-linux.h: Likewise.
2708         * config/s390/tm-s390.h: Likewise.
2709         * s390-nat.c: Likewise.
2710         * s390-tdep.c: Likewise.
2711
2712         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2713         * config/ia64/linux.mt: Likewise.
2714         * config/m68k/linux.mh: Likewise.
2715         * config/mips/linux.mt: Likewise.
2716         * config/powerpc/linux.mh: Likewise.
2717         * config/sh/linux.mt: Likewise.
2718
2719 2003-06-19  Kris Warkentin  <[email protected]>
2720
2721         * solib.c (solib_open): Change tests for whether to search
2722         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
2723         comments.
2724
2725 2003-06-19  Theodore A. Roth  <[email protected]>
2726
2727         * avr-tdep.c (avr_frame_address): Delete function.
2728         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2729         set_gdbarch_frame_args_address.
2730
2731 2003-06-19  Andrew Cagney  <[email protected]>
2732
2733         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2734         (REGISTER_CONVERT_FROM_TYPE): Delete.
2735         (mips_register_convert_to_type): Delete declaration.
2736         (mips_register_convert_from_type): Delete declaration.
2737         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
2738         kernel/.
2739
2740 2003-06-19  Michael Snyder  <[email protected]>
2741
2742         * linux-nat.h: New file.
2743         * linux-nat.c: Include linux-nat.h.
2744         * lin-lwp.c: Include linux-nat.h.
2745         Move struct lwp_info def to linux-nat.h.
2746         * linux-proc.c: Include linux-nat.h.
2747         (linux_make_note_section): Iterate over lwps instead of threads.
2748         (linux_do_thread_registers): Use lwp instead of merged pid.
2749         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2750         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2751         Add dependency on linux_nat_h.
2752
2753 2003-06-19  Theodore A. Roth  <[email protected]>
2754
2755         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2756
2757 2003-06-19  Daniel Jacobowitz  <[email protected]>
2758
2759         * varobj.c (get_type, get_target_type): Use check_typedef.
2760
2761 2003-06-19  Daniel Jacobowitz  <[email protected]>
2762
2763         * breakpoint.c (insert_catchpoint): Call internal_error.
2764
2765 2003-06-19  Theodore A. Roth  <[email protected]>
2766
2767         * avr-tdep.c (avr_push_dummy_code): Delete function.
2768         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2769
2770 2003-06-19  Daniel Jacobowitz  <[email protected]>
2771
2772         * arch-utils.c (default_prepare_to_proceed): Remove.
2773         (generic_prepare_to_proceed): Remove.
2774         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2775         (generic_prepare_to_proceed): Remove prototype.
2776         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2777         * gdbarch.c: Regenerate.
2778         * gdbarch.h: Regenerate.
2779         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2780         * hppah-nat.c (hppa_switched_threads): Remove.
2781         * infrun.c (prepare_to_proceed): New static function, copied from
2782         generic_prepare_to_proceed.  Remove select_it argument.
2783         (proceed): Call prepare_to_proceed.
2784         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2785         variables.
2786         (ptrace_wait): Don't set the removed variables.
2787         (hppa_switched_threads): Remove.
2788         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2789         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2790         (lin_lwp_prepare_to_proceed): Remove prototype.
2791         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2792         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2793
2794 2003-06-18  Theodore A. Roth  <[email protected]>
2795
2796         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2797         trad-frame.h.
2798         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2799         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2800         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2801         (AVR_PROLOGUE_*): Enumerate prologue types.
2802         (struct frame_extra_info): Remove.
2803         (struct avr_unwind_cache): Define.
2804         (avr_write_sp): Delete function.
2805         (avr_read_fp): Ditto.
2806         (avr_init_extra_frame_info): Ditto.
2807         (avr_pop_frame): Ditto.
2808         (avr_frame_saved_pc): Ditto.
2809         (avr_saved_pc_after_call): Ditto.
2810         (avr_push_return_address): Ditto.
2811         (avr_frame_chain): Ditto.
2812         (avr_store_struct_return): Ditto.
2813         (avr_push_arguments): Ditto.
2814         (avr_scan_prologue): Update comments. Changed to set up the info for
2815         cache unwinding. Now returns end of prologue PC.
2816         (avr_skip_prologue): Better handling of functions lacking a prologue
2817         by using avr_scan_prologue.
2818         (avr_scan_arg_moves): New function.
2819         (avr_saved_regs_unwinder): Ditto.
2820         (avr_frame_unwind_cache): Ditto.
2821         (avr_unwind_pc): Ditto.
2822         (avr_frame_this_id): Ditto.
2823         (avr_frame_prev_register): Ditto.
2824         (avr_frame_p): Ditto.
2825         (avr_frame_base_address ): Ditto.
2826         (avr_unwind_dummy_id): Ditto.
2827         (avr_push_dummy_code): Ditto.
2828         (push_stack_item): Ditto.
2829         (pop_stack_item): Ditto.
2830         (avr_push_dummy_call): Ditto.
2831         (struct stack_item): Define.
2832         (avr_frame_unwind): Declare structure.
2833         (avr_frame_base): Ditto.
2834         (avr_gdbarch_init): Remove calls to
2835         set_gdbarch_deprecated_init_frame_pc,
2836         set_gdbarch_deprecated_target_read_fp,
2837         set_gdbarch_deprecated_dummy_write_sp,
2838         set_gdbarch_deprecated_fp_regnum,
2839         set_gdbarch_deprecated_push_arguments,
2840         set_gdbarch_deprecated_push_return_address,
2841         set_gdbarch_deprecated_pop_frame,
2842         set_gdbarch_deprecated_store_struct_return,
2843         set_gdbarch_deprecated_frame_init_saved_regs,
2844         set_gdbarch_deprecated_init_extra_frame_info,
2845         set_gdbarch_deprecated_frame_chain,
2846         set_gdbarch_deprecated_frame_saved_pc,
2847         set_gdbarch_deprecated_saved_pc_after_call.
2848         Add calls to set_gdbarch_push_dummy_call,
2849         set_gdbarch_push_dummy_code,
2850         frame_unwind_append_predicate,
2851         frame_base_set_default,
2852         set_gdbarch_unwind_dummy_id,
2853         set_gdbarch_unwind_pc.
2854         Wrap a long line.
2855
2856 2003-06-18  Corinna Vinschen  <[email protected]>
2857
2858         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2859         registers for H8/300S.
2860         (h8300_print_registers_info): Ditto.
2861         (h8300_gdbarch_init): Accommodate register count for H8/300S.
2862
2863 2003-06-18  Daniel Jacobowitz  <[email protected]>
2864
2865         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2866         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2867         (lin_lwp_wait): Likewise.  Update comments.
2868         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2869         (pull_pid_from_list, linux_record_stopped_pid): New.
2870
2871 2003-06-17  Stephane Carrez  <[email protected]>
2872
2873         * ada-lang.c (scan_discrim_bound): Name first argument.
2874         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2875         declared by ALL_BLOCK_SYMBOLS.
2876
2877 2003-06-17  Stephane Carrez  <[email protected]>
2878
2879         * ada-tasks.c (find_function_in_inferior): Don't declare it.
2880         ("regcache.h"): Include it.
2881         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2882
2883 2003-06-17  Daniel Jacobowitz  <[email protected]>
2884
2885         * NEWS: Mention gdbserver detach change and "disconnect" command.
2886         * infcmd.c (disconnect_command): New function.
2887         (_initialize_infcmd): Add ``disconnect'' command.
2888         * remote.c (remote_async_detach): Delete.
2889         (remote_detach): Merge remote_async_detach.
2890         (remote_disconnect): New.
2891         (init_remote_ops): Set to_disconnect.
2892         (init_remote_cisco_ops): Likewise.
2893         (init_remote_async_ops): Likewise.  Use remote_detach.
2894         * target.c (cleanup_target): Default to_disconnect.
2895         (update_current_target): Inherit to_disconnect.
2896         (target_disconnect, debug_to_disconnect): New functions.
2897         (setup_target_debug): Set to_disconnect.
2898         * target.h (struct target_ops): Add to_disconnect.
2899         (target_disconnect): Add prototype.
2900
2901 2003-06-17  Daniel Jacobowitz  <[email protected]>
2902
2903         * breakpoint.c (insert_catchpoint): New function.
2904         (insert_breakpoints): Use catch_exceptions to call
2905         insert_catchpoint.  Disable catchpoints if they fail to insert.
2906
2907 2003-06-17  Daniel Jacobowitz  <[email protected]>
2908
2909         * symfile.c (reread_symbols): Clear sym_private.
2910
2911 2003-06-17  Andrew Cagney  <[email protected]>
2912
2913         * trad-frame.h (struct frame_info): Add opaque declaration.
2914         * remote-fileio.h (struct cmd_list_element): Add opaque
2915         declaration.
2916         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2917         comments.
2918
2919 2003-06-17  Daniel Jacobowitz  <[email protected]>
2920
2921         * remote.c (remote_prepare_to_store): Replace call to
2922         deprecated_read_register_bytes with multiple regcache_raw_read
2923         calls.
2924
2925 2003-06-17  Kris Warkentin  <[email protected]>
2926
2927         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2928         (nto_find_and_open_solib): Likewise.
2929         (nto_init_solib_absolute_prefix): Likewise.
2930         (_initialize_nto_tdep): Fix indentation.
2931
2932 2003-06-17  Kris Warkentin  <[email protected]>
2933
2934         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2935
2936 2003-06-17  Kris Warkentin  <[email protected]>
2937
2938         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2939
2940 2003-06-17  Jim Blandy  <[email protected]>
2941
2942         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2943
2944 2003-06-16  Theodore A. Roth  <[email protected]>
2945
2946         * avr-tdep.c (avr_extract_return_value): New function.
2947         (avr_gdbarch_init): Set extract_return_value method.
2948
2949 2003-06-16  Andrew Cagney  <[email protected]>
2950
2951         * frame.h (deprecated_get_next_frame_hack): Declare.
2952         * frame.c (legacy_saved_regs_prev_register): Only require
2953         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
2954         there are always saved regs.
2955         (deprecated_generic_get_saved_register): Do not require
2956         DEPRECATED_FRAME_INIT_SAVED_REGS.
2957         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2958         use frame ID unwind instead.
2959         (deprecated_get_next_frame_hack): New function.
2960
2961 2003-06-16  Corinna Vinschen  <[email protected]>
2962
2963         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
2964         (h8300_push_dummy_call): ...this function.  Some minor optimization.
2965         (h8300_push_return_address): Remove.
2966         (h8300_gdbarch_init): Remove calls to
2967         set_gdbarch_deprecated_dummy_write_sp,
2968         set_gdbarch_deprecated_push_arguments and
2969         set_gdbarch_deprecated_push_return_address.
2970         Add call to set_gdbarch_push_dummy_call.
2971
2972 2003-06-16  Corinna Vinschen  <[email protected]>
2973
2974         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2975         (E_PSEUDO_EXR_REGNUM): Ditto.
2976         (h8300_is_argument_spill): Check for instructions moving argument
2977         registers into safe registers.
2978         (h8300_skip_prologue): Check for stm instruction to push registers
2979         used for register variables onto stack.
2980         (gdb_print_insn_h8300): Remove.
2981         (h8300_examine_prologue): Add a comment.
2982         (h8300_register_name): Take pseudo registers into account.
2983         (h8300s_register_name): Ditto.
2984         (h8300sx_register_name): Ditto.
2985         (h8300_print_register): Ditto.
2986         (h8300_print_registers_info): Define "nice" printing order.
2987         (h8300_saved_pc_after_call): Take pseudo registers into account.
2988         (h8300_register_type): Ditto.  Return type used for remote connection
2989         when requesting real CCR or EXR register, return actual type when
2990         requesting pseudo CCR or EXR.
2991         (h8300_pseudo_register_read): New function.
2992         (h8300_pseudo_register_write): Ditto.
2993         (h8300_dbg_reg_to_regnum): Ditto.
2994         (h8300s_dbg_reg_to_regnum): Ditto.
2995         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2996         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2997         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2998         set_gdbarch_print_insn architecture dependent.
2999         Call set_gdbarch_pseudo_register_read and
3000         set_gdbarch_pseudo_register_write.
3001         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3002
3003 2003-06-16  Andrew Cagney  <[email protected]>
3004
3005         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3006         * gdbarch.h, gdbarch.c: Re-generate.
3007         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3008         * s390-tdep.c (s390_gdbarch_init): Update.
3009         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3010         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3011         * mips-tdep.c (mips_gdbarch_init): Update.
3012         * mcore-tdep.c (mcore_gdbarch_init): Update.
3013         * cris-tdep.c (cris_gdbarch_init): Update.
3014         * infcall.c (call_function_by_hand): Update.
3015         * ia64-tdep.c (ia64_push_arguments): Update comment.
3016         * frame.c (legacy_get_prev_frame): Do not assume
3017         SAVE_DUMMY_FRAME_TOS_P.
3018         * dummy-frame.c (find_dummy_frame): Update comment.
3019
3020 2003-06-16  Andrew Cagney  <[email protected]>
3021
3022         * regcache.c (do_cooked_read): Do not use register_valid_p.
3023
3024 2003-06-15  Theodore A. Roth  <[email protected]>
3025
3026         * avr-tdep.c (avr_register_type): Remove a blank line.
3027         (avr_scan_prologue): Correct some comments.
3028
3029 2003-06-15  Theodore A. Roth  <[email protected]>
3030
3031         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3032         prologue types.
3033         Properly scan prologues generated by gcc with the -mcall-prologues
3034         option.
3035         Add code to scan -mcall-prologues for mega devices.
3036
3037 2003-06-15  Theodore A. Roth  <[email protected]>
3038
3039         * avr-tdep.c (avr_register_byte): Delete function.
3040         (avr_register_raw_size): Delete function.
3041         (avr_register_virtual_size): Delete function.
3042         (avr_register_virtual_type): Delete function.
3043         (avr_register_type): New function.
3044         (avr_address_to_pointer): Remove unused code.
3045         (avr_read_fp): Need to read FP as two separate bytes due to change to
3046         avr_register_type() usage.
3047         (avr_gdbarch_init): Don't set deprecated_register_size.
3048         Don't set deprecated_register_bytes.
3049         Don't set deprecated_register_byte.
3050         Don't set deprecated_register_raw_size.
3051         Don't set deprecated_max_register_raw_size.
3052         Don't set deprecated_register_virtual_size.
3053         Don't set deprecated_max_register_virtual_size.
3054         Don't set deprecated_register_virtual_type.
3055         Set register_type method.
3056
3057 2003-06-15  Daniel Jacobowitz  <[email protected]>
3058
3059         * Makefile.in (linux-nat.o): Add rule.
3060         * linux-nat.c: New file.
3061         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3062         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3063         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3064         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3065         * config/arm/linux.mh (NATDEPFILES): Likewise.
3066         * config/i386/linux.mh (NATDEPFILES): Likewise.
3067         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3068         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3069         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3070         * config/mips/linux.mh (NATDEPFILES): Likewise.
3071         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3072         * config/s390/s390.mh (NATDEPFILES): Likewise.
3073         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3074
3075 2003-06-15  Mark Kettenis  <[email protected]>
3076
3077         * i387-tdep.c: Reorder includes, fix some whitespace issues and
3078         replace out-of-date comment.
3079
3080 2003-06-15  Andrew Cagney  <[email protected]>
3081
3082         * rdi-share/host.h (Fail): Change to a varargs function.
3083         * remote-rdi.c (Fail): Update.
3084
3085 2003-06-15  Mark Kettenis  <[email protected]>
3086
3087         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3088         (i386_convert_register_p, i386_register_to_value,
3089         i386_register_from_value): Handle types longer than 8 bytes.
3090
3091 2003-06-15  Mark Kettenis  <[email protected]>
3092
3093         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3094         Move floating-point code to new function in i387-tdep.c.
3095         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3096         New functions containing code moved here from i386-tdep.c.
3097         * i387-tdep.h: Add opaque declaration for `struct type'.
3098         (i387_register_to_value, i387_value_to_register): New prototypes.
3099         * x86-64-tdep.c (x86_64_convert_register_p): New function.
3100         (x86_64_init_abi): Set convert_register_p, register_to_value and
3101         value_to_register here.
3102
3103 2003-06-14  Andrew Cagney  <[email protected]>
3104
3105         * mips-tdep.c (mips_register_to_value): Make static.
3106         (mips_value_to_register): Make static.
3107         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3108         * ia64-tdep.c (ia64_register_raw_size): Make static.
3109         (ia64_register_virtual_size): Make static.
3110         (ia64_register_byte): Make static.
3111         * i387-tdep.c: Include "i387-tdep.h".
3112         (print_387_control_word): Delete function.
3113         (print_387_status_word): Delete function.
3114         (print_387_status_bits): Delete function.
3115         (print_387_control_bits): Delete function.
3116         * Makefile.in (i387-tdep.o): Update dependencies.
3117         * rdi-share/host.h (Fail): Declare.
3118         * remote-rdi.c (Fail): Update to match declaration.
3119
3120 2003-06-14  Andrew Cagney  <[email protected]>
3121
3122         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3123         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3124         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3125         * config/djgpp/fnchange.lst: Delete "remote-array.c".
3126         * README: Delete reference to remote-array.
3127         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3128         (remote-array.o): Delete target.
3129         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3130         * remote-array.c: Delete file.
3131
3132 2003-06-14  Andrew Cagney  <[email protected]>
3133             Mark Kettenis  <[email protected]>
3134
3135         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3136         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3137         parameter with "frame".
3138         * gdbarch.h, gdbarch.c: Re-generate.
3139         * frame.h (put_frame_register): Declare.
3140         * frame.c (put_frame_register): New function.
3141         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3142         (legacy_register_to_value): Rewrite, use "frame" to get the
3143         register value.
3144         (legacy_value_to_register): Rewrite, use "frame" to find the
3145         register's location before storing.
3146         * arch-utils.h (legacy_convert_register_p): Update.
3147         (legacy_register_to_value, legacy_value_to_register): Update.
3148         * findvar.c (value_from_register): Rewrite, eliminate use of
3149         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3150         "frame" to REGISTER_TO_VALUE.
3151         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3152         lval_reg_frame_relative + lval_register branch of the switch.  Do
3153         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
3154         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3155         I386_EDI_REGNUM): New defines.
3156         (i386_next_regnum, i386_convert_register_p,
3157         i386_register_to_value, i386_value_to_register): New functions.
3158         (i386_register_convertible, i386_register_convert_to_virtual,
3159         i386_convert_to_raw): Remove functions.
3160         (i386_gdbarch_init): Set convert_register_p, register_to_value and
3161         value_to_register instead of register_convertible,
3162         register_convert_to_virtual and register_convert_to_raw.
3163         * mips-tdep.c (mips_convert_register_p): New function.
3164         (mips_value_to_register): Replace mips_register_convert_from_type.
3165         (mips_register_to_value): Replace mips_register_convert_to_type.
3166         (mips_gdbarch_init): Set conver_register_p, value_to_register and
3167         register_to_value.
3168         * alpha-tdep.c (alpha_convert_register_p): Update.
3169         (alpha_value_to_register): Update, store the register.
3170         (alpha_register_to_value): Update, fetch the register.
3171
3172 2003-06-14  Theodore A. Roth  <[email protected]>
3173
3174         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3175         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3176         Don't set deprecated_call_dummy_words.
3177         Remove commented out set_gdbarch_believe_pcc_promotion() call.
3178         Don't set remote_translate_xfer_address.
3179         (avr_io_reg_read_command): Remove commented out debug printf.
3180         Wrap a long line.
3181
3182 2003-06-14  Theodore A. Roth  <[email protected]>
3183
3184         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3185         causes gdb to seg fault.
3186
3187 2003-06-14  Daniel Jacobowitz  <[email protected]>
3188
3189         * sparc-nat.c (fetch_inferior_registers): Correct
3190         a reference to "registers".
3191
3192 2003-06-14  Jeroen Dekkers  <[email protected]>
3193
3194         * Makefile.in (exc_request_U_h): Define
3195         (exc_request_S_h): Likewise.
3196         (msg_reply_S_h): Likewise.
3197         (msg_U_h): Likewise.
3198         (notify_S_h): Likewise.
3199         (process_reply_S_h): Likewise.
3200         (gnu-nat.o): Depend on gdb_obstack_h
3201         * gnu-nat.c: Include "gdb_obstack.h".
3202
3203 2003-06-13  Andrew Cagney  <[email protected]>
3204
3205         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3206         * gdbarch.h, gdbarch.c: Re-generate.
3207
3208 2003-06-13  Andrew Cagney  <[email protected]>
3209
3210         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
3211         when deprecated REGISTER macros can be deleted.
3212         * gdbarch.h, gdbarch.c: Re-generate.
3213
3214 2003-06-13  Jim Blandy  <[email protected]>
3215
3216         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3217         Linux entry point symbols for _dl_debug_state, too.
3218
3219 2003-06-13  Andrew Cagney  <[email protected]>
3220
3221         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3222         available, do not use the FP register, and always save the TOS.
3223         * dummy-frame.c (dummy_frame_this_id): Do not assert
3224         SAVE_DUMMY_FRAME_TOS.
3225         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3226         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3227         (i386_push_dummy_call): Add 8 to the returned SP.
3228         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3229         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3230         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3231         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3232         (x86_64_push_dummy_call): Return "sp + 16".
3233         (x86_64_init_abi): Do not set save_dummy_frame_tos.
3234         * alpha-tdep.c (alpha_gdbarch_init): Do not set
3235         save_dummy_frame_tos.
3236
3237 2003-06-13  Jim Blandy  <[email protected]>
3238
3239         * frv-tdep.c (frv_use_struct_convention): Delete static
3240         declaration for function deleted in my change of 2003-06-12.
3241
3242 2003-06-13  Theodore A. Roth  <[email protected]>
3243
3244         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3245         (avr_pointer_to_address): Shift code addrs left 1 bit.
3246         (avr_convert_from_func_ptr_addr): Delete function since operation is
3247         better handled by avr_address_to_pointer and avr_pointer_to_address.
3248         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3249
3250 2003-06-13  Mark Kettenis  <[email protected]>
3251
3252         From Kelley Cook  <[email protected]>:
3253         * configure.host: Accept i[34567]86 variants.
3254         * configure.tgt: Likewise.
3255         * nlm/configure.in: Likewise.
3256         * nlm/configure: Regenerated.
3257
3258 2003-06-13  Richard Earnshaw  <[email protected]>
3259
3260         * arm-tdep.c (solib-svr4.h): Dont' include it.
3261         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3262         * arm-linux-tdep.c: ... here.  Make static.
3263         (arm_linux_init_abi): Register it.
3264         (solib-svr4.h): Include it.
3265         * Makefile.in: Update dependencies.
3266         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3267         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3268
3269 2003-06-13  Corinna Vinschen  <[email protected]>
3270
3271         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3272         indicate registers used for return values.
3273         (struct frame_extra_info): Drop args_pointer and locals_pointer.
3274         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3275         members.
3276         (h8300_init_extra_frame_info): Ditto.
3277         (h8300_frame_locals_address): Removed.
3278         (h8300_frame_args_address): Removed.
3279         (h8300_extract_return_value): Use new regcache structure. Only care
3280         for 16 bit CPUs.
3281         (h8300h_extract_return_value): Same function for 32 bit CPUs.
3282         (h8300_store_return_value): Use new regcache structure. Only care
3283         for 16 bit CPUs.
3284         (h8300h_store_return_value): Same function for 32 bit CPUs.
3285         (h8300_store_struct_return): Removed.
3286         (h8300_extract_struct_value_address): Use new regcache structure.
3287         (h8300h_extract_struct_value_address): Removed.
3288         (h8300_push_dummy_code): New function.
3289         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3290         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
3291         set_gdbarch_store_return_value architecture dependent.
3292         Call set_gdbarch_push_dummy_code and
3293         set_gdbarch_extract_struct_value_address.
3294         Remove calls to set_gdbarch_frame_args_address,
3295         set_gdbarch_frame_locals_address,
3296         set_gdbarch_deprecated_store_struct_return,
3297         set_gdbarch_deprecated_extract_return_value,
3298         set_gdbarch_deprecated_extract_struct_value_address,
3299         set_gdbarch_deprecated_call_dummy_words and
3300         set_gdbarch_deprecated_sizeof_call_dummy_words.
3301
3302 2003-06-13  Corinna Vinschen  <[email protected]>
3303
3304         * h8300-tdep.c (h8300_register_byte): Remove.
3305         (h8300h_register_byte): Remove.
3306         (h8300_register_virtual_type): Remove.  Substitute by...
3307         (h8300_register_type): New function.
3308         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3309         (h8300h_extract_struct_value_address): Ditto.
3310         (h8300_gdbarch_init): Drop calls to
3311         set_gdbarch_deprecated_register_byte and
3312         set_gdbarch_deprecated_register_virtual_type.
3313         Add call to set_gdbarch_register_type.
3314
3315 2003-06-13  Andrew Cagney  <[email protected]>
3316
3317         * gdbarch.sh: Update comments on registers.
3318         (deprecated_register_byte): Rename register_byte.
3319         (deprecated_register_raw_size): Rename register_raw_size.
3320         (deprecated_register_virtual_size): Rename register_virtual_size.
3321         (deprecated_register_virtual_type): Rename register_virtual_type.
3322         * gdbarch.h, gdbarch.c: Re-generate.
3323         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3324         * vax-tdep.c (vax_gdbarch_init): Update.
3325         * v850-tdep.c (v850_gdbarch_init): Update.
3326         * sparc-tdep.c (sparc_gdbarch_init): Update.
3327         * sh-tdep.c (sh_gdbarch_init): Update.
3328         * s390-tdep.c (s390_gdbarch_init): Update.
3329         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3330         * ns32k-tdep.c: Update.
3331         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3332         * mips-tdep.c (mips_gdbarch_init): Update.
3333         * mcore-tdep.c (mcore_gdbarch_init): Update.
3334         * m68k-tdep.c (m68k_gdbarch_init): Update.
3335         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3336         * ia64-tdep.c (ia64_gdbarch_init): Update.
3337         * hppa-tdep.c (hppa_gdbarch_init): Update.
3338         * h8300-tdep.c (h8300_gdbarch_init): Update.
3339         * frv-tdep.c (frv_gdbarch_init): Update.
3340         * cris-tdep.c (cris_gdbarch_init): Update.
3341         * avr-tdep.c (avr_gdbarch_init): Update.
3342         * alpha-tdep.c (alpha_gdbarch_init): Update.
3343         * arm-tdep.c (arm_gdbarch_init): Update.
3344
3345 2003-06-13  Andrew Cagney  <[email protected]>
3346
3347         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3348         mips_o32_use_struct_convention with always_use_struct_convention.
3349
3350 2003-06-12  David Carlton  <[email protected]>
3351
3352         * cp-namespace.c (cp_set_block_scope): Comment out
3353         processing_has_namespace_info branch.
3354
3355 2003-06-12  Jim Blandy  <[email protected]>
3356
3357         Recognize and skip 64-bit PowerPC Linux linkage functions.
3358         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3359         insn_pattern, insns_match_pattern, d_field, ds_field): New
3360         functions, macros, and types for working with PPC instructions.
3361         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3362         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3363         ppc64_skip_trampoline_code): New functions, variables, and macros
3364         for recognizing and skipping linkage functions.
3365         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3366         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3367
3368         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3369         register offsets for both the 32- and 64-bit interfaces.
3370
3371         Actually finish the job started by my change of 2003-05-29.
3372         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3373         other #definition of this.
3374         (ppc_linux_skip_trampoline_code): Remove declaration.
3375         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3376         static.
3377         (ppc_linux_init_abi): Register it as the skip_trampoline_code
3378         method for GDBARCH.
3379
3380         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3381         'long' on ppc64-*-linux*.
3382
3383         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3384         isn't #defined, assume the register doesn't exist: act as if
3385         tdep->ppc_mq_regnum were -1.
3386
3387         * configure.host, configure.tgt: Add entries for
3388         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3389         powerpc/linux.mt.
3390         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3391         New files.
3392
3393         * arch-utils.c (always_use_struct_convention): New function.
3394         * arch-utils.h (always_use_struct_convention): New prototype.
3395         * alpha-tdep.c (alpha_use_struct_convention): Delete.
3396         (alpha_gdbarch_init): Register always_use_struct_convention,
3397         instead of alpha_use_struct_convention.
3398         * cris-tdep.c (cris_use_struct_convention): Delete.
3399         (cris_gdbarch_init): Register always_use_struct_convention,
3400         instead of cris_use_struct_convention.
3401         * frv-tdep.c (frv_use_struct_convention): Delete.
3402         (frv_gdbarch_init): Register always_use_struct_convention,
3403         instead of frv_use_struct_convention.
3404         * h8300-tdep.c (h8300_use_struct_convention): Delete.
3405         (h8300_gdbarch_init): Register always_use_struct_convention,
3406         instead of h8300_use_struct_convention.
3407         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3408         (mips_o32_gdbarch_init): Register always_use_struct_convention,
3409         instead of mips_o32_use_struct_convention.
3410
3411 2003-06-12  Andrew Cagney  <[email protected]>
3412
3413         * wince.c: Include "mips-tdep.h".
3414         * mips-tdep.h (mips_next_pc): Declare.
3415         * mcore-tdep.c: Make more local functions static.
3416         * Makefile.in (wince.o): Update dependencies.
3417
3418 2003-06-12  David Carlton  <[email protected]>
3419
3420         * symtab.c (lookup_symbol_aux_minsyms): Replace
3421         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3422         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3423         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3424         SYMBOL_NATURAL_NAME.
3425
3426 2003-06-12  Andreas Schwab  <[email protected]>
3427
3428         * Makefile.in (tuiDisassem.o): Update dependencies.
3429
3430 2003-06-12  David Carlton  <[email protected]>
3431
3432         * symtab.h: Delete declaration of make_symbol_overload_list.
3433         Add declaration of lookup_partial_symbol.
3434         * symtab.c (remove_params): Move to cp-support.c.
3435         (overload_list_add_symbol, make_symbol_overload_list)
3436         (sym_return_val_size, sym_return_val_index): Ditto.
3437         (lookup_partial_symbol): Make extern.
3438         * cp-support.h: Add declaration of make_symbol_overload_list.
3439         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3440         symtab.h, and block.h.
3441         (remove_params): Move here from symtab.c.
3442         (overload_list_add_symbol, make_symbol_overload_list)
3443         (sym_return_val_size, sym_return_val_index): Ditto.
3444         * valops.c: Include cp-support.h.
3445         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3446         frame_h, and block_h.
3447         (valops.o): Depend on cp_support_h.
3448
3449 2003-06-12  Corinna Vinschen  <[email protected]>
3450
3451         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3452         substitute by NUM_REGS throughout.
3453         (h8300_register_name): Only care for H8/300 and H8/300H registers.
3454         (h8300s_register_name): New function for H8S registers.
3455         (h8300sx_register_name): Ditto for H8SX registers.
3456         (h8300_print_register): Revise register printing, avoid depending
3457         on 32 bit long.
3458         (h8300_register_byte): Only care for H8/300 registers.
3459         (h8300h_register_byte): New function for any other architecture.
3460         (h8300_register_raw_size): Remove.
3461         (h8300_register_virtual_type): Revise to return actually useful
3462         type.
3463         (h8300_extract_struct_value_address): Only care for H8/300 registers.
3464         (h8300h_extract_struct_value_address): New function for any other
3465         architecture.
3466         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
3467         set_gdbarch_register_name, set_gdbarch_register_byte,
3468         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3469         Remove calls to set_gdbarch_deprecated_register_size,
3470         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3471         set_gdbarch_deprecated_max_register_raw_size,
3472         set_gdbarch_register_virtual_size and
3473         set_gdbarch_deprecated_max_register_virtual_size entirely.
3474         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3475         set_gdbarch_long_double_bit.
3476
3477 2003-06-11  Jeff Johnston  <[email protected]>
3478
3479         * doublest.c (convert_doublest_to_floatformat): When dealing
3480         with the implied integer bit, only alter mant_bits if we are
3481         processing a full 32 bits of mantissa.
3482
3483 2003-06-11  David Carlton  <[email protected]>
3484
3485         * dictionary.h: New.
3486         * dictionary.c: New.
3487         * block.h: Add opaque declaration for struct dictionary.
3488         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3489         'sym' members.
3490         (BLOCK_DICT): New macro.
3491         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3492         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3493         BLOCK_SHOULD_SORT.
3494         (ALL_BLOCK_SYMBOLS): Update definition.
3495         * Makefile.in (SFILES): Add dictionary.c.
3496         (dictionary_h): New.
3497         (COMMON_OBS): Add dictionary.o.
3498         (dictionary.o): New.
3499         (ada-lang.o): Depend on dictionary_h.
3500         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3501         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3502         (mi-cmd-stack.o): Ditto.
3503         (gdbtk-cmds.o): Update dependencies.
3504         (gdbtk-stack.o): Ditto.
3505         * ada-lang.c: Include dictionary.h.
3506         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3507         (fill_in_ada_prototype, debug_print_block): Ditto.
3508         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3509         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
3510         'is_sorted'.
3511         * mdebugread.c: Include dictionary.h.
3512         (struct parse_stack): Delete 'maxsyms' member.
3513         (parse_symbol): Update calls to new_block.  Delete calls to
3514         shrink_block.  Use dictionary methods.
3515         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3516         Update calls to new_symtab.  Don't maintain maxsyms data.
3517         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3518         (add_symbol): Just call dict_add_symbol.
3519         (new_symtab): Delete 'maxsyms' argument.
3520         (new_symtab): Update calls to new_block.
3521         (new_block): Delete 'maxsyms' argument; add 'function' argument.
3522         (shrink_block): Delete function.
3523         (fixup_sigtramp): Update call to new_block.  Add symbol via
3524         dict_add_symbol.
3525         * jv-lang.c: Include dictionary.h.
3526         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3527         appropriately.  Set class_symtab->free_func.  Make sure the
3528         blockvector is big enough to hold two blocks.
3529         (add_class_symtab_symbol): Use dictionary methods.
3530         (free_class_block): New function.
3531         (type_from_class): Replace explicit iteration by
3532         ALL_BLOCK_SYMBOLS.
3533         * symtab.h (struct symtab): Replace 'free_ptr' method by
3534         'free_func'.
3535         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3536         sort_symtab_syms.
3537         * dwarfread.c (psymtab_to_symtab_1): Delete call to
3538         sort_symtab_syms.
3539         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3540         Include dictionary.h.
3541         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3542         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3543         sort_symtab_syms.
3544         * objfiles.c: Include dictionary.h.
3545         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3546         * buildsym.c: Include dictionary.h.
3547         (finish_block): Use dictionary methods.
3548         (end_symtab): Set free_func to NULL, not free_ptr.
3549         * tracepoint.c: Include dictionary.h.
3550         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3551         (scope_info): Ditto.
3552         * stack.c: Include dictionary.h.
3553         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3554         (print_block_frame_labels, print_frame_arg_vars)
3555         (print_frame_args): Ditto.
3556         * symmisc.c (free_symtab_block): Use dictionary methods.
3557         (dump_symtab): Ditto.
3558         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3559         Include dictionary.h.
3560         * symfile.h: Delete declarations of sort_block_syms,
3561         sort_symtab_syms.
3562         * symfile.c (sort_block_syms): Delete.
3563         (sort_symtab_syms): Delete.
3564         * symtab.c: Include dictionary.h.
3565         (lookup_block_symbol): Use dictionary iterators.
3566         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3567         (search_symbols, make_symbol_completion_list): Ditto.
3568         (make_symbol_overload_list): Ditto.
3569         * valops.c (value_of_local): Use dict_empty.
3570         Include dictionary.h.
3571
3572 2003-06-11  J. Brobecker  <[email protected]>
3573
3574         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3575
3576 2003-06-11  David Carlton  <[email protected]>
3577
3578         * block.h (BLOCK_SHOULD_SORT): Delete.
3579         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3580         blocks.
3581         * ada-lang.c (ada_add_block_symbols): Ditto.
3582         * symfile.c (sort_block_syms): Delete.
3583         (sort_symtab_syms): Ditto.
3584         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3585         declarations.
3586         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3587         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3588         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3589         * dwarfread.c (psymtab_to_symtab_1): Ditto.
3590         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3591         * mdebugread.c (psymtab_to_symtab_1): Ditto.
3592         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3593
3594 2003-06-11  Jeff Johnston  <[email protected]>
3595
3596         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3597         bits to 128.
3598
3599 2003-06-11  Andrew Cagney  <[email protected]>
3600
3601         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3602         REGISTER_CONVERTIBLE.
3603         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3604         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3605         * gdbarch.h, gdbarch.c: Re-generate.
3606         * arch-utils.h (deprecated_register_convertible_not): Rename
3607         generic_register_convertible_not.
3608         * arch-utils.c (deprecated_register_convertible_not): Rename
3609         generic_register_convertible.
3610         (legacy_convert_register_p, legacy_register_to_value): Update.
3611         * sh-tdep.c (sh64_push_arguments): Update.
3612         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3613         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3614         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3615         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3616         * arch-utils.c (legacy_value_to_register): Update.
3617         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3618         (rs6000_register_convert_to_raw): Make parameter "from" const.
3619         * mips-tdep.c (mips_gdbarch_init): Update.
3620         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
3621         * infcmd.c (default_print_registers_info): Update.
3622         * ia64-tdep.c (ia64_gdbarch_init): Update.
3623         (ia64_register_convert_to_raw): Make parameter "from" const.
3624         * i386-tdep.c (i386_gdbarch_init): Update.
3625         (i386_register_convert_to_raw): Update.
3626
3627 2003-06-11  Andrew Cagney  <[email protected]>
3628
3629         * remote-fileio.c: Include "remote-fileio.h".
3630         * Makefile.in (remote-fileio.o): Update dependencies.
3631         (remote_fileio_h): Fix typo.
3632
3633 2003-06-11  Andrew Cagney  <[email protected]>
3634
3635         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3636         (xstormy16_save_dummy_frame_tos): Make static.
3637         (_initialize_xstormy16_tdep): Add declaration.
3638         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3639         * v850-tdep.c: Make local functions static.
3640         (_initialize_v850_tdep): Add declaration.
3641         * sparc-tdep.c: Make local functions static.
3642         (_initialize_sparc_tdep): Add declaration.
3643         * sh-tdep.c: Make local functions static.
3644         (_initialize_sh_tdep): Add declaration.
3645         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3646         * s390-tdep.c: Make local functions static.
3647         (_initialize_s390_tdep): Add declaration.
3648         * dbxread.c (find_stab_function_addr): Make static.
3649         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3650         * ocd.c (_initialize_remote_ocd): Add declaration.
3651         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3652         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3653         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3654         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3655         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3656         * remote-array.c (_initialize_array): Add declaration.
3657         (_initialize_remote_monitors): Add declaration.
3658         * remote-mips.c: Make local functions static.
3659         (_initialize_remote_mips): Add declaration.
3660         * mcore-tdep.c: Make all local functions static.
3661         (_initialize_mcore_tdep): Add declaration.
3662         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3663         * abug-rom.c (_initialize_abug_rom): Add declaration.
3664         * rom68k-rom.c (_initialize_rom68k): Add declaration.
3665         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3666         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3667         * remote-est.c (_initialize_est): Add declaration.
3668         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3669         (m68hc11_call_dummy_address): Make static.
3670         * ia64-tdep.c: Make local functions static.
3671         (_initialize_ia64_tdep): Add declaration.
3672         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3673         * monitor.c (monitor_wait_filter): Make static.
3674         (_initialize_remote_monitors): Add declaration.
3675         * remote-hms.c (_initialize_remote_hms): Add declaration.
3676         * remote-e7000.c (fetch_regs_from_dump): Make static.
3677         (expect_n): Make static.
3678         (_initialize_remote_e7000): Add declaration.
3679         * ser-e7kpc.c: Always include "defs.h".
3680         (_initialize_ser_e7000pc): Add declaration.
3681         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3682         * cris-tdep.c: Make all but one function static.
3683         (_initialize_cris_tdep): Add declaration.
3684         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3685         * solib.c (update_solib_list): Make static.
3686         (_initialize_solib): Add declaration.
3687         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3688         (_initialize_avr_tdep): Add declaration.
3689         * remote-rdi.c (voiddummy): Make static.
3690         (_initialize_remote_rdi): Add declaration.
3691         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3692         * remote-rdp.c (send_rdp): Make static.
3693         (_initialize_remote_rdp): Add declaration.
3694         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3695
3696 2003-06-11  Corinna Vinschen  <[email protected]>
3697
3698         * remote-fileio.c: Make ari happy.
3699
3700 2003-06-10  J. Brobecker  <[email protected]>
3701
3702         * rs6000-nat.c (child_xfer_memory): Compute the right address when
3703         fetching the trailing bytes of the buffer we are about to write.
3704
3705 2003-06-10  Andrew Cagney  <[email protected]>
3706
3707         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3708         * Makefile.in (remote-fileio.o): Update dependencies.
3709         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
3710         include <setjmp.h>, or <sys/types.h> conditional on USG.
3711         (remote_fio_jmp_buf): Delete global variable.
3712
3713 2003-06-10  Corinna Vinschen  <[email protected]>
3714             Martin M. Hunt  <[email protected]>
3715
3716         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3717         (SFILES): Add remote-fileio.c.
3718         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
3719         dependencies for building remote.o.
3720         * remote-fileio.c: New file implementing the remote File-I/O protocol.
3721         * remote-fileio.h: New header file defining remote File-I/O interface.
3722         * remote.c (remote_write_bytes, remote_read_bytes): Remove
3723         static storage class.
3724         (remote_wait, remote_async_wait): Call remote_fileio_request() on
3725         'F' packet.
3726         (_initialize_remote): Call initialize_remote_fileio().
3727         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3728         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3729         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3730         (captured_main): Initialize new ui_files.
3731         * ui-file.c: Add read and fgets input functions.
3732         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3733         (null_file_read): New function.
3734         (ui_file_read): New function.
3735         (set_ui_file_read): New function.
3736         (stdio_file_read): New function.
3737         * ui-file.h: New type ui_file_read_ftype.
3738         (set_ui_file_read): Declare.
3739         (ui_file_read): Declare.
3740
3741 2003-06-09  Andrew Cagney  <[email protected]>
3742
3743         * frame.h (deprecated_unwind_get_saved_register): Rename
3744         generic_unwind_get_saved_register, update comments.
3745         * mips-tdep.c (mips_get_saved_register): Update.
3746         * frame.c (deprecated_unwind_get_saved_register): Update.
3747
3748 2003-06-09  Andrew Cagney  <[email protected]>
3749
3750         * vax-tdep.c (vax_frame_locals_address): Delete function.
3751         (vax_gdbarch_init): Do not set frame_locals_address.
3752         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3753         (m68hc11_gdbarch_init): Do not set frame_locals_address.
3754         * s390-tdep.c (s390_frame_args_address): Delete function.
3755         (s390_gdbarch_init): Do not set frame_args_address or
3756         frame_locals_address.
3757         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3758         (ns32k_gdbarch_init): Do not set frame_locals_address.
3759         * hppa-tdep.c (hppa_frame_args_address): Delete function.
3760         (hppa_frame_locals_address): Delete function.
3761         (hppa_gdbarch_init): Do not set frame_args_address, or
3762         frame_locals_address.
3763         * arm-tdep.c (arm_frame_args_address): Delete.
3764         (arm_frame_locals_address): Delete.
3765         (arm_gdbarch_init): Do not set frame_args_address, or
3766         frame_locals_address.
3767
3768 2003-06-09  Andrew Cagney  <[email protected]>
3769
3770         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3771         * gdbarch.h, gdbarch.c: Re-generate.
3772         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3773         * arch-utils.c (frame_num_args_unknown): Delete function.
3774         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3775         (frame_info): Use FRAME_NUM_ARGS_P.
3776         * arm-tdep.c (arm_frame_num_args): Delete function.
3777         (arm_gdbarch_init): Do not set frame_num_args.
3778         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3779         * hppa-tdep.c (hppa_frame_num_args): Delete function.
3780         (hppa_gdbarch_init): Do not set frame_num_args.
3781         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3782         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3783         frame_num_args to default frame_num_args_unknown.
3784         * v850-tdep.c (v850_gdbarch_init): Ditto.
3785         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3786         * sh-tdep.c (sh_gdbarch_init): Ditto.
3787         * s390-tdep.c (s390_gdbarch_init): Ditto.
3788         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3789         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3790         * mips-tdep.c (mips_gdbarch_init): Ditto.
3791         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3792         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3793         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3794         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3795         * i386-tdep.c (i386_gdbarch_init): Ditto.
3796         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3797         * frv-tdep.c (frv_gdbarch_init): Ditto.
3798         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3799         * cris-tdep.c (cris_gdbarch_init): Ditto.
3800         * avr-tdep.c (avr_gdbarch_init): Ditto.
3801         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3802
3803 2003-06-09  Andrew Cagney  <[email protected]>
3804
3805         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3806         (print_frame_args): Moved to "stack.c".
3807         * stack.c: Include "gdb_assert.h".
3808         (print_frame_nameless_args): Moved from "printcmd.c", made static.
3809         (print_frame_args): Moved from "printcmd.c".
3810         * frame.h (print_frame_args): Delete declaration.
3811         * Makefile.in (stack.o): Update dependencies.
3812
3813 2003-06-08  Andrew Cagney  <[email protected]>
3814
3815         * frame.c (get_prev_frame): Remove reference to
3816         frame_args_address_correct in comments.
3817         * frame-base.c (default_frame_args_address): Delete code
3818         conditional on FRAME_ARGS_ADDRESS_CORRECT.
3819         * vax-tdep.c (vax_frame_args_address_correct): Delete.
3820         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3821         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3822         (vax_frame_args_address_correct): Delete declaration.
3823
3824 2003-06-08  Andrew Cagney  <[email protected]>
3825
3826         * gdbarch.sh (UNWIND_SP): Add.
3827         * gdbarch.h, gdbarch.c: Re-generate.
3828         * frame.c (frame_sp_unwind): New function.
3829         (get_frame_sp): New function.
3830         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3831         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3832         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3833         value.
3834         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3835         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3836
3837 2003-06-08  Andrew Cagney  <[email protected]>
3838
3839         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3840         REMOTE_BREAKPOINT.
3841         * remote.c: Update.
3842         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3843         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3844         * config/m68k/tm-sun3.h: Update.
3845         * config/m68k/tm-m68klynx.h: Update.
3846         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3847
3848         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3849         trad_frame".  Update comments.
3850         * d10v-tdep.c (struct d10v_unwind_cache): Update.
3851         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3852         (trad_frame_register_value, trad_frame_prev_register): Update.
3853
3854 2003-06-08  Andrew Cagney  <[email protected]>
3855
3856         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3857         from GCC's acinclude.m4.
3858         * configure.in: Check for getopt's delcaration.
3859         * aclocal.m4, config.in, configure: Re-generate.
3860         * main.c (error_init): Delete declaration.
3861         * defs.h (error_init): Declare.
3862         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3863         (rs6000_convert_from_func_ptr_addr): Make static.
3864         (_initialize_rs6000_tdep): Add declaration.
3865         * cli/cli-cmds.c (dont_repeat): Delete declaration.
3866         (show_commands, set_verbose, show_history): Delete declaration.
3867         * top.h (set_verbose): Add declaration.
3868         (show_history, set_history, show_commands): Add declaration.
3869         (do_restore_instream_cleanup): Add declaration.
3870         * objc-lang.c (specialcmp): Make static.
3871         (print_object_command): Make static.
3872         (find_objc_msgsend): Make static.
3873         (find_objc_msgcall_submethod_helper): Make static.
3874         (find_objc_msgcall_submethod): Make static.
3875         (_initialize_objc_language): Add declaration.
3876         (find_implementation_from_class): Make static.
3877         (find_implementation): Make static.
3878         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3879         * objc-lang.h (lookup_struct_typedef): Add declaration.
3880         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3881         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3882         (do_restore_user_call_depth): Make static.
3883         (do_restore_instream_cleanup): Delete declaration.
3884         (dont_repeat): Delete declaration.
3885         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3886         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3887         * reggroups.c (_initialize_reggroup): Add declaration.
3888         * cp-support.c (_initialize_cp_support): Add declaration.
3889         * cp-abi.c (_initialize_cp_abi): Add declaration.
3890         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3891         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3892         (_initialize_gnu_v3_abi): Add declaration.
3893         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3894         (_initialize_gnu_v2_abi): Add declaration.
3895         * frame-base.c (_initialize_frame_base): Add declaration.
3896         * doublest.c (floatformat_from_length): Make static.
3897         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3898         * frame.c (create_sentinel_frame): Make static.
3899         (_initialize_frame): Add declaration.
3900         * top.c (do_catch_errors): Make static.
3901         (gdb_rl_operate_and_get_next_completion): Make static.
3902         * typeprint.c: Include "typeprint.h".
3903         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3904         (sentinel_frame_this_id): Make static.
3905         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3906         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3907         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3908         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3909         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3910         * maint.c (maintenance_print_architecture): Make static.
3911         * signals/signals.c (_initialize_signals): Add declaration.
3912         * std-regs.c (_initialize_frame_reg): Add declaration.
3913         * jv-exp.y (push_variable): ISO C definition.
3914         (push_qualified_expression_name): Ditto.
3915         * memattr.c (_initialize_mem): Add declaration.
3916         * remote.c (remote_check_watch_resources): Make static.
3917         (remote_stopped_by_watchpoint): Make static.
3918         (remote_stopped_data_address): Make static.
3919         * d10v-tdep.c (nr_dmap_regs): Make static.
3920         (a0_regnum): Make static.
3921         (d10v_frame_unwind_cache): Make static.
3922         (d10v_frame_p): Make static.
3923         * osabi.c (show_osabi): Make static.
3924         (_initialize_gdb_osabi): Add extern declaration.
3925         * gdbtypes.c (make_qualified_type): Make static.
3926         (safe_parse_type): Make static.
3927         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3928         * macrotab.c (macro_bcache_free): Make static.
3929         * interps.c (interp_set_quiet): Make static.
3930         (interpreter_exec_cmd): Make static.
3931         * stack.h (select_frame_command): New file.
3932         * stack.c: Include "stack.h".
3933         (select_frame_command_wrapper): Delete function.
3934         (select_frame_command): Make global.
3935         * infcall.c: Include "infcall.h".
3936         * linespec.c: Include "linespec.h".
3937         * symfile.c (sections_overlap): Make static.
3938         * cp-support.h (cp_initialize_namespace): ISO C declaration.
3939         * charset.c (_initialize_charset): Add missing prototype.
3940         * regcache.c (init_legacy_regcache_descr): Make static.
3941         (do_regcache_xfree): Make static.
3942         (regcache_xfer_part): Make static.
3943         (_initialize_regcache): Add missing prototype.
3944         * breakpoint.c (parse_breakpoint_sals): Make static.
3945         (breakpoint_sals_to_pc): Make static.
3946         * interps.h (clear_interpreter_hooks): ISO C declaration.
3947         * Makefile.in (stack_h): Define.
3948         (stack.o, typeprint.o, mi-main.o): Update dependencies.
3949         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3950
3951 2003-06-08  Andrew Cagney  <[email protected]>
3952
3953         * Makefile.in (d10v-tdep.o): Update dependencies.
3954         (SFILES): Add trad-frame.c.
3955         (trad_frame_h): Define.
3956         (COMMON_OBS): Add trad-frame.o.
3957         (trad-frame.o): Specify dependencies.
3958         * d10v-tdep.c: Include "trad-frame.h".
3959         (saved_regs_unwinder): Delete function.
3960         (d10v_frame_prev_register): Use trad_frame_prev_register.
3961         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3962         trad_frame", delete "regs" and "prev_sp".
3963         (prologue_find_regs): Use trad-frame.
3964         * trad-frame.h, trad-frame.c: New files.
3965
3966 2003-06-08  Mark Kettenis  <[email protected]>
3967
3968         * dwarf2cfi.c, dwarf2cfi.h: Remove.
3969
3970 2003-06-07  Adam Fedor  <[email protected]>
3971
3972         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3973         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3974         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3975         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3976         resolve_msgsend_super, resolve_msgsend_super_stret):
3977         Use it.
3978
3979 2003-06-07  Andrew Cagney  <[email protected]>
3980
3981         * symfile.h: Re-indent, clean up comments.
3982
3983 2003-06-07  Andrew Cagney  <[email protected]>
3984
3985         * inferior.h (deprecated_write_sp): Replace
3986         generic_target_write_sp.
3987         * regcache.c (deprecated_write_sp): Replace
3988         generic_target_write_sp.
3989         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3990         * vax-tdep.c (vax_gdbarch_init): Update.
3991         * v850-tdep.c (v850_gdbarch_init): Update.
3992         * sparc-tdep.c (sparc_gdbarch_init): Update.
3993         * sh-tdep.c (sh_gdbarch_init): Update.
3994         * s390-tdep.c (s390_gdbarch_init): Update.
3995         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3996         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3997         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3998         * mcore-tdep.c (mcore_gdbarch_init): Update.
3999         * m68k-tdep.c (m68k_gdbarch_init): Update.
4000         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4001         * ia64-tdep.c (ia64_gdbarch_init): Update.
4002         * h8300-tdep.c (h8300_gdbarch_init): Update.
4003         * frv-tdep.c (frv_gdbarch_init): Update.
4004         * cris-tdep.c (cris_gdbarch_init): Update.
4005         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4006
4007 2003-06-07  Andrew Cagney  <[email protected]>
4008
4009         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4010         Assert that PC_REGNUM is valid.
4011         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4012
4013 2003-06-07  Andrew Cagney  <[email protected]>
4014
4015         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4016         * gdbarch.h, gdbarch.c: Regenerate.
4017         * mn10300-tdep.c: Include "gdb_assert.h".
4018         (mn10300_read_fp): New function.
4019         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4020         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
4021         * ia64-tdep.c: Include "gdb_assert.h".
4022         (ia64_read_fp): New function.
4023         (ia64_gdbarch_init): Set deprecated_target_read_fp to
4024         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
4025         * regcache.c (generic_target_read_sp): Delete function.
4026         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4027         * inferior.h (generic_target_read_sp): Delete declaration.
4028         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4029         generic_target_read_sp.
4030         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4031         * sparc-tdep.c (sparc_gdbarch_init): Ditto
4032         * sh-tdep.c (sh_gdbarch_init): Ditto.
4033         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4034         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4035
4036 2003-06-07  Andrew Cagney  <[email protected]>
4037
4038         * gdbarch.sh: Comment each field of startup_gdbarch.
4039         * gdbarch.h, gdbarch.c: Re-generate.
4040
4041 2003-06-07  Andrew Cagney  <[email protected]>
4042
4043         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4044         * gdbarch.h, gdbarch.c: Re-generate.
4045         * regcache.c: Update comments on read_pc et.al.
4046         (generic_target_read_pc): Delete function.
4047         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4048         * inferior.h (generic_target_read_pc): Delete declaration.
4049         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4050         generic_target_read_pc.
4051         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4052         * sh-tdep.c (sh_gdbarch_init): Ditto.
4053         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4054         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4055
4056 2003-06-07  Andrew Cagney  <[email protected]>
4057
4058         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4059         "index" with "special_local_sect".  Use strcmp instead of STREQ.
4060         Append period to coments.
4061
4062 2003-06-06  Mark Mitchell  <[email protected]>
4063
4064         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4065         (elfstab_offset_sections): Likewise.
4066         * gdb-stabs.h (stab_section_info): Likewise.
4067         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4068         * objfiles.c (objfile_relocate): Likewise.
4069         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4070         * remote.c (get_offsets): Likewise.
4071         (remote_cisco_objfile_relocate): Likewise.
4072         * somread.c (som_symfile_offsets): Likewise.
4073         * symfile.c (alloc_section_addr_info): New function.
4074         (build_section_addr_info_from_section_tab): Use it.
4075         (free_section_addr_info): Adjust.
4076         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4077         (syms_from_objfile): Allocate local_addr dynamically.
4078         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4079         dynamically.
4080         (add_symbol_file_command): Allocate sect_opts dynamically.
4081         (reread_symbols): Avoid use of SECT_OFF_MAX.
4082         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4083         (alloc_section_addr_info): Declare it.
4084         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4085         * win32-nat.c (solib_symbols_add): Allocate section_addrs
4086         dynamically.
4087         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4088
4089 2003-06-06  Andrew Cagney  <[email protected]>
4090
4091         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4092         (d10v_frame_unwind_cache): Do not set "return_pc".
4093
4094 2003-06-06  Michael Snyder  <[email protected]>
4095
4096         * h8300-tdep.c: Make tidy (long lines).
4097
4098 2003-06-06  Michal Ludvig  <[email protected]>
4099
4100         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4101         to regcache_collect().
4102
4103 2003-06-05  J. Brobecker  <[email protected]>
4104
4105         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4106         pc_in_sigtramp multiarch method.
4107         (hppa_hpux_som_init_abi): Use it.
4108         (hppa_hpux_elf_init_abi): Likewise.
4109         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4110         macro has been multiarched.
4111         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4112         macro here, as hppa64 isn't multiarched yet.
4113
4114 2003-06-05  Andrew Cagney  <[email protected]>
4115
4116         * Makefile.in (value_h): Add $(frame_h).
4117         * value.h: Include "frame.h".
4118         (struct value): Replace "frame_addr" with "frame_id".
4119         (VALUE_FRAME_ID): Replace VALUE_FRAME.
4120         * values.c (allocate_value): Use VALUE_FRAME_ID.
4121         (value_copy): Use VALUE_FRAME_ID.
4122         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4123         * valops.c (value_assign): Update.  Use frame_find_by_id.
4124
4125 2003-06-05  Michal Ludvig  <[email protected]>
4126
4127         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4128         in each pass.
4129
4130 2003-06-05  Jeff Johnston  <[email protected]>
4131
4132         * thread-db.c (check_event): For create/death event breakpoints,
4133         loop through all messages to ensure that we read the message
4134         corresponding to the breakpoint we are at.
4135
4136 2003-06-04  Michael Snyder  <[email protected]>
4137
4138         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4139
4140 2003-06-04  Mark Kettenis  <[email protected]>
4141
4142         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4143         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4144         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4145         when handling .eh_frame sections.
4146
4147 2003-06-04  J. Brobecker  <[email protected]>
4148
4149         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4150         prepare_to_proceed procedure instead of the hppa-specific one.
4151         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4152
4153 2003-06-04  Jeff Johnston  <[email protected]>
4154
4155         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4156         * config.in: Regenerated.
4157         * configure.in: Add test for syscall function and check for
4158         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4159         * configure: Regenerated.
4160         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4161         <sys/syscall.h>.
4162         (kill_lwp): New function that uses tkill syscall or
4163         uses kill, depending on whether threading model is nptl or not.
4164         All callers of kill() changed to use kill_lwp().
4165         (lin_lwp_wait): Make special check when WIFEXITED occurs to
4166         see if all threads have already exited in the nptl model.
4167         (stop_and_resume_callback): New callback function used by the
4168         lin_lwp_wait thread exit handling code.
4169         (stop_wait_callback): Check for threads already having exited and
4170         delete such threads fromt the lwp list when discovered.
4171         (stop_callback): Don't assert retcode of kill call.
4172
4173         Roland McGrath  <[email protected]>
4174         * i386-linux-nat.c (ps_get_thread_area): New function needed by
4175         nptl libthread_db.
4176
4177 2003-06-03  Richard Henderson  <[email protected]>
4178
4179         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4180         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4181         (alpha_sigtramp_frame_prev_register): Likewise.
4182         (alpha_heuristic_frame_prev_register): Likewise.
4183         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4184
4185         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4186         alpha-specific register id names.
4187         (alpha_mdebug_frame_unwind_cache): Likewise.
4188         (alpha_mdebug_frame_prev_register): Likewise.
4189
4190 2003-06-03  Richard Henderson  <[email protected]>
4191
4192         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4193         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4194         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4195         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4196         unwind routines.
4197         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4198         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4199         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4200
4201         * alpha-linux-tdep.c: Remove unnecessary includes.
4202         * Makefile.in (alpha-linux-tdep.o): Update.
4203
4204 2003-06-03  Richard Henderson  <[email protected]>
4205
4206         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4207         (alphabsd_fill_fpreg): Likewise.
4208
4209 2003-06-03  J. Brobecker  <[email protected]>
4210
4211         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
4212         references to struct frame_info fields by calls to the equivalent
4213         accessors. Necessary now that frame_info is opaque.
4214
4215 2003-06-03  J. Brobecker  <[email protected]>
4216
4217         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4218         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4219         structure, field no longer exists.
4220
4221 2003-06-03  J. Brobecker  <[email protected]>
4222
4223         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4224         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4225
4226 2003-06-03  J. Brobecker  <[email protected]>
4227
4228         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4229         references to struct frame_info fields by calls to the equivalent
4230         accessors. Necessary now that frame_info is opaque.
4231
4232 2003-06-03  J. Brobecker  <[email protected]>
4233
4234         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4235         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4236         structure, field no longer exists.
4237
4238 2003-06-03  Theodore A. Roth  <[email protected]>
4239
4240         * remote.c (init_remote_state): Compute sizeof_g_packet by
4241         accumulation of the size of all registers instead of blindly using
4242         DEPRECATED_REGISTER_BYTES.
4243
4244 2003-06-03  Michael Snyder  <[email protected]>
4245
4246         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4247         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4248         for h8300sx.
4249
4250 2003-06-03  J. Brobecker  <[email protected]>
4251
4252         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4253         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4254
4255 2003-06-03  Andrew Cagney  <[email protected]>
4256
4257         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4258         (sparc_convert_to_raw): Delete function.
4259         (sparc_gdbarch_init): Do not set register_convert_to_raw or
4260         register_convert_to_virtual.
4261
4262 2003-06-03  Jeff Johnston  <[email protected]>
4263
4264         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4265         layer if not dealing with a statically-linked threaded program.
4266
4267 2003-06-03  Kris Warkentin  <[email protected]>
4268
4269         * solib.c (solib_open): Update comment to reflect actual search order.
4270
4271 2003-06-03  Andrew Cagney  <[email protected]>
4272
4273         * frame.c (get_frame_memory_signed): New function.
4274         (get_frame_memory, get_frame_memory_unsigned): New function.
4275         (get_frame_arch): New function.
4276         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4277         (get_frame_memory, get_frame_unsigned_memory): Declare.
4278         * d10v-tdep.c (d10v_frame_unwind_cache): Use
4279         get_frame_memory_unsigned and get_frame_arch.
4280         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4281
4282 2003-06-03  Raoul Gough  <[email protected]>
4283
4284         * MAINTAINERS (write after approval): Add myself.
4285
4286 2003-06-03  Jim Blandy  <[email protected]>
4287
4288         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4289         elements of gregset_t are 64 bits each, but access registers
4290         are still 32 bits, so they're packed two per gregset_t
4291         element.  Unpack/pack them properly.
4292
4293 2003-06-02  David Carlton  <[email protected]>
4294
4295         * linespec.c (find_methods): Break out code into
4296         add_matching_methods and add_constructors.
4297         (add_matching_methods): New.
4298         (add_constructors): Ditto.
4299
4300 2003-06-02  Andrew Cagney  <[email protected]>
4301
4302         * sparc-tdep.c (sparc_print_registers): Delete call to
4303         REGISTER_CONVERTIBLE.
4304         (sparc_gdbarch_init): Do not set register_convertible.
4305         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4306         * frv-tdep.c (frv_gdbarch_init): Ditto.
4307         * cris-tdep.c (cris_gdbarch_init): Ditto.
4308
4309 2003-06-02  Elena Zannoni  <[email protected]>
4310
4311         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4312         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4313         (syms_from_objfile): Ditto.
4314
4315 2003-06-03  Andreas Schwab  <[email protected]>
4316
4317         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4318         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4319
4320 2003-06-02  Richard Henderson  <[email protected]>
4321
4322         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4323         a member of all_reggroup.
4324
4325 2003-06-02  Richard Henderson  <[email protected]>
4326
4327         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4328         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4329         (alpha_lds, alpha_sts): New.
4330         (alpha_convert_register_p): Change from _register_convertible.
4331         (alpha_register_to_value): Change from _convert_to_virtual;
4332         restructure and fail for type sizes other than 4 or 8.
4333         (alpha_value_to_register): Similarly.
4334         (alpha_extract_return_value): Use alpha_sts.
4335         (alpha_store_return_value): Use alpha_lds.
4336         (alpha_gdbarch_init): Update hooks.
4337
4338 2003-06-02  Richard Henderson  <[email protected]>
4339
4340         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4341         regnum identifiers.
4342         (alpha_sigtramp_register_address): Likewise.
4343
4344 2003-06-02  Richard Henderson  <[email protected]>
4345
4346         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4347         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4348         * alpha-tdep.h: Declare them.
4349
4350         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4351         Remove zerobuf.  Don't error on UNIQUE.
4352         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4353         (ALPHA_REGSET_UNIQUE): Provide default.
4354         (supply_gregset): Use alpha_supply_int_regs.
4355         (fill_gregset): Use alpha_fill_int_regs.
4356         (supply_fpregset): Use alpha_supply_fp_regs.
4357         (fill_fpregset): Use alpha_fill_fp_regs.
4358         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4359         (alphabsd_supply_reg): Use alpha_supply_int_regs.
4360         (alphabsd_fill_reg): Use alpha_fill_int_regs.
4361         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4362         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4363         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4364
4365 2003-06-02  Richard Henderson  <[email protected]>
4366
4367         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4368
4369         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4370         (alpha_store_return_value): Likewise.
4371
4372 2003-06-02  David Carlton  <[email protected]>
4373
4374         * block.c (contained_in): Add 'const' to arguments.
4375         (block_function): Ditto.
4376         * block.h: Update declarations for block_function and
4377         contained_in.
4378
4379 2003-06-02  David Carlton  <[email protected]>
4380
4381         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4382         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4383         * p-valprint.c (pascal_val_print): Ditto.
4384         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4385
4386 2003-06-02  Richard Henderson  <[email protected]>
4387
4388         * alpha-tdep.c (alpha_push_dummy_call): Use
4389         builtin_type_ieee_double_little instead of builtin_type_double.
4390
4391         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4392         sign-extension of 32-bit values.
4393         (alpha_store_return_value): Similarly.
4394
4395         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4396         (alpha_extract_return_value): Likewise.
4397         (alpha_store_return_value): Likewise.
4398
4399         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4400         (alpha_store_return_value): Error on IEEE Quad floats.
4401
4402         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4403         (alpha_extract_struct_value_address): Likewise.
4404         (alpha_store_return_value): Likewise.
4405         (alpha_store_struct_return): Remove.
4406         (alpha_gdbarch_init): Update hook registration to match.
4407
4408         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4409         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4410         macros where appropriate.
4411         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
4412         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4413
4414         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4415         for SP, GP; void_func_ptr for PC; non-language-specific types
4416         for all others.
4417         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4418
4419 2003-06-02  Richard Henderson  <[email protected]>
4420
4421         * top.h (lim_at_start): Declare.
4422         * main.c (captured_main): Set it.
4423         * top.c (lim_at_start): Define.
4424         (command_loop): Use it instead of &environ.
4425         * event-top.c (command_handler): Likewise.
4426
4427 2003-06-01  Jason Thorpe  <[email protected]>
4428
4429         * mipsnbsd-tdep.c: Update copyright years.
4430         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4431
4432 2003-06-01  Richard Henderson  <[email protected]>
4433
4434         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4435         (alpha-linux-tdep.o): Update dependencies.
4436         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4437         * alpha-mdebug-tdep.c: Remove unneeded includes.
4438
4439 2003-06-01  Richard Henderson  <[email protected]>
4440
4441         * alpha-tdep.c (alpha_register_reggroup_p): New.
4442         (alpha_gdbarch_init): Register it.
4443
4444 2003-06-02  Andrew Cagney  <[email protected]>
4445
4446         * dwarfread.c: Eliminate "register"
4447         (decode_die_type): Eliminate assignment within "if".
4448         (struct_type, decode_array_element_type): Ditto.
4449         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4450         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4451         (decode_modified_type, completedieinfo): Ditto.
4452         * block.c: Eliminate "register".
4453         (blockvector_for_pc_sect): Eliminate assignment within "if".
4454         * cp-support.h (struct symbol): Opaque declaration.
4455         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4456
4457 2003-06-01  Richard Henderson  <[email protected]>
4458
4459         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4460         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4461
4462 2003-06-01  Adam Fedor  <[email protected]>
4463
4464         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4465         * gdbarch.[ch]: Regenerate.
4466         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4467         (hppa_gdbarch_init): Set it in the gdbarch vector.
4468         * i386-tdep.c (i386_fetch_pointer_argument): New
4469         (i386_gdbarch_init): Set it into gdbarch.
4470         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4471         (rs6000_gdbarch_init): Set it in gdbarch.
4472         * sparc-tdep.c (sparc_fetch_pointer_argument): New
4473         (sparc_gdbarch_init): Set it in gdbarch.
4474
4475 2003-06-01  Andrew Cagney  <[email protected]>
4476
4477         * defs.h (extract_address): Delete declaration.
4478         * findvar.c (extract_address): Delete function.
4479         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4480         extract_address with the inline equivalent,
4481         extract_unsigned_integer.
4482         (xstormy16_extract_struct_value_address): Ditto.
4483         (xstormy16_pointer_to_address): Ditto.
4484         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4485         * v850-tdep.c (v850_push_arguments): Ditto.
4486         (v850_extract_return_value): Ditto.
4487         (v850_extract_struct_value_address): Ditto.
4488         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4489         (sparcnbsd_get_longjmp_target_64): Ditto.
4490         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4491         (get_longjmp_target): Ditto.
4492         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4493         (sh64_extract_struct_value_address): Ditto.
4494         (sh_push_arguments): Ditto.
4495         (sh64_push_arguments): Ditto.
4496         * remote-vxsparc.c (vx_read_register): Ditto.
4497         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4498         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4499         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4500         * mipsv4-nat.c (get_longjmp_target): Ditto.
4501         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4502         * mips-nat.c (get_longjmp_target): Ditto.
4503         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4504         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4505         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4506         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4507         * irix5-nat.c (get_longjmp_target): Ditto.
4508         * irix4-nat.c (get_longjmp_target): Ditto.
4509         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4510         (ia64_push_arguments): Ditto.
4511         * hpux-thread.c (hpux_thread_store_registers): Ditto.
4512         * h8300-tdep.c (h8300_push_arguments): Ditto.
4513         (h8300_store_return_value): Ditto.
4514         (h8300_extract_struct_value_address): Ditto.
4515         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4516         (frv_push_arguments): Ditto.
4517         * avr-tdep.c (avr_pointer_to_address): Ditto.
4518         (avr_push_arguments): Ditto.
4519         * arm-tdep.c (arm_push_dummy_call): Ditto.
4520         (arm_get_longjmp_target): Ditto.
4521         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4522         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4523         (alpha_get_longjmp_target): Ditto.
4524
4525         * solib-irix.c (extract_mips_address): Inline extract_address,
4526         replacing it with extract_signed_integer.
4527         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4528         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4529         (first_link_map_member, open_symbol_file_object): Ditto.
4530         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4531         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4532         (LM_NEXT, LM_NAME): Ditto.
4533
4534 2003-06-01  Richard Henderson  <[email protected]>
4535
4536         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4537         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4538         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4539         (alpha_cannot_store_register): Likewise.
4540         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4541         * alpha-nat.c (supply_gregset): Likewise.
4542         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4543
4544 2003-06-01  Andrew Cagney  <[email protected]>
4545
4546         * infcall.c (call_function_by_hand): Update comment on
4547         DEPRECATED_DUMMY_WRITE_SP.
4548
4549         * mips-tdep.c (mips_gdbarch_init): Do not set
4550         deprecated_dummy_write_sp.
4551         (mips_eabi_push_dummy_call): Set the SP register.
4552         (mips_o64_push_dummy_call): Set the SP register.
4553         (mips_o32_push_dummy_call): Set the SP register.
4554         (mips_n32n64_push_dummy_call): Set the SP register.
4555
4556 2003-06-01  Richard Henderson  <[email protected]>
4557
4558         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4559         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4560         (supply_gregset): Likewise.
4561         * alpha-tdep.c (alpha_store_return_value): Likewise.
4562         (alpha_get_longjmp_target): Likewise.
4563         (alpha_register_name): Constify array.
4564         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4565         deprecated_register_size, deprecated_register_bytes,
4566         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4567         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4568         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4569
4570 2003-06-01  Richard Henderson  <[email protected]>
4571
4572         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
4573         from arg_reg_buffer to regcache to avoid double conversion.
4574
4575 2003-06-01  Mark Kettenis  <[email protected]>
4576
4577         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4578         SP_REGNUM.
4579         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4580         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4581
4582 2003-06-01  Richard Henderson  <[email protected]>
4583
4584         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4585         (decode_frame_entry): Set it.  Skip FDE augmentation.
4586
4587 2003-06-01  Richard Henderson  <[email protected]>
4588
4589         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4590         not overlapping PC_REGNUM.
4591
4592 2003-06-01  Richard Henderson  <[email protected]>
4593
4594         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4595         alpha_push_arguments.  Don't dump argument register data to
4596         the target stack.  Fix float and 128-bit long double semantics.
4597         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
4598         (alpha_fix_call_dummy): Remove.
4599         (alpha_call_dummy_words): Remove.
4600         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4601
4602 2003-06-01  Richard Henderson  <[email protected]>
4603
4604         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4605
4606 2003-06-01  Andrew Cagney  <[email protected]>
4607
4608         * mips-tdep.c (is_mips16_addr): New function.
4609         (make_mips16_addr, unmake_mips16_addr): New functions.
4610         (pc_is_mips16, mips_fetch_instruction): Use.
4611         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4612         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4613         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4614         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4615         TARGET_MIPS.
4616         * config/mips/tm-mips.h: Update copyright.
4617         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4618         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4619         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4620         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4621         (TM_PRINT_INSN_MACH): Delete.
4622         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4623
4624         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4625         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4626         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4627         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4628         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
4629         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
4630         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
4631         mips*-*-riscos* and mips*-*-sysv* onto mips.
4632         * config/mips/mips64.mt: New file.
4633         * config/mips/mips.mt: New file.
4634         * config/mips/littlemips.mt: Delete file.
4635         * config/mips/decstation.mt: Delete file.
4636         * config/mips/vr4300el.mt: Delete file.
4637         * config/mips/vr5000el.mt: Delete file.
4638         * config/mips/vr5000.mt: Delete file.
4639         * config/mips/vr4100.mt: Delete file.
4640         * config/mips/vr4xxxel.mt: Delete file.
4641         * config/mips/vr4300.mt: Delete file.
4642         * config/mips/vr4xxx.mt: Delete file.
4643         * config/mips/bigmips.mt: Delete file.
4644         * config/mips/bigmips64.mt: Delete file.
4645         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4646         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4647         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4648         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4649         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4650         "tm-bigmips.h".
4651         * config/mips/tm-irix3.h: Ditto.
4652         * config/mips/tm-mipsv4.h: Ditto.
4653         * config/mips/tm-embed.h: Ditto.
4654         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4655         "tm-bigmips64.h".
4656         * config/mips/tm-vr5000el.h: Delete file.
4657         * config/mips/tm-tx39l.h: Delete file.
4658         * config/mips/tm-vr4300el.h: Delete file.
4659         * config/mips/tm-vr4xxxel.h: Delete file.
4660         * config/mips/tm-vr4300.h: Delete file.
4661         * config/mips/tm-vr4100.h: Delete file.
4662         * config/mips/tm-vr4xxx.h: Delete file.
4663         * config/mips/tm-vr5000.h: Delete file.
4664         * config/mips/tm-embedl64.h: Delete file.
4665         * config/mips/tm-embedl.h: Delete file.
4666         * config/mips/tm-embed64.h: Delete file.
4667         * config/mips/tm-bigmips64.h: Delete file.
4668         * config/mips/tm-bigmips.h: Delete file.
4669
4670 2003-06-01  Mark Kettenis  <[email protected]>
4671
4672         Fix gdb/1216.
4673         * shnbsd-nat.c: Include "sh-tdep.h".
4674
4675         From Richard Henderson  <[email protected]>:
4676         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4677
4678 2003-05-31  Andrew Cagney  <[email protected]>
4679
4680         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
4681         forward declaration.
4682         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4683         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4684         (mips_find_saved_regs): Use set_reg_offset.
4685         (mips_frame_init_saved_regs): Delete function.
4686         (mips_pop_frame): Call mips_find_saved_regs instead of
4687         DEPRECATED_FRAME_INIT_SAVED_REGS.
4688
4689 2003-05-31  Andrew Cagney  <[email protected]>
4690
4691         * mips-tdep.c (mips_gdbarch_init): Do not set
4692         deprecated_max_register_raw_size, register_virtual_size, and
4693         deprecated_max_register_virtual_size.
4694
4695 2003-05-31  Mark Kettenis  <[email protected]>
4696
4697         * i386-tdep.c: Include "dwarf2-frame.h".
4698         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4699         * Makefile.in (i386-tdep.o): Update dependencies.
4700
4701         * dwarf2-frame.c, dwarf2-frame.h: New files.
4702         * Makefile.in (SFILES): Add dwarf2-frame.c.
4703         (dwarf2_frame_h): Define.
4704         (COMMON_OBS): Add dwarf2-frame.o.
4705         (dwarf2-frame.o): Add dependencies.
4706
4707 2003-05-31  Andreas Jaeger  <[email protected]>
4708
4709         * x86-64-linux-nat.c: Fix comment.
4710
4711 2003-05-31  Mark Kettenis  <[email protected]>
4712
4713         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4714         function signature.
4715
4716         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4717         have a sigcontext_addr handler.
4718         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4719         sigcontext_addr handler.
4720
4721 2003-05-31  Andrew Cagney  <[email protected]>
4722
4723         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4724         (print_fp_register_row): Replace do_fp_register_row.
4725         (mips_print_fp_register): Add "file" and "frame" parameters.
4726         (mips_print_register): Add "file" and "frame" parameters.
4727         (mips_print_registers_info): Replace mips_do_registers_info.
4728         (mips_gdbarch_init): Set print_registers_info instead of
4729         deprecated_do_registers_info.
4730         (mips_read_fp_register_single): Add "frame" parameter.
4731         (mips_read_fp_register_double): Add "frame" parameter.
4732
4733 2003-05-31  Mark Kettenis  <[email protected]>
4734
4735         * i386-tdep.c (i386_register_name): Check for MMX registers first.
4736         Fixes a bug where GDB would print the wrong register names for
4737         targets without SSE.
4738
4739         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4740         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4741         registers.
4742
4743         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4744         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4745         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4746         TDEP->sc_sp_offset.
4747
4748         From Michal Ludvig  <[email protected]>:
4749         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4750         and `sc_num_regs'.
4751         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4752         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4753         I386_ST0_REGNUM): Move here from...
4754         * i386-tdep.c: ... here.
4755         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4756         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4757         registers if possible.
4758         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4759         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4760         Remove variables.
4761         (i386bsd_sc_reg_offset): New variable.
4762         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4763         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4764         TDEP->sc_sp_offset.
4765         (i386fbsd_sc_reg_offset): New variable.
4766         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4767         TDEP->sc_num_regs.
4768         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4769         variables.
4770         (i386fbsd4_sc_reg_offset): New variable.
4771         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4772         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4773         TDEP->sc_sp_offset.
4774         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4775         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4776         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4777         Remove variables.
4778         (i386nbsd_sc_reg_offset): New variable.
4779         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4780         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4781         TDEP->sc_sp_offset.
4782         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4783         Remove variables.
4784         (i386obsd_sc_reg_offset): New variable.
4785         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4786         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4787         TDEP->sc_sp_offset.
4788         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4789         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
4790         for frame pointer offset in `struct sigcontext'.
4791
4792 2003-05-31  Andrew Cagney  <[email protected]>
4793
4794         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4795         architecture methods call_dummy_words, sizeof_call_dummy_words,
4796         push_return_address, store_struct_return, and fix_call_dummy.  Set
4797         push_dummy_call instead of deprecated_push_arguments.
4798         (mips_store_struct_return): Delete function.
4799         (mips_fix_call_dummy): Delete function.
4800         (mips_push_return_address): Delete function.
4801         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4802         RA_REGNUM and T9_REGNUM.
4803         (mips_n32n64_push_dummy_call): Ditto for
4804         mips_n32n64_push_arguments.
4805         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4806         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4807
4808 2003-05-31  Andrew Cagney  <[email protected]>
4809
4810         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
4811         "dummy_addr" to "bp_addr".
4812         * infcall.c (call_function_by_hand): Pass "funaddr" to
4813         gdbarch_push_dummy_call.
4814         * gdbarch.h, gdbarch.c: Re-generate.
4815         * i386-tdep.c (i386_push_dummy_call): Update.
4816         * arm-tdep.c (arm_push_dummy_call): Update.
4817         * d10v-tdep.c (d10v_push_dummy_call): Update.
4818
4819 2003-05-31  Mark Kettenis  <[email protected]>
4820
4821         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4822         variable declarations.
4823         (x86_64_register_number, x86_64_register_name): Remove prototypes.
4824         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4825         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4826         x86_64_init_frame_pc, x86_64_init_frame_pc,
4827         x86_64_function_has_prologue): Remove prototypes.
4828         (X86_64_NUM_GREGS): New define.
4829         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4830         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
4831         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4832         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4833         XMM1_REGNUM): Remove defines.
4834         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4835         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4836         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4837         X86_64_XMM1_REGNUM): New defines.
4838         (struct x86_64_register_info): Renamed from `struct
4839         register_info'.  Remove `size' member.
4840         (x86_64_register_info_table): Remove variable.
4841         (x86_64_register_info): New variable.
4842         (X86_64_NUM_REGS): New define.
4843         (X86_64_NUM_GREGS): Remove define.
4844         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4845         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4846         Remove variables.
4847         (x86_54_dwarf2_reg_to_regnum): Remove function.
4848         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4849         (x86_64_dwarf_reg_to_regnum): New function.
4850         (x86_64_register_name): Rewrite.
4851         (x86_64_register_raw_size): Remove function.
4852         (x86_64_register_byte_table): Remove variable.
4853         (x86_64_register_byte): Remove function.
4854         (x86_64_register_virtual_type): Remove function.
4855         (x86_64_register_type): New function.
4856         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4857         x86_64_register_convert_to_raw): Remove functions.
4858         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4859         (x86_64_use_struct_convention): Make static.  Adjust for renamed
4860         defines.
4861         (x86_64_frame_init_saved_regs): Remove function.
4862         (x86_64_push_arguments): Make static.  Change to accept a regcache
4863         as argument.
4864         (x86_64_store_return_value, x86_64_extract_return_value): Make
4865         static.  Rewrite based on i386 counterparts.
4866         (x86_64_push_dummy_call): New function.
4867         (X86_64_NUM_SAVED_REGS): New define.
4868         (x86_64_register_number): Remove function.
4869         (x86_64_store_struct_return): Remove function.
4870         (x86_64_frameless_function_invocation,
4871         x86_64_function_has_prologue): Remove functions.
4872         (PROLOG_BUFSIZE): Remove define.
4873         (struct x86_64_frame_cache): New structure.
4874         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4875         x86_64_frame_cache, x86_64_frame_this_id,
4876         x86_64_frame_prev_register, x86_64_frame_p,
4877         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4878         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4879         functions.
4880         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4881         variables.
4882         (x86_64_skip_prologue): Rewrite in terms of
4883         x86_64_analyze_prologue.
4884         (x86_64_frame_base_address): New function.
4885         (x86_64_frame_base): New variable.
4886         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4887         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
4888         set deprecated_fp_regnum, deprecated_register_size,
4889         deprecated_register_bytes, register_raw_size, register_byte,
4890         register_virtual_type, register_convertiable,
4891         register_convert_to_virtual, convert_to_raw,
4892         deprecated_get_saved_register, deprecated_target_read_fp,
4893         deprecated_push_arguments, deprecated_push_return_address,
4894         deprecated_pop_frame, deprecated_store_struct_return,
4895         deprecated_frame_init_saved_regs, deprecated_frame_chain,
4896         frameless_function_invocation, deprecated_frame_saved_pc,
4897         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4898         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4899         deprecated_init_frame_pc and virtual_frame_pointer.  Call
4900         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4901         and x86_64_frame_p.  Call frame_base_set_default to register
4902         x86_64_frame_base.
4903         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4904         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4905         (_initialize_x86_64_tdep): Remove function.
4906         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4907         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4908         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4909         define.
4910         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4911         (x86_64_linux_sigcontext_addr): Rewrite.
4912         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4913         x86_64_linux_frame_saved_pc): Remove functions.
4914         (x86_64_linux_pc_in_sigtramp): Renamed from
4915         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
4916         trampoline.
4917         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4918         Remove_functions.
4919         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
4920         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4921         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4922         (x86_64_regmap): Rename to regmap.
4923         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4924         x86_64_num_gregs.
4925         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
4926         x86_64_regmap.
4927         (x86_64_fxsave_offset): Remove function.
4928         (supply_fpregset): Simply call x86_64_supply_fxsave.
4929         (fill_fpregset): Simply call x86_64_fill_fxsave.
4930         (fetch_inferior_registers, store_inferior_registers): Avoid
4931         asignment in if-statement.
4932         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4933         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4934         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4935         (fetch_core_registers): Remove function.
4936         (linux_elf_core_fns): Remove.
4937         (offsetoff): Don't define.
4938         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4939         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4940         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4941         add core-regset.o.
4942         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4943         protection against multiple includes instead of NM_X86_64_h.  Add
4944         various comments.  Include "config/nm-linux.h".  Don't include
4945         <signal.h>.
4946         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4947         GET_THREAD_SIGNALS): Remove defines.
4948         (x86_64_register_u_addr, kernel_u_size,
4949         lin_thread_get_thread_signals): Remove prototypes.
4950         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4951         [HAVE_LINK_H]: Don't include "solib.h".
4952         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4953         * config/i386/tm-x86-64linux.h: Fix comments.
4954         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4955         x86-64-tdep.o): Update dependencies.
4956
4957 2003-05-30  Andrew Cagney  <[email protected]>
4958
4959         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4960         Change parameter type to a "struct regcache *".
4961
4962         * gdbarch.sh: Regardless of the multi-arch level, always define
4963         the macro when not already defined.
4964         * gdbarch.h, gdbarch.c: Re-generate.
4965
4966 2003-05-30  Richard Henderson  <[email protected]>
4967
4968         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4969         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4970         (alpha_mdebug_frame_this_id): Likewise.
4971         (alpha_mdebug_frame_prev_register): Likewise.
4972         (alpha_mdebug_frame_base_address): Likewise.
4973         (alpha_mdebug_frame_locals_address): Likewise.
4974         (alpha_mdebug_frame_args_address): Likewise.
4975         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4976         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4977         (alpha_heuristic_frame_unwind_cache): Make static; add missing
4978         loop increment.
4979         (alpha_heuristic_frame_this_id): Make static.
4980         (alpha_heuristic_frame_prev_register): Likewise.
4981         (alpha_heuristic_frame_base_address): Likewise.
4982         * alpha-tdep.h: Update.
4983
4984 2003-05-30  Mark Kettenis  <[email protected]>
4985
4986         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4987         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4988         defenitions.
4989         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4990         * i386-tdep.c: Mark functions that are 64-bit safe as such.
4991         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4992         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4993         I386_ST0_REGNUM): New defines.
4994         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4995         codestream_get): Remove define.
4996         (codestream_next_addr, condestream_addr, condestream_buf,
4997         codestream_off, codestream_cnt): Remove variables.
4998         (codestream_fill, codestream_seek, codestream_read): Remove
4999         functions.
5000         (i386_follow_jump): Rewrite to avoid usage of removed codestream
5001         functionality.
5002         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5003         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5004         i386_frame_saved_pc, i386_saved_pc_after_call,
5005         i386_frame_num_args, i386_frame_init_saved_regs,
5006         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5007         i386_push_arguments): Remove functions.
5008         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5009         functionality.  Use i386_analyze_prologue instead of
5010         i386_get_frame_setup.
5011         (I386_NUM_SAVED_REGS): New define.
5012         (struct i386_frame_cache): New structure.
5013         (i386_alloc_frame_cache, i386_analyze_struct_return,
5014         i386_skip_probe, i386_analyze_frame_setup,
5015         i386_analyze_register_saves, i386_analyze_prologue,
5016         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5017         i386_frame_prev_register, i386_sigtramp_frame_cache,
5018         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5019         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5020         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5021         New functions.
5022         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5023         New variables.
5024         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5025         I386_EAX_REGNUM and I386_EDX_REGNUM.
5026         (i386_extract_return_value, i386_store_return_value): Use
5027         I386_ST0_REGNUM where appropriate.
5028         (i386_extract_struct_value_address): Rewrite to use extract_address.
5029         (i386_svr4_pc_in_sigtramp): Add comment.
5030         (i386_svr4_sigcontext_addr): Rewrite.
5031         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5032         TDEP->sc_sp_offset.
5033         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
5034         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5035         of new defines.  Set push_dummy_call, don't set
5036         deprecated_push_arguments, deprecated_push_return_address,
5037         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
5038         deprecated_frame_chain, deprecated_frame_saved_pc,
5039         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
5040         save_dummy_frame_tos, unwind_pc.  Call
5041         frame_unwind_append_predicate and frame_base_set_default.  Don't
5042         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
5043         Don't set frameless_function_invocation.  Don't set
5044         deprecated_register_bytes, deprecated_register_size,
5045         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5046         * i386-linux-tdep.c: Fix formatting in some comments.
5047         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5048         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5049         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5050         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5051         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5052         redundant parentheses.
5053         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5054         (i386_linux_sigcontext_addr): Use it.  Rewrite.
5055         (find_minsym_and_objfile): Change name of second argument.
5056         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
5057         changed.  Use frame_pc_unwind instead of
5058         DEPRECATED_SAVED_PC_AFTER_CALL.
5059         (i386_linux_init_abi): Don't set deprecated_register_bytes.
5060         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5061         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5062         unwinder.
5063         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5064         "dummy-frame.h".
5065         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5066         (_initialize_i386_cygwin_tdep): New prototype.
5067         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5068         deprecated_frame_chain_valid.
5069         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5070         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5071         Rely on the SVR4 defaults.
5072         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5073         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5074
5075 2003-05-30  Andrew Cagney  <[email protected]>
5076
5077         * infcall.c (call_function_by_hand): Always call
5078         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5079
5080 2003-05-30  Richard Henderson  <[email protected]>
5081
5082         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5083         increment.
5084
5085 2003-05-29  Jim Blandy  <[email protected]>
5086
5087         Use gdbarch methods for solib stuff on PowerPC Linux.
5088         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5089         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5090         show through.
5091         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5092         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5093         giving the same effect as the #definitions above.
5094
5095 2003-05-29  Adam Fedor  <[email protected]>
5096
5097         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5098         (find_implementation_from_class): Replace it with the standard
5099         case i.e. do nothing.
5100
5101 2003-05-29  Richard Henderson  <[email protected]>
5102
5103         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5104         (alpha_linux_sigtramp_offset): Use it.  Make static.
5105         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5106         update for new frame model.
5107         * alpha-mdebug-tdep.c: New file.
5108         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5109         (alpha_osf1_init_abi): Install it.
5110         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5111         (linked_proc_desc_table): Remove.
5112         (alpha_frame_past_sigtramp_frame): Remove.
5113         (alpha_dynamic_sigtramp_offset): Remove.
5114         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5115         (alpha_proc_desc_is_dyn_sigtramp): Remove.
5116         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5117         (push_sigtramp_desc): Remove.
5118         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5119         (alpha_cannot_store_register): Likewise.
5120         (alpha_sigcontext_addr): Remove.
5121         (alpha_find_saved_regs): Remove.
5122         (alpha_frame_init_saved_regs): Remove.
5123         (alpha_init_frame_pc_first): Remove.
5124         (read_next_frame_reg): Remove.
5125         (alpha_frame_saved_pc): Remove.
5126         (alpha_saved_pc_after_call): Remove.
5127         (temp_proc_desc, temp_saved_regs): Remove.
5128         (alpha_about_to_return): Remove.
5129         (cached_proc_desc): Remove.
5130         (alpha_frame_chain): Remove.
5131         (alpha_print_extra_frame_info): Remove.
5132         (alpha_init_extra_frame_info): Remove.
5133         (alpha_frame_locals_address): Remove.
5134         (alpha_frame_args_address): Remove.
5135         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5136         (alpha_push_dummy_frame): Remove.
5137         (alpha_pop_frame): Remove.
5138         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5139         (alpha_read_insn): New.
5140         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5141         for different insn encodings.
5142         (alpha_in_lenient_prologue): Remove.
5143         (struct alpha_sigtramp_unwind_cache): New.
5144         (alpha_sigtramp_frame_unwind_cache): New.
5145         (alpha_sigtramp_register_address): New.
5146         (alpha_sigtramp_frame_this_id): New.
5147         (alpha_sigtramp_frame_prev_register): New.
5148         (alpha_sigtramp_frame_unwind): New.
5149         (alpha_sigtramp_frame_p): New.
5150         (struct alpha_heuristic_unwind_cache): New.
5151         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5152         don't count nop insns that occur between functions.
5153         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5154         heuristic_proc_desc, but without the mdebug wrapping.
5155         (alpha_heuristic_frame_this_id): New.
5156         (alpha_heuristic_frame_prev_register): New.
5157         (alpha_heuristic_frame_unwind): New.
5158         (alpha_heuristic_frame_p): New.
5159         (alpha_heuristic_frame_base_address): New.
5160         (alpha_heuristic_frame_base): New.
5161         (alpha_unwind_dummy_id): New.
5162         (alpha_unwind_pc): New.
5163         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
5164         frame related deprecated initializations; install replacements.
5165         (alpha_dump_tdep): Remove.
5166         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5167         (alpha_read_insn, alpha_after_prologue,
5168         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5169         alpha_heuristic_frame_prev_register,
5170         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5171         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5172         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5173         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5174
5175 2003-05-29  Andrew Cagney  <[email protected]>
5176
5177         * gdb_assert.h (gdb_assert_fail): Provide different definitions
5178         dependant on the availability of ASSERT_FUNCTION.
5179         (ASSERT_FUNCTION): Do not define when there is no function name.
5180
5181 2003-05-29  Kevin Buettner  <[email protected]>
5182
5183         From Jimi X <[email protected]>:
5184         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5185
5186 2003-05-28  Jim Blandy  <[email protected]>
5187
5188         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5189         argument to ptrace to int; the system headers should give it the
5190         right type, and pointers don't fit in ints on powerpc64-*-*.
5191
5192 2003-05-28  H.J. Lu <[email protected]>
5193
5194         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5195         DW_TAG_catch_block.
5196
5197 2003-05-26  Elena Zannoni  <[email protected]>
5198
5199         * stabsread.c (dbx_lookup_type): Make static.
5200         (read_type): Ditto.
5201         (add_undefined_type): Ditto.
5202         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5203         not export.
5204
5205 2003-05-26  Elena Zannoni  <[email protected]>
5206
5207         * hpread.c (hpread_has_name): Make static.
5208         (hpread_psymtab_to_symtab): Ditto.
5209         (file_exists): Ditto.
5210         (hpread_call_pxdb): Ditto.
5211         (hpread_pxdb_needed): Ditto.
5212         (hpread_quick_traverse): Ditto.
5213         (hpread_get_header): Ditto.
5214         (hpread_get_lntt): Ditto.
5215         (hpread_get_slt): Ditto.
5216         (class_of): Ditto.
5217
5218 2003-05-25  Andreas Schwab  <[email protected]>
5219
5220         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5221         stack_align and deprecated_extra_stack_alignment_needed.
5222         (m68k_stack_align): Delete.
5223
5224         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5225         (m68k_register_virtual_size): Likewise.
5226         (altos_skip_prologue): Remove obsolete function.
5227         (isi_frame_num_args): Likewise.
5228         (news_frame_num_args): Likewise.
5229         (m68k_fix_call_dummy): Make static.
5230         (m68k_push_dummy_frame): Likewise.
5231         (m68k_pop_frame): Likewise.
5232         (m68k_skip_prologue): Likewise.
5233         (m68k_frame_init_saved_regs): Likewise.
5234         (m68k_saved_pc_after_call): Likewise.
5235         (m68k_get_longjmp_target): Make multi-arch.
5236         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5237         structure.  Register m68k_get_longjmp_target if enabled.
5238         * m68k-tdep.h (struct gdbarch_tdep): Define.
5239         * config/m68k/tm-m68k.h: Don't include "regcache.h".
5240
5241         * Makefile.in (config.status): Also depend on configure.tgt
5242         and configure.host.
5243         (m68klinux-tdep.o): Update dependencies.
5244         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5245         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5246         (M68K_LINUX_JB_PC): Define.
5247         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5248         and take additional parameter.
5249         (m68k_linux_sigtramp_saved_pc): Update.
5250         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
5251         m68k_linux_pc_in_sigtramp, in_plt_section,
5252         find_solib_trampoline_target.
5253         * config/m68k/tm-linux.h: Don't include any tm headers.
5254         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5255         (JB_ELEMENT_SIZE): Likewise.
5256         (JB_PC): Likewise.
5257         (GET_LONGJMP_TARGET): Likewise.
5258         (IN_SIGTRAMP): Likewise.
5259         (SVR4_SHARED_LIBS): Define this and include "solib.h".
5260
5261 2003-05-25  Mark Kettenis  <[email protected]>
5262
5263         * sparc-tdep.c (sparc32_do_push_arguments): New function.
5264         (sparc32_push_arguments): Re-implement by calling
5265         sparc32_do_push_arguments.
5266
5267 2003-05-25  Mark Kettenis  <[email protected]>
5268
5269         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5270         SPARC_O1_REGNUM): New defines.
5271         (sparc32_extract_return_value): Rewrite to operate on a regcache.
5272         (sparc32_store_return_value): New function.
5273         (sparc_extract_struct_value_address): Rewrite to operate on a
5274         regcache.
5275         (sparc_gdbarch_init): Don't set
5276         deprecated_extract_struct_value_address.  Set
5277         extract_struct_value_address instead. Don't set
5278         deprecated_extract_return_value and deprecated_store_return_value
5279         for 32-bit targets.  Set extract_return_value and
5280         store_return_value instead.
5281         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5282         DEPRECTAED_EXTRACT_RETURN_VALUE,
5283         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5284         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5285         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5286         (sparc_store_return_value): Remove prototype.
5287         (sparc32_store_return_value): New prototype.
5288         (sparc32_extract_return_value, sparc_extract_struct_value_address):
5289         Adjust prototypes.
5290
5291 2003-05-24  Mark Kettenis  <[email protected]>
5292
5293         * sparcnbsd-tdep.c: Include "gdb_string.h".
5294
5295 2003-05-23  Andrew Cagney  <[email protected]>
5296
5297         * p-valprint.c (pascal_val_print): Replace extract_address with
5298         the inline equivalent extract_unsigned_integer.
5299         * jv-valprint.c (java_value_print): Ditto.
5300         * ada-valprint.c (ada_val_print_1): Ditto.
5301         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5302
5303 2003-05-23  Theodore A. Roth  <[email protected]>
5304
5305         * blockframe.c (frameless_look_for_prologue): Remove unused
5306         after_prologue variable.
5307
5308 2003-05-23  Mark Kettenis  <[email protected]>
5309
5310         * blockframe.c (get_pc_function_start): Rewrite to avoid
5311         asignments in if-statements.
5312
5313 2003-05-23  Raoul Gough  <[email protected]>
5314
5315         Committed by Elena Zannoni  <[email protected]>.
5316         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5317         files, don't relocate absolute symbols (and do use mst_abs).
5318
5319 2003-05-23  Andrew Cagney  <[email protected]>
5320
5321         * objc-lang.c: Include "gdb_assert.h".
5322         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5323         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5324         (gdb_check, gdb_check_fatal): Delete functions.
5325         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5326         gdb_assert.
5327         (parse_selector, parse_method, find_methods, find_imps): Ditto.
5328         * Makefile.in (objc-lang.o): Update dependencies.
5329
5330 2003-05-22  Ian Lance Taylor  <[email protected]>
5331
5332         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5333         with fprintf_filtered, not fprintf_unfiltered.
5334
5335 2003-05-22  Andrew Cagney  <[email protected]>
5336
5337         * stack.c (frame_info): Inline extract_address, replacing it with
5338         extract_unsigned_integer.
5339         * findvar.c (unsigned_pointer_to_address): Ditto.
5340         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5341         * dwarf2expr.c (dwarf2_read_address): Ditto.
5342         * frame.c (frame_pc_unwind): Update comment.
5343         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5344
5345 2003-05-22  Jeff Johnston  <[email protected]>
5346
5347         * infptrace.c (detach): Call print_sys_errmsg rather than
5348         perror_with_name to issue warning message when errno is non-zero
5349         after calling ptrace detach.
5350
5351 2003-05-21  J. Brobecker  <[email protected]>
5352
5353         * config/pa/tm-hppa.h: Delete some unused macros. Move some
5354         macro definitions from here...
5355         * hppa-tdep.c: ...to there.
5356
5357 2003-05-20  Kevin Buettner  <[email protected]>
5358
5359         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5360         register_ptrace_addr().  Fix all callers.
5361
5362 2003-05-21  Andreas Schwab  <[email protected]>
5363
5364         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5365         dependencies.
5366         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5367         end.
5368         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5369         (_initialize_m68k_linux_tdep): New function.
5370         (m68k_linux_frame_saved_pc): Make static.
5371         (m68k_linux_extract_return_value): Likewise.
5372         (m68k_linux_store_return_value): Likewise.
5373         (m68k_linux_extract_struct_value_address): Likewise.
5374         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5375         Remove.
5376         (DEPRECATED_STORE_RETURN_VALUE): Remove.
5377         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5378         (DEPRECATED_FRAME_SAVED_PC): Remove.
5379
5380 2003-05-20  Kris Warkentin  <[email protected]>
5381
5382         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5383         regset numbering rather than our own.
5384
5385 2003-05-19  David Carlton  <[email protected]>
5386
5387         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5388
5389 2003-05-19  David Carlton  <[email protected]>
5390
5391         Partial fix for PR c++/827.
5392         * cp-support.h: Include symtab.h.
5393         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5394         * cp-namespace.c: Update contributors.
5395         (cp_lookup_symbol_nonlocal): New.
5396         (lookup_namespace_scope, cp_lookup_symbol_namespace)
5397         (lookup_symbol_file): Ditto.
5398         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5399         * block.h: Declare block_scope, block_using, block_global_block.
5400         * block.c (block_scope): New.
5401         (block_using, block_global_block): Ditto.
5402         * Makefile.in (cp_support_h): Depend on symtab_h.
5403         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5404
5405 2003-05-19  David Carlton  <[email protected]>
5406
5407         * language.h (struct language_defn): Add 'la_value_of_this'
5408         and 'la_lookup_symbol_nonlocal' members.
5409         * symtab.h: Declare basic_lookup_symbol_nonlocal,
5410         lookup_symbol_static, lookup_symbol_global,
5411         lookup_symbol_aux_block.
5412         * symtab.c (lookup_symbol_aux): Call language hooks to determine
5413         if we should search fields of this and how to do static/global
5414         lookup.
5415         (lookup_symbol_aux_block): Make extern.
5416         (basic_lookup_symbol_nonlocal): New.
5417         (lookup_symbol_static, lookup_symbol_global): Ditto.
5418         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5419         'la_lookup_symbol_nonlocal' members.
5420         * c-lang.c (c_language_defn, cplus_language_defn)
5421         (asm_language_defn, minimal_language_defn): Ditto.
5422         * jv-lang.c (java_language_defn): Ditto.
5423         * language.c (unknown_language_defn, auto_language_defn)
5424         (local_language_defn): Ditto.
5425         * m2-lang.c (m2_language_defn): Ditto.
5426         * objc-lang.c (objc_language_defn): Ditto.
5427         * scm-lang.c (scm_language_defn): Ditto.
5428         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5429         * p-lang.c (pascal_language_defn): Ditto for both.
5430         * Makefile.in (f-lang.o): Depend on value_h.
5431         (p-lang.o): Ditto.
5432
5433 2003-05-19  David Carlton  <[email protected]>
5434
5435         * block.h: Declare block_static_block.
5436         * block.c (block_static_block): New.
5437         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5438         lookup_symbol_aux_local, calling block_static_block instead.
5439         (lookup_symbol_aux_local): Delete 'static_block' argument.
5440
5441 2003-05-19  David Carlton  <[email protected]>
5442
5443         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5444
5445 2003-05-19  Michal Ludvig  <[email protected]>
5446
5447         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5448         register numbers mapping.
5449
5450 2003-05-18  Adam Fedor  <[email protected]>
5451
5452         * symtab.c (completion_list_objc_symbol): New function.
5453         (make_symbol_completion_list): Use it to add ObjC symbols
5454         when looking though the list.
5455         (language_search_unquoted_string): New function.
5456         (make_file_symbol_completion_list): Use it.
5457
5458 2003-05-18  Andreas Schwab  <[email protected]>
5459
5460         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5461         dependencies.
5462         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5463         as m68k_linux_extract_return_value.
5464         (DEPRECATED_STORE_RETURN_VALUE): Define as
5465         m68k_linux_store_return_value.
5466         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5467         m68k_linux_extract_struct_value_address.
5468         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5469         get_next_frame, get_frame_base, get_frame_pc.
5470         (m68k_linux_frame_saved_pc): Use get_frame_base.
5471         (m68k_linux_extract_return_value): New function.
5472         (m68k_linux_store_return_value): New function.
5473         (m68k_linux_extract_struct_value_address): New function.
5474         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5475
5476         * c-exp.y (typebase): Remove duplicate occurence of
5477         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
5478         of lookup_signed_typename.
5479
5480 2003-05-18  Mark Kettenis  <[email protected]>
5481
5482         * dwarf2loc.c (find_location_expression): Change type of second
5483         argument to `size_t *'.
5484         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5485         for size variable.
5486
5487 2003-05-18  David Carlton  <[email protected]>
5488
5489         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5490         'linkage_name'.  Add comment.
5491         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5492         'linkage_name'.
5493         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5494         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5495         (lookup_block_symbol): Ditto.
5496
5497 2003-05-16  Andrew Cagney  <[email protected]>
5498
5499         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5500         * gdbarch.h, gdbarch.c: Re-generate.
5501         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5502         * TODO (REGISTER_BYTES): Delete reference.
5503         * alpha-tdep.c (alpha_gdbarch_init): Update.
5504         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5505         * x86-64-tdep.c (x86_64_init_abi): Update.
5506         * vax-tdep.c (vax_gdbarch_init): Update.
5507         * v850-tdep.c (v850_gdbarch_init): Update.
5508         * sparc-tdep.c (sparc_gdbarch_init): Update.
5509         * sh-tdep.c (sh_gdbarch_init): Update.
5510         * s390-tdep.c (s390_gdbarch_init): Update.
5511         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5512         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5513         (ns32k_gdbarch_init_32382): Update.
5514         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5515         * mcore-tdep.c (mcore_gdbarch_init): Update.
5516         * m68k-tdep.c (m68k_gdbarch_init): Update.
5517         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5518         * ia64-tdep.c (ia64_gdbarch_init): Update.
5519         * i386-tdep.c (i386_gdbarch_init): Update.
5520         * i386-linux-tdep.c (i386_linux_init_abi): Update.
5521         * hppa-tdep.c (hppa_gdbarch_init): Update.
5522         * h8300-tdep.c (h8300_gdbarch_init): Update.
5523         * frv-tdep.c (frv_gdbarch_init): Update.
5524         * cris-tdep.c (cris_gdbarch_init): Update.
5525         * avr-tdep.c (avr_gdbarch_init): Update.
5526         * arm-tdep.c (arm_gdbarch_init): Update.
5527         * sparc-tdep.c (sparc_pop_frame): Update.
5528         * rs6000-tdep.c (rs6000_pop_frame): Update.
5529         * remote.c (init_remote_state): Update.
5530         (remote_prepare_to_store): Update.
5531         * remote-vx.c (vx_prepare_to_store): Update.
5532         * remote-sds.c (sds_fetch_registers): Update.
5533         (sds_prepare_to_store): Update.
5534         * remote-array.c: Update.
5535         * regcache.c (init_legacy_regcache_descr): Update.
5536         (init_regcache_descr): Update.
5537         * mips-tdep.c (mips_eabi_extract_return_value): Update.
5538         (mips_o64_extract_return_value): Update.
5539         * irix5-nat.c (fetch_core_registers): Update.
5540         * irix4-nat.c (fetch_core_registers): Update.
5541         * i386-tdep.h: Update.
5542         * hppa-tdep.c (pa_do_registers_info): Update.
5543         (pa_do_strcat_registers_info): Update.
5544         * cris-tdep.c (cris_register_bytes_ok): Update.
5545         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5546         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5547         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5548         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5549         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5550         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5551         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5552         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5553         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5554         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5555         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5556         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5557         (REGISTER_BYTES_OK): Update.
5558         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5559         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5560
5561 2003-05-16  Ian Lance Taylor  <[email protected]>
5562
5563         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5564         (vax_print_insn, print_insn_arg): Remove static functions.
5565         (vax_gdbarch_init): Call set_gdbarch_print_insn with
5566         print_insn_vax from opcodes library.
5567         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5568
5569 2003-05-15  Andrew Cagney  <[email protected]>
5570
5571         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5572         * target.h (memory_breakpoint_from_pc): Delete declaration.
5573         * mem-break.c (memory_breakpoint_from_pc): Delete function.
5574         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5575         * monitor.c (monitor_insert_breakpoint): Use
5576         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5577         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5578         * gdbarch.h, gdbarch.c: Re-generate.
5579         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5580         (sparc_gdbarch_init): Set breakpoint_from_pc to
5581         sparc_breakpoint_from_pc.
5582         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5583         (BREAKPOINT_FROM_PC): Define.
5584         (sparc_breakpoint_from_pc): Declare.
5585         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5586         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5587         (BREAKPOINT_FROM_PC): Define.
5588         (BREAKPOINT): Delete macro.
5589         * target.h: Update comment.
5590         * s390-tdep.c (s390_gdbarch_init): Update comments.
5591         * remote.c: Update comments.
5592         * remote-mips.c: Update comments.
5593         * proc-api.c (write_with_trace): Do not check for a breakpoint.
5594         * mem-break.c: Update comment.
5595         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5596         (ia64_memory_insert_breakpoint): Update.
5597         * config/sparc/tm-sparc.h: Update comment.
5598         * config/pa/tm-hppa64.h: Update comment.
5599         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5600         (rs6000_breakpoint_from_pc): Update.
5601         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5602         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5603         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5604         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5605         (mips_breakpoint_from_pc): Update.
5606         (mips_dump_tdep): Update.
5607
5608         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5609         * minsyms.c (lookup_minimal_symbol): Inline
5610         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
5611
5612         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5613         * p-valprint.c (pascal_object_print_value_fields): Ditto.
5614         * p-lang.c (pascal_printstr): Ditto.
5615         * objc-lang.c (objc_printstr): Ditto.
5616         * m2-lang.c (m2_printstr): Ditto.
5617         * jv-valprint.c (java_print_value_fields): Ditto.
5618         * f-lang.c (f_printstr): Ditto.
5619         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
5620         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5621         for repeat_count_threshold.
5622         * Makefile.in (cp-valprint.o): Update dependencies.
5623
5624 2003-05-15  Jeff Johnston  <[email protected]>
5625
5626         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5627         (examine_prologue): Support looking through leaf functions, knowing
5628         they start with mov r2,r12.  Support skipping over indirect stores
5629         of the input registers.  Upon hitting a non-nop branch instruction
5630         or predicated instruction, bail out by setting lim_pc to the current
5631         pc value in the loop.  At the end, if the lim_pc value is still
5632         beyond our calculated value and we have trust_limit set,
5633         use the lim_pc value.
5634
5635 2003-05-15  Andrew Cagney  <[email protected]>
5636
5637         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5638         generic_find_dummy_frame.
5639         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5640         (deprecated_generic_find_dummy_frame): Update.
5641         (deprecated_read_register_dummy): Update.
5642         * frame.c (deprecated_generic_get_saved_register): Update.
5643
5644 2003-05-15  Theodore A. Roth  <[email protected]>
5645
5646         * avr-tdep.c (avr_breakpoint_from_pc): New function.
5647         (avr_gdbarch_init): Set breakpoint_from_pc method.
5648
5649 2003-05-15  Andrew Cagney  <[email protected]>
5650
5651         * regcache.c (build_regcache): Set deprecated_register_valid
5652         directly.
5653         (deprecated_grub_regcache_for_register_valid): Delete function.
5654         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5655         declaration.
5656
5657 2003-05-15  David Carlton  <[email protected]>
5658
5659         Committed by Elena Zannoni <[email protected]>
5660         * symtab.c (lookup_symbol_aux): Delete calls to
5661         lookup_symbol_aux_minsyms.
5662         (lookup_symbol_aux_minsyms): Comment out function and
5663         prototype. Delete lookup by mangled name.
5664
5665 2003-05-14  Kevin Buettner  <[email protected]>
5666
5667         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5668         correctly indicate an empty stack and ``stack_allocated'' to the
5669         indicate the number of elements initially allocated.
5670         (dwarf_expr_grow_stack): Simplify method for computing new
5671         stack size.  Don't loop infinitely if ``stack_len'' is zero.
5672         (execute_stack_op): Move ``ctx->in_reg'' initialization
5673         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5674         be used in conjuction with DW_OP_piece.  Revise error message
5675         accordingly.
5676
5677 2003-05-14  Theodore A. Roth  <[email protected]>
5678
5679         * MAINTAINERS: Update my email address.
5680         * avr-tdep.c: Ditto.
5681
5682 2003-05-14  Elena Zannoni  <[email protected]>
5683
5684         * symtab.h (enum domain_enum): Rename from namespace_enum.
5685         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5686         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5687         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5688         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5689         TYPES_NAMESPACE, METHODS_NAMESPACE.
5690         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5691         (struct symbol, struct partial_symbol): Rename field
5692         'namespace_enum namespace' to 'domain_enum domain'.
5693         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5694         Delete old define kludge for namespace.
5695
5696         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5697         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5698         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5699         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5700         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5701         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5702         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5703         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5704         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5705         occurrences of the above.
5706
5707 2003-05-14  Ian Lance Taylor  <[email protected]>
5708
5709         * Makefile.in (install-only): Use $(SHELL) when running
5710         mkinstalldirs.
5711
5712 2003-05-13  Ian Lance Taylor  <[email protected]>
5713
5714         * MAINTAINERS (write after approval): Add myself.
5715
5716         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5717         second and third arguments.
5718         * ser-tcp.c (_initialize_ser_tcp): Likewise.
5719         * ser-unix.c (_initialize_ser_hardwire): Likewise.
5720
5721 2003-05-13  Andrew Cagney  <[email protected]>
5722
5723         * defs.h (store_address): Delete declaration.
5724         findvar.c (store_address): Delete function.
5725         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5726         store_unsigned_integer.
5727         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5728         * v850-tdep.c (v850_push_arguments): Ditto.
5729         * sparc-tdep.c (sparc_get_saved_register): Ditto.
5730         * sh-tdep.c (sh64_get_saved_register): Ditto.
5731         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5732         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5733         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5734         (mips_get_saved_register): Ditto.
5735         * ia64-tdep.c (ia64_get_saved_register): Ditto.
5736         (find_func_descr, ia64_push_arguments): Ditto.
5737         * i386-tdep.c (i386_push_arguments): Ditto.
5738         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5739         * frv-tdep.c (frv_push_arguments): Ditto.
5740         * frame.c (legacy_saved_regs_prev_register): Ditto.
5741         (deprecated_generic_get_saved_register): Ditto.
5742         * findvar.c (unsigned_address_to_pointer): Ditto.
5743         * dwarf2read.c (dwarf2_const_value): Ditto.
5744         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5745         * alpha-tdep.c (alpha_push_arguments): Ditto.
5746
5747 2003-05-12  J. Brobecker  <[email protected]>
5748
5749         * NEWS: Mention that the hppa-hpux port has been partially
5750         multiarched (32bit ABIT only, so far).
5751
5752 2003-05-11  Andrew Cagney  <[email protected]>
5753
5754         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5755         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5756         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5757         sim/testsuite/sim/arm/misaligned2.ms, and
5758         sim/testsuite/sim/arm/misaligned3.ms.
5759         * disasm.h (struct ui_file): Add opaque struct declaration.
5760         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5761         * frame.h (struct ui_file): Ditto.
5762
5763 2003-05-11  Mark Kettenis  <[email protected]>
5764
5765         * value.h: Pretty print.
5766
5767 2003-05-10  Mark Kettenis  <[email protected]>
5768
5769         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5770
5771 2003-05-08  Andrew Cagney  <[email protected]>
5772
5773         * regcache.h (max_register_size): Delete declaration.
5774         * regcache.c (max_register_size): Delete function.
5775         (struct regcache_descr): Delete field "max_register_size".
5776         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5777         registers fit in MAX_REGISTER_SIZE.
5778         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5779         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5780         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5781         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5782         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5783         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5784         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5785         * dve3900-rom.c, hppa-tdep.c: Ditto.
5786
5787 2003-05-08  David Carlton  <[email protected]>
5788
5789         * valops.c (push_word): Fix typo.
5790
5791 2003-05-08  Andrew Cagney  <[email protected]>
5792
5793         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5794         * gdbarch.h: Re-generate.
5795         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5796         (legacy_max_register_raw_size): Delete declaration.
5797         * regcache.c (legacy_max_register_raw_size): Delete function.
5798         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5799         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5800         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5801         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5802         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5803         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5804         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5805         * findvar.c, dwarf2cfi.c: Ditto.
5806
5807 2003-05-08  Andrew Cagney  <[email protected]>
5808
5809         * mips-tdep.c (read_signed_register): New function, moved to here
5810         from "regcache.c".
5811         (read_signed_register_pid): Ditto.
5812         * regcache.c (read_signed_register_pid): Delete function, moved to
5813         "mips-tdep.c".
5814         (read_signed_register): Ditto.
5815         * regcache.h (read_signed_register): Delete declaration.
5816         (read_signed_register_pid): Delete declaration.
5817
5818 2003-05-08  Andrew Cagney  <[email protected]>
5819
5820         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5821         * gdbarch.h: Re-generate.
5822         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5823         (legacy_max_register_virtual_size): Delete declaration.
5824         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5825         * d10v-tdep.c (d10v_print_registers_info): Ditto.
5826         * tracepoint.c (memrange_sortmerge): Ditto.
5827         * sparc-tdep.c (sparc_print_registers): Ditto.
5828         * regcache.c (legacy_max_register_virtual_size): Delete function.
5829
5830 2002-05-08  J. Brobecker  <[email protected]>
5831
5832         * fork-child.c (escape_bang_in_quoted_argument): New function.
5833         (fork_inferior): Escape '!' characters in quoted arguments
5834         only when needed.
5835
5836 2003-05-08  J. Brobecker  <[email protected]>
5837
5838         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5839         the language of the CU is not currently supported by GDB.
5840
5841 2003-05-08  J. Brobecker  <[email protected]>
5842
5843         * defs.h (language): Add language_minimal enum value.
5844         * c-lang.c (minimal_language_defn): New language definition.
5845         (_initialize_c_language): Add the new minimal language to the list
5846         of languages known to GDB.
5847
5848 2003-05-08  Kevin Buettner  <[email protected]>
5849
5850         * frame.c (get_frame_type): Don't attempt to lazily initialize
5851         frame's unwinder for legacy frames.
5852
5853 2003-05-07  Andrew Cagney  <[email protected]>
5854
5855         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5856         and "regcache" parameters.
5857         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5858
5859 2003-05-07  Jeff Johnston  <[email protected]>
5860
5861         * dwarf2read.c (dwarf_decode_lines): Only use output of
5862         check_cu_functions() when calling record_line().  Do not update
5863         the current address.
5864
5865 2003-05-07  Andrew Cagney  <[email protected]>
5866
5867         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5868         code.
5869
5870 2003-05-07  Jim Blandy  <[email protected]>
5871
5872         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5873         'maint info symtabs' and 'maint info psymtabs'.
5874         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5875         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5876         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5877         Declarations updated.
5878         * maint.c (maintenance_list_command): Delete.
5879         (_initialize_maint_cmds): Update calls to add_cmd.
5880         * gdbcmd.h (maintenancelistlist): Delete declaration.
5881         * cli/cli-cmds.c (maintenancelistlist): Delete.
5882         (init_cmd_lists): Don't initialize it.
5883         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5884
5885 2003-05-07  Andrew Cagney  <[email protected]>
5886
5887         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5888         "regcache".
5889         (d10v_print_registers_info): Update.
5890         (d10v_dmap_register, d10v_imap_register): Delete functions.
5891         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5892         and "imap_register".
5893         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5894         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5895         * arch-utils.c (generic_remote_translate_xfer_address): Add
5896         "regcache" and "gdbarch" parameters.
5897         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5898         parameter.  Change class to multi-arch.
5899         * gdbarch.h, gdbarch.c: Re-generate.
5900         * remote.c (remote_xfer_memory): Use
5901         gdbarch_remote_translate_xfer_address.
5902
5903 2003-05-07  Jeff Johnston  <[email protected]>
5904
5905         * infrun.c (prev_pc): Move declaration ahead of proceed().
5906         (proceed): Refresh prev_pc value before resuming.
5907         (stop_stepping): Remove code to refresh prev_pc.
5908
5909 2003-05-06  Kris Warkentin <[email protected]>
5910
5911         * nto-tdep.c: Removed stray comment.
5912
5913 2003-05-06  Kris Warkentin <[email protected]>
5914
5915         * i386-nto-tdep.c: Fix old K&R function definitions.
5916         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5917         Also change add_show_from_set() call to add_setshow_cmd().
5918         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5919
5920 2003-05-05  Andrew Cagney  <[email protected]>
5921
5922         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5923         (fprint_dummy_frames): New function.
5924         (maintenance_print_dummy_frames): New function.
5925         (_initialize_dummy_frame): Add command "maint print dummy-frames".
5926         * frame.c (fprint_frame_id): Make global.
5927         * frame.h (fprint_frame_id): Declare.
5928         * Makefile.in (dummy-frame.o): Update dependencies.
5929
5930 2003-05-05  Andrew Cagney  <[email protected]>
5931
5932         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5933         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5934         SIZEOF_CALL_DUMMY_WORDS.
5935         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5936         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5937         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5938         CALL_DUMMY_BREAKPOINT_OFFSET.
5939         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5940         CALL_DUMMY_START_OFFSET.
5941         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5942         * gdbarch.h, gdbarch.c: Re-generate.
5943         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5944         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5945         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5946         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5947         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5948         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5949         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5950         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5951         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5952         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5953         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5954         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5955         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5956         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5957         * config/sparc/tm-sparc.h: Update.
5958
5959 2003-05-05  Kris Warkentin <[email protected]>
5960
5961         * configure.tgt: Add i[3456]86-*-nto*.
5962         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
5963         * nto-tdep.c: New file. Neutrino target support routines.
5964         * nto-tdep.h: New file. Neutrino target header.
5965         * config/tm-qnxnto.h: New file.
5966         * config/i386/i386nto.mt: New file.
5967         * config/i386/tm-i386nto.h: New file.
5968
5969 2003-05-04  Andrew Cagney  <[email protected]>
5970
5971         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5972         (load_infrun_state): Ditto.
5973         (struct thread_info): Drop "prev_func_name" field.
5974         * thread.c (load_infrun_state): Update.
5975         (save_infrun_state): Update.
5976         * infrun.c (prev_func_name): Delete variable.
5977         (init_wait_for_inferior): Do not clear prev_func_name.
5978         (stop_stepping, keep_going, context_switch): Do not swap
5979         prev_func_name.
5980         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5981         instead of PC_IN_SIGTRAMP.
5982
5983 2003-05-04  Andrew Cagney  <[email protected]>
5984
5985         * sentinel-frame.c (sentinel_frame_prev_register): Replace
5986         REGISTER_BYTE with register_offset_hack.
5987         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5988         that REGISTER_BYTE is consistent with the regcache.
5989         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5990         * gdbarch.h, gdbarch.c: Regenerate.
5991
5992 2003-05-04  Mark Kettenis  <[email protected]>
5993
5994         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5995         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5996
5997         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5998
5999 2003-05-03  J. Brobecker  <[email protected]>
6000
6001         From Thierry Schneider <[email protected]>
6002         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6003         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6004         (mi-cmd-symbol.o): Add rule.
6005
6006 2003-05-03  Andrew Cagney  <[email protected]>
6007
6008         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6009         comments noteing that it replaces the old FIX_CALL_DUMMY code.
6010         * gdbarch.h, gdbarch.c: Re-generate.
6011         * d10v-tdep.c (d10v_push_dummy_code): New function.
6012         (d10v_gdbarch_init): Set push_dummy_code.
6013         * infcall.c (legacy_push_dummy_code): New function.
6014         (generic_push_dummy_code): New function.
6015         (push_dummy_code): New function.
6016         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
6017         instead of dummy_addr, to push_dummy_call.  Move call to
6018         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6019         switch.
6020         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6021
6022 2003-05-03  Andrew Cagney  <[email protected]>
6023
6024         * disasm.h (print_insn): Declare.
6025         * disasm.c (init_gdb_disassemble_info): New function.
6026         (gdb_disassembly): Call init_gdb_disassemble_info.
6027         (gdb_print_insn): New function.
6028         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6029         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
6030         * mcore-tdep.c: Include "disasm.h"
6031         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6032         * d10v-tdep.c: Include "disasm.h".
6033         (display_trace): Call gdb_print_insn, instead of print_insn.
6034         (print_insn): Delete function.
6035         * printcmd.c: Include "disasm.h".
6036         (print_insn): Delete function.
6037         (print_formatted): Call gdb_print_insn, instead of print_insn.
6038         * Makefile.in (printcmd.o): Update dependencies.
6039         (mcore-tdep.o, d10v-tdep.o): Ditto.
6040
6041 2003-05-02  Andrew Cagney  <[email protected]>
6042
6043         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6044         PC_REGNUM, re-indent.
6045         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6046         PC_REGNUM isn't set.
6047
6048         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6049         * gdbarch.h, gdbarch.c: Re-generate.
6050         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6051         register_virtual_size, pc_regnum, or register_bytes.
6052         (D10V_PC_REGNUM): Rename _PC_REGNUM.
6053         (d10v_register_type): Use D10V_PC_REGNUM.
6054         (d10v_print_registers_info, d10v_read_pc): Ditto.
6055         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6056         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6057
6058 2003-05-02  David Carlton  <[email protected]>
6059
6060         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6061         the name with mstrsave.
6062
6063 2003-05-02  Elena Zannoni  <[email protected]>
6064
6065         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6066         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6067         (host_charset_name, target_charset_name): New vars for use by
6068         set/show commands.
6069         (host_charset_enum, target_charset_enum): New enums for set/show
6070         commands.
6071         (set_charset_sfunc, set_host_charset_sfunc,
6072         set_target_charset_sfunc): New functions.
6073         (set_host_charset, set_target_charset): Make static.
6074         (list_charsets, set_host_charset_command,
6075         set_target_charset_command): Delete functions.
6076         (show_charset_command): Rewrite as....
6077         (show_charset): Hook this up with the set/show command mechanism.
6078         (_initialize_charset): Change names of charsets to match the
6079         set/show enums. Use host_charset_name and target_charset_name.
6080         Use set/show mechanism for charset, host-charset, target-charset
6081         commands. Do not make 'show host-charset' and 'show
6082         target-charset' be aliases of 'show charset'.
6083
6084         * charset.h (set_host_charset, set_target_charset): Don't export,
6085         they are not used outside the file.
6086
6087 2003-05-01  Andrew Cagney  <[email protected]>
6088
6089         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6090         (gdb_disassembly): Make "di" non static, always initialize and
6091         cleanup.  Always use dis_asm_read_memory.
6092         (gdb_dis_asm_read_memory): Delete function.
6093
6094 2003-05-01  Andrew Cagney  <[email protected]>
6095
6096         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6097         (d10v_gdbarch_init): Set frame_align instead of stack_align.
6098
6099 2003-04-30  Andrew Cagney  <[email protected]>
6100
6101         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6102         "tm_print_insn_info".
6103         (TARGET_PRINT_INSN_INFO): Delete macro.
6104         (dis_asm_read_memory): Delete function declaration.
6105         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6106         (tm_print_insn_info): Delete variable definition.
6107         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6108         * gdbarch.h, gdbarch.c: Re-generate.
6109         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6110         "deprecated_tm_print_insn_info".
6111         * mcore-tdep.c (mcore_dump_insn): Ditto.
6112         * mips-tdep.c (mips_gdbarch_init): Ditto.
6113         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6114         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6115         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6116         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6117         instead of TARGET_PRINT_INSN_INFO, add comment.
6118         * s390-tdep.c (s390_get_frame_info): Instead of
6119         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6120         (s390_check_function_end, s390_is_sigreturn): Ditto.
6121         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6122         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6123         * disasm.c: Include "gdbcore.h".
6124         (_initialize_disasm): New function, initialize
6125         "deprecated_tm_print_insn_info".
6126         (deprecated_tm_print_insn_info): New variable.
6127         (dis_asm_read_memory): Moved from "corefile.c", made static.
6128         (dis_asm_print_address, dis_asm_memory_error): Ditto.
6129         * Makefile.in (disasm.o): Update dependencies.
6130
6131 2003-04-30  Andrew Cagney  <[email protected]>
6132
6133         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6134
6135 2003-04-29  Adam Fedor  <[email protected]>
6136
6137         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6138         * infcall.c (find_function_addr): Make non-static.
6139         * infcall.h (find_function_addr): Declare.
6140         * Makefile.in (eval.o): Update dependencies.
6141
6142 2003-04-28  Adam Fedor  <[email protected]>
6143
6144         * symtab.c (symbol_find_demangled_name): Check for and demangle
6145         ObjC symbols.
6146         (symbol_init_demangled_name): Init for language_objc as well.
6147
6148 2003-04-28  Andrew Cagney  <[email protected]>
6149
6150         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6151         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6152         * gdbarch.h, gdbarch.c: Re-generate.
6153         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6154         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6155         * inferior.h (deprecated_read_fp): Rename read_fp.
6156         (generic_target_read_fp): Delete declaration.
6157         * regcache.c (generic_target_read_fp): Delete function.
6158         (deprecated_read_fp): Replace read_fp, use
6159         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6160         * d10v-tdep.c (d10v_read_fp): Delete function.
6161         (d10v_gdbarch_init): Do not set deprecated_read_fp.
6162
6163         * sparc-tdep.c (sparc_gdbarch_init): Do not set
6164         deprecated_target_read_fp to generic_target_read_fp.
6165         * sh-tdep.c (sh_gdbarch_init): Ditto.
6166         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6167         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6168         * frv-tdep.c (frv_gdbarch_init): Ditto.
6169
6170         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6171         deprecated_fp_regnum.
6172         * x86-64-tdep.c (x86_64_init_abi): Ditto.
6173         * vax-tdep.c (vax_gdbarch_init): Ditto.
6174         * v850-tdep.c (v850_gdbarch_init): Ditto.
6175         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6176         * sh-tdep.c (sh_gdbarch_init): Ditto.
6177         * s390-tdep.c (s390_gdbarch_init): Ditto.
6178         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6179         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6180         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6181         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6182         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6183         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6184         * i386-tdep.c (i386_gdbarch_init): Ditto.
6185         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6186         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6187         * frv-tdep.c (frv_gdbarch_init): Ditto.
6188         * cris-tdep.c (cris_gdbarch_init): Ditto.
6189         * avr-tdep.c (avr_gdbarch_init): Ditto.
6190         * arm-tdep.c (arm_gdbarch_init): Ditto.
6191         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6192
6193         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6194         * v850-tdep.c (v850_gdbarch_init): Ditto.
6195         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6196         * sh-tdep.c (sh_gdbarch_init): Ditto.
6197         * s390-tdep.c (s390_gdbarch_init): Ditto.
6198         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6199         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6200         * mips-tdep.c (mips_gdbarch_init): Ditto.
6201         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6202         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6203         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6204         * frv-tdep.c (frv_gdbarch_init): Ditto.
6205         * avr-tdep.c (avr_gdbarch_init): Ditto.
6206         * arm-tdep.c (arm_gdbarch_init): Ditto.
6207
6208         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6209         DEPRECATED_FP_REGNUM.
6210         (vax_push_dummy_frame, vax_pop_frame): Ditto.
6211         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6212         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6213         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6214         (sparc32_register_virtual_type): Ditto.
6215         * sh-tdep.c (sh64_frame_chain): Ditto.
6216         (sh64_get_saved_register, sh64_pop_frame): Ditto.
6217         (sh_nofp_frame_init_saved_regs): Ditto.
6218         (sh64_nofp_frame_init_saved_regs): Ditto.
6219         (sh_fp_frame_init_saved_regs): Ditto.
6220         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6221         * remote-e7000.c (fetch_regs_from_dump): Ditto.
6222         * procfs.c (procfs_fetch_registers): Ditto.
6223         (procfs_store_registers): Ditto.
6224         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6225         (store_inferior_registers, fetch_core_registers): Ditto.
6226         (fetch_kcore_registers, clear_regs): Ditto.
6227         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6228         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6229         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6230         * nlm/i386.c (do_status): Ditto.
6231         * mipsv4-nat.c (supply_gregset): Ditto.
6232         * mips-tdep.c: Ditto for comments.
6233         * mips-nat.c (fetch_inferior_registers): Ditto.
6234         (store_inferior_registers, fetch_core_registers): Ditto.
6235         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6236         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6237         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6238         (i386_do_pop_frame, i386_register_type): Ditto.
6239         * hppa-tdep.c (hppa_frame_chain): Ditto.
6240         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6241         (hppa_pop_frame, hppa_read_fp): Ditto.
6242         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6243         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6244         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6245         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6246         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6247         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6248         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6249         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6250         * blockframe.c: Ditto for comments.
6251         * arch-utils.h: Ditto for comments.
6252         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6253         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6254         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6255         * alpha-tdep.h: Ditto for comments.
6256         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6257         (alpha_cannot_store_register): Ditto.
6258         (alpha_push_dummy_frame): Ditto.
6259         * alpha-nat.c (supply_gregset): Ditto.
6260
6261         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6262         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6263         * config/sparc/tm-sparc.h: Update comment.
6264
6265         * hppa-tdep.c (hppa_init_extra_frame_info): Use
6266         deprecated_read_fp instead of TARGET_READ_FP.
6267         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6268         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6269         * sparc-tdep.c (sparc_init_extra_frame_info): Use
6270         deprecated_read_fp instead of read_fp.
6271         * s390-tdep.c (s390_push_arguments): Ditto.
6272         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6273         * frame.h: Ditto in comments.
6274         * frame.c (legacy_get_prev_frame): Ditto.
6275         * dummy-frame.c (dummy_frame_this_id): Ditto.
6276         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6277
6278 2003-04-28  Andrew Cagney  <[email protected]>
6279
6280         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6281         * gdbarch.h, gdbarch.c: Re-generate.
6282         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6283         * vax-tdep.c (_initialize_vax_tdep): Update.
6284         * v850-tdep.c (_initialize_v850_tdep): Update.
6285         * sparc-tdep.c (_initialize_sparc_tdep): Update.
6286         * s390-tdep.c (_initialize_s390_tdep): Update.
6287         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6288         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6289         * mips-tdep.c (_initialize_mips_tdep): Update.
6290         * mcore-tdep.c (_initialize_mcore_tdep): Update.
6291         * m68k-tdep.c (_initialize_m68k_tdep): Update.
6292         * ia64-tdep.c (_initialize_ia64_tdep): Update.
6293         * hppa-tdep.c (_initialize_hppa_tdep): Update.
6294         * h8300-tdep.c (_initialize_h8300_tdep): Update.
6295         * frv-tdep.c (_initialize_frv_tdep): Update.
6296         * cris-tdep.c (cris_delayed_get_disassembler): Update.
6297         (_initialize_cris_tdep): Update.
6298         * arch-utils.c (legacy_print_insn): Update.
6299         * alpha-tdep.c (_initialize_alpha_tdep): Update.
6300
6301 2003-04-26  Adam Fedor  <[email protected]>
6302
6303         * linespec.c (decode_objc): New function to decode ObjC calls
6304         (decode_line_1): Check for ObjC calls (using decode_objc)
6305         * Makefile (linespec.o): Update dependencies.
6306
6307 2003-04-26  Daniel Jacobowitz  <[email protected]>
6308
6309         * breakpoint.h (struct breakpoint_ops): New.
6310         (struct breakpoint): Add ops member.
6311
6312         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6313         (mention): Use new breakpoint ops member.
6314         (set_raw_breakpoint): Initialize ops field to NULL.
6315         (print_exception_catchpoint, print_one_exception_catchpoint)
6316         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6317         (gnu_v3_exception_catchpoint_ops): New.
6318         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6319
6320 2003-04-25  Adam Fedor  <[email protected]>
6321
6322         * Makefile.in (COMMON_OBS): Add objc-lang.o
6323
6324 2003-04-25  Andrew Cagney  <[email protected]>
6325
6326         * d10v-tdep.c (print_insn): Delete function.
6327         (display_trace): Use TARGET_PRINT_INSN.
6328         (_initialize_d10v_tdep): Do not set tm_print_insn.
6329         (d10v_gdbarch_init): Set print_insn.
6330
6331 2003-04-25  Andrew Cagney  <[email protected]>
6332
6333         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6334         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6335         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6336         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6337         (nr_dmap_regs, a0_regnum): ... new functions.
6338         (d10v_print_registers_info): Use a0_regnum, use register_size.
6339         (d10v_register_byte): Delete function.
6340         (d10v_register_raw_size): Delete function.
6341         (d10v_register_type): Use a0_regnum.
6342         (d10v_print_registers_info): Use a0_regnum.
6343         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6344         (d10v_gdbarch_init): Do not set register_byte or
6345         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6346         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6347         extract_address.
6348         (trace_command): Use XCALLOC.
6349         (print_insn): Delete reference to tm_print_insn.
6350         (saved_regs_unwinder): Use store_unsigned_integer instead of
6351         store_address.
6352         * frame.h (FRAME_OBSTACK_CALLOC): Define
6353
6354 2003-04-25  David Carlton  <[email protected]>
6355
6356         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6357
6358 2003-04-24  Adam Fedor  <[email protected]>
6359
6360         * objc-lang.c: Include "valprint.h"
6361         * Makefile.in (objc-lang.o): Update dependencies.
6362
6363 2003-04-24  Adam Fedor  <[email protected]>
6364
6365         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6366         architecture dependant compilation and mark as unimplemented
6367         (until they get put in the gdbarch vector).
6368
6369 2003-04-23  David Carlton  <[email protected]>
6370
6371         * cp-support.c (cp_find_first_component): Accept 'operator' in
6372         more locations.
6373
6374 2003-04-23  Andrew Cagney  <[email protected]>
6375
6376         * infcall.c (call_function_by_hand): Eliminate redundant
6377         indentation.  Move "saved_async" and "old_cleanups" to where they
6378         are needed.
6379
6380 2003-04-23  Andrew Cagney  <[email protected]>
6381
6382         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6383         and "buffer".  Move the "name" code to where it is needed.
6384
6385 2003-04-23  Andrew Cagney  <[email protected]>
6386
6387         * infcall.c (call_function_by_hand): Move variables "start_sp",
6388         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6389         code to ON_STACK switch branch.
6390
6391 2003-04-23  Andrew Cagney  <[email protected]>
6392
6393         * infcall.c (call_function_by_hand): Make declaration of "i",
6394         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
6395         lint.
6396
6397 2003-04-23  Andrew Cagney  <[email protected]>
6398
6399         * infcall.c (call_function_by_hand): Delete variable
6400         "n_method_args".  Localize "param_type"'s declaration to the loop
6401         that it is used.  Reinstate code assigning to said variable -
6402         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
6403         Rationalize code using "param_type".
6404
6405 2003-04-22  Andrew Cagney  <[email protected]>
6406
6407         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6408         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
6409         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
6410         to DEPRECATED_PUSH_RETURN_ADDRESS.
6411
6412 2003-04-22  Kevin Buettner  <[email protected]>
6413
6414         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6415         on the DWARF2 register number prior to fetching a register.
6416
6417 2003-04-22  J. Brobecker  <[email protected]>
6418
6419         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6420         Update all the tests using SOFT_FLOAT considering the fact that
6421         this macro was always set to 0.
6422         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6423         considering the fact that this macro was always set to 0.
6424         * hppa-tdep.h (hppa_store_return_value): Likewise.
6425         (hppa_extract_return_value): Likewise.
6426
6427 2003-04-22  J. Brobecker  <[email protected]>
6428
6429         * config/pa/tm-hppa.h: Remove obsolete code, was used by
6430         the hppa-pro target only.
6431
6432 2003-04-21  J. Brobecker  <[email protected]>
6433
6434         Ongoing multi-arch conversion effort for HP/UX:
6435         * config/pa/tm-hppa.h: Move all macro that are no longer
6436         defined now that GDB_MULTI_ARCH is now set to 1 from here...
6437         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6438
6439 2003-04-21  J. Brobecker  <[email protected]>
6440
6441         * config/pa/tm-hppa.h: Obsolete a section that was only used
6442         for hppa-pro.
6443
6444 2003-04-21  J. Brobecker  <[email protected]>
6445
6446         Ongoing multi-arch conversion for HP/UX.
6447         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6448         if already defined (allows hppa64 to stay non-multiarched for now).
6449         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6450
6451 2003-04-21  Andrew Cagney  <[email protected]>
6452
6453         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6454
6455 2003-04-21  Andrew Cagney  <[email protected]>
6456
6457         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6458         "i386_num_mmx_regs".
6459
6460 2003-04-21  Andrew Cagney  <[email protected]>
6461
6462         * infcall.c: New file.
6463         * infcall.h: New file.
6464         * valarith.c: Include "infcall.h".
6465         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6466         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6467         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6468         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6469         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6470         (SFILES): Add "infcall.c"
6471         (COMMON_OBS): Add "infcall.o".
6472         (infcall.o): Specify dependencies.
6473         * value.h (call_function_by_hand): Delete declaration.
6474         * inferior.h (run_stack_dummy): Delete declaration.
6475         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6476         (run_stack_dummy): Move to "infcall.c", merged into
6477         call_function_by_hand.
6478         * valops.c (call_function_by_hand): Moved to "infcall.c".
6479         (find_function_addr, value_arg_coerce): Ditto.
6480         (unwindonsignal_p, coerce_float_to_double): Ditto.
6481         (_initialize_valops): Move "set/show coerce-float-to-double", and
6482         "set/show unwindonsignal" commands to "infcall.c".
6483         * v850-tdep.c, target.h: Update comments.
6484         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6485         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6486         (sh64_init_extra_frame_info): Update comments.
6487         * mn10300-tdep.c: Update comments.
6488         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6489         * config/sparc/tm-sparc.h: Update comments.
6490         * breakpoint.h: Update comments.
6491         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6492         * arm-tdep.c: Update comment.
6493
6494 2003-04-19  Mark Kettenis  <[email protected]>
6495
6496         * i386-tdep.c (i386_num_register_names): New variable.
6497         (i386_num_mmx_regs): Renamed from mmx_num_regs.
6498         (MM0_REGNUM): Remove redundant parentheses in define.
6499         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6500         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6501         i386_mxcsr_regnum_p): Remove redundant parentheses.
6502         (i386_register_name): Use i386_num_register_names.
6503
6504         * i386-tdep.c (i386_extract_return_value,
6505         i386_store_return_value): Correct check for availability of
6506         floating-point registers.
6507
6508         * i386-tdep.c (i386_frame_num_args): Remove function.
6509         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6510
6511         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6512         mmx_regnum_to_fp_regnum.  Adjust all callers.
6513
6514         * i386-tdep.c (i386_get_longjmp_target): Use
6515         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6516         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
6517         extract_address.
6518
6519 2003-04-19  Mark Kettenis  <[email protected]>
6520
6521         * core-regset.c: Update comments to reflect reality.  Re-order
6522         includes.
6523         (fetch_core_registers): Use switch instead of if.  Remove
6524         redundant prototype.
6525
6526 2003-04-18  Jim Blandy  <[email protected]>
6527
6528         * s390-tdep.c (s390_frame_align): New function.
6529         (s390_gdbarch_init): Register it with the gdbarch object.
6530
6531 2003-04-17  Richard Henderson  <[email protected]>
6532
6533         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6534
6535 2003-04-17  Michael Snyder  <[email protected]>
6536             Karen Bennet  <[email protected]>
6537
6538         Committed by Elena Zannoni  <[email protected]>
6539         * gdb_gcore.sh: New script to create a core dump of a process.
6540
6541 2003-04-17  Elena Zannoni  <[email protected]>
6542
6543         * values.c (value_being_returned): Don't fetch the return
6544         value if the return type is void.
6545
6546 2003-04-17  Jeff Johnston  <[email protected]>
6547
6548         * thread-db.c: Reindented.
6549
6550 2003-04-17  Jeff Johnston  <[email protected]>
6551
6552         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6553         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6554         as types.
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580 2003-04-16  Kevin Buettner  <[email protected]>
6581
6582         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6583         the size of ``long double'' to 16, instead of 8.
6584
6585 2003-04-16  Mark Kettenis  <[email protected]>
6586
6587         * i386-linux-nat.c: Add some whitespace to make things more
6588         readable.
6589         (fetch_register, store_register, fetch_inferior_registers,
6590         store_inferior_registers): Get rid of assignment in if-statement.
6591         (store_register): Fix typo in error message.
6592
6593 2003-04-16  Andrew Cagney  <[email protected]>
6594
6595         * utils.c (xmmalloc): Always allocate something, matches
6596         libiberty/xmalloc's semantics.
6597         (xmrealloc, xmcalloc): Ditto.
6598
6599 2003-04-16  Andrew Cagney  <[email protected]>
6600
6601         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6602         update comments.
6603         (get_frame_type): Initialize unwind and type when needed.
6604         (get_frame_id, frame_register_unwind): Ditto.
6605
6606 2003-04-16  Andrew Cagney  <[email protected]>
6607
6608         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6609         obsolete.
6610         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6611         * sparcl-stub.c: Obsolete file.
6612         * config/sparc/tm-sparclet.h: Obsolete file.
6613         * sparclet-stub.c: Obsolete file.
6614         * sparclet-rom.c: Obsolete file.
6615         * sparcl-tdep.c: Obsolete file.
6616         * config/sparc/tm-sparclite.h: Obsolete file.
6617         * config/sparc/sparclite.mt: Obsolete file.
6618         * config/sparc/sparclet.mt: Obsolete file.
6619         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6620         sparc86x-*-* obsolete.
6621
6622 2003-04-15  David Carlton  <[email protected]>
6623
6624         * Makefile.in (SFILES): Add cp-namespace.c.
6625         (COMMON_OBS): Add cp-namespace.o.
6626         (block.o): Depend on gdb_obstack_h and cp_support_h.
6627         (buildsym.o): Depend on cp_support_h.
6628         (cp-namespace.o): New.
6629         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6630         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6631         (dwarf2read.o): Depend on cp_support_h.
6632         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6633         * dwarf2read.c (process_die): Set processing_has_namespace_info,
6634         processing_current_namespace.
6635         (read_namespace): Update processing_current_namespace; check for
6636         anonymous namespaces.
6637         (dwarf2_name): New function.
6638         (dwarf2_extension): Ditto.
6639         * cp-support.h: Update copyright, contributors.
6640         Add inclusion guards.
6641         Add opaque declaration for structs obstack, block, symbol.
6642         (struct using_direct): New struct.
6643         Add declarations for cp_find_first_component,
6644         cp_entire_prefix_len, processing_has_namespace_info,
6645         processing_current_namespace, cp_is_anonymous,
6646         cp_add_using_directive, cp_initialize_namespace,
6647         cp_finalize_namespace, cp_set_block_scope,
6648         cp_scan_for_anonymous_namespaces.
6649         * cp-namespace.c: New file.
6650         * cp-support.c: Update copyright.
6651         Include ctype.h, gdb_assert.h, gdbcmd.h.
6652         New variable maint_cplus_cmd_list.
6653         (cp_find_first_component): New function.
6654         (cp_entire_prefix_len, maint_cplus_command)
6655         (first_component_command, _initialize_cp_support): Ditto.
6656         * buildsym.c: Include cp-support.h.
6657         New variable using_list.
6658         (add_symbol_to_list): Check for anonymous namespaces.
6659         (finish_block): Set block's scope.
6660         (start_symtab): Initialize C++ namespace support.
6661         (end_symtab): Finalize C++ namespace support.
6662         * block.h: Add opaque declarations for structs
6663         block_namespace_info, using_direct, and obstack.
6664         Add declarations for block_set_scope and block_set_using.
6665         (struct block): Add 'language_specific' member.
6666         (BLOCK_NAMESPACE): New macro.
6667         * block.c: Include gdb_obstack.h and cp-support.h.
6668         (struct block_namespace_info): New struct.
6669         (block_set_scope): New function.
6670         (block_set_using, block_initialize_namespace): Ditto.
6671
6672 2003-04-14  Kevin Buettner  <[email protected]>
6673
6674         * solib-svr4.c (svr4_have_link_map_offsets): New function.
6675         (locate_base): Return early if there aren't any link map offsets.
6676         (svr4_solib_create_inferior_hook): Warn if shared library support
6677         is unavailable.
6678
6679 2003-04-14  David Carlton  <[email protected]>
6680
6681         * symtab.c (symbol_set_names): Add prefix when storing Java names
6682         in hash table.  Fix for PR java/1039.
6683
6684 2003-04-14  David Carlton  <[email protected]>
6685
6686         * symtab.c (symbol_set_names): Rename 'name' arg to
6687         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6688         * symtab.h: Change 'name' argument in declaration of
6689         symbol_set_names to 'linkage_name'.
6690         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6691
6692 2003-04-14  Andrew Cagney  <[email protected]>
6693
6694         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6695         return the fully sign-extended register value.
6696         (get_frame_pointer): Ditto.
6697         (mips_pop_frame): Initialize "proc_desc" after checking for a
6698         dummy frame.
6699
6700 2003-04-14  Andrew Cagney  <[email protected]>
6701
6702         * mips-tdep.c (mips_push_dummy_frame): Delete function.
6703         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6704         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6705         (mips_push_register): Delete function.
6706         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6707         PUSH_FP_REGNUM.
6708
6709 2003-04-14  Jim Blandy  <[email protected]>
6710
6711         * symmisc.c: #include "gdb_regex.h".
6712         (maintenance_list_symtabs, maintenance_list_psymtabs): New
6713         functions.
6714         * maint.c (maintenance_list_command): New function.
6715         (_initialize_maint_cmds): Register the above as commands.
6716         * symtab.h (maintenance_list_symtabs,
6717         maintenance_list_psymtabs): New declarations.
6718         * cli/cli-cmds.c (maintenancelistlist): New variable.
6719         (init_cmd_lists): Initialize it.
6720         * cli/cli-cmds.h (maintenancelistlist): New declaration.
6721         * gdbcmd.h (maintenancelistlist): New declaration.
6722         * Makefile.in (symmisc.o): Update dependencies.
6723
6724 2003-04-14  Elena Zannoni  <[email protected]>
6725
6726         * s390-nat.c: Include asm/types.h for addr_t.
6727
6728 2003-04-14  Corinna Vinschen  <[email protected]>
6729
6730         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6731         actually incoming type.
6732
6733 2003-04-13  Andrew Cagney  <[email protected]>
6734
6735         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6736         get_next_frame and get_frame_saved_regs.
6737
6738 2003-04-13  Andrew Cagney  <[email protected]>
6739
6740         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6741         of gdbarch_num_regs.
6742
6743 2003-04-13  Andrew Cagney  <[email protected]>
6744
6745         * frame.h: Mention what replaced what in "struct frame_info".
6746         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6747         deprecated_update_frame_base_hack and
6748         deprecated_update_frame_pc_hack.
6749         * hppa-tdep.c: Ditto.
6750
6751 2003-04-13  Daniel Jacobowitz  <[email protected]>
6752
6753         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6754         to read_reg and update its comment.  Remove regnum member.
6755         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6756         Don't call read_reg when setting in_reg.  Call read_reg to get
6757         the frame base if it's in a register.  Return the register number
6758         on the stack instead of in the context.  Remove extra arguments
6759         to read_reg.
6760         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6761         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
6762         the register number on the expression stack.
6763         (needs_frame_read_reg): Remove extra arguments.
6764
6765 2003-04-13  Daniel Jacobowitz  <[email protected]>
6766
6767         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6768         made non-static.
6769         (execute_stack_op): All callers updated.
6770         * dwarf2expr.h: Add prototype for dwarf2_read_address.
6771         * dwarf2loc.c (find_location_expression): New function.
6772         (dwarf_expr_frame_base): Call it.
6773         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6774         (dwarf2_tracepoint_var_ref): New function, broken out from
6775         locexpr_tracepoint_var_ref.
6776         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6777         Make static.
6778         (loclist_read_variable, loclist_read_needs_frame): New functions.
6779         (loclist_describe_location, loclist_tracepoint_var_ref): New
6780         functions.
6781         (dwarf2_loclist_funcs): New struct location_funcs.
6782         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6783         (struct dwarf2_locexpr_baton): Add comments.
6784         (dwarf2_loclist_funcs): New extern.
6785         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6786         base_address and base_known.
6787         (dwarf_loc_buffer): New variable.
6788         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6789         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6790         (dwarf2_has_info): Initialize dwarf_loc_offset.
6791         (dwarf2_build_psymtabs): Read in .debug_loc.
6792         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6793         DWARF_LOC_SIZE.
6794         (psymtab_to_symtab_1): Likewise.  Move base address calculation
6795         here, from...
6796         (dwarf2_get_pc_bounds): ... here.  Use the base address from
6797         cu_header.
6798         (dwarf2_symbol_mark_computed): Handle location lists.
6799
6800 2003-04-13  Daniel Jacobowitz  <[email protected]>
6801
6802         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6803         if the linkage name demangled successfully.
6804
6805 2003-04-13  Mark Kettenis  <[email protected]>
6806
6807         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6808         disassmbly_flavour): Removed.
6809
6810         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6811
6812 2003-04-13  Mark Kettenis  <[email protected]>
6813
6814         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6815
6816 2003-04-12  Andrew Cagney  <[email protected]>
6817
6818         * frame.h (struct frame_info): Move definition from here ...
6819         * frame.c (struct frame_info): ... to here.
6820
6821 2003-04-12  Andrew Cagney  <[email protected]>
6822
6823         * gdbthread.h (save_infrun_state): Delete parameter
6824         "prev_func_start".
6825         (struct thread_info): Delete field "prev_func_start".
6826         (load_infrun_state): Ditto.
6827         * thread.c (load_infrun_state, save_infrun_state): Update.
6828         * infrun.c (prev_func_start): Delete variable.
6829         (context_switch, init_wait_for_inferior): Update.
6830         (stop_stepping, keep_going): Update.
6831
6832 2003-04-12  Andrew Cagney  <[email protected]>
6833
6834         * gdbarch.sh: Add missing opaque declarations.
6835         * gdbarch.h: Regnerate.
6836         * symtab.h: Add missing opaque declarations.
6837         * value.h, target.h, symfile.h, stabsread.h: Ditto.
6838         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6839         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6840         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6841         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6842         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6843         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6844         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6845         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6846         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6847         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6848         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6849         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6850
6851 2003-04-11  Andrew Cagney  <[email protected]>
6852
6853         * frame.c (get_frame_id): Return this frame's "id".
6854         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6855         function start.
6856         (legacy_saved_regs_this_id): Replace function body with
6857         internal-error.
6858         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6859         FRAME_OBSTACK_ZALLOC.
6860         (create_new_frame): Mark the frame ID as valid.
6861
6862 2003-04-11  Alexandre Oliva  <[email protected]>
6863
6864         * Makefile.in (libbfd_h): Added missing setting.
6865         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6866         according to the selected ABI.
6867
6868 2003-04-11  Jeff Johnston  <[email protected]>
6869
6870         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6871
6872 2003-04-11  Andrew Cagney  <[email protected]>
6873
6874         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6875         SAVED_PC_AFTER_CALL.
6876         * gdbarch.h, gdbarch.c: Regenerate.
6877         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6878         * x86-64-tdep.c (x86_64_init_abi): Update.
6879         * vax-tdep.c (vax_gdbarch_init): Update.
6880         * v850-tdep.c (v850_gdbarch_init): Update.
6881         * sparc-tdep.c (sparc_gdbarch_init): Update.
6882         * sh-tdep.c (sh_gdbarch_init): Update.
6883         * s390-tdep.c (s390_gdbarch_init): Update.
6884         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6885         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6886         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6887         * mips-tdep.c (mips_gdbarch_init): Update.
6888         * mcore-tdep.c (mcore_gdbarch_init): Update.
6889         * m68k-tdep.c (m68k_gdbarch_init): Update.
6890         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6891         * ia64-tdep.c (ia64_gdbarch_init): Update.
6892         (ia64_saved_pc_after_call): Update declaration.
6893         * i386ly-tdep.c (i386lynx_init_abi): Update.
6894         * i386-tdep.c (i386_gdbarch_init): Update.
6895         * hppa-tdep.c (hppa_gdbarch_init): Update.
6896         * h8300-tdep.c (h8300_gdbarch_init): Update.
6897         * frv-tdep.c (frv_gdbarch_init): Update.
6898         * cris-tdep.c (cris_gdbarch_init): Update.
6899         * avr-tdep.c (avr_gdbarch_init): Update.
6900         * arm-tdep.c (arm_gdbarch_init): Update.
6901         * alpha-tdep.c (alpha_gdbarch_init): Update.
6902         * ns32knbsd-nat.c (frame_num_args): Update.
6903         * ns32k-tdep.c (umax_frame_num_args): Update.
6904         * mips-tdep.c (mips_init_frame_pc_first): Update.
6905         * infrun.c (step_over_function): Update.
6906         * i386-linux-tdep.c (skip_hurd_resolver): Update.
6907         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6908         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6909         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6910         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6911         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6912         * arm-linux-tdep.c (skip_hurd_resolver): Update.
6913         * arch-utils.c (init_frame_pc_default): Update.
6914         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6915         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6916         declaration.
6917
6918 2003-04-11  Andrew Cagney  <[email protected]>
6919
6920         * i387-tdep.c: Update copyright.
6921         (i387_to_double): Delete function.
6922         (double_to_i387): Delete function.
6923
6924 2003-04-10  Andrew Cagney  <[email protected]>
6925
6926         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6927         frame's function's address.  Simplify.
6928         (d10v_frame_unwind_cache): Check that the frame's function is
6929         non-zero.
6930
6931 2003-04-10  Jim Blandy  <[email protected]>
6932
6933         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6934         call to set_gdbarch_deprecated_push_arguments.
6935
6936 2003-04-10  Andrew Cagney  <[email protected]>
6937
6938         * frame.c (fprint_frame_id): New function.
6939         (fprint_frame_type, fprint_frame): New function.
6940         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6941         (create_sentinel_frame, get_frame_id): Ditto.
6942         (frame_id_p, frame_id_eq): Ditto.
6943         (frame_id_inner, create_new_frame): Ditto.
6944         (legacy_get_prev_frame, get_prev_frame): Ditto.
6945         (deprecated_update_frame_pc_hack): Ditto.
6946         (frame_register_unwind): Ditto.
6947         (deprecated_update_frame_base_hack): Ditto.
6948
6949 2003-04-10  Corinna Vinschen  <[email protected]>
6950
6951         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6952         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6953         frame_chain function.
6954         * Makefile.in: Add dependencies due to above change.
6955
6956 2003-04-10  Corinna Vinschen  <[email protected]>
6957
6958         * blockframe.c (legacy_frame_chain_valid): Move call to
6959         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6960         inside_entry_file.
6961
6962 2003-04-09  Andrew Cagney  <[email protected]>
6963
6964         * frame.h (struct frame_id): Replace "pc" and "base" with
6965         "stack_addr" and "code_addr".  Update comments.
6966         (frame_id_build): Update parameter names and comment.
6967         (struct frame_info): Replace "id_p" and "id" with "this_id".
6968         * dummy-frame.c (dummy_frame_this_id): Update.
6969         * breakpoint.c (print_one_breakpoint): Update.
6970         * frame.c (get_frame_id): Update.
6971         (get_frame_base, frame_id_build): Update.
6972         (create_sentinel_frame, legacy_get_prev_frame): Update.
6973         (deprecated_update_frame_base_hack): Update.
6974         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6975         (frame_id_inner): Ditto.
6976
6977 2003-04-09  Andrew Cagney  <[email protected]>
6978
6979         * defs.h (gdb_print_host_address): Make "addr" parameter a
6980         pointer constant.
6981         * utils.c (gdb_print_host_address): Update.
6982
6983 2003-04-09  Kevin Buettner  <[email protected]>
6984
6985         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6986         register number for R0 is 0.
6987
6988 2003-04-09  J. Brobecker  <[email protected]>
6989
6990         * frame.h (struct gdbarch): Add opaque structure definition
6991         to avoid a compilation warning on LynxOS 4.0.
6992
6993 2003-04-09  Andrew Cagney  <[email protected]>
6994
6995         * frame.h (struct frame_info): Delete field "pc".  Replace
6996         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6997         structure.
6998         * frame.c (frame_pc_unwind): Update.
6999         (create_sentinel_frame): Do not set "pc".
7000         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
7001         (get_frame_pc): Call frame_pc_unwind.
7002         (deprecated_update_frame_pc_hack): Update.
7003         (create_new_frame): Use "pc" not "->pc".
7004
7005 2003-04-09  Andrew Cagney  <[email protected]>
7006
7007         * frame.c (get_frame_id): Eliminate code updating "frame".
7008         (legacy_get_prev_frame): Ditto.
7009         (get_frame_base): Return id.base directly.
7010         (deprecated_update_frame_base_hack): Update "id.base".
7011         * frame.h (struct frame_info): Delete field "frame".
7012
7013 2003-04-09  Andrew Cagney  <[email protected]>
7014
7015         * NEWS: Mention that the "Sequent family" is obsolete.
7016         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7017         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7018         * configure.host: Obsolete i[3456]86-sequent-bsd*,
7019         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7020         * config/i386/tm-ptx4.h: Obsolete file.
7021         * config/i386/tm-ptx.h: Obsolete file.
7022         * symm-tdep.c: Obsolete file.
7023         * config/i386/symmetry.mt: Obsolete file.
7024         * config/i386/tm-symmetry.h: Obsolete file.
7025         * symm-nat.c: Obsolete file.
7026         * config/i386/nm-symmetry.h: Obsolete file.
7027         * config/i386/xm-symmetry.h: Obsolete file.
7028         * config/i386/symmetry.mh: Obsolete file.
7029         * config/i386/nm-ptx4.h: Obsolete file.
7030         * config/i386/ptx4.mh: Obsolete file.
7031         * config/i386/ptx.mt: Obsolete file.
7032         * config/i386/ptx.mh: Obsolete file.
7033         * config/i386/xm-ptx4.h: Obsolete file.
7034         * config/i386/xm-ptx.h: Obsolete file.
7035
7036 2003-04-09  Andrew Cagney  <[email protected]>
7037
7038         Obsolete mips*-*-mach3*.
7039         * NEWS: Mention that mips*-*-mach3* is obsolete.
7040         * m3-nat.c: Obsolete file.
7041         * config/nm-m3.h: Obsolete file.
7042         * config/mips/tm-mipsm3.h: Obsolete file.
7043         * config/mips/mipsm3.mt: Obsolete file.
7044         * config/mips/mipsm3.mh: Obsolete file.
7045         * config/mips/xm-mipsm3.h: Obsolete file.
7046         * mipsm3-nat.c: Obsolete file.
7047         * configure.host: Obsolete mips-dec-mach3*.
7048         * configure.tgt: Obsolete mips*-*-mach3*.
7049
7050 2003-04-09  Andrew Cagney  <[email protected]>
7051
7052         * doublest.h: Update copyright.
7053         (deprecated_store_floating, deprecated_extract_floating): Rename
7054         store_floating and extract_floating.  Update comments.
7055         * doublest.c: Update copyright.
7056         (extract_floating_by_length): Replace extract_floating.
7057         (store_floating_by_length): Replace store_floating.
7058         (deprecated_extract_floating): New function.
7059         (deprecated_store_floating): New function.
7060         (extract_typed_floating): Call extract_floating_by_length.
7061         (store_typed_floating): Call store_floating_by_length.
7062         * x86-64-tdep.c (x86_64_store_return_value): Update.
7063         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7064         (sh64_extract_return_value): Update.
7065         (sh_sh4_register_convert_to_virtual): Update.
7066         (sh_sh64_register_convert_to_virtual): Update.
7067         (sh_sh4_register_convert_to_raw): Update.
7068         (sh_sh64_register_convert_to_raw): Update.
7069         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7070         (rs6000_register_convert_to_raw): Update.
7071         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7072         (ia64_register_convert_to_raw): Update.
7073         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7074         (REGISTER_CONVERT_TO_VIRTUAL): Update.
7075         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7076         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7077         (alpha_register_convert_to_raw): Update.
7078
7079 2003-04-08  Andrew Cagney  <[email protected]>
7080
7081         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7082         * gdbarch.h, gdbarch.c: Re-generate.
7083         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7084         (d10v_gdbarch_init): Do not set saved_pc_after_call.
7085         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7086         conditionally, use frame_pc_unwind as an alternative.  Add
7087         comments.
7088         * arch-utils.c (init_frame_pc_default): Only call
7089         SAVED_PC_AFTER_CALL when available.
7090
7091 2003-04-08  Elena Zannoni  <[email protected]>
7092
7093         * infrun.c (stop_soon): Rename from stop_soon_quietly.
7094         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7095         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7096         (start_remote): Ditto.
7097         (handle_inferior_event): Ditto.
7098         (save_inferior_status): Ditto.
7099         (restore_inferior_status): Ditto.
7100         * infcmd.c (attach_command): Ditto.
7101         * fork-child.c (startup_inferior): Ditto.
7102         * inferior.h (stop_soon): Rename from stop_soon_quietly.
7103         * alpha-tdep.c (heuristic_proc_start): Ditto.
7104         * mips-tdep.c (heuristic_proc_start): Ditto.
7105         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7106         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7107         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7108         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7109         * remote-vx.c (vx_create_inferior): Ditto.
7110
7111 2003-04-08  Elena Zannoni  <[email protected]>
7112
7113         * infrun.c (stop_soon_quietly): Make it an enum, to better
7114         override the default behavior of handle_inferior_event.
7115         (clear_proceed_status): Update uses of stop_soon_quietly to
7116         reflect that it is now an enum.
7117         (start_remote): Ditto.
7118         (handle_inferior_event): Change logic a bit if stop_soon_quietly
7119         is set to handle the new GNU/Linux kernel behavior for
7120         attach/sigstop.  Update uses of stop_soon_quietly.
7121         * inferior.h (enum stop_kind): New enum.
7122         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7123         Reset normal handle_inferior_event behavior, afterwards.
7124         * fork-child.c (startup_inferior): Update.
7125         * alpha-tdep.c (heuristic_proc_start): Update.
7126         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7127         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7128         * solib-osf.c (osf_solib_create_inferior_hook): Update.
7129         * solib-irix.c (irix_solib_create_inferior_hook): Update.
7130         * remote-vx.c (vx_create_inferior): Update.
7131         * mips-tdep.c (heuristic_proc_start): Update.
7132
7133 2003-04-07  Elena Zannoni  <[email protected]>
7134
7135         * disasm.c (dump_insns):  Move variables inside loop, or they will
7136         be freed more than once, causing wild memory corruptions.
7137         (gdb_disassembly): Look for the substring "-thread",
7138         instead of "-threads" in the target name, to make sure to find
7139         the 'multi-thread' target.  Also, make sure we do the right thing
7140         with the "core" target.
7141
7142 2003-04-07  Kevin Buettner  <[email protected]>
7143
7144         * mips-tdep.c (mips_print_fp_register): New function, created from
7145         do_fp_register_row().  Registers are now (also) printed as hex.
7146         Only one register is printed per row.
7147         (mips_print_register, do_fp_register_row): Print floating point
7148         registers with mips_print_fp_register().
7149
7150 2003-04-06  Andrew Cagney  <[email protected]>
7151
7152         * valprint.h (inspect_it): Add extern declaration.
7153         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7154         (selectors_info, classes_info): Ditto.
7155         (find_objc_msgcall): Fix indentation.
7156         (objc_printstr): Delete extern declarations.
7157
7158         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7159
7160 2003-04-06  Andrew Cagney  <[email protected]>
7161
7162         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7163         Update comment.
7164         * frame.c (legacy_saved_regs_this_id): Update.
7165         (legacy_get_prev_frame): Update.
7166         * xstormy16-tdep.c: Update comment.
7167         * sparc-tdep.c (sparc_frame_chain): Update comment.
7168         * blockframe.c (legacy_frame_chain_valid): Update.
7169
7170 2003-04-06  Andrew Cagney  <[email protected]>
7171
7172         * valprint.c (val_print_type_code_int): Delete #ifdef
7173         PRINT_TYPELESS_INTEGER code.
7174
7175         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7176         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7177         multi-arch definition.
7178         * gdbarch.h: Re-generate.
7179
7180 2003-04-05  Andrew Cagney  <[email protected]>
7181
7182         Eliminate FRAME_FIND_SAVED_REGS.
7183         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7184         Change FSR parameter to a pointer.
7185         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7186         Assume FSR parameter is a pointer.
7187         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7188         Make fsr a pointer.
7189         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7190         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
7191         saved_regs a pointer.
7192         (hppa_frame_saved_pc): Ditto.
7193         (find_dummy_frame_regs): Make frame_saved_regs a pointer
7194         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
7195         pointer.
7196         (restore_pc_queue): Make fsr a pointer.
7197         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7198         (hppa_frame_chain): Make saved_regs a pointer, call
7199         hppa_frame_init_saved_regs.
7200         * sparc-tdep.c: Include "gdb_assert.h".
7201         (sparc_frame_find_saved_regs): Replace internal_error with
7202         gdb_assert.
7203         * remote-vxsparc.c (vx_read_register): Delete reference to
7204         FRAME_FIND_SAVED_REGS.
7205         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7206         * gdbarch.h: Regenerate.
7207         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7208         (deprecated_get_frame_saved_regs): Delete declaration.
7209         (struct frame_saved_regs): Delete definition.
7210         * frame.c (deprecated_get_frame_saved_regs): Delete function.
7211         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7212         (hppa_frame_find_saved_regs): Delete declaration.
7213         (FRAME_FIND_SAVED_REGS): Delete macro.
7214         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7215         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7216         FRAME_FIND_SAVED_REGS in comment.
7217
7218 2003-04-05  Andrew Cagney  <[email protected]>
7219
7220         * frame.c (frame_func_unwind, get_frame_func): New functions.
7221         * frame.h (get_frame_func, frame_func_unwind): Declare.
7222         (struct frame_info): Add field "prev_func" for caching the
7223         previous frame's function address.
7224         * arm-tdep.c (arm_frameless_function_invocation): Combine
7225         get_pc_function_start and get_frame_pc into get_frame_func.
7226         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7227         (sh64_nofp_frame_init_saved_regs): Ditto.
7228         * s390-tdep.c (s390_function_start): Ditto.
7229         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7230         (rs6000_frameless_function_invocation): Ditto.
7231         (rs6000_frame_saved_pc): Ditto.
7232         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7233         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7234         * i386-tdep.c (i386_frameless_signal_p): Ditto.
7235         (i386_frame_init_saved_regs): Ditto.
7236         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7237         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7238         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7239         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7240         * blockframe.c (frameless_look_for_prologue): Ditto.
7241
7242 2003-04-05  Andrew Cagney  <[email protected]>
7243
7244         * frame.c (legacy_get_prev_frame): Link prev to next at the
7245         function start.  Update comments.
7246
7247 2003-04-05  Andrew Cagney  <[email protected]>
7248
7249         * frame.c (get_frame_id): Update comment.
7250         (legacy_get_prev_frame): Update comment.
7251         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7252         * gdbarch.h: Regenerate.
7253         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7254         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7255
7256 2003-04-05  Andrew Cagney  <[email protected]>
7257
7258         * stack.c (print_frame_info): Use get_frame_pc.
7259
7260 2003-04-04  Andrew Cagney  <[email protected]>
7261
7262         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
7263         the frame's type from the unwinder.
7264         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7265         (create_new_frame, legacy_get_prev_frame): When the unwinder's
7266         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7267         (get_frame_base_address): Use get_frame_type.
7268         (get_frame_locals_address, get_frame_args_address): Ditto.
7269         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7270         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7271         (struct frame_info): Add comment explaining why the frame contains
7272         a "type" field.
7273         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7274         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7275         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7276         NORMAL_FRAME.
7277         * frame-unwind.h: Include "frame.h".
7278         (struct frame_unwind): Add "type" field.
7279         * Makefile.in (frame_unwind_h): Add $(frame_h).
7280
7281 2003-04-04  Andrew Cagney  <[email protected]>
7282
7283         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7284         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7285         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7286         get_frame_base.
7287         (d10v_unwind_dummy_id): Use frame_id_build.
7288         * frame.c (find_frame_sal): Use get_frame_pc.
7289         (create_new_frame): Use deprecated_update_frame_pc_hack and
7290         deprecated_update_frame_base_hack.
7291         (create_sentinel_frame): Add comment about ->pc going away.
7292         (get_prev_frame): Add comment about ->pc going away.
7293         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7294         frame_id_build, deprecated_update_frame_pc_hack and
7295         deprecated_update_frame_base_hack.
7296         (select_frame): Use get_frame_pc.
7297         (legacy_saved_regs_this_id): Use frame_id_build.
7298
7299 2003-04-04  Elena Zannoni  <[email protected]>
7300
7301         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7302         signed integer case.
7303         (classify_argument): Handle enumerations and references.
7304
7305 2003-04-04  Andrew Cagney  <[email protected]>
7306
7307         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7308         ID to NULL.
7309
7310 2003-04-01  Adam Fedor  <[email protected]>
7311
7312         * gdb/objc-lang.c (selectors_info): Replace calls to
7313         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7314         SYMBOL_NATURAL_NAME.
7315         (classes_info, find_methods): Likewise.
7316
7317 2003-04-03  Kevin Buettner  <[email protected]>
7318
7319         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7320         ``mach'' to the value determined by bfd_default_set_arch_mach().
7321
7322 2003-04-02  Bob Rossi  <[email protected]>
7323
7324         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7325         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7326         (mi-cmd-file.o): Update dependencies.
7327
7328 2003-04-01  Kevin Buettner  <[email protected]>
7329
7330         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7331         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7332
7333 2003-04-01  Adam Fedor  <[email protected]>
7334
7335         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7336         * language.h (struct language_defn): Add la_demangle.
7337         (language_demangle): Declare.
7338         * language.c (language_demangle): New function.
7339         (unk_lang_demangle): Likewise.
7340         (unknown_language_defn, auto_language_defn, local_language_defn):
7341         Add ukn_lang_demangle.
7342         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7343         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7344         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7345         (cplus_language_defn): Add cplus_demangle for la_demangle element.
7346         * jv-lang.c (java_demangle): New function
7347         (java_language_defn): Use it for la_demangle element.
7348         * objc-lang.c (objc_demangle): Add options argument
7349         (objc_language_defn): Use objc_demangle for la_demangle element.
7350         * maint.c (maintenance_demangle): Replace switch with
7351         call to language_demangle.
7352         * utils.c (fprintf_symbol_filtered): Likewise.
7353
7354 2003-04-01  Andrew Cagney  <[email protected]>
7355
7356         * printcmd.c (print_frame_nameless_args): Delete #ifdef
7357         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7358         PRINT_TYPELESS_INTEGER.
7359         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7360         PUSH_RETURN_ADDRESS.
7361
7362 2003-04-01  Andrew Cagney  <[email protected]>
7363
7364         * Makefile.in (d10v-tdep.o): Update dependencies.
7365         * d10v-tdep.c: Include "frame-base.h".
7366         (d10v_frame_unwind): Make constant.
7367         (d10v_frame_base_address): New function.
7368         (d10v_frame_base): New variable.
7369         (d10v_gdbarch_init): Set frame_base default.
7370         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
7371         comment for base.
7372         (d10v_frame_unwind_cache): Set and use "prev_sp".
7373         (d10v_frame_this_id): Use the previous frame's inner most stack
7374         address and this frame's func address for the frame ID.  Use
7375         frame_id_build.  Don't analyze beyond the current instruction.
7376
7377 2003-04-01  Andrew Cagney  <[email protected]>
7378
7379         * frame.h (get_frame_locals_address, get_frame_args_address):
7380         Refer to the base address, instead of the address of the first
7381         local or parameter.
7382
7383 2003-04-01  Andrew Cagney  <[email protected]>
7384
7385         Add frame debug info addresses:
7386         * frame-base.c: New file.
7387         * frame-base.h: New file.
7388         * frame.h (struct frame_base): Add opaque declaration.
7389         (get_frame_base): Update comment.
7390         (get_frame_base_address): Declare.
7391         (get_frame_locals_address): Declare.
7392         (get_frame_args_address): Declare.
7393         (struct frame_info): Add "base" and "base_cache".  Update
7394         comments on the unwinder.
7395         * frame.c: Include "frame-base.h".
7396         (get_frame_locals_address): New function.
7397         (get_frame_base_address): New function.
7398         (get_frame_args_address): New function.
7399         * findvar.c (read_var_value): Use get_frame_locals_address and
7400         get_frame_args_address.
7401         * stack.c (frame_info): Use get_frame_locals_address and
7402         get_frame_args_address.
7403         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7404         moved to "frame-base.c".
7405         * printcmd.c (print_frame_nameless_args): Ditto.
7406         * symtab.h (address_class): Update comments.
7407         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7408         get_frame_base_address.
7409         * dwarf2expr.c (execute_stack_op): Ditto.
7410         * Makefile.in (frame_base_h): Define.
7411         (frame.o): Update dependencies.
7412         (frame-base.o): Add dependencies.
7413         (SFILES): Add frame-base.c.
7414         (COMMON_OBS): Add frame-base.o.
7415
7416 2003-04-01  Andrew Cagney  <[email protected]>
7417
7418         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7419         CALL_DUMMY_LENGTH): Ditto.
7420         * gdbarch.c: Re-generate.
7421         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7422         (CALL_DUMMY_LENGTH): Delete macro.
7423         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7424         * arm-tdep.c (arm_gdbarch_init): Ditto.
7425         * avr-tdep.c (avr_gdbarch_init): Ditto.
7426         * cris-tdep.c (cris_gdbarch_init): Ditto.
7427         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7428         * frv-tdep.c (frv_gdbarch_init): Ditto.
7429         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7430         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7431         * i386-tdep.c (i386_gdbarch_init): Ditto.
7432         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7433         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7434         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7435         * mips-tdep.c (mips_gdbarch_init): Ditto.
7436         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7437         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7438         * s390-tdep.c (s390_gdbarch_init): Ditto.
7439         * sh-tdep.c (sh_gdbarch_init): Ditto.
7440         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7441         * v850-tdep.c (v850_gdbarch_init): Ditto.
7442         * vax-tdep.c (vax_gdbarch_init): Ditto.
7443         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7444
7445 2003-04-01  Corinna Vinschen  <[email protected]>
7446
7447         * frame.c (get_prev_frame): Disable call to inside_entry_file().
7448
7449 2003-04-01  Andrew Cagney  <[email protected]>
7450
7451         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7452         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7453         * gdbarch.h, gdbarch.c: Re-generate.
7454         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7455         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7456         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7457         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7458         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7459         * infcmd.c (run_stack_dummy): Simplify assuming
7460         CALL_DUMMY_BREAKPOINT_OFFSET_P.
7461         * infrun.c (handle_inferior_event): Ditto.
7462         * alpha-tdep.c (alpha_gdbarch_init): Do not set
7463         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7464         * arm-tdep.c (arm_gdbarch_init): Ditto.
7465         * avr-tdep.c (avr_gdbarch_init): Ditto.
7466         * cris-tdep.c (cris_gdbarch_init): Ditto.
7467         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7468         * frv-tdep.c (frv_gdbarch_init): Ditto.
7469         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7470         * i386-tdep.c (i386_gdbarch_init): Ditto.
7471         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7472         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7473         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7474         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7475         * mips-tdep.c (mips_gdbarch_init): Ditto.
7476         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7477         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7478         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7479         * s390-tdep.c (s390_gdbarch_init): Ditto.
7480         * sh-tdep.c (sh_gdbarch_init): Ditto.
7481         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7482         * v850-tdep.c (v850_gdbarch_init): Ditto.
7483         * vax-tdep.c (vax_gdbarch_init): Ditto.
7484         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7485
7486 2003-04-01  Daniel Jacobowitz  <[email protected]>
7487
7488         * symfile.c (symfile_relocate_debug_section): Update call to
7489         bfd_simple_get_relocated_section_contents.
7490
7491 2003-03-31  Andrew Cagney  <[email protected]>
7492
7493         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7494         * gdbarch.h, gdbarch.c: Regenerate.
7495         * inferior.h (FIX_CALL_DUMMY): Delete macro.
7496         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7497         available.
7498         * frame.h (generic_fix_call_dummy): Delete declaration.
7499         * dummy-frame.h: Update comment.
7500         * dummy-frame.c (generic_fix_call_dummy): Delete function.
7501         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7502         fix_call_dummy.
7503         * sh-tdep.c (sh_gdbarch_init): Ditto.
7504         * s390-tdep.c (s390_gdbarch_init): Ditto.
7505         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7506         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7507         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7508         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7509         * i386-tdep.c (i386_gdbarch_init): Ditto.
7510         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7511         * frv-tdep.c (frv_gdbarch_init): Ditto.
7512         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7513         * cris-tdep.c (cris_gdbarch_init): Ditto.
7514         * avr-tdep.c (avr_gdbarch_init): Ditto.
7515         * arm-tdep.c (arm_gdbarch_init): Ditto.
7516
7517 2003-03-31  J. Brobecker  <[email protected]>
7518
7519         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7520         (INIT_FRAME_AP): Likewise.
7521         (EXTRA_FRAME_INFO): Likewise.
7522
7523 2003-03-31  Andrew Cagney  <[email protected]>
7524
7525         * gdbarch.sh: Include "symfile.h".
7526         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7527         * gdbarch.h, gdbarch.c: Re-generate.
7528         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7529         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7530         call_dummy_address, the default is at entry_point_address.
7531         * v850-tdep.c (v850_gdbarch_init): Ditto.
7532         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7533         * sh-tdep.c (sh_gdbarch_init): Ditto.
7534         * s390-tdep.c (s390_gdbarch_init): Ditto.
7535         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7536         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7537         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7538         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7539         * i386-tdep.c (i386_gdbarch_init): Ditto.
7540         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7541         * frv-tdep.c (frv_gdbarch_init): Ditto.
7542         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7543         * cris-tdep.c (cris_gdbarch_init): Ditto.
7544         * arm-tdep.c (arm_gdbarch_init): Ditto.
7545
7546 2003-03-31  Andrew Cagney  <[email protected]>
7547
7548         * gdbarch.sh (CALL_DUMMY_P): Delete.
7549         * gdbarch.h, gdbarch.c: Re-generate.
7550         * inferior.h (CALL_DUMMY_P): Delete macro.
7551         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7552         * vax-tdep.c (vax_gdbarch_init): Update.
7553         * v850-tdep.c (v850_gdbarch_init): Update.
7554         * sparc-tdep.c (sparc_gdbarch_init): Update.
7555         * sh-tdep.c (sh_gdbarch_init): Update.
7556         * s390-tdep.c (s390_gdbarch_init): Update.
7557         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7558         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7559         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7560         * mips-tdep.c (mips_gdbarch_init): Update.
7561         * mcore-tdep.c (mcore_gdbarch_init): Update.
7562         * m68k-tdep.c (m68k_gdbarch_init): Update.
7563         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7564         * ia64-tdep.c (ia64_gdbarch_init): Update.
7565         * i386-tdep.c (i386_gdbarch_init): Update.
7566         * h8300-tdep.c (h8300_gdbarch_init): Update.
7567         * frv-tdep.c (frv_gdbarch_init): Update.
7568         * d10v-tdep.c (d10v_gdbarch_init): Update.
7569         * cris-tdep.c (cris_gdbarch_init): Update.
7570         * breakpoint.c (deprecated_frame_in_dummy): Update.
7571         * avr-tdep.c (avr_gdbarch_init): Update.
7572         * alpha-tdep.c (alpha_gdbarch_init): Update.
7573         * arm-tdep.c (arm_gdbarch_init): Update.
7574         * dummy-frame.c (dummy_frame_this_id): Update comments.
7575         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7576         * frame.c (legacy_get_prev_frame): Ditto.
7577         * valops.c (call_function_by_hand): Delete function.
7578         (hand_function_call): Rename to call_function_by_hand
7579
7580 2003-03-30  Andrew Cagney  <[email protected]>
7581
7582         2002-11-10 Klee Dienes <[email protected]>
7583         * value.h (struct value): Update comment.
7584
7585 2003-03-30  Andrew Cagney  <[email protected]>
7586
7587         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7588         D10V_FP_REGNUM.
7589         (d10v_gdbarch_init): Do not set fp_regnum.
7590
7591         * frame.c (get_frame_base): Force ID initialization.
7592         (get_prev_frame): Move computation of the frame ID from here ...
7593         (get_frame_id): ... to here.
7594         (legacy_get_prev_frame): Mark the frame ID as valid.
7595         * frame.h (struct frame_info): Add field "id_p".
7596
7597 2003-03-30  Mark Kettenis  <[email protected]>
7598
7599         * i386-tdep.c (i386_store_struct_return): Removed.
7600         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7601
7602 2003-03-30  Andrew Cagney  <[email protected]>
7603
7604         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7605         * gdbarch.h, gdbarch.c: Regenerate.
7606         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7607         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7608         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7609         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7610         * i386-tdep.c (i386_gdbarch_init): Ditto.
7611         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7612         * cris-tdep.c (cris_gdbarch_init): Ditto.
7613         * vax-tdep.c (vax_gdbarch_init): Ditto.
7614         * s390-tdep.c (s390_gdbarch_init): Ditto.
7615         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7616         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7617         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7618         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7619         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7620         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7621         * sparc-tdep.c (sparc_gdbarch_init): Update.
7622         * sh-tdep.c (sh_gdbarch_init): Update.
7623         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7624         * mips-tdep.c (mips_gdbarch_init): Update.
7625         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7626         * ia64-tdep.c (ia64_gdbarch_init): Update.
7627         * frv-tdep.c (frv_gdbarch_init): Update.
7628         * avr-tdep.c (avr_gdbarch_init): Update.
7629         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7630         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
7631         instead of when push_dummy_call is not available.
7632
7633 2003-03-30  Andrew Cagney  <[email protected]>
7634
7635         * infttrace.c: Include "gdbthread.h".
7636         (parent_attach_all): Fix function signature.
7637         (call_ptrace): Update call.
7638         * Makefile.in (infttrace.o): Update dependencies.
7639
7640 2003-03-30  Andrew Cagney  <[email protected]>
7641
7642         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7643         PUSH_RETURN_ADDRESS.
7644         * gdbarch.h, gdbarch.c: Regenerate.
7645         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7646         * x86-64-tdep.c (x86_64_init_abi): Update.
7647         * v850-tdep.c (v850_gdbarch_init): Update.
7648         * sparc-tdep.c (sparc_gdbarch_init): Update.
7649         * sh-tdep.c (sh_gdbarch_init): Update.
7650         * s390-tdep.c (s390_gdbarch_init): Update.
7651         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7652         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7653         * mips-tdep.c (mips_gdbarch_init): Update.
7654         * mcore-tdep.c (mcore_gdbarch_init): Update.
7655         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7656         * ia64-tdep.c (ia64_gdbarch_init): Update.
7657         * i386-tdep.c (i386_gdbarch_init): Update.
7658         * h8300-tdep.c (h8300_gdbarch_init): Update.
7659         * frv-tdep.c (frv_gdbarch_init): Update.
7660         * cris-tdep.c (cris_gdbarch_init): Update.
7661         * avr-tdep.c (avr_gdbarch_init): Update.
7662         * arm-tdep.c (arm_gdbarch_init): Update.
7663         * valops.c (hand_function_call): Update.
7664
7665 2003-03-29  Andrew Cagney  <[email protected]>
7666
7667         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7668         sizeof_call_dummy_words.
7669         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7670         define.
7671         * gdbarch.h: Regenerate.
7672
7673 2003-03-29  Andrew Cagney  <[email protected]>
7674
7675         * infttrace.h: New file.
7676         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7677         (hpread_get_textlow): Detect an uninitialized dn_bufp.
7678         (hpread_read_doc_function_type): Detect an initialized type1.
7679         (hpread_quick_traverse): Initialize mod_name_string.
7680         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7681         (som_solib_get_solib_by_pc): Declare.
7682         (so_lib_thread_start_addr): Declare.
7683         (no_shared_libraries): Declare.
7684         * somread.c (init_import_symbols): Make static.  Add forward
7685         declaration.
7686         * config/pa/nm-hppah.h: Include "infttrace.h" for
7687         parent_attach_all.
7688         (hppa_insert_hw_watchpoint): Declare.
7689         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7690         * hppah-nat.c: Include "gdb_string.h".
7691         (parent_attach_all): Delete extern declaration, moved to
7692         "infttrace.h".
7693         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7694         int.
7695         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7696         * Makefile.in (infttrace_h): Define.
7697         (hpread.o): Update dependencies.
7698         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7699         * hppa-hpux-tdep.c: Include "gdb_string.h".
7700         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7701         * infrun.c (handle_inferior_event): Always initialize
7702         stepped_after_stopped_by_watchpoint.  Add default and remove
7703         fallthrough in switch statement.
7704         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7705         parameter to int.
7706         (hppa_remove_hw_watchpoint): Ditto.
7707
7708 2003-03-29  Andrew Cagney  <[email protected]>
7709
7710         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7711         offset.
7712
7713 2003-03-29  Richard Earnshaw  <[email protected]>
7714
7715         * arm-tdep.c (arm_push_arguments): Delete.
7716         (struct stack_item): New type.
7717         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7718         (arm_store_struct_return): Delte.
7719         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
7720         arm_push_arguments or arm_store_struct_return.
7721
7722 2003-03-28  Andrew Cagney  <[email protected]>
7723
7724         * Makefile.in (d10v-tdep.o): Update dependencies.
7725         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7726         * d10v-tdep.c: Include "remote.h".
7727         (target_resume_hook): Delete extern declaration.
7728         (target_wait_loop_hook): Ditto.
7729         (tdisassemble_command): Eliminate assignment in "if" conditional.
7730         (d10v_ts2_register_sim_regno): Eliminate call to
7731         legacy_register_sim_regno.
7732         (d10v_ts3_register_sim_regno): Ditto.
7733
7734 2003-03-28  Jeff Johnston  <[email protected]>
7735
7736         * thread.c: Reindented.
7737         * lin-lwp.c: Ditto.
7738         * linux-proc.c: Ditto.
7739
7740 2003-03-28  Bob Rossi  <[email protected]>
7741
7742         * MAINTAINERS (write after approval): Add myself.
7743
7744 2003-03-27  Theodore A. Roth  <[email protected]>
7745
7746         * objc-exp.y: Add missing semi-colons.
7747
7748 2003-03-27  Andrew Cagney  <[email protected]>
7749
7750         * regcache.c (write_sp): Delete function and references.
7751         * inferior.h (write_sp): Delete declaration.
7752         * valops.c (hand_function_call): Replace write_sp with
7753         TARGET_WRITE_SP.
7754         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7755         (sparc_pop_frame): Ditto.
7756
7757 2003-03-27  Andrew Cagney  <[email protected]>
7758
7759         * NEWS: Mention removal of support for hppa*-*-bsd* and
7760         hppa*-*-osf* natives, and hppa*-*-pro* target.
7761         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7762         * config/pa/xm-pa.h: Obsolete file.
7763         * config/pa/xm-hppab.h: Obsolete file.
7764         * config/pa/nm-hppab.h: Obsolete file.
7765         * config/pa/tm-hppab.h: Obsolete file.
7766         * config/pa/tm-hppao.h: Obsolete file.
7767         * config/pa/nm-hppao.h: Obsolete file.
7768         * config/pa/tm-pro.h: Obsolete file.
7769         * config/pa/hppaosf.mt: Obsolete file.
7770         * config/pa/hppaosf.mh: Obsolete file.
7771         * config/pa/hppapro.mt: Obsolete file.
7772         * config/pa/hppabsd.mt: Obsolete file.
7773         * config/pa/hppabsd.mh: Obsolete file.
7774         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7775         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7776         hppa*-*-osf*.
7777
7778 2003-03-27  Andrew Cagney  <[email protected]>
7779
7780         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7781         push_arguments.  Don't set push_return_address or write_sp.
7782         (d10v_push_dummy_call): Replace d10v_push_arguments.
7783         (d10v_push_return_address, d10v_write_sp): Delete function,
7784         handled by push_dummy_call.
7785
7786 2003-03-26  Andrew Cagney  <[email protected]>
7787
7788         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7789         (push_dummy_call): New pure multi-arch replacement with gdbarch,
7790         regcache and dummy_addr parameters.
7791         * gdbarch.h, gdbarch.c: Re-generate.
7792         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7793         available; assume it will handle stack alignment and return
7794         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
7795         legacy_push_arguments.
7796         (legacy_push_arguments): Rename default_push_arguments.
7797         * value.h (legacy_push_arguments): Rename default_push_arguments.
7798         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7799         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7800         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7801         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7802         * config/i386/tm-symmetry.h: Update.
7803         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7804         * x86-64-tdep.c (x86_64_init_abi): Update.
7805         * v850-tdep.c (v850_gdbarch_init): Update.
7806         * sparc-tdep.c (sparc_gdbarch_init): Update.
7807         * sh-tdep.c (sh_gdbarch_init): Update.
7808         * s390-tdep.c (s390_gdbarch_init): Update.
7809         * rs6000-tdep.c (rs6000_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         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7814         * ia64-tdep.c (ia64_gdbarch_init): Update.
7815         * i386-tdep.c (i386_gdbarch_init): Update.
7816         * hppa-tdep.c (hppa_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         * avr-tdep.c (avr_gdbarch_init): Update.
7822         * arm-tdep.c (arm_gdbarch_init): Update.
7823         * arm-linux-tdep.c (arm_linux_init_abi): Update.
7824         * alpha-tdep.c (alpha_gdbarch_init): Update.
7825
7826 2003-03-26  Daniel Jacobowitz  <[email protected]>
7827
7828         * signals/signals.c (do_target_signal_to_host): Correct realtime
7829         signal range test.
7830
7831 2003-03-26  Daniel Jacobowitz  <[email protected]>
7832
7833         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7834         (struct sal_chain, map_catch_names): Remove.
7835         (catch_exception_command_1): Don't call
7836         handle_gnu_4_16_catch_command.
7837
7838 2003-03-26  Daniel Jacobowitz  <[email protected]>
7839
7840         From Mark Dettinger <[email protected]>:
7841         * dwarf2cfi.c (read_2u): Increment pointer by two.
7842
7843 2003-03-26  Daniel Jacobowitz  <[email protected]>
7844
7845         * signals/signals.c: Fix typos in last change.
7846
7847 2003-03-26  Daniel Jacobowitz  <[email protected]>
7848
7849         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7850         not already defined.  Use __SIGRTMIN if available.
7851         (target_signal_from_host): Remove SIGRTMIN block.
7852         (do_target_signal_to_host): Remove SIGRTMIN block; check that
7853         the signal is within the realtime range.
7854
7855 2003-03-25  Adam Fedor  <[email protected]>
7856
7857         * Makefile.in (infrun.o): Add $(language_h)
7858         * infrun.c (handle_inferior_event): Use skip_language_trampoline
7859         for language specific trampolines.
7860         * language.h (struct language_defn): Add skip_trampoline.
7861         (skip_language_trampoline): Declare.
7862         * language.c (unk_lang_trampoline, skip_language_trampoline):
7863         New functions.
7864         (unknown_language_defn, auto_language_defn, local_language_defn):
7865         Add ukn_lang_trampoline.
7866         * ada-lang.c (ada_language_defn): Add NULL for language
7867         specific skip_trampoline.
7868         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7869         scm-lang.c: Likewise.
7870         * objc-lang.c (objc_skip_trampoline): New function.
7871         (objc_language_defn): Add objc_skip_trampoline.
7872
7873 2003-03-25  Andrew Cagney  <[email protected]>
7874
7875         * frame.c (get_prev_frame): Delay validating a frame's ID -
7876         non-NULL, didn't go backwards - until an attempt to unwind it to
7877         the previous frame.
7878
7879 2003-03-25  Andrew Cagney  <[email protected]>
7880
7881         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7882         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
7883         * gdbarch.h, gdbarch.c: Re-generate.
7884         * config/sparc/tm-sparc.h
7885         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7886         * sparc-tdep.c (sparc_gdbarch_init): Set
7887         deprecated_extra_stack_alignment_needed.
7888         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7889         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7890         extra_stack_alignment_needed.
7891         * v850-tdep.c (v850_gdbarch_init): Ditto.
7892         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7893         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7894         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7895         * cris-tdep.c (cris_gdbarch_init): Ditto.
7896         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7897         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7898
7899 2003-03-25  Andrew Cagney  <[email protected]>
7900
7901         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7902         STORE_STRUCT_RETURN.
7903         * gdbarch.h, gdbarch.c: Regenerate.
7904         * d10v-tdep.c (d10v_store_struct_return): Delete function.
7905         (d10v_push_arguments): Set the struct return register.
7906         (d10v_gdbarch_init): Update.
7907         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7908         * x86-64-tdep.c (x86_64_init_abi): Update.
7909         * vax-tdep.c (vax_gdbarch_init): Update.
7910         * v850-tdep.c (v850_gdbarch_init): Update.
7911         * sparc-tdep.c (sparc_gdbarch_init): Update.
7912         * sh-tdep.c (sh_gdbarch_init): Update.
7913         * s390-tdep.c (s390_gdbarch_init): Update.
7914         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7915         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7916         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7917         * mips-tdep.c (mips_gdbarch_init): Update.
7918         * mcore-tdep.c (mcore_gdbarch_init): Update.
7919         * m68k-tdep.c (m68k_gdbarch_init): Update.
7920         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7921         * ia64-tdep.c (ia64_gdbarch_init): Update.
7922         * i386-tdep.c (i386_gdbarch_init): Update.
7923         * hppa-tdep.c (hppa_gdbarch_init): Update.
7924         * h8300-tdep.c (h8300_gdbarch_init): Update.
7925         * frv-tdep.c (frv_gdbarch_init): Update.
7926         * cris-tdep.c (cris_gdbarch_init): Update.
7927         * avr-tdep.c (avr_gdbarch_init): Update.
7928         * arm-tdep.c (arm_gdbarch_init): Update.
7929         * alpha-tdep.c (alpha_gdbarch_init): Update.
7930
7931 2003-03-25  Andrew Cagney  <[email protected]>
7932
7933         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7934         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7935         CALL_DUMMY_STACK_ADJUST with a predicate variable.
7936         * gdbarch.h, gdbarch.c: Regenerate.
7937         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7938         call_dummy_stack_adjust_p.
7939         * vax-tdep.c (vax_gdbarch_init): Ditto.
7940         * v850-tdep.c (v850_gdbarch_init): Ditto.
7941         * sh-tdep.c (sh_gdbarch_init): Ditto.
7942         * s390-tdep.c (s390_gdbarch_init): Ditto.
7943         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7944         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7945         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7946         * mips-tdep.c (mips_gdbarch_init): Ditto.
7947         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7948         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7949         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7950         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7951         * i386-tdep.c (i386_gdbarch_init): Ditto.
7952         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7953         * frv-tdep.c (frv_gdbarch_init): Ditto.
7954         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7955         * cris-tdep.c (cris_gdbarch_init): Ditto.
7956         * avr-tdep.c (avr_gdbarch_init): Ditto.
7957         * arm-tdep.c (arm_gdbarch_init): Ditto.
7958         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7959         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7960         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7961         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7962         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
7963         call_dummy_stack_adjust_p.
7964         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7965         (CALL_DUMMY_STACK_ADJUST): Delete macro.
7966         * sparc-tdep.c (sparc32_push_arguments): Update.
7967         * valops.c (hand_function_call): Update.
7968
7969 2003-03-25  Corinna Vinschen  <[email protected]>
7970
7971         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7972         set_gdbarch_char_signed.
7973
7974 2003-03-25  Richard Earnshaw  <[email protected]>
7975
7976         PR cli/548
7977         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7978
7979 2003-03-25  Richard Earnshaw  <[email protected]>
7980
7981         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7982         (_initialize_arm_tdep): Don't set tm_print_insn.
7983
7984 2003-03-24  Adam Fedor  <[email protected]>
7985
7986         * Makefile.in (YYOBJ): Add objc-exp.tab.o
7987         * objc-lang.h: Add multiple inclusion protection.
7988         (start_msglist, add_msglist, end_msglist): Additional declarations.
7989
7990 2003-03-24  Richard Earnshaw  <[email protected]>
7991
7992         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7993         value was renamed to ARM_FLOAT_SOFT_FPA.
7994
7995 2003-03-23  Andrew Cagney  <[email protected]>
7996
7997         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7998         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7999         * gdbarch.h, gdbarch.c: Regenerate.
8000         * valops.c (hand_function_call): Update.
8001         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8002         * frame.c (legacy_saved_regs_this_id): Update.
8003         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8004         * dummy-frame.h: Update.
8005         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8006         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8007         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8008         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8009         * config/m68k/tm-sun3.h: Update.
8010         * blockframe.c (inside_main_func, frame_chain_valid): Update.
8011         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8012         * x86-64-tdep.c (x86_64_init_abi): Update.
8013         * vax-tdep.c (vax_gdbarch_init): Update.
8014         * v850-tdep.c (v850_gdbarch_init): Update.
8015         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8016         * sh-tdep.c (sh_gdbarch_init): Update.
8017         * s390-tdep.c (s390_gdbarch_init): Update.
8018         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8019         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8020         (frame_get_saved_regs): Update.
8021         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8022         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8023         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8024         * mips-tdep.c (mips_gdbarch_init): Update.
8025         * mcore-tdep.c (mcore_gdbarch_init): Update.
8026         * m68k-tdep.c (m68k_gdbarch_init): Update.
8027         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8028         * ia64-tdep.c (ia64_gdbarch_init): Update.
8029         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8030         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8031         (i386_interix_back_one_frame): Update.
8032         * hppa-tdep.c (hppa_gdbarch_init): Update.
8033         (hppa_init_extra_frame_info): Update.
8034         * h8300-tdep.c (h8300_gdbarch_init): Update.
8035         * frv-tdep.c (frv_gdbarch_init): Update.
8036         * cris-tdep.c (cris_gdbarch_init): Update.
8037         * avr-tdep.c (avr_gdbarch_init): Update.
8038         * arm-tdep.c (arm_gdbarch_init): Update.
8039         * alpha-tdep.c (alpha_gdbarch_init): Update.
8040
8041 2003-03-22  Richard Earnshaw  <[email protected]>
8042
8043         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8044         (arm_get_fp_model): Declare.
8045         * arm-tdep.c (fp_model_strings): New string array.
8046         (arm_fp_model, current_fp_model): New variables.
8047         (arm_get_fp_model): New function.
8048         (arm_set_fp): New function.
8049         (set_fp_model_sfunc): New function.
8050         (show_fp_model): New function.
8051         (_initialize_arm_tdep): Add new command to set/show the FPU.
8052         (arm_extract_return_value): Use arm_get_fp_model.
8053         (arm_store_return_value): Likewise.
8054         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
8055         to initialize the floating-point data types.
8056         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8057         model is FPA.
8058
8059 2003-03-22  Richard Earnshaw  <[email protected]>
8060
8061         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
8062         the current setting of each value.
8063         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8064         new_set and new_show.  Use add_setshow_cmd_full and
8065         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
8066         commands and add new version as subcommands of "set/show arm".
8067
8068 2003-03-22  Richard Earnshaw  <[email protected]>
8069
8070         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8071         (set_arm_command, show_arm_command): New functions.
8072         (_initialize_arm_tdep): Add them.
8073         (num_disassembly_options): Renamed from num_flavor_options.
8074         (valid_disassembly_styles): Renamed from valid_flavors.
8075         (disassembly_style): Renamed from disassembly_flavor.
8076         (set_disassembly_style_sfunc): Renamed from
8077         set_disassembly_flavor_sfunc.
8078         (set_disassembly_style): Renamed from set_disassembly_flavor.
8079         (arm_othernames): Updated.
8080         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8081         command.  Add "set/show arm disassembly" commands.  Deprecate
8082         "othernames" command.
8083
8084 2003-03-22  Richard Earnshaw  <[email protected]>
8085
8086         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8087         (arm-tdep.o): Depend on elf_arm_h.
8088
8089 2003-03-22  Richard Earnshaw  <[email protected]>
8090
8091         * Makefile.in (coff_internal_h): Define.
8092         (arm-tdep.o): Update dependencies.
8093
8094 2003-03-22  Richard Earnshaw  <[email protected]>
8095
8096         * arm-tdep.c (prologue_cache): Delete.
8097         (check_prologue_cache, save_prologue_cache): Delete.
8098         (arm_scan_prologue): Don't check or update the prologue_cache.
8099         (arm_gdb_arch_init): Don't initialize it.
8100         (_initialize_arm_tdep): Likewise.
8101
8102 2003-03-21  Stephane Carrez  <[email protected]>
8103
8104         * MAINTAINERS (tui): Maintainer of tui code.
8105
8106 2003-03-21  Corinna Vinschen  <[email protected]>
8107
8108         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8109         (i386-cygwin-tdep.o): Add dependencies.
8110         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8111         * i386-cygwin-tdep.c: New file.
8112         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8113         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8114
8115 2003-03-20  Andrew Cagney  <[email protected]>
8116
8117         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8118         (handle_inferior_event): Remove code calling
8119         DYNAMIC_TRAMPOLINE_NEXTPC.
8120
8121         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8122         already has a full path.
8123
8124         * main.c (gdb_main): Return 1.
8125         (captured_main): Call error to report an invalid interpreter.
8126
8127         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8128         * alpha-osf1-tdep.c: Include "gdb_string.h".
8129
8130 2003-03-19  J. Brobecker  <[email protected]>
8131
8132         Continuing work to convert the hppa targets to multiarch partial.
8133
8134         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8135         method, now that hppa_push_dummy_frame has a conformant prototype.
8136         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8137         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8138         for the switch to multiarch partial.
8139
8140 2003-03-19  Kevin Buettner  <[email protected]>
8141
8142         * mdebugread.c (parse_symbol): For stEnd, we're done counting
8143         when iss is issNull.
8144
8145 2003-03-18  Kevin Buettner  <[email protected]>
8146
8147         * mips-tdep.c (mips_register_name): Fix fencepost error involving
8148         NUM_REGS bounds check.
8149
8150 2003-03-18  Kevin Buettner  <[email protected]>
8151
8152         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8153         * mips-tdep.c (gdb_assert.h): Include.
8154         (mips_generic_reg_names, mips_processor_reg_names): Make static.
8155         (mips_register_name): Handle integer registers explicitly.  Add
8156         bounds checking.
8157         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8158         (mips_lsi33k_reg_names): Don't list integer registers; they're
8159         handled by mips_register_name() now.
8160         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8161         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8162         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8163         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8164         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8165
8166 2003-03-18  Andrew Cagney  <[email protected]>
8167
8168         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8169         a void pointer.
8170         * gdbtypes.h (print_scalar_formatted): Update declaration.
8171         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8172
8173 2003-03-18  J. Brobecker  <[email protected]>
8174
8175         * infrun.c (observer.h): Add #include.
8176         (normal_stop): Add call to observer_notify_normal_stop.
8177         * Makefile.in (infrun.o): Add dependency on observer.h.
8178
8179 2003-03-18  J. Brobecker  <[email protected]>
8180
8181         Continuing work to convert the hppa targets to multiarch partial.
8182         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8183         parameter. Reformat comment.
8184         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8185         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8186         to match new profile.
8187
8188 2003-03-18  J. Brobecker  <[email protected]>
8189
8190         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8191         appear to be working in any case.
8192
8193 2003-03-18  J. Brobecker  <[email protected]>
8194
8195         * observer.c (observer_test_first_observer): New static variable.
8196         (observer_test_second_observer): Likewise.
8197         (observer_test_third_observer): Likewise.
8198         (observer_test_first_notification_function): New static function.
8199         (observer_test_second_notification_function): Likewise.
8200         (observer_test_third_notification_function): Likewise.
8201
8202 2003-03-17  J. Brobecker  <[email protected]>
8203
8204         * hppa-tdep.c (gdb_assert.h): Add missing #include.
8205         * somsolib.c (gdb_assert.h): Likewise.
8206         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8207         (somsolib.o): Likewise.
8208
8209 2003-03-17  Andrew Cagney  <[email protected]>
8210
8211         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8212         BFD.  Simplify setting of di.endian.
8213
8214 2003-03-17  Andrew Cagney  <[email protected]>
8215
8216         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8217         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8218
8219         From Elena Zannoni  <[email protected]>
8220         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8221         vector and floating-point parameters.
8222         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8223         convention.
8224         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8225
8226 2003-03-17  Fernando Nasser  <[email protected]>
8227
8228         * MAINTAINERS: Remove my name from several maintainership roles.
8229
8230 2003-03-17  Andrew Cagney  <[email protected]>
8231
8232         Fix frame off-by-one bug.
8233         * frame-unwind.h (frame_this_id_ftype): Replace
8234         frame_unwind_id_ftype.
8235         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8236         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
8237         with "prev_register".
8238         * frame-unwind.c (frame_unwind_find_by_pc): Return
8239         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
8240         comment.
8241         * dummy-frame.c (cached_find_dummy_frame): Delete function.
8242         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8243         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8244         (dummy_frame_unwind): Update.
8245         * sentinel-frame.c (sentinel_frame_prev_register): Replace
8246         sentinel_frame_register_unwind.
8247         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8248         (sentinel_frame_unwinder): Update.
8249         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8250         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8251         * frame.c (create_sentinel_frame): Update. Initialize
8252         "prologue_cache" instead of "unwind_cache".
8253         (frame_register_unwind): Call this frame's prev_register with the
8254         next frame and this frame's prologue cache.
8255         (get_prev_frame): Simplify.  Always call prev frame's this_id with
8256         this frame and prev frame's prologue cache.  Document that this
8257         call is shifted one to the left when compared to the
8258         frame_register_unwind call.
8259         (legacy_saved_regs_prev_register): Replace
8260         frame_saved_regs_register_unwind.
8261         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8262         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8263         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8264         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8265         (d10v_frame_unwind): Update.
8266         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8267         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8268         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8269         "saved_regs" with "this_saved_regs".
8270
8271 2003-03-16  Andrew Cagney  <[email protected]>
8272
8273         * frame.c (frame_pop): Don't call target_store_registers.  Fix
8274         problem reported by Mark Kettenis.
8275
8276 2003-03-16  Mark Kettenis  <[email protected]>
8277
8278         * i386-tdep.c (i386_register_type): Renamed from
8279         i386_register_virtual_type.  Adjust function signature.
8280         (i386_gdbarch_init): Set register_type instead of
8281         deprecated_max_register_raw_size,
8282         deprecated_max_register_virtual_size and register_virtual_type.
8283
8284 2003-03-14  Andrew Cagney  <[email protected]>
8285
8286         * frame.c (get_prev_frame): When a legacy frame, always call
8287         legacy_get_prev_frame.  Simplify unwind code using assumption that
8288         the unwinder is new.
8289         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8290         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8291         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8292
8293 2003-03-14  Andrew Cagney  <[email protected]>
8294
8295         * frame.c (get_saved_register): Delete function.
8296         * frame.h (get_saved_register): Delete declaration.
8297         * xstormy16-tdep.c: Update comment.
8298         * regcache.h: Update comments.
8299         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8300         get_saved_register and extract_address, use
8301         frame_read_unsigned_register.
8302         (sparc_frame_saved_pc): Ditto.
8303         (sparc_get_saved_register): Instead of get_saved_register, use
8304         frame_register.
8305         (sparc_pop_frame): Ditto.
8306         * findvar.c: Update comments.
8307         (value_of_register): Call frame_register instead of
8308         get_saved_register.
8309         (value_from_register): Ditto.
8310         * config/sparc/tm-sparc.h: Update comment.
8311         * breakpoint.c: Update comment.
8312
8313 2003-03-14  Andrew Cagney  <[email protected]>
8314
8315         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8316         GET_SAVED_REGISTER.
8317         * gdbarch.h, gdbarch.c: Re-generate.
8318         * frame.h: Update comments.
8319         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8320         * x86-64-tdep.c (x86_64_init_abi): Update.
8321         * sparc-tdep.c (sparc_gdbarch_init): Update.
8322         * sh-tdep.c (sh_gdbarch_init): Update.
8323         * mips-tdep.c (mips_gdbarch_init): Update.
8324         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8325         * cris-tdep.c (cris_gdbarch_init): Update.
8326         * ia64-tdep.c (ia64_gdbarch_init): Update.
8327         * frame.c (frame_register): Update.
8328         (get_saved_register): Update.
8329         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8330
8331 2003-03-13  Andrew Cagney  <[email protected]>
8332
8333         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8334         * gdbarch.h, gdbarch.c: Regenerate.
8335         * valops.c (hand_function_call): Update comment.
8336         * stack.c (return_command): Update comment.
8337         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8338         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8339         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8340         * x86-64-tdep.c (x86_64_init_abi): Update.
8341         * vax-tdep.c (vax_gdbarch_init): Update.
8342         * v850-tdep.c (v850_gdbarch_init): Update.
8343         * sparc-tdep.c (sparc_gdbarch_init): Update.
8344         * sh-tdep.c (sh_gdbarch_init): Update.
8345         * s390-tdep.c (s390_gdbarch_init): Update.
8346         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8347         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8348         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8349         * mips-tdep.c (mips_gdbarch_init): Update.
8350         * mcore-tdep.c (mcore_gdbarch_init): Update.
8351         * m68k-tdep.c (m68k_gdbarch_init): Update.
8352         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8353         * ia64-tdep.c (ia64_gdbarch_init): Update.
8354         * i386-tdep.c (i386_gdbarch_init): Update.
8355         * hppa-tdep.c (hppa_gdbarch_init): Update.
8356         * h8300-tdep.c (h8300_gdbarch_init): Update.
8357         * frv-tdep.c (frv_gdbarch_init): Update.
8358         * cris-tdep.c (cris_gdbarch_init): Update.
8359         * avr-tdep.c (avr_gdbarch_init): Update.
8360         * arm-tdep.c (arm_gdbarch_init): Update.
8361         * alpha-tdep.c (alpha_gdbarch_init): Update.
8362
8363 2003-03-13  Andrew Cagney  <[email protected]>
8364
8365         * frame.c (legacy_frame_p): New function.
8366         (get_prev_frame): Use legacy_frame_p.
8367         * frame.h (legacy_frame_p): Declare.
8368
8369 2003-03-13  D. Venkatasubramanian <[email protected]>
8370
8371         * MAINTAINERS (write after approval): Alphabetically
8372         listing corrected.
8373
8374 2003-03-13  D. Venkatasubramanian <[email protected]>
8375
8376         * MAINTAINERS (write after approval): Add myself.
8377
8378 2003-03-12  Andrew Cagney  <[email protected]>
8379
8380         * frame.c (get_prev_frame): Rename the frame parameter to
8381         "this_frame".
8382         (get_next_frame, legacy_get_prev_frame): Ditto.
8383
8384 2003-03-12  Andrew Cagney  <[email protected]>
8385
8386         * frame.c (get_current_frame): Check target_has_registers before
8387         checking target_has_stack.
8388         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8389         instead of deprecated_selected_frame.
8390         * findvar.c (value_of_register): Pass "frame", not
8391         deprecated_selected_frame, to value_of_builtin_reg.
8392
8393 2003-03-12  Andrew Cagney  <[email protected]>
8394
8395         * regcache.c (regcache_cooked_write_signed): New function.
8396         (regcache_cooked_write_unsigned): New function.
8397         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8398         (regcache_cooked_read_signed): Fix regnum in range assertion.
8399         * regcache.h (regcache_cooked_write_signed): Declare.
8400         (regcache_cooked_write_unsigned): Declare.
8401
8402 2003-03-12  Andrew Cagney  <[email protected]>
8403
8404         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8405         * gdbarch.h, gdbarch.c: Re-generate.
8406         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8407         * x86-64-tdep.h: Update.
8408         * x86-64-tdep.c (x86_64_init_abi): Update.
8409         * v850-tdep.c (v850_gdbarch_init): Update.
8410         * sparc-tdep.c (sparc_gdbarch_init): Update.
8411         * sh-tdep.c (sh_gdbarch_init): Update.
8412         * s390-tdep.c (s390_gdbarch_init): Update.
8413         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8414         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8415         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8416         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8417         * mips-tdep.c (mips_gdbarch_init): Update.
8418         * mcore-tdep.c (mcore_gdbarch_init): Update.
8419         * m68k-tdep.c (m68k_gdbarch_init): Update.
8420         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8421         * ia64-tdep.c (ia64_gdbarch_init): Update.
8422         * i386-tdep.c (i386_gdbarch_init): Update.
8423         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8424         * hppa-tdep.c (hppa_gdbarch_init): Update.
8425         * h8300-tdep.c (h8300_gdbarch_init): Update.
8426         * frv-tdep.c (frv_gdbarch_init): Update.
8427         * cris-tdep.c (cris_gdbarch_init): Update.
8428         * avr-tdep.c (avr_gdbarch_init): Update.
8429         * arm-tdep.c (arm_gdbarch_init): Update.
8430         * alpha-tdep.c (alpha_gdbarch_init): Update.
8431         * sh-tdep.c (sh_init_extra_frame_info): Update.
8432         (sh64_init_extra_frame_info): Update.
8433         * ns32knbsd-nat.c (frame_num_args): Update.
8434         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8435         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8436         (xstormy16_frame_chain_valid): Update.
8437         * vax-tdep.c (vax_saved_pc_after_call): Update.
8438         * v850-tdep.c (v850_frame_chain): Update.
8439         (v850_pop_frame): Update.
8440         (v850_init_extra_frame_info): Update.
8441         * sparc-tdep.c (setup_arbitrary_frame): Update.
8442         * ns32k-tdep.c (umax_frame_num_args): Update.
8443         * s390-tdep.c (s390_pop_frame_regular): Update.
8444         * mn10300-tdep.c (mn10300_frame_chain): Update.
8445         (mn10300_pop_frame_regular): Update.
8446         (mn10300_init_extra_frame_info): Update.
8447         * mips-tdep.c (mips_init_frame_pc_first): Update.
8448         (mips_frame_chain): Update.
8449         (mips_pop_frame): Update.
8450         * mcore-tdep.c (mcore_frame_chain): Update.
8451         (mcore_pop_frame): Update.
8452         (mcore_init_extra_frame_info): Update.
8453         * arch-utils.c (init_frame_pc_default): Update.
8454         * m68k-tdep.c (isi_frame_num_args): Update.
8455         (delta68_frame_num_args): Update.
8456         (news_frame_num_args): Update.
8457         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8458         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8459         (alpha_frame_chain): Update.
8460         (alpha_pop_frame): Update.
8461         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8462         (hppa_init_extra_frame_info): Update.
8463         (hppa_frame_chain): Update.
8464         (hppa_frame_chain_valid): Update.
8465         * cris-tdep.c (cris_init_extra_frame_info): Update.
8466         * avr-tdep.c (avr_init_extra_frame_info): Update.
8467         * arm-tdep.c (arm_frame_chain_valid): Update.
8468         (arm_init_extra_frame_info): Update.
8469         (arm_pop_frame): Update.
8470         * frame.c (frame_pc_unwind): Update.
8471         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8472         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8473         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8474         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8475         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8476         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8477
8478 2003-03-12  Andrew Cagney  <[email protected]>
8479
8480         Eliminate the need for POP_FRAME.
8481         * frame.c (do_frame_unwind_register): New function.
8482         (frame_pop): When no POP_FRAME, pop the frame using register
8483         unwind and a scratch regcache.
8484         (frame_saved_regs_pop): Delete function.
8485         (trad_frame_unwinder): Update.
8486         * d10v-tdep.c (d10v_frame_pop): Delete function.
8487         (d10v_frame_unwind): Update.
8488         * sentinel-frame.c (sentinel_frame_pop): Delete function.
8489         (sentinel_frame_unwinder): Update.
8490         * dummy-frame.c (dummy_frame_pop): Delete function.
8491         (dummy_frame_unwind): Update.
8492         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8493         (struct frame_unwind): Update.
8494
8495 2003-03-11  Kevin Buettner  <[email protected]>
8496
8497         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8498         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8499         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8500         Do range checks on register number obtained from debugging info.
8501         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8502         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
8503         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8504         mapping function.
8505         (do_fp_register_row): Fix typo which caused double type to be
8506         used when attempting to unpack a float.
8507
8508 2003-03-11  J. Brobecker  <[email protected]>
8509
8510         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8511
8512 2003-03-11  Andrew Cagney  <[email protected]>
8513
8514         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8515         frame.  Problem found by Corinna Vinschen.
8516
8517 2003-03-11  Pierre Muller  <[email protected]>
8518
8519         * doublest.c (floatformat_from_length): Accept also
8520         the real size of 'long double' type.
8521
8522 2003-03-10  Daniel Jacobowitz  <[email protected]>
8523
8524         From Klee Dienes <[email protected]>:
8525         * breakpoint.c (bpstat_copy): Copy the command lines as well
8526         as the old value, to match what is freed in bpstat_clear.
8527
8528 2003-03-10  David Carlton  <[email protected]>
8529
8530         * minsyms.c (add_minsym_to_hash_table): Replace
8531         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8532         (compare_minimal_symbols, compact_minimal_symbols)
8533         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8534         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8535         of DEPRECATED_SYMBOL_MATCHES_NAME.
8536         (lookup_minimal_symbol_solib_trampoline): Ditto.
8537
8538 2003-03-10  Andrew Cagney  <[email protected]>
8539
8540         * regcache.h (regcache_cooked_read_ftype): Define.
8541         (regcache_save, regcache_restore): Add a cooked_read parameter.
8542         * regcache.c (regcache_save, regcache_restore): Update.
8543         (do_cooked_read): New function.
8544         (regcache_cpy): Pass do_cooked_read to regcache_save and
8545         regcache_restore.
8546
8547 2003-03-10  Andrew Cagney  <[email protected]>
8548
8549         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8550         * gdbarch.h, gdbarch.c: Re-generate.
8551         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8552         * x86-64-tdep.h: Update.
8553         * x86-64-tdep.c (x86_64_init_abi): Update.
8554         * v850-tdep.c (v850_gdbarch_init): Update.
8555         * sparc-tdep.c (sparc_gdbarch_init): Update.
8556         * sh-tdep.c (sh_gdbarch_init): Update.
8557         * s390-tdep.c (s390_gdbarch_init): Update.
8558         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8559         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8560         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8561         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8562         * mips-tdep.c (mips_gdbarch_init): Update.
8563         * mcore-tdep.c (mcore_gdbarch_init): Update.
8564         * m68k-tdep.c (m68k_gdbarch_init): Update.
8565         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8566         * ia64-tdep.c (ia64_gdbarch_init): Update.
8567         * i386-tdep.c (i386_gdbarch_init): Update.
8568         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8569         * hppa-tdep.c (hppa_gdbarch_init): Update.
8570         * h8300-tdep.c (h8300_gdbarch_init): Update.
8571         * frv-tdep.c (frv_gdbarch_init): Update.
8572         * cris-tdep.c (cris_gdbarch_init): Update.
8573         * avr-tdep.c (avr_gdbarch_init): Update.
8574         * arm-tdep.c (arm_gdbarch_init): Update.
8575         * alpha-tdep.c (alpha_gdbarch_init): Update.
8576         * sh-tdep.c (sh_init_extra_frame_info): Update.
8577         (sh64_init_extra_frame_info): Update.
8578         * ns32knbsd-nat.c (frame_num_args): Update.
8579         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8580         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8581         (xstormy16_frame_chain_valid): Update.
8582         * vax-tdep.c (vax_saved_pc_after_call): Update.
8583         * v850-tdep.c (v850_frame_chain): Update.
8584         (v850_pop_frame): Update.
8585         (v850_init_extra_frame_info): Update.
8586         * sparc-tdep.c (setup_arbitrary_frame): Update.
8587         * ns32k-tdep.c (umax_frame_num_args): Update.
8588         * s390-tdep.c (s390_pop_frame_regular): Update.
8589         * mn10300-tdep.c (mn10300_frame_chain): Update.
8590         (mn10300_pop_frame_regular): Update.
8591         (mn10300_init_extra_frame_info): Update.
8592         * mips-tdep.c (mips_init_frame_pc_first): Update.
8593         (mips_frame_chain): Update.
8594         (mips_pop_frame): Update.
8595         * mcore-tdep.c (mcore_frame_chain): Update.
8596         (mcore_pop_frame): Update.
8597         (mcore_init_extra_frame_info): Update.
8598         * arch-utils.c (init_frame_pc_default): Update.
8599         * m68k-tdep.c (isi_frame_num_args): Update.
8600         (delta68_frame_num_args): Update.
8601         (news_frame_num_args): Update.
8602         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8603         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8604         (alpha_frame_chain): Update.
8605         (alpha_pop_frame): Update.
8606         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8607         (hppa_init_extra_frame_info): Update.
8608         (hppa_frame_chain): Update.
8609         (hppa_frame_chain_valid): Update.
8610         * cris-tdep.c (cris_init_extra_frame_info): Update.
8611         * avr-tdep.c (avr_init_extra_frame_info): Update.
8612         * arm-tdep.c (arm_frame_chain_valid): Update.
8613         (arm_init_extra_frame_info): Update.
8614         (arm_pop_frame): Update.
8615         * frame.c (frame_pc_unwind): Update.
8616         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8617         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8618         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8619         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8620         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8621         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8622
8623 2003-03-10  Andrew Cagney  <[email protected]>
8624
8625         * gdbarch.sh (gdbarch_unwind_pc): New method.
8626         * gdbarch.h, gdbarch.c: Regenerate.
8627         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
8628         but use read_pc and FRAME_SAVED_PC as fall backs.
8629         (frame_saved_regs_pc_unwind): Delete function.
8630         (trad_frame_unwinder): Update.
8631         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8632         (struct frame_unwind): Update.
8633         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8634         (dummy_frame_unwind): Update.
8635         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8636         (sentinel_frame_unwinder): Update.
8637         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8638         (d10v_frame_unwind): Update.
8639         (d10v_unwind_pc): New function.
8640         (d10v_gdbarch_init): Set unwind_pc.
8641
8642 2003-03-10  Andrew Cagney  <[email protected]>
8643
8644         * gdbarch.h: Re-generate.
8645
8646         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8647         PC.
8648         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8649         the PC register.
8650
8651 2003-03-08  Mark Kettenis  <[email protected]>
8652
8653         * gdbarch.sh (save_dummy_frame_tos): Add comment.
8654
8655 2003-03-08  Andrew Cagney  <[email protected]>
8656
8657         * cli-out.c: Update copyright.
8658         (cli_out_data): Define typedef.  Use instead of ui_out_data.
8659
8660 2003-03-08  Andrew Cagney  <[email protected]>
8661
8662         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8663         the result.
8664
8665 2003-03-07  Andrew Cagney  <[email protected]>
8666
8667         * gdbarch.sh: Don't generate two macro definitions when an
8668         undefined macro taking no arguments.
8669         * gdbarch.h: Regenerate.
8670
8671 2002-03-07  Michal Ludvig  <[email protected]>
8672
8673         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8674         (x86_64_unwind_dummy_id): New functions.
8675         (x86_64_init_abi): Register these two new functions.
8676
8677 2003-03-07  Michal Ludvig  <[email protected]>
8678
8679         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8680         (x86_64_skip_prologue): Move prologue detection to
8681         separate function.
8682         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8683
8684 2003-03-05  Andrew Cagney  <[email protected]>
8685
8686         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8687         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8688         * frame.c (get_prev_frame): Restructure the frame ID unwind code
8689         to use unwind_dummy_id when a dummy frame.
8690         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8691         predicate.
8692         * gdbarch.h, gdbarch.c: Regneerate.
8693
8694 2003-03-05  Andrew Cagney  <[email protected]>
8695
8696         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8697         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8698         Do not use d10v_read_sp or d10v_read_fp when obtaining register
8699         values.
8700
8701 2003-03-05  Andrew Cagney  <[email protected]>
8702
8703         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8704         (struct d10v_unwind_cache): Delete field "frameless".  Replace
8705         "next_addr" with "sp_offset".  Add "r11_offset".
8706         (d10v_frame_unwind_cache): Update.
8707         (prologue_find_regs): Update.  When "mv r11, sp", save the
8708         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
8709         RN was saved in r11_offset.
8710
8711 2003-03-05  Andrew Cagney  <[email protected]>
8712
8713         * frame.c (deprecated_update_frame_pc_hack): Also update the the
8714         cached PC value in the next frame.
8715
8716 2003-03-05  Andrew Cagney  <[email protected]>
8717
8718         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8719         "id_unwind_cache" with "id".
8720         (frame_id_unwind): Delete declaration.
8721         * frame.c (frame_id_unwind): Delete function.
8722         (get_prev_frame): Call the frame id unwind method directly.  Store
8723         the returned next frame's ID value in NEXT_FRAME.  Note that there
8724         is a problem with the wrong unwind ID being called with the wrong
8725         unwind cache.
8726
8727 2003-03-05  Daniel Jacobowitz  <[email protected]>
8728
8729         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8730
8731 2003-03-05  James Ingham <[email protected]>
8732             Daniel Jacobowitz  <[email protected]>
8733
8734         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8735         (auto_cp_abi): New variable.
8736         (current_cp_abi, num_cp_abis): Make static.
8737         (CP_ABI_MAX): Define.
8738         (cp_abis): Turn into an array.
8739         (value_virtual_fn_field): Fix formatting.
8740         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
8741         takes a pointer.
8742         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8743         (list_cp_abis, _initialize_cp_abi): New functions.
8744         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
8745         declarations for cp_abis, num_cp_abis, current_cp_abi, and
8746         switch_to_cp_abi.  Update prototype for register_cp_abi.
8747         * Makefile.in (cp-abi.o): Update dependencies.
8748         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8749         instead of switch_to_cp_abi.
8750         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
8751         register_cp_abi.
8752         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8753         register_cp_abi.
8754         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8755
8756 2003-03-05  Daniel Jacobowitz  <[email protected]>
8757
8758         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8759         * dwarf2loc.c: Include "regcache.h".
8760         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
8761         register_size.
8762         * Makefile.in (dwarf2loc.o): Update dependencies.
8763
8764 2003-03-04  Theodore A. Roth  <[email protected]>
8765
8766         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8767         number of io registers reported by remote target is not a multiple of
8768         step.
8769
8770 2003-03-04  David Carlton  <[email protected]>
8771
8772         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8773         (lookup_symbol_aux_psymtabs): Update call to
8774         lookup_partial_symbol.
8775         (lookup_transparent_type, find_main_psymtab)
8776         (make_symbol_overload_list): Ditto.
8777
8778 2003-03-04  Kazu Hirata  <[email protected]>
8779
8780         * MAINTAINERS (Write after approval): Update my email address.
8781
8782 2003-03-03  Andrew Cagney  <[email protected]>
8783
8784         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8785         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8786         predicate.  Replace MAX_REGISTER_RAW_SIZE.
8787         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8788         MAX_REGISTER_VIRTUAL_SIZE.
8789         * regcache.c (legacy_max_register_raw_size): New function.
8790         (legacy_max_register_virtual_size): New function.
8791         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8792         (MAX_REGISTER_RAW_SIZE): Define.
8793         (legacy_max_register_raw_size): Declare.
8794         (legacy_max_register_virtual_size): Declare.
8795         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8796         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8797         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8798         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8799         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8800         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8801         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8802         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8803         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8804         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8805         * vax-tdep.c (vax_gdbarch_init): Update.
8806         * v850-tdep.c (v850_gdbarch_init): Update.
8807         * sparc-tdep.c (sparc_gdbarch_init): Update.
8808         * sh-tdep.c (sh_gdbarch_init): Update.
8809         * s390-tdep.c (s390_gdbarch_init): Update.
8810         * rs6000-tdep.c (rs6000_gdbarch_init): 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         * hppa-tdep.c (hppa_gdbarch_init): Update.
8820         * h8300-tdep.c (h8300_gdbarch_init): Update.
8821         * frv-tdep.c (frv_gdbarch_init): Update.
8822         * cris-tdep.c (cris_gdbarch_init): Update.
8823         * avr-tdep.c (avr_gdbarch_init): Update.
8824         * arm-tdep.c (arm_gdbarch_init): Update.
8825         * alpha-tdep.c (alpha_gdbarch_init): Update.
8826         * d10v-tdep.c (d10v_gdbarch_init): Do not set
8827         max_register_raw_size or max_register_virtual_size.
8828
8829 2003-03-03  David Carlton  <[email protected]>
8830
8831         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8832         SYMBOL_MATCHES_NAME, add comment.
8833         (SYMBOL_MATCHES_NATURAL_NAME): New.
8834         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8835         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8836         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8837         * symtab.c (lookup_partial_symbol): Use
8838         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
8839         unhelpful comment.
8840         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8841         SYMBOL_MATCHES_NAME.
8842         Fix for PR c++/33.
8843
8844 2003-03-03  David Carlton  <[email protected]>
8845
8846         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8847         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8848         by regexp matching against SYMBOL_NATURAL_NAME.
8849
8850 2003-03-03  David Carlton  <[email protected]>
8851
8852         * linespec.c (find_method): Extract code into collect_methods.
8853         (collect_methods): New.
8854
8855 2003-03-02  Mark Kettenis  <[email protected]>
8856
8857         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8858         get_frame_base.
8859
8860         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8861         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8862
8863 2003-03-02  Stephane Carrez  <[email protected]>
8864
8865         * arch-utils.c (generic_register_byte): Fix to use the loop index
8866         and not regnum when summing the size of all registers up to regnum.
8867
8868 2003-03-01  Andrew Cagney  <[email protected]>
8869
8870         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8871         FRAME_INIT_SAVED_REGS.
8872         * gdbarch.h, gdbarch.c: Regenerate.
8873         * stack.c (frame_info): Update.
8874         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8875         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8876         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8877         * ns32k-tdep.c (ns32k_pop_frame): Update.
8878         * mips-tdep.c (mips_pop_frame): Update.
8879         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8880         * ia64-tdep.c (ia64_frame_chain): Update.
8881         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8882         (ia64_frameless_function_invocation): Update.
8883         (ia64_init_extra_frame_info): Update.
8884         (ia64_pop_frame_regular): Update.
8885         * frame.h (struct frame_info): Update comment.
8886         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8887         * frame.c (frame_saved_regs_register_unwind): Update.
8888         (frame_saved_regs_register_unwind): Update.
8889         (deprecated_generic_get_saved_register): Update.
8890         * cris-tdep.c: Update comment.
8891         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8892         Rename macro.
8893         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8894         * x86-64-tdep.c (x86_64_init_abi): Update.
8895         * vax-tdep.c (vax_gdbarch_init): Update.
8896         * v850-tdep.c (v850_gdbarch_init): Update.
8897         * sparc-tdep.c (sparc_gdbarch_init): Update.
8898         * sh-tdep.c (sh_gdbarch_init): Update.
8899         * s390-tdep.c (s390_gdbarch_init): Update.
8900         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8901         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8902         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8903         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8904         * mips-tdep.c (mips_gdbarch_init): Update.
8905         * mcore-tdep.c (mcore_gdbarch_init): Update.
8906         * m68k-tdep.c (m68k_gdbarch_init): Update.
8907         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8908         * ia64-tdep.c (ia64_gdbarch_init): Update.
8909         * i386-tdep.c (i386_gdbarch_init): Update.
8910         * frv-tdep.c (frv_gdbarch_init): Update.
8911         * avr-tdep.c (avr_gdbarch_init): Update.
8912         * arm-tdep.c (arm_gdbarch_init): Update.
8913         * alpha-tdep.c (alpha_gdbarch_init): Update.
8914
8915 2003-03-01  Andrew Cagney  <[email protected]>
8916
8917         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8918         option enum and switch.  When no windows, set the interpreter to
8919         INTERP_CONSOLE.
8920
8921 2003-03-01  Andrew Cagney  <[email protected]>
8922
8923         * main.c (captured_main): Replace magic option characters with an
8924         enum.
8925
8926 2003-03-01  Andrew Cagney  <[email protected]>
8927
8928         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8929         INIT_EXTRA_FRAME_INFO.
8930         * gdbarch.h, gdbarch.c: Regenerate.
8931         * arm-tdep.c: Update comments.
8932         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8933         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8934         * frame.h, avr-tdep.c: Ditto.
8935         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8936         (create_new_frame, legacy_get_prev_frame): Ditto.
8937         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8938         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8939         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8940         deprecated_init_extra_frame_info instead of init_extra_frame_info.
8941         * x86-64-tdep.c (x86_64_init_abi): Ditto.
8942         * v850-tdep.c (v850_gdbarch_init): Ditto.
8943         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8944         * sh-tdep.c (sh_gdbarch_init): Ditto.
8945         * s390-tdep.c (s390_gdbarch_init): Ditto.
8946         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8947         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8948         * mips-tdep.c (mips_gdbarch_init): Ditto.
8949         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8950         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8951         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8952         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8953         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8954         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8955         * frv-tdep.c (frv_gdbarch_init): Ditto.
8956         * cris-tdep.c (cris_gdbarch_init): Ditto.
8957         * avr-tdep.c (avr_gdbarch_init): Ditto.
8958         * arm-tdep.c (arm_gdbarch_init): Ditto.
8959         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8960         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8961
8962 2003-03-01  Andrew Cagney  <[email protected]>
8963
8964         * gdbarch.sh (register_type): New function with predicate.
8965         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8966         * gdbarch.h, gdbarch.c: Re-generate.
8967         * arch-utils.c (generic_register_byte): Use generic_register_size.
8968         (generic_register_size): When available, use
8969         gdbarch_register_type.
8970         * regcache.c (init_regcache_descr): When available, initialize the
8971         register type array using gdbarch_register_type.  If the
8972         architecture supplies gdbarch_register_type, do not use the legacy
8973         regcache layout.
8974         * d10v-tdep.c (d10v_register_type): Replace
8975         d10v_register_virtual_type.
8976         (d10v_gdbarch_init): Set register_type instead of
8977         register_virtual_type.
8978
8979 2003-03-01  Andrew Cagney  <[email protected]>
8980
8981         * Makefile.in (ax-gdb.o): Update dependencies.
8982         * ax-gdb.c: Include "regcache.h".
8983         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8984         * findvar.c (value_of_register): Ditto.
8985         * infcmd.c (default_print_registers_info): Ditto.
8986
8987 2003-03-01  Mark Kettenis  <[email protected]>
8988
8989         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8990         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8991
8992 2003-03-01  Mark Kettenis  <[email protected]>
8993
8994         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8995         of STREQ.
8996
8997 2003-02-28  Daniel Jacobowitz  <[email protected]>
8998
8999         * Makefile.in (dwarf2loc.o): Update dependencies.
9000         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9001         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9002         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9003         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9004         (locexpr_tracepoint_var_ref): New function.
9005         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9006
9007 2003-02-28  Andrew Cagney  <[email protected]>
9008
9009         * regcache.c (register_size): New function.
9010         * regcache.h (register_size): Declare
9011         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9012         max_register_size instead of MAX_REGISTER_RAW_SIZE.
9013
9014 2003-02-28  David Carlton  <[email protected]>
9015
9016         * linespec.c (decode_compound): Extract code into find_method.
9017         (find_method): New.
9018
9019 2003-02-28  J. Brobecker  <[email protected]>
9020
9021         * Makefile.in: Add rules to build and link in observer.o.
9022
9023 2003-02-27  J. Brobecker  <[email protected]>
9024
9025         * observer.c: Minor comments edits.
9026
9027 2003-02-27  J. Brobecker  <[email protected]>
9028
9029         * observer.h, observer.c: New file.
9030
9031 2003-02-27  Andrew Cagney  <[email protected]>
9032
9033         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9034
9035 2003-02-27  Stephane Carrez  <[email protected]>
9036
9037         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9038         (M6812_OP_STS_EXT): Likewise.
9039         (m6811_prologue): Use the above to recognize prologue.
9040         (m6812_prologue): Likewise.
9041
9042 2003-02-27  David Carlton  <[email protected]>
9043
9044         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9045         SYMBOL_PRINT_NAME.
9046         (compare_psymbols): Ditto.
9047         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9048
9049 2003-02-27  Michael Snyder  <[email protected]>
9050
9051         * f-lang.c (build_fortran_types): New function.
9052         (_initialize_f_language): Gdbarch-register built-in fortran types.
9053         * doublest.c (extract_floating): Fix warning text.
9054
9055 2003-02-27  Andrew Cagney  <[email protected]>
9056
9057         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9058         predicate.  Replaces PUSH_DUMMY_FRAME.
9059         * gdbarch.h, gdbarch.c: Regnerate.
9060         * valops.c (hand_function_call): Update.  Call
9061         generic_push_dummy_frame directly.
9062         * vax-tdep.c (vax_gdbarch_init): Update.
9063         * sparc-tdep.c (sparc_gdbarch_init): Update.
9064         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9065         * m68k-tdep.c (m68k_gdbarch_init): Update.
9066         * hppa-tdep.c (hppa_gdbarch_init): Update.
9067         * alpha-tdep.c (alpha_gdbarch_init): Update.
9068         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9069         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9070         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9071         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9072         push_dummy_frame to generic_push_dummy_frame.
9073         * v850-tdep.c (v850_gdbarch_init): Ditto.
9074         * sh-tdep.c (sh_gdbarch_init): Ditto.
9075         * s390-tdep.c (s390_gdbarch_init): Ditto.
9076         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9077         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9078         * mips-tdep.c (mips_gdbarch_init): Ditto.
9079         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9080         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9081         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9082         * i386-tdep.c (i386_gdbarch_init): Ditto.
9083         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9084         * frv-tdep.c (frv_gdbarch_init): Ditto.
9085         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9086         * cris-tdep.c (cris_gdbarch_init): Ditto.
9087         * avr-tdep.c (avr_gdbarch_init): Ditto.
9088         * arm-tdep.c (arm_gdbarch_init): Ditto.
9089
9090 2003-02-26  Kevin Buettner  <[email protected]>
9091
9092         * mips-tdep.c (show_mips_abi): New function.
9093         (_initialize_mips_tdep): Use show_mips_abi() to implement the
9094         command ``show mips abi''.
9095
9096 2003-02-26  Jeff Johnston  <[email protected]>
9097
9098         From Elena Zannoni  <[email protected]>
9099         * dbxread.c (process_one_symbol): Only record line 0 if one or
9100         more sline entries have been seen for the function.
9101
9102 2003-02-26  Michael Chastain  <[email protected]>
9103
9104         * configure: Regenerate with autoconf 000227.
9105
9106 2003-02-26  Michael Chastain  <[email protected]>
9107
9108         Close PR build/660.
9109         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9110         for old libc5/glibc.
9111         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9112
9113 2003-02-26  Kris Warkentin  <[email protected]>
9114
9115         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9116         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9117
9118 2003-02-26  Michael Chastain  <[email protected]>
9119
9120         * configure.in: New variable HAVE_UINTPTR_T.
9121         * configure, config.in: Regenerated.
9122
9123 2003-02-26  Daniel Jacobowitz  <[email protected]>
9124
9125         Fix PR build/1097.
9126         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9127
9128 2003-02-25  Andrew Cagney  <[email protected]>
9129
9130         * frame.c (get_prev_frame): Add comment on check for
9131         inside_entry_func. Only check for inside_entry_file when not a
9132         dummy and not a sentinel.  Check that the new frame is not inner
9133         to the old frame.
9134
9135 2003-02-25  Andrew Cagney  <[email protected]>
9136
9137         * frame.c (frame_debug): New variable.
9138         (_initialize_frame): Add "set/show debug frame" command.
9139         (get_prev_frame): When frame_debug, print reason why unwind
9140         failed.
9141
9142 2003-02-25  Michael Chastain  <[email protected]>
9143
9144         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9145         to avoid uintptr_t definition problems.
9146
9147 2003-02-25  David Carlton  <[email protected]>
9148
9149         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9150         (SYMBOL_LINKAGE_NAME): Ditto.
9151         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9152         SYMBOL_LINKAGE_NAME.
9153         (struct general_symbol_info): Expand comment.
9154         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9155         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9156         (SYMBOL_MATCHES_REGEXP): Ditto.
9157         * symtab.c (symbol_natural_name): New function.
9158         * objfiles.h: Replace all uses of SYMBOL_NAME by
9159         DEPRECATED_SYMBOL_NAME.
9160         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9161         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9162         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9163         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9164         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9165         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9166         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9167         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9168         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9169         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9170         * ada-exp.y: Ditto.
9171         * ada-exp.y: Update copyright.
9172         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9173         * cp-valprint.c: Ditto.
9174
9175 2003-02-25  Jeff Johnston  <[email protected]>
9176
9177         * infptrace.c (detach): Do not flag error if ptrace detach fails
9178         and errno is set to ESRCH.
9179
9180 2003-02-24  Andrew Cagney  <[email protected]>
9181
9182         * infptrace.c (udot_info): Change type of udot_off to long.  Use
9183         paddr when printing udot_off's value.
9184
9185 2003-02-24  David Carlton  <[email protected]>
9186
9187         * symtab.c (make_symbol_overload_list): Only read in partial
9188         symtabs containing a matching partial symbol.
9189
9190 2003-02-24  David Carlton  <[email protected]>
9191
9192         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9193         do the comparison, not strcmp.
9194         * symfile.c (compare_psymbols): Ditto.
9195         * defs.h: Declare strcmp_iw_ordered.
9196         * utils.c (strcmp_iw_ordered): New function.
9197
9198 2003-02-24  Jim Blandy  <[email protected]>
9199
9200         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9201         support, shared libs): Remove my name from here, to better reflect
9202         reality.
9203
9204 2003-02-24  Kris Warkentin  <[email protected]>
9205
9206         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9207         (target_ops): Add to_have_continuable_watchpoint.
9208         * target.c (update_current_target): Add INHERIT line for
9209         to_have_continuable_watchpoint.
9210         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9211         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9212         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9213         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9214
9215 2003-02-24  Elena Zannoni  <[email protected]>
9216
9217         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9218         maintainership.
9219
9220 2003-02-24  Kris Warkentin  <[email protected]>
9221
9222         * solib.c (solib_open): Call target defined search function after
9223         failing with solib-search-path.
9224         * solist.h (target_so_ops): Add find_and_open_solib function hook and
9225         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9226
9227 2003-02-24  Kris Warkentin  <[email protected]>
9228
9229         * MAINTAINERS: Add myself to Write After section.
9230
9231 2003-02-23  Stephane Carrez  <[email protected]>
9232
9233         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9234
9235 2003-02-22  Stephane Carrez  <[email protected]>
9236
9237         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9238         (m68hc11_add_reggroups): New function.
9239         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9240         (m68hc11_gdbarch_init): Install the reggroups.
9241         (_initialize_m68hc11_tdep): Initialize them.
9242
9243 2003-02-21  James E Wilson  <[email protected]>
9244
9245         * MAINTAINERS: Update my email address.
9246
9247 2003-02-21  David Carlton  <[email protected]>
9248
9249         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9250
9251 2003-02-21  Daniel Jacobowitz  <[email protected]>
9252
9253         Based on a patch from Daniel Berlin ([email protected]).
9254         * symtab.h: Add opaque declarations of struct axs_value and
9255         struct agent_expr.
9256         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9257         (struct location_funcs): New type.
9258         (struct symbol): Add "loc" to aux_value.
9259         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9260         * dwarf2read.c: Include "dwarf2expr.h".
9261         (dwarf2_symbol_mark_computed): New function.
9262         (read_func_scope): Use it.
9263         (var_decode_location): New function.
9264         (new_symbol): Use it.
9265         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9266
9267         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9268         (dwarf2expr_h, dwarf2loc_h): New variables.
9269         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9270         (dwarf2expr.o, dwarf2loc.o): New rules.
9271         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9272         * buildsym.c (finish_block): Handle LOC_COMPUTED and
9273         LOC_COMPUTED_ARG.
9274         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9275         * m2-exp.y (yylex): Likewise.
9276         * printcmd.c (address_info, print_frame_args): Likewise.
9277         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9278         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9279         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9280         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9281         * symtab.c (lookup_block_symbol): Likewise.
9282
9283 2003-02-20  Adam Fedor  <[email protected]>
9284
9285         * symtab.h: Remove objc_specific struct
9286         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9287         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9288         Have language_objc use cplus_specific struct.
9289
9290 2003-02-20  Tom Tromey  <[email protected]>
9291
9292         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9293         TYPE_NAME, when printing a String value.  PR java/1075.
9294
9295 2003-02-20  Adam Fedor  <[email protected]>
9296
9297         * objc-lang.h (find_methods): Remove declaration.
9298         * objc-lang.c (find_methods): Make static.
9299
9300 2003-02-20  Christopher Faylor  <[email protected]>
9301
9302         * win32-nat.c (get_image_name): Check return value from
9303         ReadProcessMemory.
9304         (child_xfer_memory): Ditto.
9305
9306 2003-02-20  Alexandre Oliva  <[email protected]>
9307
9308         * configure.in (TARGET_SYSTEM_ROOT): Set default to
9309         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
9310         '${exec_prefix}' (in addition to the expansion thereof) as
9311         relocatable.
9312         * configure: Rebuilt.
9313
9314 2003-02-20  David Carlton  <[email protected]>
9315
9316         * symtab.c (search_symbols): Revert the search_symbols part of my
9317         2002-12-23 patch.  Add comment.
9318
9319 2002-02-20  Daniel Jacobowitz  <[email protected]>
9320
9321         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9322         * dbxread.c (elfstab_build_psymtabs): Don't call
9323         install_minimal_symbols.
9324         (stabsect_build_psymtabs): Likewise.
9325         * elfread.c (elf_symfile_read): Call install_minimal_symbols
9326         earlier.
9327         * somread.c (som_symfile_read): Call install_minimal_symbols
9328         and do_cleanups earlier.
9329         * nlmread.c (nlm_symfile_read): Likewise.
9330         * mdebugread.c (elfmdebug_build_psymtabs): Call
9331         install_minimal_symbols and make appropriate cleanups.
9332
9333 2003-02-20  Kevin Buettner  <[email protected]>
9334
9335         * solib.c (reload_shared_libraries): New function.
9336         (_initialize_solib): Add callbacks for ``set solib-search-path''
9337         and ``set solib-absolute-prefix''.
9338
9339 2003-02-20  David Carlton  <[email protected]>
9340
9341         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9342         expand comment.
9343         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9344         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9345         * ada-typeprint.c (ada_typedef_print): Ditto.
9346         * ax-gdb.c (gen_var_ref): Ditto.
9347         * breakpoint.c (print_one_breakpoint): Ditto.
9348         * buildsym.c (finish_block): Ditto.
9349         * c-valprint.c (c_val_print): Ditto.
9350         * expprint.c (print_subexp): Ditto.
9351         * findvar.c (locate_var_value): Ditto.
9352         * infcmd.c (jump_command): Ditto.
9353         * linespec.c (decode_line_2, decode_compound): Ditto.
9354         * maint.c (maintenance_translate_address): Ditto.
9355         * objc-lang.c (compare_selectors, compare_classes): Ditto.
9356         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9357         Ditto.
9358         * p-valprint.c (pascal_val_print): Ditto.
9359         * stabsread.c (define_symbol): Ditto.
9360         * stack.c (print_frame, frame_info, print_block_frame_locals)
9361         (print_frame_arg_vars, return_command): Ditto.
9362         * symfile.c (compare_symbols, compare_psymbols): Ditto.
9363         * symmisc.c (print_symbol): Ditto.
9364         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9365         (compare_search_syms, print_symbol_info, print_msymbol_info)
9366         (rbreak_command): Ditto.
9367         * tracepoint.c (tracepoints_info): Ditto.
9368         * typeprint.c (typedef_print): Ditto.
9369         * valops.c (value_of_variable, hand_function_call): Ditto.
9370         * cli/cli-cmds.c (edit_command, list_command): Ditto.
9371         * ada-typeprint.c: Update Copyright.
9372         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9373         * tracepoint.c, cli/cli-cmds.c: Ditto.
9374
9375 2003-02-20  Kevin Buettner  <[email protected]>
9376
9377         * frame.c (generic_unwind_get_saved_register): Make non-static.
9378         * frame.h (generic_unwind_get_saved_register): Declare.
9379         * mips-tdep.c (read_next_frame_reg): Fetch register from
9380         current regcache when frame is NULL.
9381         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9382         that must be NULL.
9383         (mips_get_saved_register): Call generic_unwind_get_saved_register()
9384         instead of frame_register_unwind().
9385
9386 2003-02-20  Andrew Cagney  <[email protected]>
9387
9388         * remote-sim.c (gdbsim_insert_breakpoint)
9389         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9390         code.
9391
9392 2003-02-20  Andrew Cagney  <[email protected]>
9393
9394         * remote.c (_initialize_remote): Add commands "set/show remote
9395         hardware-watchpoint-limit" and "set/show remote
9396         hardware-breakpoint-limit".
9397         (remote_hw_watchpoint_limit): Initialize to -1.
9398         (remote_hw_breakpoint_limit): Ditto.
9399         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9400
9401 2003-02-19  Raoul Gough  <[email protected]>
9402
9403         * coff-pe-read.c: New file - support reading of minimal symbols from a
9404         portable executable using the export table.
9405         * coff-pe-read.h: New file.
9406         * coffread.c: Include coff-pe-read.h.
9407         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9408         debugging symbols found.
9409         * Makefile.in (SFILES): Add coff-pe-read.o.
9410         (coff_pe_read_h): Define.
9411         (COMMON_OBS): Add coff-pe-read.o.
9412         (coffread.o): Add coff_pe_read_h dependency.
9413         (coff-pe-read.o): New target.
9414
9415 2003-02-19  David Carlton  <[email protected]>
9416
9417         * Makefile.in (SFILES): Add block.c.
9418         (block_h): New.
9419         (COMMON_OBS): Add block.o.
9420         (block.o): New.
9421         (x86-64-tdep.o): Add $(block_h).
9422         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9423         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9424         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9425         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9426         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9427         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9428         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9429         * value.h: Add opaque declaration for struct block.
9430         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9431         * ada-lang.h: Ditto.
9432         * x86-64-tdep.c: #include "block.h"
9433         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9434         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9435         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9436         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9437         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9438         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9439         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9440         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9441         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9442         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9443         * symtab.c (block_function): Ditto.
9444         (contained_in): Ditto.
9445         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9446         block.h.  Add opaque declaration for struct block.
9447         * symtab.h: Move block_function and contained_in declarations to
9448         block.h.  Add opaque declarations for struct block, struct
9449         blockvector.
9450         (struct block): Move to block.h.
9451         (struct blockvector): Ditto.
9452         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9453         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9454         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9455         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9456         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9457         Ditto.
9458         * block.c: New file.
9459         * block.h: New file.
9460
9461 2003-02-19  Theodore A. Roth  <[email protected]>
9462
9463         * avr-tdep.c (avr_extract_return_value): Remove function.
9464         (avr_store_return_value): Remove function.
9465         (avr_extract_struct_value_address): Remove function.
9466         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9467
9468 2003-02-19  Andrew Cagney  <[email protected]>
9469
9470         * rs6000-tdep.c: Include "gdb_assert.h".
9471         (registers_e500): Add "acc" and "spefscr".
9472         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9473         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9474         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
9475         really is "r0".
9476         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9477
9478 2003-02-18  Keith Seitz  <[email protected]>
9479
9480         * Makefile.in: Add gdbtk-interps.c.
9481
9482 2003-02-18  Kevin Buettner  <[email protected]>
9483
9484         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9485         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9486
9487 2003-02-18  Andrew Cagney  <[email protected]>
9488
9489         * symtab.h (struct objfile): Add opaque declaration.
9490
9491 2003-02-18  Elena Zannoni  <[email protected]>
9492
9493         From Jim Ingham   <[email protected]>:
9494         * dbxread.c (process_one_symbol): Use last_function_start rather
9495         than function_start_offset to find the real beginning of the
9496         current function.  The latter is just the text section offset on
9497         some systems, the former is always the real function start.
9498
9499 2003-02-17  Andrew Cagney  <[email protected]>
9500
9501         * configure.in: Revert ${target} != ${host}.
9502
9503 2003-02-17  Andrew Cagney  <[email protected]>
9504
9505         * configure.in (Makefile): Use the test ${target} != ${host},
9506         instead of the absence of the "nm.h" file, to determine of the
9507         configuration non-native.
9508         * configure: Regenerate.
9509
9510 2003-02-14  Elena Zannoni  <[email protected]>
9511
9512         From Brian Ford  <[email protected]>
9513
9514         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9515         conditionalize tui_active test.
9516         (lookup_cmd_1): Ditto.
9517
9518 2003-02-14  Mark Kettenis  <[email protected]>
9519
9520         * configure.in: Add check for _etext.
9521         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9522         available.
9523         * config.in, configure: regenerated.
9524
9525 2003-02-14  Daniel Jacobowitz  <[email protected]>
9526
9527         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9528
9529 2003-02-14  Andrew Cagney  <[email protected]>
9530
9531         * main.c (tui_version): Delete variable.
9532         (captured_main): When --tui, set interpreter_p to "tui" instead of
9533         enabling tui_version.
9534         * printcmd.c (display_command) [TUI]: Test tui_active instead of
9535         tui_version.
9536         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9537         * cli/cli-cmds.c (disassemble_command): Ditto.
9538         * defs.h (tui_version): Delete declaration.
9539         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9540         (tui-interp.o): Add rules.
9541         (SUBDIR_TUI_OBS): Add "tui-interp.o".
9542
9543 2003-02-14  Christopher Faylor  <[email protected]>
9544
9545         * win32-nat.c (register_loaded_dll): Correctly set address range for
9546         just-loaded dll.
9547
9548 2003-02-12  Jason Molenda  ([email protected])
9549
9550         * symmisc.c (print_objfile_statistics): Include information about
9551         the number of psymtabs and symtabs in each object file.
9552
9553 2003-02-13  Keith R Seitz  <[email protected]>
9554
9555         * main.h (struct captured_main_args): Add interpreter_p.
9556         * main.c (captured_main): Initialize interpreter_p from context.
9557         * gdb.c (main): Set interpreter_p argument.
9558         * Makefile.in (gdb.o): Add dependency for interps.h.
9559
9560 2003-02-12  Andrew Cagney  <[email protected]>
9561
9562         * event-top.c (cli_command_loop): Delete declaration.
9563         (_initialize_event_loop): Delete function setting event_loop_hook.
9564         * event-top.h (cli_command_loop): Declare.  Update copyright.
9565         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
9566         * interps.c (current_interp_command_loop): When event_loop_p, call
9567         cli_command_loop.
9568
9569 2003-02-12  Andrew Cagney  <[email protected]>
9570
9571         * interps.h (interp_command_loop_ftype): Change return type to
9572         void.
9573
9574 2003-02-12  Michal Ludvig  <[email protected]>
9575
9576         * x86-64-tdep.c (x86_64_extract_return_value)
9577         (x86_64_store_return_value): Use regcache instead of regbuf.
9578         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9579         * x86-64-linux-nat.c (fill_gregset): Use regcache.
9580
9581 2003-02-11  Andrew Cagney  <[email protected]>
9582
9583         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9584         * aclocal.m4: Regenerate.
9585         * configure: Regenerate.
9586
9587         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9588         TCL_LD_SEARCH_FLAGS.
9589
9590 2003-02-10  Michal Ludvig  <[email protected]>
9591
9592         * dwarf2cfi.c: Reindented.
9593
9594 2003-02-09  Andrew Cagney  <[email protected]>
9595
9596         * interps.c (clear_interpreter_hooks): Convert function definition
9597         to ISO C.
9598
9599 2003-02-07  David Carlton  <[email protected]>
9600
9601         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9602
9603 2003-02-07  Kevin Buettner  <[email protected]>
9604
9605         * gdbtypes.h (struct main_type): Move ``length'' field from here...
9606         (struct type): ...to here.
9607         (TYPE_LENGTH): Adjust to reflect different location of ``length''
9608         field.
9609         * gdbtypes.c (make_qualified_type): Set length on newly created type.
9610         (replace_type): Set length on all type variants for a given type.
9611
9612 2003-02-07  Andrew Cagney  <[email protected]>
9613
9614         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9615         <sys/stat.h>.
9616         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9617
9618 2003-02-06  Andrew Cagney  <[email protected]>
9619
9620         * Makefile.in (symm-nat.o): Update dependencies.
9621         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9622         (lynx-nat.o, ia64-linux-nat.): Ditto.
9623         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9624         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9625         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9626
9627         * Makefile.in (inflow_h): Define.
9628         (procfs.o, inflow.o, procfs.o): Update dependencies.
9629         * inftarg.c (child_stop): Delete extern declaration of
9630         inferior_process_group.  Include "inflow.h".
9631         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
9632         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9633         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
9634         (our_process_group, inferior_process_group): Extern declarations.
9635
9636         * procfs.c: Include "gdb_assert.h".
9637
9638         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9639         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9640         * jv-typeprint.c (java_type_print_base): Ditto.
9641         * typeprint.c (typedef_print): Eliminate STREQ.
9642         * cli/cli-script.c (define_command, define_command): Ditto.
9643         * main.c (captured_main): Ditto.
9644         * values.c (lookup_internalvar): Ditto.
9645         * utils.c (safe_strerror, parse_escape): Eliminate assignment
9646         within `if' conditional.
9647         * linespec.c (decode_line_2): Ditto.
9648         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9649         (bfd_openw_with_cleanup): Ditto.
9650
9651 2003-02-07  Mark Kettenis  <[email protected]>
9652
9653         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9654         legacy_extract_return_value and store_return_value to
9655         legacy_return_value.
9656
9657 2003-02-06  Raoul Gough  <[email protected]>
9658
9659         * win32-nat.c (get_relocated_section_addrs): New function.  Find
9660         section load addresses for symbol handling in relocated DLLs.
9661         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9662
9663 2003-02-05  Fred Fish  <[email protected]>
9664
9665         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9666         '=' and '!='.
9667         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9668         with '&' and '=='.
9669         (angel_RDI_info): Ditto.
9670         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9671         with '&' and '!='.
9672         (threads_continue_all_with_signals): Ditto.
9673
9674 2003-02-05  Jim Ingham <[email protected]>
9675             Keith Seitz  <[email protected]>
9676             Elena Zannoni  <[email protected]>
9677             Andrew Cagney  <[email protected]>
9678
9679         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9680         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9681         (SUBDIR_MI_OBS): Add "mi-interp.o".
9682         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9683         (SFILES): Add "interps.c".
9684         (COMMON_OBS): Add "interps.o".
9685         (interps_h, mi_main_h): Define.
9686         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9687         (mi-main.o, main.o, event-top.o): Update dependencies.
9688         * cli/cli-interp.c: New file.
9689         * interps.h, interps.c: New files.
9690         * top.c: (gdb_init): Don't install the default interpreter, handed
9691         by captured_main.
9692         * main.c: Include "interps.h".
9693         (interpreter_p): Note that it should malloc'ed.
9694         (captured_command_loop): Call current_interp_command_loop.
9695         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
9696         xfree and xstrdup when updating interpreter_p.  Install the
9697         default interpreter.  Add hack to stop mi1's copyright notice
9698         being encoded.
9699         * event-top.h (gdb_setup_readline): Declare.
9700         (gdb_disable_readline): Declare.
9701         * event-top.c: Include "interps.h".
9702         (display_gdb_prompt): Call current_interp_display_prompt_p.
9703         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9704         gdb_stdlog, and gdb_stdtarg.
9705         (_initialize_event_loop): Don't call gdb_setup_readline.
9706         * cli-out.c (cli_out_set_stream): New function.
9707         * cli-out.h (cli_out_set_stream): Declare.
9708
9709 2003-02-06  Mark Kettenis  <[email protected]>
9710
9711         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9712         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
9713         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9714         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9715         config/i386/i386v42mp.mt: Removed.
9716
9717 2003-02-05  Mark Kettenis  <[email protected]>
9718
9719         * configure.tgt (*-*-solaris*): Set gdb_osabi to
9720         GDB_OSABI_SOLARIS.
9721
9722 2003-02-05  Michael Chastain  <[email protected]>
9723
9724         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9725         2.12.1 and earlier versions.
9726
9727 2003-02-05  Andrew Cagney  <[email protected]>
9728
9729         Remove orphaned hosts, targets and files.
9730         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9731         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9732         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9733         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9734         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9735         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9736         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9737         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9738         * config/sparc/tm-sp64sim.h: Delete.
9739         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9740         hosts.
9741         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9742         mips*-dec-mach3* targets.
9743
9744 2003-02-04  Michael Chastain  <[email protected]>
9745
9746         * NEWS: Fix typo: sepcifying -> specifying.
9747
9748 2003-02-04  Michael Chastain  <[email protected]>
9749
9750         * dwarfread.c: Add documentation on the state of dwarf-1,
9751         looking towards obsoletion.
9752
9753 2003-02-03  Michael Chastain  <[email protected]>
9754
9755         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9756         gdb/testsuite/gdb.c++/pr-1023.exp.
9757
9758 2003-02-04  Andrew Cagney  <[email protected]>
9759
9760         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9761         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9762
9763         * utils.c (init_page_info): Delete reference to MPW in comments.
9764         * main.c (captured_main): Delete #ifdef MPW.
9765
9766 2003-02-04  Andrew Cagney  <[email protected]>
9767
9768         * NEWS: Note that the m32r-*-elf* is obsolete.
9769         * monitor.c (monitor_expect): Obsolete reference to m32r.
9770         * configure.tgt: Mark m32r-*-elf* as obsolete.
9771         * MAINTAINERS: Mark m32k as obsolete.
9772         * m32r-rom.c: Obsolete file.
9773         * config/m32r/m32r.mt: Obsolete file.
9774         * config/m32r/tm-m32r.h: Obsolete file.
9775         * m32r-stub.c: Obsolete file.
9776         * m32r-tdep.c: Obsolete file.
9777
9778 2003-02-04  Andrew Cagney  <[email protected]>
9779
9780         * NEWS: Mention that the z8k-zilog-none is obsolete.
9781         * MAINTAINERS: Mark z8k as obsolete.
9782         * configure.tgt: Obsolete the z8k-*-coff* target.
9783         * config/z8k/z8k.mt: Obsolete file.
9784         * config/z8k/tm-z8k.h: Obsolete file.
9785         * z8k-tdep.c: Obsolete file.
9786
9787 2003-02-04  Andrew Cagney  <[email protected]>
9788
9789         * NEWS: Mention that the mn10200-elf is obsolete.
9790         * configure.tgt: Obsolete mn10200-*-* target.
9791         * breakpoint.c (update_breakpoints_after_exec): Update comment to
9792         mention that the mn10200 is obsolete.
9793         * breakpoint.h: Ditto.
9794         * MAINTAINERS: Mark the mn10200-elf as obsolete.
9795         * config/mn10200/mn10200.mt: Obsolete file.
9796         * config/mn10200/tm-mn10200.h: Obsolete file.
9797         * mn10200-tdep.c: Obsolete file.
9798
9799 2003-02-04  Andrew Cagney  <[email protected]>
9800
9801         * MAINTAINERS: Mark h8500 as obsolete.
9802         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9803         * findvar.c (value_from_register): Ditto.
9804         * h8500-tdep.c: Mark file as obsolete.
9805         * config/h8500/h8500.mt: Ditto.
9806         * config/h8500/tm-h8500.h: Ditto.
9807         * NEWS: Mention that h8500 is obsolete.
9808
9809 2003-02-04  David Carlton  <[email protected]>
9810
9811         * objfiles.c (allocate_objfile): Always set name.  Add comment at
9812         start of function.
9813         * jv-lang.c (get_dynamics_objfile): Add comment.
9814
9815 2003-02-04  David Carlton  <[email protected]>
9816
9817         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9818         * printcmd.c (build_address_symbolic): Replace uses of
9819         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9820         SYMBOL_NAME, and asm_demangle.
9821         Update copyright.
9822
9823 2003-02-04  David Carlton  <[email protected]>
9824
9825         * linespec.c (decode_compound): Extract code into
9826         lookup_prefix_sym.
9827         (lookup_prefix_sym): New function.
9828
9829 2003-02-04  David Carlton  <[email protected]>
9830
9831         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9832         FLOAT_COERCION_BADNESS.
9833         * gdbtypes.c (rank_one_type): Replace all uses of
9834         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9835
9836 2003-02-04  Jim Blandy  <[email protected]>
9837
9838         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9839         section, let dwarf_macinfo_section point to it, not
9840         dwarf_loc_section.
9841
9842 2003-02-04  Daniel Jacobowitz  <[email protected]>
9843
9844         Pointed out by Anton Blanchard <[email protected]>.
9845         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9846         (ppc_linux_at_sigtramp_return_path): Use it.
9847
9848 2003-02-04  Daniel Jacobowitz  <[email protected]>
9849
9850         * defs.h (streq): Add prototype.
9851         * utils.c (streq): New function.
9852
9853         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9854         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9855         * mdebugread.c (new_symbol): Likewise.
9856         * stabsread.c (define_symbol): Likewise.
9857         * coffread.c (process_coff_symbol): Likewise.
9858         * dwarfread.c (new_symbol): Likewise.
9859
9860         * minsyms.c (prim_record_minimal_symbol_and_info): Use
9861         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
9862         here.
9863         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9864         SYMBOL_INIT_DEMANGLED_NAME.
9865         * objfiles.c: Include "hashtab.h".
9866         (allocate_objfile): Call htab_set_functions_ex for the
9867         demangled_names_hash.
9868         (free_objfile): Call htab_delete for the demangled_names_hash.
9869         * objfiles.h (struct htab): Add declaration.
9870         (struct objfile): Add demangled_names_hash.
9871         * symfile.c: Include "hashtab.h".
9872         (reread_symbols): Call htab_delete for the demangled_names_hash.
9873         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9874         SYMBOL_NAME in the bcache.
9875         * symtab.c: Include "hashtab.h".  Update comments.
9876         (create_demangled_names_hash, symbol_set_names): New functions.
9877         (symbol_find_demangled_name): New function, broken out from
9878         symbol_init_demangled_names.
9879         (symbol_init_demangled_names): Use it.
9880         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9881         (SYMBOL_SET_NAMES): New macro.
9882         (symbol_set_names): Add prototype.
9883
9884 2003-02-03  Jim Blandy  <[email protected]>
9885
9886         Use a single, consistent representation for an empty minimal
9887         symbol table in an objfile.
9888         * objfiles.c (terminate_minimal_symbol_table): New function.
9889         (allocate_objfile): Call it.
9890         * objfiles.h (terminate_minimal_symbol_table): New declaration.
9891         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9892         non-NULL.
9893         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9894         objfile has minimal symbols, compare minimal_symbol_count to zero,
9895         instead of comparing msymbols with NULL.
9896         * objfiles.c (have_minimal_symbols): Same.
9897         * solib-sunos.c (solib_add_common_symbols): Call
9898         terminate_minimal_symbol_table.
9899         * symfile.c (reread_symbols): Same.
9900
9901 2003-02-03  Kevin Buettner  <[email protected]>
9902
9903         * s390-tdep.c (s390_address_class_type_flags)
9904         (s390_address_class_type_flags_to_name)
9905         (s390_address_class_name_to_type_flags): New functions.
9906         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9907         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9908
9909 2003-02-03  Michael Snyder  <[email protected]>
9910
9911         * arm-tdep.c: Fix spell-o in comment.
9912
9913 2003-02-03  Michal Ludvig  <[email protected]>
9914
9915         * dwarf2cfi.c (pointer_encoding): Added new parameter.
9916         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9917         error messages to contain BFD filename.
9918
9919 2003-02-02  Elena Zannoni  <[email protected]>
9920
9921         Fix PR gdb/742 gdb/743 gdb/877
9922         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9923         (do_mixed_source_and_assembly): Use
9924         make_cleanup_ui_out_tuple_begin_end and
9925         make_cleanup_ui_out_tuple_begin_end.
9926         (do_mixed_source_and_assembly): Ditto.
9927         * thread.c (do_captured_list_thread_ids): Ditto.
9928         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9929         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9930         ui_out_tuple_end): Delete prototypes.
9931         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9932         ui_out_list_end, ui_out_tuple_end): Delete.
9933
9934         From Kevin Buettner  <[email protected]>:
9935         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9936         * ui-out.c (make_cleanup_ui_out_table_begin_end)
9937         (do_cleanup_table_end):  New functions.
9938         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9939         Use cleanups to invoke_ui_out_tuple_end().
9940         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9941         * cli/cli-setshow.c (cmd_show_list): Use
9942         make_cleanup_ui_out_tuple_begin_end.
9943
9944 2003-02-02  Andrew Cagney  <[email protected]>
9945
9946         * frame.c (frame_unwind_register): New function.
9947         (frame_unwind_unsigned_register): Use.
9948         (frame_unwind_signed_register): Use.
9949         (frame_read_register): New function.
9950         * frame.h (frame_unwind_register): Declare.
9951         (frame_read_register): Declare.
9952
9953         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9954         and frame_unwind_register instead of read_memory, write_register
9955         and deprecated_write_register_bytes.
9956
9957 2003-02-02  Andrew Cagney  <[email protected]>
9958
9959         * frame.h: Note that namelen can be negative.
9960         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9961         NAME's length.
9962
9963         * NEWS: Mention that the d10v's `regs' command is deprecated.
9964         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9965         (d10v_print_registers_info): New function.
9966         (show_regs): Call d10v_print_registers_info.
9967         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9968
9969 2003-02-02  Mark Kettenis  <[email protected]>
9970
9971         * stack.c (print_frame_info): Restore call to annotate_frame_begin
9972         lost in the previous patch.
9973
9974 2003-02-01  Andrew Cagney  <[email protected]>
9975
9976         From 2002-11-09 Jason Molenda ([email protected])
9977         * stack.c (print_frame_info_base): Output complete FRAME tuple
9978         for synthesized frames.
9979
9980 2003-02-02  Andrew Cagney  <[email protected]>
9981
9982         * mips-nat.c (zerobuf): Delete.
9983         (fetch_inferior_registers): Alloc local zerobuf.
9984         (fetch_core_registers): Alloc local zerobuf.
9985         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9986         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9987         * thread-db.c (thread_db_store_registers): Ditto.
9988         * sh-tdep.c (sh_do_register): Ditto.
9989         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9990         * remote-sim.c (gdbsim_store_register): Ditto.
9991         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9992         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9993         * monitor.c (monitor_supply_register): Ditto.
9994         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9995         * mips-nat.c (fetch_inferior_registers): Ditto.
9996         * m68klinux-nat.c (fetch_register): Ditto.
9997         * lynx-nat.c (fetch_inferior_registers): Ditto.
9998         (fetch_inferior_registers): Ditto.
9999         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10000         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10001         (hpux_thread_store_registers): Ditto.
10002         * hppah-nat.c (fetch_register): Ditto.
10003         * hppab-nat.c (fetch_register): Ditto.
10004         * hppa-tdep.c (pa_register_look_aside): Ditto.
10005         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10006         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10007
10008 2003-02-01  Andrew Cagney  <[email protected]>
10009
10010         * gdbarch.sh: Explictly specify all method levels.  When a
10011         variable with an empty level, provide a non-multi-arch default.
10012         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10013         * gdbarch.h: Re-generate.
10014         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
10015         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10016
10017 2003-02-01  Andrew Cagney  <[email protected]>
10018
10019         * defs.h (host_pointer_to_address): Delete declaration.
10020         (address_to_host_pointer): Delete declaration.
10021         * utils.c (host_pointer_to_address): Delete function.
10022         (address_to_host_pointer): Delete function.
10023         * procfs.c (procfs_address_to_host_pointer): New function.
10024         * procfs.c (proc_set_watchpoint): Use.
10025         (procfs_can_use_hw_breakpoint): Update comments.
10026         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10027         (som_solib_add): Use.
10028         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10029         * hppa-tdep.c (unwind_command): Use.
10030
10031 2003-02-01  Andrew Cagney  <[email protected]>
10032
10033         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10034         strlen d_name.
10035
10036         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10037         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10038         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10039         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10040         (define_symbol): Update.
10041         * symfile.c (generic_load): Remove references to nindy.
10042         * symtab.c: Remove references to nindy.
10043
10044 2003-02-01  Andrew Cagney  <[email protected]>
10045
10046         * infcmd.c (print_float_info): Delete code conditional on
10047         FLOAT_INFO.
10048         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
10049         * config/m68k/nm-apollo68b.h: Ditto.
10050         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
10051         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10052         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10053
10054 2003-02-01  Mark Kettenis  <[email protected]>
10055
10056         * config/i386/tm-i386os9k.h: Removed.
10057
10058         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10059         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10060         they're identical to i[3456]86-*-sysv* now.
10061         * config/i386/i386v32.mh: Removed.
10062         * config/i386/xm-i386v32.h: Removed.
10063         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10064
10065         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10066
10067         * config/i386/i386dgux.mh: Removed.
10068         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10069
10070         * configure.in: Fix typo.
10071         * configure: Regenerated.
10072
10073 2003-01-31  David Carlton  <[email protected]>
10074
10075         * dwarf2read.c (dwarf2_locate_sections): Set
10076         dwarf_ranges_section.
10077
10078 2003-01-31  Andrew Cagney  <[email protected]>
10079
10080         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10081         * utils.c: Update comments documenting legitimate uses of PTR.
10082
10083         * utils.c: Re-indent.
10084
10085         * config/djgpp/fnchange.lst: Delete nindy files.
10086         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10087         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10088         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10089         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10090         * nindy-share/README, nindy-share/Onindy.c: Delete files.
10091         * nindy-tdep.c, nindy-share/Makefile: Delete files.
10092         * Makefile.in (init.c): Remove nindy references.
10093         (saber_gdb): Delete rule.
10094         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10095         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10096         and a68v-nat.c.
10097         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10098         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10099         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10100         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10101         nindy-share/stop.h.
10102         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10103         * saber.suppress: Delete file.
10104
10105 2003-01-31  Daniel Jacobowitz  <[email protected]>
10106
10107         * dbxread.c (stabs_data): New static variable.
10108         (fill_symbuf): Support an in-memory buffer for stabs data.
10109         (stabs_seek): New function.
10110         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10111         (read_ofile_symtab): Use stabs_seek.
10112         (elfstab_build_psymtabs): Take an asection* instead of
10113         an offset and size.  Relocate the stabs data if necessary.
10114         Save the section* for dbx_psymtab_to_symtab.
10115         * dwarf2read.c: Add section variables for each debug section.
10116         (dwarf2_locate_sections): Fill them in.
10117         (dwarf2_read_section): Take an asection* argument.
10118         Relocate the section contents if necessary.
10119         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10120         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10121         it to dwarf2_read_section.
10122         (dwarf2_build_frame_info): Update callers.
10123         * elfread.c (elf_symfile_read): Update call to
10124         elfstab_build_psymtabs.
10125         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10126         (DBX_STAB_SECTION): New macro.
10127         * stabsread.h (elfstab_build_psymtabs): Update prototype.
10128         * symfile.c (symfile_dummy_outputs): New function.
10129         (symfile_relocate_debug_section): New function.
10130         * symfile.h (symfile_relocate_debug_section): Add prototype.
10131
10132 2003-01-31  Richard Henderson  <[email protected]>
10133
10134         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10135         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
10136         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10137         * alpha-tdep.c (alpha_register_name): Add "unique".
10138         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10139         (ALPHA_UNIQUE_REGNUM): New.
10140         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10141
10142 2003-01-31  Andrew Cagney  <[email protected]>
10143
10144         * README: Remove reference to Ericsson 1800 monitor.
10145         * Makefile.in (remote-es.o): Delete rule.
10146         (ALLDEPFILES): Delete remote-es.c.
10147         * remote-es.c: Delete file.
10148         * config/m68k/es1800.mt: Delete file.
10149         * config/djgpp/fnchange.lst: Update.
10150         * configure.tgt: Delete m68*-ericsson-* target.
10151
10152 2003-01-31  Adam Fedor  <[email protected]>
10153
10154         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10155         Remove duplicate/shadowing variable of same name.
10156
10157 2003-01-30  Jim Blandy  <[email protected]>
10158
10159         * symfile.c (find_separate_debug_file): Assert that the objfile's
10160         directory name we compute ends with a slash, and then assume that
10161         that's so everywhere we use it.
10162
10163 2003-01-30  Daniel Jacobowitz  <[email protected]>
10164
10165         * valops.c (value_assign): Flush frame cache after stores to memory
10166         also.
10167
10168 2003-01-30  Andrew Cagney  <[email protected]>
10169
10170         * Makefile.in (mon960-rom.o): Delete rule.
10171         * mon960-rom.c: Delete file.
10172
10173 2003-01-30  Andrew Cagney  <[email protected]>
10174
10175         * d10v-tdep.c: Include "frame-unwind.h".
10176         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10177         list.
10178         (next_addr, uses_frame): Delete.
10179         (struct d10v_unwind_cache): Define.
10180         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10181         Use info instead of next_addr and uses_frame globals.
10182         (d10v_frame_init_saved_regs): Delete function.
10183         (d10v_init_extra_frame_info): Delete function.
10184         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10185         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10186         init_frame_pc or frame_saved_pc.
10187         (d10v_pop_frame): Delete function.
10188         (do_d10v_pop_frame): Delete function.
10189         (d10v_frame_chain): Delete function.
10190         (d10v_frame_chain_valid): Delete function.
10191         (d10v_frame_pc_unwind): New function.
10192         (d10v_frame_id_unwind): New function.
10193         (saved_regs_unwinder): New function.
10194         (d10v_frame_register_unwind): New function.
10195         (d10v_frame_pop): New function.
10196         (d10v_frame_unwind): New variable.
10197         (d10v_frame_p): New function.
10198         (d10v_frame_saved_pc): Delete function.
10199         * Makefile.in (d10v-tdep.o): Update dependencies.
10200
10201 2003-01-30  J. Brobecker  <[email protected]>
10202
10203         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10204         causing some regressions due to a change in the default value
10205         for this macro.
10206
10207 2003-01-29  Richard Henderson  <[email protected]>
10208             Elena Zannoni  <[email protected]>
10209             Daniel Jacobowitz  <[email protected]>
10210
10211         Fix PR gdb/961.
10212         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
10213         variables.
10214         (RANGES_SECTION): New.
10215         (dwarf_ranges_buffer): New variable.
10216         (struct comp_unit_head): Add member "die".
10217         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10218         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10219         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10220         (dwarf2_locate_sections): Likewise.
10221         (dwarf2_build_psymtabs): Read .debug_ranges.
10222         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10223         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
10224         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10225         Look for DW_AT_ranges and return the bounding box.
10226
10227 2003-01-29  Brian Ford <[email protected]>
10228
10229         * win32-nat.c (cygwin_pid): Removed as unused.
10230         (child_attach): Try fall back to Cygwin pid.
10231
10232 2003-01-29  Jim Blandy  <[email protected]>
10233
10234         * objfiles.h (struct objfile): Doc fix.
10235
10236 2003-01-29  Andrew Cagney  <[email protected]>
10237
10238         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10239         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10240         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10241         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10242         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10243         (FRAME_SAVED_PC): Change to a function with predicate.
10244         * gdbarch.h, gdbarch.c: Re-generate.
10245
10246 2003-01-28  Andrew Cagney  <[email protected]>
10247
10248         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10249
10250         * complaints.c (complain): Delete function.
10251         * complaints.h (struct deprecated_complaint): Delete definition.
10252         (complain): Delete declaration.
10253
10254 2003-01-28  Kevin Buettner  <[email protected]>
10255
10256         * mips-tdep.c (mips_init_extra_frame_info): Return early for
10257         dummy frames.
10258
10259 2003-01-27  Andrew Cagney  <[email protected]>
10260
10261         * sentinel-frame.h, sentinel-frame.c: New files.
10262         * Makefile.in (frame.o): Update dependencies.
10263         (SFILES): Add sentinel-frame.c.
10264         (sentinel_frame_h): Define.
10265         (COMMON_OBS): Add sentinel-frame.o.
10266         (sentinel-frame.o): Specify dependencies.
10267         * frame.c: Include "sentinel-frame.h".
10268         (frame_register_unwind): Rewrite assuming that there is always a a
10269         ->next frame.
10270         (frame_register, generic_unwind_get_saved_register): Ditto.
10271         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10272         (create_sentinel_frame, unwind_to_current_frame): New functions.
10273         (get_current_frame): Rewrite using create_sentinel_frame and
10274         unwind_to_current_frame.  When possible, always create a frame.
10275         (create_new_frame): Set next to the sentinel frame.
10276         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
10277         (deprecated_update_frame_pc_hack): Update the next frame's PC and
10278         ID cache when necessary.
10279         (frame_saved_regs_id_unwind): Use frame_relative_level.
10280         (deprecated_generic_get_saved_register): Use frame_relative_level,
10281         get_frame_saved_regs, get_frame_pc, get_frame_base and
10282         get_next_frame.
10283         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10284         frame_register.
10285
10286 2003-01-27  Daniel Jacobowitz  <[email protected]>
10287
10288         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10289
10290 2003-01-27  Daniel Jacobowitz  <[email protected]>
10291
10292         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10293         (maintenance_set_profile_cmd): Use error () instead of warning ().
10294
10295 2003-01-27  Daniel Jacobowitz  <[email protected]>
10296
10297         * configure.in: Check that -pg works if using --enable-profiling.
10298         Check for monstartup and _mcleanup regardless of --enable-profiling.
10299         * maint.c: Check for monstartup and _mcleanup before using them.
10300         * config.in: Regenerated.
10301         * configure: Regenerated.
10302
10303 2003-01-24  Nick Clifton  <[email protected]>
10304
10305         * Add sh2e support:
10306
10307         2002-04-02  Elena Zannoni  <[email protected]>
10308
10309                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10310                 (sh2e_show_regs): New.
10311                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10312                 * config/sh/tm-sh.h: Added sh2e to comments.
10313
10314 2003-01-23  Jim Blandy  <[email protected]>
10315
10316         * symfile.c (syms_from_objfile): Don't print the "(no debugging
10317         symbols found)" message here; we haven't checked for a separate
10318         debug info file yet, so we don't know yet.
10319         (symbol_file_add_with_addrs_or_offsets): Print it here, after
10320         we've looked everywhere.  Also, there's no need to print a special
10321         message when we're loading the separate debug info file: the one
10322         symbol_file_add prints is fine.
10323
10324 2003-01-23  Alexander Larsson <[email protected]>
10325             Jim Blandy  <[email protected]>
10326
10327         Add support for executables whose debug info has been separated
10328         out into a separate file, leaving only a link behind.
10329         * objfiles.h (struct objfile): New fields: separate_debug_objfile
10330         and separate_debug_objfile_backlink.
10331         (put_objfile_before): New declaration.
10332         * symfile.c: #include "filenames.h".
10333         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10334         debug info in a separate file, read that, too. Save the addrs
10335         argument, so we can use it again to read the separated debug info;
10336         syms_from_objfile modifies the table we pass it.
10337         (reread_symbols): After re-reading an objfile, call
10338         reread_separate_symbols to refresh its separate debug info
10339         objfile, if it has one.
10340         (reread_separate_symbols, find_separate_debug_file,
10341         get_debug_link_info, separate_debug_file_exists): New functions.
10342         (debug_file_directory): New global var.
10343         (_initialize_symfile): Initialize debug_file_directory, and
10344         provide the new `set debug-file-directory' command to let the user
10345         change it.
10346         * objfiles.c (free_objfile): If this objfile has its debug info in
10347         a separate objfile, free that one too.  If this is itself a
10348         separate debug info objfile, clear our parent's backlink.
10349         (put_objfile_before): New function.
10350         * utils.c (gnu_debuglink_crc32): New function.
10351         * defs.h (gnu_debuglink_crc32): New declaration.
10352         * Makefile.in (symfile.o): Note dependency on "filenames.h".
10353         * configure.in: Handle --with-separate-debug-dir config option.
10354         * acinclude.m4 (AC_DEFINE_DIR): New macro.
10355         * acconfig.h (DEBUGDIR): New macro.
10356         * configure, aclocal.m4, config.in: Regenerated.
10357
10358 2003-01-22  Jim Blandy  <[email protected]>
10359
10360         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10361         like the old symbol_file_add, but taking new arguments: you can
10362         now pass in either a `struct section_addr_info' list to say where
10363         each section is loaded, or a `struct section_offsets' table.  Pass
10364         these new arguments through to syms_from_objfile as appropriate.
10365         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10366         with the appropriate quiescent values for the new arguments.
10367
10368         * symfile.c: #include "gdb_assert.h".
10369         (syms_from_objfile): Add the ability to pass in a section offset
10370         table directly, as an alternative to the section_addr_info table.
10371         Document arguments better.
10372         (symbol_file_add): Pass extra arguments to syms_from_objfile.
10373         * symfile.h (syms_from_objfile): Update declaration.
10374         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10375         syms_from_objfile.
10376         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10377
10378 2003-01-22  Daniel Jacobowitz  <[email protected]>
10379
10380         Original patch by Tom Tromey <[email protected]> and
10381         Jason Molenda <[email protected]>.
10382         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10383         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10384         * NEWS: Mention profiling.
10385         * configure.in (--enable-gdbtk): Fix typo.
10386         (--enable-profiling): New.  Set PROFILE_CFLAGS.
10387         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10388         Fill in function.
10389         (profiling_state): New variable.
10390         (mcleanup_wrapper): New function.
10391         (_initialize_maint): Remove NOTYET, fix call to
10392         add_setshow_boolean_cmd for "maint set profile".
10393         * configure: Regenerated.
10394
10395 2003-01-21  Martin M. Hunt  <[email protected]>
10396
10397         * Makefile.in (install-gdbtk): Install PNG images too.
10398
10399 2003-01-21  Andrew Cagney  <[email protected]>
10400
10401         * exec.c (text_start): Delete global variable.
10402         (exec_file_attach): Make text_start local to the function.
10403         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10404         * valops.c (hand_function_call): Delete code that handles
10405         BEFORE_TEXT_END and AFTER_TEXT_END.
10406         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10407         of CALL_DUMMY_LOCATION.
10408         * gdbarch.c: Regenerate.
10409         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10410         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10411         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10412         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10413         (text_end): Delete extern declaration.
10414
10415 2003-01-21  Andrew Cagney  <[email protected]>
10416
10417         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10418         * blockframe.c (backtrace_below_main): Move to "frame.c".
10419         (frame_chain_valid): Delete check for backtrace_below_main.
10420         (_initialize_blockframe): Delete initialization, move ``set
10421         backtrace-below-main'' command to "frame.c".
10422         (do_flush_frames_sfunc): Delete function.
10423         * frame.c: Include "command.h" and "gdbcmd.h".
10424         (frame_type_from_pc): New function.
10425         (create_new_frame): Use frame_type_from_pc.
10426         (legacy_get_prev_frame): New function.
10427         (get_prev_frame): Rewrite.  When an old style frame, call
10428         legacy_get_prev_frame.  Otherwize, unwind the PC first.
10429         (_initialize_frame): Add ``set backtrace-below-main'' command.
10430         * Makefile.in (frame.o): Update dependencies.
10431
10432 2003-01-19  Andrew Cagney  <[email protected]>
10433
10434         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10435         DEPRECATED_REGISTERS_INFO.
10436
10437 2003-01-19  Andrew Cagney  <[email protected]>
10438
10439         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10440         Maintainers'.  Update `Various Maintainers'.
10441
10442 2003-01-19  Andrew Cagney  <[email protected]>
10443
10444         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10445         * gdbarch.sh (POP_FRAME): Change to function with predicate.
10446         Suppress actual parameters when `-'.
10447         * gdbarch.h, gdbarch.c: Regenerate.
10448
10449 2003-01-19  Andrew Cagney  <[email protected]>
10450
10451         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10452         code handling dummy frames.
10453
10454 2003-01-19  Andrew Cagney  <[email protected]>
10455
10456         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10457         (struct frame_unwind): Add field pop.
10458         * frame.h (frame_pop): Declare.
10459         * frame.c (frame_saved_regs_pop): New function.
10460         (trad_frame_unwinder): Add frame_saved_regs_pop.
10461         (frame_pop): New function.
10462         * dummy-frame.c (dummy_frame_pop): New function.
10463         (discard_innermost_dummy): New function.
10464         (generic_pop_dummy_frame): Use discard_innermost_dummy.
10465         (dummy_frame_unwind): Add dummy_frame_pop.
10466         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10467         * valops.c (hand_function_call): Ditto.
10468         * stack.c (return_command): Ditto.
10469
10470 2003-01-18  Andrew Cagney  <[email protected]>
10471
10472         * cris-tdep.c: Fix function declaration indentation.
10473         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10474         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10475         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10476         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10477         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10478         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10479
10480 2003-01-18  Michael Chastain  <[email protected]>
10481
10482         * README (Unpacking and Installation -- quick overview):
10483         Warn against ".../gdb-5.3/gdb/configure".
10484
10485 2003-01-18  Andrew Cagney  <[email protected]>
10486
10487         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10488         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10489         (struct frame_unwind): Declare opaque.
10490         (dummy_frame_p): Declare function.
10491         * dummy-frame.c (dummy_frame_id_unwind): Make static.
10492         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10493         * dummy-frame.c: Include "frame-unwind.h".
10494         (dummy_frame_p): New function.
10495         (dummy_frame_unwind): New variable.
10496         * frame.c: Include "frame-unwind.h".
10497         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10498         to use the new unwind field.
10499         (set_unwind_by_pc): Delete function.
10500         (create_new_frame, get_prev_frame): Set unwind field using
10501         frame_unwind_find_by_pc.
10502         (trad_frame_unwind, trad_frame_unwinder): New variables.
10503         * frame.h (trad_frame_unwind): Declare variable.
10504         (frame_id_unwind_ftype): Delete declaration.
10505         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10506         (struct frame_unwind): Declare opaque.
10507         (struct frame_info): Replace the fields id_unwind, pc_unwind and
10508         register_unwind with a single unwind pointer.
10509         * frame-unwind.h, frame-unwind.c: New files.
10510         * Makefile.in (SFILES): Add frame-unwind.c.
10511         (frame_unwind_h): Define.
10512         (COMMON_OBS): Add frame-unwind.o.
10513         (frame-unwind.o): Specify dependencies.
10514         (frame.o, dummy-frame.o): Update dependencies.
10515
10516 2003-01-18  Andrew Cagney  <[email protected]>
10517
10518         * ada-valprint.c: Eliminate PTR.
10519         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10520         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10521         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10522         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10523         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10524         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10525         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10526
10527 2003-01-17  Andrew Cagney  <[email protected]>
10528
10529         * main.c (captured_main): Don't use PTR.
10530         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10531         * gdbtypes.c (lookup_primitive_typename): Ditto.
10532         (lookup_struct_elt_type): Ditto.
10533         * f-valprint.c (info_common_command): Ditto.
10534         (list_all_visible_commons): Ditto.
10535         * jv-typeprint.c (java_type_print_base): Ditto.
10536
10537         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10538         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10539         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
10540         i386-interix-nat.c and i386-interix-tdep.c.  Rename
10541         m68klinux-nat.c and m68klinux-tdep.c.  Rename
10542         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
10543         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
10544         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10545         * main.c (captured_main): Use xfree, not free.
10546
10547 2003-01-16  Andrew Cagney  <[email protected]>
10548
10549         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10550         ID back using a parameter.
10551         * frame.c (frame_id_unwind): Update call.
10552         (frame_saved_regs_id_unwind): Update.
10553         * dummy-frame.c (dummy_frame_id_unwind): Update function.
10554         * dummy-frame.h (struct frame_id): Add opaque declaration.
10555         (dummy_frame_id_unwind): Update declaration.
10556
10557 2003-01-15  Andrew Cagney  <[email protected]>
10558
10559         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10560
10561 2003-01-15  Stephen P. Smith <[email protected]>
10562
10563         * MAINTAINERS (Stephen P. Smith): Updated email address.
10564
10565 2003-01-14  Elena Zannoni  <[email protected]>
10566
10567         Fix PR gdb/898
10568         * breakpoint.c (until_break_command): Add new argument.  Use it to
10569         decide whether to stop only at the current frame or not.
10570         * breakpoint.h (until_break_command): Update prototype.
10571         * infcmd.c (until_command): Add new argument to until_break_command
10572         call.
10573         (advance_command): New function.
10574         (_initialize_infcmd): Update help string for 'until' command.
10575         Add new 'advance' command.
10576
10577 2003-01-14  David Carlton  <[email protected]>
10578
10579         * linespec.c (decode_line_1): Normalize comments.
10580         (set_flags): Ditto.
10581         (locate_first_half): Ditto.
10582         (decode_compound): Ditto.
10583         (symtab_from_filename): Ditto.
10584         (decode_all_digits): Ditto.
10585         (decode_dollar): Ditto.
10586         (find_methods): Ditto.
10587         (find_toplevel_char): Ditto.
10588
10589 2003-01-13  Andrew Cagney  <[email protected]>
10590
10591         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10592         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10593         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10594         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10595         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10596         * language.c, language.h, m32r-tdep.c: Update copyright.
10597         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10598         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10599         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10600         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10601         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10602         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10603
10604 2003-01-13  Elena Zannoni  <[email protected]>
10605
10606         * stabsread.h (process_later, resolve_cfront_continuation):
10607         Obsolete.
10608         Update copyright years.
10609         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10610         Update copyright year.
10611         * dbxread.c(struct cont_elem): Obsolete.
10612         (process_later, process_now): Obsolete functions.
10613         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10614         Update copyright year.
10615         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10616         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10617         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10618         (parse_partial_symbols): Obsolete cfront support.
10619         * stabsread.c
10620         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10621         macros.
10622         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10623         read_cfront_baseclasses, read_cfront_member_functions,
10624         resolve_cfront_continuation,read_cfront_static_fields,
10625         copy_cfront_struct_fields): Obsolete functions.
10626         (define_symbol, read_one_struct_field): Obsolete cfront support.
10627         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10628         Update Copyright year.
10629
10630 2003-01-13  Elena Zannoni  <[email protected]>
10631
10632         * stack.c (print_frame_info, print_stack_frame_base_stub,
10633         print_stack_frame_base, show_and_print_stack_frame_stub,
10634         show_and_print_stack_frame, print_only_stack_frame_stub,
10635         print_only_stack_frame): Delete functions.
10636         (print_stack_frame_stub): Call print_frame_info instead of
10637         print_frame_info_base.
10638         (print_frame_info_base): Rename to print_frame_info.
10639         (backtrace_command_1): Call print_frame_info, instead of
10640         print_frame_info_base.
10641         (current_frame_command): Call print_stack_frame, instead of
10642         print_only_stack_frame.
10643         (frame_command): Call print_stack_frame, instead of
10644         show_and_print_stack_frame.
10645         (up_command): Ditto.
10646         (down_command): Ditto.
10647         * frame.h (print_only_stack_frame): Delete prototype.
10648         * infrun.c (normal_stop): Call print_stack_frame, instead of
10649         show_and_print_stack_frame.
10650         * thread.c (info_threads_command): Call print_stack_frame, instead
10651         of print_only_stack_frame.
10652
10653 2003-01-13  Andrew Cagney  <[email protected]>
10654
10655         * README (Graphical interface to GDB): Update URL.  Point at
10656         gdb/links/.
10657
10658         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
10659         version match.
10660
10661 2003-01-13  Daniel Jacobowitz  <[email protected]>
10662
10663         * symtab.c (find_pc_sect_line): Don't consider end-of-function
10664         lines.
10665
10666 2003-01-13  Daniel Jacobowitz  <[email protected]>
10667
10668         * thread-db.c (attach_thread): Prototype.
10669         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
10670         thread information (ti), and valid flags (th_valid, ti_valid).
10671         (attach_thread): Move target_pid_to_str call to after the thread
10672         is added to GDB's list.  Initialize the cache.
10673         (thread_get_info_callback, thread_db_map_id2thr)
10674         (thread_db_get_info): New functions.
10675         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10676         (thread_db_store_registers, thread_db_thread_alive)
10677         (thread_db_get_thread_local_address): Use them.
10678         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
10679         of calling error() for threads in unknown state.
10680
10681         (clear_lwpid_callback): New function.
10682         (thread_db_resume): Use it to clear the cache.
10683
10684 2003-01-13  Daniel Jacobowitz  <[email protected]>
10685
10686         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10687         (resume_callback): Remove dead code.
10688
10689 2003-01-13  Andrew Cagney  <[email protected]>
10690
10691         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10692         predicate.
10693         * gdbarch.h, gdbarch.c: Regenerate.
10694         * stack.c (frame_info): Only initialize the saved registers when
10695         FRAME_INIT_SAVED_REGS_P.
10696         * frame.c (frame_saved_regs_register_unwind): Assert
10697         FRAME_INIT_SAVED_REGS_P.
10698         (deprecated_generic_get_saved_register): Ditto.
10699
10700 2003-01-13  Daniel Jacobowitz  <[email protected]>
10701
10702         * source.c (openp): Squelch warning about "filename".
10703
10704 2003-01-13  Daniel Jacobowitz  <[email protected]>
10705
10706         * source.c (openp): If the file does not exist don't necessarily
10707         search the path.
10708
10709 2003-01-13  Daniel Jacobowitz  <[email protected]>
10710
10711         Fix PR gdb/872.
10712         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10713         (integer_types_same_name_p): New function.
10714         (rank_one_type): Use it.
10715         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10716
10717 2003-01-13  Daniel Jacobowitz  <[email protected]>
10718
10719         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10720         variables.
10721         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10722         * configure.in: Add --with-sysroot.
10723         * configure: Regenerated.
10724         * main.c (gdb_sysroot): New variable.
10725         (captured_main): Initialize gdb_sysroot.
10726         * defs.h (gdb_sysroot): New extern declaration.
10727         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10728
10729 2003-01-12  Michael Chastain  <[email protected]>
10730
10731         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10732
10733 2003-01-12  Michael Chastain  <[email protected]>
10734
10735         * top.c (print_gdb_version): Bump copyright year to 2003.
10736
10737 2003-01-12  David Carlton  <[email protected]>
10738
10739         * linespec.c (symtab_from_filename): Rename variable 's' to
10740         'file_symtab'.
10741
10742 2003-01-12  Andrew Cagney  <[email protected]>
10743
10744         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10745         dummy frame.
10746         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10747
10748 2003-01-12  Andrew Cagney  <[email protected]>
10749
10750         * d10v-tdep.c: Include "gdb_assert.h".
10751         (d10v_store_return_value): Rewrite to match current interface.
10752         (d10v_extract_struct_value_address): Ditto.
10753         (d10v_extract_return_value): Ditto.
10754         (d10v_gdbarch_init): Set store_restore_value,
10755         extract_struct_value_address and extract_return_value.
10756
10757 2003-01-12  J. Brobecker  <[email protected]>
10758
10759         * hpread.c (set_namestring): New procedure replacing the
10760         SET_NAMESTRING macro.
10761         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10762         by calls to set_namestring.
10763
10764 2003-01-11  J. Brobecker  <[email protected]>
10765
10766         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10767         a compilation warning.
10768         (hpread_process_one_debug_symbol): Likewise.
10769
10770 2003-01-10  David Carlton  <[email protected]>
10771
10772         * linespec.c (decode_line_1): Rename variable 's' to
10773         'file_symtab'.
10774         (decode_all_digits): Rename argument 's' to 'file_symtab'.
10775         (decode_dollar): Ditto.
10776         (decode_variable): Ditto.
10777         (symbol_found): Ditto.
10778
10779 2003-01-09  Michael Chastain  <[email protected]>
10780
10781         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10782
10783 2003-01-07  Corinna Vinschen  <[email protected]>
10784
10785         * win32-nat.c (set_process_privilege): New function.
10786         (child_attach): Call set_process_privilege() to enable the
10787         SE_DEBUG_NAME user privilege if available in process token.
10788
10789 2003-01-10  J. Brobecker  <[email protected]>
10790
10791         * hpread.c (hpread_process_one_debug_symbol): Fix a small
10792         compilation error in the previous revision.
10793
10794 2003-01-09  David Carlton  <[email protected]>
10795
10796         * linespec.c: Update copyright.
10797
10798 2003-01-09  Daniel Jacobowitz  <[email protected]>
10799
10800         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10801         than inferior_ptid.
10802         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10803
10804 2003-01-09  Andrew Cagney  <[email protected]>
10805
10806         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10807         Update comments.
10808         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10809         (frame_saved_regs_zalloc): Update.
10810         (frame_saved_regs_register_unwind): Update.
10811         (create_new_frame): Update.
10812         (get_prev_frame): Update.
10813         (frame_extra_info_zalloc): Update.
10814         (deprecated_get_frame_saved_regs): Update.
10815         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10816         * cris-tdep.c: Update comment.
10817
10818         * somsolib.h: Fix function indentation.
10819         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10820         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10821         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10822         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10823         * somsolib.c, inftarg.c: Remove assignment in if conditional.
10824
10825         * infrun.c (follow_fork): Use ISO C definition.
10826         * expprint.c (print_subexp): Use xfree instead of free.
10827         * charset.c: Include "gdb_string.h" instead of <string.h>.
10828         (register_iconv_charsets): Use ISO C definition.
10829         (host_charset, target_charset): Ditto.
10830         * Makefile.in (charset.o): Update dependencies.
10831         (mi-cmd-env.o): Update dependencies.
10832
10833 2003-01-08  Andrew Cagney  <[email protected]>
10834
10835         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10836         get_frame_base.
10837
10838 2003-01-08  Andrew Cagney  <[email protected]>
10839
10840         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
10841         build directories.  Save edited gdb output in Mbuild.log.  If a
10842         build fails, remove any final GDB executable.
10843
10844 2003-01-08  Andrew Cagney  <[email protected]>
10845
10846         * gdb_mbuild.sh: Edit the output of `maint print architecture'
10847         replacing hex constants with function names and stripping leading
10848         file name directory prefixes.
10849
10850 2003-01-08  Andrew Cagney  <[email protected]>
10851
10852         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10853         get_frame_base.
10854
10855 2003-01-08  David Carlton  <[email protected]>
10856
10857         * linespec.c (decode_line_1): Move code into decode_variable.
10858         (decode_variable): New function.
10859
10860 2003-01-08  Andrew Cagney  <[email protected]>
10861
10862         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10863
10864 2003-01-08  Andrew Cagney  <[email protected]>
10865
10866         * cris-tdep.c (cris_frame_init_saved_regs): Use
10867         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10868         saved_regs buffer.
10869         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10870         (sh64_nofp_frame_init_saved_regs): Ditto.
10871         (sh_fp_frame_init_saved_regs): Ditto.
10872         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10873         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10874         * mcore-tdep.c (analyze_dummy_frame): Ditto.
10875         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10876
10877 2003-01-08  Daniel Jacobowitz  <[email protected]>
10878
10879         * minsyms.c (lookup_minimal_symbol): Update comment.
10880         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
10881         (lookup_minimal_symbol_solib_trampoline): Likewise.
10882
10883 2003-01-08  Andrew Cagney  <[email protected]>
10884
10885         * d10v-tdep.c (d10v_init_extra_frame_info): Use
10886         frame_relative_level.
10887
10888         * alpha-tdep.c: Use get_frame_extra_info.
10889         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10890         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10891         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10892         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10893
10894         * alpha-tdep.c: Use get_next_frame.
10895         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10896         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10897         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10898         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10899         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10900         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10901         * xstormy16-tdep.c: Ditto.
10902
10903 2003-01-07  Andrew Cagney  <[email protected]>
10904
10905         * alpha-tdep.c: Use get_frame_base.
10906         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10907         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10908         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10909         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10910         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10911         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10912         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10913         * config/sparc/tm-sparc.h: Ditto.
10914
10915 2003-01-07  Andrew Cagney  <[email protected]>
10916
10917         * frame.c (deprecated_get_frame_context): New function.
10918         (deprecated_set_frame_context): New function.
10919         * frame.h (deprecated_get_frame_context): Declare.
10920         (deprecated_set_frame_context): Declare.
10921         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10922         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10923
10924 2003-01-07  Andrew Cagney  <[email protected]>
10925
10926         * frame.c (deprecated_set_frame_next_hack): New function.
10927         (deprecated_set_frame_prev_hack): New function.
10928         * frame.h (deprecated_set_frame_next_hack): Declare.
10929         (deprecated_set_frame_prev_hack): Declare.
10930         * mcore-tdep.c (analyze_dummy_frame): Use
10931         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10932         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10933
10934 2003-01-07  David Carlton  <[email protected]>
10935
10936         * linespec.c (decode_line_1): Move code into decode_dollar.
10937         (decode_dollar): New function.
10938
10939 2003-01-07  Andrew Cagney  <[email protected]>
10940
10941         * arm-tdep.c (arm_init_extra_frame_info): Use
10942         deprecated_update_frame_base_hack.
10943         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10944         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10945         (fix_frame_pointer): Ditto.
10946         (mn10300_analyze_prologue): Ditto.
10947
10948 2003-01-07  Andrew Cagney  <[email protected]>
10949
10950         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10951         extra_info using frame_extra_info_zalloc.
10952         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10953         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10954         (sh64_init_extra_frame_info): Ditto.
10955         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10956         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10957         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10958         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10959         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10960         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10961         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10962         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10963         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10964         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10965         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10966         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10967
10968         * mn10300-tdep.c (analyze_dummy_frame): Use
10969         deprecated_set_frame_extra_info_hack.
10970         * mcore-tdep.c (analyze_dummy_frame): Ditto.
10971
10972 2003-01-07  J. Brobecker  <[email protected]>
10973
10974         * mdebugread.c (parse_symbol): Skip stProc entries which storage
10975         class is not scText. These do not define "real" procedures.
10976         (parse_partial_symbols): Likewise.
10977
10978 2003-01-06  Michael Snyder  <[email protected]>
10979
10980         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10981
10982 2003-01-06  Andrew Cagney  <[email protected]>
10983
10984         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10985         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10986         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10987         deprecated_frame_xmalloc_with_cleanup.
10988         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10989         deprecated_frame_xmalloc.
10990         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10991         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10992
10993 2003-01-06  Andrew Cagney  <[email protected]>
10994
10995         * x86-64-linux-tdep.c: Include "osabi.h".
10996         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10997
10998         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10999
11000 2003-01-06  Andrew Cagney  <[email protected]>
11001
11002         * MAINTAINERS (Target Instruction Set Architectures): Update
11003         arm-elf.  Can be built with -Werror, has been multiarched.
11004
11005         * value.h (unpack_long): Make buffer parameter constant.
11006         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11007         * scm-lang.h (scm_parse): Ditto.
11008         * defs.h (extract_typed_address, extract_address): Ditto.
11009         (extract_long_unsigned_integer): Ditto.
11010         * inferior.h (unsigned_pointer_to_address): Ditto.
11011         (signed_pointer_to_address): Ditto.
11012         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11013         * gdbarch.h, gdbarch.c: Regenerate.
11014         * findvar.c (extract_long_unsigned_integer): Update.
11015         (extract_address): Update.
11016         (extract_typed_address): Update.
11017         (unsigned_pointer_to_address): Update.
11018         * values.c (unpack_long): Update.
11019         (unpack_double): Update.
11020         (unpack_pointer): Update.
11021         (unpack_field_as_long): Update.
11022         * d10v-tdep.c (d10v_pointer_to_address): Update.
11023         * avr-tdep.c (avr_pointer_to_address): Update.
11024         * scm-lang.c (scm_unpack): Update.
11025         * findvar.c (signed_pointer_to_address): Update.
11026
11027 2003-01-06  Michal Ludvig  <[email protected]>
11028
11029         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11030         since it is in i386-tdep.c.
11031
11032 2003-01-06  J. Brobecker  <[email protected]>
11033
11034         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11035         failure introduced in the previous change.
11036
11037 2003-01-05  Michael Chastain  <[email protected]>
11038
11039         * README: Remove references to deleted remote-*.c files:
11040         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11041         remote-nrom.c, remote-os9k.c, remote-udi.c.
11042
11043 2003-01-05  Mark Kettenis  <[email protected]>
11044
11045         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11046         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11047         i386_get_longjmp_target.
11048
11049 2003-01-05  Andrew Cagney  <[email protected]>
11050
11051         * arm-tdep.c (prologue_cache): Change to a pointer.
11052         (_initialize_arm_tdep): Allocate prologue_cache.
11053         (check_prologue_cache): Update.
11054         (save_prologue_cache): Update.
11055         (arm_gdbarch_init): Update.
11056
11057 2003-01-04  Daniel Jacobowitz  <[email protected]>
11058
11059         * stabsread.c (update_method_name_from_physname): Call complaint()
11060         instead of error.
11061
11062 2003-01-04  Daniel Jacobowitz  <[email protected]>
11063
11064         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
11065         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11066         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11067
11068         * blockframe.c: Include "gdbcmd.h" and "command.h".
11069         (backtrace_below_main): New variable.
11070         (file_frame_chain_valid, func_frame_chain_valid)
11071         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11072         (generic_func_frame_chain_valid): Remove functions.
11073         (frame_chain_valid, do_flush_frames_sfunc): New functions.
11074         (_initialize_blockframe): New function.
11075         * Makefile.in (blockframe.o): Update dependencies.
11076         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11077         comment.  Call frame_chain_valid ().
11078         * frame.h: Remove old prototypes.  Add prototype for
11079         frame_chain_valid and update comments to match.
11080         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11081         Remove old comment.
11082         * gdbarch.h: Regenerated.
11083         * gdbarch.c: Regenerated.
11084
11085         * alpha-tdep.c (alpha_gdbarch_init): Don't call
11086         set_gdbarch_frame_chain_valid.
11087         * avr-tdep.c (avr_gdbarch_init): Likewise.
11088         * cris-tdep.c (cris_gdbarch_init): Likewise.
11089         * frv-tdep.c (frv_gdbarch_init): Likewise.
11090         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11091         * i386-tdep.c (i386_svr4_init_abi): Likewise.
11092         (i386_nw_init_abi): Likewise.
11093         (i386_gdbarch_init): Likewise.
11094         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11095         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11096         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11097         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11098         * mips-tdep.c (mips_gdbarch_init): Likewise.
11099         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11100         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11101         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11102         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11103         * s390-tdep.c (s390_gdbarch_init): Likewise.
11104         * sh-tdep.c (sh_gdbarch_init): Likewise.
11105         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11106         * v850-tdep.c (v850_gdbarch_init): Likewise.
11107         * vax-tdep.c (vax_gdbarch_init): Likewise.
11108         * x86-64-tdep.c (x86_64_init_abi): Likewise.
11109
11110         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11111         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11112         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11113         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11114         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11115         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11116         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11117         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11118
11119 2002-01-04  Daniel Jacobowitz  <[email protected]>
11120
11121         * Makefile.in (acconfig_h): Remove incorrect macro.
11122         (config_h): Define.
11123         (osabi.o): Update dependencies.
11124         * configure.tgt: Set gdb_osabi based on target triplet.
11125         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11126         * configure: Regenerated.
11127         * config.in: Regenerated.
11128         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11129         (GDB_OSABI_DEFAULT): Define if not already defined.
11130         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11131         (set_osabi_string): New variables.
11132         (gdbarch_register_osabi): Add new OS ABI to
11133         gdb_osabi_available_names.
11134         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11135         (set_osabi, show_osabi): New functions.
11136         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11137
11138 2003-01-04  Daniel Jacobowitz  <[email protected]>
11139
11140         * arch-utils.c (gdbarch_info_init): Set osabi to
11141         GDB_OSABI_UNINITIALIZED.
11142         * gdbarch.sh: Add osabi to struct gdbarch and to struct
11143         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
11144         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11145         * gdbarch.c: Regenerated.
11146         * gdbarch.h: Regenerated.
11147         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11148         there's no BFD.
11149         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11150         * osabi.h (enum gdb_osabi): Move to defs.h.
11151         (gdbarch_init_osabi): Update prototype.
11152         * defs.h (enum gdb_osabi): Moved here.
11153         * Makefile.in: Update dependencies.
11154
11155         * alpha-tdep.h: Don't include "osabi.h".
11156         (struct gdbarch_tdep): Remove osabi member.
11157         * alpha-tdep.c: Include "osabi.h".
11158         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11159         iterate over arches.  Update call to gdbarch_init_osabi.
11160         (alpha_dump_tdep): Don't dump osabi.
11161         * alpha-linux-tdep.c: Include "osabi.h".
11162         * alpha-osf1-tdep.c: Include "osabi.h".
11163         * alphafbsd-tdep.c: Include "osabi.h".
11164         * alphanbsd-tdep.c: Include "osabi.h".
11165
11166         * arm-tdep.h: Don't include "osabi.h".
11167         (struct gdbarch_tdep): Remove osabi member.
11168         * arm-tdep.c: Include "osabi.h".
11169         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11170         iterate over arches.  Update call to gdbarch_init_osabi.
11171         (arm_dump_tdep): Don't dump osabi.
11172         * arm-linux-tdep.c: Include "osabi.h".
11173         * armnbsd-tdep.c: Include "osabi.h".
11174
11175         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11176         Update call to gdbarch_init_osabi.
11177
11178         * i386-tdep.h: Don't include "osabi.h".
11179         (struct gdbarch_tdep): Remove osabi member.
11180         * i386-tdep.c: Include "osabi.h".
11181         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11182         iterate over arches.  Update call to gdbarch_init_osabi.
11183         (i386_dump_tdep): Don't dump osabi.
11184         * i386-linux-tdep.c: Include "osabi.h".
11185         * i386-sol2-tdep.c: Include "osabi.h".
11186         * i386bsd-tdep.c: Include "osabi.h".
11187         * i386gnu-tdep.c: Include "osabi.h".
11188         * i386ly-tdep.c: Include "osabi.h".
11189         * i386nbsd-tdep.c: Include "osabi.h".
11190         * i386obsd-tdep.c: Include "osabi.h".
11191
11192         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11193         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11194         check osabi when iterating over arches.  Update call to
11195         gdbarch_init_osabi.
11196         (mips_dump_tdep): Don't dump osabi.
11197
11198         * ns32k-tdep.h: Don't include "osabi.h".
11199         (struct gdbarch_tdep): Remove.
11200         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11201         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
11202         allocate tdep.  Update call to gdbarch_init_osabi.
11203         (ns32k_dump_tdep): Remove.
11204         (_initialize_ns32k_tdep): Update call to gdbarch_register.
11205         * ns32knbsd-tdep.c: Include "osabi.h".
11206
11207         * ppc-tdep.h: Don't include "osabi.h".
11208         (struct gdbarch_tdep): Remove osabi member.
11209         * rs6000-tdep.c: Include "osabi.h".
11210         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
11211         osabi when iterating over arches.  Update call to
11212         gdbarch_init_osabi.
11213         (rs6000_dump_tdep): Don't dump osabi.
11214         * ppc-linux-tdep.c: Include "osabi.h".
11215         * ppcnbsd-tdep.c: Include "osabi.h".
11216
11217         * sh-tdep.h: Don't include "osabi.h".
11218         (struct gdbarch_tdep): Remove osabi member.
11219         * sh-tdep.c: Include "osabi.h".
11220         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11221         iterate over arches.  Update call to gdbarch_init_osabi.
11222         (sh_dump_tdep): Don't dump osabi.
11223         * shnbsd-tdep.c: Include "osabi.h".
11224
11225         * sparc-tdep.c: Include "osabi.h".
11226         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11227         iterate over arches.  Update call to gdbarch_init_osabi.
11228         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
11229         tdep structure.
11230
11231         * vax-tdep.h: Don't include "osabi.h".
11232         (struct gdbarch_tdep): Remove.
11233         * vax-tdep.c: Include "osabi.h".
11234         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11235         iterate over arches.  Don't allocate tdep.  Update call
11236         to gdbarch_init_osabi.
11237         (vax_dump_tdep): Remove.
11238         (_initialize_vax_tdep): Update call to gdbarch_register.
11239
11240 2003-01-04  Daniel Jacobowitz  <[email protected]>
11241
11242         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11243         entirely.
11244         (breakpoint_re_set_one): Don't fetch the value for a disabled
11245         watchpoint.
11246
11247 2003-01-04  Daniel Jacobowitz  <[email protected]>
11248
11249         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11250         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11251         (COERCE_FLOAT_TO_DOUBLE): Remove.
11252         * gdbarch.c: Regenerate.
11253         * gdbarch.h: Regenerate.
11254         * Makefile.in: Remove value_h from gdbarch_h.
11255         * valops.c (coerce_float_to_double): New variable.
11256         (default_coerce_float_to_double): Remove.
11257         (standard_coerce_float_to_double): Remove.
11258         (value_arg_coerce): Use coerce_float_to_double.
11259         (_initialize_valops): Add "set coerce-float-to-double".
11260         * value.h (default_coerce_float_to_double): Remove prototype.
11261         (standard_coerce_float_to_double): Remove prototype.
11262
11263         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11264         prototyped.
11265         * mdebugread.c (parse_symbol): Likewise.
11266         * stabsread.c (define_symbol): Mark all functions as prototyped.
11267
11268         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11269         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11270         set_gdbarch_coerce_float_to_double.
11271         * arm-tdep.c (arm_gdbarch_init): Likewise.
11272         * frv-tdep.c (frv_gdbarch_init): Likewise.
11273         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11274         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11275         * mips-tdep.c (mips_gdbarch_init): Likewise.
11276         (mips_coerce_float_to_double): Remove.
11277         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11278         (rs6000_coerce_float_to_double): Remove.
11279         * s390-tdep.c (s390_gdbarch_init): Likewise.
11280         * sh-tdep.c (sh_gdbarch_init): Likewise.
11281         (sh_coerce_float_to_double): Remove.
11282         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11283         (sparc_coerce_float_to_double): Remove.
11284         * v850-tdep.c (v850_gdbarch_init): Likewise.
11285         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11286         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11287         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11288         (hppa_coerce_float_to_double): Remove prototype.
11289         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11290
11291 2003-01-04  Daniel Jacobowitz  <[email protected]>
11292
11293         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11294
11295 2003-01-04  Daniel Jacobowitz  <[email protected]>
11296
11297         Suggested by Stewart Brown <[email protected]>:
11298         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11299         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
11300         (c_type_print_varspec_suffix): Likewise.
11301
11302 2003-01-04  Mark Kettenis  <[email protected]>
11303
11304         * configure.in: Don't set and AC_SUBST SUBDIRS.
11305         * configure: Regenerated.
11306
11307         * configure.in: Remove code dealing with shared libraries.
11308         * Makefile.in: Remove HLDFLAGS and HLDENV.
11309         * configure: Regenerated.
11310
11311 2003-01-04  Andrew Cagney  <[email protected]>
11312
11313         * frame.c (deprecated_frame_xmalloc): New function.
11314         (deprecated_set_frame_saved_regs_hack): New function.
11315         (deprecated_set_frame_extra_info_hack): New function.
11316         * frame.h (deprecated_frame_xmalloc): Declare.
11317         (deprecated_set_frame_saved_regs_hack): Declare.
11318         (deprecated_set_frame_extra_info_hack): Declare.
11319
11320 2003-01-04  Mark Kettenis  <[email protected]>
11321
11322         * configure.in: Move code that provides the --enable-gdbtk option
11323         right after the code that handles the --enable-tui option, and
11324         polish it somewhat.
11325         * configure: Regenerated.
11326
11327         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
11328         AC_CHECK_FUNCS and remove the old check for pread64.
11329         * acinclude.m4 (AC_GNU_SOURCE): New macro.
11330         * acconfig.h (_GNU_SOURCE): Add.
11331         (HAVE_PREAD64): Remove.
11332         * configure, aclocal.m4, config.in: Regenerated.
11333
11334 2003-01-03  Andrew Cagney  <[email protected]>
11335
11336         * alpha-tdep.c: Use get_frame_saved_regs.
11337         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11338         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11339         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11340         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11341         * vax-tdep.c, xstormy16-tdep.c: Ditto.
11342
11343 2003-01-03  Mark Kettenis  <[email protected]>
11344
11345         * configure.in: Remove all use of the SUBDIRS variable; add
11346         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
11347         code providing the --enable-multi-ice option, and move it right in
11348         front of the code that checks whether gdbserver is supported.
11349         Polish that too.
11350         * configure: Regenerated.
11351         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11352         @SUBDIRS@.
11353
11354 2003-01-03  Andrew Cagney  <[email protected]>
11355
11356         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11357         * avr-tdep.c, cris-tdep.c: Ditto.
11358         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11359         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11360
11361 2003-01-03  Mark Kettenis  <[email protected]>
11362
11363         * configure.in: Remove --enable-netrom option.
11364         * configure: Regenerated.
11365
11366 2003-01-03  Mark Kettenis  <[email protected]>
11367
11368         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11369         declaration for `struct re_pattern_buffer' instead.
11370         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11371
11372 2003-01-03  J. Brobecker  <[email protected]>
11373
11374         * mdebugread.c (parse_symbol): Count until the stEnd matching
11375         the structure name.
11376
11377 2003-01-02  Mark Kettenis  <[email protected]>
11378
11379         * configure.in: Remove --with-cpu option.
11380         subscripts.  Remove evil changequotes here.
11381         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11382         * config.in, configure: Regenerated.
11383
11384         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11385         * configure.in: Cleanup section that sources GDB and BFD configure
11386         subscripts.  Remove evil changequotes here.
11387         * config.in, configure: Regenerated.
11388
11389 2003-01-02  Andrew Cagney  <[email protected]>
11390
11391         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11392         frame accessor methods.
11393         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11394         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11395         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11396         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11397         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11398         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11399         * z8k-tdep.c: Ditto.
11400
11401 2003-01-02  Mark Kettenis  <[email protected]>
11402
11403         * configure.in: Remove UI_OUT configuration code.
11404         * ada-lang.c: Update assuming UI_OUT is always true.
11405         * Makefile.in (UIOUT_CFLAGS): Remove.
11406         * configure: Regenerated.
11407         * TODO: Remove blurb about elimination of -DUI_OUT.
11408
11409         * configure.in: Move code that provides the --enable-gdbcli,
11410         --enable-gdbmi options right before the code that handles the
11411         --enable-tui option.  Polish a bit.
11412         * configure: Regenerated.
11413
11414         * configure.in: Rewrite check for GNU regex and the
11415         --without-included regex option, and move it into the "Checks for
11416         library functions" section.  This makes us use the system regex
11417         again by default on systems with version 2 of the GNU C library.
11418         This was apparently broken.
11419         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11420         * acconfig.h (USE_INCLUDED_REGEX): Remove.
11421         * config.in, configure: Regenerated.
11422
11423         * configure.in: Move code that provides the --enable-tui option
11424         before the "Checks for libraries" section.  Polish the code
11425         somewhat and set need_curses to yes if we build the TUI.  Rewrite
11426         code that looks for a library providing termcap functionality to
11427         match more closely what's done in the Readline library, and move
11428         it into to the "Checks for libraries" section.
11429         * configure: Regenerated.
11430         * Makefile.in (TERMCAP): Remove variable.
11431         * config/i386/go32.mh (TERMCAP): Remove variable.
11432
11433 2003-01-02  Andrew Cagney  <[email protected]>
11434
11435         * MAINTAINERS: Mention gdb_mbuild.sh.
11436         * gdb_mbuild.sh: Rewrite.
11437
11438 2003-01-02  Mark Kettenis  <[email protected]>
11439
11440         * configure.in: Fix typo in last change.
11441         * config.in, configure: Regenerated.
11442
11443 2003-01-02  Andrew Cagney  <[email protected]>
11444
11445         * valarith.c (value_binop): Delete obsolete code and comments.
11446         * configure.host: Ditto.
11447         * buildsym.h (make_blockvector): Ditto.
11448         * buildsym.c (make_blockvector): Ditto.
11449         * defs.h (enum language): Ditto.
11450         (chill_demangle): Ditto.
11451         * elfread.c (elf_symtab_read): Ditto.
11452         * dwarfread.c (CHILL_PRODUCER): Ditto.
11453         (set_cu_language): Ditto.
11454         (handle_producer): Ditto.
11455         * expprint.c (print_subexp): Ditto.
11456         * gdbtypes.c (chill_varying_type): Ditto.
11457         * gdbtypes.h (builtin_type_chill_bool): Ditto.
11458         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11459         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11460         (chill_varying_type): Ditto.
11461         * language.h (_LANG_chill): Ditto.
11462         * language.c (binop_result_type, integral_type): Ditto.
11463         (character_type, string_type, structured_type): Ditto.
11464         (lang_bool_type, binop_type_check): Ditto.
11465         * stabsread.h (os9k_stabs): Ditto.
11466         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11467         (define_symbol, read_type, read_struct_fields): Ditto.
11468         (read_array_type, read_enum_type, read_huge_number): Ditto.
11469         (read_range_type, start_stabs): Ditto.
11470         * symfile.c (init_filename_language_table): Ditto.
11471         (add_psymbol_with_dem_name_to_list): Ditto.
11472         * symtab.c (symbol_init_language_specific): Ditto.
11473         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11474         * symtab.h (struct general_symbol_info): Ditto.
11475         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11476         * typeprint.c (typedef_print): Ditto.
11477         * utils.c (fprintf_symbol_filtered): Ditto.
11478         * valops.c (value_cast, search_struct_field, value_slice): Delete
11479         obsolete code.
11480         (varying_to_slice): Delete function.
11481         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11482         (varying_to_slice): Delete declaration.
11483         * MAINTAINERS: Update.
11484
11485 2003-01-02  Mark Kettenis  <[email protected]>
11486
11487         * configure.in: Reorganize "Checks for library functions section"
11488         a bit.  Remove check for `btowc' and `isascii' functions.
11489         * configure: Regenerated.
11490
11491         * acconfig.h (_MSE_INT_H): Remove.
11492         * configure.in: Create "Checks for header files" section, and move
11493         appropriate tests there.  Don't check for objlist.h, wchar.h,
11494         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
11495         misdetection fix.  Also add "Checks for types", "Checks for
11496         compiler characteristics" and "Checks for library functions"
11497         sections.
11498         * config.in, configure: Regenerated.
11499
11500         * configure.in: Create "Checks for programs" section, and move
11501         appropriate tests there.
11502
11503 2003-01-01  Mark Kettenis  <[email protected]>
11504
11505         * configure.in: Create "Checks for libraries" section, and move
11506         appropriate tests there.  Cleanup check for wctype in libw.  Use
11507         AC_SEARCH_LIBS to see whether we need libsocket.
11508         * configure: Regenerated.
11509
11510 For older changes see ChangeLog-2002
11511 \f
11512 Local Variables:
11513 mode: change-log
11514 left-margin: 8
11515 fill-column: 74
11516 version-control: never
11517 End:
This page took 0.691908 seconds and 4 git commands to generate.