fae853e46cfc411d47c0a532f6abca3350ed6cb9
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
2
3         Rewrite FreeBSD/sparc64 native configuration.
4         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
5         * sparc64fbsd-nat.c: New file.
6         * sparc64fbsd-tdep.c: New file.
7         * sparc64-tdep.c sparc64-tdep.h: New files.
8         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
9         sparc64fbsd-tdep.o): New dependencies.
10         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
11         and sparc64fbsd-tdep.c.
12         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
13         * config/sparc/fbsd.mh: Remove copyright notice.
14         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
15         sparcbsd-nat.o.
16         * config/sparc/fbsd.mt: Remove copyright notice.
17         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
18         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
19         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
20         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
21         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
22         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
23         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
24         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
25         "sparc/tm-sp64.h".
26         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
27         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
28
29 2003-08-21  Michael Chastain  <mec@shout.net>
30
31         * symtab.h: Add doco on the space critical structures and
32         some measurements of space usage.
33
34 2003-08-21  Michael Snyder  <msnyder@redhat.com>
35
36         * tracepoint.c (trace_dump_command): Trace break address
37         is subject to DECR_PC_AFTER_BREAK.
38         (set_traceframe_context): Make "trace_line" an int.
39         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
40         
41 2003-08-20  Michael Snyder  <msnyder@redhat.com>
42
43         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
44         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set 
45         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for 
46         argument passing.
47         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New 
48         functions, replace sh_push_dummy_call.
49         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
50
51 2003-08-20  Michael Chastain  <mec@shout.net>
52
53         * gdbtypes.h (struct main_type): Rearrange to save space.
54
55 2003-08-20  Michael Snyder  <msnyder@redhat.com>
56
57         * trad-frame.c: Comment typo fix.
58
59 2003-08-20  Michael Snyder  <msnyder@redhat.com>
60             Kevin Buettner  <kevinb@redhat.com>
61
62         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
63         (frv_frame_init_saved_regs): Add declaration.
64         (frame_extra_info): Add new field ``saved_regs''.
65         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
66         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
67         Update frame related code.
68         (frv_extract_struct_value_address): Adjust formatting.
69         * Makefile.in (frv-tdep.o): Update dependencies.
70         * config/frv/tm-frv.h (target_insert_watchpoint)
71         (target_remove_watchpoint, target_insert_hw_breakpoint)
72         (target_remove_hw_breakpoint): Delete these macros.
73         (remote_insert_watchpoint, remote_remove_watchpoint)
74         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
75         these declarations.
76
77 2003-08-20  Michael Chastain  <mec@shout.net>
78
79         * defs.h (ENUM_BITFIELD): New macro.
80         * symtab.h (ENUM_BITFIELD): Use it.
81         (BYTE_BITFIELD): Remove old macro, which was already disabled.
82
83 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
84
85         * MAINTAINERS (write after approval): Add myself.
86         
87 2003-08-18  Andrew Cagney  <cagney@redhat.com>
88
89         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
90         * gdbarch.h, gdbarch.c: Re-generate.
91         * infcall.c (call_function_by_hand): Adjust the SP by
92         frame_red_zone_size before allocating any stack space.
93         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
94         * x86-64-tdep.c (x86_64_frame_align): New function.
95         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
96
97         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
98         Remove code adjusting SP so that it skips over the Red Zone.
99
100 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
101
102         * NEWS (New native configurations): Mention FreeBSD/amd64.
103
104 2003-08-18  Andrew Cagney  <cagney@redhat.com>
105
106         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
107         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
108         "m68k_frame_p".
109         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
110
111 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
112
113         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
114
115 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
116
117         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
118         Define.
119         * i386-linux-nat.c: Include "linux-nat.h".
120         (child_post_startup_inferior): New function.
121         
122 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
123
124         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
125         at the start of a frameless function.  This probably fixes PR
126         backtrace/1338.
127
128 2003-08-17  Michael Chastain  <mec@shout.net>
129
130         * symfile.c (find_sym_fns): Remove special case for apollo target.
131
132 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
133
134         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
135         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
136         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
137         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
138         (linux_supports_tracevforkdone): New function.
139         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
140         TRACEVFORKDONE.
141         (child_follow_fork): Handle vfork.
142         (linux_handle_extended_wait): Likewise.  Also handle exec.
143         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
144         * NEWS: Mention fork tracing.
145
146 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
147
148         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
149
150 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
151
152         * Makefile.in (i386-linux-nat.o): Update dependencies.
153         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
154         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
155         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
156         * i386-linux-nat.c: Include "linux-nat.h".
157         (child_post_startup_inferior): New function.
158         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
159         * infptrace.c (kill_inferior): Wrap in #ifdef.
160         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
161         attaching to each LWP.
162         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
163         (init_lin_lwp_ops): Fill in some more operations.
164         * linux-nat.h (linux_enable_event_reporting)
165         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
166         prototypes.
167         * linux-nat.c (linux_enable_event_reporting): New function.
168         (child_post_attach, linux_child_post_startup_inferior)
169         (child_post_startup_inferior, child_follow_fork)
170         (linux_handle_extended_wait, kill_inferior): New functions.
171
172 2003-08-16  Andrew Cagney  <cagney@redhat.com>
173
174         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
175         * gdbarch.h, gdbarch.c: Re-generate.
176
177 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
178
179         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
180
181 2003-08-16  Andrew Cagney  <cagney@redhat.com>
182
183         * NEWS: Mention that "set prompt-escape-char" was deleted.
184         * top.c (get_prompt_1): Delete function.
185         (gdb_prompt_escape):
186         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
187         prompt-escape-char" command.
188         (MAX_PROMPT_SIZE): Delete macro.
189         (get_prompt): Simplify, do not call get_prompt_1.
190
191 2003-08-16  Andrew Cagney  <cagney@redhat.com>
192
193         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
194         -Werror.  -Wformat-nonliteral problems.
195
196 2003-08-15  J. Brobecker  <brobecker@gnat.com>
197
198         Further multiarching work mostly for hppa64-*-hpux11:
199         * hppa-tdep.h: New file.
200         * hppa-tdep.c: #include hppa-tdep.c.
201         (hppa32_num_regs): Renamed from hppa_num_regs.
202         (hppa64_num_regs): New constant.
203         (hppa64_call_dummy_breakpoint_offset): New constant.
204         (hppa32_call_dummy_length): New constant.
205         (hppa64_call_dummy_length): New constant.
206         (hppa32_stack_align): Make name 32bit explicit.
207         (hppa32_register_virtual_type): Likewise.
208         (hppa32_extract_return_value): Likewise.
209         (hppa32_use_struct_convention): Likewise.
210         (hppa32_store_return_value): Likewise.
211         (hppa64_register_virtual_type): New function.
212         (hppa64_extract_return_value): New function.
213         (hppa64_use_struct_convention): New function.
214         (hppa64_store_return_value): New function.
215         (hppa_frame_locals_address): Remove declaration, function does
216         not exist anymore.
217         (hppa_register_byte): Add support for PA64 ABI.
218         (hppa_gdbarch_init): Add support for PA64 ABI.
219         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
220         Make name 32bit explicit.
221         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
222         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
223         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
224         (hppa64_hpux_frame_base_before_sigtramp): New function.
225         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
226         * config/pa/tm-hppa64.h: Remove macros that are no longer
227         necessary now that the gdbarch vector is properly setup.
228         Transform some macros into function calls. Some minor cleanup. 
229         * config/pa/tm-hppah.h: Update function calls in macros
230         following the function renaming in hppa-hpux-tdep.c.
231         * Makefile.in (hppa_tdep_h): New variable.
232         (hppa-tdep.o): Add dependency over hppa_tdep_h.
233
234 2003-08-14  Michael Snyder  <msnyder@redhat.com>
235
236         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
237
238 2003-08-13  J. Brobecker  <brobecker@gnat.com>
239
240         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
241         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
242         routine.
243
244 2003-08-13  Michael Snyder  <msnyder@redhat.com>
245
246         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
247         (frv_saved_pc_after_call): Use deprecated ftype.
248         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
249         (frv_remote_translate_xfer_address): Remove.
250         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
251
252 2003-08-13  J. Brobecker  <brobecker@gnat.com>
253
254         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
255         initialization after the common gdbarch initialization, not before.
256
257 2003-08-13  J. Brobecker  <brobecker@gnat.com>
258
259         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
260         (ADDR_BITS_REMOVE): Remove, redundant.
261
262 2003-08-13  J. Brobecker  <brobecker@gnat.com>
263
264         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
265         gdbarch method to clear the 2 low bits of text addresses.
266
267 2003-08-12  Andrew Cagney  <cagney@redhat.com>
268
269         * Makefile.in (dsrec.o): Update dependencies.
270         * dsrec.c: Include "gdb_assert.h".
271         (make_srec): Use snprintf instead of sprintf, use a literal format
272         string.
273
274 2003-08-12  Andrew Cagney  <cagney@redhat.com>
275
276         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
277         FRAME_OBSTACK_ZALLOC.
278
279 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
280
281         * i386-tdep.c (i386_gdbarch_init): Enable default support for
282         SSE registers.
283
284 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
285
286         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
287         amd64fbsd_sc_reg_offset): Add extern declarations.
288         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
289         declarations.
290
291 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
292
293         * MAINTAINERS (write after approval): Update my mail address.
294
295 2003-08-10  Andrew Cagney  <cagney@redhat.com>
296
297         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
298
299 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
300
301         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
302         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
303         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
304         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
305         i386bsd_sc_reg_offset): Add extern declarations.
306         * i386obsd-nat.c: Include "i386-tdep.h"
307         (_initialize_i386obsd_nat): Remove extern declarations.
308         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
309         declarations.
310         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
311         declarations.
312
313         * i386-tdep.c (i386_register_to_value): Use get_frame_register
314         instead of frame_read_register.
315         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
316         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
317         SP_REGNUM.
318         (i386_frame_prev_register): Use frame_unwind_register_unsigned
319         instead of frame_unwind_unsigned_register.  Use
320         I386_EFLAGS_REGISTER instead of PS_REGNUM.
321         (i386_get_longjmp_target): Use regcache_read_unsigned_register
322         instead of read_register.  Use builtin_type_void_data_ptr instead
323         of builtin_type_void_func_ptr when extracting the address of the
324         jmp_buf.
325         (i386_extract_return_value, i386_store_return_value,
326         i386_pseudo_register_read, i386_pseudo_register_write): Use
327         register_size instead REGISTER_RAW_SIZE.
328
329 2003-08-10  Andrew Cagney  <cagney@redhat.com>
330
331         * infcall.c (call_function_by_hand): Use xstrprintf instead of
332         sprintf.  Make "name" constant.
333
334 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
335
336         * i387-tdep.c (i387_register_to_value): Use get_frame_register
337         instead of frame_read_register.
338         (i387_print_float_info): Use get_frame_register and
339         get_frame_register_unsigned instead of frame_register_read.
340
341         * i386fbsd-nat.c: Include "i386-tdep.h".
342         (child_resume): Make `eflags' an ULONGEST.  Use
343         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
344         instead of register_read and register_write.
345
346         * i386bsd-nat.c (fetch_inferior_registers,
347         store_inferior_registers): Don't use && at the end of a line.
348         (_initialize_i386bsd_nat): Fix typo.
349
350         * frame.c (_initialize_frame): Add missing backslash.
351
352         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
353         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
354         and supply_register instead of manipulating the register buffer
355         directly.
356
357         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
358         * config/i386/nm-i386sol2.h
359         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
360
361         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
362         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
363         instructions that GCC likes to mingle into the prologue.  Fixes
364         gdb/1253 and gdb/1255.
365
366 2003-08-09  Andrew Cagney  <cagney@redhat.com>
367
368         Fix GDB PR cli/926.
369         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
370         * command.h (add_setshow_uinteger_cmd): Declare.
371         * frame.c (set_backtrace_cmd): New function.
372         (show_backtrace_cmd): New function.
373         * frame.c (_initialize_frame): Replace "set/show
374         backtrace-below-main" with "set/show backtrace past-main".  Add
375         command "set/show backtrace limit".
376         (backtrace_past_main): Rename "backtrace_below_main".
377         (backtrace_limit): New variable.
378         (get_prev_frame): Update.  Check the backtrace_limit.
379
380 2003-08-09  Andrew Cagney  <cagney@redhat.com>
381
382         * defs.h (xstrprintf): Declare.
383         * utils.c (xstrprintf): New function.
384         * breakpoint.c (insert_breakpoints): Replace sprintf and
385         non-literal format strings, with xstrprintf and cleanups.
386         (delete_breakpoint,breakpoint_re_set): Ditto.
387         (commands_command, insert_breakpoints): Ditto.
388         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
389         (break_at_finish_command_1): Ditto.
390
391 2003-08-09  Andrew Cagney  <cagney@redhat.com>
392
393         * MAINTAINERS (language support): List Adam Fedor as Objective C
394         maintainer.
395
396 2003-08-08  J. Brobecker  <brobecker@gnat.com>
397
398         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
399         are now multiarched.
400
401 2003-08-08  J. Brobecker  <brobecker@gnat.com>
402
403         * config/pa/tm-hppa64.h: Remove lots of macros that are no
404         longer necessary now that hppa64 is partially multiarch'ed.
405
406 2003-08-08  Andrew Cagney  <cagney@redhat.com>
407
408         * interps.c (interp_set): Check for a NULL "old_interp".
409
410 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
411
412         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
413         (install-only): Support DESTDIR.
414         (uninstall): Likewise.
415         (install-gdbtk): Likewise.
416
417 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
418
419         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
420         contains something meaningful at all times.
421
422 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
423
424         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
425
426 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
427
428         * MAINTAINERS (write after approval): Added self.
429
430 2003-08-07  Andrew Cagney  <cagney@redhat.com>
431
432         * inferior.h (AT_SYMBOL): Define.
433         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
434         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
435         * mips-tdep.c (mips_call_dummy_address): Delete function.
436         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
437         set call_dummy_address.
438
439 2003-08-07  Andrew Cagney  <cagney@redhat.com>
440
441         * language.c (op_error): Delete function.
442         (binop_type_check): Delete function.
443         * language.h (type_op_error, range_op_error): Delete macros.
444         (op_error): Delete declaration.
445
446 2003-08-07  Andrew Cagney  <cagney@redhat.com>
447
448         * interps.h (INTERP_MI2, INTERP_MI3): Define.
449
450 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
451
452         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
453         (x86_64_push_arguments): Skip the red zone.
454
455 2003-08-05  Andrew Cagney  <cagney@redhat.com>
456
457         * reggroups.c (reggroup_next): Check for the final entry.
458
459 2003-08-04  Andrew Cagney  <cagney@redhat.com>
460
461         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
462         * cli/cli-script.c (define_command): Call query directly, instead
463         of passing it a buffer.
464         * ocd.c (ocd_error): Pass error a constant format string.
465         * remote-mips.c (mips_error): Use fputs_filtered.
466
467         * solib-svr4.c (_initialize_svr4_solib): Update
468         register_gdbarch_data call.
469         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
470
471         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
472         (register_gdbarch_data): Delete "free" parameter.  Update
473         comments.
474         * gdbarch.h, gdbarch.c: Re-generate.
475         * reggroups.c (_initialize_reggroup): Update.
476         * gnu-v3-abi.c (init_gnuv3_ops): Update.
477         * frame-base.c (_initialize_frame_base): Update.
478         * frame-unwind.c (_initialize_frame_unwind): Update.
479         * user-regs.c (_initialize_user_regs): Update.
480         * remote.c (_initialize_remote): Update.
481         * regcache.c (_initialize_regcache): Update.
482
483         * regcache.c (xfree_regcache_descr): Delete function.
484         (_initialize_regcache): Update call to register_gdbarch_data.
485         (init_regcache_descr, init_legacy_regcache_descr): Use
486         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
487
488         * remote.c (free_remote_state): Delete function.
489         (_initialize_remote): Update register_gdbarch_data.
490         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
491         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
492
493 2003-08-04  Andrew Cagney  <cagney@redhat.com>
494
495         * reggroups.c (struct reggroup_el): Define.
496         (struct reggroups): Delete field "nr_group".  Replace array
497         "group" with a "first" to "last" linked list.
498         (reggroups_init): Update.  Allocate using gdbarch's obstack.
499         (reggroups_free): Delete function.
500         (add_group): Update.  Add "el" parameter.
501         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
502         (default_groups): Update.
503         (reggroup_next): Replace reggroups.
504         (reggroups_dump): Update.
505         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
506         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
507         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
508
509 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
510
511         * Makefile.in (tui-interp.o): Update dependencies.
512
513 2003-08-04  David Carlton  <carlton@kealia.com>
514
515         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
516         to internal_error call.
517         * source.c (forward_search_command): Add "%s" format argument.
518         (reverse_search_command): Ditto.
519         * top.c (quit_confirm): Ditto.
520         * cli/cli-setshow.c (do_setshow_command): Ditto.
521         * cp-valprint.c (cp_print_class_method): Replace
522         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
523         (cp_print_class_member): Ditto.
524         * event-top.c (command_line_handler): Ditto.
525         * linux-proc.c (linux_info_proc_cmd): Ditto.
526         * p-typeprint.c (pascal_type_print_base): Ditto.
527         * p-valprint.c (pascal_object_print_class_method): Ditto.
528         (pascal_object_print_class_member): Ditto.
529         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
530         * remote.c (remote_cisco_section_offsets): Ditto.
531         * top.c (command_line_input): Ditto.
532         * utils.c (vwarning,error_stream,quit): Ditto.
533         * valprint.c (print_floating,print_binary_chars)
534         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
535
536 2003-08-04  Andrew Cagney  <cagney@redhat.com>
537
538         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
539
540 2003-08-02  Andrew Cagney  <cagney@redhat.com>
541
542         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
543         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
544         amd64fbsd-nat.c.
545
546 2003-08-02  Andrew Cagney  <cagney@redhat.com>
547
548         * Makefile.in: Update all dependencies and definitions.
549
550 2003-08-02  Adam Fedor  <fedor@gnu.org>
551
552         * linespec.c (is_objc_method_format): New function
553         (decode_line_1, locate_first_half): Use it.
554         Fixes PR objc/1298
555
556 2003-08-01  Andrew Cagney  <cagney@redhat.com>
557
558         * NEWS: Mention that m32r is multi-arch.
559         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
560         * configure.tgt: Recognize m32r-*-*.
561         * config/m32r/tm-m32r.h: Delete file.
562         * config/m32r/m32r.mt: New file.
563         * m32r-rom.c (m32r_upload_command): Use hostent only when 
564         gethostname succeeds, in order to avoid a compilation
565         warning.
566         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
567         compiler warning.
568
569 2003-08-01  Michael Snyder  <msnyder@redhat.com>
570
571         * sh-tdep.c (sh_frame_align): New gdbarch method.
572         (sh_gdbarch_init): Set up frame_align method.
573
574 2003-07-31  Michael Snyder  <msnyder@redhat.com>
575
576         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
577         which is already covered by the new frames infrastructure.
578
579 2003-07-31  Andrew Cagney  <cagney@redhat.com>
580
581         * user-regs.c (struct user_reg): Add "next" link.
582         (struct user_regs): Replace "user" with "first" and "last" links.
583         (append_user_reg): Add pre-allocated "reg" parameter.
584         (builtin_user_regs): Provide initial value for "last".
585         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
586         (user_regs_init): Allocate memory from the gdbarch obstack.
587         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
588         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
589         linked list.
590         (usernum_to_user_reg): New function.
591         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
592         (value_of_user_reg): Use usernum_to_user_reg.
593         (user_regs_free): Delete function.
594         (_initialize_user_regs): Update register_gdbarch_data call.
595
596 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
597
598         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
599
600 2003-07-30  Michael Snyder  <msnyder@redhat.com>
601
602         * value.h (value_being_returned): Add a struct_addr argument.
603         * infcall.c (call_function_by_hand): Pass struct_addr to 
604         value_being_returned.
605         * infcmd.c (print_return_value): Pass zero as struct_addr.
606         * values.c (value_being_returned): If struct_addr is passed,
607         use it instead of trying to recover it from the inferior.
608
609 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
610
611         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
612         the prologue analyzer won't need to attempt to extract the pc
613         value from the woefully incomplete dummy frame.
614         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
615         possible.  Disable code which modifies the frame.
616
617 2003-07-28  Andrew Cagney  <cagney@redhat.com>
618
619         * annotate.c (annotate_breakpoints_headers): Restrict annotation
620         to level 2.
621         (annotate_breakpoints_table, annotate_record): Ditto.
622         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
623         (annotate_field_name_end, annotate_field_value): Ditto.
624         (annotate_field_end, annotate_frame_source_begin): Ditto.
625         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
626         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
627         (annotate_frame_begin, annotate_frame_function_name): Ditto.
628         (annotate_frame_address_end, annotate_frame_address): Ditto.
629         (annotate_frame_args, annotate_frame_end): Ditto.
630         (annotate_frame_where, annotate_arg_begin): Ditto.
631         (annotate_arg_name_end, annotate_arg_value): Ditto.
632         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
633         (annotate_function_call, annotate_signal_name): Ditto.
634         (annotate_signal_string, annotate_signal_name_end): Ditto.
635         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
636         (annotate_value_begin, annotate_value_history_value): Ditto.
637         (annotate_value_history_end, annotate_value_end): Ditto.
638         (annotate_display_begin, annotate_display_number_end): Ditto.
639         (annotate_display_format, annotate_display_expression): Ditto.
640         (annotate_display_expression_end, annotate_display_value): Ditto.
641         (annotate_display_end, annotate_array_section_begin): Ditto.
642         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
643         (annotate_elt, annotate_array_section_end): Ditto.
644
645 2003-07-28  Andrew Cagney  <cagney@redhat.com>
646
647         * regcache.c (struct regcache_descr): Update comments on
648         nr_raw_registers.
649         (init_legacy_regcache_descr): Don't set nr_raw_registers or
650         sizeof_raw_register_valid_p.
651         (init_regcache_descr): Set nr_raw_registers and
652         sizeof_raw_register_valid_p before calling
653         init_legacy_regcache_descr.
654
655 2003-07-28  Andrew Cagney  <cagney@redhat.com>
656
657         * mips-tdep.c (print_gp_register_row): Print the GPR's register
658         MOD NUM_REGS.
659
660 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
661
662         * thread.c (info_threads_command): Use get_selected_frame ().
663         Check that there is at least one non-sentinel frame.
664
665 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
666
667         * m68hc11-tdep.c (struct frame_extra_info): Remove.
668         (m68hc11_pop_frame): Remove.
669         (m68hc11_frame_saved_pc): Remove.
670         (m68hc11_frame_chain): Remove.
671         (m68hc11_frame_init_saved_regs): Remove.
672         (m68hc11_init_extra_frame_info): Remove.
673         (m68hc11_store_struct_return): Remove.
674         (m68hc11_saved_pc_after_call): Remove.
675
676 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
677
678         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
679         frame unwind information.
680         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
681         and adapted for frame unwinding.
682         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
683         (m68hc11_unwind_pc): New function.
684         (m68hc11_frame_unwind_cache): New function to analyze frames.
685         (m68hc11_frame_this_id): New function to create new frame struct.
686         (m68hc11_frame_prev_register): New function to unwind a register from
687         the frame.
688         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
689         (m68hc11_frame_p): New function for the above.
690         (m68hc11_frame_base_address): New function to return fp of frame.
691         (m68hc11_frame_args_address): Update for frame.
692         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
693         (m68hc11_unwind_sp): New function.
694         (m68hc11_unwind_dummy_id): New function.
695         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
696         calls.
697
698 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
699
700         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
701         (m68hc11_guess_from_prologue): Advance the pc and frame size only
702         when we are beyond the current pc.
703
704 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
705
706         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
707         from m68hc11_push_arguments.
708         (m68hc11_push_arguments): Remove.
709         (m68hc11_push_return_address): Remove.
710         (m68hc11_gdbarch_init): Install the above; remove above deprecated
711         handlers; remove deprecated_extra_stack_alignment_needed.
712
713 2003-07-27  Andrew Cagney  <cagney@redhat.com>
714
715         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
716         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
717         REAL_PC and not the pointer.
718         * hppa-hpux-tdep.c: Include frame.h
719
720 2003-07-27  Andrew Cagney  <cagney@redhat.com>
721
722         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
723         GDB_MULTI_ACH_PARTIAL.
724
725 2003-07-27  Andrew Cagney  <cagney@redhat.com>
726
727         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
728         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
729         operator at start and not end of line.
730         (decode_prologue): Ditto.
731         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
732         frame_unwind_register_unsigned instead of
733         frame_unwind_unsigned_register.
734         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
735         read_register.
736         (m32r_push_dummy_call): Use register_size instead of
737         REGISTER_RAW_SIZE.
738         (m32r_frame_sniffer): Replace m32r_frame_p.
739         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
740         * m32r-rom.c (report_transfer_performance): Delete extern
741         declaration.
742         (m32r_load, m32r_upload_command): Use print_transfer_performance
743         instead of report_transfer_performance.
744         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
745         / add_show_from_set.
746
747 2003-07-26  Andrew Cagney  <cagney@redhat.com>
748
749         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
750         store_return_value and extract_struct_value_address.
751
752 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
753
754         PR c++/1267
755         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
756         NULL, default to the section containing PC.
757
758 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
759
760         * NEWS: Mention "regs" deprecated for m68hc11 too.
761
762         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
763         (m68hc11_print_register): New function to print out one register.
764         (m68hc11_print_registers_info): New function to print registers.
765         (show_regs): Deprecate and use the above.
766         (m68hc11_gdbarch_init): Install the print_registers_info.
767
768 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
769
770         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
771         that we have a SIGTRAP before returning non-zero.
772
773 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
774             Elena Zannoni  <ezannoni@redhat.com>
775
776         * linespec.c (decode_line_2): Avoid crash if 
777         find_function_start_sal() returns empty record.
778
779 2003-07-23  Andreas Schwab  <schwab@suse.de>
780
781         * ia64-tdep.c (ia64_print_insn): New function.
782         (ia64_gdbarch_init): Set print_insn to it.
783         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
784         deprecated_tm_print_insn_info.
785
786 2003-07-22  Michael Snyder  <msnyder@redhat.com>
787
788         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
789         handle 8-bit returns (long long).
790         (h8300h_extract_return_value): Ditto.
791         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
792
793 2003-07-22  Andrew Cagney  <cagney@redhat.com>
794
795         * gdbarch.c Include "gdb_obstack.h".
796         (struct gdbarch): Add an "obstack".
797         (alloc_gdbarch_data): Allocate the gdbarch data using
798         GDBARCH_OBSTACK_CALLOC.
799         (free_gdbarch_data): Delete function.
800         (gdbarch_obstack_zalloc): New function.
801         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
802         Assert that the architecture is not initialized.
803         (gdbarch_alloc): Allocate an obstack, allocate the architecture
804         vector from the obstack.
805         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
806         architecture obstack.
807         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
808         (set_gdbarch_data): Assert that the data is not initialized.
809         (struct gdbarch_data): Delete member "free".
810         (register_gdbarch_data): Do not initialize "free".
811         * gdbarch.h, gdbarch.c: Re-generate.
812         
813 2003-07-22  Andrew Cagney  <cagney@redhat.com>
814
815         * configure.in (build_warnings): Add -Wformat-nonliteral.
816         * configure: Re-generate.
817
818 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
819
820         * dwarf2loc.c (locexpr_describe_location): Fix typos.
821
822 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
823
824         * findvar.c (read_var_value): Remove case for thread local storage
825         variables.  It is now entirely handled by the dwarf2 location
826         expression code.
827         * printcmd.c (address_info): Ditto.
828         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
829         enumeration value.
830         (struct symbol): Remove objfile field, which was used by
831         LOC_THREAD_LOCAL_STATIC only.
832         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
833         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
834         usage of objfile pointer.
835         * dwarf2loc.c (locexpr_describe_location): Add case to handle
836         thread local variables.
837         Add include of objfiles.h.
838         * dwarf2expr.c (execute_stack_op): Add comments about thread local
839         storage variables.
840         * Makefile.in (dwarf2loc.o): Update dependencies.
841
842 2003-07-22  Andrew Cagney  <cagney@redhat.com>
843
844         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
845         get_frame_base.
846         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
847         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
848         (struct value): Add opaque declaration.
849         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
850
851 2003-07-21  Andrew Cagney  <cagney@redhat.com>
852
853         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
854         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
855
856 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
857
858         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
859         regcache_cooked_read_unsigned instead of read_register.
860         (m68hc11_saved_pc_after_call): Likewise.
861         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
862         instead of write_register.
863         (m68hc11_register_type): New function.
864         (m68hc11_register_virtual_type): Remove.
865         (m68hc11_store_return_value): Convert to use the regcache.
866         (m68hc11_extract_struct_value_address): Likewise.
867         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
868         m68hc11_register_type; undeprecate store_return_value and
869         extract_struct_value_address.
870
871 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
872
873         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
874         and translate to use regcache.
875         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
876
877 2003-07-18  Andrew Cagney  <cagney@redhat.com>
878
879         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
880         * gdbarch.h, gdbarch.c: Re-generate.
881         * i386-tdep.c (i386_gdbarch_init): Do not set
882         DWARF2_BUILD_FRAME_INFO.
883         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
884         unconditionally.
885         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
886         DWARF2_BUILD_FRAME_INFO.
887
888 2003-07-18  Andrew Cagney  <cagney@redhat.com>
889
890         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
891         * disasm.c (gdb_disassemble_info): Initilize di.arch.
892
893 2003-07-18  Andrew Cagney  <cagney@redhat.com>
894
895         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
896         frame_unwind_address_in_block, instead of frame_pc_unwind.
897         (dwarf2_frame_cache): Ditto.
898
899 2003-07-18  Andrew Cagney  <cagney@redhat.com>
900
901         * user-regs.h (struct gdbarch): Declare opaque.
902         * ui-out.h (struct ui_file): Declare opaque.
903         * dwarf2-frame.h (struct frame_info): Declare opaque.
904
905 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
906
907         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
908         #include "...".
909         (procfs_meminfo): Change strerror to safe_strerror.
910         (procfs_can_run): Remove K&R badness.
911
912 2003-07-17  Michael Snyder  <msnyder@redhat.com>
913
914         * remote-sim.c: Comment typo fix.
915
916 2003-07-17  Andrew Cagney  <cagney@redhat.com>
917
918         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
919         configure.
920         * sparc-tdep.c (sparc_intreg_size): Make non-static.
921         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
922         GDB_MULTI_ARCH_PARTIAL.
923
924 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
925
926         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
927         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
928         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
929
930 2003-07-16  Theodore A. Roth  <troth@openavr.org>
931
932         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
933         found.
934         (avr_frame_unwind_cache): Don't unwind FP for main.
935         Update a comment.
936         Save the computed prev_sp.
937         (avr_saved_regs_unwinder): Remove function.
938         (avr_frame_prev_register): Use PC unwind logic from 
939         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
940
941 2003-07-16  Andrew Cagney  <cagney@redhat.com>
942
943         * frame-base.h (frame_base_p_ftype): Delete definition.
944         (frame_base_append_predicate): Delete declaration.
945         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
946         (frame_unwind_append_predicate): Delete declaration.
947         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
948         (append_predicate): Delete parameter "p".
949         (frame_unwind_append_predicate): Delete function.
950         (frame_unwind_append_sniffer): Update call to append_predicate.
951         (frame_unwind_free): Delete function.
952         (_initialize_frame_unwind): Pass NULL as "free" to
953         register_gdbarch_data.
954         (frame_unwind_init): Append the dummy_frame_sniffer.
955         (frame_unwind_find_by_frame): Simplify.
956         * frame-base.c (struct frame_base_table): Delete field "p".
957         (append_predicate): Delete parameter "p".
958         (frame_base_append_predicate): Delete function.
959         (frame_base_append_sniffer): Update call to append_predicate.
960         (frame_base_free): Delete function.
961         (frame_base_find_by_frame): Simplify.
962         (_initialize_frame_base): Pass NULL as "free" to
963         register_gdbarch_data.
964         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
965         (x86_64_sigtramp_frame_sniffer): Replace
966         "x86_64_sigtramp_frame_p".
967         (x86_64_init_abi): Set the frame unwind sniffers.
968         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
969         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
970         (m68k_gdbarch_init): Set the frame unwind sniffers.
971         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
972         "i386_sigtramp_frame_p".
973         (i386_frame_sniffer): Replace "i386_frame_p".
974         (i386_gdbarch_init): Set the frame unwind sniffers.
975         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
976         (avr_gdbarch_init): Set the frame unwind sniffers.
977         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
978         "alpha_sigtramp_frame_p"
979         (alpha_heuristic_frame_sniffer): Replace
980         "alpha_heuristic_frame_p".
981         (alpha_gdbarch_init): Set the frame unwind sniffers.
982         (alpha_dwarf2_init_abi): Ditto.
983         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
984         "alpha_debug_frame_p".
985         (alpha_mdebug_frame_base_sniffer): Replace
986         "alpha_mdebug_frame_base_p".
987         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
988         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
989         (d10v_gdbarch_init): Set the frame unwind sniffer.
990         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
991         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
992         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
993         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
994         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
995         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
996
997 2003-07-16  Michael Snyder  <msnyder@redhat.com>
998
999         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1000         should go thru sh_dsp_register_sim_regno, else the dsp regs
1001         will not get the right values.
1002
1003 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
1004
1005         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1006         deprecated_store_floating by call to store_typed_floating.
1007         (sh_sh4_register_convert_to_raw): Substitute call to
1008         deprecated_extract_floating by call to extract_typed_floating.
1009
1010 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
1011
1012         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1013
1014 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
1015
1016         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1017         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1018         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
1019         as possible.
1020         (do_pseudo_register): Remove.
1021         (sh_push_dummy_code): New function.
1022         (sh64_store_struct_return): Rename from sh_store_struct_return.
1023         Only called for sh64 now.
1024         (sh_extract_struct_value_address): Regcache'ify.
1025         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
1026         and accomodate new tasks.
1027         (sh64_push_return_address): Rename from sh_push_return_address.
1028         Only called for sh64 now.
1029         (sh_default_extract_return_value): Rename from sh_extract_return_value.
1030         Regcache'ify.
1031         (sh3e_sh4_extract_return_value): Regcache'ify.
1032         (sh_default_store_return_value): Ditto.
1033         (sh3e_sh4_store_return_value): Ditto.
1034         (sh_default_register_byte): Remove.
1035         (sh_sh4_register_byte): Remove.
1036         (sh_default_register_raw_size): Remove.
1037         (sh_sh4_register_raw_size): Remove.
1038         (sh_register_virtual_size): Remove.
1039         (sh_sh3e_register_virtual_type): Remove.
1040         (sh_sh3e_register_type): New function.
1041         (sh_sh4_register_virtual_type): Remove.
1042         (sh_sh4_register_type): New function.
1043         (sh_default_register_virtual_type): Remove.
1044         (sh_default_register_type): New function.
1045         (do_fv_register_info): Add parameters to accomodate call from
1046         sh_print_registers_info.
1047         (do_dr_register_info): Ditto.
1048         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1049         Add parameters to accomodate call from sh_print_registers_info.
1050         (sh_do_fp_register): Ditto.
1051         (sh64_do_pseudo_register): Call do_dr_register_info,
1052         do_fv_register_info and sh_do_fp_register with default parameters.
1053         (sh_do_register): Add parameters to accomodate call from
1054         sh_print_registers_info.
1055         (sh_print_register): Ditto.
1056         (sh_print_registers_info): Rename from sh_do_registers_info.
1057         Add parameters to be used as gdbarch_print_registers_info
1058         implementation.  Accomodate removed do_pseudo_register function
1059         pointer.
1060         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1061         function pointer. Call sh_print_register with default parameters.
1062         (sh64_do_registers_info): Call sh_print_registers_info instead of
1063         sh_do_registers_info.
1064         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1065         detection of deprecated vs. non-deprecated functionality.
1066         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
1067         function pointer assignments by direct function calls.
1068
1069 2003-07-15  Andrew Cagney  <cagney@redhat.com>
1070
1071         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1072         (frame_register_unwind, create_new_frame): Ditto.
1073         (legacy_get_prev_frame, get_frame_type): Ditto.
1074         (get_frame_base_address): Use frame_base_find_by_frame.
1075         (get_frame_locals_address): Use frame_base_find_by_frame.
1076         (get_frame_args_address): Use frame_base_find_by_frame.
1077         * frame-base.h (frame_base_sniffer_ftype): Declare.
1078         (frame_base_append_sniffer): Declare.
1079         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1080         * frame-base.c (append_predicate): Add a "sniffer" parameter.
1081         (frame_base_append_sniffer): New function.
1082         (frame_base_append_predicate): Add a NULL sniffer.
1083         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1084         (struct frame_base_table): Add "sniffer".
1085         (frame_base_free): Free the "sniffer" table.
1086         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1087         (frame_unwind_append_sniffer): Declare.
1088         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1089         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1090         (struct frame_unwind_table): Add "sniffer", delete "middle".
1091         (append_predicate): Add "sniffer" parameter, append the sniffer.
1092         (frame_unwind_init): Update append_predicate call.
1093         (frame_unwind_append_sniffer): New function.
1094         (frame_unwind_append_predicate): Update append_predicate call.
1095         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1096
1097 2003-07-15  Andrew Cagney  <cagney@redhat.com>
1098
1099         * frame.c (get_prev_frame): Move disabled inside_entry_func to
1100         before code inhibiting repeated unwind attempts.  Add to
1101         commentary on that test's problems.
1102         * blockframe.c (inside_main_func): Look for "main" in the minimal
1103         symbol table.
1104         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1105         identical.
1106
1107 2003-07-15  Andrew Cagney  <cagney@redhat.com>
1108
1109         * complaints.c (struct explanation): Define.
1110         (struct complaints): Change type of "explanation" to "struct
1111         explanation".
1112         (symfile_explanations): Convert to a "struct explanation" table.
1113         (vcomplaint): Update.
1114
1115 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
1116
1117         * x86-64-linux-nat.c (regmap): Removed.
1118         (supply_gregset, fill_gregset): Call 
1119         x86_64_linux_(fill,supply)_gregset functions.
1120         * x86-64-linux-tdep.c (USER_*): New defines.
1121         (user_to_gdb_regmap, x86_64_core_fns): New structure.
1122         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1123         New functions.
1124         (fetch_core_registers): Ditto.
1125         (_initialize_x86_64_linux_tdep): Call add_core_fns().
1126         * x86-64-linux-tdep.h: New file.
1127         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1128         and core-regset.o.
1129         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1130
1131 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
1132
1133         * x86-64-tdep.c (x86_64_store_return_value): Use
1134         regcache_cooked_write_part instead of regcache_cooked_write.
1135
1136         * configure.host: Add x86_64-*-freebsd*.
1137         * configure.tgt: Add x86_64-*-freebsd*.
1138         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1139         * amd64fbsd-nat.c: New file.
1140         * amd64fbsd-tdep.c: New file.
1141         * config/i386/nm-fbsd64.h: New file.
1142         * config/i386/fbsd64.mh: New file.
1143         * config/i386/fbsd64.mt: New file.
1144
1145 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
1146
1147         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1148         `sc_regs_offset' and `sc_fpregs_offset'.
1149         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1150         SIGFRAME_FPREGSAVE_OFF): Remove defines.
1151         (alpha_sigtramp_register_address): Rewrite to use new members of
1152         `struct gdbarch_tdep'.
1153         (alpha_gdbarch_init): Initialize new members of struct
1154         gdbarch_tdep'.
1155         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1156         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1157         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1158         (alphafbsd_pc_in_sigtramp): Implement.
1159         (alphafbsd_sigtramp_offset): New function.
1160         (alphafbsd_sigcontext_addr): New function.
1161         (alphafbsd_init_abi): Initialize signal trampoline related members
1162         of `struct gdbarch_tdep'.
1163         (_initialize_alphafbsd_tdep): Add prototype.
1164
1165 2003-07-11  Theodore A. Roth  <troth@openavr.org>
1166
1167         * Makefile.in (install-only): Quote sed expression when generating
1168         transformed_name.
1169
1170 2003-07-11  Richard Henderson  <rth@redhat.com>
1171
1172         * Makefile.in (dwarf2-frame.o): Add complaints_h.
1173         * dwarf2-frame.c: Include complaints.h.
1174         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1175         variable initialization; return NULL on error.
1176         (decode_frame_entry): New.
1177
1178 2003-07-11  Andrew Cagney  <cagney@redhat.com>
1179
1180         * frame.h (frame_address_in_block): Delete declaration.
1181         * blockframe.c (frame_address_in_block): Delete function.
1182         (get_frame_block): Use get_frame_address_in_block.
1183         (block_innermost_frame): Ditto.
1184         * stack.c (print_frame, backtrace_command_1): Ditto.
1185
1186         * frame.h (get_frame_address_in_block): Declare.
1187         (frame_unwind_address_in_block): Declare.
1188         * frame.c (frame_unwind_address_in_block): New function.
1189         (get_frame_address_in_block): New function.
1190
1191 2003-07-10  Andrew Cagney  <cagney@redhat.com>
1192
1193         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
1194         pre-default.   Note: re-generate has no effect.
1195         
1196 2003-07-10  Andrew Cagney  <cagney@redhat.com>
1197
1198         * gdbarch.sh: When a variable, but not a function, compare against
1199         0.  Fix problem in previous patch.
1200         * gdbarch.c: Re-generate.
1201         
1202 2003-07-10  Andrew Cagney  <cagney@redhat.com>
1203
1204         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
1205         functions against NULL, not 0.
1206         * gdbarch.c: Re-generate.
1207         
1208 2003-07-10  Fred Fish  <fnf@ninemoons.com>
1209
1210         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1211         null string instead of a null pointer.
1212         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1213
1214 2003-07-09  Michael Snyder  <msnyder@redhat.com>
1215
1216         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1217
1218 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
1219
1220         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1221         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1222         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1223         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1224         * x86-64-tdep.c: ... from here.
1225
1226 2003-07-09  Andreas Schwab  <schwab@suse.de>
1227
1228         * m68k-tdep.h (enum struct_return): Define.
1229         (struct gdbarch_tdep): Add struct_return.
1230         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1231         bytes are padded to the right, not to the left.  Pass struct value
1232         address in register %a1, not on stack.
1233         (m68k_use_struct_convention): New function.
1234         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
1235         struct_return in tdep to pcc_struct_return.
1236         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1237         reg_struct_return.
1238
1239 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
1240
1241         * somread.c (som_symfile_offsets): Fix compilation error.   
1242
1243 2003-07-09  Andrew Cagney  <cagney@redhat.com>
1244
1245         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1246         Add comments about the checks.
1247
1248 2003-07-08  Andrew Cagney  <cagney@redhat.com>
1249
1250         * Makefile.in: Make dependency section headers consistent.
1251         (config_h): Move to $BUILD headers section.
1252         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1253         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1254         (ada-exp.tab.c): Move to YACC/LEX section.
1255         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1256         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1257
1258 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
1259
1260         * nto-procfs.c: Cleaned up a bunch of ARI hits.
1261         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1262         of strerror with safe_strerror, use ISO C function definitions,
1263         and replace instances of sprintf with snprintf.
1264
1265 2003-07-07  Andrew Cagney  <cagney@redhat.com>
1266
1267         * frame.c (get_prev_frame): Enable check for identical frames.
1268         Update comments.  Update error messages.
1269
1270 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1271
1272         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1273
1274 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1275
1276         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1277         sort_symtab_syms, no longer necessary.
1278
1279 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1280
1281         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1282
1283 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1284
1285         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1286         (mips_register_byte): Likewise.
1287
1288 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
1289
1290         * Makefile.in (sparc_tdep_h): New.
1291         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1292         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1293         * sparc-linux-nat.c: Include "sparc-tdep.h".
1294         * sparc-nat.c: Likewise.
1295         * sparc-tdep.c: Likewise.
1296         * sparc64nbsd-nat.c: Likewise.
1297         * sparcnbsd-nat.c: Likewise.
1298         * sparcnbsd-tdep.c: Likewise.
1299         * sparc-tdep.h: New file.
1300         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1301         and sparc_npc_regnum.
1302
1303 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
1304
1305         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1306         (mips_linux_cannot_store_register): List supported instead of
1307         unsupported registers.
1308
1309 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
1310
1311         * disasm.c (dump_insns): Separate instructions from addresses.
1312
1313 2003-07-07  Andreas Schwab  <schwab@suse.de>
1314
1315         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1316         dependencies.
1317         * m68k-tdep.c (NUM_FREGS): Delete.
1318         (SIG_PC_FP_OFFSET): Delete.
1319         (TARGET_M68K): Delete.
1320         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1321         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1322         P_MOVEL_SP, P_MOVEML_SP): Define.
1323         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1324         P_TRAP): Delete.
1325         (m68k_register_raw_size): Delete.
1326         (m68k_register_virtual_size): Delete.
1327         (m68k_register_type): Renamed from m68k_register_virtual_type and
1328         add gdbarch argument.
1329         (m68k_store_struct_return): Delete.
1330         (m68k_deprecated_extract_return_value): Delete.
1331         (m68k_deprecated_extract_struct_value_address): Delete.
1332         (m68k_frame_chain): Delete.
1333         (m68k_frame_saved_pc): Delete.
1334         (m68k_fix_call_dummy): Delete.
1335         (m68k_push_dummy_frame): Delete.
1336         (m68k_pop_frame): Delete.
1337         (m68k_extract_return_value): New function.
1338         (m68k_store_return_value): Rewrite using regcache.
1339         (m68k_extract_struct_value_address): Rewrite using regcache.
1340         (m68k_push_dummy_call): New function.
1341         (struct m68k_frame_cache): Define.
1342         (m68k_alloc_frame_cache): New function.
1343         (m68k_analyze_frame_setup): New function.
1344         (m68k_analyze_register_saves): New function.
1345         (m68k_analyze_prologue): New function.
1346         (m68k_skip_prologue): Rewrite using above functions.
1347         (m68k_unwind_pc): New function.
1348         (m68k_frame_cache): New function.
1349         (m68k_frame_this_id): New function.
1350         (m68k_frame_prev_register): New function.
1351         (m68k_frame_unwind): New variable.
1352         (m68k_frame_p): New function.
1353         (m68k_sigtramp_frame_cache): New function.
1354         (m68k_sigtramp_frame_this_id): New function.
1355         (m68k_sigtramp_frame_prev_register): New function.
1356         (m68k_sigtramp_frame_unwind): New variable.
1357         (m68k_sigtramp_frame_p): New function.
1358         (m68k_frame_base_address): New function.
1359         (m68k_frame_base): New function.
1360         (m68k_unwind_dummy_id): New function.
1361         (fill_gregset): Use regcache_collect.
1362         (fill_fpregset): Likewise.
1363         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1364         defined.
1365         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
1366         deprecated_init_frame_pc, deprecated_store_struct_return,
1367         deprecated_extract_return_value, deprecated_store_return_value,
1368         deprecated_frame_chain, deprecated_frame_saved_pc,
1369         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1370         deprecated_register_virtual_size,
1371         deprecated_max_register_raw_size,
1372         deprecated_max_register_virtual_size,
1373         deprecated_register_virtual_type, deprecated_register_size,
1374         deprecated_register_byte, deprecated_register_bytes,
1375         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1376         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1377         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1378         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1379         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1380         deprecated_push_dummy_frame, deprecated_pop_frame,
1381         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
1382         only if SYSCALL_TRAP is defined.  Set extract_return_value,
1383         store_return_value, extract_struct_value_address, register_type,
1384         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
1385         predicates.
1386         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1387         M68K_MAX_REGISTER_SIZE): Define.
1388         (struct m68k_sigtramp_info): Define.
1389         (struct gdbarch_tdep): Add get_sigtramp_info.
1390         * m68klinux-nat.c (fetch_register): Use register_size instead of
1391         REGISTER_RAW_SIZE.  Don't put assignment in if.
1392         (store_register): Likewise.
1393         (fetch_inferior_registers): Likewise.
1394         (store_inferior_registers): Likewise.
1395         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1396         (m68k_linux_frame_saved_pc): Delete.
1397         (m68k_linux_sigcontext_reg_offset,
1398         m68k_linux_ucontext_reg_offset): Define.
1399         (m68k_linux_get_sigtramp_info): New function.
1400         (m68k_linux_extract_return_value): Rewrite using regcache.
1401         (m68k_linux_store_return_value): Likewise.
1402         (m68k_linux_extract_struct_value_address): Likewise.
1403         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1404         Don't set deprecated_frame_saved_pc,
1405         deprecated_extract_return_value, deprecated_store_return_value,
1406         deprecated_extract_struct_value_address.  Set
1407         extract_return_value, store_return_value,
1408         extract_struct_value_address.
1409
1410 2003-07-07  Andrew Cagney  <cagney@redhat.com>
1411
1412         * expprint.c: Include "user-regs.h" instead of "frame.h".
1413         (print_subexp): Use user_reg_map_regnum_to_name, instead of
1414         frame_map_regnum_to_name.
1415         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1416         (frame_map_name_to_regnum): Simplify, call
1417         user_reg_map_name_to_regnum.
1418         (frame_map_regnum_to_name): Simplify, call
1419         user_reg_map_regnum_to_name.
1420         (frame_register_unwind): Update.
1421         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1422         (_initialize_frame_reg): Call user_reg_add_builtin.
1423         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1424         (value_of_register): Use value_of_user_reg.
1425         * eval.c (evaluate_subexp_standard): Update.
1426         * parse.c (write_dollar_variable): Update.
1427         * d10v-tdep.c (d10v_print_registers_info): Update.
1428         * infcmd.c (registers_info): Update.
1429         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1430         (builtin_regs_h): Delete macro.
1431         (user_regs_h): Define.
1432         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1433         (builtin-regs.o): Delete target.
1434         (user-regs.o): Specify dependencies.
1435         (expprint.o): Update dependencies.
1436         (findvar.o): Update dependencies.
1437         (frame.o): Update dependencies.
1438         (std-regs.o): Update dependencies.
1439
1440 2003-07-06  Christopher Faylor  <cgf@redhat.com>
1441
1442         * win32-nat.c (solib_symbols_add): Use one variable for all section
1443         address stuff.  Pass variable rather than address of variable to
1444         safe_symbol_file_add.
1445
1446 2003-07-06  Andreas Schwab  <schwab@suse.de>
1447
1448         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1449
1450 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
1451
1452         * rs6000-nat.c (vmap_symtab): Fix compilation error.
1453
1454 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
1455
1456         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1457
1458 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
1459
1460         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
1461         * config/i386/nto.mh: New file.
1462         * config/i386/nm-nto.h: New file.
1463         * configure.host: Add i[3456]86-*-nto*.
1464
1465 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
1466
1467         * remote-vx.c (vx_add_symbols): Fix compilation error.
1468
1469 2003-07-03  Andrew Cagney  <cagney@redhat.com>
1470
1471         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1472         * gdbarch.h, gdbarch.c: Re-generate.
1473         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1474         (legacy_register_name): Declare.
1475         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1476         (REGISTER_NAME): Define.
1477         * sparc-tdep.c (legacy_register_name): New function.
1478         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1479         (REGISTER_NAME): Define.
1480         (hppa64_register_name): Declare.
1481         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1482         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1483         (hppa64_register_name): New function.
1484         (hppa_register_name): New function.
1485         * arch-utils.c (legacy_register_name): Delete.
1486         * arch-utils.h (legacy_register_name): Delete.
1487
1488 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
1489
1490         * cli/cli-interp.c (cli_interpreter_resume): Update the
1491         cli_uiout's stream to gdb_stdout.
1492
1493 2003-07-03  Andrew Cagney  <cagney@redhat.com>
1494
1495         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1496         predicate.
1497         * gdbarch.h, gdbarch.c: Re-generate.
1498         * regcache.c (init_regcache_descr): Use legacy code when either
1499         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1500
1501 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
1502
1503         * NEWS: Move "set logging" entry into GDB 6.0 section.
1504
1505 2003-07-02  Jim Blandy  <jimb@redhat.com>
1506
1507         * s390-tdep.c (struct frame_extra_info): new member:
1508         'stack_bought_valid'.
1509         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1510         initialize fextra_info->stack_bought.
1511         (s390_frameless_function_invocation): Don't trust the value of
1512         fextra_info_ptr->stack_bought unless
1513         fextra_info->stack_bought_valid is set.
1514
1515         New S390 prologue analyzer.
1516         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1517         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1518         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1519         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1520         compute_x_addr, s390_on_stack, s390_store,
1521         s390_get_signal_frame_info): New functions.
1522         (S390_NUM_SPILL_SLOTS): New macro.
1523         (s390_get_frame_info): Rewritten.
1524         (is_arg_reg): Deleted.
1525
1526         Break out the decoding of S/390 instructions into separate
1527         functions, to make it more legible, and easier to check
1528         against the spec.
1529         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1530         is_rx, is_rxe): New functions.
1531         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1532         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1533         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1534         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1535         enums for opcode values.  (Is this an improvement?)
1536
1537 2003-07-02  Andrew Cagney  <cagney@redhat.com>
1538
1539         * i386-tdep.c: Revert change committed as part of trad-frame code
1540         below.
1541
1542 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
1543
1544         * breakpoint.c (insert_catchpoint): Make static.
1545
1546 2003-07-02  Andreas Schwab  <schwab@suse.de>
1547
1548         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1549         former ia64_push_arguments and ia64_push_return_address, and use
1550         regcache functions instead of read/write_register.
1551         (ia64_gdbarch_init): Set push_dummy_call instead of
1552         deprecated_push_arguments and deprecated_push_return_address.
1553
1554 2003-07-01  Andreas Jaeger  <aj@suse.de>
1555
1556         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1557         before the call.
1558         Set %rax only to number of SSE registers used.
1559
1560 2003-07-01  Andrew Cagney  <cagney@redhat.com>
1561
1562         * trad-frame.h: Update comments, a -1 .addr is reserved.
1563         (trad_frame_value_p, trad_frame_addr_p): Declare.
1564         (trad_frame_reg_p): Declare.
1565         (trad_frame_set_value): Rename trad_frame_register_value.
1566         (trad_frame_set_unknown): Declare.
1567         * trad-frame.c (trad_frame_realreg_p): New function.
1568         (trad_frame_addr_p, trad_frame_value_p): New function.
1569         (trad_frame_set_unknown): New function.
1570         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1571         (trad_frame_prev_register): Use trad_frame_realreg_p,
1572         trad_frame_addr_p and trad_frame_value_p.
1573         (trad_frame_set_value): Rename trad_frame_register_value.
1574         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1575         and trad_frame_set_value.
1576
1577 2003-06-30  Jim Blandy  <jimb@redhat.com>
1578
1579         Patch from IBM (authors unspecified, probably Ulrich Weigand and
1580         Gerhard Tonn) for argument passing on the S/390 and S/390x:
1581         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1582         for 16 registers, and then 32 more bytes.
1583         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1584         New macros.
1585         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1586         Move up in the file, since it's now used by is_simple_arg.
1587         (is_simple_arg): Don't assume registers are four bytes long.
1588         Exclude all double arguments.  Extended floats are not simple
1589         args.
1590         (is_power_of_two): New function.
1591         (pass_by_copy_ref): Call is_power_of_two, and check that the
1592         length fits in a register, rather than listing all the acceptable
1593         sizes.  Extended floats are not passed by reference.
1594         (s390_push_arguments): Don't assume registers are four bytes long.
1595         Reserve an argument register to point to the buffer for structures
1596         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
1597         S390_STACK_FRAME_OVERHEAD.
1598
1599 2003-06-30  Andreas Schwab  <schwab@suse.de>
1600
1601         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1602         format error message.
1603
1604 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
1605
1606         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1607
1608 2003-06-30  David Carlton  <carlton@kealia.com>
1609
1610         Band-aid for PR c++/1245.
1611         * Makefile.in (cp-support.o): Depend on complaints_h.
1612         * cp-support.c: Include complaints.h.  Add declaration for
1613         find_last_component.
1614         (cp_find_first_component): Separate code into
1615         cp_find_first_component_aux.
1616         (cp_find_first_component_aux): Call demangled_name_complaint.
1617         (demangled_name_complaint): New.
1618
1619 2003-06-30  Andrew Cagney  <cagney@redhat.com>
1620
1621         * remote.c (remote_write_bytes): Explicitly compute and then use
1622         the payload size.  Update comments to reflect.  Fixes problem of
1623         GDB not sending small packets as found by Fred Fish.
1624
1625 2003-06-30  Andrew Cagney  <cagney@redhat.com>
1626
1627         * remote.c (remote_async_wait): Fix -Wformat problem.
1628
1629 2003-06-29  Andrew Cagney  <cagney@redhat.com>
1630
1631         * remote.c (remote_wait): Call error, and not warning, when the
1632         packet is corrupt.
1633         (remote_async_wait): Ditto.
1634
1635 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
1636
1637         * sparc-tdep.c (sparc_y_regnum): Make external again.
1638
1639 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
1640
1641         * cli/cli-logging.c (pop_output_files): Add void to function
1642         definition.
1643
1644 2003-06-29  Andrew Cagney  <cagney@redhat.com>
1645
1646         * frame.c (frame_register_unwind): Use unsigned char when dumping
1647         the buffer contents.
1648
1649 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
1650
1651         * cli/cli-logging.c: New file.
1652         * cli-out.c (struct ui_out_data): Add original_stream.
1653         (cli_redirect): New function.
1654         (cli_ui_out_impl): Add cli_redirect.
1655         (cli_out_new): Initialize original_stream.
1656         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1657         (uo_redirect, ui_out_redirect): New.
1658         * ui-out.h (struct ui_out_impl): Add redirect member.
1659         (redirect_ftype): New.
1660         (ui_out_redirect): Add prototype.
1661         * Makefile.in: Add rules for cli-logging.c.
1662         * NEWS: Mention "set logging".
1663
1664 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1665
1666         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1667
1668 2003-06-27  Andrew Cagney  <cagney@redhat.com>
1669
1670         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1671         (m68hc11_gdbarch_init): Do not set call_dummy_address.
1672         * avr-tdep.c (avr_call_dummy_address): Delete function.
1673         (avr_gdbarch_init): Do not set call_dummy_address.
1674
1675 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1676
1677         * symfile.c (syms_from_objfile): Move variables to inner block.
1678         Move the checks for the non-mainline case a bit earlier to avoid
1679         doing some useless computations.
1680
1681 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1682
1683         * dwarfread.c (decode_modified_type): Gag new compiler warning.
1684
1685 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
1686
1687         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1688         sections.
1689
1690 2003-06-26  Michael Chastain  <mec@shout.net>
1691
1692         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1693         gdb/testsuite/gdb.c++/pr-1210.exp.
1694
1695 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1696
1697         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1698         altivec_expression.h and altivec_registers.h.
1699
1700 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1701
1702         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1703         info->mach when MIPS16.  Patch suggested by Fred Fish.
1704
1705 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1706
1707         * utils.c (internal_vproblem): Print the problem to a reason
1708         buffer and then pass to query.  Make the msg variable more local.
1709
1710 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1711
1712         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
1713         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
1714         * gdbarch.h, gdbarch.c: Re-generate.
1715         * frame-base.c (default_frame_args_address): Update.  Use
1716         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1717         not available.
1718         (default_frame_locals_address): Ditto for
1719         DEPRECATED_FRAME_LOCALS_ADDRESS.
1720         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1721         (vax_frame_num_args): Update.
1722         (vax_gdbarch_init): Update.
1723         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1724         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1725         * mcore-tdep.c (mcore_gdbarch_init): Update.
1726         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1727         * ia64-tdep.c (ia64_gdbarch_init): Update.
1728         * symtab.h (address_class): Update comments.
1729         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1730         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1731         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1732         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1733         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1734         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1735         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1736         * alpha-mdebug-tdep.c: Update.
1737         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1738
1739 2003-06-26  Andreas Jaeger  <aj@suse.de>
1740
1741         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1742         of SSE registers so that varargs functions work.  Rework handling
1743         of passing arguments on the stack.
1744         (x86_64_store_return_value): Return double and float values in SSE
1745         register.
1746
1747 2003-06-24  Michael Chastain  <mec@shout.net>
1748
1749         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1750         the "constructor breakpoints ignored" bug.
1751
1752 2003-06-25  David Carlton  <carlton@kealia.com>
1753
1754         * MAINTAINERS: Update e-mail address.
1755
1756 2003-06-24  Jim Blandy  <jimb@redhat.com>
1757
1758         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1759
1760         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1761         function.
1762         (ppc_linux_init_abi): Register it as the
1763         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1764
1765         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1766         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1767         method.
1768
1769         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1770         (ppc64_standard_linkage_target): Use it.
1771
1772 2003-06-23  Andrew Cagney  <cagney@redhat.com>
1773
1774         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1775         for 0 "int0" and 4 "int32" sized registers.
1776         * gdbtypes.c (builtin_type_int0): Define.
1777         (build_gdbtypes): Initialize builtin_type_int0.
1778         * gdbtypes.h (builtin_type_int0): Declare.
1779
1780 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
1781
1782         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1783         as characters are unsigned.
1784
1785 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1786
1787         PR gdb/1179
1788         * dwarfread.c (struct_type): Skip static fields without crashing.
1789
1790 2003-06-22  Andrew Cagney  <cagney@redhat.com>
1791
1792         GDB 6.0 branch created.
1793         * README: Update.
1794         * PROBLEMS: Update.  Empty.
1795         * NEWS: Update.
1796
1797 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1798
1799         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1800         Suggested by Nick Hibma <n_hibma@webweaving.org>.
1801
1802 2003-06-22  Andrew Cagney  <cagney@redhat.com>
1803
1804         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1805         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
1806         Velikov.
1807
1808 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1809
1810         * cli/cli-cmds.c (shell_escape): Silence warnings from old
1811         compilers.
1812
1813 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
1814
1815         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1816         argument of val_print.
1817         * cp-valprint.c (cp_print_value): Don't add the offset parameter
1818         to the address argument of baseclass_offset or target_read_memory.
1819         Do add it to the argument of cp_print_value_fields.
1820
1821 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1822
1823         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1824         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1825         instead of 0..NUM_REGS.
1826         (mips_register_reggroup_p): New function.
1827         (mips_pseudo_register_write): New function.
1828         (mips_pseudo_register_read): New function.
1829         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1830         based on the register's type.
1831         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
1832         cooked.
1833         (mips_get_saved_register): Simplify.  Assert that REGNO is a
1834         pseudo / cooked.
1835         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
1836         (mips_register_type): Replace mips_register_virtual_type.  Map
1837         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
1838         when available.
1839         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
1840         that the register is cooked / virtual.
1841         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1842         Only get the extra info when needed.
1843         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1844         (mips32_heuristic_proc_desc): Fetch the cooked register.
1845         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1846         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1847         (mips_print_register): Use gdbarch_register_type, instead of
1848         REGISTER_VIRTUAL_TYPE.
1849         (print_gp_register_row): Use gdbarch_register_type, instead of
1850         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
1851         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1852         Print the pseudo / cooked registers.
1853         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1854         Print the pseudo / cooked registers.
1855         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
1856         REG_NUM is pseudo / cooked.
1857         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1858         (mips_n32n64_xfer_return_value): Ditto.
1859         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1860         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1861         (mips_register_sim_regno): New function.
1862         (mips_gdbarch_init): Set deprecated_register_byte,
1863         register_group_p, pseudo_register_write, pseudo_register_read,
1864         register_sim_regno, and num_pseudo_regs.  Set register_type,
1865         instead of register_virtual_type.
1866         * Makefile.in (mips-tdep.o): Update dependencies.
1867         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1868         REGISTER_VIRTUAL_TYPE.
1869         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1870         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1871         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1872         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1873         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1874
1875 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
1876
1877         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1878         * cli/cli-cmds.c: Include "gdb_vfork.h".
1879         (shell_escape): Use vfork.
1880
1881 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1882
1883         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1884         32 bit floating-point register saves.
1885
1886         * frame.h (deprecated_unwind_get_saved_register): Delete.
1887         * frame.c (deprecated_unwind_get_saved_register): Delete function.
1888         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1889         and deprecated_get_next_frame_hack instead of
1890         deprecated_unwind_get_saved_register.
1891
1892         * mips-tdep.c (mips_dump_tdep): Do not print
1893         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1894
1895         * frame.c (get_frame_register): New function.
1896         (frame_unwind_register_signed): New function.
1897         (get_frame_register_signed): New function.
1898         (frame_unwind_register_unsigned): New function.
1899         (get_frame_register_unsigned): New function.
1900         * frame.h: Add comments on naming schema.
1901         (get_frame_register, frame_unwind_register_signed): Declare.
1902         (get_frame_register_signed, get_frame_register_signed): Declare.
1903         (frame_unwind_register_unsigned): Declare.
1904         (get_frame_register_unsigned): Declare.
1905
1906 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1907
1908         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1909
1910 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1911
1912         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1913         (avr_read_sp): Ditto.
1914
1915 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
1916
1917         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1918         * config/arm/nm-linux.h: Likewise.
1919         * config/arm/tm-linux.h: Likewise.
1920         * config/ia64/nm-linux.h: Likewise.
1921         * config/ia64/tm-ia64.h: Likewise.
1922         * config/s390/tm-linux.h: Likewise.
1923         * config/s390/tm-s390.h: Likewise.
1924         * s390-nat.c: Likewise.
1925         * s390-tdep.c: Likewise.
1926
1927         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1928         * config/ia64/linux.mt: Likewise.
1929         * config/m68k/linux.mh: Likewise.
1930         * config/mips/linux.mt: Likewise.
1931         * config/powerpc/linux.mh: Likewise.
1932         * config/sh/linux.mt: Likewise.
1933
1934 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
1935
1936         * solib.c (solib_open): Change tests for whether to search
1937         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
1938         comments.
1939
1940 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1941
1942         * avr-tdep.c (avr_frame_address): Delete function.
1943         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1944         set_gdbarch_frame_args_address.
1945
1946 2003-06-19  Andrew Cagney  <cagney@redhat.com>
1947
1948         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1949         (REGISTER_CONVERT_FROM_TYPE): Delete.
1950         (mips_register_convert_to_type): Delete declaration.
1951         (mips_register_convert_from_type): Delete declaration.
1952         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
1953         kernel/.
1954
1955 2003-06-19  Michael Snyder  <msnyder@redhat.com>
1956
1957         * linux-nat.h: New file.
1958         * linux-nat.c: Include linux-nat.h.
1959         * lin-lwp.c: Include linux-nat.h.
1960         Move struct lwp_info def to linux-nat.h.
1961         * linux-proc.c: Include linux-nat.h.
1962         (linux_make_note_section): Iterate over lwps instead of threads.
1963         (linux_do_thread_registers): Use lwp instead of merged pid.
1964         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1965         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1966         Add dependency on linux_nat_h.
1967
1968 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1969
1970         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1971
1972 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1973
1974         * varobj.c (get_type, get_target_type): Use check_typedef.
1975
1976 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1977
1978         * breakpoint.c (insert_catchpoint): Call internal_error.
1979
1980 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1981
1982         * avr-tdep.c (avr_push_dummy_code): Delete function.
1983         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1984
1985 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1986
1987         * arch-utils.c (default_prepare_to_proceed): Remove.
1988         (generic_prepare_to_proceed): Remove.
1989         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1990         (generic_prepare_to_proceed): Remove prototype.
1991         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1992         * gdbarch.c: Regenerate.
1993         * gdbarch.h: Regenerate.
1994         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1995         * hppah-nat.c (hppa_switched_threads): Remove.
1996         * infrun.c (prepare_to_proceed): New static function, copied from
1997         generic_prepare_to_proceed.  Remove select_it argument.
1998         (proceed): Call prepare_to_proceed.
1999         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2000         variables.
2001         (ptrace_wait): Don't set the removed variables.
2002         (hppa_switched_threads): Remove.
2003         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2004         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2005         (lin_lwp_prepare_to_proceed): Remove prototype.
2006         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2007         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2008
2009 2003-06-18  Theodore A. Roth  <troth@openavr.org>
2010
2011         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2012         trad-frame.h.
2013         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2014         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2015         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2016         (AVR_PROLOGUE_*): Enumerate prologue types.
2017         (struct frame_extra_info): Remove.
2018         (struct avr_unwind_cache): Define.
2019         (avr_write_sp): Delete function.
2020         (avr_read_fp): Ditto.
2021         (avr_init_extra_frame_info): Ditto.
2022         (avr_pop_frame): Ditto.
2023         (avr_frame_saved_pc): Ditto.
2024         (avr_saved_pc_after_call): Ditto.
2025         (avr_push_return_address): Ditto.
2026         (avr_frame_chain): Ditto.
2027         (avr_store_struct_return): Ditto.
2028         (avr_push_arguments): Ditto.
2029         (avr_scan_prologue): Update comments. Changed to set up the info for
2030         cache unwinding. Now returns end of prologue PC.
2031         (avr_skip_prologue): Better handling of functions lacking a prologue
2032         by using avr_scan_prologue.
2033         (avr_scan_arg_moves): New function.
2034         (avr_saved_regs_unwinder): Ditto.
2035         (avr_frame_unwind_cache): Ditto.
2036         (avr_unwind_pc): Ditto.
2037         (avr_frame_this_id): Ditto.
2038         (avr_frame_prev_register): Ditto.
2039         (avr_frame_p): Ditto.
2040         (avr_frame_base_address ): Ditto.
2041         (avr_unwind_dummy_id): Ditto.
2042         (avr_push_dummy_code): Ditto.
2043         (push_stack_item): Ditto.
2044         (pop_stack_item): Ditto.
2045         (avr_push_dummy_call): Ditto.
2046         (struct stack_item): Define.
2047         (avr_frame_unwind): Declare structure.
2048         (avr_frame_base): Ditto.
2049         (avr_gdbarch_init): Remove calls to
2050         set_gdbarch_deprecated_init_frame_pc,
2051         set_gdbarch_deprecated_target_read_fp,
2052         set_gdbarch_deprecated_dummy_write_sp,
2053         set_gdbarch_deprecated_fp_regnum,
2054         set_gdbarch_deprecated_push_arguments,
2055         set_gdbarch_deprecated_push_return_address,
2056         set_gdbarch_deprecated_pop_frame,
2057         set_gdbarch_deprecated_store_struct_return,
2058         set_gdbarch_deprecated_frame_init_saved_regs,
2059         set_gdbarch_deprecated_init_extra_frame_info,
2060         set_gdbarch_deprecated_frame_chain,
2061         set_gdbarch_deprecated_frame_saved_pc,
2062         set_gdbarch_deprecated_saved_pc_after_call.
2063         Add calls to set_gdbarch_push_dummy_call,
2064         set_gdbarch_push_dummy_code,
2065         frame_unwind_append_predicate,
2066         frame_base_set_default,
2067         set_gdbarch_unwind_dummy_id,
2068         set_gdbarch_unwind_pc.
2069         Wrap a long line.
2070
2071 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
2072
2073         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2074         registers for H8/300S.
2075         (h8300_print_registers_info): Ditto.
2076         (h8300_gdbarch_init): Accommodate register count for H8/300S.
2077
2078 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
2079
2080         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2081         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2082         (lin_lwp_wait): Likewise.  Update comments.
2083         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2084         (pull_pid_from_list, linux_record_stopped_pid): New.
2085
2086 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
2087
2088         * ada-lang.c (scan_discrim_bound): Name first argument.
2089         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2090         declared by ALL_BLOCK_SYMBOLS.
2091
2092 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
2093
2094         * ada-tasks.c (find_function_in_inferior): Don't declare it.
2095         ("regcache.h"): Include it.
2096         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2097
2098 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
2099
2100         * NEWS: Mention gdbserver detach change and "disconnect" command.
2101         * infcmd.c (disconnect_command): New function.
2102         (_initialize_infcmd): Add ``disconnect'' command.
2103         * remote.c (remote_async_detach): Delete.
2104         (remote_detach): Merge remote_async_detach.
2105         (remote_disconnect): New.
2106         (init_remote_ops): Set to_disconnect.
2107         (init_remote_cisco_ops): Likewise.
2108         (init_remote_async_ops): Likewise.  Use remote_detach.
2109         * target.c (cleanup_target): Default to_disconnect.
2110         (update_current_target): Inherit to_disconnect.
2111         (target_disconnect, debug_to_disconnect): New functions.
2112         (setup_target_debug): Set to_disconnect.
2113         * target.h (struct target_ops): Add to_disconnect.
2114         (target_disconnect): Add prototype.
2115
2116 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
2117
2118         * breakpoint.c (insert_catchpoint): New function.
2119         (insert_breakpoints): Use catch_exceptions to call
2120         insert_catchpoint.  Disable catchpoints if they fail to insert.
2121
2122 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
2123
2124         * symfile.c (reread_symbols): Clear sym_private.
2125
2126 2003-06-17  Andrew Cagney  <cagney@redhat.com>
2127
2128         * trad-frame.h (struct frame_info): Add opaque declaration.
2129         * remote-fileio.h (struct cmd_list_element): Add opaque
2130         declaration.
2131         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2132         comments.
2133
2134 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
2135
2136         * remote.c (remote_prepare_to_store): Replace call to
2137         deprecated_read_register_bytes with multiple regcache_raw_read
2138         calls.
2139
2140 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
2141
2142         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2143         (nto_find_and_open_solib): Likewise.
2144         (nto_init_solib_absolute_prefix): Likewise.
2145         (_initialize_nto_tdep): Fix indentation.
2146
2147 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
2148
2149         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2150
2151 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
2152
2153         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2154
2155 2003-06-17  Jim Blandy  <jimb@redhat.com>
2156
2157         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2158
2159 2003-06-16  Theodore A. Roth  <troth@openavr.org>
2160
2161         * avr-tdep.c (avr_extract_return_value): New function.
2162         (avr_gdbarch_init): Set extract_return_value method.
2163
2164 2003-06-16  Andrew Cagney  <cagney@redhat.com>
2165
2166         * frame.h (deprecated_get_next_frame_hack): Declare.
2167         * frame.c (legacy_saved_regs_prev_register): Only require
2168         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
2169         there are always saved regs.
2170         (deprecated_generic_get_saved_register): Do not require
2171         DEPRECATED_FRAME_INIT_SAVED_REGS.
2172         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2173         use frame ID unwind instead.
2174         (deprecated_get_next_frame_hack): New function.
2175
2176 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
2177
2178         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
2179         (h8300_push_dummy_call): ...this function.  Some minor optimization.
2180         (h8300_push_return_address): Remove.
2181         (h8300_gdbarch_init): Remove calls to
2182         set_gdbarch_deprecated_dummy_write_sp,
2183         set_gdbarch_deprecated_push_arguments and
2184         set_gdbarch_deprecated_push_return_address.
2185         Add call to set_gdbarch_push_dummy_call.
2186
2187 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
2188
2189         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2190         (E_PSEUDO_EXR_REGNUM): Ditto.
2191         (h8300_is_argument_spill): Check for instructions moving argument
2192         registers into safe registers.
2193         (h8300_skip_prologue): Check for stm instruction to push registers
2194         used for register variables onto stack.
2195         (gdb_print_insn_h8300): Remove.
2196         (h8300_examine_prologue): Add a comment.
2197         (h8300_register_name): Take pseudo registers into account.
2198         (h8300s_register_name): Ditto.
2199         (h8300sx_register_name): Ditto.
2200         (h8300_print_register): Ditto.
2201         (h8300_print_registers_info): Define "nice" printing order.
2202         (h8300_saved_pc_after_call): Take pseudo registers into account.
2203         (h8300_register_type): Ditto.  Return type used for remote connection
2204         when requesting real CCR or EXR register, return actual type when
2205         requesting pseudo CCR or EXR.
2206         (h8300_pseudo_register_read): New function.
2207         (h8300_pseudo_register_write): Ditto.
2208         (h8300_dbg_reg_to_regnum): Ditto.
2209         (h8300s_dbg_reg_to_regnum): Ditto.
2210         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2211         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2212         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2213         set_gdbarch_print_insn architecture dependent.
2214         Call set_gdbarch_pseudo_register_read and
2215         set_gdbarch_pseudo_register_write.
2216         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2217
2218 2003-06-16  Andrew Cagney  <cagney@redhat.com>
2219
2220         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2221         * gdbarch.h, gdbarch.c: Re-generate.
2222         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2223         * s390-tdep.c (s390_gdbarch_init): Update.
2224         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2225         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2226         * mips-tdep.c (mips_gdbarch_init): Update.
2227         * mcore-tdep.c (mcore_gdbarch_init): Update.
2228         * cris-tdep.c (cris_gdbarch_init): Update.
2229         * infcall.c (call_function_by_hand): Update.
2230         * ia64-tdep.c (ia64_push_arguments): Update comment.
2231         * frame.c (legacy_get_prev_frame): Do not assume
2232         SAVE_DUMMY_FRAME_TOS_P.
2233         * dummy-frame.c (find_dummy_frame): Update comment.
2234
2235 2003-06-16  Andrew Cagney  <cagney@redhat.com>
2236
2237         * regcache.c (do_cooked_read): Do not use register_valid_p.
2238
2239 2003-06-15  Theodore A. Roth  <troth@openavr.org>
2240
2241         * avr-tdep.c (avr_register_type): Remove a blank line.
2242         (avr_scan_prologue): Correct some comments.
2243
2244 2003-06-15  Theodore A. Roth  <troth@openavr.org>
2245
2246         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2247         prologue types.
2248         Properly scan prologues generated by gcc with the -mcall-prologues
2249         option.
2250         Add code to scan -mcall-prologues for mega devices.
2251
2252 2003-06-15  Theodore A. Roth  <troth@openavr.org>
2253
2254         * avr-tdep.c (avr_register_byte): Delete function.
2255         (avr_register_raw_size): Delete function.
2256         (avr_register_virtual_size): Delete function.
2257         (avr_register_virtual_type): Delete function.
2258         (avr_register_type): New function.
2259         (avr_address_to_pointer): Remove unused code.
2260         (avr_read_fp): Need to read FP as two separate bytes due to change to
2261         avr_register_type() usage.
2262         (avr_gdbarch_init): Don't set deprecated_register_size.
2263         Don't set deprecated_register_bytes.
2264         Don't set deprecated_register_byte.
2265         Don't set deprecated_register_raw_size.
2266         Don't set deprecated_max_register_raw_size.
2267         Don't set deprecated_register_virtual_size.
2268         Don't set deprecated_max_register_virtual_size.
2269         Don't set deprecated_register_virtual_type.
2270         Set register_type method.
2271
2272 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
2273
2274         * Makefile.in (linux-nat.o): Add rule.
2275         * linux-nat.c: New file.
2276         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2277         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2278         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2279         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2280         * config/arm/linux.mh (NATDEPFILES): Likewise.
2281         * config/i386/linux.mh (NATDEPFILES): Likewise.
2282         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2283         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2284         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2285         * config/mips/linux.mh (NATDEPFILES): Likewise.
2286         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2287         * config/s390/s390.mh (NATDEPFILES): Likewise.
2288         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2289
2290 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
2291
2292         * i387-tdep.c: Reorder includes, fix some whitespace issues and
2293         replace out-of-date comment.
2294
2295 2003-06-15  Andrew Cagney  <cagney@redhat.com>
2296
2297         * rdi-share/host.h (Fail): Change to a varargs function.
2298         * remote-rdi.c (Fail): Update.
2299
2300 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
2301
2302         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2303         (i386_convert_register_p, i386_register_to_value,
2304         i386_register_from_value): Handle types longer than 8 bytes.
2305
2306 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
2307
2308         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2309         Move floating-point code to new function in i387-tdep.c.
2310         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2311         New functions containing code moved here from i386-tdep.c.
2312         * i387-tdep.h: Add opaque declaration for `struct type'.
2313         (i387_register_to_value, i387_value_to_register): New prototypes.
2314         * x86-64-tdep.c (x86_64_convert_register_p): New function.
2315         (x86_64_init_abi): Set convert_register_p, register_to_value and
2316         value_to_register here.
2317
2318 2003-06-14  Andrew Cagney  <cagney@redhat.com>
2319
2320         * mips-tdep.c (mips_register_to_value): Make static.
2321         (mips_value_to_register): Make static.
2322         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2323         * ia64-tdep.c (ia64_register_raw_size): Make static.
2324         (ia64_register_virtual_size): Make static.
2325         (ia64_register_byte): Make static.
2326         * i387-tdep.c: Include "i387-tdep.h".
2327         (print_387_control_word): Delete function.
2328         (print_387_status_word): Delete function.
2329         (print_387_status_bits): Delete function.
2330         (print_387_control_bits): Delete function.
2331         * Makefile.in (i387-tdep.o): Update dependencies.
2332         * rdi-share/host.h (Fail): Declare.
2333         * remote-rdi.c (Fail): Update to match declaration.
2334
2335 2003-06-14  Andrew Cagney  <cagney@redhat.com>
2336
2337         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2338         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2339         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2340         * config/djgpp/fnchange.lst: Delete "remote-array.c".
2341         * README: Delete reference to remote-array.
2342         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2343         (remote-array.o): Delete target.
2344         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2345         * remote-array.c: Delete file.
2346
2347 2003-06-14  Andrew Cagney  <cagney@redhat.com>
2348             Mark Kettenis  <kettenis@gnu.org>
2349
2350         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2351         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2352         parameter with "frame".
2353         * gdbarch.h, gdbarch.c: Re-generate.
2354         * frame.h (put_frame_register): Declare.
2355         * frame.c (put_frame_register): New function.
2356         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2357         (legacy_register_to_value): Rewrite, use "frame" to get the
2358         register value.
2359         (legacy_value_to_register): Rewrite, use "frame" to find the
2360         register's location before storing.
2361         * arch-utils.h (legacy_convert_register_p): Update.
2362         (legacy_register_to_value, legacy_value_to_register): Update.
2363         * findvar.c (value_from_register): Rewrite, eliminate use of
2364         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2365         "frame" to REGISTER_TO_VALUE.
2366         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2367         lval_reg_frame_relative + lval_register branch of the switch.  Do
2368         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
2369         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2370         I386_EDI_REGNUM): New defines.
2371         (i386_next_regnum, i386_convert_register_p,
2372         i386_register_to_value, i386_value_to_register): New functions.
2373         (i386_register_convertible, i386_register_convert_to_virtual,
2374         i386_convert_to_raw): Remove functions.
2375         (i386_gdbarch_init): Set convert_register_p, register_to_value and
2376         value_to_register instead of register_convertible,
2377         register_convert_to_virtual and register_convert_to_raw.
2378         * mips-tdep.c (mips_convert_register_p): New function.
2379         (mips_value_to_register): Replace mips_register_convert_from_type.
2380         (mips_register_to_value): Replace mips_register_convert_to_type.
2381         (mips_gdbarch_init): Set conver_register_p, value_to_register and
2382         register_to_value.
2383         * alpha-tdep.c (alpha_convert_register_p): Update.
2384         (alpha_value_to_register): Update, store the register.
2385         (alpha_register_to_value): Update, fetch the register.
2386
2387 2003-06-14  Theodore A. Roth  <troth@openavr.org>
2388
2389         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2390         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2391         Don't set deprecated_call_dummy_words.
2392         Remove commented out set_gdbarch_believe_pcc_promotion() call.
2393         Don't set remote_translate_xfer_address.
2394         (avr_io_reg_read_command): Remove commented out debug printf.
2395         Wrap a long line.
2396
2397 2003-06-14  Theodore A. Roth  <troth@openavr.org>
2398
2399         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2400         causes gdb to seg fault.
2401
2402 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
2403
2404         * sparc-nat.c (fetch_inferior_registers): Correct
2405         a reference to "registers".
2406
2407 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
2408
2409         * Makefile.in (exc_request_U_h): Define
2410         (exc_request_S_h): Likewise.
2411         (msg_reply_S_h): Likewise.
2412         (msg_U_h): Likewise.
2413         (notify_S_h): Likewise.
2414         (process_reply_S_h): Likewise.
2415         (gnu-nat.o): Depend on gdb_obstack_h
2416         * gnu-nat.c: Include "gdb_obstack.h".
2417
2418 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2419
2420         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2421         * gdbarch.h, gdbarch.c: Re-generate.
2422
2423 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2424
2425         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
2426         when deprecated REGISTER macros can be deleted.
2427         * gdbarch.h, gdbarch.c: Re-generate.
2428
2429 2003-06-13  Jim Blandy  <jimb@redhat.com>
2430
2431         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2432         Linux entry point symbols for _dl_debug_state, too.
2433
2434 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2435
2436         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2437         available, do not use the FP register, and always save the TOS.
2438         * dummy-frame.c (dummy_frame_this_id): Do not assert
2439         SAVE_DUMMY_FRAME_TOS.
2440         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2441         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2442         (i386_push_dummy_call): Add 8 to the returned SP.
2443         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2444         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2445         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2446         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2447         (x86_64_push_dummy_call): Return "sp + 16".
2448         (x86_64_init_abi): Do not set save_dummy_frame_tos.
2449         * alpha-tdep.c (alpha_gdbarch_init): Do not set
2450         save_dummy_frame_tos.
2451
2452 2003-06-13  Jim Blandy  <jimb@redhat.com>
2453
2454         * frv-tdep.c (frv_use_struct_convention): Delete static
2455         declaration for function deleted in my change of 2003-06-12.
2456
2457 2003-06-13  Theodore A. Roth  <troth@openavr.org>
2458
2459         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2460         (avr_pointer_to_address): Shift code addrs left 1 bit.
2461         (avr_convert_from_func_ptr_addr): Delete function since operation is
2462         better handled by avr_address_to_pointer and avr_pointer_to_address.
2463         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2464
2465 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
2466
2467         From Kelley Cook  <kelleycook@wideopenwest.com>:
2468         * configure.host: Accept i[34567]86 variants.
2469         * configure.tgt: Likewise.
2470         * nlm/configure.in: Likewise.
2471         * nlm/configure: Regenerated.
2472
2473 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
2474
2475         * arm-tdep.c (solib-svr4.h): Dont' include it.
2476         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2477         * arm-linux-tdep.c: ... here.  Make static.
2478         (arm_linux_init_abi): Register it.
2479         (solib-svr4.h): Include it.
2480         * Makefile.in: Update dependencies.
2481         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2482         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2483
2484 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
2485
2486         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2487         indicate registers used for return values.
2488         (struct frame_extra_info): Drop args_pointer and locals_pointer.
2489         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2490         members.
2491         (h8300_init_extra_frame_info): Ditto.
2492         (h8300_frame_locals_address): Removed.
2493         (h8300_frame_args_address): Removed.
2494         (h8300_extract_return_value): Use new regcache structure. Only care
2495         for 16 bit CPUs.
2496         (h8300h_extract_return_value): Same function for 32 bit CPUs.
2497         (h8300_store_return_value): Use new regcache structure. Only care
2498         for 16 bit CPUs.
2499         (h8300h_store_return_value): Same function for 32 bit CPUs.
2500         (h8300_store_struct_return): Removed.
2501         (h8300_extract_struct_value_address): Use new regcache structure.
2502         (h8300h_extract_struct_value_address): Removed.
2503         (h8300_push_dummy_code): New function.
2504         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2505         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
2506         set_gdbarch_store_return_value architecture dependent.
2507         Call set_gdbarch_push_dummy_code and
2508         set_gdbarch_extract_struct_value_address.
2509         Remove calls to set_gdbarch_frame_args_address,
2510         set_gdbarch_frame_locals_address,
2511         set_gdbarch_deprecated_store_struct_return,
2512         set_gdbarch_deprecated_extract_return_value,
2513         set_gdbarch_deprecated_extract_struct_value_address,
2514         set_gdbarch_deprecated_call_dummy_words and
2515         set_gdbarch_deprecated_sizeof_call_dummy_words.
2516
2517 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
2518
2519         * h8300-tdep.c (h8300_register_byte): Remove.
2520         (h8300h_register_byte): Remove.
2521         (h8300_register_virtual_type): Remove.  Substitute by...
2522         (h8300_register_type): New function.
2523         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2524         (h8300h_extract_struct_value_address): Ditto.
2525         (h8300_gdbarch_init): Drop calls to
2526         set_gdbarch_deprecated_register_byte and
2527         set_gdbarch_deprecated_register_virtual_type.
2528         Add call to set_gdbarch_register_type.
2529
2530 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2531
2532         * gdbarch.sh: Update comments on registers.
2533         (deprecated_register_byte): Rename register_byte.
2534         (deprecated_register_raw_size): Rename register_raw_size.
2535         (deprecated_register_virtual_size): Rename register_virtual_size.
2536         (deprecated_register_virtual_type): Rename register_virtual_type.
2537         * gdbarch.h, gdbarch.c: Re-generate.
2538         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2539         * vax-tdep.c (vax_gdbarch_init): Update.
2540         * v850-tdep.c (v850_gdbarch_init): Update.
2541         * sparc-tdep.c (sparc_gdbarch_init): Update.
2542         * sh-tdep.c (sh_gdbarch_init): Update.
2543         * s390-tdep.c (s390_gdbarch_init): Update.
2544         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2545         * ns32k-tdep.c: Update.
2546         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2547         * mips-tdep.c (mips_gdbarch_init): Update.
2548         * mcore-tdep.c (mcore_gdbarch_init): Update.
2549         * m68k-tdep.c (m68k_gdbarch_init): Update.
2550         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2551         * ia64-tdep.c (ia64_gdbarch_init): Update.
2552         * hppa-tdep.c (hppa_gdbarch_init): Update.
2553         * h8300-tdep.c (h8300_gdbarch_init): Update.
2554         * frv-tdep.c (frv_gdbarch_init): Update.
2555         * cris-tdep.c (cris_gdbarch_init): Update.
2556         * avr-tdep.c (avr_gdbarch_init): Update.
2557         * alpha-tdep.c (alpha_gdbarch_init): Update.
2558         * arm-tdep.c (arm_gdbarch_init): Update.
2559
2560 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2561
2562         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2563         mips_o32_use_struct_convention with always_use_struct_convention.
2564
2565 2003-06-12  David Carlton  <carlton@kealia.com>
2566
2567         * cp-namespace.c (cp_set_block_scope): Comment out
2568         processing_has_namespace_info branch.
2569
2570 2003-06-12  Jim Blandy  <jimb@redhat.com>
2571
2572         Recognize and skip 64-bit PowerPC Linux linkage functions.
2573         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2574         insn_pattern, insns_match_pattern, d_field, ds_field): New
2575         functions, macros, and types for working with PPC instructions.
2576         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2577         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2578         ppc64_skip_trampoline_code): New functions, variables, and macros
2579         for recognizing and skipping linkage functions.
2580         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2581         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2582
2583         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2584         register offsets for both the 32- and 64-bit interfaces.
2585
2586         Actually finish the job started by my change of 2003-05-29.
2587         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2588         other #definition of this.
2589         (ppc_linux_skip_trampoline_code): Remove declaration.
2590         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2591         static.
2592         (ppc_linux_init_abi): Register it as the skip_trampoline_code
2593         method for GDBARCH.
2594
2595         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2596         'long' on ppc64-*-linux*.
2597
2598         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2599         isn't #defined, assume the register doesn't exist: act as if
2600         tdep->ppc_mq_regnum were -1.
2601
2602         * configure.host, configure.tgt: Add entries for
2603         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2604         powerpc/linux.mt.
2605         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2606         New files.
2607
2608         * arch-utils.c (always_use_struct_convention): New function.
2609         * arch-utils.h (always_use_struct_convention): New prototype.
2610         * alpha-tdep.c (alpha_use_struct_convention): Delete.
2611         (alpha_gdbarch_init): Register always_use_struct_convention,
2612         instead of alpha_use_struct_convention.
2613         * cris-tdep.c (cris_use_struct_convention): Delete.
2614         (cris_gdbarch_init): Register always_use_struct_convention,
2615         instead of cris_use_struct_convention.
2616         * frv-tdep.c (frv_use_struct_convention): Delete.
2617         (frv_gdbarch_init): Register always_use_struct_convention,
2618         instead of frv_use_struct_convention.
2619         * h8300-tdep.c (h8300_use_struct_convention): Delete.
2620         (h8300_gdbarch_init): Register always_use_struct_convention,
2621         instead of h8300_use_struct_convention.
2622         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2623         (mips_o32_gdbarch_init): Register always_use_struct_convention,
2624         instead of mips_o32_use_struct_convention.
2625
2626 2003-06-12  Andrew Cagney  <cagney@redhat.com>
2627
2628         * wince.c: Include "mips-tdep.h".
2629         * mips-tdep.h (mips_next_pc): Declare.
2630         * mcore-tdep.c: Make more local functions static.
2631         * Makefile.in (wince.o): Update dependencies.
2632
2633 2003-06-12  David Carlton  <carlton@kealia.com>
2634
2635         * symtab.c (lookup_symbol_aux_minsyms): Replace
2636         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2637         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2638         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2639         SYMBOL_NATURAL_NAME.
2640
2641 2003-06-12  Andreas Schwab  <schwab@suse.de>
2642
2643         * Makefile.in (tuiDisassem.o): Update dependencies.
2644
2645 2003-06-12  David Carlton  <carlton@bactrian.org>
2646
2647         * symtab.h: Delete declaration of make_symbol_overload_list.
2648         Add declaration of lookup_partial_symbol.
2649         * symtab.c (remove_params): Move to cp-support.c.
2650         (overload_list_add_symbol, make_symbol_overload_list)
2651         (sym_return_val_size, sym_return_val_index): Ditto.
2652         (lookup_partial_symbol): Make extern.
2653         * cp-support.h: Add declaration of make_symbol_overload_list.
2654         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2655         symtab.h, and block.h.
2656         (remove_params): Move here from symtab.c.
2657         (overload_list_add_symbol, make_symbol_overload_list)
2658         (sym_return_val_size, sym_return_val_index): Ditto.
2659         * valops.c: Include cp-support.h.
2660         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2661         frame_h, and block_h.
2662         (valops.o): Depend on cp_support_h.
2663
2664 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
2665
2666         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2667         substitute by NUM_REGS throughout.
2668         (h8300_register_name): Only care for H8/300 and H8/300H registers.
2669         (h8300s_register_name): New function for H8S registers.
2670         (h8300sx_register_name): Ditto for H8SX registers.
2671         (h8300_print_register): Revise register printing, avoid depending
2672         on 32 bit long.
2673         (h8300_register_byte): Only care for H8/300 registers.
2674         (h8300h_register_byte): New function for any other architecture.
2675         (h8300_register_raw_size): Remove.
2676         (h8300_register_virtual_type): Revise to return actually useful
2677         type.
2678         (h8300_extract_struct_value_address): Only care for H8/300 registers.
2679         (h8300h_extract_struct_value_address): New function for any other
2680         architecture.
2681         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
2682         set_gdbarch_register_name, set_gdbarch_register_byte,
2683         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2684         Remove calls to set_gdbarch_deprecated_register_size,
2685         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2686         set_gdbarch_deprecated_max_register_raw_size,
2687         set_gdbarch_register_virtual_size and
2688         set_gdbarch_deprecated_max_register_virtual_size entirely.
2689         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2690         set_gdbarch_long_double_bit.
2691
2692 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2693
2694         * doublest.c (convert_doublest_to_floatformat): When dealing
2695         with the implied integer bit, only alter mant_bits if we are
2696         processing a full 32 bits of mantissa.
2697
2698 2003-06-11  David Carlton  <carlton@bactrian.org>
2699
2700         * dictionary.h: New.
2701         * dictionary.c: New.
2702         * block.h: Add opaque declaration for struct dictionary.
2703         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2704         'sym' members.
2705         (BLOCK_DICT): New macro.
2706         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2707         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2708         BLOCK_SHOULD_SORT.
2709         (ALL_BLOCK_SYMBOLS): Update definition.
2710         * Makefile.in (SFILES): Add dictionary.c.
2711         (dictionary_h): New.
2712         (COMMON_OBS): Add dictionary.o.
2713         (dictionary.o): New.
2714         (ada-lang.o): Depend on dictionary_h.
2715         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2716         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2717         (mi-cmd-stack.o): Ditto.
2718         (gdbtk-cmds.o): Update dependencies.
2719         (gdbtk-stack.o): Ditto.
2720         * ada-lang.c: Include dictionary.h.
2721         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2722         (fill_in_ada_prototype, debug_print_block): Ditto.
2723         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2724         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
2725         'is_sorted'.
2726         * mdebugread.c: Include dictionary.h.
2727         (struct parse_stack): Delete 'maxsyms' member.
2728         (parse_symbol): Update calls to new_block.  Delete calls to
2729         shrink_block.  Use dictionary methods.
2730         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2731         Update calls to new_symtab.  Don't maintain maxsyms data.
2732         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2733         (add_symbol): Just call dict_add_symbol.
2734         (new_symtab): Delete 'maxsyms' argument.
2735         (new_symtab): Update calls to new_block.
2736         (new_block): Delete 'maxsyms' argument; add 'function' argument.
2737         (shrink_block): Delete function.
2738         (fixup_sigtramp): Update call to new_block.  Add symbol via
2739         dict_add_symbol.
2740         * jv-lang.c: Include dictionary.h.
2741         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2742         appropriately.  Set class_symtab->free_func.  Make sure the
2743         blockvector is big enough to hold two blocks.
2744         (add_class_symtab_symbol): Use dictionary methods.
2745         (free_class_block): New function.
2746         (type_from_class): Replace explicit iteration by
2747         ALL_BLOCK_SYMBOLS.
2748         * symtab.h (struct symtab): Replace 'free_ptr' method by
2749         'free_func'.
2750         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2751         sort_symtab_syms.
2752         * dwarfread.c (psymtab_to_symtab_1): Delete call to
2753         sort_symtab_syms.
2754         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2755         Include dictionary.h.
2756         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2757         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2758         sort_symtab_syms.
2759         * objfiles.c: Include dictionary.h.
2760         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2761         * buildsym.c: Include dictionary.h.
2762         (finish_block): Use dictionary methods.
2763         (end_symtab): Set free_func to NULL, not free_ptr.
2764         * tracepoint.c: Include dictionary.h.
2765         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2766         (scope_info): Ditto.
2767         * stack.c: Include dictionary.h.
2768         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2769         (print_block_frame_labels, print_frame_arg_vars)
2770         (print_frame_args): Ditto.
2771         * symmisc.c (free_symtab_block): Use dictionary methods.
2772         (dump_symtab): Ditto.
2773         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2774         Include dictionary.h.
2775         * symfile.h: Delete declarations of sort_block_syms,
2776         sort_symtab_syms.
2777         * symfile.c (sort_block_syms): Delete.
2778         (sort_symtab_syms): Delete.
2779         * symtab.c: Include dictionary.h.
2780         (lookup_block_symbol): Use dictionary iterators.
2781         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2782         (search_symbols, make_symbol_completion_list): Ditto.
2783         (make_symbol_overload_list): Ditto.
2784         * valops.c (value_of_local): Use dict_empty.
2785         Include dictionary.h.
2786
2787 2003-06-11  J. Brobecker  <brobecker@gnat.com>
2788
2789         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2790
2791 2003-06-11  David Carlton  <carlton@bactrian.org>
2792
2793         * block.h (BLOCK_SHOULD_SORT): Delete.
2794         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2795         blocks.
2796         * ada-lang.c (ada_add_block_symbols): Ditto.
2797         * symfile.c (sort_block_syms): Delete.
2798         (sort_symtab_syms): Ditto.
2799         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2800         declarations.
2801         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2802         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2803         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2804         * dwarfread.c (psymtab_to_symtab_1): Ditto.
2805         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2806         * mdebugread.c (psymtab_to_symtab_1): Ditto.
2807         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2808
2809 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2810
2811         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2812         bits to 128.
2813
2814 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2815
2816         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2817         REGISTER_CONVERTIBLE.
2818         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2819         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2820         * gdbarch.h, gdbarch.c: Re-generate.
2821         * arch-utils.h (deprecated_register_convertible_not): Rename
2822         generic_register_convertible_not.
2823         * arch-utils.c (deprecated_register_convertible_not): Rename
2824         generic_register_convertible.
2825         (legacy_convert_register_p, legacy_register_to_value): Update.
2826         * sh-tdep.c (sh64_push_arguments): Update.
2827         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2828         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2829         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2830         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2831         * arch-utils.c (legacy_value_to_register): Update.
2832         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2833         (rs6000_register_convert_to_raw): Make parameter "from" const.
2834         * mips-tdep.c (mips_gdbarch_init): Update.
2835         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
2836         * infcmd.c (default_print_registers_info): Update.
2837         * ia64-tdep.c (ia64_gdbarch_init): Update.
2838         (ia64_register_convert_to_raw): Make parameter "from" const.
2839         * i386-tdep.c (i386_gdbarch_init): Update.
2840         (i386_register_convert_to_raw): Update.
2841
2842 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2843
2844         * remote-fileio.c: Include "remote-fileio.h".
2845         * Makefile.in (remote-fileio.o): Update dependencies.
2846         (remote_fileio_h): Fix typo.
2847
2848 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2849
2850         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2851         (xstormy16_save_dummy_frame_tos): Make static.
2852         (_initialize_xstormy16_tdep): Add declaration.
2853         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2854         * v850-tdep.c: Make local functions static.
2855         (_initialize_v850_tdep): Add declaration.
2856         * sparc-tdep.c: Make local functions static.
2857         (_initialize_sparc_tdep): Add declaration.
2858         * sh-tdep.c: Make local functions static.
2859         (_initialize_sh_tdep): Add declaration.
2860         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2861         * s390-tdep.c: Make local functions static.
2862         (_initialize_s390_tdep): Add declaration.
2863         * dbxread.c (find_stab_function_addr): Make static.
2864         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2865         * ocd.c (_initialize_remote_ocd): Add declaration.
2866         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2867         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2868         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2869         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2870         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2871         * remote-array.c (_initialize_array): Add declaration.
2872         (_initialize_remote_monitors): Add declaration.
2873         * remote-mips.c: Make local functions static.
2874         (_initialize_remote_mips): Add declaration.
2875         * mcore-tdep.c: Make all local functions static.
2876         (_initialize_mcore_tdep): Add declaration.
2877         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2878         * abug-rom.c (_initialize_abug_rom): Add declaration.
2879         * rom68k-rom.c (_initialize_rom68k): Add declaration.
2880         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2881         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2882         * remote-est.c (_initialize_est): Add declaration.
2883         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2884         (m68hc11_call_dummy_address): Make static.
2885         * ia64-tdep.c: Make local functions static.
2886         (_initialize_ia64_tdep): Add declaration.
2887         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2888         * monitor.c (monitor_wait_filter): Make static.
2889         (_initialize_remote_monitors): Add declaration.
2890         * remote-hms.c (_initialize_remote_hms): Add declaration.
2891         * remote-e7000.c (fetch_regs_from_dump): Make static.
2892         (expect_n): Make static.
2893         (_initialize_remote_e7000): Add declaration.
2894         * ser-e7kpc.c: Always include "defs.h".
2895         (_initialize_ser_e7000pc): Add declaration.
2896         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2897         * cris-tdep.c: Make all but one function static.
2898         (_initialize_cris_tdep): Add declaration.
2899         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2900         * solib.c (update_solib_list): Make static.
2901         (_initialize_solib): Add declaration.
2902         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2903         (_initialize_avr_tdep): Add declaration.
2904         * remote-rdi.c (voiddummy): Make static.
2905         (_initialize_remote_rdi): Add declaration.
2906         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2907         * remote-rdp.c (send_rdp): Make static.
2908         (_initialize_remote_rdp): Add declaration.
2909         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2910
2911 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
2912
2913         * remote-fileio.c: Make ari happy.
2914
2915 2003-06-10  J. Brobecker  <brobecker@gnat.com>
2916
2917         * rs6000-nat.c (child_xfer_memory): Compute the right address when
2918         fetching the trailing bytes of the buffer we are about to write.
2919
2920 2003-06-10  Andrew Cagney  <cagney@redhat.com>
2921
2922         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2923         * Makefile.in (remote-fileio.o): Update dependencies.
2924         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
2925         include <setjmp.h>, or <sys/types.h> conditional on USG.
2926         (remote_fio_jmp_buf): Delete global variable.
2927
2928 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
2929             Martin M. Hunt  <hunt@redhat.com>
2930
2931         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2932         (SFILES): Add remote-fileio.c.
2933         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
2934         dependencies for building remote.o.
2935         * remote-fileio.c: New file implementing the remote File-I/O protocol.
2936         * remote-fileio.h: New header file defining remote File-I/O interface.
2937         * remote.c (remote_write_bytes, remote_read_bytes): Remove
2938         static storage class.
2939         (remote_wait, remote_async_wait): Call remote_fileio_request() on
2940         'F' packet.
2941         (_initialize_remote): Call initialize_remote_fileio().
2942         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2943         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2944         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2945         (captured_main): Initialize new ui_files.
2946         * ui-file.c: Add read and fgets input functions.
2947         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2948         (null_file_read): New function.
2949         (ui_file_read): New function.
2950         (set_ui_file_read): New function.
2951         (stdio_file_read): New function.
2952         * ui-file.h: New type ui_file_read_ftype.
2953         (set_ui_file_read): Declare.
2954         (ui_file_read): Declare.
2955
2956 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2957
2958         * frame.h (deprecated_unwind_get_saved_register): Rename
2959         generic_unwind_get_saved_register, update comments.
2960         * mips-tdep.c (mips_get_saved_register): Update.
2961         * frame.c (deprecated_unwind_get_saved_register): Update.
2962
2963 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2964
2965         * vax-tdep.c (vax_frame_locals_address): Delete function.
2966         (vax_gdbarch_init): Do not set frame_locals_address.
2967         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2968         (m68hc11_gdbarch_init): Do not set frame_locals_address.
2969         * s390-tdep.c (s390_frame_args_address): Delete function.
2970         (s390_gdbarch_init): Do not set frame_args_address or
2971         frame_locals_address.
2972         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2973         (ns32k_gdbarch_init): Do not set frame_locals_address.
2974         * hppa-tdep.c (hppa_frame_args_address): Delete function.
2975         (hppa_frame_locals_address): Delete function.
2976         (hppa_gdbarch_init): Do not set frame_args_address, or
2977         frame_locals_address.
2978         * arm-tdep.c (arm_frame_args_address): Delete.
2979         (arm_frame_locals_address): Delete.
2980         (arm_gdbarch_init): Do not set frame_args_address, or
2981         frame_locals_address.
2982
2983 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2984
2985         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2986         * gdbarch.h, gdbarch.c: Re-generate.
2987         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2988         * arch-utils.c (frame_num_args_unknown): Delete function.
2989         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2990         (frame_info): Use FRAME_NUM_ARGS_P.
2991         * arm-tdep.c (arm_frame_num_args): Delete function.
2992         (arm_gdbarch_init): Do not set frame_num_args.
2993         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2994         * hppa-tdep.c (hppa_frame_num_args): Delete function.
2995         (hppa_gdbarch_init): Do not set frame_num_args.
2996         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2997         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2998         frame_num_args to default frame_num_args_unknown.
2999         * v850-tdep.c (v850_gdbarch_init): Ditto.
3000         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3001         * sh-tdep.c (sh_gdbarch_init): Ditto.
3002         * s390-tdep.c (s390_gdbarch_init): Ditto.
3003         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3004         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3005         * mips-tdep.c (mips_gdbarch_init): Ditto.
3006         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3007         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3008         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3009         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3010         * i386-tdep.c (i386_gdbarch_init): Ditto.
3011         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3012         * frv-tdep.c (frv_gdbarch_init): Ditto.
3013         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3014         * cris-tdep.c (cris_gdbarch_init): Ditto.
3015         * avr-tdep.c (avr_gdbarch_init): Ditto.
3016         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3017
3018 2003-06-09  Andrew Cagney  <cagney@redhat.com>
3019
3020         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3021         (print_frame_args): Moved to "stack.c".
3022         * stack.c: Include "gdb_assert.h".
3023         (print_frame_nameless_args): Moved from "printcmd.c", made static.
3024         (print_frame_args): Moved from "printcmd.c".
3025         * frame.h (print_frame_args): Delete declaration.
3026         * Makefile.in (stack.o): Update dependencies.
3027
3028 2003-06-08  Andrew Cagney  <cagney@redhat.com>
3029
3030         * frame.c (get_prev_frame): Remove reference to
3031         frame_args_address_correct in comments.
3032         * frame-base.c (default_frame_args_address): Delete code
3033         conditional on FRAME_ARGS_ADDRESS_CORRECT.
3034         * vax-tdep.c (vax_frame_args_address_correct): Delete.
3035         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3036         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3037         (vax_frame_args_address_correct): Delete declaration.
3038
3039 2003-06-08  Andrew Cagney  <cagney@redhat.com>
3040
3041         * gdbarch.sh (UNWIND_SP): Add.
3042         * gdbarch.h, gdbarch.c: Re-generate.
3043         * frame.c (frame_sp_unwind): New function.
3044         (get_frame_sp): New function.
3045         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3046         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3047         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3048         value.
3049         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3050         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3051
3052 2003-06-08  Andrew Cagney  <cagney@redhat.com>
3053
3054         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3055         REMOTE_BREAKPOINT.
3056         * remote.c: Update.
3057         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3058         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3059         * config/m68k/tm-sun3.h: Update.
3060         * config/m68k/tm-m68klynx.h: Update.
3061         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3062
3063         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3064         trad_frame".  Update comments.
3065         * d10v-tdep.c (struct d10v_unwind_cache): Update.
3066         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3067         (trad_frame_register_value, trad_frame_prev_register): Update.
3068
3069 2003-06-08  Andrew Cagney  <cagney@redhat.com>
3070
3071         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3072         from GCC's acinclude.m4.
3073         * configure.in: Check for getopt's delcaration.
3074         * aclocal.m4, config.in, configure: Re-generate.
3075         * main.c (error_init): Delete declaration.
3076         * defs.h (error_init): Declare.
3077         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3078         (rs6000_convert_from_func_ptr_addr): Make static.
3079         (_initialize_rs6000_tdep): Add declaration.
3080         * cli/cli-cmds.c (dont_repeat): Delete declaration.
3081         (show_commands, set_verbose, show_history): Delete declaration.
3082         * top.h (set_verbose): Add declaration.
3083         (show_history, set_history, show_commands): Add declaration.
3084         (do_restore_instream_cleanup): Add declaration.
3085         * objc-lang.c (specialcmp): Make static.
3086         (print_object_command): Make static.
3087         (find_objc_msgsend): Make static.
3088         (find_objc_msgcall_submethod_helper): Make static.
3089         (find_objc_msgcall_submethod): Make static.
3090         (_initialize_objc_language): Add declaration.
3091         (find_implementation_from_class): Make static.
3092         (find_implementation): Make static.
3093         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3094         * objc-lang.h (lookup_struct_typedef): Add declaration.
3095         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3096         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3097         (do_restore_user_call_depth): Make static.
3098         (do_restore_instream_cleanup): Delete declaration.
3099         (dont_repeat): Delete declaration.
3100         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3101         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3102         * reggroups.c (_initialize_reggroup): Add declaration.
3103         * cp-support.c (_initialize_cp_support): Add declaration.
3104         * cp-abi.c (_initialize_cp_abi): Add declaration.
3105         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3106         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3107         (_initialize_gnu_v3_abi): Add declaration.
3108         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3109         (_initialize_gnu_v2_abi): Add declaration.
3110         * frame-base.c (_initialize_frame_base): Add declaration.
3111         * doublest.c (floatformat_from_length): Make static.
3112         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3113         * frame.c (create_sentinel_frame): Make static.
3114         (_initialize_frame): Add declaration.
3115         * top.c (do_catch_errors): Make static.
3116         (gdb_rl_operate_and_get_next_completion): Make static.
3117         * typeprint.c: Include "typeprint.h".
3118         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3119         (sentinel_frame_this_id): Make static.
3120         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3121         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3122         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3123         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3124         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3125         * maint.c (maintenance_print_architecture): Make static.
3126         * signals/signals.c (_initialize_signals): Add declaration.
3127         * std-regs.c (_initialize_frame_reg): Add declaration.
3128         * jv-exp.y (push_variable): ISO C definition.
3129         (push_qualified_expression_name): Ditto.
3130         * memattr.c (_initialize_mem): Add declaration.
3131         * remote.c (remote_check_watch_resources): Make static.
3132         (remote_stopped_by_watchpoint): Make static.
3133         (remote_stopped_data_address): Make static.
3134         * d10v-tdep.c (nr_dmap_regs): Make static.
3135         (a0_regnum): Make static.
3136         (d10v_frame_unwind_cache): Make static.
3137         (d10v_frame_p): Make static.
3138         * osabi.c (show_osabi): Make static.
3139         (_initialize_gdb_osabi): Add extern declaration.
3140         * gdbtypes.c (make_qualified_type): Make static.
3141         (safe_parse_type): Make static.
3142         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3143         * macrotab.c (macro_bcache_free): Make static.
3144         * interps.c (interp_set_quiet): Make static.
3145         (interpreter_exec_cmd): Make static.
3146         * stack.h (select_frame_command): New file.
3147         * stack.c: Include "stack.h".
3148         (select_frame_command_wrapper): Delete function.
3149         (select_frame_command): Make global.
3150         * infcall.c: Include "infcall.h".
3151         * linespec.c: Include "linespec.h".
3152         * symfile.c (sections_overlap): Make static.
3153         * cp-support.h (cp_initialize_namespace): ISO C declaration.
3154         * charset.c (_initialize_charset): Add missing prototype.
3155         * regcache.c (init_legacy_regcache_descr): Make static.
3156         (do_regcache_xfree): Make static.
3157         (regcache_xfer_part): Make static.
3158         (_initialize_regcache): Add missing prototype.
3159         * breakpoint.c (parse_breakpoint_sals): Make static.
3160         (breakpoint_sals_to_pc): Make static.
3161         * interps.h (clear_interpreter_hooks): ISO C declaration.
3162         * Makefile.in (stack_h): Define.
3163         (stack.o, typeprint.o, mi-main.o): Update dependencies.
3164         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3165
3166 2003-06-08  Andrew Cagney  <cagney@redhat.com>
3167
3168         * Makefile.in (d10v-tdep.o): Update dependencies.
3169         (SFILES): Add trad-frame.c.
3170         (trad_frame_h): Define.
3171         (COMMON_OBS): Add trad-frame.o.
3172         (trad-frame.o): Specify dependencies.
3173         * d10v-tdep.c: Include "trad-frame.h".
3174         (saved_regs_unwinder): Delete function.
3175         (d10v_frame_prev_register): Use trad_frame_prev_register.
3176         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3177         trad_frame", delete "regs" and "prev_sp".
3178         (prologue_find_regs): Use trad-frame.
3179         * trad-frame.h, trad-frame.c: New files.
3180
3181 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
3182
3183         * dwarf2cfi.c, dwarf2cfi.h: Remove.
3184
3185 2003-06-07  Adam Fedor  <fedor@gnu.org>
3186
3187         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3188         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3189         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3190         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3191         resolve_msgsend_super, resolve_msgsend_super_stret):
3192         Use it.
3193
3194 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3195
3196         * symfile.h: Re-indent, clean up comments.
3197
3198 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3199
3200         * inferior.h (deprecated_write_sp): Replace
3201         generic_target_write_sp.
3202         * regcache.c (deprecated_write_sp): Replace
3203         generic_target_write_sp.
3204         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3205         * vax-tdep.c (vax_gdbarch_init): Update.
3206         * v850-tdep.c (v850_gdbarch_init): Update.
3207         * sparc-tdep.c (sparc_gdbarch_init): Update.
3208         * sh-tdep.c (sh_gdbarch_init): Update.
3209         * s390-tdep.c (s390_gdbarch_init): Update.
3210         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3211         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3212         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3213         * mcore-tdep.c (mcore_gdbarch_init): Update.
3214         * m68k-tdep.c (m68k_gdbarch_init): Update.
3215         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3216         * ia64-tdep.c (ia64_gdbarch_init): Update.
3217         * h8300-tdep.c (h8300_gdbarch_init): Update.
3218         * frv-tdep.c (frv_gdbarch_init): Update.
3219         * cris-tdep.c (cris_gdbarch_init): Update.
3220         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3221
3222 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3223
3224         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3225         Assert that PC_REGNUM is valid.
3226         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3227
3228 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3229
3230         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3231         * gdbarch.h, gdbarch.c: Regenerate.
3232         * mn10300-tdep.c: Include "gdb_assert.h".
3233         (mn10300_read_fp): New function.
3234         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3235         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
3236         * ia64-tdep.c: Include "gdb_assert.h".
3237         (ia64_read_fp): New function.
3238         (ia64_gdbarch_init): Set deprecated_target_read_fp to
3239         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
3240         * regcache.c (generic_target_read_sp): Delete function.
3241         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3242         * inferior.h (generic_target_read_sp): Delete declaration.
3243         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3244         generic_target_read_sp.
3245         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3246         * sparc-tdep.c (sparc_gdbarch_init): Ditto
3247         * sh-tdep.c (sh_gdbarch_init): Ditto.
3248         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3249         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3250
3251 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3252
3253         * gdbarch.sh: Comment each field of startup_gdbarch.
3254         * gdbarch.h, gdbarch.c: Re-generate.
3255
3256 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3257
3258         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3259         * gdbarch.h, gdbarch.c: Re-generate.
3260         * regcache.c: Update comments on read_pc et.al.
3261         (generic_target_read_pc): Delete function.
3262         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3263         * inferior.h (generic_target_read_pc): Delete declaration.
3264         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3265         generic_target_read_pc.
3266         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3267         * sh-tdep.c (sh_gdbarch_init): Ditto.
3268         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3269         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3270
3271 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3272
3273         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3274         "index" with "special_local_sect".  Use strcmp instead of STREQ.
3275         Append period to coments.
3276
3277 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
3278
3279         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3280         (elfstab_offset_sections): Likewise.
3281         * gdb-stabs.h (stab_section_info): Likewise.
3282         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3283         * objfiles.c (objfile_relocate): Likewise.
3284         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3285         * remote.c (get_offsets): Likewise.
3286         (remote_cisco_objfile_relocate): Likewise.
3287         * somread.c (som_symfile_offsets): Likewise.
3288         * symfile.c (alloc_section_addr_info): New function.
3289         (build_section_addr_info_from_section_tab): Use it.
3290         (free_section_addr_info): Adjust.
3291         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3292         (syms_from_objfile): Allocate local_addr dynamically.
3293         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3294         dynamically.
3295         (add_symbol_file_command): Allocate sect_opts dynamically.
3296         (reread_symbols): Avoid use of SECT_OFF_MAX.
3297         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3298         (alloc_section_addr_info): Declare it.
3299         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3300         * win32-nat.c (solib_symbols_add): Allocate section_addrs
3301         dynamically.
3302         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3303
3304 2003-06-06  Andrew Cagney  <cagney@redhat.com>
3305
3306         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3307         (d10v_frame_unwind_cache): Do not set "return_pc".
3308
3309 2003-06-06  Michael Snyder  <msnyder@redhat.com>
3310
3311         * h8300-tdep.c: Make tidy (long lines).
3312
3313 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
3314
3315         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3316         to regcache_collect().
3317
3318 2003-06-05  J. Brobecker  <brobecker@gnat.com>
3319
3320         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3321         pc_in_sigtramp multiarch method.
3322         (hppa_hpux_som_init_abi): Use it.
3323         (hppa_hpux_elf_init_abi): Likewise.
3324         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3325         macro has been multiarched.
3326         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3327         macro here, as hppa64 isn't multiarched yet.
3328
3329 2003-06-05  Andrew Cagney  <cagney@redhat.com>
3330
3331         * Makefile.in (value_h): Add $(frame_h).
3332         * value.h: Include "frame.h".
3333         (struct value): Replace "frame_addr" with "frame_id".
3334         (VALUE_FRAME_ID): Replace VALUE_FRAME.
3335         * values.c (allocate_value): Use VALUE_FRAME_ID.
3336         (value_copy): Use VALUE_FRAME_ID.
3337         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3338         * valops.c (value_assign): Update.  Use frame_find_by_id.
3339
3340 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
3341
3342         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3343         in each pass.
3344
3345 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
3346
3347         * thread-db.c (check_event): For create/death event breakpoints,
3348         loop through all messages to ensure that we read the message
3349         corresponding to the breakpoint we are at.
3350
3351 2003-06-04  Michael Snyder  <msnyder@redhat.com>
3352
3353         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3354
3355 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
3356
3357         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3358         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3359         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3360         when handling .eh_frame sections.
3361
3362 2003-06-04  J. Brobecker  <brobecker@gnat.com>
3363
3364         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3365         prepare_to_proceed procedure instead of the hppa-specific one.
3366         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3367
3368 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
3369
3370         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3371         * config.in: Regenerated.
3372         * configure.in: Add test for syscall function and check for
3373         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3374         * configure: Regenerated.
3375         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3376         <sys/syscall.h>.
3377         (kill_lwp): New function that uses tkill syscall or
3378         uses kill, depending on whether threading model is nptl or not.
3379         All callers of kill() changed to use kill_lwp().
3380         (lin_lwp_wait): Make special check when WIFEXITED occurs to
3381         see if all threads have already exited in the nptl model.
3382         (stop_and_resume_callback): New callback function used by the
3383         lin_lwp_wait thread exit handling code.
3384         (stop_wait_callback): Check for threads already having exited and
3385         delete such threads fromt the lwp list when discovered.
3386         (stop_callback): Don't assert retcode of kill call.
3387
3388         Roland McGrath  <roland@redhat.com>
3389         * i386-linux-nat.c (ps_get_thread_area): New function needed by
3390         nptl libthread_db.
3391
3392 2003-06-03  Richard Henderson  <rth@redhat.com>
3393
3394         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3395         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3396         (alpha_sigtramp_frame_prev_register): Likewise.
3397         (alpha_heuristic_frame_prev_register): Likewise.
3398         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3399
3400         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3401         alpha-specific register id names.
3402         (alpha_mdebug_frame_unwind_cache): Likewise.
3403         (alpha_mdebug_frame_prev_register): Likewise.
3404
3405 2003-06-03  Richard Henderson  <rth@redhat.com>
3406
3407         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3408         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3409         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3410         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3411         unwind routines.
3412         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3413         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3414         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3415
3416         * alpha-linux-tdep.c: Remove unnecessary includes.
3417         * Makefile.in (alpha-linux-tdep.o): Update.
3418
3419 2003-06-03  Richard Henderson  <rth@redhat.com>
3420
3421         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3422         (alphabsd_fill_fpreg): Likewise.
3423
3424 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3425
3426         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
3427         references to struct frame_info fields by calls to the equivalent
3428         accessors. Necessary now that frame_info is opaque.
3429
3430 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3431
3432         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3433         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3434         structure, field no longer exists.
3435
3436 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3437
3438         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3439         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3440
3441 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3442
3443         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3444         references to struct frame_info fields by calls to the equivalent
3445         accessors. Necessary now that frame_info is opaque.
3446
3447 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3448
3449         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3450         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3451         structure, field no longer exists.
3452
3453 2003-06-03  Theodore A. Roth  <troth@openavr.org>
3454
3455         * remote.c (init_remote_state): Compute sizeof_g_packet by
3456         accumulation of the size of all registers instead of blindly using
3457         DEPRECATED_REGISTER_BYTES.
3458
3459 2003-06-03  Michael Snyder  <msnyder@redhat.com>
3460
3461         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3462         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3463         for h8300sx.
3464
3465 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3466
3467         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3468         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3469
3470 2003-06-03  Andrew Cagney  <cagney@redhat.com>
3471
3472         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3473         (sparc_convert_to_raw): Delete function.
3474         (sparc_gdbarch_init): Do not set register_convert_to_raw or
3475         register_convert_to_virtual.
3476
3477 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
3478
3479         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3480         layer if not dealing with a statically-linked threaded program.
3481
3482 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
3483
3484         * solib.c (solib_open): Update comment to reflect actual search order.
3485
3486 2003-06-03  Andrew Cagney  <cagney@redhat.com>
3487
3488         * frame.c (get_frame_memory_signed): New function.
3489         (get_frame_memory, get_frame_memory_unsigned): New function.
3490         (get_frame_arch): New function.
3491         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3492         (get_frame_memory, get_frame_unsigned_memory): Declare.
3493         * d10v-tdep.c (d10v_frame_unwind_cache): Use
3494         get_frame_memory_unsigned and get_frame_arch.
3495         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3496
3497 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
3498
3499         * MAINTAINERS (write after approval): Add myself.
3500
3501 2003-06-03  Jim Blandy  <jimb@redhat.com>
3502
3503         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3504         elements of gregset_t are 64 bits each, but access registers
3505         are still 32 bits, so they're packed two per gregset_t
3506         element.  Unpack/pack them properly.
3507
3508 2003-06-02  David Carlton  <carlton@bactrian.org>
3509
3510         * linespec.c (find_methods): Break out code into
3511         add_matching_methods and add_constructors.
3512         (add_matching_methods): New.
3513         (add_constructors): Ditto.
3514
3515 2003-06-02  Andrew Cagney  <cagney@redhat.com>
3516
3517         * sparc-tdep.c (sparc_print_registers): Delete call to
3518         REGISTER_CONVERTIBLE.
3519         (sparc_gdbarch_init): Do not set register_convertible.
3520         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3521         * frv-tdep.c (frv_gdbarch_init): Ditto.
3522         * cris-tdep.c (cris_gdbarch_init): Ditto.
3523
3524 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
3525
3526         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3527         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3528         (syms_from_objfile): Ditto.
3529
3530 2003-06-03  Andreas Schwab  <schwab@suse.de>
3531
3532         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3533         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3534
3535 2003-06-02  Richard Henderson  <rth@redhat.com>
3536
3537         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3538         a member of all_reggroup.
3539
3540 2003-06-02  Richard Henderson  <rth@redhat.com>
3541
3542         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3543         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3544         (alpha_lds, alpha_sts): New.
3545         (alpha_convert_register_p): Change from _register_convertible.
3546         (alpha_register_to_value): Change from _convert_to_virtual;
3547         restructure and fail for type sizes other than 4 or 8.
3548         (alpha_value_to_register): Similarly.
3549         (alpha_extract_return_value): Use alpha_sts.
3550         (alpha_store_return_value): Use alpha_lds.
3551         (alpha_gdbarch_init): Update hooks.
3552
3553 2003-06-02  Richard Henderson  <rth@redhat.com>
3554
3555         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3556         regnum identifiers.
3557         (alpha_sigtramp_register_address): Likewise.
3558
3559 2003-06-02  Richard Henderson  <rth@redhat.com>
3560
3561         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3562         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3563         * alpha-tdep.h: Declare them.
3564
3565         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3566         Remove zerobuf.  Don't error on UNIQUE.
3567         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3568         (ALPHA_REGSET_UNIQUE): Provide default.
3569         (supply_gregset): Use alpha_supply_int_regs.
3570         (fill_gregset): Use alpha_fill_int_regs.
3571         (supply_fpregset): Use alpha_supply_fp_regs.
3572         (fill_fpregset): Use alpha_fill_fp_regs.
3573         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3574         (alphabsd_supply_reg): Use alpha_supply_int_regs.
3575         (alphabsd_fill_reg): Use alpha_fill_int_regs.
3576         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3577         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3578         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3579
3580 2003-06-02  Richard Henderson  <rth@redhat.com>
3581
3582         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3583
3584         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3585         (alpha_store_return_value): Likewise.
3586
3587 2003-06-02  David Carlton  <carlton@math.stanford.edu>
3588
3589         * block.c (contained_in): Add 'const' to arguments.
3590         (block_function): Ditto.
3591         * block.h: Update declarations for block_function and
3592         contained_in.
3593
3594 2003-06-02  David Carlton  <carlton@math.stanford.edu>
3595
3596         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3597         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3598         * p-valprint.c (pascal_val_print): Ditto.
3599         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3600
3601 2003-06-02  Richard Henderson  <rth@redhat.com>
3602
3603         * alpha-tdep.c (alpha_push_dummy_call): Use
3604         builtin_type_ieee_double_little instead of builtin_type_double.
3605
3606         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3607         sign-extension of 32-bit values.
3608         (alpha_store_return_value): Similarly.
3609
3610         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3611         (alpha_extract_return_value): Likewise.
3612         (alpha_store_return_value): Likewise.
3613
3614         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3615         (alpha_store_return_value): Error on IEEE Quad floats.
3616
3617         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3618         (alpha_extract_struct_value_address): Likewise.
3619         (alpha_store_return_value): Likewise.
3620         (alpha_store_struct_return): Remove.
3621         (alpha_gdbarch_init): Update hook registration to match.
3622
3623         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3624         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3625         macros where appropriate.
3626         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
3627         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3628
3629         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3630         for SP, GP; void_func_ptr for PC; non-language-specific types
3631         for all others.
3632         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3633
3634 2003-06-02  Richard Henderson  <rth@redhat.com>
3635
3636         * top.h (lim_at_start): Declare.
3637         * main.c (captured_main): Set it.
3638         * top.c (lim_at_start): Define.
3639         (command_loop): Use it instead of &environ.
3640         * event-top.c (command_handler): Likewise.
3641
3642 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
3643
3644         * mipsnbsd-tdep.c: Update copyright years.
3645         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3646
3647 2003-06-01  Richard Henderson  <rth@redhat.com>
3648
3649         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3650         (alpha-linux-tdep.o): Update dependencies.
3651         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3652         * alpha-mdebug-tdep.c: Remove unneeded includes.
3653
3654 2003-06-01  Richard Henderson  <rth@redhat.com>
3655
3656         * alpha-tdep.c (alpha_register_reggroup_p): New.
3657         (alpha_gdbarch_init): Register it.
3658
3659 2003-06-02  Andrew Cagney  <cagney@redhat.com>
3660
3661         * dwarfread.c: Eliminate "register"
3662         (decode_die_type): Eliminate assignment within "if".
3663         (struct_type, decode_array_element_type): Ditto.
3664         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3665         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3666         (decode_modified_type, completedieinfo): Ditto.
3667         * block.c: Eliminate "register".
3668         (blockvector_for_pc_sect): Eliminate assignment within "if".
3669         * cp-support.h (struct symbol): Opaque declaration.
3670         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3671
3672 2003-06-01  Richard Henderson  <rth@redhat.com>
3673
3674         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3675         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3676
3677 2003-06-01  Adam Fedor  <fedor@gnu.org>
3678
3679         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3680         * gdbarch.[ch]: Regenerate.
3681         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3682         (hppa_gdbarch_init): Set it in the gdbarch vector.
3683         * i386-tdep.c (i386_fetch_pointer_argument): New
3684         (i386_gdbarch_init): Set it into gdbarch.
3685         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3686         (rs6000_gdbarch_init): Set it in gdbarch.
3687         * sparc-tdep.c (sparc_fetch_pointer_argument): New
3688         (sparc_gdbarch_init): Set it in gdbarch.
3689
3690 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3691
3692         * defs.h (extract_address): Delete declaration.
3693         * findvar.c (extract_address): Delete function.
3694         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3695         extract_address with the inline equivalent,
3696         extract_unsigned_integer.
3697         (xstormy16_extract_struct_value_address): Ditto.
3698         (xstormy16_pointer_to_address): Ditto.
3699         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3700         * v850-tdep.c (v850_push_arguments): Ditto.
3701         (v850_extract_return_value): Ditto.
3702         (v850_extract_struct_value_address): Ditto.
3703         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3704         (sparcnbsd_get_longjmp_target_64): Ditto.
3705         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3706         (get_longjmp_target): Ditto.
3707         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3708         (sh64_extract_struct_value_address): Ditto.
3709         (sh_push_arguments): Ditto.
3710         (sh64_push_arguments): Ditto.
3711         * remote-vxsparc.c (vx_read_register): Ditto.
3712         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3713         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3714         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3715         * mipsv4-nat.c (get_longjmp_target): Ditto.
3716         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3717         * mips-nat.c (get_longjmp_target): Ditto.
3718         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3719         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3720         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3721         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3722         * irix5-nat.c (get_longjmp_target): Ditto.
3723         * irix4-nat.c (get_longjmp_target): Ditto.
3724         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3725         (ia64_push_arguments): Ditto.
3726         * hpux-thread.c (hpux_thread_store_registers): Ditto.
3727         * h8300-tdep.c (h8300_push_arguments): Ditto.
3728         (h8300_store_return_value): Ditto.
3729         (h8300_extract_struct_value_address): Ditto.
3730         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3731         (frv_push_arguments): Ditto.
3732         * avr-tdep.c (avr_pointer_to_address): Ditto.
3733         (avr_push_arguments): Ditto.
3734         * arm-tdep.c (arm_push_dummy_call): Ditto.
3735         (arm_get_longjmp_target): Ditto.
3736         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3737         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3738         (alpha_get_longjmp_target): Ditto.
3739
3740         * solib-irix.c (extract_mips_address): Inline extract_address,
3741         replacing it with extract_signed_integer.
3742         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3743         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3744         (first_link_map_member, open_symbol_file_object): Ditto.
3745         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3746         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3747         (LM_NEXT, LM_NAME): Ditto.
3748
3749 2003-06-01  Richard Henderson  <rth@redhat.com>
3750
3751         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3752         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3753         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3754         (alpha_cannot_store_register): Likewise.
3755         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3756         * alpha-nat.c (supply_gregset): Likewise.
3757         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3758
3759 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3760
3761         * infcall.c (call_function_by_hand): Update comment on
3762         DEPRECATED_DUMMY_WRITE_SP.
3763
3764         * mips-tdep.c (mips_gdbarch_init): Do not set
3765         deprecated_dummy_write_sp.
3766         (mips_eabi_push_dummy_call): Set the SP register.
3767         (mips_o64_push_dummy_call): Set the SP register.
3768         (mips_o32_push_dummy_call): Set the SP register.
3769         (mips_n32n64_push_dummy_call): Set the SP register.
3770
3771 2003-06-01  Richard Henderson  <rth@redhat.com>
3772
3773         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3774         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3775         (supply_gregset): Likewise.
3776         * alpha-tdep.c (alpha_store_return_value): Likewise.
3777         (alpha_get_longjmp_target): Likewise.
3778         (alpha_register_name): Constify array.
3779         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3780         deprecated_register_size, deprecated_register_bytes,
3781         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3782         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3783         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3784
3785 2003-06-01  Richard Henderson  <rth@redhat.com>
3786
3787         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
3788         from arg_reg_buffer to regcache to avoid double conversion.
3789
3790 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
3791
3792         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3793         SP_REGNUM.
3794         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3795         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3796
3797 2003-06-01  Richard Henderson  <rth@redhat.com>
3798
3799         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3800         (decode_frame_entry): Set it.  Skip FDE augmentation.
3801
3802 2003-06-01  Richard Henderson  <rth@redhat.com>
3803
3804         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3805         not overlapping PC_REGNUM.
3806
3807 2003-06-01  Richard Henderson  <rth@redhat.com>
3808
3809         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3810         alpha_push_arguments.  Don't dump argument register data to
3811         the target stack.  Fix float and 128-bit long double semantics.
3812         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
3813         (alpha_fix_call_dummy): Remove.
3814         (alpha_call_dummy_words): Remove.
3815         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3816
3817 2003-06-01  Richard Henderson  <rth@redhat.com>
3818
3819         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3820
3821 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3822
3823         * mips-tdep.c (is_mips16_addr): New function.
3824         (make_mips16_addr, unmake_mips16_addr): New functions.
3825         (pc_is_mips16, mips_fetch_instruction): Use.
3826         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3827         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3828         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3829         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3830         TARGET_MIPS.
3831         * config/mips/tm-mips.h: Update copyright.
3832         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3833         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3834         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3835         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3836         (TM_PRINT_INSN_MACH): Delete.
3837         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3838
3839         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3840         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3841         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3842         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3843         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
3844         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
3845         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
3846         mips*-*-riscos* and mips*-*-sysv* onto mips.
3847         * config/mips/mips64.mt: New file.
3848         * config/mips/mips.mt: New file.
3849         * config/mips/littlemips.mt: Delete file.
3850         * config/mips/decstation.mt: Delete file.
3851         * config/mips/vr4300el.mt: Delete file.
3852         * config/mips/vr5000el.mt: Delete file.
3853         * config/mips/vr5000.mt: Delete file.
3854         * config/mips/vr4100.mt: Delete file.
3855         * config/mips/vr4xxxel.mt: Delete file.
3856         * config/mips/vr4300.mt: Delete file.
3857         * config/mips/vr4xxx.mt: Delete file.
3858         * config/mips/bigmips.mt: Delete file.
3859         * config/mips/bigmips64.mt: Delete file.
3860         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3861         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3862         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3863         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3864         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3865         "tm-bigmips.h".
3866         * config/mips/tm-irix3.h: Ditto.
3867         * config/mips/tm-mipsv4.h: Ditto.
3868         * config/mips/tm-embed.h: Ditto.
3869         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3870         "tm-bigmips64.h".
3871         * config/mips/tm-vr5000el.h: Delete file.
3872         * config/mips/tm-tx39l.h: Delete file.
3873         * config/mips/tm-vr4300el.h: Delete file.
3874         * config/mips/tm-vr4xxxel.h: Delete file.
3875         * config/mips/tm-vr4300.h: Delete file.
3876         * config/mips/tm-vr4100.h: Delete file.
3877         * config/mips/tm-vr4xxx.h: Delete file.
3878         * config/mips/tm-vr5000.h: Delete file.
3879         * config/mips/tm-embedl64.h: Delete file.
3880         * config/mips/tm-embedl.h: Delete file.
3881         * config/mips/tm-embed64.h: Delete file.
3882         * config/mips/tm-bigmips64.h: Delete file.
3883         * config/mips/tm-bigmips.h: Delete file.
3884
3885 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
3886
3887         Fix gdb/1216.
3888         * shnbsd-nat.c: Include "sh-tdep.h".
3889
3890         From Richard Henderson  <rth@redhat.com>:
3891         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3892
3893 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3894
3895         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
3896         forward declaration.
3897         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3898         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3899         (mips_find_saved_regs): Use set_reg_offset.
3900         (mips_frame_init_saved_regs): Delete function.
3901         (mips_pop_frame): Call mips_find_saved_regs instead of
3902         DEPRECATED_FRAME_INIT_SAVED_REGS.
3903
3904 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3905
3906         * mips-tdep.c (mips_gdbarch_init): Do not set
3907         deprecated_max_register_raw_size, register_virtual_size, and
3908         deprecated_max_register_virtual_size.
3909
3910 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3911
3912         * i386-tdep.c: Include "dwarf2-frame.h".
3913         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3914         * Makefile.in (i386-tdep.o): Update dependencies.
3915
3916         * dwarf2-frame.c, dwarf2-frame.h: New files.
3917         * Makefile.in (SFILES): Add dwarf2-frame.c.
3918         (dwarf2_frame_h): Define.
3919         (COMMON_OBS): Add dwarf2-frame.o.
3920         (dwarf2-frame.o): Add dependencies.
3921
3922 2003-05-31  Andreas Jaeger  <aj@suse.de>
3923
3924         * x86-64-linux-nat.c: Fix comment.
3925
3926 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3927
3928         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3929         function signature.
3930
3931         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3932         have a sigcontext_addr handler.
3933         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3934         sigcontext_addr handler.
3935
3936 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3937
3938         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3939         (print_fp_register_row): Replace do_fp_register_row.
3940         (mips_print_fp_register): Add "file" and "frame" parameters.
3941         (mips_print_register): Add "file" and "frame" parameters.
3942         (mips_print_registers_info): Replace mips_do_registers_info.
3943         (mips_gdbarch_init): Set print_registers_info instead of
3944         deprecated_do_registers_info.
3945         (mips_read_fp_register_single): Add "frame" parameter.
3946         (mips_read_fp_register_double): Add "frame" parameter.
3947
3948 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3949
3950         * i386-tdep.c (i386_register_name): Check for MMX registers first.
3951         Fixes a bug where GDB would print the wrong register names for
3952         targets without SSE.
3953
3954         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3955         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3956         registers.
3957
3958         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3959         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3960         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3961         TDEP->sc_sp_offset.
3962
3963         From Michal Ludvig  <mludvig@suse.cz>:
3964         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3965         and `sc_num_regs'.
3966         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3967         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3968         I386_ST0_REGNUM): Move here from...
3969         * i386-tdep.c: ... here.
3970         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3971         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3972         registers if possible.
3973         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3974         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3975         Remove variables.
3976         (i386bsd_sc_reg_offset): New variable.
3977         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3978         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3979         TDEP->sc_sp_offset.
3980         (i386fbsd_sc_reg_offset): New variable.
3981         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3982         TDEP->sc_num_regs.
3983         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3984         variables.
3985         (i386fbsd4_sc_reg_offset): New variable.
3986         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3987         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3988         TDEP->sc_sp_offset.
3989         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3990         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3991         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3992         Remove variables.
3993         (i386nbsd_sc_reg_offset): New variable.
3994         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3995         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3996         TDEP->sc_sp_offset.
3997         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3998         Remove variables.
3999         (i386obsd_sc_reg_offset): New variable.
4000         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4001         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4002         TDEP->sc_sp_offset.
4003         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4004         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
4005         for frame pointer offset in `struct sigcontext'.
4006
4007 2003-05-31  Andrew Cagney  <cagney@redhat.com>
4008
4009         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4010         architecture methods call_dummy_words, sizeof_call_dummy_words,
4011         push_return_address, store_struct_return, and fix_call_dummy.  Set
4012         push_dummy_call instead of deprecated_push_arguments.
4013         (mips_store_struct_return): Delete function.
4014         (mips_fix_call_dummy): Delete function.
4015         (mips_push_return_address): Delete function.
4016         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4017         RA_REGNUM and T9_REGNUM.
4018         (mips_n32n64_push_dummy_call): Ditto for
4019         mips_n32n64_push_arguments.
4020         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4021         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4022
4023 2003-05-31  Andrew Cagney  <cagney@redhat.com>
4024
4025         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
4026         "dummy_addr" to "bp_addr".
4027         * infcall.c (call_function_by_hand): Pass "funaddr" to
4028         gdbarch_push_dummy_call.
4029         * gdbarch.h, gdbarch.c: Re-generate.
4030         * i386-tdep.c (i386_push_dummy_call): Update.
4031         * arm-tdep.c (arm_push_dummy_call): Update.
4032         * d10v-tdep.c (d10v_push_dummy_call): Update.
4033
4034 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
4035
4036         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4037         variable declarations.
4038         (x86_64_register_number, x86_64_register_name): Remove prototypes.
4039         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4040         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4041         x86_64_init_frame_pc, x86_64_init_frame_pc,
4042         x86_64_function_has_prologue): Remove prototypes.
4043         (X86_64_NUM_GREGS): New define.
4044         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4045         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
4046         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4047         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4048         XMM1_REGNUM): Remove defines.
4049         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4050         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4051         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4052         X86_64_XMM1_REGNUM): New defines.
4053         (struct x86_64_register_info): Renamed from `struct
4054         register_info'.  Remove `size' member.
4055         (x86_64_register_info_table): Remove variable.
4056         (x86_64_register_info): New variable.
4057         (X86_64_NUM_REGS): New define.
4058         (X86_64_NUM_GREGS): Remove define.
4059         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4060         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4061         Remove variables.
4062         (x86_54_dwarf2_reg_to_regnum): Remove function.
4063         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4064         (x86_64_dwarf_reg_to_regnum): New function.
4065         (x86_64_register_name): Rewrite.
4066         (x86_64_register_raw_size): Remove function.
4067         (x86_64_register_byte_table): Remove variable.
4068         (x86_64_register_byte): Remove function.
4069         (x86_64_register_virtual_type): Remove function.
4070         (x86_64_register_type): New function.
4071         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4072         x86_64_register_convert_to_raw): Remove functions.
4073         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4074         (x86_64_use_struct_convention): Make static.  Adjust for renamed
4075         defines.
4076         (x86_64_frame_init_saved_regs): Remove function.
4077         (x86_64_push_arguments): Make static.  Change to accept a regcache
4078         as argument.
4079         (x86_64_store_return_value, x86_64_extract_return_value): Make
4080         static.  Rewrite based on i386 counterparts.
4081         (x86_64_push_dummy_call): New function.
4082         (X86_64_NUM_SAVED_REGS): New define.
4083         (x86_64_register_number): Remove function.
4084         (x86_64_store_struct_return): Remove function.
4085         (x86_64_frameless_function_invocation,
4086         x86_64_function_has_prologue): Remove functions.
4087         (PROLOG_BUFSIZE): Remove define.
4088         (struct x86_64_frame_cache): New structure.
4089         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4090         x86_64_frame_cache, x86_64_frame_this_id,
4091         x86_64_frame_prev_register, x86_64_frame_p,
4092         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4093         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4094         functions.
4095         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4096         variables.
4097         (x86_64_skip_prologue): Rewrite in terms of
4098         x86_64_analyze_prologue.
4099         (x86_64_frame_base_address): New function.
4100         (x86_64_frame_base): New variable.
4101         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4102         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
4103         set deprecated_fp_regnum, deprecated_register_size,
4104         deprecated_register_bytes, register_raw_size, register_byte,
4105         register_virtual_type, register_convertiable,
4106         register_convert_to_virtual, convert_to_raw,
4107         deprecated_get_saved_register, deprecated_target_read_fp,
4108         deprecated_push_arguments, deprecated_push_return_address,
4109         deprecated_pop_frame, deprecated_store_struct_return,
4110         deprecated_frame_init_saved_regs, deprecated_frame_chain,
4111         frameless_function_invocation, deprecated_frame_saved_pc,
4112         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4113         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4114         deprecated_init_frame_pc and virtual_frame_pointer.  Call
4115         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4116         and x86_64_frame_p.  Call frame_base_set_default to register
4117         x86_64_frame_base.
4118         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4119         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4120         (_initialize_x86_64_tdep): Remove function.
4121         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4122         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4123         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4124         define.
4125         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4126         (x86_64_linux_sigcontext_addr): Rewrite.
4127         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4128         x86_64_linux_frame_saved_pc): Remove functions.
4129         (x86_64_linux_pc_in_sigtramp): Renamed from
4130         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
4131         trampoline.
4132         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4133         Remove_functions.
4134         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
4135         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4136         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4137         (x86_64_regmap): Rename to regmap.
4138         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4139         x86_64_num_gregs.
4140         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
4141         x86_64_regmap.
4142         (x86_64_fxsave_offset): Remove function.
4143         (supply_fpregset): Simply call x86_64_supply_fxsave.
4144         (fill_fpregset): Simply call x86_64_fill_fxsave.
4145         (fetch_inferior_registers, store_inferior_registers): Avoid
4146         asignment in if-statement.
4147         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4148         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4149         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4150         (fetch_core_registers): Remove function.
4151         (linux_elf_core_fns): Remove.
4152         (offsetoff): Don't define.
4153         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4154         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4155         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4156         add core-regset.o.
4157         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4158         protection against multiple includes instead of NM_X86_64_h.  Add
4159         various comments.  Include "config/nm-linux.h".  Don't include
4160         <signal.h>.
4161         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4162         GET_THREAD_SIGNALS): Remove defines.
4163         (x86_64_register_u_addr, kernel_u_size,
4164         lin_thread_get_thread_signals): Remove prototypes.
4165         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4166         [HAVE_LINK_H]: Don't include "solib.h".
4167         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4168         * config/i386/tm-x86-64linux.h: Fix comments.
4169         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4170         x86-64-tdep.o): Update dependencies.
4171
4172 2003-05-30  Andrew Cagney  <cagney@redhat.com>
4173
4174         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4175         Change parameter type to a "struct regcache *".
4176
4177         * gdbarch.sh: Regardless of the multi-arch level, always define
4178         the macro when not already defined.
4179         * gdbarch.h, gdbarch.c: Re-generate.
4180
4181 2003-05-30  Richard Henderson  <rth@redhat.com>
4182
4183         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4184         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4185         (alpha_mdebug_frame_this_id): Likewise.
4186         (alpha_mdebug_frame_prev_register): Likewise.
4187         (alpha_mdebug_frame_base_address): Likewise.
4188         (alpha_mdebug_frame_locals_address): Likewise.
4189         (alpha_mdebug_frame_args_address): Likewise.
4190         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4191         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4192         (alpha_heuristic_frame_unwind_cache): Make static; add missing
4193         loop increment.
4194         (alpha_heuristic_frame_this_id): Make static.
4195         (alpha_heuristic_frame_prev_register): Likewise.
4196         (alpha_heuristic_frame_base_address): Likewise.
4197         * alpha-tdep.h: Update.
4198
4199 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
4200
4201         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4202         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4203         defenitions.
4204         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4205         * i386-tdep.c: Mark functions that are 64-bit safe as such.
4206         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4207         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4208         I386_ST0_REGNUM): New defines.
4209         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4210         codestream_get): Remove define.
4211         (codestream_next_addr, condestream_addr, condestream_buf,
4212         codestream_off, codestream_cnt): Remove variables.
4213         (codestream_fill, codestream_seek, codestream_read): Remove
4214         functions.
4215         (i386_follow_jump): Rewrite to avoid usage of removed codestream
4216         functionality.
4217         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4218         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4219         i386_frame_saved_pc, i386_saved_pc_after_call,
4220         i386_frame_num_args, i386_frame_init_saved_regs,
4221         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4222         i386_push_arguments): Remove functions.
4223         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4224         functionality.  Use i386_analyze_prologue instead of
4225         i386_get_frame_setup.
4226         (I386_NUM_SAVED_REGS): New define.
4227         (struct i386_frame_cache): New structure.
4228         (i386_alloc_frame_cache, i386_analyze_struct_return,
4229         i386_skip_probe, i386_analyze_frame_setup,
4230         i386_analyze_register_saves, i386_analyze_prologue,
4231         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4232         i386_frame_prev_register, i386_sigtramp_frame_cache,
4233         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4234         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4235         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4236         New functions.
4237         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4238         New variables.
4239         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4240         I386_EAX_REGNUM and I386_EDX_REGNUM.
4241         (i386_extract_return_value, i386_store_return_value): Use
4242         I386_ST0_REGNUM where appropriate.
4243         (i386_extract_struct_value_address): Rewrite to use extract_address.
4244         (i386_svr4_pc_in_sigtramp): Add comment.
4245         (i386_svr4_sigcontext_addr): Rewrite.
4246         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4247         TDEP->sc_sp_offset.
4248         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
4249         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4250         of new defines.  Set push_dummy_call, don't set
4251         deprecated_push_arguments, deprecated_push_return_address,
4252         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
4253         deprecated_frame_chain, deprecated_frame_saved_pc,
4254         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
4255         save_dummy_frame_tos, unwind_pc.  Call
4256         frame_unwind_append_predicate and frame_base_set_default.  Don't
4257         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
4258         Don't set frameless_function_invocation.  Don't set
4259         deprecated_register_bytes, deprecated_register_size,
4260         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4261         * i386-linux-tdep.c: Fix formatting in some comments.
4262         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4263         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4264         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4265         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4266         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4267         redundant parentheses.
4268         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4269         (i386_linux_sigcontext_addr): Use it.  Rewrite.
4270         (find_minsym_and_objfile): Change name of second argument.
4271         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
4272         changed.  Use frame_pc_unwind instead of
4273         DEPRECATED_SAVED_PC_AFTER_CALL.
4274         (i386_linux_init_abi): Don't set deprecated_register_bytes.
4275         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4276         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4277         unwinder.
4278         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4279         "dummy-frame.h".
4280         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4281         (_initialize_i386_cygwin_tdep): New prototype.
4282         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4283         deprecated_frame_chain_valid.
4284         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4285         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4286         Rely on the SVR4 defaults.
4287         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4288         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4289
4290 2003-05-30  Andrew Cagney  <cagney@redhat.com>
4291
4292         * infcall.c (call_function_by_hand): Always call
4293         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4294
4295 2003-05-30  Richard Henderson  <rth@redhat.com>
4296
4297         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4298         increment.
4299
4300 2003-05-29  Jim Blandy  <jimb@redhat.com>
4301
4302         Use gdbarch methods for solib stuff on PowerPC Linux.
4303         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4304         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4305         show through.
4306         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4307         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4308         giving the same effect as the #definitions above.
4309
4310 2003-05-29  Adam Fedor  <fedor@gnu.org>
4311
4312         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4313         (find_implementation_from_class): Replace it with the standard
4314         case i.e. do nothing.
4315
4316 2003-05-29  Richard Henderson  <rth@redhat.com>
4317
4318         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4319         (alpha_linux_sigtramp_offset): Use it.  Make static.
4320         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4321         update for new frame model.
4322         * alpha-mdebug-tdep.c: New file.
4323         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4324         (alpha_osf1_init_abi): Install it.
4325         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4326         (linked_proc_desc_table): Remove.
4327         (alpha_frame_past_sigtramp_frame): Remove.
4328         (alpha_dynamic_sigtramp_offset): Remove.
4329         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4330         (alpha_proc_desc_is_dyn_sigtramp): Remove.
4331         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4332         (push_sigtramp_desc): Remove.
4333         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4334         (alpha_cannot_store_register): Likewise.
4335         (alpha_sigcontext_addr): Remove.
4336         (alpha_find_saved_regs): Remove.
4337         (alpha_frame_init_saved_regs): Remove.
4338         (alpha_init_frame_pc_first): Remove.
4339         (read_next_frame_reg): Remove.
4340         (alpha_frame_saved_pc): Remove.
4341         (alpha_saved_pc_after_call): Remove.
4342         (temp_proc_desc, temp_saved_regs): Remove.
4343         (alpha_about_to_return): Remove.
4344         (cached_proc_desc): Remove.
4345         (alpha_frame_chain): Remove.
4346         (alpha_print_extra_frame_info): Remove.
4347         (alpha_init_extra_frame_info): Remove.
4348         (alpha_frame_locals_address): Remove.
4349         (alpha_frame_args_address): Remove.
4350         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4351         (alpha_push_dummy_frame): Remove.
4352         (alpha_pop_frame): Remove.
4353         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4354         (alpha_read_insn): New.
4355         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4356         for different insn encodings.
4357         (alpha_in_lenient_prologue): Remove.
4358         (struct alpha_sigtramp_unwind_cache): New.
4359         (alpha_sigtramp_frame_unwind_cache): New.
4360         (alpha_sigtramp_register_address): New.
4361         (alpha_sigtramp_frame_this_id): New.
4362         (alpha_sigtramp_frame_prev_register): New.
4363         (alpha_sigtramp_frame_unwind): New.
4364         (alpha_sigtramp_frame_p): New.
4365         (struct alpha_heuristic_unwind_cache): New.
4366         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4367         don't count nop insns that occur between functions.
4368         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4369         heuristic_proc_desc, but without the mdebug wrapping.
4370         (alpha_heuristic_frame_this_id): New.
4371         (alpha_heuristic_frame_prev_register): New.
4372         (alpha_heuristic_frame_unwind): New.
4373         (alpha_heuristic_frame_p): New.
4374         (alpha_heuristic_frame_base_address): New.
4375         (alpha_heuristic_frame_base): New.
4376         (alpha_unwind_dummy_id): New.
4377         (alpha_unwind_pc): New.
4378         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
4379         frame related deprecated initializations; install replacements.
4380         (alpha_dump_tdep): Remove.
4381         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4382         (alpha_read_insn, alpha_after_prologue,
4383         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4384         alpha_heuristic_frame_prev_register,
4385         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4386         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4387         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4388         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4389
4390 2003-05-29  Andrew Cagney  <cagney@redhat.com>
4391
4392         * gdb_assert.h (gdb_assert_fail): Provide different definitions
4393         dependant on the availability of ASSERT_FUNCTION.
4394         (ASSERT_FUNCTION): Do not define when there is no function name.
4395
4396 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
4397
4398         From Jimi X <jimix@watson.ibm.com>:
4399         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4400
4401 2003-05-28  Jim Blandy  <jimb@redhat.com>
4402
4403         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4404         argument to ptrace to int; the system headers should give it the
4405         right type, and pointers don't fit in ints on powerpc64-*-*.
4406
4407 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
4408
4409         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4410         DW_TAG_catch_block.
4411
4412 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
4413
4414         * stabsread.c (dbx_lookup_type): Make static.
4415         (read_type): Ditto.
4416         (add_undefined_type): Ditto.
4417         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4418         not export.
4419
4420 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
4421
4422         * hpread.c (hpread_has_name): Make static.
4423         (hpread_psymtab_to_symtab): Ditto.
4424         (file_exists): Ditto.
4425         (hpread_call_pxdb): Ditto.
4426         (hpread_pxdb_needed): Ditto.
4427         (hpread_quick_traverse): Ditto.
4428         (hpread_get_header): Ditto.
4429         (hpread_get_lntt): Ditto.
4430         (hpread_get_slt): Ditto.
4431         (class_of): Ditto.
4432
4433 2003-05-25  Andreas Schwab  <schwab@suse.de>
4434
4435         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4436         stack_align and deprecated_extra_stack_alignment_needed.
4437         (m68k_stack_align): Delete.
4438
4439         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4440         (m68k_register_virtual_size): Likewise.
4441         (altos_skip_prologue): Remove obsolete function.
4442         (isi_frame_num_args): Likewise.
4443         (news_frame_num_args): Likewise.
4444         (m68k_fix_call_dummy): Make static.
4445         (m68k_push_dummy_frame): Likewise.
4446         (m68k_pop_frame): Likewise.
4447         (m68k_skip_prologue): Likewise.
4448         (m68k_frame_init_saved_regs): Likewise.
4449         (m68k_saved_pc_after_call): Likewise.
4450         (m68k_get_longjmp_target): Make multi-arch.
4451         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4452         structure.  Register m68k_get_longjmp_target if enabled.
4453         * m68k-tdep.h (struct gdbarch_tdep): Define.
4454         * config/m68k/tm-m68k.h: Don't include "regcache.h".
4455
4456         * Makefile.in (config.status): Also depend on configure.tgt
4457         and configure.host.
4458         (m68klinux-tdep.o): Update dependencies.
4459         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4460         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4461         (M68K_LINUX_JB_PC): Define.
4462         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4463         and take additional parameter.
4464         (m68k_linux_sigtramp_saved_pc): Update.
4465         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
4466         m68k_linux_pc_in_sigtramp, in_plt_section,
4467         find_solib_trampoline_target.
4468         * config/m68k/tm-linux.h: Don't include any tm headers.
4469         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4470         (JB_ELEMENT_SIZE): Likewise.
4471         (JB_PC): Likewise.
4472         (GET_LONGJMP_TARGET): Likewise.
4473         (IN_SIGTRAMP): Likewise.
4474         (SVR4_SHARED_LIBS): Define this and include "solib.h".
4475
4476 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
4477
4478         * sparc-tdep.c (sparc32_do_push_arguments): New function.
4479         (sparc32_push_arguments): Re-implement by calling
4480         sparc32_do_push_arguments.
4481
4482 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
4483
4484         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4485         SPARC_O1_REGNUM): New defines.
4486         (sparc32_extract_return_value): Rewrite to operate on a regcache.
4487         (sparc32_store_return_value): New function.
4488         (sparc_extract_struct_value_address): Rewrite to operate on a
4489         regcache.
4490         (sparc_gdbarch_init): Don't set
4491         deprecated_extract_struct_value_address.  Set
4492         extract_struct_value_address instead. Don't set
4493         deprecated_extract_return_value and deprecated_store_return_value
4494         for 32-bit targets.  Set extract_return_value and
4495         store_return_value instead.
4496         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4497         DEPRECTAED_EXTRACT_RETURN_VALUE,
4498         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4499         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4500         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4501         (sparc_store_return_value): Remove prototype.
4502         (sparc32_store_return_value): New prototype.
4503         (sparc32_extract_return_value, sparc_extract_struct_value_address):
4504         Adjust prototypes.
4505
4506 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
4507
4508         * sparcnbsd-tdep.c: Include "gdb_string.h".
4509
4510 2003-05-23  Andrew Cagney  <cagney@redhat.com>
4511
4512         * p-valprint.c (pascal_val_print): Replace extract_address with
4513         the inline equivalent extract_unsigned_integer.
4514         * jv-valprint.c (java_value_print): Ditto.
4515         * ada-valprint.c (ada_val_print_1): Ditto.
4516         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4517
4518 2003-05-23  Theodore A. Roth  <troth@openavr.org>
4519
4520         * blockframe.c (frameless_look_for_prologue): Remove unused
4521         after_prologue variable.
4522
4523 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
4524
4525         * blockframe.c (get_pc_function_start): Rewrite to avoid
4526         asignments in if-statements.
4527
4528 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
4529
4530         Committed by Elena Zannoni  <ezannoni@redhat.com>.
4531         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4532         files, don't relocate absolute symbols (and do use mst_abs).
4533
4534 2003-05-23  Andrew Cagney  <cagney@redhat.com>
4535
4536         * objc-lang.c: Include "gdb_assert.h".
4537         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4538         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4539         (gdb_check, gdb_check_fatal): Delete functions.
4540         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4541         gdb_assert.
4542         (parse_selector, parse_method, find_methods, find_imps): Ditto.
4543         * Makefile.in (objc-lang.o): Update dependencies.
4544
4545 2003-05-22  Ian Lance Taylor  <ian@airs.com>
4546
4547         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4548         with fprintf_filtered, not fprintf_unfiltered.
4549
4550 2003-05-22  Andrew Cagney  <cagney@redhat.com>
4551
4552         * stack.c (frame_info): Inline extract_address, replacing it with
4553         extract_unsigned_integer.
4554         * findvar.c (unsigned_pointer_to_address): Ditto.
4555         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4556         * dwarf2expr.c (dwarf2_read_address): Ditto.
4557         * frame.c (frame_pc_unwind): Update comment.
4558         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4559
4560 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
4561
4562         * infptrace.c (detach): Call print_sys_errmsg rather than
4563         perror_with_name to issue warning message when errno is non-zero
4564         after calling ptrace detach.
4565
4566 2003-05-21  J. Brobecker  <brobecker@gnat.com>
4567
4568         * config/pa/tm-hppa.h: Delete some unused macros. Move some
4569         macro definitions from here...
4570         * hppa-tdep.c: ...to there.
4571
4572 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
4573
4574         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4575         register_ptrace_addr().  Fix all callers.
4576
4577 2003-05-21  Andreas Schwab  <schwab@suse.de>
4578
4579         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4580         dependencies.
4581         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4582         end.
4583         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4584         (_initialize_m68k_linux_tdep): New function.
4585         (m68k_linux_frame_saved_pc): Make static.
4586         (m68k_linux_extract_return_value): Likewise.
4587         (m68k_linux_store_return_value): Likewise.
4588         (m68k_linux_extract_struct_value_address): Likewise.
4589         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4590         Remove.
4591         (DEPRECATED_STORE_RETURN_VALUE): Remove.
4592         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4593         (DEPRECATED_FRAME_SAVED_PC): Remove.
4594
4595 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
4596
4597         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4598         regset numbering rather than our own.
4599
4600 2003-05-19  David Carlton  <carlton@bactrian.org>
4601
4602         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4603
4604 2003-05-19  David Carlton  <carlton@bactrian.org>
4605
4606         Partial fix for PR c++/827.
4607         * cp-support.h: Include symtab.h.
4608         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4609         * cp-namespace.c: Update contributors.
4610         (cp_lookup_symbol_nonlocal): New.
4611         (lookup_namespace_scope, cp_lookup_symbol_namespace)
4612         (lookup_symbol_file): Ditto.
4613         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4614         * block.h: Declare block_scope, block_using, block_global_block.
4615         * block.c (block_scope): New.
4616         (block_using, block_global_block): Ditto.
4617         * Makefile.in (cp_support_h): Depend on symtab_h.
4618         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4619
4620 2003-05-19  David Carlton  <carlton@bactrian.org>
4621
4622         * language.h (struct language_defn): Add 'la_value_of_this'
4623         and 'la_lookup_symbol_nonlocal' members.
4624         * symtab.h: Declare basic_lookup_symbol_nonlocal,
4625         lookup_symbol_static, lookup_symbol_global,
4626         lookup_symbol_aux_block.
4627         * symtab.c (lookup_symbol_aux): Call language hooks to determine
4628         if we should search fields of this and how to do static/global
4629         lookup.
4630         (lookup_symbol_aux_block): Make extern.
4631         (basic_lookup_symbol_nonlocal): New.
4632         (lookup_symbol_static, lookup_symbol_global): Ditto.
4633         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4634         'la_lookup_symbol_nonlocal' members.
4635         * c-lang.c (c_language_defn, cplus_language_defn)
4636         (asm_language_defn, minimal_language_defn): Ditto.
4637         * jv-lang.c (java_language_defn): Ditto.
4638         * language.c (unknown_language_defn, auto_language_defn)
4639         (local_language_defn): Ditto.
4640         * m2-lang.c (m2_language_defn): Ditto.
4641         * objc-lang.c (objc_language_defn): Ditto.
4642         * scm-lang.c (scm_language_defn): Ditto.
4643         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4644         * p-lang.c (pascal_language_defn): Ditto for both.
4645         * Makefile.in (f-lang.o): Depend on value_h.
4646         (p-lang.o): Ditto.
4647
4648 2003-05-19  David Carlton  <carlton@bactrian.org>
4649
4650         * block.h: Declare block_static_block.
4651         * block.c (block_static_block): New.
4652         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4653         lookup_symbol_aux_local, calling block_static_block instead.
4654         (lookup_symbol_aux_local): Delete 'static_block' argument.
4655
4656 2003-05-19  David Carlton  <carlton@bactrian.org>
4657
4658         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4659
4660 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
4661
4662         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4663         register numbers mapping.
4664
4665 2003-05-18  Adam Fedor  <fedor@gnu.org>
4666
4667         * symtab.c (completion_list_objc_symbol): New function.
4668         (make_symbol_completion_list): Use it to add ObjC symbols
4669         when looking though the list.
4670         (language_search_unquoted_string): New function.
4671         (make_file_symbol_completion_list): Use it.
4672
4673 2003-05-18  Andreas Schwab  <schwab@suse.de>
4674
4675         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4676         dependencies.
4677         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4678         as m68k_linux_extract_return_value.
4679         (DEPRECATED_STORE_RETURN_VALUE): Define as
4680         m68k_linux_store_return_value.
4681         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4682         m68k_linux_extract_struct_value_address.
4683         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4684         get_next_frame, get_frame_base, get_frame_pc.
4685         (m68k_linux_frame_saved_pc): Use get_frame_base.
4686         (m68k_linux_extract_return_value): New function.
4687         (m68k_linux_store_return_value): New function.
4688         (m68k_linux_extract_struct_value_address): New function.
4689         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4690
4691         * c-exp.y (typebase): Remove duplicate occurence of
4692         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
4693         of lookup_signed_typename.
4694
4695 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
4696
4697         * dwarf2loc.c (find_location_expression): Change type of second
4698         argument to `size_t *'.
4699         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4700         for size variable.
4701
4702 2003-05-18  David Carlton  <carlton@bactrian.org>
4703
4704         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4705         'linkage_name'.  Add comment.
4706         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4707         'linkage_name'.
4708         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4709         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4710         (lookup_block_symbol): Ditto.
4711
4712 2003-05-16  Andrew Cagney  <cagney@redhat.com>
4713
4714         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4715         * gdbarch.h, gdbarch.c: Re-generate.
4716         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4717         * TODO (REGISTER_BYTES): Delete reference.
4718         * alpha-tdep.c (alpha_gdbarch_init): Update.
4719         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4720         * x86-64-tdep.c (x86_64_init_abi): Update.
4721         * vax-tdep.c (vax_gdbarch_init): Update.
4722         * v850-tdep.c (v850_gdbarch_init): Update.
4723         * sparc-tdep.c (sparc_gdbarch_init): Update.
4724         * sh-tdep.c (sh_gdbarch_init): Update.
4725         * s390-tdep.c (s390_gdbarch_init): Update.
4726         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4727         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4728         (ns32k_gdbarch_init_32382): Update.
4729         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4730         * mcore-tdep.c (mcore_gdbarch_init): Update.
4731         * m68k-tdep.c (m68k_gdbarch_init): Update.
4732         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4733         * ia64-tdep.c (ia64_gdbarch_init): Update.
4734         * i386-tdep.c (i386_gdbarch_init): Update.
4735         * i386-linux-tdep.c (i386_linux_init_abi): Update.
4736         * hppa-tdep.c (hppa_gdbarch_init): Update.
4737         * h8300-tdep.c (h8300_gdbarch_init): Update.
4738         * frv-tdep.c (frv_gdbarch_init): Update.
4739         * cris-tdep.c (cris_gdbarch_init): Update.
4740         * avr-tdep.c (avr_gdbarch_init): Update.
4741         * arm-tdep.c (arm_gdbarch_init): Update.
4742         * sparc-tdep.c (sparc_pop_frame): Update.
4743         * rs6000-tdep.c (rs6000_pop_frame): Update.
4744         * remote.c (init_remote_state): Update.
4745         (remote_prepare_to_store): Update.
4746         * remote-vx.c (vx_prepare_to_store): Update.
4747         * remote-sds.c (sds_fetch_registers): Update.
4748         (sds_prepare_to_store): Update.
4749         * remote-array.c: Update.
4750         * regcache.c (init_legacy_regcache_descr): Update.
4751         (init_regcache_descr): Update.
4752         * mips-tdep.c (mips_eabi_extract_return_value): Update.
4753         (mips_o64_extract_return_value): Update.
4754         * irix5-nat.c (fetch_core_registers): Update.
4755         * irix4-nat.c (fetch_core_registers): Update.
4756         * i386-tdep.h: Update.
4757         * hppa-tdep.c (pa_do_registers_info): Update.
4758         (pa_do_strcat_registers_info): Update.
4759         * cris-tdep.c (cris_register_bytes_ok): Update.
4760         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4761         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4762         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4763         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4764         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4765         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4766         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4767         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4768         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4769         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4770         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4771         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4772         (REGISTER_BYTES_OK): Update.
4773         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4774         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4775
4776 2003-05-16  Ian Lance Taylor  <ian@airs.com>
4777
4778         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4779         (vax_print_insn, print_insn_arg): Remove static functions.
4780         (vax_gdbarch_init): Call set_gdbarch_print_insn with
4781         print_insn_vax from opcodes library.
4782         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4783
4784 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4785
4786         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4787         * target.h (memory_breakpoint_from_pc): Delete declaration.
4788         * mem-break.c (memory_breakpoint_from_pc): Delete function.
4789         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4790         * monitor.c (monitor_insert_breakpoint): Use
4791         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4792         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4793         * gdbarch.h, gdbarch.c: Re-generate.
4794         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4795         (sparc_gdbarch_init): Set breakpoint_from_pc to
4796         sparc_breakpoint_from_pc.
4797         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4798         (BREAKPOINT_FROM_PC): Define.
4799         (sparc_breakpoint_from_pc): Declare.
4800         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4801         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4802         (BREAKPOINT_FROM_PC): Define.
4803         (BREAKPOINT): Delete macro.
4804         * target.h: Update comment.
4805         * s390-tdep.c (s390_gdbarch_init): Update comments.
4806         * remote.c: Update comments.
4807         * remote-mips.c: Update comments.
4808         * proc-api.c (write_with_trace): Do not check for a breakpoint.
4809         * mem-break.c: Update comment.
4810         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4811         (ia64_memory_insert_breakpoint): Update.
4812         * config/sparc/tm-sparc.h: Update comment.
4813         * config/pa/tm-hppa64.h: Update comment.
4814         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4815         (rs6000_breakpoint_from_pc): Update.
4816         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4817         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4818         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4819         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4820         (mips_breakpoint_from_pc): Update.
4821         (mips_dump_tdep): Update.
4822
4823         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4824         * minsyms.c (lookup_minimal_symbol): Inline
4825         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
4826
4827         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4828         * p-valprint.c (pascal_object_print_value_fields): Ditto.
4829         * p-lang.c (pascal_printstr): Ditto.
4830         * objc-lang.c (objc_printstr): Ditto.
4831         * m2-lang.c (m2_printstr): Ditto.
4832         * jv-valprint.c (java_print_value_fields): Ditto.
4833         * f-lang.c (f_printstr): Ditto.
4834         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
4835         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4836         for repeat_count_threshold.
4837         * Makefile.in (cp-valprint.o): Update dependencies.
4838
4839 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
4840
4841         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4842         (examine_prologue): Support looking through leaf functions, knowing
4843         they start with mov r2,r12.  Support skipping over indirect stores
4844         of the input registers.  Upon hitting a non-nop branch instruction
4845         or predicated instruction, bail out by setting lim_pc to the current
4846         pc value in the loop.  At the end, if the lim_pc value is still
4847         beyond our calculated value and we have trust_limit set,
4848         use the lim_pc value.
4849
4850 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4851
4852         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4853         generic_find_dummy_frame.
4854         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4855         (deprecated_generic_find_dummy_frame): Update.
4856         (deprecated_read_register_dummy): Update.
4857         * frame.c (deprecated_generic_get_saved_register): Update.
4858
4859 2003-05-15  Theodore A. Roth  <troth@openavr.org>
4860
4861         * avr-tdep.c (avr_breakpoint_from_pc): New function.
4862         (avr_gdbarch_init): Set breakpoint_from_pc method.
4863
4864 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4865
4866         * regcache.c (build_regcache): Set deprecated_register_valid
4867         directly.
4868         (deprecated_grub_regcache_for_register_valid): Delete function.
4869         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4870         declaration.
4871
4872 2003-05-15  David Carlton  <carlton@bactrian.org>
4873
4874         Committed by Elena Zannoni <ezannoni@redhat.com>
4875         * symtab.c (lookup_symbol_aux): Delete calls to
4876         lookup_symbol_aux_minsyms.
4877         (lookup_symbol_aux_minsyms): Comment out function and
4878         prototype. Delete lookup by mangled name.
4879
4880 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
4881
4882         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4883         correctly indicate an empty stack and ``stack_allocated'' to the
4884         indicate the number of elements initially allocated.
4885         (dwarf_expr_grow_stack): Simplify method for computing new
4886         stack size.  Don't loop infinitely if ``stack_len'' is zero.
4887         (execute_stack_op): Move ``ctx->in_reg'' initialization
4888         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4889         be used in conjuction with DW_OP_piece.  Revise error message
4890         accordingly.
4891
4892 2003-05-14  Theodore A. Roth  <troth@openavr.org>
4893
4894         * MAINTAINERS: Update my email address.
4895         * avr-tdep.c: Ditto.
4896
4897 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
4898
4899         * symtab.h (enum domain_enum): Rename from namespace_enum.
4900         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4901         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4902         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4903         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4904         TYPES_NAMESPACE, METHODS_NAMESPACE.
4905         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4906         (struct symbol, struct partial_symbol): Rename field
4907         'namespace_enum namespace' to 'domain_enum domain'.
4908         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4909         Delete old define kludge for namespace.
4910
4911         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4912         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4913         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4914         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4915         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4916         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4917         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4918         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4919         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4920         occurrences of the above.
4921
4922 2003-05-14  Ian Lance Taylor  <ian@airs.com>
4923
4924         * Makefile.in (install-only): Use $(SHELL) when running
4925         mkinstalldirs.
4926
4927 2003-05-13  Ian Lance Taylor  <ian@airs.com>
4928
4929         * MAINTAINERS (write after approval): Add myself.
4930
4931         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4932         second and third arguments.
4933         * ser-tcp.c (_initialize_ser_tcp): Likewise.
4934         * ser-unix.c (_initialize_ser_hardwire): Likewise.
4935
4936 2003-05-13  Andrew Cagney  <cagney@redhat.com>
4937
4938         * defs.h (store_address): Delete declaration.
4939         findvar.c (store_address): Delete function.
4940         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4941         store_unsigned_integer.
4942         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4943         * v850-tdep.c (v850_push_arguments): Ditto.
4944         * sparc-tdep.c (sparc_get_saved_register): Ditto.
4945         * sh-tdep.c (sh64_get_saved_register): Ditto.
4946         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4947         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4948         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4949         (mips_get_saved_register): Ditto.
4950         * ia64-tdep.c (ia64_get_saved_register): Ditto.
4951         (find_func_descr, ia64_push_arguments): Ditto.
4952         * i386-tdep.c (i386_push_arguments): Ditto.
4953         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4954         * frv-tdep.c (frv_push_arguments): Ditto.
4955         * frame.c (legacy_saved_regs_prev_register): Ditto.
4956         (deprecated_generic_get_saved_register): Ditto.
4957         * findvar.c (unsigned_address_to_pointer): Ditto.
4958         * dwarf2read.c (dwarf2_const_value): Ditto.
4959         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4960         * alpha-tdep.c (alpha_push_arguments): Ditto.
4961
4962 2003-05-12  J. Brobecker  <brobecker@gnat.com>
4963
4964         * NEWS: Mention that the hppa-hpux port has been partially
4965         multiarched (32bit ABIT only, so far).
4966
4967 2003-05-11  Andrew Cagney  <cagney@redhat.com>
4968
4969         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4970         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4971         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4972         sim/testsuite/sim/arm/misaligned2.ms, and
4973         sim/testsuite/sim/arm/misaligned3.ms.
4974         * disasm.h (struct ui_file): Add opaque struct declaration.
4975         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4976         * frame.h (struct ui_file): Ditto.
4977
4978 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
4979
4980         * value.h: Pretty print.
4981
4982 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
4983
4984         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4985
4986 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4987
4988         * regcache.h (max_register_size): Delete declaration.
4989         * regcache.c (max_register_size): Delete function.
4990         (struct regcache_descr): Delete field "max_register_size".
4991         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4992         registers fit in MAX_REGISTER_SIZE.
4993         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4994         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4995         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4996         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4997         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4998         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4999         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5000         * dve3900-rom.c, hppa-tdep.c: Ditto.
5001
5002 2003-05-08  David Carlton  <carlton@math.stanford.edu>
5003
5004         * valops.c (push_word): Fix typo.
5005
5006 2003-05-08  Andrew Cagney  <cagney@redhat.com>
5007
5008         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5009         * gdbarch.h: Re-generate.
5010         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5011         (legacy_max_register_raw_size): Delete declaration.
5012         * regcache.c (legacy_max_register_raw_size): Delete function.
5013         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5014         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5015         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5016         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5017         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5018         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5019         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5020         * findvar.c, dwarf2cfi.c: Ditto.
5021
5022 2003-05-08  Andrew Cagney  <cagney@redhat.com>
5023
5024         * mips-tdep.c (read_signed_register): New function, moved to here
5025         from "regcache.c".
5026         (read_signed_register_pid): Ditto.
5027         * regcache.c (read_signed_register_pid): Delete function, moved to
5028         "mips-tdep.c".
5029         (read_signed_register): Ditto.
5030         * regcache.h (read_signed_register): Delete declaration.
5031         (read_signed_register_pid): Delete declaration.
5032
5033 2003-05-08  Andrew Cagney  <cagney@redhat.com>
5034
5035         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5036         * gdbarch.h: Re-generate.
5037         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5038         (legacy_max_register_virtual_size): Delete declaration.
5039         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5040         * d10v-tdep.c (d10v_print_registers_info): Ditto.
5041         * tracepoint.c (memrange_sortmerge): Ditto.
5042         * sparc-tdep.c (sparc_print_registers): Ditto.
5043         * regcache.c (legacy_max_register_virtual_size): Delete function.
5044
5045 2002-05-08  J. Brobecker  <brobecker@gnat.com>
5046
5047         * fork-child.c (escape_bang_in_quoted_argument): New function.
5048         (fork_inferior): Escape '!' characters in quoted arguments
5049         only when needed.
5050
5051 2003-05-08  J. Brobecker  <brobecker@gnat.com>
5052
5053         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5054         the language of the CU is not currently supported by GDB.
5055
5056 2003-05-08  J. Brobecker  <brobecker@gnat.com>
5057
5058         * defs.h (language): Add language_minimal enum value.
5059         * c-lang.c (minimal_language_defn): New language definition.
5060         (_initialize_c_language): Add the new minimal language to the list
5061         of languages known to GDB.
5062
5063 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
5064
5065         * frame.c (get_frame_type): Don't attempt to lazily initialize
5066         frame's unwinder for legacy frames.
5067
5068 2003-05-07  Andrew Cagney  <cagney@redhat.com>
5069
5070         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5071         and "regcache" parameters.
5072         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5073
5074 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
5075
5076         * dwarf2read.c (dwarf_decode_lines): Only use output of
5077         check_cu_functions() when calling record_line().  Do not update
5078         the current address.
5079
5080 2003-05-07  Andrew Cagney  <cagney@redhat.com>
5081
5082         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5083         code.
5084
5085 2003-05-07  Jim Blandy  <jimb@redhat.com>
5086
5087         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5088         'maint info symtabs' and 'maint info psymtabs'.
5089         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5090         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5091         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5092         Declarations updated.
5093         * maint.c (maintenance_list_command): Delete.
5094         (_initialize_maint_cmds): Update calls to add_cmd.
5095         * gdbcmd.h (maintenancelistlist): Delete declaration.
5096         * cli/cli-cmds.c (maintenancelistlist): Delete.
5097         (init_cmd_lists): Don't initialize it.
5098         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5099
5100 2003-05-07  Andrew Cagney  <cagney@redhat.com>
5101
5102         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5103         "regcache".
5104         (d10v_print_registers_info): Update.
5105         (d10v_dmap_register, d10v_imap_register): Delete functions.
5106         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5107         and "imap_register".
5108         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5109         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5110         * arch-utils.c (generic_remote_translate_xfer_address): Add
5111         "regcache" and "gdbarch" parameters.
5112         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5113         parameter.  Change class to multi-arch.
5114         * gdbarch.h, gdbarch.c: Re-generate.
5115         * remote.c (remote_xfer_memory): Use
5116         gdbarch_remote_translate_xfer_address.
5117
5118 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
5119
5120         * infrun.c (prev_pc): Move declaration ahead of proceed().
5121         (proceed): Refresh prev_pc value before resuming.
5122         (stop_stepping): Remove code to refresh prev_pc.
5123
5124 2003-05-06  Kris Warkentin <kewarken@qnx.com>
5125
5126         * nto-tdep.c: Removed stray comment.
5127
5128 2003-05-06  Kris Warkentin <kewarken@qnx.com>
5129
5130         * i386-nto-tdep.c: Fix old K&R function definitions.
5131         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5132         Also change add_show_from_set() call to add_setshow_cmd().
5133         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5134
5135 2003-05-05  Andrew Cagney  <cagney@redhat.com>
5136
5137         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5138         (fprint_dummy_frames): New function.
5139         (maintenance_print_dummy_frames): New function.
5140         (_initialize_dummy_frame): Add command "maint print dummy-frames".
5141         * frame.c (fprint_frame_id): Make global.
5142         * frame.h (fprint_frame_id): Declare.
5143         * Makefile.in (dummy-frame.o): Update dependencies.
5144
5145 2003-05-05  Andrew Cagney  <cagney@redhat.com>
5146
5147         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5148         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5149         SIZEOF_CALL_DUMMY_WORDS.
5150         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5151         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5152         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5153         CALL_DUMMY_BREAKPOINT_OFFSET.
5154         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5155         CALL_DUMMY_START_OFFSET.
5156         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5157         * gdbarch.h, gdbarch.c: Re-generate.
5158         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5159         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5160         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5161         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5162         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5163         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5164         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5165         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5166         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5167         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5168         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5169         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5170         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5171         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5172         * config/sparc/tm-sparc.h: Update.
5173
5174 2003-05-05  Kris Warkentin <kewarken@qnx.com>
5175
5176         * configure.tgt: Add i[3456]86-*-nto*.
5177         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
5178         * nto-tdep.c: New file. Neutrino target support routines.
5179         * nto-tdep.h: New file. Neutrino target header.
5180         * config/tm-qnxnto.h: New file.
5181         * config/i386/i386nto.mt: New file.
5182         * config/i386/tm-i386nto.h: New file.
5183
5184 2003-05-04  Andrew Cagney  <cagney@redhat.com>
5185
5186         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5187         (load_infrun_state): Ditto.
5188         (struct thread_info): Drop "prev_func_name" field.
5189         * thread.c (load_infrun_state): Update.
5190         (save_infrun_state): Update.
5191         * infrun.c (prev_func_name): Delete variable.
5192         (init_wait_for_inferior): Do not clear prev_func_name.
5193         (stop_stepping, keep_going, context_switch): Do not swap
5194         prev_func_name.
5195         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5196         instead of PC_IN_SIGTRAMP.
5197
5198 2003-05-04  Andrew Cagney  <cagney@redhat.com>
5199
5200         * sentinel-frame.c (sentinel_frame_prev_register): Replace
5201         REGISTER_BYTE with register_offset_hack.
5202         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5203         that REGISTER_BYTE is consistent with the regcache.
5204         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5205         * gdbarch.h, gdbarch.c: Regenerate.
5206
5207 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
5208
5209         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5210         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5211
5212         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5213
5214 2003-05-03  J. Brobecker  <brobecker@gnat.com>
5215
5216         From Thierry Schneider <tpschneider1@yahoo.com>
5217         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5218         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5219         (mi-cmd-symbol.o): Add rule.
5220
5221 2003-05-03  Andrew Cagney  <cagney@redhat.com>
5222
5223         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5224         comments noteing that it replaces the old FIX_CALL_DUMMY code.
5225         * gdbarch.h, gdbarch.c: Re-generate.
5226         * d10v-tdep.c (d10v_push_dummy_code): New function.
5227         (d10v_gdbarch_init): Set push_dummy_code.
5228         * infcall.c (legacy_push_dummy_code): New function.
5229         (generic_push_dummy_code): New function.
5230         (push_dummy_code): New function.
5231         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
5232         instead of dummy_addr, to push_dummy_call.  Move call to
5233         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5234         switch.
5235         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5236
5237 2003-05-03  Andrew Cagney  <cagney@redhat.com>
5238
5239         * disasm.h (print_insn): Declare.
5240         * disasm.c (init_gdb_disassemble_info): New function.
5241         (gdb_disassembly): Call init_gdb_disassemble_info.
5242         (gdb_print_insn): New function.
5243         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5244         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
5245         * mcore-tdep.c: Include "disasm.h"
5246         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5247         * d10v-tdep.c: Include "disasm.h".
5248         (display_trace): Call gdb_print_insn, instead of print_insn.
5249         (print_insn): Delete function.
5250         * printcmd.c: Include "disasm.h".
5251         (print_insn): Delete function.
5252         (print_formatted): Call gdb_print_insn, instead of print_insn.
5253         * Makefile.in (printcmd.o): Update dependencies.
5254         (mcore-tdep.o, d10v-tdep.o): Ditto.
5255
5256 2003-05-02  Andrew Cagney  <cagney@redhat.com>
5257
5258         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5259         PC_REGNUM, re-indent.
5260         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5261         PC_REGNUM isn't set.
5262
5263         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5264         * gdbarch.h, gdbarch.c: Re-generate.
5265         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5266         register_virtual_size, pc_regnum, or register_bytes.
5267         (D10V_PC_REGNUM): Rename _PC_REGNUM.
5268         (d10v_register_type): Use D10V_PC_REGNUM.
5269         (d10v_print_registers_info, d10v_read_pc): Ditto.
5270         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5271         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5272
5273 2003-05-02  David Carlton  <carlton@bactrian.org>
5274
5275         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5276         the name with mstrsave.
5277
5278 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
5279
5280         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5281         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5282         (host_charset_name, target_charset_name): New vars for use by
5283         set/show commands.
5284         (host_charset_enum, target_charset_enum): New enums for set/show
5285         commands.
5286         (set_charset_sfunc, set_host_charset_sfunc,
5287         set_target_charset_sfunc): New functions.
5288         (set_host_charset, set_target_charset): Make static.
5289         (list_charsets, set_host_charset_command,
5290         set_target_charset_command): Delete functions.
5291         (show_charset_command): Rewrite as....
5292         (show_charset): Hook this up with the set/show command mechanism.
5293         (_initialize_charset): Change names of charsets to match the
5294         set/show enums. Use host_charset_name and target_charset_name.
5295         Use set/show mechanism for charset, host-charset, target-charset
5296         commands. Do not make 'show host-charset' and 'show
5297         target-charset' be aliases of 'show charset'.
5298
5299         * charset.h (set_host_charset, set_target_charset): Don't export,
5300         they are not used outside the file.
5301
5302 2003-05-01  Andrew Cagney  <cagney@redhat.com>
5303
5304         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5305         (gdb_disassembly): Make "di" non static, always initialize and
5306         cleanup.  Always use dis_asm_read_memory.
5307         (gdb_dis_asm_read_memory): Delete function.
5308
5309 2003-05-01  Andrew Cagney  <cagney@redhat.com>
5310
5311         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5312         (d10v_gdbarch_init): Set frame_align instead of stack_align.
5313
5314 2003-04-30  Andrew Cagney  <cagney@redhat.com>
5315
5316         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5317         "tm_print_insn_info".
5318         (TARGET_PRINT_INSN_INFO): Delete macro.
5319         (dis_asm_read_memory): Delete function declaration.
5320         (dis_asm_memory_error, dis_asm_print_address): Ditto.
5321         (tm_print_insn_info): Delete variable definition.
5322         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5323         * gdbarch.h, gdbarch.c: Re-generate.
5324         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5325         "deprecated_tm_print_insn_info".
5326         * mcore-tdep.c (mcore_dump_insn): Ditto.
5327         * mips-tdep.c (mips_gdbarch_init): Ditto.
5328         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5329         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5330         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5331         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5332         instead of TARGET_PRINT_INSN_INFO, add comment.
5333         * s390-tdep.c (s390_get_frame_info): Instead of
5334         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5335         (s390_check_function_end, s390_is_sigreturn): Ditto.
5336         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5337         (dis_asm_memory_error, dis_asm_print_address): Ditto.
5338         * disasm.c: Include "gdbcore.h".
5339         (_initialize_disasm): New function, initialize
5340         "deprecated_tm_print_insn_info".
5341         (deprecated_tm_print_insn_info): New variable.
5342         (dis_asm_read_memory): Moved from "corefile.c", made static.
5343         (dis_asm_print_address, dis_asm_memory_error): Ditto.
5344         * Makefile.in (disasm.o): Update dependencies.
5345
5346 2003-04-30  Andrew Cagney  <cagney@redhat.com>
5347
5348         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5349
5350 2003-04-29  Adam Fedor  <fedor@gnu.org>
5351
5352         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5353         * infcall.c (find_function_addr): Make non-static.
5354         * infcall.h (find_function_addr): Declare.
5355         * Makefile.in (eval.o): Update dependencies.
5356
5357 2003-04-28  Adam Fedor  <fedor@gnu.org>
5358
5359         * symtab.c (symbol_find_demangled_name): Check for and demangle
5360         ObjC symbols.
5361         (symbol_init_demangled_name): Init for language_objc as well.
5362
5363 2003-04-28  Andrew Cagney  <cagney@redhat.com>
5364
5365         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5366         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5367         * gdbarch.h, gdbarch.c: Re-generate.
5368         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5369         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5370         * inferior.h (deprecated_read_fp): Rename read_fp.
5371         (generic_target_read_fp): Delete declaration.
5372         * regcache.c (generic_target_read_fp): Delete function.
5373         (deprecated_read_fp): Replace read_fp, use
5374         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5375         * d10v-tdep.c (d10v_read_fp): Delete function.
5376         (d10v_gdbarch_init): Do not set deprecated_read_fp.
5377
5378         * sparc-tdep.c (sparc_gdbarch_init): Do not set
5379         deprecated_target_read_fp to generic_target_read_fp.
5380         * sh-tdep.c (sh_gdbarch_init): Ditto.
5381         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5382         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5383         * frv-tdep.c (frv_gdbarch_init): Ditto.
5384
5385         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5386         deprecated_fp_regnum.
5387         * x86-64-tdep.c (x86_64_init_abi): Ditto.
5388         * vax-tdep.c (vax_gdbarch_init): Ditto.
5389         * v850-tdep.c (v850_gdbarch_init): Ditto.
5390         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5391         * sh-tdep.c (sh_gdbarch_init): Ditto.
5392         * s390-tdep.c (s390_gdbarch_init): Ditto.
5393         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5394         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5395         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5396         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5397         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5398         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5399         * i386-tdep.c (i386_gdbarch_init): Ditto.
5400         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5401         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5402         * frv-tdep.c (frv_gdbarch_init): Ditto.
5403         * cris-tdep.c (cris_gdbarch_init): Ditto.
5404         * avr-tdep.c (avr_gdbarch_init): Ditto.
5405         * arm-tdep.c (arm_gdbarch_init): Ditto.
5406         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5407
5408         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5409         * v850-tdep.c (v850_gdbarch_init): Ditto.
5410         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5411         * sh-tdep.c (sh_gdbarch_init): Ditto.
5412         * s390-tdep.c (s390_gdbarch_init): Ditto.
5413         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5414         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5415         * mips-tdep.c (mips_gdbarch_init): Ditto.
5416         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5417         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5418         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5419         * frv-tdep.c (frv_gdbarch_init): Ditto.
5420         * avr-tdep.c (avr_gdbarch_init): Ditto.
5421         * arm-tdep.c (arm_gdbarch_init): Ditto.
5422
5423         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5424         DEPRECATED_FP_REGNUM.
5425         (vax_push_dummy_frame, vax_pop_frame): Ditto.
5426         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5427         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5428         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5429         (sparc32_register_virtual_type): Ditto.
5430         * sh-tdep.c (sh64_frame_chain): Ditto.
5431         (sh64_get_saved_register, sh64_pop_frame): Ditto.
5432         (sh_nofp_frame_init_saved_regs): Ditto.
5433         (sh64_nofp_frame_init_saved_regs): Ditto.
5434         (sh_fp_frame_init_saved_regs): Ditto.
5435         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5436         * remote-e7000.c (fetch_regs_from_dump): Ditto.
5437         * procfs.c (procfs_fetch_registers): Ditto.
5438         (procfs_store_registers): Ditto.
5439         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5440         (store_inferior_registers, fetch_core_registers): Ditto.
5441         (fetch_kcore_registers, clear_regs): Ditto.
5442         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5443         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5444         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5445         * nlm/i386.c (do_status): Ditto.
5446         * mipsv4-nat.c (supply_gregset): Ditto.
5447         * mips-tdep.c: Ditto for comments.
5448         * mips-nat.c (fetch_inferior_registers): Ditto.
5449         (store_inferior_registers, fetch_core_registers): Ditto.
5450         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5451         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5452         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5453         (i386_do_pop_frame, i386_register_type): Ditto.
5454         * hppa-tdep.c (hppa_frame_chain): Ditto.
5455         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5456         (hppa_pop_frame, hppa_read_fp): Ditto.
5457         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5458         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5459         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5460         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5461         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5462         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5463         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5464         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5465         * blockframe.c: Ditto for comments.
5466         * arch-utils.h: Ditto for comments.
5467         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5468         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5469         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5470         * alpha-tdep.h: Ditto for comments.
5471         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5472         (alpha_cannot_store_register): Ditto.
5473         (alpha_push_dummy_frame): Ditto.
5474         * alpha-nat.c (supply_gregset): Ditto.
5475
5476         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5477         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5478         * config/sparc/tm-sparc.h: Update comment.
5479
5480         * hppa-tdep.c (hppa_init_extra_frame_info): Use
5481         deprecated_read_fp instead of TARGET_READ_FP.
5482         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5483         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5484         * sparc-tdep.c (sparc_init_extra_frame_info): Use
5485         deprecated_read_fp instead of read_fp.
5486         * s390-tdep.c (s390_push_arguments): Ditto.
5487         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5488         * frame.h: Ditto in comments.
5489         * frame.c (legacy_get_prev_frame): Ditto.
5490         * dummy-frame.c (dummy_frame_this_id): Ditto.
5491         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5492
5493 2003-04-28  Andrew Cagney  <cagney@redhat.com>
5494
5495         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5496         * gdbarch.h, gdbarch.c: Re-generate.
5497         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5498         * vax-tdep.c (_initialize_vax_tdep): Update.
5499         * v850-tdep.c (_initialize_v850_tdep): Update.
5500         * sparc-tdep.c (_initialize_sparc_tdep): Update.
5501         * s390-tdep.c (_initialize_s390_tdep): Update.
5502         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5503         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5504         * mips-tdep.c (_initialize_mips_tdep): Update.
5505         * mcore-tdep.c (_initialize_mcore_tdep): Update.
5506         * m68k-tdep.c (_initialize_m68k_tdep): Update.
5507         * ia64-tdep.c (_initialize_ia64_tdep): Update.
5508         * hppa-tdep.c (_initialize_hppa_tdep): Update.
5509         * h8300-tdep.c (_initialize_h8300_tdep): Update.
5510         * frv-tdep.c (_initialize_frv_tdep): Update.
5511         * cris-tdep.c (cris_delayed_get_disassembler): Update.
5512         (_initialize_cris_tdep): Update.
5513         * arch-utils.c (legacy_print_insn): Update.
5514         * alpha-tdep.c (_initialize_alpha_tdep): Update.
5515
5516 2003-04-26  Adam Fedor  <fedor@gnu.org>
5517
5518         * linespec.c (decode_objc): New function to decode ObjC calls
5519         (decode_line_1): Check for ObjC calls (using decode_objc)
5520         * Makefile (linespec.o): Update dependencies.
5521
5522 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
5523
5524         * breakpoint.h (struct breakpoint_ops): New.
5525         (struct breakpoint): Add ops member.
5526
5527         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5528         (mention): Use new breakpoint ops member.
5529         (set_raw_breakpoint): Initialize ops field to NULL.
5530         (print_exception_catchpoint, print_one_exception_catchpoint)
5531         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5532         (gnu_v3_exception_catchpoint_ops): New.
5533         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5534
5535 2003-04-25  Adam Fedor  <fedor@gnu.org>
5536
5537         * Makefile.in (COMMON_OBS): Add objc-lang.o
5538
5539 2003-04-25  Andrew Cagney  <cagney@redhat.com>
5540
5541         * d10v-tdep.c (print_insn): Delete function.
5542         (display_trace): Use TARGET_PRINT_INSN.
5543         (_initialize_d10v_tdep): Do not set tm_print_insn.
5544         (d10v_gdbarch_init): Set print_insn.
5545
5546 2003-04-25  Andrew Cagney  <cagney@redhat.com>
5547
5548         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5549         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5550         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5551         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5552         (nr_dmap_regs, a0_regnum): ... new functions.
5553         (d10v_print_registers_info): Use a0_regnum, use register_size.
5554         (d10v_register_byte): Delete function.
5555         (d10v_register_raw_size): Delete function.
5556         (d10v_register_type): Use a0_regnum.
5557         (d10v_print_registers_info): Use a0_regnum.
5558         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5559         (d10v_gdbarch_init): Do not set register_byte or
5560         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5561         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5562         extract_address.
5563         (trace_command): Use XCALLOC.
5564         (print_insn): Delete reference to tm_print_insn.
5565         (saved_regs_unwinder): Use store_unsigned_integer instead of
5566         store_address.
5567         * frame.h (FRAME_OBSTACK_CALLOC): Define
5568
5569 2003-04-25  David Carlton  <carlton@bactrian.org>
5570
5571         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5572
5573 2003-04-24  Adam Fedor  <fedor@gnu.org>
5574
5575         * objc-lang.c: Include "valprint.h"
5576         * Makefile.in (objc-lang.o): Update dependencies.
5577
5578 2003-04-24  Adam Fedor  <fedor@gnu.org>
5579
5580         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5581         architecture dependant compilation and mark as unimplemented
5582         (until they get put in the gdbarch vector).
5583
5584 2003-04-23  David Carlton  <carlton@bactrian.org>
5585
5586         * cp-support.c (cp_find_first_component): Accept 'operator' in
5587         more locations.
5588
5589 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5590
5591         * infcall.c (call_function_by_hand): Eliminate redundant
5592         indentation.  Move "saved_async" and "old_cleanups" to where they
5593         are needed.
5594
5595 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5596
5597         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5598         and "buffer".  Move the "name" code to where it is needed.
5599
5600 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5601
5602         * infcall.c (call_function_by_hand): Move variables "start_sp",
5603         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5604         code to ON_STACK switch branch.
5605
5606 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5607
5608         * infcall.c (call_function_by_hand): Make declaration of "i",
5609         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
5610         lint.
5611
5612 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5613
5614         * infcall.c (call_function_by_hand): Delete variable
5615         "n_method_args".  Localize "param_type"'s declaration to the loop
5616         that it is used.  Reinstate code assigning to said variable -
5617         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
5618         Rationalize code using "param_type".
5619
5620 2003-04-22  Andrew Cagney  <cagney@redhat.com>
5621
5622         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5623         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
5624         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
5625         to DEPRECATED_PUSH_RETURN_ADDRESS.
5626
5627 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
5628
5629         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5630         on the DWARF2 register number prior to fetching a register.
5631
5632 2003-04-22  J. Brobecker  <brobecker@gnat.com>
5633
5634         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5635         Update all the tests using SOFT_FLOAT considering the fact that
5636         this macro was always set to 0.
5637         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5638         considering the fact that this macro was always set to 0.
5639         * hppa-tdep.h (hppa_store_return_value): Likewise.
5640         (hppa_extract_return_value): Likewise.
5641
5642 2003-04-22  J. Brobecker  <brobecker@gnat.com>
5643
5644         * config/pa/tm-hppa.h: Remove obsolete code, was used by
5645         the hppa-pro target only.
5646
5647 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5648
5649         Ongoing multi-arch conversion effort for HP/UX:
5650         * config/pa/tm-hppa.h: Move all macro that are no longer
5651         defined now that GDB_MULTI_ARCH is now set to 1 from here...
5652         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5653
5654 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5655
5656         * config/pa/tm-hppa.h: Obsolete a section that was only used
5657         for hppa-pro.
5658
5659 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5660
5661         Ongoing multi-arch conversion for HP/UX.
5662         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5663         if already defined (allows hppa64 to stay non-multiarched for now).
5664         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5665
5666 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5667
5668         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5669
5670 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5671
5672         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5673         "i386_num_mmx_regs".
5674
5675 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5676
5677         * infcall.c: New file.
5678         * infcall.h: New file.
5679         * valarith.c: Include "infcall.h".
5680         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5681         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5682         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5683         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5684         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5685         (SFILES): Add "infcall.c"
5686         (COMMON_OBS): Add "infcall.o".
5687         (infcall.o): Specify dependencies.
5688         * value.h (call_function_by_hand): Delete declaration.
5689         * inferior.h (run_stack_dummy): Delete declaration.
5690         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5691         (run_stack_dummy): Move to "infcall.c", merged into
5692         call_function_by_hand.
5693         * valops.c (call_function_by_hand): Moved to "infcall.c".
5694         (find_function_addr, value_arg_coerce): Ditto.
5695         (unwindonsignal_p, coerce_float_to_double): Ditto.
5696         (_initialize_valops): Move "set/show coerce-float-to-double", and
5697         "set/show unwindonsignal" commands to "infcall.c".
5698         * v850-tdep.c, target.h: Update comments.
5699         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5700         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5701         (sh64_init_extra_frame_info): Update comments.
5702         * mn10300-tdep.c: Update comments.
5703         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5704         * config/sparc/tm-sparc.h: Update comments.
5705         * breakpoint.h: Update comments.
5706         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5707         * arm-tdep.c: Update comment.
5708
5709 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
5710
5711         * i386-tdep.c (i386_num_register_names): New variable.
5712         (i386_num_mmx_regs): Renamed from mmx_num_regs.
5713         (MM0_REGNUM): Remove redundant parentheses in define.
5714         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5715         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5716         i386_mxcsr_regnum_p): Remove redundant parentheses.
5717         (i386_register_name): Use i386_num_register_names.
5718
5719         * i386-tdep.c (i386_extract_return_value,
5720         i386_store_return_value): Correct check for availability of
5721         floating-point registers.
5722
5723         * i386-tdep.c (i386_frame_num_args): Remove function.
5724         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5725
5726         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5727         mmx_regnum_to_fp_regnum.  Adjust all callers.
5728
5729         * i386-tdep.c (i386_get_longjmp_target): Use
5730         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5731         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
5732         extract_address.
5733
5734 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
5735
5736         * core-regset.c: Update comments to reflect reality.  Re-order
5737         includes.
5738         (fetch_core_registers): Use switch instead of if.  Remove
5739         redundant prototype.
5740
5741 2003-04-18  Jim Blandy  <jimb@redhat.com>
5742
5743         * s390-tdep.c (s390_frame_align): New function.
5744         (s390_gdbarch_init): Register it with the gdbarch object.
5745
5746 2003-04-17  Richard Henderson  <rth@redhat.com>
5747
5748         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5749
5750 2003-04-17  Michael Snyder  <msnyder@redhat.com>
5751             Karen Bennet  <bennet@redhat.com>
5752
5753         Committed by Elena Zannoni  <ezannoni@redhat.com>
5754         * gdb_gcore.sh: New script to create a core dump of a process.
5755
5756 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
5757
5758         * values.c (value_being_returned): Don't fetch the return
5759         value if the return type is void.
5760
5761 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
5762
5763         * thread-db.c: Reindented.
5764
5765 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
5766
5767         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5768         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5769         as types.
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
5796
5797         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5798         the size of ``long double'' to 16, instead of 8.
5799
5800 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
5801
5802         * i386-linux-nat.c: Add some whitespace to make things more
5803         readable.
5804         (fetch_register, store_register, fetch_inferior_registers,
5805         store_inferior_registers): Get rid of assignment in if-statement.
5806         (store_register): Fix typo in error message.
5807
5808 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5809
5810         * utils.c (xmmalloc): Always allocate something, matches
5811         libiberty/xmalloc's semantics.
5812         (xmrealloc, xmcalloc): Ditto.
5813
5814 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5815
5816         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5817         update comments.
5818         (get_frame_type): Initialize unwind and type when needed.
5819         (get_frame_id, frame_register_unwind): Ditto.
5820
5821 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5822
5823         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5824         obsolete.
5825         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5826         * sparcl-stub.c: Obsolete file.
5827         * config/sparc/tm-sparclet.h: Obsolete file.
5828         * sparclet-stub.c: Obsolete file.
5829         * sparclet-rom.c: Obsolete file.
5830         * sparcl-tdep.c: Obsolete file.
5831         * config/sparc/tm-sparclite.h: Obsolete file.
5832         * config/sparc/sparclite.mt: Obsolete file.
5833         * config/sparc/sparclet.mt: Obsolete file.
5834         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5835         sparc86x-*-* obsolete.
5836
5837 2003-04-15  David Carlton  <carlton@math.stanford.edu>
5838
5839         * Makefile.in (SFILES): Add cp-namespace.c.
5840         (COMMON_OBS): Add cp-namespace.o.
5841         (block.o): Depend on gdb_obstack_h and cp_support_h.
5842         (buildsym.o): Depend on cp_support_h.
5843         (cp-namespace.o): New.
5844         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5845         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5846         (dwarf2read.o): Depend on cp_support_h.
5847         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5848         * dwarf2read.c (process_die): Set processing_has_namespace_info,
5849         processing_current_namespace.
5850         (read_namespace): Update processing_current_namespace; check for
5851         anonymous namespaces.
5852         (dwarf2_name): New function.
5853         (dwarf2_extension): Ditto.
5854         * cp-support.h: Update copyright, contributors.
5855         Add inclusion guards.
5856         Add opaque declaration for structs obstack, block, symbol.
5857         (struct using_direct): New struct.
5858         Add declarations for cp_find_first_component,
5859         cp_entire_prefix_len, processing_has_namespace_info,
5860         processing_current_namespace, cp_is_anonymous,
5861         cp_add_using_directive, cp_initialize_namespace,
5862         cp_finalize_namespace, cp_set_block_scope,
5863         cp_scan_for_anonymous_namespaces.
5864         * cp-namespace.c: New file.
5865         * cp-support.c: Update copyright.
5866         Include ctype.h, gdb_assert.h, gdbcmd.h.
5867         New variable maint_cplus_cmd_list.
5868         (cp_find_first_component): New function.
5869         (cp_entire_prefix_len, maint_cplus_command)
5870         (first_component_command, _initialize_cp_support): Ditto.
5871         * buildsym.c: Include cp-support.h.
5872         New variable using_list.
5873         (add_symbol_to_list): Check for anonymous namespaces.
5874         (finish_block): Set block's scope.
5875         (start_symtab): Initialize C++ namespace support.
5876         (end_symtab): Finalize C++ namespace support.
5877         * block.h: Add opaque declarations for structs
5878         block_namespace_info, using_direct, and obstack.
5879         Add declarations for block_set_scope and block_set_using.
5880         (struct block): Add 'language_specific' member.
5881         (BLOCK_NAMESPACE): New macro.
5882         * block.c: Include gdb_obstack.h and cp-support.h.
5883         (struct block_namespace_info): New struct.
5884         (block_set_scope): New function.
5885         (block_set_using, block_initialize_namespace): Ditto.
5886
5887 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
5888
5889         * solib-svr4.c (svr4_have_link_map_offsets): New function.
5890         (locate_base): Return early if there aren't any link map offsets.
5891         (svr4_solib_create_inferior_hook): Warn if shared library support
5892         is unavailable.
5893
5894 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5895
5896         * symtab.c (symbol_set_names): Add prefix when storing Java names
5897         in hash table.  Fix for PR java/1039.
5898
5899 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5900
5901         * symtab.c (symbol_set_names): Rename 'name' arg to
5902         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5903         * symtab.h: Change 'name' argument in declaration of
5904         symbol_set_names to 'linkage_name'.
5905         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5906
5907 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5908
5909         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5910         return the fully sign-extended register value.
5911         (get_frame_pointer): Ditto.
5912         (mips_pop_frame): Initialize "proc_desc" after checking for a
5913         dummy frame.
5914
5915 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5916
5917         * mips-tdep.c (mips_push_dummy_frame): Delete function.
5918         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5919         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5920         (mips_push_register): Delete function.
5921         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5922         PUSH_FP_REGNUM.
5923
5924 2003-04-14  Jim Blandy  <jimb@redhat.com>
5925
5926         * symmisc.c: #include "gdb_regex.h".
5927         (maintenance_list_symtabs, maintenance_list_psymtabs): New
5928         functions.
5929         * maint.c (maintenance_list_command): New function.
5930         (_initialize_maint_cmds): Register the above as commands.
5931         * symtab.h (maintenance_list_symtabs,
5932         maintenance_list_psymtabs): New declarations.
5933         * cli/cli-cmds.c (maintenancelistlist): New variable.
5934         (init_cmd_lists): Initialize it.
5935         * cli/cli-cmds.h (maintenancelistlist): New declaration.
5936         * gdbcmd.h (maintenancelistlist): New declaration.
5937         * Makefile.in (symmisc.o): Update dependencies.
5938
5939 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
5940
5941         * s390-nat.c: Include asm/types.h for addr_t.
5942
5943 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
5944
5945         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5946         actually incoming type.
5947
5948 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5949
5950         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5951         get_next_frame and get_frame_saved_regs.
5952
5953 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5954
5955         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5956         of gdbarch_num_regs.
5957
5958 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5959
5960         * frame.h: Mention what replaced what in "struct frame_info".
5961         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5962         deprecated_update_frame_base_hack and
5963         deprecated_update_frame_pc_hack.
5964         * hppa-tdep.c: Ditto.
5965
5966 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5967
5968         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5969         to read_reg and update its comment.  Remove regnum member.
5970         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5971         Don't call read_reg when setting in_reg.  Call read_reg to get
5972         the frame base if it's in a register.  Return the register number
5973         on the stack instead of in the context.  Remove extra arguments
5974         to read_reg.
5975         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5976         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
5977         the register number on the expression stack.
5978         (needs_frame_read_reg): Remove extra arguments.
5979
5980 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5981
5982         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5983         made non-static.
5984         (execute_stack_op): All callers updated.
5985         * dwarf2expr.h: Add prototype for dwarf2_read_address.
5986         * dwarf2loc.c (find_location_expression): New function.
5987         (dwarf_expr_frame_base): Call it.
5988         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5989         (dwarf2_tracepoint_var_ref): New function, broken out from
5990         locexpr_tracepoint_var_ref.
5991         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5992         Make static.
5993         (loclist_read_variable, loclist_read_needs_frame): New functions.
5994         (loclist_describe_location, loclist_tracepoint_var_ref): New
5995         functions.
5996         (dwarf2_loclist_funcs): New struct location_funcs.
5997         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5998         (struct dwarf2_locexpr_baton): Add comments.
5999         (dwarf2_loclist_funcs): New extern.
6000         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6001         base_address and base_known.
6002         (dwarf_loc_buffer): New variable.
6003         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6004         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6005         (dwarf2_has_info): Initialize dwarf_loc_offset.
6006         (dwarf2_build_psymtabs): Read in .debug_loc.
6007         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6008         DWARF_LOC_SIZE.
6009         (psymtab_to_symtab_1): Likewise.  Move base address calculation
6010         here, from...
6011         (dwarf2_get_pc_bounds): ... here.  Use the base address from
6012         cu_header.
6013         (dwarf2_symbol_mark_computed): Handle location lists.
6014
6015 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
6016
6017         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6018         if the linkage name demangled successfully.
6019
6020 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
6021
6022         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6023         disassmbly_flavour): Removed.
6024
6025         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6026
6027 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
6028
6029         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6030
6031 2003-04-12  Andrew Cagney  <cagney@redhat.com>
6032
6033         * frame.h (struct frame_info): Move definition from here ...
6034         * frame.c (struct frame_info): ... to here.
6035
6036 2003-04-12  Andrew Cagney  <cagney@redhat.com>
6037
6038         * gdbthread.h (save_infrun_state): Delete parameter
6039         "prev_func_start".
6040         (struct thread_info): Delete field "prev_func_start".
6041         (load_infrun_state): Ditto.
6042         * thread.c (load_infrun_state, save_infrun_state): Update.
6043         * infrun.c (prev_func_start): Delete variable.
6044         (context_switch, init_wait_for_inferior): Update.
6045         (stop_stepping, keep_going): Update.
6046
6047 2003-04-12  Andrew Cagney  <cagney@redhat.com>
6048
6049         * gdbarch.sh: Add missing opaque declarations.
6050         * gdbarch.h: Regnerate.
6051         * symtab.h: Add missing opaque declarations.
6052         * value.h, target.h, symfile.h, stabsread.h: Ditto.
6053         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6054         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6055         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6056         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6057         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6058         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6059         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6060         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6061         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6062         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6063         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6064         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6065
6066 2003-04-11  Andrew Cagney  <cagney@redhat.com>
6067
6068         * frame.c (get_frame_id): Return this frame's "id".
6069         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6070         function start.
6071         (legacy_saved_regs_this_id): Replace function body with
6072         internal-error.
6073         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6074         FRAME_OBSTACK_ZALLOC.
6075         (create_new_frame): Mark the frame ID as valid.
6076
6077 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
6078
6079         * Makefile.in (libbfd_h): Added missing setting.
6080         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6081         according to the selected ABI.
6082
6083 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
6084
6085         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6086
6087 2003-04-11  Andrew Cagney  <cagney@redhat.com>
6088
6089         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6090         SAVED_PC_AFTER_CALL.
6091         * gdbarch.h, gdbarch.c: Regenerate.
6092         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6093         * x86-64-tdep.c (x86_64_init_abi): Update.
6094         * vax-tdep.c (vax_gdbarch_init): Update.
6095         * v850-tdep.c (v850_gdbarch_init): Update.
6096         * sparc-tdep.c (sparc_gdbarch_init): Update.
6097         * sh-tdep.c (sh_gdbarch_init): Update.
6098         * s390-tdep.c (s390_gdbarch_init): Update.
6099         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6100         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6101         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6102         * mips-tdep.c (mips_gdbarch_init): Update.
6103         * mcore-tdep.c (mcore_gdbarch_init): Update.
6104         * m68k-tdep.c (m68k_gdbarch_init): Update.
6105         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6106         * ia64-tdep.c (ia64_gdbarch_init): Update.
6107         (ia64_saved_pc_after_call): Update declaration.
6108         * i386ly-tdep.c (i386lynx_init_abi): Update.
6109         * i386-tdep.c (i386_gdbarch_init): Update.
6110         * hppa-tdep.c (hppa_gdbarch_init): Update.
6111         * h8300-tdep.c (h8300_gdbarch_init): Update.
6112         * frv-tdep.c (frv_gdbarch_init): Update.
6113         * cris-tdep.c (cris_gdbarch_init): Update.
6114         * avr-tdep.c (avr_gdbarch_init): Update.
6115         * arm-tdep.c (arm_gdbarch_init): Update.
6116         * alpha-tdep.c (alpha_gdbarch_init): Update.
6117         * ns32knbsd-nat.c (frame_num_args): Update.
6118         * ns32k-tdep.c (umax_frame_num_args): Update.
6119         * mips-tdep.c (mips_init_frame_pc_first): Update.
6120         * infrun.c (step_over_function): Update.
6121         * i386-linux-tdep.c (skip_hurd_resolver): Update.
6122         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6123         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6124         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6125         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6126         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6127         * arm-linux-tdep.c (skip_hurd_resolver): Update.
6128         * arch-utils.c (init_frame_pc_default): Update.
6129         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6130         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6131         declaration.
6132
6133 2003-04-11  Andrew Cagney  <cagney@redhat.com>
6134
6135         * i387-tdep.c: Update copyright.
6136         (i387_to_double): Delete function.
6137         (double_to_i387): Delete function.
6138
6139 2003-04-10  Andrew Cagney  <cagney@redhat.com>
6140
6141         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6142         frame's function's address.  Simplify.
6143         (d10v_frame_unwind_cache): Check that the frame's function is
6144         non-zero.
6145
6146 2003-04-10  Jim Blandy  <jimb@redhat.com>
6147
6148         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6149         call to set_gdbarch_deprecated_push_arguments.
6150
6151 2003-04-10  Andrew Cagney  <cagney@redhat.com>
6152
6153         * frame.c (fprint_frame_id): New function.
6154         (fprint_frame_type, fprint_frame): New function.
6155         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6156         (create_sentinel_frame, get_frame_id): Ditto.
6157         (frame_id_p, frame_id_eq): Ditto.
6158         (frame_id_inner, create_new_frame): Ditto.
6159         (legacy_get_prev_frame, get_prev_frame): Ditto.
6160         (deprecated_update_frame_pc_hack): Ditto.
6161         (frame_register_unwind): Ditto.
6162         (deprecated_update_frame_base_hack): Ditto.
6163
6164 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
6165
6166         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6167         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6168         frame_chain function.
6169         * Makefile.in: Add dependencies due to above change.
6170
6171 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
6172
6173         * blockframe.c (legacy_frame_chain_valid): Move call to
6174         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6175         inside_entry_file.
6176
6177 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6178
6179         * frame.h (struct frame_id): Replace "pc" and "base" with
6180         "stack_addr" and "code_addr".  Update comments.
6181         (frame_id_build): Update parameter names and comment.
6182         (struct frame_info): Replace "id_p" and "id" with "this_id".
6183         * dummy-frame.c (dummy_frame_this_id): Update.
6184         * breakpoint.c (print_one_breakpoint): Update.
6185         * frame.c (get_frame_id): Update.
6186         (get_frame_base, frame_id_build): Update.
6187         (create_sentinel_frame, legacy_get_prev_frame): Update.
6188         (deprecated_update_frame_base_hack): Update.
6189         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6190         (frame_id_inner): Ditto.
6191
6192 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6193
6194         * defs.h (gdb_print_host_address): Make "addr" parameter a
6195         pointer constant.
6196         * utils.c (gdb_print_host_address): Update.
6197
6198 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
6199
6200         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6201         register number for R0 is 0.
6202
6203 2003-04-09  J. Brobecker  <brobecker@gnat.com>
6204
6205         * frame.h (struct gdbarch): Add opaque structure definition
6206         to avoid a compilation warning on LynxOS 4.0.
6207
6208 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6209
6210         * frame.h (struct frame_info): Delete field "pc".  Replace
6211         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6212         structure.
6213         * frame.c (frame_pc_unwind): Update.
6214         (create_sentinel_frame): Do not set "pc".
6215         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
6216         (get_frame_pc): Call frame_pc_unwind.
6217         (deprecated_update_frame_pc_hack): Update.
6218         (create_new_frame): Use "pc" not "->pc".
6219
6220 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6221
6222         * frame.c (get_frame_id): Eliminate code updating "frame".
6223         (legacy_get_prev_frame): Ditto.
6224         (get_frame_base): Return id.base directly.
6225         (deprecated_update_frame_base_hack): Update "id.base".
6226         * frame.h (struct frame_info): Delete field "frame".
6227
6228 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6229
6230         * NEWS: Mention that the "Sequent family" is obsolete.
6231         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6232         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6233         * configure.host: Obsolete i[3456]86-sequent-bsd*,
6234         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6235         * config/i386/tm-ptx4.h: Obsolete file.
6236         * config/i386/tm-ptx.h: Obsolete file.
6237         * symm-tdep.c: Obsolete file.
6238         * config/i386/symmetry.mt: Obsolete file.
6239         * config/i386/tm-symmetry.h: Obsolete file.
6240         * symm-nat.c: Obsolete file.
6241         * config/i386/nm-symmetry.h: Obsolete file.
6242         * config/i386/xm-symmetry.h: Obsolete file.
6243         * config/i386/symmetry.mh: Obsolete file.
6244         * config/i386/nm-ptx4.h: Obsolete file.
6245         * config/i386/ptx4.mh: Obsolete file.
6246         * config/i386/ptx.mt: Obsolete file.
6247         * config/i386/ptx.mh: Obsolete file.
6248         * config/i386/xm-ptx4.h: Obsolete file.
6249         * config/i386/xm-ptx.h: Obsolete file.
6250
6251 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6252
6253         Obsolete mips*-*-mach3*.
6254         * NEWS: Mention that mips*-*-mach3* is obsolete.
6255         * m3-nat.c: Obsolete file.
6256         * config/nm-m3.h: Obsolete file.
6257         * config/mips/tm-mipsm3.h: Obsolete file.
6258         * config/mips/mipsm3.mt: Obsolete file.
6259         * config/mips/mipsm3.mh: Obsolete file.
6260         * config/mips/xm-mipsm3.h: Obsolete file.
6261         * mipsm3-nat.c: Obsolete file.
6262         * configure.host: Obsolete mips-dec-mach3*.
6263         * configure.tgt: Obsolete mips*-*-mach3*.
6264
6265 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6266
6267         * doublest.h: Update copyright.
6268         (deprecated_store_floating, deprecated_extract_floating): Rename
6269         store_floating and extract_floating.  Update comments.
6270         * doublest.c: Update copyright.
6271         (extract_floating_by_length): Replace extract_floating.
6272         (store_floating_by_length): Replace store_floating.
6273         (deprecated_extract_floating): New function.
6274         (deprecated_store_floating): New function.
6275         (extract_typed_floating): Call extract_floating_by_length.
6276         (store_typed_floating): Call store_floating_by_length.
6277         * x86-64-tdep.c (x86_64_store_return_value): Update.
6278         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6279         (sh64_extract_return_value): Update.
6280         (sh_sh4_register_convert_to_virtual): Update.
6281         (sh_sh64_register_convert_to_virtual): Update.
6282         (sh_sh4_register_convert_to_raw): Update.
6283         (sh_sh64_register_convert_to_raw): Update.
6284         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6285         (rs6000_register_convert_to_raw): Update.
6286         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6287         (ia64_register_convert_to_raw): Update.
6288         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6289         (REGISTER_CONVERT_TO_VIRTUAL): Update.
6290         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6291         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6292         (alpha_register_convert_to_raw): Update.
6293
6294 2003-04-08  Andrew Cagney  <cagney@redhat.com>
6295
6296         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6297         * gdbarch.h, gdbarch.c: Re-generate.
6298         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6299         (d10v_gdbarch_init): Do not set saved_pc_after_call.
6300         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6301         conditionally, use frame_pc_unwind as an alternative.  Add
6302         comments.
6303         * arch-utils.c (init_frame_pc_default): Only call
6304         SAVED_PC_AFTER_CALL when available.
6305
6306 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
6307
6308         * infrun.c (stop_soon): Rename from stop_soon_quietly.
6309         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6310         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6311         (start_remote): Ditto.
6312         (handle_inferior_event): Ditto.
6313         (save_inferior_status): Ditto.
6314         (restore_inferior_status): Ditto.
6315         * infcmd.c (attach_command): Ditto.
6316         * fork-child.c (startup_inferior): Ditto.
6317         * inferior.h (stop_soon): Rename from stop_soon_quietly.
6318         * alpha-tdep.c (heuristic_proc_start): Ditto.
6319         * mips-tdep.c (heuristic_proc_start): Ditto.
6320         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6321         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6322         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6323         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6324         * remote-vx.c (vx_create_inferior): Ditto.
6325
6326 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
6327
6328         * infrun.c (stop_soon_quietly): Make it an enum, to better
6329         override the default behavior of handle_inferior_event.
6330         (clear_proceed_status): Update uses of stop_soon_quietly to
6331         reflect that it is now an enum.
6332         (start_remote): Ditto.
6333         (handle_inferior_event): Change logic a bit if stop_soon_quietly
6334         is set to handle the new GNU/Linux kernel behavior for
6335         attach/sigstop.  Update uses of stop_soon_quietly.
6336         * inferior.h (enum stop_kind): New enum.
6337         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6338         Reset normal handle_inferior_event behavior, afterwards.
6339         * fork-child.c (startup_inferior): Update.
6340         * alpha-tdep.c (heuristic_proc_start): Update.
6341         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6342         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6343         * solib-osf.c (osf_solib_create_inferior_hook): Update.
6344         * solib-irix.c (irix_solib_create_inferior_hook): Update.
6345         * remote-vx.c (vx_create_inferior): Update.
6346         * mips-tdep.c (heuristic_proc_start): Update.
6347
6348 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
6349
6350         * disasm.c (dump_insns):  Move variables inside loop, or they will
6351         be freed more than once, causing wild memory corruptions.
6352         (gdb_disassembly): Look for the substring "-thread",
6353         instead of "-threads" in the target name, to make sure to find
6354         the 'multi-thread' target.  Also, make sure we do the right thing
6355         with the "core" target.
6356
6357 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
6358
6359         * mips-tdep.c (mips_print_fp_register): New function, created from
6360         do_fp_register_row().  Registers are now (also) printed as hex.
6361         Only one register is printed per row.
6362         (mips_print_register, do_fp_register_row): Print floating point
6363         registers with mips_print_fp_register().
6364
6365 2003-04-06  Andrew Cagney  <cagney@redhat.com>
6366
6367         * valprint.h (inspect_it): Add extern declaration.
6368         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6369         (selectors_info, classes_info): Ditto.
6370         (find_objc_msgcall): Fix indentation.
6371         (objc_printstr): Delete extern declarations.
6372
6373         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6374
6375 2003-04-06  Andrew Cagney  <cagney@redhat.com>
6376
6377         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6378         Update comment.
6379         * frame.c (legacy_saved_regs_this_id): Update.
6380         (legacy_get_prev_frame): Update.
6381         * xstormy16-tdep.c: Update comment.
6382         * sparc-tdep.c (sparc_frame_chain): Update comment.
6383         * blockframe.c (legacy_frame_chain_valid): Update.
6384
6385 2003-04-06  Andrew Cagney  <cagney@redhat.com>
6386
6387         * valprint.c (val_print_type_code_int): Delete #ifdef
6388         PRINT_TYPELESS_INTEGER code.
6389
6390         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6391         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6392         multi-arch definition.
6393         * gdbarch.h: Re-generate.
6394
6395 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6396
6397         Eliminate FRAME_FIND_SAVED_REGS.
6398         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6399         Change FSR parameter to a pointer.
6400         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6401         Assume FSR parameter is a pointer.
6402         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6403         Make fsr a pointer.
6404         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6405         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
6406         saved_regs a pointer.
6407         (hppa_frame_saved_pc): Ditto.
6408         (find_dummy_frame_regs): Make frame_saved_regs a pointer
6409         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
6410         pointer.
6411         (restore_pc_queue): Make fsr a pointer.
6412         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6413         (hppa_frame_chain): Make saved_regs a pointer, call
6414         hppa_frame_init_saved_regs.
6415         * sparc-tdep.c: Include "gdb_assert.h".
6416         (sparc_frame_find_saved_regs): Replace internal_error with
6417         gdb_assert.
6418         * remote-vxsparc.c (vx_read_register): Delete reference to
6419         FRAME_FIND_SAVED_REGS.
6420         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6421         * gdbarch.h: Regenerate.
6422         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6423         (deprecated_get_frame_saved_regs): Delete declaration.
6424         (struct frame_saved_regs): Delete definition.
6425         * frame.c (deprecated_get_frame_saved_regs): Delete function.
6426         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6427         (hppa_frame_find_saved_regs): Delete declaration.
6428         (FRAME_FIND_SAVED_REGS): Delete macro.
6429         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6430         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6431         FRAME_FIND_SAVED_REGS in comment.
6432
6433 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6434
6435         * frame.c (frame_func_unwind, get_frame_func): New functions.
6436         * frame.h (get_frame_func, frame_func_unwind): Declare.
6437         (struct frame_info): Add field "prev_func" for caching the
6438         previous frame's function address.
6439         * arm-tdep.c (arm_frameless_function_invocation): Combine
6440         get_pc_function_start and get_frame_pc into get_frame_func.
6441         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6442         (sh64_nofp_frame_init_saved_regs): Ditto.
6443         * s390-tdep.c (s390_function_start): Ditto.
6444         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6445         (rs6000_frameless_function_invocation): Ditto.
6446         (rs6000_frame_saved_pc): Ditto.
6447         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6448         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6449         * i386-tdep.c (i386_frameless_signal_p): Ditto.
6450         (i386_frame_init_saved_regs): Ditto.
6451         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6452         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6453         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6454         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6455         * blockframe.c (frameless_look_for_prologue): Ditto.
6456
6457 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6458
6459         * frame.c (legacy_get_prev_frame): Link prev to next at the
6460         function start.  Update comments.
6461
6462 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6463
6464         * frame.c (get_frame_id): Update comment.
6465         (legacy_get_prev_frame): Update comment.
6466         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6467         * gdbarch.h: Regenerate.
6468         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6469         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6470
6471 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6472
6473         * stack.c (print_frame_info): Use get_frame_pc.
6474
6475 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6476
6477         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
6478         the frame's type from the unwinder.
6479         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6480         (create_new_frame, legacy_get_prev_frame): When the unwinder's
6481         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6482         (get_frame_base_address): Use get_frame_type.
6483         (get_frame_locals_address, get_frame_args_address): Ditto.
6484         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6485         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6486         (struct frame_info): Add comment explaining why the frame contains
6487         a "type" field.
6488         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6489         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6490         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6491         NORMAL_FRAME.
6492         * frame-unwind.h: Include "frame.h".
6493         (struct frame_unwind): Add "type" field.
6494         * Makefile.in (frame_unwind_h): Add $(frame_h).
6495
6496 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6497
6498         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6499         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6500         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6501         get_frame_base.
6502         (d10v_unwind_dummy_id): Use frame_id_build.
6503         * frame.c (find_frame_sal): Use get_frame_pc.
6504         (create_new_frame): Use deprecated_update_frame_pc_hack and
6505         deprecated_update_frame_base_hack.
6506         (create_sentinel_frame): Add comment about ->pc going away.
6507         (get_prev_frame): Add comment about ->pc going away.
6508         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6509         frame_id_build, deprecated_update_frame_pc_hack and
6510         deprecated_update_frame_base_hack.
6511         (select_frame): Use get_frame_pc.
6512         (legacy_saved_regs_this_id): Use frame_id_build.
6513
6514 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
6515
6516         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6517         signed integer case.
6518         (classify_argument): Handle enumerations and references.
6519
6520 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6521
6522         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6523         ID to NULL.
6524
6525 2003-04-01  Adam Fedor  <fedor@gnu.org>
6526
6527         * gdb/objc-lang.c (selectors_info): Replace calls to
6528         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6529         SYMBOL_NATURAL_NAME.
6530         (classes_info, find_methods): Likewise.
6531
6532 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
6533
6534         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6535         ``mach'' to the value determined by bfd_default_set_arch_mach().
6536
6537 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
6538
6539         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6540         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6541         (mi-cmd-file.o): Update dependencies.
6542
6543 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
6544
6545         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6546         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6547
6548 2003-04-01  Adam Fedor  <fedor@gnu.org>
6549
6550         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6551         * language.h (struct language_defn): Add la_demangle.
6552         (language_demangle): Declare.
6553         * language.c (language_demangle): New function.
6554         (unk_lang_demangle): Likewise.
6555         (unknown_language_defn, auto_language_defn, local_language_defn):
6556         Add ukn_lang_demangle.
6557         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6558         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6559         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6560         (cplus_language_defn): Add cplus_demangle for la_demangle element.
6561         * jv-lang.c (java_demangle): New function
6562         (java_language_defn): Use it for la_demangle element.
6563         * objc-lang.c (objc_demangle): Add options argument
6564         (objc_language_defn): Use objc_demangle for la_demangle element.
6565         * maint.c (maintenance_demangle): Replace switch with
6566         call to language_demangle.
6567         * utils.c (fprintf_symbol_filtered): Likewise.
6568
6569 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6570
6571         * printcmd.c (print_frame_nameless_args): Delete #ifdef
6572         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6573         PRINT_TYPELESS_INTEGER.
6574         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6575         PUSH_RETURN_ADDRESS.
6576
6577 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6578
6579         * Makefile.in (d10v-tdep.o): Update dependencies.
6580         * d10v-tdep.c: Include "frame-base.h".
6581         (d10v_frame_unwind): Make constant.
6582         (d10v_frame_base_address): New function.
6583         (d10v_frame_base): New variable.
6584         (d10v_gdbarch_init): Set frame_base default.
6585         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
6586         comment for base.
6587         (d10v_frame_unwind_cache): Set and use "prev_sp".
6588         (d10v_frame_this_id): Use the previous frame's inner most stack
6589         address and this frame's func address for the frame ID.  Use
6590         frame_id_build.  Don't analyze beyond the current instruction.
6591
6592 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6593
6594         * frame.h (get_frame_locals_address, get_frame_args_address):
6595         Refer to the base address, instead of the address of the first
6596         local or parameter.
6597
6598 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6599
6600         Add frame debug info addresses:
6601         * frame-base.c: New file.
6602         * frame-base.h: New file.
6603         * frame.h (struct frame_base): Add opaque declaration.
6604         (get_frame_base): Update comment.
6605         (get_frame_base_address): Declare.
6606         (get_frame_locals_address): Declare.
6607         (get_frame_args_address): Declare.
6608         (struct frame_info): Add "base" and "base_cache".  Update
6609         comments on the unwinder.
6610         * frame.c: Include "frame-base.h".
6611         (get_frame_locals_address): New function.
6612         (get_frame_base_address): New function.
6613         (get_frame_args_address): New function.
6614         * findvar.c (read_var_value): Use get_frame_locals_address and
6615         get_frame_args_address.
6616         * stack.c (frame_info): Use get_frame_locals_address and
6617         get_frame_args_address.
6618         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6619         moved to "frame-base.c".
6620         * printcmd.c (print_frame_nameless_args): Ditto.
6621         * symtab.h (address_class): Update comments.
6622         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6623         get_frame_base_address.
6624         * dwarf2expr.c (execute_stack_op): Ditto.
6625         * Makefile.in (frame_base_h): Define.
6626         (frame.o): Update dependencies.
6627         (frame-base.o): Add dependencies.
6628         (SFILES): Add frame-base.c.
6629         (COMMON_OBS): Add frame-base.o.
6630
6631 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6632
6633         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6634         CALL_DUMMY_LENGTH): Ditto.
6635         * gdbarch.c: Re-generate.
6636         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6637         (CALL_DUMMY_LENGTH): Delete macro.
6638         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6639         * arm-tdep.c (arm_gdbarch_init): Ditto.
6640         * avr-tdep.c (avr_gdbarch_init): Ditto.
6641         * cris-tdep.c (cris_gdbarch_init): Ditto.
6642         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6643         * frv-tdep.c (frv_gdbarch_init): Ditto.
6644         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6645         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6646         * i386-tdep.c (i386_gdbarch_init): Ditto.
6647         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6648         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6649         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6650         * mips-tdep.c (mips_gdbarch_init): Ditto.
6651         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6652         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6653         * s390-tdep.c (s390_gdbarch_init): Ditto.
6654         * sh-tdep.c (sh_gdbarch_init): Ditto.
6655         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6656         * v850-tdep.c (v850_gdbarch_init): Ditto.
6657         * vax-tdep.c (vax_gdbarch_init): Ditto.
6658         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6659
6660 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
6661
6662         * frame.c (get_prev_frame): Disable call to inside_entry_file().
6663
6664 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6665
6666         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6667         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6668         * gdbarch.h, gdbarch.c: Re-generate.
6669         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6670         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6671         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6672         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6673         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6674         * infcmd.c (run_stack_dummy): Simplify assuming
6675         CALL_DUMMY_BREAKPOINT_OFFSET_P.
6676         * infrun.c (handle_inferior_event): Ditto.
6677         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6678         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6679         * arm-tdep.c (arm_gdbarch_init): Ditto.
6680         * avr-tdep.c (avr_gdbarch_init): Ditto.
6681         * cris-tdep.c (cris_gdbarch_init): Ditto.
6682         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6683         * frv-tdep.c (frv_gdbarch_init): Ditto.
6684         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6685         * i386-tdep.c (i386_gdbarch_init): Ditto.
6686         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6687         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6688         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6689         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6690         * mips-tdep.c (mips_gdbarch_init): Ditto.
6691         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6692         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6693         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6694         * s390-tdep.c (s390_gdbarch_init): Ditto.
6695         * sh-tdep.c (sh_gdbarch_init): Ditto.
6696         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6697         * v850-tdep.c (v850_gdbarch_init): Ditto.
6698         * vax-tdep.c (vax_gdbarch_init): Ditto.
6699         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6700
6701 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
6702
6703         * symfile.c (symfile_relocate_debug_section): Update call to
6704         bfd_simple_get_relocated_section_contents.
6705
6706 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6707
6708         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6709         * gdbarch.h, gdbarch.c: Regenerate.
6710         * inferior.h (FIX_CALL_DUMMY): Delete macro.
6711         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6712         available.
6713         * frame.h (generic_fix_call_dummy): Delete declaration.
6714         * dummy-frame.h: Update comment.
6715         * dummy-frame.c (generic_fix_call_dummy): Delete function.
6716         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6717         fix_call_dummy.
6718         * sh-tdep.c (sh_gdbarch_init): Ditto.
6719         * s390-tdep.c (s390_gdbarch_init): Ditto.
6720         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6721         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6722         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6723         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6724         * i386-tdep.c (i386_gdbarch_init): Ditto.
6725         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6726         * frv-tdep.c (frv_gdbarch_init): Ditto.
6727         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6728         * cris-tdep.c (cris_gdbarch_init): Ditto.
6729         * avr-tdep.c (avr_gdbarch_init): Ditto.
6730         * arm-tdep.c (arm_gdbarch_init): Ditto.
6731
6732 2003-03-31  J. Brobecker  <brobecker@gnat.com>
6733
6734         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6735         (INIT_FRAME_AP): Likewise.
6736         (EXTRA_FRAME_INFO): Likewise.
6737
6738 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6739
6740         * gdbarch.sh: Include "symfile.h".
6741         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6742         * gdbarch.h, gdbarch.c: Re-generate.
6743         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6744         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6745         call_dummy_address, the default is at entry_point_address.
6746         * v850-tdep.c (v850_gdbarch_init): Ditto.
6747         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6748         * sh-tdep.c (sh_gdbarch_init): Ditto.
6749         * s390-tdep.c (s390_gdbarch_init): Ditto.
6750         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6751         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6752         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6753         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6754         * i386-tdep.c (i386_gdbarch_init): Ditto.
6755         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6756         * frv-tdep.c (frv_gdbarch_init): Ditto.
6757         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6758         * cris-tdep.c (cris_gdbarch_init): Ditto.
6759         * arm-tdep.c (arm_gdbarch_init): Ditto.
6760
6761 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6762
6763         * gdbarch.sh (CALL_DUMMY_P): Delete.
6764         * gdbarch.h, gdbarch.c: Re-generate.
6765         * inferior.h (CALL_DUMMY_P): Delete macro.
6766         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6767         * vax-tdep.c (vax_gdbarch_init): Update.
6768         * v850-tdep.c (v850_gdbarch_init): Update.
6769         * sparc-tdep.c (sparc_gdbarch_init): Update.
6770         * sh-tdep.c (sh_gdbarch_init): Update.
6771         * s390-tdep.c (s390_gdbarch_init): Update.
6772         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6773         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6774         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6775         * mips-tdep.c (mips_gdbarch_init): Update.
6776         * mcore-tdep.c (mcore_gdbarch_init): Update.
6777         * m68k-tdep.c (m68k_gdbarch_init): Update.
6778         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6779         * ia64-tdep.c (ia64_gdbarch_init): Update.
6780         * i386-tdep.c (i386_gdbarch_init): Update.
6781         * h8300-tdep.c (h8300_gdbarch_init): Update.
6782         * frv-tdep.c (frv_gdbarch_init): Update.
6783         * d10v-tdep.c (d10v_gdbarch_init): Update.
6784         * cris-tdep.c (cris_gdbarch_init): Update.
6785         * breakpoint.c (deprecated_frame_in_dummy): Update.
6786         * avr-tdep.c (avr_gdbarch_init): Update.
6787         * alpha-tdep.c (alpha_gdbarch_init): Update.
6788         * arm-tdep.c (arm_gdbarch_init): Update.
6789         * dummy-frame.c (dummy_frame_this_id): Update comments.
6790         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6791         * frame.c (legacy_get_prev_frame): Ditto.
6792         * valops.c (call_function_by_hand): Delete function.
6793         (hand_function_call): Rename to call_function_by_hand
6794
6795 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6796
6797         2002-11-10 Klee Dienes <kdienes@apple.com>
6798         * value.h (struct value): Update comment.
6799
6800 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6801
6802         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6803         D10V_FP_REGNUM.
6804         (d10v_gdbarch_init): Do not set fp_regnum.
6805
6806         * frame.c (get_frame_base): Force ID initialization.
6807         (get_prev_frame): Move computation of the frame ID from here ...
6808         (get_frame_id): ... to here.
6809         (legacy_get_prev_frame): Mark the frame ID as valid.
6810         * frame.h (struct frame_info): Add field "id_p".
6811
6812 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
6813
6814         * i386-tdep.c (i386_store_struct_return): Removed.
6815         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6816
6817 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6818
6819         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6820         * gdbarch.h, gdbarch.c: Regenerate.
6821         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6822         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6823         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6824         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6825         * i386-tdep.c (i386_gdbarch_init): Ditto.
6826         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6827         * cris-tdep.c (cris_gdbarch_init): Ditto.
6828         * vax-tdep.c (vax_gdbarch_init): Ditto.
6829         * s390-tdep.c (s390_gdbarch_init): Ditto.
6830         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6831         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6832         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6833         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6834         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6835         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6836         * sparc-tdep.c (sparc_gdbarch_init): Update.
6837         * sh-tdep.c (sh_gdbarch_init): Update.
6838         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6839         * mips-tdep.c (mips_gdbarch_init): Update.
6840         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6841         * ia64-tdep.c (ia64_gdbarch_init): Update.
6842         * frv-tdep.c (frv_gdbarch_init): Update.
6843         * avr-tdep.c (avr_gdbarch_init): Update.
6844         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6845         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
6846         instead of when push_dummy_call is not available.
6847
6848 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6849
6850         * infttrace.c: Include "gdbthread.h".
6851         (parent_attach_all): Fix function signature.
6852         (call_ptrace): Update call.
6853         * Makefile.in (infttrace.o): Update dependencies.
6854
6855 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6856
6857         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6858         PUSH_RETURN_ADDRESS.
6859         * gdbarch.h, gdbarch.c: Regenerate.
6860         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6861         * x86-64-tdep.c (x86_64_init_abi): Update.
6862         * v850-tdep.c (v850_gdbarch_init): Update.
6863         * sparc-tdep.c (sparc_gdbarch_init): Update.
6864         * sh-tdep.c (sh_gdbarch_init): Update.
6865         * s390-tdep.c (s390_gdbarch_init): Update.
6866         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6867         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6868         * mips-tdep.c (mips_gdbarch_init): Update.
6869         * mcore-tdep.c (mcore_gdbarch_init): Update.
6870         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6871         * ia64-tdep.c (ia64_gdbarch_init): Update.
6872         * i386-tdep.c (i386_gdbarch_init): Update.
6873         * h8300-tdep.c (h8300_gdbarch_init): Update.
6874         * frv-tdep.c (frv_gdbarch_init): Update.
6875         * cris-tdep.c (cris_gdbarch_init): Update.
6876         * avr-tdep.c (avr_gdbarch_init): Update.
6877         * arm-tdep.c (arm_gdbarch_init): Update.
6878         * valops.c (hand_function_call): Update.
6879
6880 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6881
6882         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6883         sizeof_call_dummy_words.
6884         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6885         define.
6886         * gdbarch.h: Regenerate.
6887
6888 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6889
6890         * infttrace.h: New file.
6891         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6892         (hpread_get_textlow): Detect an uninitialized dn_bufp.
6893         (hpread_read_doc_function_type): Detect an initialized type1.
6894         (hpread_quick_traverse): Initialize mod_name_string.
6895         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6896         (som_solib_get_solib_by_pc): Declare.
6897         (so_lib_thread_start_addr): Declare.
6898         (no_shared_libraries): Declare.
6899         * somread.c (init_import_symbols): Make static.  Add forward
6900         declaration.
6901         * config/pa/nm-hppah.h: Include "infttrace.h" for
6902         parent_attach_all.
6903         (hppa_insert_hw_watchpoint): Declare.
6904         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6905         * hppah-nat.c: Include "gdb_string.h".
6906         (parent_attach_all): Delete extern declaration, moved to
6907         "infttrace.h".
6908         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6909         int.
6910         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6911         * Makefile.in (infttrace_h): Define.
6912         (hpread.o): Update dependencies.
6913         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6914         * hppa-hpux-tdep.c: Include "gdb_string.h".
6915         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6916         * infrun.c (handle_inferior_event): Always initialize
6917         stepped_after_stopped_by_watchpoint.  Add default and remove
6918         fallthrough in switch statement.
6919         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6920         parameter to int.
6921         (hppa_remove_hw_watchpoint): Ditto.
6922
6923 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6924
6925         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6926         offset.
6927
6928 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
6929
6930         * arm-tdep.c (arm_push_arguments): Delete.
6931         (struct stack_item): New type.
6932         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6933         (arm_store_struct_return): Delte.
6934         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
6935         arm_push_arguments or arm_store_struct_return.
6936
6937 2003-03-28  Andrew Cagney  <cagney@redhat.com>
6938
6939         * Makefile.in (d10v-tdep.o): Update dependencies.
6940         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6941         * d10v-tdep.c: Include "remote.h".
6942         (target_resume_hook): Delete extern declaration.
6943         (target_wait_loop_hook): Ditto.
6944         (tdisassemble_command): Eliminate assignment in "if" conditional.
6945         (d10v_ts2_register_sim_regno): Eliminate call to
6946         legacy_register_sim_regno.
6947         (d10v_ts3_register_sim_regno): Ditto.
6948
6949 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
6950
6951         * thread.c: Reindented.
6952         * lin-lwp.c: Ditto.
6953         * linux-proc.c: Ditto.
6954
6955 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
6956
6957         * MAINTAINERS (write after approval): Add myself.
6958
6959 2003-03-27  Theodore A. Roth  <troth@openavr.org>
6960
6961         * objc-exp.y: Add missing semi-colons.
6962
6963 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6964
6965         * regcache.c (write_sp): Delete function and references.
6966         * inferior.h (write_sp): Delete declaration.
6967         * valops.c (hand_function_call): Replace write_sp with
6968         TARGET_WRITE_SP.
6969         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6970         (sparc_pop_frame): Ditto.
6971
6972 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6973
6974         * NEWS: Mention removal of support for hppa*-*-bsd* and
6975         hppa*-*-osf* natives, and hppa*-*-pro* target.
6976         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6977         * config/pa/xm-pa.h: Obsolete file.
6978         * config/pa/xm-hppab.h: Obsolete file.
6979         * config/pa/nm-hppab.h: Obsolete file.
6980         * config/pa/tm-hppab.h: Obsolete file.
6981         * config/pa/tm-hppao.h: Obsolete file.
6982         * config/pa/nm-hppao.h: Obsolete file.
6983         * config/pa/tm-pro.h: Obsolete file.
6984         * config/pa/hppaosf.mt: Obsolete file.
6985         * config/pa/hppaosf.mh: Obsolete file.
6986         * config/pa/hppapro.mt: Obsolete file.
6987         * config/pa/hppabsd.mt: Obsolete file.
6988         * config/pa/hppabsd.mh: Obsolete file.
6989         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6990         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6991         hppa*-*-osf*.
6992
6993 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6994
6995         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6996         push_arguments.  Don't set push_return_address or write_sp.
6997         (d10v_push_dummy_call): Replace d10v_push_arguments.
6998         (d10v_push_return_address, d10v_write_sp): Delete function,
6999         handled by push_dummy_call.
7000
7001 2003-03-26  Andrew Cagney  <cagney@redhat.com>
7002
7003         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7004         (push_dummy_call): New pure multi-arch replacement with gdbarch,
7005         regcache and dummy_addr parameters.
7006         * gdbarch.h, gdbarch.c: Re-generate.
7007         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7008         available; assume it will handle stack alignment and return
7009         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
7010         legacy_push_arguments.
7011         (legacy_push_arguments): Rename default_push_arguments.
7012         * value.h (legacy_push_arguments): Rename default_push_arguments.
7013         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7014         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7015         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7016         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7017         * config/i386/tm-symmetry.h: Update.
7018         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7019         * x86-64-tdep.c (x86_64_init_abi): Update.
7020         * v850-tdep.c (v850_gdbarch_init): Update.
7021         * sparc-tdep.c (sparc_gdbarch_init): Update.
7022         * sh-tdep.c (sh_gdbarch_init): Update.
7023         * s390-tdep.c (s390_gdbarch_init): Update.
7024         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7025         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7026         * mips-tdep.c (mips_gdbarch_init): Update.
7027         * mcore-tdep.c (mcore_gdbarch_init): Update.
7028         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7029         * ia64-tdep.c (ia64_gdbarch_init): Update.
7030         * i386-tdep.c (i386_gdbarch_init): Update.
7031         * hppa-tdep.c (hppa_gdbarch_init): Update.
7032         * h8300-tdep.c (h8300_gdbarch_init): Update.
7033         * frv-tdep.c (frv_gdbarch_init): Update.
7034         * d10v-tdep.c (d10v_gdbarch_init): Update.
7035         * cris-tdep.c (cris_gdbarch_init): Update.
7036         * avr-tdep.c (avr_gdbarch_init): Update.
7037         * arm-tdep.c (arm_gdbarch_init): Update.
7038         * arm-linux-tdep.c (arm_linux_init_abi): Update.
7039         * alpha-tdep.c (alpha_gdbarch_init): Update.
7040
7041 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
7042
7043         * signals/signals.c (do_target_signal_to_host): Correct realtime
7044         signal range test.
7045
7046 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
7047
7048         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7049         (struct sal_chain, map_catch_names): Remove.
7050         (catch_exception_command_1): Don't call
7051         handle_gnu_4_16_catch_command.
7052
7053 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
7054
7055         From Mark Dettinger <dettinge@de.ibm.com>:
7056         * dwarf2cfi.c (read_2u): Increment pointer by two.
7057
7058 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
7059
7060         * signals/signals.c: Fix typos in last change.
7061
7062 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
7063
7064         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7065         not already defined.  Use __SIGRTMIN if available.
7066         (target_signal_from_host): Remove SIGRTMIN block.
7067         (do_target_signal_to_host): Remove SIGRTMIN block; check that
7068         the signal is within the realtime range.
7069
7070 2003-03-25  Adam Fedor  <fedor@gnu.org>
7071
7072         * Makefile.in (infrun.o): Add $(language_h)
7073         * infrun.c (handle_inferior_event): Use skip_language_trampoline
7074         for language specific trampolines.
7075         * language.h (struct language_defn): Add skip_trampoline.
7076         (skip_language_trampoline): Declare.
7077         * language.c (unk_lang_trampoline, skip_language_trampoline):
7078         New functions.
7079         (unknown_language_defn, auto_language_defn, local_language_defn):
7080         Add ukn_lang_trampoline.
7081         * ada-lang.c (ada_language_defn): Add NULL for language
7082         specific skip_trampoline.
7083         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7084         scm-lang.c: Likewise.
7085         * objc-lang.c (objc_skip_trampoline): New function.
7086         (objc_language_defn): Add objc_skip_trampoline.
7087
7088 2003-03-25  Andrew Cagney  <cagney@redhat.com>
7089
7090         * frame.c (get_prev_frame): Delay validating a frame's ID -
7091         non-NULL, didn't go backwards - until an attempt to unwind it to
7092         the previous frame.
7093
7094 2003-03-25  Andrew Cagney  <cagney@redhat.com>
7095
7096         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7097         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
7098         * gdbarch.h, gdbarch.c: Re-generate.
7099         * config/sparc/tm-sparc.h
7100         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7101         * sparc-tdep.c (sparc_gdbarch_init): Set
7102         deprecated_extra_stack_alignment_needed.
7103         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7104         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7105         extra_stack_alignment_needed.
7106         * v850-tdep.c (v850_gdbarch_init): Ditto.
7107         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7108         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7109         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7110         * cris-tdep.c (cris_gdbarch_init): Ditto.
7111         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7112         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7113
7114 2003-03-25  Andrew Cagney  <cagney@redhat.com>
7115
7116         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7117         STORE_STRUCT_RETURN.
7118         * gdbarch.h, gdbarch.c: Regenerate.
7119         * d10v-tdep.c (d10v_store_struct_return): Delete function.
7120         (d10v_push_arguments): Set the struct return register.
7121         (d10v_gdbarch_init): Update.
7122         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7123         * x86-64-tdep.c (x86_64_init_abi): Update.
7124         * vax-tdep.c (vax_gdbarch_init): Update.
7125         * v850-tdep.c (v850_gdbarch_init): Update.
7126         * sparc-tdep.c (sparc_gdbarch_init): Update.
7127         * sh-tdep.c (sh_gdbarch_init): Update.
7128         * s390-tdep.c (s390_gdbarch_init): Update.
7129         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7130         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7131         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7132         * mips-tdep.c (mips_gdbarch_init): Update.
7133         * mcore-tdep.c (mcore_gdbarch_init): Update.
7134         * m68k-tdep.c (m68k_gdbarch_init): Update.
7135         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7136         * ia64-tdep.c (ia64_gdbarch_init): Update.
7137         * i386-tdep.c (i386_gdbarch_init): Update.
7138         * hppa-tdep.c (hppa_gdbarch_init): Update.
7139         * h8300-tdep.c (h8300_gdbarch_init): Update.
7140         * frv-tdep.c (frv_gdbarch_init): Update.
7141         * cris-tdep.c (cris_gdbarch_init): Update.
7142         * avr-tdep.c (avr_gdbarch_init): Update.
7143         * arm-tdep.c (arm_gdbarch_init): Update.
7144         * alpha-tdep.c (alpha_gdbarch_init): Update.
7145
7146 2003-03-25  Andrew Cagney  <cagney@redhat.com>
7147
7148         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7149         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7150         CALL_DUMMY_STACK_ADJUST with a predicate variable.
7151         * gdbarch.h, gdbarch.c: Regenerate.
7152         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7153         call_dummy_stack_adjust_p.
7154         * vax-tdep.c (vax_gdbarch_init): Ditto.
7155         * v850-tdep.c (v850_gdbarch_init): Ditto.
7156         * sh-tdep.c (sh_gdbarch_init): Ditto.
7157         * s390-tdep.c (s390_gdbarch_init): Ditto.
7158         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7159         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7160         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7161         * mips-tdep.c (mips_gdbarch_init): Ditto.
7162         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7163         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7164         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7165         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7166         * i386-tdep.c (i386_gdbarch_init): Ditto.
7167         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7168         * frv-tdep.c (frv_gdbarch_init): Ditto.
7169         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7170         * cris-tdep.c (cris_gdbarch_init): Ditto.
7171         * avr-tdep.c (avr_gdbarch_init): Ditto.
7172         * arm-tdep.c (arm_gdbarch_init): Ditto.
7173         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7174         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7175         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7176         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7177         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
7178         call_dummy_stack_adjust_p.
7179         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7180         (CALL_DUMMY_STACK_ADJUST): Delete macro.
7181         * sparc-tdep.c (sparc32_push_arguments): Update.
7182         * valops.c (hand_function_call): Update.
7183
7184 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
7185
7186         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7187         set_gdbarch_char_signed.
7188
7189 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
7190
7191         PR cli/548
7192         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7193
7194 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
7195
7196         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7197         (_initialize_arm_tdep): Don't set tm_print_insn.
7198
7199 2003-03-24  Adam Fedor  <fedor@gnu.org>
7200
7201         * Makefile.in (YYOBJ): Add objc-exp.tab.o
7202         * objc-lang.h: Add multiple inclusion protection.
7203         (start_msglist, add_msglist, end_msglist): Additional declarations.
7204
7205 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
7206
7207         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7208         value was renamed to ARM_FLOAT_SOFT_FPA.
7209
7210 2003-03-23  Andrew Cagney  <cagney@redhat.com>
7211
7212         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7213         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7214         * gdbarch.h, gdbarch.c: Regenerate.
7215         * valops.c (hand_function_call): Update.
7216         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7217         * frame.c (legacy_saved_regs_this_id): Update.
7218         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7219         * dummy-frame.h: Update.
7220         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7221         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7222         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7223         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7224         * config/m68k/tm-sun3.h: Update.
7225         * blockframe.c (inside_main_func, frame_chain_valid): Update.
7226         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7227         * x86-64-tdep.c (x86_64_init_abi): Update.
7228         * vax-tdep.c (vax_gdbarch_init): Update.
7229         * v850-tdep.c (v850_gdbarch_init): Update.
7230         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7231         * sh-tdep.c (sh_gdbarch_init): Update.
7232         * s390-tdep.c (s390_gdbarch_init): Update.
7233         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7234         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7235         (frame_get_saved_regs): Update.
7236         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7237         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7238         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7239         * mips-tdep.c (mips_gdbarch_init): Update.
7240         * mcore-tdep.c (mcore_gdbarch_init): Update.
7241         * m68k-tdep.c (m68k_gdbarch_init): Update.
7242         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7243         * ia64-tdep.c (ia64_gdbarch_init): Update.
7244         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7245         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7246         (i386_interix_back_one_frame): Update.
7247         * hppa-tdep.c (hppa_gdbarch_init): Update.
7248         (hppa_init_extra_frame_info): Update.
7249         * h8300-tdep.c (h8300_gdbarch_init): Update.
7250         * frv-tdep.c (frv_gdbarch_init): Update.
7251         * cris-tdep.c (cris_gdbarch_init): Update.
7252         * avr-tdep.c (avr_gdbarch_init): Update.
7253         * arm-tdep.c (arm_gdbarch_init): Update.
7254         * alpha-tdep.c (alpha_gdbarch_init): Update.
7255
7256 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7257
7258         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7259         (arm_get_fp_model): Declare.
7260         * arm-tdep.c (fp_model_strings): New string array.
7261         (arm_fp_model, current_fp_model): New variables.
7262         (arm_get_fp_model): New function.
7263         (arm_set_fp): New function.
7264         (set_fp_model_sfunc): New function.
7265         (show_fp_model): New function.
7266         (_initialize_arm_tdep): Add new command to set/show the FPU.
7267         (arm_extract_return_value): Use arm_get_fp_model.
7268         (arm_store_return_value): Likewise.
7269         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
7270         to initialize the floating-point data types.
7271         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7272         model is FPA.
7273
7274 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7275
7276         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
7277         the current setting of each value.
7278         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7279         new_set and new_show.  Use add_setshow_cmd_full and
7280         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
7281         commands and add new version as subcommands of "set/show arm".
7282
7283 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7284
7285         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7286         (set_arm_command, show_arm_command): New functions.
7287         (_initialize_arm_tdep): Add them.
7288         (num_disassembly_options): Renamed from num_flavor_options.
7289         (valid_disassembly_styles): Renamed from valid_flavors.
7290         (disassembly_style): Renamed from disassembly_flavor.
7291         (set_disassembly_style_sfunc): Renamed from
7292         set_disassembly_flavor_sfunc.
7293         (set_disassembly_style): Renamed from set_disassembly_flavor.
7294         (arm_othernames): Updated.
7295         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7296         command.  Add "set/show arm disassembly" commands.  Deprecate
7297         "othernames" command.
7298
7299 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7300
7301         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7302         (arm-tdep.o): Depend on elf_arm_h.
7303
7304 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7305
7306         * Makefile.in (coff_internal_h): Define.
7307         (arm-tdep.o): Update dependencies.
7308
7309 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7310
7311         * arm-tdep.c (prologue_cache): Delete.
7312         (check_prologue_cache, save_prologue_cache): Delete.
7313         (arm_scan_prologue): Don't check or update the prologue_cache.
7314         (arm_gdb_arch_init): Don't initialize it.
7315         (_initialize_arm_tdep): Likewise.
7316
7317 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
7318
7319         * MAINTAINERS (tui): Maintainer of tui code.
7320
7321 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
7322
7323         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7324         (i386-cygwin-tdep.o): Add dependencies.
7325         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7326         * i386-cygwin-tdep.c: New file.
7327         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7328         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7329
7330 2003-03-20  Andrew Cagney  <cagney@redhat.com>
7331
7332         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7333         (handle_inferior_event): Remove code calling
7334         DYNAMIC_TRAMPOLINE_NEXTPC.
7335
7336         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7337         already has a full path.
7338
7339         * main.c (gdb_main): Return 1.
7340         (captured_main): Call error to report an invalid interpreter.
7341
7342         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7343         * alpha-osf1-tdep.c: Include "gdb_string.h".
7344
7345 2003-03-19  J. Brobecker  <brobecker@gnat.com>
7346
7347         Continuing work to convert the hppa targets to multiarch partial.
7348
7349         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7350         method, now that hppa_push_dummy_frame has a conformant prototype.
7351         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7352         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7353         for the switch to multiarch partial.
7354
7355 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
7356
7357         * mdebugread.c (parse_symbol): For stEnd, we're done counting
7358         when iss is issNull.
7359
7360 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
7361
7362         * mips-tdep.c (mips_register_name): Fix fencepost error involving
7363         NUM_REGS bounds check.
7364
7365 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
7366
7367         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7368         * mips-tdep.c (gdb_assert.h): Include.
7369         (mips_generic_reg_names, mips_processor_reg_names): Make static.
7370         (mips_register_name): Handle integer registers explicitly.  Add
7371         bounds checking.
7372         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7373         (mips_lsi33k_reg_names): Don't list integer registers; they're
7374         handled by mips_register_name() now.
7375         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7376         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7377         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7378         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7379         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7380
7381 2003-03-18  Andrew Cagney  <cagney@redhat.com>
7382
7383         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7384         a void pointer.
7385         * gdbtypes.h (print_scalar_formatted): Update declaration.
7386         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7387
7388 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7389
7390         * infrun.c (observer.h): Add #include.
7391         (normal_stop): Add call to observer_notify_normal_stop.
7392         * Makefile.in (infrun.o): Add dependency on observer.h.
7393
7394 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7395
7396         Continuing work to convert the hppa targets to multiarch partial.
7397         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7398         parameter. Reformat comment.
7399         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7400         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7401         to match new profile.
7402
7403 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7404
7405         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7406         appear to be working in any case.
7407
7408 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7409
7410         * observer.c (observer_test_first_observer): New static variable.
7411         (observer_test_second_observer): Likewise.
7412         (observer_test_third_observer): Likewise.
7413         (observer_test_first_notification_function): New static function.
7414         (observer_test_second_notification_function): Likewise.
7415         (observer_test_third_notification_function): Likewise.
7416
7417 2003-03-17  J. Brobecker  <brobecker@gnat.com>
7418
7419         * hppa-tdep.c (gdb_assert.h): Add missing #include.
7420         * somsolib.c (gdb_assert.h): Likewise.
7421         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7422         (somsolib.o): Likewise.
7423
7424 2003-03-17  Andrew Cagney  <cagney@redhat.com>
7425
7426         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7427         BFD.  Simplify setting of di.endian.
7428
7429 2003-03-17  Andrew Cagney  <cagney@redhat.com>
7430
7431         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7432         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7433
7434         From Elena Zannoni  <ezannoni@redhat.com>
7435         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7436         vector and floating-point parameters.
7437         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7438         convention.
7439         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7440
7441 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
7442
7443         * MAINTAINERS: Remove my name from several maintainership roles.
7444
7445 2003-03-17  Andrew Cagney  <cagney@redhat.com>
7446
7447         Fix frame off-by-one bug.
7448         * frame-unwind.h (frame_this_id_ftype): Replace
7449         frame_unwind_id_ftype.
7450         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7451         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
7452         with "prev_register".
7453         * frame-unwind.c (frame_unwind_find_by_pc): Return
7454         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
7455         comment.
7456         * dummy-frame.c (cached_find_dummy_frame): Delete function.
7457         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7458         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7459         (dummy_frame_unwind): Update.
7460         * sentinel-frame.c (sentinel_frame_prev_register): Replace
7461         sentinel_frame_register_unwind.
7462         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7463         (sentinel_frame_unwinder): Update.
7464         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7465         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7466         * frame.c (create_sentinel_frame): Update. Initialize
7467         "prologue_cache" instead of "unwind_cache".
7468         (frame_register_unwind): Call this frame's prev_register with the
7469         next frame and this frame's prologue cache.
7470         (get_prev_frame): Simplify.  Always call prev frame's this_id with
7471         this frame and prev frame's prologue cache.  Document that this
7472         call is shifted one to the left when compared to the
7473         frame_register_unwind call.
7474         (legacy_saved_regs_prev_register): Replace
7475         frame_saved_regs_register_unwind.
7476         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7477         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7478         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7479         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7480         (d10v_frame_unwind): Update.
7481         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7482         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7483         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7484         "saved_regs" with "this_saved_regs".
7485
7486 2003-03-16  Andrew Cagney  <cagney@redhat.com>
7487
7488         * frame.c (frame_pop): Don't call target_store_registers.  Fix
7489         problem reported by Mark Kettenis.
7490
7491 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
7492
7493         * i386-tdep.c (i386_register_type): Renamed from
7494         i386_register_virtual_type.  Adjust function signature.
7495         (i386_gdbarch_init): Set register_type instead of
7496         deprecated_max_register_raw_size,
7497         deprecated_max_register_virtual_size and register_virtual_type.
7498
7499 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7500
7501         * frame.c (get_prev_frame): When a legacy frame, always call
7502         legacy_get_prev_frame.  Simplify unwind code using assumption that
7503         the unwinder is new.
7504         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7505         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7506         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7507
7508 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7509
7510         * frame.c (get_saved_register): Delete function.
7511         * frame.h (get_saved_register): Delete declaration.
7512         * xstormy16-tdep.c: Update comment.
7513         * regcache.h: Update comments.
7514         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7515         get_saved_register and extract_address, use
7516         frame_read_unsigned_register.
7517         (sparc_frame_saved_pc): Ditto.
7518         (sparc_get_saved_register): Instead of get_saved_register, use
7519         frame_register.
7520         (sparc_pop_frame): Ditto.
7521         * findvar.c: Update comments.
7522         (value_of_register): Call frame_register instead of
7523         get_saved_register.
7524         (value_from_register): Ditto.
7525         * config/sparc/tm-sparc.h: Update comment.
7526         * breakpoint.c: Update comment.
7527
7528 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7529
7530         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7531         GET_SAVED_REGISTER.
7532         * gdbarch.h, gdbarch.c: Re-generate.
7533         * frame.h: Update comments.
7534         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7535         * x86-64-tdep.c (x86_64_init_abi): Update.
7536         * sparc-tdep.c (sparc_gdbarch_init): Update.
7537         * sh-tdep.c (sh_gdbarch_init): Update.
7538         * mips-tdep.c (mips_gdbarch_init): Update.
7539         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7540         * cris-tdep.c (cris_gdbarch_init): Update.
7541         * ia64-tdep.c (ia64_gdbarch_init): Update.
7542         * frame.c (frame_register): Update.
7543         (get_saved_register): Update.
7544         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7545
7546 2003-03-13  Andrew Cagney  <cagney@redhat.com>
7547
7548         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7549         * gdbarch.h, gdbarch.c: Regenerate.
7550         * valops.c (hand_function_call): Update comment.
7551         * stack.c (return_command): Update comment.
7552         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7553         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7554         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7555         * x86-64-tdep.c (x86_64_init_abi): Update.
7556         * vax-tdep.c (vax_gdbarch_init): Update.
7557         * v850-tdep.c (v850_gdbarch_init): Update.
7558         * sparc-tdep.c (sparc_gdbarch_init): Update.
7559         * sh-tdep.c (sh_gdbarch_init): Update.
7560         * s390-tdep.c (s390_gdbarch_init): Update.
7561         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7562         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7563         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7564         * mips-tdep.c (mips_gdbarch_init): Update.
7565         * mcore-tdep.c (mcore_gdbarch_init): Update.
7566         * m68k-tdep.c (m68k_gdbarch_init): Update.
7567         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7568         * ia64-tdep.c (ia64_gdbarch_init): Update.
7569         * i386-tdep.c (i386_gdbarch_init): Update.
7570         * hppa-tdep.c (hppa_gdbarch_init): Update.
7571         * h8300-tdep.c (h8300_gdbarch_init): Update.
7572         * frv-tdep.c (frv_gdbarch_init): Update.
7573         * cris-tdep.c (cris_gdbarch_init): Update.
7574         * avr-tdep.c (avr_gdbarch_init): Update.
7575         * arm-tdep.c (arm_gdbarch_init): Update.
7576         * alpha-tdep.c (alpha_gdbarch_init): Update.
7577
7578 2003-03-13  Andrew Cagney  <cagney@redhat.com>
7579
7580         * frame.c (legacy_frame_p): New function.
7581         (get_prev_frame): Use legacy_frame_p.
7582         * frame.h (legacy_frame_p): Declare.
7583
7584 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7585
7586         * MAINTAINERS (write after approval): Alphabetically
7587         listing corrected.
7588
7589 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7590
7591         * MAINTAINERS (write after approval): Add myself.
7592
7593 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7594
7595         * frame.c (get_prev_frame): Rename the frame parameter to
7596         "this_frame".
7597         (get_next_frame, legacy_get_prev_frame): Ditto.
7598
7599 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7600
7601         * frame.c (get_current_frame): Check target_has_registers before
7602         checking target_has_stack.
7603         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7604         instead of deprecated_selected_frame.
7605         * findvar.c (value_of_register): Pass "frame", not
7606         deprecated_selected_frame, to value_of_builtin_reg.
7607
7608 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7609
7610         * regcache.c (regcache_cooked_write_signed): New function.
7611         (regcache_cooked_write_unsigned): New function.
7612         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7613         (regcache_cooked_read_signed): Fix regnum in range assertion.
7614         * regcache.h (regcache_cooked_write_signed): Declare.
7615         (regcache_cooked_write_unsigned): Declare.
7616
7617 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7618
7619         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7620         * gdbarch.h, gdbarch.c: Re-generate.
7621         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7622         * x86-64-tdep.h: Update.
7623         * x86-64-tdep.c (x86_64_init_abi): Update.
7624         * v850-tdep.c (v850_gdbarch_init): Update.
7625         * sparc-tdep.c (sparc_gdbarch_init): Update.
7626         * sh-tdep.c (sh_gdbarch_init): Update.
7627         * s390-tdep.c (s390_gdbarch_init): Update.
7628         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7629         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7630         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7631         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7632         * mips-tdep.c (mips_gdbarch_init): Update.
7633         * mcore-tdep.c (mcore_gdbarch_init): Update.
7634         * m68k-tdep.c (m68k_gdbarch_init): Update.
7635         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7636         * ia64-tdep.c (ia64_gdbarch_init): Update.
7637         * i386-tdep.c (i386_gdbarch_init): Update.
7638         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7639         * hppa-tdep.c (hppa_gdbarch_init): Update.
7640         * h8300-tdep.c (h8300_gdbarch_init): Update.
7641         * frv-tdep.c (frv_gdbarch_init): Update.
7642         * cris-tdep.c (cris_gdbarch_init): Update.
7643         * avr-tdep.c (avr_gdbarch_init): Update.
7644         * arm-tdep.c (arm_gdbarch_init): Update.
7645         * alpha-tdep.c (alpha_gdbarch_init): Update.
7646         * sh-tdep.c (sh_init_extra_frame_info): Update.
7647         (sh64_init_extra_frame_info): Update.
7648         * ns32knbsd-nat.c (frame_num_args): Update.
7649         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7650         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7651         (xstormy16_frame_chain_valid): Update.
7652         * vax-tdep.c (vax_saved_pc_after_call): Update.
7653         * v850-tdep.c (v850_frame_chain): Update.
7654         (v850_pop_frame): Update.
7655         (v850_init_extra_frame_info): Update.
7656         * sparc-tdep.c (setup_arbitrary_frame): Update.
7657         * ns32k-tdep.c (umax_frame_num_args): Update.
7658         * s390-tdep.c (s390_pop_frame_regular): Update.
7659         * mn10300-tdep.c (mn10300_frame_chain): Update.
7660         (mn10300_pop_frame_regular): Update.
7661         (mn10300_init_extra_frame_info): Update.
7662         * mips-tdep.c (mips_init_frame_pc_first): Update.
7663         (mips_frame_chain): Update.
7664         (mips_pop_frame): Update.
7665         * mcore-tdep.c (mcore_frame_chain): Update.
7666         (mcore_pop_frame): Update.
7667         (mcore_init_extra_frame_info): Update.
7668         * arch-utils.c (init_frame_pc_default): Update.
7669         * m68k-tdep.c (isi_frame_num_args): Update.
7670         (delta68_frame_num_args): Update.
7671         (news_frame_num_args): Update.
7672         * ia64-tdep.c (ia64_pop_frame_regular): Update.
7673         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7674         (alpha_frame_chain): Update.
7675         (alpha_pop_frame): Update.
7676         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7677         (hppa_init_extra_frame_info): Update.
7678         (hppa_frame_chain): Update.
7679         (hppa_frame_chain_valid): Update.
7680         * cris-tdep.c (cris_init_extra_frame_info): Update.
7681         * avr-tdep.c (avr_init_extra_frame_info): Update.
7682         * arm-tdep.c (arm_frame_chain_valid): Update.
7683         (arm_init_extra_frame_info): Update.
7684         (arm_pop_frame): Update.
7685         * frame.c (frame_pc_unwind): Update.
7686         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7687         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7688         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7689         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7690         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7691         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7692
7693 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7694
7695         Eliminate the need for POP_FRAME.
7696         * frame.c (do_frame_unwind_register): New function.
7697         (frame_pop): When no POP_FRAME, pop the frame using register
7698         unwind and a scratch regcache.
7699         (frame_saved_regs_pop): Delete function.
7700         (trad_frame_unwinder): Update.
7701         * d10v-tdep.c (d10v_frame_pop): Delete function.
7702         (d10v_frame_unwind): Update.
7703         * sentinel-frame.c (sentinel_frame_pop): Delete function.
7704         (sentinel_frame_unwinder): Update.
7705         * dummy-frame.c (dummy_frame_pop): Delete function.
7706         (dummy_frame_unwind): Update.
7707         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7708         (struct frame_unwind): Update.
7709
7710 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
7711
7712         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7713         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7714         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7715         Do range checks on register number obtained from debugging info.
7716         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7717         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
7718         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7719         mapping function.
7720         (do_fp_register_row): Fix typo which caused double type to be
7721         used when attempting to unpack a float.
7722
7723 2003-03-11  J. Brobecker  <brobecker@gnat.com>
7724
7725         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7726
7727 2003-03-11  Andrew Cagney  <cagney@redhat.com>
7728
7729         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7730         frame.  Problem found by Corinna Vinschen.
7731
7732 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
7733
7734         * doublest.c (floatformat_from_length): Accept also
7735         the real size of 'long double' type.
7736
7737 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
7738
7739         From Klee Dienes <kdienes@apple.com>:
7740         * breakpoint.c (bpstat_copy): Copy the command lines as well
7741         as the old value, to match what is freed in bpstat_clear.
7742
7743 2003-03-10  David Carlton  <carlton@math.stanford.edu>
7744
7745         * minsyms.c (add_minsym_to_hash_table): Replace
7746         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7747         (compare_minimal_symbols, compact_minimal_symbols)
7748         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7749         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7750         of DEPRECATED_SYMBOL_MATCHES_NAME.
7751         (lookup_minimal_symbol_solib_trampoline): Ditto.
7752
7753 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7754
7755         * regcache.h (regcache_cooked_read_ftype): Define.
7756         (regcache_save, regcache_restore): Add a cooked_read parameter.
7757         * regcache.c (regcache_save, regcache_restore): Update.
7758         (do_cooked_read): New function.
7759         (regcache_cpy): Pass do_cooked_read to regcache_save and
7760         regcache_restore.
7761
7762 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7763
7764         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7765         * gdbarch.h, gdbarch.c: Re-generate.
7766         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7767         * x86-64-tdep.h: Update.
7768         * x86-64-tdep.c (x86_64_init_abi): Update.
7769         * v850-tdep.c (v850_gdbarch_init): Update.
7770         * sparc-tdep.c (sparc_gdbarch_init): Update.
7771         * sh-tdep.c (sh_gdbarch_init): Update.
7772         * s390-tdep.c (s390_gdbarch_init): Update.
7773         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7774         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7775         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7776         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7777         * mips-tdep.c (mips_gdbarch_init): Update.
7778         * mcore-tdep.c (mcore_gdbarch_init): Update.
7779         * m68k-tdep.c (m68k_gdbarch_init): Update.
7780         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7781         * ia64-tdep.c (ia64_gdbarch_init): Update.
7782         * i386-tdep.c (i386_gdbarch_init): Update.
7783         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7784         * hppa-tdep.c (hppa_gdbarch_init): Update.
7785         * h8300-tdep.c (h8300_gdbarch_init): Update.
7786         * frv-tdep.c (frv_gdbarch_init): Update.
7787         * cris-tdep.c (cris_gdbarch_init): Update.
7788         * avr-tdep.c (avr_gdbarch_init): Update.
7789         * arm-tdep.c (arm_gdbarch_init): Update.
7790         * alpha-tdep.c (alpha_gdbarch_init): Update.
7791         * sh-tdep.c (sh_init_extra_frame_info): Update.
7792         (sh64_init_extra_frame_info): Update.
7793         * ns32knbsd-nat.c (frame_num_args): Update.
7794         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7795         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7796         (xstormy16_frame_chain_valid): Update.
7797         * vax-tdep.c (vax_saved_pc_after_call): Update.
7798         * v850-tdep.c (v850_frame_chain): Update.
7799         (v850_pop_frame): Update.
7800         (v850_init_extra_frame_info): Update.
7801         * sparc-tdep.c (setup_arbitrary_frame): Update.
7802         * ns32k-tdep.c (umax_frame_num_args): Update.
7803         * s390-tdep.c (s390_pop_frame_regular): Update.
7804         * mn10300-tdep.c (mn10300_frame_chain): Update.
7805         (mn10300_pop_frame_regular): Update.
7806         (mn10300_init_extra_frame_info): Update.
7807         * mips-tdep.c (mips_init_frame_pc_first): Update.
7808         (mips_frame_chain): Update.
7809         (mips_pop_frame): Update.
7810         * mcore-tdep.c (mcore_frame_chain): Update.
7811         (mcore_pop_frame): Update.
7812         (mcore_init_extra_frame_info): Update.
7813         * arch-utils.c (init_frame_pc_default): Update.
7814         * m68k-tdep.c (isi_frame_num_args): Update.
7815         (delta68_frame_num_args): Update.
7816         (news_frame_num_args): Update.
7817         * ia64-tdep.c (ia64_pop_frame_regular): Update.
7818         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7819         (alpha_frame_chain): Update.
7820         (alpha_pop_frame): Update.
7821         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7822         (hppa_init_extra_frame_info): Update.
7823         (hppa_frame_chain): Update.
7824         (hppa_frame_chain_valid): Update.
7825         * cris-tdep.c (cris_init_extra_frame_info): Update.
7826         * avr-tdep.c (avr_init_extra_frame_info): Update.
7827         * arm-tdep.c (arm_frame_chain_valid): Update.
7828         (arm_init_extra_frame_info): Update.
7829         (arm_pop_frame): Update.
7830         * frame.c (frame_pc_unwind): Update.
7831         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7832         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7833         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7834         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7835         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7836         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7837
7838 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7839
7840         * gdbarch.sh (gdbarch_unwind_pc): New method.
7841         * gdbarch.h, gdbarch.c: Regenerate.
7842         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
7843         but use read_pc and FRAME_SAVED_PC as fall backs.
7844         (frame_saved_regs_pc_unwind): Delete function.
7845         (trad_frame_unwinder): Update.
7846         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7847         (struct frame_unwind): Update.
7848         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7849         (dummy_frame_unwind): Update.
7850         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7851         (sentinel_frame_unwinder): Update.
7852         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7853         (d10v_frame_unwind): Update.
7854         (d10v_unwind_pc): New function.
7855         (d10v_gdbarch_init): Set unwind_pc.
7856
7857 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7858
7859         * gdbarch.h: Re-generate.
7860
7861         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7862         PC.
7863         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7864         the PC register.
7865
7866 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
7867
7868         * gdbarch.sh (save_dummy_frame_tos): Add comment.
7869
7870 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7871
7872         * cli-out.c: Update copyright.
7873         (cli_out_data): Define typedef.  Use instead of ui_out_data.
7874
7875 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7876
7877         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7878         the result.
7879
7880 2003-03-07  Andrew Cagney  <cagney@redhat.com>
7881
7882         * gdbarch.sh: Don't generate two macro definitions when an
7883         undefined macro taking no arguments.
7884         * gdbarch.h: Regenerate.
7885
7886 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
7887
7888         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7889         (x86_64_unwind_dummy_id): New functions.
7890         (x86_64_init_abi): Register these two new functions.
7891
7892 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
7893
7894         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7895         (x86_64_skip_prologue): Move prologue detection to
7896         separate function.
7897         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7898
7899 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7900
7901         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7902         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7903         * frame.c (get_prev_frame): Restructure the frame ID unwind code
7904         to use unwind_dummy_id when a dummy frame.
7905         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7906         predicate.
7907         * gdbarch.h, gdbarch.c: Regneerate.
7908
7909 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7910
7911         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7912         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7913         Do not use d10v_read_sp or d10v_read_fp when obtaining register
7914         values.
7915
7916 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7917
7918         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7919         (struct d10v_unwind_cache): Delete field "frameless".  Replace
7920         "next_addr" with "sp_offset".  Add "r11_offset".
7921         (d10v_frame_unwind_cache): Update.
7922         (prologue_find_regs): Update.  When "mv r11, sp", save the
7923         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
7924         RN was saved in r11_offset.
7925
7926 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7927
7928         * frame.c (deprecated_update_frame_pc_hack): Also update the the
7929         cached PC value in the next frame.
7930
7931 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7932
7933         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7934         "id_unwind_cache" with "id".
7935         (frame_id_unwind): Delete declaration.
7936         * frame.c (frame_id_unwind): Delete function.
7937         (get_prev_frame): Call the frame id unwind method directly.  Store
7938         the returned next frame's ID value in NEXT_FRAME.  Note that there
7939         is a problem with the wrong unwind ID being called with the wrong
7940         unwind cache.
7941
7942 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7943
7944         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7945
7946 2003-03-05  James Ingham <jingham@apple.com>
7947             Daniel Jacobowitz  <drow@mvista.com>
7948
7949         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7950         (auto_cp_abi): New variable.
7951         (current_cp_abi, num_cp_abis): Make static.
7952         (CP_ABI_MAX): Define.
7953         (cp_abis): Turn into an array.
7954         (value_virtual_fn_field): Fix formatting.
7955         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
7956         takes a pointer.
7957         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7958         (list_cp_abis, _initialize_cp_abi): New functions.
7959         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
7960         declarations for cp_abis, num_cp_abis, current_cp_abi, and
7961         switch_to_cp_abi.  Update prototype for register_cp_abi.
7962         * Makefile.in (cp-abi.o): Update dependencies.
7963         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7964         instead of switch_to_cp_abi.
7965         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
7966         register_cp_abi.
7967         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7968         register_cp_abi.
7969         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7970
7971 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7972
7973         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7974         * dwarf2loc.c: Include "regcache.h".
7975         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
7976         register_size.
7977         * Makefile.in (dwarf2loc.o): Update dependencies.
7978
7979 2003-03-04  Theodore A. Roth  <troth@openavr.org>
7980
7981         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7982         number of io registers reported by remote target is not a multiple of
7983         step.
7984
7985 2003-03-04  David Carlton  <carlton@math.stanford.edu>
7986
7987         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7988         (lookup_symbol_aux_psymtabs): Update call to
7989         lookup_partial_symbol.
7990         (lookup_transparent_type, find_main_psymtab)
7991         (make_symbol_overload_list): Ditto.
7992
7993 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
7994
7995         * MAINTAINERS (Write after approval): Update my email address.
7996
7997 2003-03-03  Andrew Cagney  <cagney@redhat.com>
7998
7999         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8000         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8001         predicate.  Replace MAX_REGISTER_RAW_SIZE.
8002         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8003         MAX_REGISTER_VIRTUAL_SIZE.
8004         * regcache.c (legacy_max_register_raw_size): New function.
8005         (legacy_max_register_virtual_size): New function.
8006         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8007         (MAX_REGISTER_RAW_SIZE): Define.
8008         (legacy_max_register_raw_size): Declare.
8009         (legacy_max_register_virtual_size): Declare.
8010         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8011         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8012         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8013         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8014         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8015         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8016         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8017         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8018         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8019         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8020         * vax-tdep.c (vax_gdbarch_init): Update.
8021         * v850-tdep.c (v850_gdbarch_init): Update.
8022         * sparc-tdep.c (sparc_gdbarch_init): Update.
8023         * sh-tdep.c (sh_gdbarch_init): Update.
8024         * s390-tdep.c (s390_gdbarch_init): Update.
8025         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8026         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8027         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8028         * mips-tdep.c (mips_gdbarch_init): Update.
8029         * mcore-tdep.c (mcore_gdbarch_init): Update.
8030         * m68k-tdep.c (m68k_gdbarch_init): Update.
8031         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8032         * ia64-tdep.c (ia64_gdbarch_init): Update.
8033         * i386-tdep.c (i386_gdbarch_init): Update.
8034         * hppa-tdep.c (hppa_gdbarch_init): Update.
8035         * h8300-tdep.c (h8300_gdbarch_init): Update.
8036         * frv-tdep.c (frv_gdbarch_init): Update.
8037         * cris-tdep.c (cris_gdbarch_init): Update.
8038         * avr-tdep.c (avr_gdbarch_init): Update.
8039         * arm-tdep.c (arm_gdbarch_init): Update.
8040         * alpha-tdep.c (alpha_gdbarch_init): Update.
8041         * d10v-tdep.c (d10v_gdbarch_init): Do not set
8042         max_register_raw_size or max_register_virtual_size.
8043
8044 2003-03-03  David Carlton  <carlton@math.stanford.edu>
8045
8046         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8047         SYMBOL_MATCHES_NAME, add comment.
8048         (SYMBOL_MATCHES_NATURAL_NAME): New.
8049         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8050         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8051         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8052         * symtab.c (lookup_partial_symbol): Use
8053         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
8054         unhelpful comment.
8055         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8056         SYMBOL_MATCHES_NAME.
8057         Fix for PR c++/33.
8058
8059 2003-03-03  David Carlton  <carlton@math.stanford.edu>
8060
8061         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8062         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8063         by regexp matching against SYMBOL_NATURAL_NAME.
8064
8065 2003-03-03  David Carlton  <carlton@math.stanford.edu>
8066
8067         * linespec.c (find_method): Extract code into collect_methods.
8068         (collect_methods): New.
8069
8070 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
8071
8072         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8073         get_frame_base.
8074
8075         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8076         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8077
8078 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8079
8080         * arch-utils.c (generic_register_byte): Fix to use the loop index
8081         and not regnum when summing the size of all registers up to regnum.
8082
8083 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8084
8085         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8086         FRAME_INIT_SAVED_REGS.
8087         * gdbarch.h, gdbarch.c: Regenerate.
8088         * stack.c (frame_info): Update.
8089         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8090         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8091         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8092         * ns32k-tdep.c (ns32k_pop_frame): Update.
8093         * mips-tdep.c (mips_pop_frame): Update.
8094         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8095         * ia64-tdep.c (ia64_frame_chain): Update.
8096         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8097         (ia64_frameless_function_invocation): Update.
8098         (ia64_init_extra_frame_info): Update.
8099         (ia64_pop_frame_regular): Update.
8100         * frame.h (struct frame_info): Update comment.
8101         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8102         * frame.c (frame_saved_regs_register_unwind): Update.
8103         (frame_saved_regs_register_unwind): Update.
8104         (deprecated_generic_get_saved_register): Update.
8105         * cris-tdep.c: Update comment.
8106         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8107         Rename macro.
8108         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8109         * x86-64-tdep.c (x86_64_init_abi): Update.
8110         * vax-tdep.c (vax_gdbarch_init): Update.
8111         * v850-tdep.c (v850_gdbarch_init): Update.
8112         * sparc-tdep.c (sparc_gdbarch_init): Update.
8113         * sh-tdep.c (sh_gdbarch_init): Update.
8114         * s390-tdep.c (s390_gdbarch_init): Update.
8115         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8116         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8117         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8118         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8119         * mips-tdep.c (mips_gdbarch_init): Update.
8120         * mcore-tdep.c (mcore_gdbarch_init): Update.
8121         * m68k-tdep.c (m68k_gdbarch_init): Update.
8122         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8123         * ia64-tdep.c (ia64_gdbarch_init): Update.
8124         * i386-tdep.c (i386_gdbarch_init): Update.
8125         * frv-tdep.c (frv_gdbarch_init): Update.
8126         * avr-tdep.c (avr_gdbarch_init): Update.
8127         * arm-tdep.c (arm_gdbarch_init): Update.
8128         * alpha-tdep.c (alpha_gdbarch_init): Update.
8129
8130 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8131
8132         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8133         option enum and switch.  When no windows, set the interpreter to
8134         INTERP_CONSOLE.
8135
8136 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8137
8138         * main.c (captured_main): Replace magic option characters with an
8139         enum.
8140
8141 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8142
8143         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8144         INIT_EXTRA_FRAME_INFO.
8145         * gdbarch.h, gdbarch.c: Regenerate.
8146         * arm-tdep.c: Update comments.
8147         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8148         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8149         * frame.h, avr-tdep.c: Ditto.
8150         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8151         (create_new_frame, legacy_get_prev_frame): Ditto.
8152         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8153         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8154         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8155         deprecated_init_extra_frame_info instead of init_extra_frame_info.
8156         * x86-64-tdep.c (x86_64_init_abi): Ditto.
8157         * v850-tdep.c (v850_gdbarch_init): Ditto.
8158         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8159         * sh-tdep.c (sh_gdbarch_init): Ditto.
8160         * s390-tdep.c (s390_gdbarch_init): Ditto.
8161         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8162         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8163         * mips-tdep.c (mips_gdbarch_init): Ditto.
8164         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8165         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8166         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8167         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8168         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8169         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8170         * frv-tdep.c (frv_gdbarch_init): Ditto.
8171         * cris-tdep.c (cris_gdbarch_init): Ditto.
8172         * avr-tdep.c (avr_gdbarch_init): Ditto.
8173         * arm-tdep.c (arm_gdbarch_init): Ditto.
8174         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8175         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8176
8177 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8178
8179         * gdbarch.sh (register_type): New function with predicate.
8180         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8181         * gdbarch.h, gdbarch.c: Re-generate.
8182         * arch-utils.c (generic_register_byte): Use generic_register_size.
8183         (generic_register_size): When available, use
8184         gdbarch_register_type.
8185         * regcache.c (init_regcache_descr): When available, initialize the
8186         register type array using gdbarch_register_type.  If the
8187         architecture supplies gdbarch_register_type, do not use the legacy
8188         regcache layout.
8189         * d10v-tdep.c (d10v_register_type): Replace
8190         d10v_register_virtual_type.
8191         (d10v_gdbarch_init): Set register_type instead of
8192         register_virtual_type.
8193
8194 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8195
8196         * Makefile.in (ax-gdb.o): Update dependencies.
8197         * ax-gdb.c: Include "regcache.h".
8198         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8199         * findvar.c (value_of_register): Ditto.
8200         * infcmd.c (default_print_registers_info): Ditto.
8201
8202 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
8203
8204         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8205         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8206
8207 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
8208
8209         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8210         of STREQ.
8211
8212 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
8213
8214         * Makefile.in (dwarf2loc.o): Update dependencies.
8215         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8216         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8217         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8218         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8219         (locexpr_tracepoint_var_ref): New function.
8220         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8221
8222 2003-02-28  Andrew Cagney  <cagney@redhat.com>
8223
8224         * regcache.c (register_size): New function.
8225         * regcache.h (register_size): Declare
8226         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8227         max_register_size instead of MAX_REGISTER_RAW_SIZE.
8228
8229 2003-02-28  David Carlton  <carlton@math.stanford.edu>
8230
8231         * linespec.c (decode_compound): Extract code into find_method.
8232         (find_method): New.
8233
8234 2003-02-28  J. Brobecker  <brobecker@gnat.com>
8235
8236         * Makefile.in: Add rules to build and link in observer.o.
8237
8238 2003-02-27  J. Brobecker  <brobecker@gnat.com>
8239
8240         * observer.c: Minor comments edits.
8241
8242 2003-02-27  J. Brobecker  <brobecker@gnat.com>
8243
8244         * observer.h, observer.c: New file.
8245
8246 2003-02-27  Andrew Cagney  <cagney@redhat.com>
8247
8248         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8249
8250 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
8251
8252         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8253         (M6812_OP_STS_EXT): Likewise.
8254         (m6811_prologue): Use the above to recognize prologue.
8255         (m6812_prologue): Likewise.
8256
8257 2003-02-27  David Carlton  <carlton@math.stanford.edu>
8258
8259         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8260         SYMBOL_PRINT_NAME.
8261         (compare_psymbols): Ditto.
8262         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8263
8264 2003-02-27  Michael Snyder  <msnyder@redhat.com>
8265
8266         * f-lang.c (build_fortran_types): New function.
8267         (_initialize_f_language): Gdbarch-register built-in fortran types.
8268         * doublest.c (extract_floating): Fix warning text.
8269
8270 2003-02-27  Andrew Cagney  <cagney@redhat.com>
8271
8272         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8273         predicate.  Replaces PUSH_DUMMY_FRAME.
8274         * gdbarch.h, gdbarch.c: Regnerate.
8275         * valops.c (hand_function_call): Update.  Call
8276         generic_push_dummy_frame directly.
8277         * vax-tdep.c (vax_gdbarch_init): Update.
8278         * sparc-tdep.c (sparc_gdbarch_init): Update.
8279         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8280         * m68k-tdep.c (m68k_gdbarch_init): Update.
8281         * hppa-tdep.c (hppa_gdbarch_init): Update.
8282         * alpha-tdep.c (alpha_gdbarch_init): Update.
8283         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8284         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8285         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8286         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8287         push_dummy_frame to generic_push_dummy_frame.
8288         * v850-tdep.c (v850_gdbarch_init): Ditto.
8289         * sh-tdep.c (sh_gdbarch_init): Ditto.
8290         * s390-tdep.c (s390_gdbarch_init): Ditto.
8291         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8292         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8293         * mips-tdep.c (mips_gdbarch_init): Ditto.
8294         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8295         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8296         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8297         * i386-tdep.c (i386_gdbarch_init): Ditto.
8298         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8299         * frv-tdep.c (frv_gdbarch_init): Ditto.
8300         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8301         * cris-tdep.c (cris_gdbarch_init): Ditto.
8302         * avr-tdep.c (avr_gdbarch_init): Ditto.
8303         * arm-tdep.c (arm_gdbarch_init): Ditto.
8304
8305 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
8306
8307         * mips-tdep.c (show_mips_abi): New function.
8308         (_initialize_mips_tdep): Use show_mips_abi() to implement the
8309         command ``show mips abi''.
8310
8311 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
8312
8313         From Elena Zannoni  <ezannoni@redhat.com>
8314         * dbxread.c (process_one_symbol): Only record line 0 if one or
8315         more sline entries have been seen for the function.
8316
8317 2003-02-26  Michael Chastain  <mec@shout.net>
8318
8319         * configure: Regenerate with autoconf 000227.
8320
8321 2003-02-26  Michael Chastain  <mec@shout.net>
8322
8323         Close PR build/660.
8324         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8325         for old libc5/glibc.
8326         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8327
8328 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
8329
8330         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8331         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8332
8333 2003-02-26  Michael Chastain  <mec@shout.net>
8334
8335         * configure.in: New variable HAVE_UINTPTR_T.
8336         * configure, config.in: Regenerated.
8337
8338 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
8339
8340         Fix PR build/1097.
8341         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8342
8343 2003-02-25  Andrew Cagney  <cagney@redhat.com>
8344
8345         * frame.c (get_prev_frame): Add comment on check for
8346         inside_entry_func. Only check for inside_entry_file when not a
8347         dummy and not a sentinel.  Check that the new frame is not inner
8348         to the old frame.
8349
8350 2003-02-25  Andrew Cagney  <cagney@redhat.com>
8351
8352         * frame.c (frame_debug): New variable.
8353         (_initialize_frame): Add "set/show debug frame" command.
8354         (get_prev_frame): When frame_debug, print reason why unwind
8355         failed.
8356
8357 2003-02-25  Michael Chastain  <mec@shout.net>
8358
8359         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8360         to avoid uintptr_t definition problems.
8361
8362 2003-02-25  David Carlton  <carlton@math.stanford.edu>
8363
8364         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8365         (SYMBOL_LINKAGE_NAME): Ditto.
8366         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8367         SYMBOL_LINKAGE_NAME.
8368         (struct general_symbol_info): Expand comment.
8369         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8370         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8371         (SYMBOL_MATCHES_REGEXP): Ditto.
8372         * symtab.c (symbol_natural_name): New function.
8373         * objfiles.h: Replace all uses of SYMBOL_NAME by
8374         DEPRECATED_SYMBOL_NAME.
8375         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8376         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8377         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8378         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8379         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8380         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8381         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8382         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8383         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8384         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8385         * ada-exp.y: Ditto.
8386         * ada-exp.y: Update copyright.
8387         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8388         * cp-valprint.c: Ditto.
8389
8390 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
8391
8392         * infptrace.c (detach): Do not flag error if ptrace detach fails
8393         and errno is set to ESRCH.
8394
8395 2003-02-24  Andrew Cagney  <cagney@redhat.com>
8396
8397         * infptrace.c (udot_info): Change type of udot_off to long.  Use
8398         paddr when printing udot_off's value.
8399
8400 2003-02-24  David Carlton  <carlton@math.stanford.edu>
8401
8402         * symtab.c (make_symbol_overload_list): Only read in partial
8403         symtabs containing a matching partial symbol.
8404
8405 2003-02-24  David Carlton  <carlton@math.stanford.edu>
8406
8407         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8408         do the comparison, not strcmp.
8409         * symfile.c (compare_psymbols): Ditto.
8410         * defs.h: Declare strcmp_iw_ordered.
8411         * utils.c (strcmp_iw_ordered): New function.
8412
8413 2003-02-24  Jim Blandy  <jimb@redhat.com>
8414
8415         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8416         support, shared libs): Remove my name from here, to better reflect
8417         reality.
8418
8419 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
8420
8421         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8422         (target_ops): Add to_have_continuable_watchpoint.
8423         * target.c (update_current_target): Add INHERIT line for
8424         to_have_continuable_watchpoint.
8425         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8426         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8427         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8428         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8429
8430 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
8431
8432         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8433         maintainership.
8434
8435 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
8436
8437         * solib.c (solib_open): Call target defined search function after
8438         failing with solib-search-path.
8439         * solist.h (target_so_ops): Add find_and_open_solib function hook and
8440         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8441
8442 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
8443
8444         * MAINTAINERS: Add myself to Write After section.
8445
8446 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
8447
8448         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8449
8450 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
8451
8452         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8453         (m68hc11_add_reggroups): New function.
8454         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8455         (m68hc11_gdbarch_init): Install the reggroups.
8456         (_initialize_m68hc11_tdep): Initialize them.
8457
8458 2003-02-21  James E Wilson  <wilson@tuliptree.org>
8459
8460         * MAINTAINERS: Update my email address.
8461
8462 2003-02-21  David Carlton  <carlton@math.stanford.edu>
8463
8464         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8465
8466 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
8467
8468         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8469         * symtab.h: Add opaque declarations of struct axs_value and
8470         struct agent_expr.
8471         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8472         (struct location_funcs): New type.
8473         (struct symbol): Add "loc" to aux_value.
8474         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8475         * dwarf2read.c: Include "dwarf2expr.h".
8476         (dwarf2_symbol_mark_computed): New function.
8477         (read_func_scope): Use it.
8478         (var_decode_location): New function.
8479         (new_symbol): Use it.
8480         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8481
8482         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8483         (dwarf2expr_h, dwarf2loc_h): New variables.
8484         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8485         (dwarf2expr.o, dwarf2loc.o): New rules.
8486         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8487         * buildsym.c (finish_block): Handle LOC_COMPUTED and
8488         LOC_COMPUTED_ARG.
8489         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8490         * m2-exp.y (yylex): Likewise.
8491         * printcmd.c (address_info, print_frame_args): Likewise.
8492         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8493         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8494         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8495         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8496         * symtab.c (lookup_block_symbol): Likewise.
8497
8498 2003-02-20  Adam Fedor  <fedor@gnu.org>
8499
8500         * symtab.h: Remove objc_specific struct
8501         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8502         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8503         Have language_objc use cplus_specific struct.
8504
8505 2003-02-20  Tom Tromey  <tromey@redhat.com>
8506
8507         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8508         TYPE_NAME, when printing a String value.  PR java/1075.
8509
8510 2003-02-20  Adam Fedor  <fedor@gnu.org>
8511
8512         * objc-lang.h (find_methods): Remove declaration.
8513         * objc-lang.c (find_methods): Make static.
8514
8515 2003-02-20  Christopher Faylor  <cgf@redhat.com>
8516
8517         * win32-nat.c (get_image_name): Check return value from
8518         ReadProcessMemory.
8519         (child_xfer_memory): Ditto.
8520
8521 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
8522
8523         * configure.in (TARGET_SYSTEM_ROOT): Set default to
8524         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
8525         '${exec_prefix}' (in addition to the expansion thereof) as
8526         relocatable.
8527         * configure: Rebuilt.
8528
8529 2003-02-20  David Carlton  <carlton@math.stanford.edu>
8530
8531         * symtab.c (search_symbols): Revert the search_symbols part of my
8532         2002-12-23 patch.  Add comment.
8533
8534 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8535
8536         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8537         * dbxread.c (elfstab_build_psymtabs): Don't call
8538         install_minimal_symbols.
8539         (stabsect_build_psymtabs): Likewise.
8540         * elfread.c (elf_symfile_read): Call install_minimal_symbols
8541         earlier.
8542         * somread.c (som_symfile_read): Call install_minimal_symbols
8543         and do_cleanups earlier.
8544         * nlmread.c (nlm_symfile_read): Likewise.
8545         * mdebugread.c (elfmdebug_build_psymtabs): Call
8546         install_minimal_symbols and make appropriate cleanups.
8547
8548 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
8549
8550         * solib.c (reload_shared_libraries): New function.
8551         (_initialize_solib): Add callbacks for ``set solib-search-path''
8552         and ``set solib-absolute-prefix''.
8553
8554 2003-02-20  David Carlton  <carlton@math.stanford.edu>
8555
8556         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8557         expand comment.
8558         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8559         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8560         * ada-typeprint.c (ada_typedef_print): Ditto.
8561         * ax-gdb.c (gen_var_ref): Ditto.
8562         * breakpoint.c (print_one_breakpoint): Ditto.
8563         * buildsym.c (finish_block): Ditto.
8564         * c-valprint.c (c_val_print): Ditto.
8565         * expprint.c (print_subexp): Ditto.
8566         * findvar.c (locate_var_value): Ditto.
8567         * infcmd.c (jump_command): Ditto.
8568         * linespec.c (decode_line_2, decode_compound): Ditto.
8569         * maint.c (maintenance_translate_address): Ditto.
8570         * objc-lang.c (compare_selectors, compare_classes): Ditto.
8571         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8572         Ditto.
8573         * p-valprint.c (pascal_val_print): Ditto.
8574         * stabsread.c (define_symbol): Ditto.
8575         * stack.c (print_frame, frame_info, print_block_frame_locals)
8576         (print_frame_arg_vars, return_command): Ditto.
8577         * symfile.c (compare_symbols, compare_psymbols): Ditto.
8578         * symmisc.c (print_symbol): Ditto.
8579         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8580         (compare_search_syms, print_symbol_info, print_msymbol_info)
8581         (rbreak_command): Ditto.
8582         * tracepoint.c (tracepoints_info): Ditto.
8583         * typeprint.c (typedef_print): Ditto.
8584         * valops.c (value_of_variable, hand_function_call): Ditto.
8585         * cli/cli-cmds.c (edit_command, list_command): Ditto.
8586         * ada-typeprint.c: Update Copyright.
8587         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8588         * tracepoint.c, cli/cli-cmds.c: Ditto.
8589
8590 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
8591
8592         * frame.c (generic_unwind_get_saved_register): Make non-static.
8593         * frame.h (generic_unwind_get_saved_register): Declare.
8594         * mips-tdep.c (read_next_frame_reg): Fetch register from
8595         current regcache when frame is NULL.
8596         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8597         that must be NULL.
8598         (mips_get_saved_register): Call generic_unwind_get_saved_register()
8599         instead of frame_register_unwind().
8600
8601 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
8602
8603         * remote-sim.c (gdbsim_insert_breakpoint)
8604         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8605         code.
8606
8607 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
8608
8609         * remote.c (_initialize_remote): Add commands "set/show remote
8610         hardware-watchpoint-limit" and "set/show remote
8611         hardware-breakpoint-limit".
8612         (remote_hw_watchpoint_limit): Initialize to -1.
8613         (remote_hw_breakpoint_limit): Ditto.
8614         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8615
8616 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
8617
8618         * coff-pe-read.c: New file - support reading of minimal symbols from a
8619         portable executable using the export table.
8620         * coff-pe-read.h: New file.
8621         * coffread.c: Include coff-pe-read.h.
8622         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8623         debugging symbols found.
8624         * Makefile.in (SFILES): Add coff-pe-read.o.
8625         (coff_pe_read_h): Define.
8626         (COMMON_OBS): Add coff-pe-read.o.
8627         (coffread.o): Add coff_pe_read_h dependency.
8628         (coff-pe-read.o): New target.
8629
8630 2003-02-19  David Carlton  <carlton@math.stanford.edu>
8631
8632         * Makefile.in (SFILES): Add block.c.
8633         (block_h): New.
8634         (COMMON_OBS): Add block.o.
8635         (block.o): New.
8636         (x86-64-tdep.o): Add $(block_h).
8637         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8638         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8639         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8640         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8641         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8642         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8643         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8644         * value.h: Add opaque declaration for struct block.
8645         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8646         * ada-lang.h: Ditto.
8647         * x86-64-tdep.c: #include "block.h"
8648         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8649         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8650         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8651         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8652         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8653         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8654         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8655         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8656         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8657         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8658         * symtab.c (block_function): Ditto.
8659         (contained_in): Ditto.
8660         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8661         block.h.  Add opaque declaration for struct block.
8662         * symtab.h: Move block_function and contained_in declarations to
8663         block.h.  Add opaque declarations for struct block, struct
8664         blockvector.
8665         (struct block): Move to block.h.
8666         (struct blockvector): Ditto.
8667         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8668         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8669         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8670         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8671         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8672         Ditto.
8673         * block.c: New file.
8674         * block.h: New file.
8675
8676 2003-02-19  Theodore A. Roth  <troth@openavr.org>
8677
8678         * avr-tdep.c (avr_extract_return_value): Remove function.
8679         (avr_store_return_value): Remove function.
8680         (avr_extract_struct_value_address): Remove function.
8681         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8682
8683 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
8684
8685         * rs6000-tdep.c: Include "gdb_assert.h".
8686         (registers_e500): Add "acc" and "spefscr".
8687         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8688         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8689         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
8690         really is "r0".
8691         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8692
8693 2003-02-18  Keith Seitz  <keiths@redhat.com>
8694
8695         * Makefile.in: Add gdbtk-interps.c.
8696
8697 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
8698
8699         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8700         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8701
8702 2003-02-18  Andrew Cagney  <cagney@redhat.com>
8703
8704         * symtab.h (struct objfile): Add opaque declaration.
8705
8706 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
8707
8708         From Jim Ingham   <jingham@apple.com>:
8709         * dbxread.c (process_one_symbol): Use last_function_start rather
8710         than function_start_offset to find the real beginning of the
8711         current function.  The latter is just the text section offset on
8712         some systems, the former is always the real function start.
8713
8714 2003-02-17  Andrew Cagney  <cagney@redhat.com>
8715
8716         * configure.in: Revert ${target} != ${host}.
8717
8718 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
8719
8720         * configure.in (Makefile): Use the test ${target} != ${host},
8721         instead of the absence of the "nm.h" file, to determine of the
8722         configuration non-native.
8723         * configure: Regenerate.
8724
8725 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
8726
8727         From Brian Ford  <ford@vss.fsi.com>
8728
8729         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8730         conditionalize tui_active test.
8731         (lookup_cmd_1): Ditto.
8732
8733 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
8734
8735         * configure.in: Add check for _etext.
8736         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8737         available.
8738         * config.in, configure: regenerated.
8739
8740 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
8741
8742         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8743
8744 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
8745
8746         * main.c (tui_version): Delete variable.
8747         (captured_main): When --tui, set interpreter_p to "tui" instead of
8748         enabling tui_version.
8749         * printcmd.c (display_command) [TUI]: Test tui_active instead of
8750         tui_version.
8751         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8752         * cli/cli-cmds.c (disassemble_command): Ditto.
8753         * defs.h (tui_version): Delete declaration.
8754         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8755         (tui-interp.o): Add rules.
8756         (SUBDIR_TUI_OBS): Add "tui-interp.o".
8757
8758 2003-02-14  Christopher Faylor  <cgf@redhat.com>
8759
8760         * win32-nat.c (register_loaded_dll): Correctly set address range for
8761         just-loaded dll.
8762
8763 2003-02-12  Jason Molenda  (jmolenda@apple.com)
8764
8765         * symmisc.c (print_objfile_statistics): Include information about
8766         the number of psymtabs and symtabs in each object file.
8767
8768 2003-02-13  Keith R Seitz  <keiths@redhat.com>
8769
8770         * main.h (struct captured_main_args): Add interpreter_p.
8771         * main.c (captured_main): Initialize interpreter_p from context.
8772         * gdb.c (main): Set interpreter_p argument.
8773         * Makefile.in (gdb.o): Add dependency for interps.h.
8774
8775 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
8776
8777         * event-top.c (cli_command_loop): Delete declaration.
8778         (_initialize_event_loop): Delete function setting event_loop_hook.
8779         * event-top.h (cli_command_loop): Declare.  Update copyright.
8780         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
8781         * interps.c (current_interp_command_loop): When event_loop_p, call
8782         cli_command_loop.
8783
8784 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
8785
8786         * interps.h (interp_command_loop_ftype): Change return type to
8787         void.
8788
8789 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
8790
8791         * x86-64-tdep.c (x86_64_extract_return_value)
8792         (x86_64_store_return_value): Use regcache instead of regbuf.
8793         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8794         * x86-64-linux-nat.c (fill_gregset): Use regcache.
8795
8796 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
8797
8798         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8799         * aclocal.m4: Regenerate.
8800         * configure: Regenerate.
8801
8802         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8803         TCL_LD_SEARCH_FLAGS.
8804
8805 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
8806
8807         * dwarf2cfi.c: Reindented.
8808
8809 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
8810
8811         * interps.c (clear_interpreter_hooks): Convert function definition
8812         to ISO C.
8813
8814 2003-02-07  David Carlton  <carlton@math.stanford.edu>
8815
8816         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8817
8818 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
8819
8820         * gdbtypes.h (struct main_type): Move ``length'' field from here...
8821         (struct type): ...to here.
8822         (TYPE_LENGTH): Adjust to reflect different location of ``length''
8823         field.
8824         * gdbtypes.c (make_qualified_type): Set length on newly created type.
8825         (replace_type): Set length on all type variants for a given type.
8826
8827 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
8828
8829         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8830         <sys/stat.h>.
8831         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8832
8833 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
8834
8835         * Makefile.in (symm-nat.o): Update dependencies.
8836         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8837         (lynx-nat.o, ia64-linux-nat.): Ditto.
8838         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8839         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8840         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8841
8842         * Makefile.in (inflow_h): Define.
8843         (procfs.o, inflow.o, procfs.o): Update dependencies.
8844         * inftarg.c (child_stop): Delete extern declaration of
8845         inferior_process_group.  Include "inflow.h".
8846         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
8847         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8848         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
8849         (our_process_group, inferior_process_group): Extern declarations.
8850
8851         * procfs.c: Include "gdb_assert.h".
8852
8853         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8854         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8855         * jv-typeprint.c (java_type_print_base): Ditto.
8856         * typeprint.c (typedef_print): Eliminate STREQ.
8857         * cli/cli-script.c (define_command, define_command): Ditto.
8858         * main.c (captured_main): Ditto.
8859         * values.c (lookup_internalvar): Ditto.
8860         * utils.c (safe_strerror, parse_escape): Eliminate assignment
8861         within `if' conditional.
8862         * linespec.c (decode_line_2): Ditto.
8863         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8864         (bfd_openw_with_cleanup): Ditto.
8865
8866 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
8867
8868         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8869         legacy_extract_return_value and store_return_value to
8870         legacy_return_value.
8871
8872 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
8873
8874         * win32-nat.c (get_relocated_section_addrs): New function.  Find
8875         section load addresses for symbol handling in relocated DLLs.
8876         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8877
8878 2003-02-05  Fred Fish  <fnf@intrinsity.com>
8879
8880         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8881         '=' and '!='.
8882         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8883         with '&' and '=='.
8884         (angel_RDI_info): Ditto.
8885         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8886         with '&' and '!='.
8887         (threads_continue_all_with_signals): Ditto.
8888
8889 2003-02-05  Jim Ingham <jingham@apple.com>
8890             Keith Seitz  <keiths@redhat.com>
8891             Elena Zannoni  <ezannoni@redhat.com>
8892             Andrew Cagney  <ac131313@redhat.com>
8893
8894         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8895         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8896         (SUBDIR_MI_OBS): Add "mi-interp.o".
8897         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8898         (SFILES): Add "interps.c".
8899         (COMMON_OBS): Add "interps.o".
8900         (interps_h, mi_main_h): Define.
8901         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8902         (mi-main.o, main.o, event-top.o): Update dependencies.
8903         * cli/cli-interp.c: New file.
8904         * interps.h, interps.c: New files.
8905         * top.c: (gdb_init): Don't install the default interpreter, handed
8906         by captured_main.
8907         * main.c: Include "interps.h".
8908         (interpreter_p): Note that it should malloc'ed.
8909         (captured_command_loop): Call current_interp_command_loop.
8910         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
8911         xfree and xstrdup when updating interpreter_p.  Install the
8912         default interpreter.  Add hack to stop mi1's copyright notice
8913         being encoded.
8914         * event-top.h (gdb_setup_readline): Declare.
8915         (gdb_disable_readline): Declare.
8916         * event-top.c: Include "interps.h".
8917         (display_gdb_prompt): Call current_interp_display_prompt_p.
8918         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8919         gdb_stdlog, and gdb_stdtarg.
8920         (_initialize_event_loop): Don't call gdb_setup_readline.
8921         * cli-out.c (cli_out_set_stream): New function.
8922         * cli-out.h (cli_out_set_stream): Declare.
8923
8924 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
8925
8926         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8927         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
8928         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8929         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8930         config/i386/i386v42mp.mt: Removed.
8931
8932 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
8933
8934         * configure.tgt (*-*-solaris*): Set gdb_osabi to
8935         GDB_OSABI_SOLARIS.
8936
8937 2003-02-05  Michael Chastain  <mec@shout.net>
8938
8939         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8940         2.12.1 and earlier versions.
8941
8942 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
8943
8944         Remove orphaned hosts, targets and files.
8945         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8946         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8947         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8948         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8949         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8950         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8951         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8952         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8953         * config/sparc/tm-sp64sim.h: Delete.
8954         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8955         hosts.
8956         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8957         mips*-dec-mach3* targets.
8958
8959 2003-02-04  Michael Chastain  <mec@shout.net>
8960
8961         * NEWS: Fix typo: sepcifying -> specifying.
8962
8963 2003-02-04  Michael Chastain  <mec@shout.net>
8964
8965         * dwarfread.c: Add documentation on the state of dwarf-1,
8966         looking towards obsoletion.
8967
8968 2003-02-03  Michael Chastain  <mec@shout.net>
8969
8970         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8971         gdb/testsuite/gdb.c++/pr-1023.exp.
8972
8973 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8974
8975         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8976         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8977
8978         * utils.c (init_page_info): Delete reference to MPW in comments.
8979         * main.c (captured_main): Delete #ifdef MPW.
8980
8981 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8982
8983         * NEWS: Note that the m32r-*-elf* is obsolete.
8984         * monitor.c (monitor_expect): Obsolete reference to m32r.
8985         * configure.tgt: Mark m32r-*-elf* as obsolete.
8986         * MAINTAINERS: Mark m32k as obsolete.
8987         * m32r-rom.c: Obsolete file.
8988         * config/m32r/m32r.mt: Obsolete file.
8989         * config/m32r/tm-m32r.h: Obsolete file.
8990         * m32r-stub.c: Obsolete file.
8991         * m32r-tdep.c: Obsolete file.
8992
8993 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8994
8995         * NEWS: Mention that the z8k-zilog-none is obsolete.
8996         * MAINTAINERS: Mark z8k as obsolete.
8997         * configure.tgt: Obsolete the z8k-*-coff* target.
8998         * config/z8k/z8k.mt: Obsolete file.
8999         * config/z8k/tm-z8k.h: Obsolete file.
9000         * z8k-tdep.c: Obsolete file.
9001
9002 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
9003
9004         * NEWS: Mention that the mn10200-elf is obsolete.
9005         * configure.tgt: Obsolete mn10200-*-* target.
9006         * breakpoint.c (update_breakpoints_after_exec): Update comment to
9007         mention that the mn10200 is obsolete.
9008         * breakpoint.h: Ditto.
9009         * MAINTAINERS: Mark the mn10200-elf as obsolete.
9010         * config/mn10200/mn10200.mt: Obsolete file.
9011         * config/mn10200/tm-mn10200.h: Obsolete file.
9012         * mn10200-tdep.c: Obsolete file.
9013
9014 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
9015
9016         * MAINTAINERS: Mark h8500 as obsolete.
9017         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9018         * findvar.c (value_from_register): Ditto.
9019         * h8500-tdep.c: Mark file as obsolete.
9020         * config/h8500/h8500.mt: Ditto.
9021         * config/h8500/tm-h8500.h: Ditto.
9022         * NEWS: Mention that h8500 is obsolete.
9023
9024 2003-02-04  David Carlton  <carlton@math.stanford.edu>
9025
9026         * objfiles.c (allocate_objfile): Always set name.  Add comment at
9027         start of function.
9028         * jv-lang.c (get_dynamics_objfile): Add comment.
9029
9030 2003-02-04  David Carlton  <carlton@math.stanford.edu>
9031
9032         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9033         * printcmd.c (build_address_symbolic): Replace uses of
9034         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9035         SYMBOL_NAME, and asm_demangle.
9036         Update copyright.
9037
9038 2003-02-04  David Carlton  <carlton@math.stanford.edu>
9039
9040         * linespec.c (decode_compound): Extract code into
9041         lookup_prefix_sym.
9042         (lookup_prefix_sym): New function.
9043
9044 2003-02-04  David Carlton  <carlton@math.stanford.edu>
9045
9046         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9047         FLOAT_COERCION_BADNESS.
9048         * gdbtypes.c (rank_one_type): Replace all uses of
9049         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9050
9051 2003-02-04  Jim Blandy  <jimb@redhat.com>
9052
9053         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9054         section, let dwarf_macinfo_section point to it, not
9055         dwarf_loc_section.
9056
9057 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
9058
9059         Pointed out by Anton Blanchard <anton@samba.org>.
9060         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9061         (ppc_linux_at_sigtramp_return_path): Use it.
9062
9063 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
9064
9065         * defs.h (streq): Add prototype.
9066         * utils.c (streq): New function.
9067
9068         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9069         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9070         * mdebugread.c (new_symbol): Likewise.
9071         * stabsread.c (define_symbol): Likewise.
9072         * coffread.c (process_coff_symbol): Likewise.
9073         * dwarfread.c (new_symbol): Likewise.
9074
9075         * minsyms.c (prim_record_minimal_symbol_and_info): Use
9076         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
9077         here.
9078         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9079         SYMBOL_INIT_DEMANGLED_NAME.
9080         * objfiles.c: Include "hashtab.h".
9081         (allocate_objfile): Call htab_set_functions_ex for the
9082         demangled_names_hash.
9083         (free_objfile): Call htab_delete for the demangled_names_hash.
9084         * objfiles.h (struct htab): Add declaration.
9085         (struct objfile): Add demangled_names_hash.
9086         * symfile.c: Include "hashtab.h".
9087         (reread_symbols): Call htab_delete for the demangled_names_hash.
9088         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9089         SYMBOL_NAME in the bcache.
9090         * symtab.c: Include "hashtab.h".  Update comments.
9091         (create_demangled_names_hash, symbol_set_names): New functions.
9092         (symbol_find_demangled_name): New function, broken out from
9093         symbol_init_demangled_names.
9094         (symbol_init_demangled_names): Use it.
9095         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9096         (SYMBOL_SET_NAMES): New macro.
9097         (symbol_set_names): Add prototype.
9098
9099 2003-02-03  Jim Blandy  <jimb@redhat.com>
9100
9101         Use a single, consistent representation for an empty minimal
9102         symbol table in an objfile.
9103         * objfiles.c (terminate_minimal_symbol_table): New function.
9104         (allocate_objfile): Call it.
9105         * objfiles.h (terminate_minimal_symbol_table): New declaration.
9106         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9107         non-NULL.
9108         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9109         objfile has minimal symbols, compare minimal_symbol_count to zero,
9110         instead of comparing msymbols with NULL.
9111         * objfiles.c (have_minimal_symbols): Same.
9112         * solib-sunos.c (solib_add_common_symbols): Call
9113         terminate_minimal_symbol_table.
9114         * symfile.c (reread_symbols): Same.
9115
9116 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
9117
9118         * s390-tdep.c (s390_address_class_type_flags)
9119         (s390_address_class_type_flags_to_name)
9120         (s390_address_class_name_to_type_flags): New functions.
9121         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9122         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9123
9124 2003-02-03  Michael Snyder  <msnyder@redhat.com>
9125
9126         * arm-tdep.c: Fix spell-o in comment.
9127
9128 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
9129
9130         * dwarf2cfi.c (pointer_encoding): Added new parameter.
9131         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9132         error messages to contain BFD filename.
9133
9134 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
9135
9136         Fix PR gdb/742 gdb/743 gdb/877
9137         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9138         (do_mixed_source_and_assembly): Use
9139         make_cleanup_ui_out_tuple_begin_end and
9140         make_cleanup_ui_out_tuple_begin_end.
9141         (do_mixed_source_and_assembly): Ditto.
9142         * thread.c (do_captured_list_thread_ids): Ditto.
9143         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9144         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9145         ui_out_tuple_end): Delete prototypes.
9146         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9147         ui_out_list_end, ui_out_tuple_end): Delete.
9148
9149         From Kevin Buettner  <kevinb@redhat.com>:
9150         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9151         * ui-out.c (make_cleanup_ui_out_table_begin_end)
9152         (do_cleanup_table_end):  New functions.
9153         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9154         Use cleanups to invoke_ui_out_tuple_end().
9155         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9156         * cli/cli-setshow.c (cmd_show_list): Use
9157         make_cleanup_ui_out_tuple_begin_end.
9158
9159 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
9160
9161         * frame.c (frame_unwind_register): New function.
9162         (frame_unwind_unsigned_register): Use.
9163         (frame_unwind_signed_register): Use.
9164         (frame_read_register): New function.
9165         * frame.h (frame_unwind_register): Declare.
9166         (frame_read_register): Declare.
9167
9168         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9169         and frame_unwind_register instead of read_memory, write_register
9170         and deprecated_write_register_bytes.
9171
9172 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
9173
9174         * frame.h: Note that namelen can be negative.
9175         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9176         NAME's length.
9177
9178         * NEWS: Mention that the d10v's `regs' command is deprecated.
9179         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9180         (d10v_print_registers_info): New function.
9181         (show_regs): Call d10v_print_registers_info.
9182         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9183
9184 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
9185
9186         * stack.c (print_frame_info): Restore call to annotate_frame_begin
9187         lost in the previous patch.
9188
9189 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9190
9191         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9192         * stack.c (print_frame_info_base): Output complete FRAME tuple
9193         for synthesized frames.
9194
9195 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
9196
9197         * mips-nat.c (zerobuf): Delete.
9198         (fetch_inferior_registers): Alloc local zerobuf.
9199         (fetch_core_registers): Alloc local zerobuf.
9200         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9201         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9202         * thread-db.c (thread_db_store_registers): Ditto.
9203         * sh-tdep.c (sh_do_register): Ditto.
9204         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9205         * remote-sim.c (gdbsim_store_register): Ditto.
9206         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9207         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9208         * monitor.c (monitor_supply_register): Ditto.
9209         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9210         * mips-nat.c (fetch_inferior_registers): Ditto.
9211         * m68klinux-nat.c (fetch_register): Ditto.
9212         * lynx-nat.c (fetch_inferior_registers): Ditto.
9213         (fetch_inferior_registers): Ditto.
9214         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9215         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9216         (hpux_thread_store_registers): Ditto.
9217         * hppah-nat.c (fetch_register): Ditto.
9218         * hppab-nat.c (fetch_register): Ditto.
9219         * hppa-tdep.c (pa_register_look_aside): Ditto.
9220         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9221         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9222
9223 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9224
9225         * gdbarch.sh: Explictly specify all method levels.  When a
9226         variable with an empty level, provide a non-multi-arch default.
9227         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9228         * gdbarch.h: Re-generate.
9229         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
9230         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9231
9232 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9233
9234         * defs.h (host_pointer_to_address): Delete declaration.
9235         (address_to_host_pointer): Delete declaration.
9236         * utils.c (host_pointer_to_address): Delete function.
9237         (address_to_host_pointer): Delete function.
9238         * procfs.c (procfs_address_to_host_pointer): New function.
9239         * procfs.c (proc_set_watchpoint): Use.
9240         (procfs_can_use_hw_breakpoint): Update comments.
9241         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9242         (som_solib_add): Use.
9243         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9244         * hppa-tdep.c (unwind_command): Use.
9245
9246 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9247
9248         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9249         strlen d_name.
9250
9251         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9252         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9253         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9254         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9255         (define_symbol): Update.
9256         * symfile.c (generic_load): Remove references to nindy.
9257         * symtab.c: Remove references to nindy.
9258
9259 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9260
9261         * infcmd.c (print_float_info): Delete code conditional on
9262         FLOAT_INFO.
9263         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
9264         * config/m68k/nm-apollo68b.h: Ditto.
9265         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
9266         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9267         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9268
9269 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
9270
9271         * config/i386/tm-i386os9k.h: Removed.
9272
9273         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9274         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9275         they're identical to i[3456]86-*-sysv* now.
9276         * config/i386/i386v32.mh: Removed.
9277         * config/i386/xm-i386v32.h: Removed.
9278         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9279
9280         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9281
9282         * config/i386/i386dgux.mh: Removed.
9283         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9284
9285         * configure.in: Fix typo.
9286         * configure: Regenerated.
9287
9288 2003-01-31  David Carlton  <carlton@math.stanford.edu>
9289
9290         * dwarf2read.c (dwarf2_locate_sections): Set
9291         dwarf_ranges_section.
9292
9293 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
9294
9295         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9296         * utils.c: Update comments documenting legitimate uses of PTR.
9297
9298         * utils.c: Re-indent.
9299
9300         * config/djgpp/fnchange.lst: Delete nindy files.
9301         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9302         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9303         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9304         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9305         * nindy-share/README, nindy-share/Onindy.c: Delete files.
9306         * nindy-tdep.c, nindy-share/Makefile: Delete files.
9307         * Makefile.in (init.c): Remove nindy references.
9308         (saber_gdb): Delete rule.
9309         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9310         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9311         and a68v-nat.c.
9312         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9313         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9314         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9315         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9316         nindy-share/stop.h.
9317         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9318         * saber.suppress: Delete file.
9319
9320 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
9321
9322         * dbxread.c (stabs_data): New static variable.
9323         (fill_symbuf): Support an in-memory buffer for stabs data.
9324         (stabs_seek): New function.
9325         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9326         (read_ofile_symtab): Use stabs_seek.
9327         (elfstab_build_psymtabs): Take an asection* instead of
9328         an offset and size.  Relocate the stabs data if necessary.
9329         Save the section* for dbx_psymtab_to_symtab.
9330         * dwarf2read.c: Add section variables for each debug section.
9331         (dwarf2_locate_sections): Fill them in.
9332         (dwarf2_read_section): Take an asection* argument.
9333         Relocate the section contents if necessary.
9334         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9335         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9336         it to dwarf2_read_section.
9337         (dwarf2_build_frame_info): Update callers.
9338         * elfread.c (elf_symfile_read): Update call to
9339         elfstab_build_psymtabs.
9340         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9341         (DBX_STAB_SECTION): New macro.
9342         * stabsread.h (elfstab_build_psymtabs): Update prototype.
9343         * symfile.c (symfile_dummy_outputs): New function.
9344         (symfile_relocate_debug_section): New function.
9345         * symfile.h (symfile_relocate_debug_section): Add prototype.
9346
9347 2003-01-31  Richard Henderson  <rth@redhat.com>
9348
9349         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9350         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
9351         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9352         * alpha-tdep.c (alpha_register_name): Add "unique".
9353         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9354         (ALPHA_UNIQUE_REGNUM): New.
9355         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9356
9357 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
9358
9359         * README: Remove reference to Ericsson 1800 monitor.
9360         * Makefile.in (remote-es.o): Delete rule.
9361         (ALLDEPFILES): Delete remote-es.c.
9362         * remote-es.c: Delete file.
9363         * config/m68k/es1800.mt: Delete file.
9364         * config/djgpp/fnchange.lst: Update.
9365         * configure.tgt: Delete m68*-ericsson-* target.
9366
9367 2003-01-31  Adam Fedor  <fedor@gnu.org>
9368
9369         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9370         Remove duplicate/shadowing variable of same name.
9371
9372 2003-01-30  Jim Blandy  <jimb@redhat.com>
9373
9374         * symfile.c (find_separate_debug_file): Assert that the objfile's
9375         directory name we compute ends with a slash, and then assume that
9376         that's so everywhere we use it.
9377
9378 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
9379
9380         * valops.c (value_assign): Flush frame cache after stores to memory
9381         also.
9382
9383 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
9384
9385         * Makefile.in (mon960-rom.o): Delete rule.
9386         * mon960-rom.c: Delete file.
9387
9388 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
9389
9390         * d10v-tdep.c: Include "frame-unwind.h".
9391         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9392         list.
9393         (next_addr, uses_frame): Delete.
9394         (struct d10v_unwind_cache): Define.
9395         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9396         Use info instead of next_addr and uses_frame globals.
9397         (d10v_frame_init_saved_regs): Delete function.
9398         (d10v_init_extra_frame_info): Delete function.
9399         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9400         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9401         init_frame_pc or frame_saved_pc.
9402         (d10v_pop_frame): Delete function.
9403         (do_d10v_pop_frame): Delete function.
9404         (d10v_frame_chain): Delete function.
9405         (d10v_frame_chain_valid): Delete function.
9406         (d10v_frame_pc_unwind): New function.
9407         (d10v_frame_id_unwind): New function.
9408         (saved_regs_unwinder): New function.
9409         (d10v_frame_register_unwind): New function.
9410         (d10v_frame_pop): New function.
9411         (d10v_frame_unwind): New variable.
9412         (d10v_frame_p): New function.
9413         (d10v_frame_saved_pc): Delete function.
9414         * Makefile.in (d10v-tdep.o): Update dependencies.
9415
9416 2003-01-30  J. Brobecker  <brobecker@gnat.com>
9417
9418         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9419         causing some regressions due to a change in the default value
9420         for this macro.
9421
9422 2003-01-29  Richard Henderson  <rth@redhat.com>
9423             Elena Zannoni  <ezannoni@redhat.com>
9424             Daniel Jacobowitz  <drow@mvista.com>
9425
9426         Fix PR gdb/961.
9427         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
9428         variables.
9429         (RANGES_SECTION): New.
9430         (dwarf_ranges_buffer): New variable.
9431         (struct comp_unit_head): Add member "die".
9432         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9433         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9434         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9435         (dwarf2_locate_sections): Likewise.
9436         (dwarf2_build_psymtabs): Read .debug_ranges.
9437         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9438         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
9439         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9440         Look for DW_AT_ranges and return the bounding box.
9441
9442 2003-01-29  Brian Ford <ford@vss.fsi.com>
9443
9444         * win32-nat.c (cygwin_pid): Removed as unused.
9445         (child_attach): Try fall back to Cygwin pid.
9446
9447 2003-01-29  Jim Blandy  <jimb@redhat.com>
9448
9449         * objfiles.h (struct objfile): Doc fix.
9450
9451 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
9452
9453         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9454         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9455         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9456         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9457         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9458         (FRAME_SAVED_PC): Change to a function with predicate.
9459         * gdbarch.h, gdbarch.c: Re-generate.
9460
9461 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
9462
9463         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9464
9465         * complaints.c (complain): Delete function.
9466         * complaints.h (struct deprecated_complaint): Delete definition.
9467         (complain): Delete declaration.
9468
9469 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
9470
9471         * mips-tdep.c (mips_init_extra_frame_info): Return early for
9472         dummy frames.
9473
9474 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
9475
9476         * sentinel-frame.h, sentinel-frame.c: New files.
9477         * Makefile.in (frame.o): Update dependencies.
9478         (SFILES): Add sentinel-frame.c.
9479         (sentinel_frame_h): Define.
9480         (COMMON_OBS): Add sentinel-frame.o.
9481         (sentinel-frame.o): Specify dependencies.
9482         * frame.c: Include "sentinel-frame.h".
9483         (frame_register_unwind): Rewrite assuming that there is always a a
9484         ->next frame.
9485         (frame_register, generic_unwind_get_saved_register): Ditto.
9486         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9487         (create_sentinel_frame, unwind_to_current_frame): New functions.
9488         (get_current_frame): Rewrite using create_sentinel_frame and
9489         unwind_to_current_frame.  When possible, always create a frame.
9490         (create_new_frame): Set next to the sentinel frame.
9491         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
9492         (deprecated_update_frame_pc_hack): Update the next frame's PC and
9493         ID cache when necessary.
9494         (frame_saved_regs_id_unwind): Use frame_relative_level.
9495         (deprecated_generic_get_saved_register): Use frame_relative_level,
9496         get_frame_saved_regs, get_frame_pc, get_frame_base and
9497         get_next_frame.
9498         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9499         frame_register.
9500
9501 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9502
9503         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9504
9505 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9506
9507         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9508         (maintenance_set_profile_cmd): Use error () instead of warning ().
9509
9510 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9511
9512         * configure.in: Check that -pg works if using --enable-profiling.
9513         Check for monstartup and _mcleanup regardless of --enable-profiling.
9514         * maint.c: Check for monstartup and _mcleanup before using them.
9515         * config.in: Regenerated.
9516         * configure: Regenerated.
9517
9518 2003-01-24  Nick Clifton  <nickc@redhat.com>
9519
9520         * Add sh2e support:
9521
9522         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
9523
9524                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9525                 (sh2e_show_regs): New.
9526                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9527                 * config/sh/tm-sh.h: Added sh2e to comments.
9528
9529 2003-01-23  Jim Blandy  <jimb@redhat.com>
9530
9531         * symfile.c (syms_from_objfile): Don't print the "(no debugging
9532         symbols found)" message here; we haven't checked for a separate
9533         debug info file yet, so we don't know yet.
9534         (symbol_file_add_with_addrs_or_offsets): Print it here, after
9535         we've looked everywhere.  Also, there's no need to print a special
9536         message when we're loading the separate debug info file: the one
9537         symbol_file_add prints is fine.
9538
9539 2003-01-23  Alexander Larsson <alexl@redhat.com>
9540             Jim Blandy  <jimb@redhat.com>
9541
9542         Add support for executables whose debug info has been separated
9543         out into a separate file, leaving only a link behind.
9544         * objfiles.h (struct objfile): New fields: separate_debug_objfile
9545         and separate_debug_objfile_backlink.
9546         (put_objfile_before): New declaration.
9547         * symfile.c: #include "filenames.h".
9548         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9549         debug info in a separate file, read that, too. Save the addrs
9550         argument, so we can use it again to read the separated debug info;
9551         syms_from_objfile modifies the table we pass it.
9552         (reread_symbols): After re-reading an objfile, call
9553         reread_separate_symbols to refresh its separate debug info
9554         objfile, if it has one.
9555         (reread_separate_symbols, find_separate_debug_file,
9556         get_debug_link_info, separate_debug_file_exists): New functions.
9557         (debug_file_directory): New global var.
9558         (_initialize_symfile): Initialize debug_file_directory, and
9559         provide the new `set debug-file-directory' command to let the user
9560         change it.
9561         * objfiles.c (free_objfile): If this objfile has its debug info in
9562         a separate objfile, free that one too.  If this is itself a
9563         separate debug info objfile, clear our parent's backlink.
9564         (put_objfile_before): New function.
9565         * utils.c (gnu_debuglink_crc32): New function.
9566         * defs.h (gnu_debuglink_crc32): New declaration.
9567         * Makefile.in (symfile.o): Note dependency on "filenames.h".
9568         * configure.in: Handle --with-separate-debug-dir config option.
9569         * acinclude.m4 (AC_DEFINE_DIR): New macro.
9570         * acconfig.h (DEBUGDIR): New macro.
9571         * configure, aclocal.m4, config.in: Regenerated.
9572
9573 2003-01-22  Jim Blandy  <jimb@redhat.com>
9574
9575         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9576         like the old symbol_file_add, but taking new arguments: you can
9577         now pass in either a `struct section_addr_info' list to say where
9578         each section is loaded, or a `struct section_offsets' table.  Pass
9579         these new arguments through to syms_from_objfile as appropriate.
9580         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9581         with the appropriate quiescent values for the new arguments.
9582
9583         * symfile.c: #include "gdb_assert.h".
9584         (syms_from_objfile): Add the ability to pass in a section offset
9585         table directly, as an alternative to the section_addr_info table.
9586         Document arguments better.
9587         (symbol_file_add): Pass extra arguments to syms_from_objfile.
9588         * symfile.h (syms_from_objfile): Update declaration.
9589         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9590         syms_from_objfile.
9591         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9592
9593 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
9594
9595         Original patch by Tom Tromey <tromey@cygnus.com> and
9596         Jason Molenda <jmolenda@apple.com>.
9597         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9598         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9599         * NEWS: Mention profiling.
9600         * configure.in (--enable-gdbtk): Fix typo.
9601         (--enable-profiling): New.  Set PROFILE_CFLAGS.
9602         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9603         Fill in function.
9604         (profiling_state): New variable.
9605         (mcleanup_wrapper): New function.
9606         (_initialize_maint): Remove NOTYET, fix call to
9607         add_setshow_boolean_cmd for "maint set profile".
9608         * configure: Regenerated.
9609
9610 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
9611
9612         * Makefile.in (install-gdbtk): Install PNG images too.
9613
9614 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
9615
9616         * exec.c (text_start): Delete global variable.
9617         (exec_file_attach): Make text_start local to the function.
9618         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9619         * valops.c (hand_function_call): Delete code that handles
9620         BEFORE_TEXT_END and AFTER_TEXT_END.
9621         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9622         of CALL_DUMMY_LOCATION.
9623         * gdbarch.c: Regenerate.
9624         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9625         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9626         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9627         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9628         (text_end): Delete extern declaration.
9629
9630 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
9631
9632         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9633         * blockframe.c (backtrace_below_main): Move to "frame.c".
9634         (frame_chain_valid): Delete check for backtrace_below_main.
9635         (_initialize_blockframe): Delete initialization, move ``set
9636         backtrace-below-main'' command to "frame.c".
9637         (do_flush_frames_sfunc): Delete function.
9638         * frame.c: Include "command.h" and "gdbcmd.h".
9639         (frame_type_from_pc): New function.
9640         (create_new_frame): Use frame_type_from_pc.
9641         (legacy_get_prev_frame): New function.
9642         (get_prev_frame): Rewrite.  When an old style frame, call
9643         legacy_get_prev_frame.  Otherwize, unwind the PC first.
9644         (_initialize_frame): Add ``set backtrace-below-main'' command.
9645         * Makefile.in (frame.o): Update dependencies.
9646
9647 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9648
9649         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9650         DEPRECATED_REGISTERS_INFO.
9651
9652 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9653
9654         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9655         Maintainers'.  Update `Various Maintainers'.
9656
9657 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9658
9659         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9660         * gdbarch.sh (POP_FRAME): Change to function with predicate.
9661         Suppress actual parameters when `-'.
9662         * gdbarch.h, gdbarch.c: Regenerate.
9663
9664 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9665
9666         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9667         code handling dummy frames.
9668
9669 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9670
9671         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9672         (struct frame_unwind): Add field pop.
9673         * frame.h (frame_pop): Declare.
9674         * frame.c (frame_saved_regs_pop): New function.
9675         (trad_frame_unwinder): Add frame_saved_regs_pop.
9676         (frame_pop): New function.
9677         * dummy-frame.c (dummy_frame_pop): New function.
9678         (discard_innermost_dummy): New function.
9679         (generic_pop_dummy_frame): Use discard_innermost_dummy.
9680         (dummy_frame_unwind): Add dummy_frame_pop.
9681         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9682         * valops.c (hand_function_call): Ditto.
9683         * stack.c (return_command): Ditto.
9684
9685 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9686
9687         * cris-tdep.c: Fix function declaration indentation.
9688         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9689         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9690         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9691         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9692         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9693         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9694
9695 2003-01-18  Michael Chastain  <mec@shout.net>
9696
9697         * README (Unpacking and Installation -- quick overview):
9698         Warn against ".../gdb-5.3/gdb/configure".
9699
9700 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9701
9702         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9703         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9704         (struct frame_unwind): Declare opaque.
9705         (dummy_frame_p): Declare function.
9706         * dummy-frame.c (dummy_frame_id_unwind): Make static.
9707         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9708         * dummy-frame.c: Include "frame-unwind.h".
9709         (dummy_frame_p): New function.
9710         (dummy_frame_unwind): New variable.
9711         * frame.c: Include "frame-unwind.h".
9712         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9713         to use the new unwind field.
9714         (set_unwind_by_pc): Delete function.
9715         (create_new_frame, get_prev_frame): Set unwind field using
9716         frame_unwind_find_by_pc.
9717         (trad_frame_unwind, trad_frame_unwinder): New variables.
9718         * frame.h (trad_frame_unwind): Declare variable.
9719         (frame_id_unwind_ftype): Delete declaration.
9720         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9721         (struct frame_unwind): Declare opaque.
9722         (struct frame_info): Replace the fields id_unwind, pc_unwind and
9723         register_unwind with a single unwind pointer.
9724         * frame-unwind.h, frame-unwind.c: New files.
9725         * Makefile.in (SFILES): Add frame-unwind.c.
9726         (frame_unwind_h): Define.
9727         (COMMON_OBS): Add frame-unwind.o.
9728         (frame-unwind.o): Specify dependencies.
9729         (frame.o, dummy-frame.o): Update dependencies.
9730
9731 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9732
9733         * ada-valprint.c: Eliminate PTR.
9734         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9735         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9736         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9737         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9738         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9739         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9740         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9741
9742 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
9743
9744         * main.c (captured_main): Don't use PTR.
9745         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9746         * gdbtypes.c (lookup_primitive_typename): Ditto.
9747         (lookup_struct_elt_type): Ditto.
9748         * f-valprint.c (info_common_command): Ditto.
9749         (list_all_visible_commons): Ditto.
9750         * jv-typeprint.c (java_type_print_base): Ditto.
9751
9752         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9753         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9754         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
9755         i386-interix-nat.c and i386-interix-tdep.c.  Rename
9756         m68klinux-nat.c and m68klinux-tdep.c.  Rename
9757         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
9758         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
9759         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9760         * main.c (captured_main): Use xfree, not free.
9761
9762 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
9763
9764         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9765         ID back using a parameter.
9766         * frame.c (frame_id_unwind): Update call.
9767         (frame_saved_regs_id_unwind): Update.
9768         * dummy-frame.c (dummy_frame_id_unwind): Update function.
9769         * dummy-frame.h (struct frame_id): Add opaque declaration.
9770         (dummy_frame_id_unwind): Update declaration.
9771
9772 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
9773
9774         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9775
9776 2003-01-15  Stephen P. Smith <ischis2@cox.net>
9777
9778         * MAINTAINERS (Stephen P. Smith): Updated email address.
9779
9780 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
9781
9782         Fix PR gdb/898
9783         * breakpoint.c (until_break_command): Add new argument.  Use it to
9784         decide whether to stop only at the current frame or not.
9785         * breakpoint.h (until_break_command): Update prototype.
9786         * infcmd.c (until_command): Add new argument to until_break_command
9787         call.
9788         (advance_command): New function.
9789         (_initialize_infcmd): Update help string for 'until' command.
9790         Add new 'advance' command.
9791
9792 2003-01-14  David Carlton  <carlton@math.stanford.edu>
9793
9794         * linespec.c (decode_line_1): Normalize comments.
9795         (set_flags): Ditto.
9796         (locate_first_half): Ditto.
9797         (decode_compound): Ditto.
9798         (symtab_from_filename): Ditto.
9799         (decode_all_digits): Ditto.
9800         (decode_dollar): Ditto.
9801         (find_methods): Ditto.
9802         (find_toplevel_char): Ditto.
9803
9804 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9805
9806         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9807         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9808         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9809         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9810         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9811         * language.c, language.h, m32r-tdep.c: Update copyright.
9812         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9813         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9814         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9815         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9816         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9817         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9818
9819 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9820
9821         * stabsread.h (process_later, resolve_cfront_continuation):
9822         Obsolete.
9823         Update copyright years.
9824         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9825         Update copyright year.
9826         * dbxread.c(struct cont_elem): Obsolete.
9827         (process_later, process_now): Obsolete functions.
9828         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9829         Update copyright year.
9830         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9831         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9832         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9833         (parse_partial_symbols): Obsolete cfront support.
9834         * stabsread.c
9835         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9836         macros.
9837         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9838         read_cfront_baseclasses, read_cfront_member_functions,
9839         resolve_cfront_continuation,read_cfront_static_fields,
9840         copy_cfront_struct_fields): Obsolete functions.
9841         (define_symbol, read_one_struct_field): Obsolete cfront support.
9842         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9843         Update Copyright year.
9844
9845 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9846
9847         * stack.c (print_frame_info, print_stack_frame_base_stub,
9848         print_stack_frame_base, show_and_print_stack_frame_stub,
9849         show_and_print_stack_frame, print_only_stack_frame_stub,
9850         print_only_stack_frame): Delete functions.
9851         (print_stack_frame_stub): Call print_frame_info instead of
9852         print_frame_info_base.
9853         (print_frame_info_base): Rename to print_frame_info.
9854         (backtrace_command_1): Call print_frame_info, instead of
9855         print_frame_info_base.
9856         (current_frame_command): Call print_stack_frame, instead of
9857         print_only_stack_frame.
9858         (frame_command): Call print_stack_frame, instead of
9859         show_and_print_stack_frame.
9860         (up_command): Ditto.
9861         (down_command): Ditto.
9862         * frame.h (print_only_stack_frame): Delete prototype.
9863         * infrun.c (normal_stop): Call print_stack_frame, instead of
9864         show_and_print_stack_frame.
9865         * thread.c (info_threads_command): Call print_stack_frame, instead
9866         of print_only_stack_frame.
9867
9868 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9869
9870         * README (Graphical interface to GDB): Update URL.  Point at
9871         gdb/links/.
9872
9873         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
9874         version match.
9875
9876 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9877
9878         * symtab.c (find_pc_sect_line): Don't consider end-of-function
9879         lines.
9880
9881 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9882
9883         * thread-db.c (attach_thread): Prototype.
9884         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
9885         thread information (ti), and valid flags (th_valid, ti_valid).
9886         (attach_thread): Move target_pid_to_str call to after the thread
9887         is added to GDB's list.  Initialize the cache.
9888         (thread_get_info_callback, thread_db_map_id2thr)
9889         (thread_db_get_info): New functions.
9890         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9891         (thread_db_store_registers, thread_db_thread_alive)
9892         (thread_db_get_thread_local_address): Use them.
9893         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
9894         of calling error() for threads in unknown state.
9895
9896         (clear_lwpid_callback): New function.
9897         (thread_db_resume): Use it to clear the cache.
9898
9899 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9900
9901         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9902         (resume_callback): Remove dead code.
9903
9904 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9905
9906         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9907         predicate.
9908         * gdbarch.h, gdbarch.c: Regenerate.
9909         * stack.c (frame_info): Only initialize the saved registers when
9910         FRAME_INIT_SAVED_REGS_P.
9911         * frame.c (frame_saved_regs_register_unwind): Assert
9912         FRAME_INIT_SAVED_REGS_P.
9913         (deprecated_generic_get_saved_register): Ditto.
9914
9915 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9916
9917         * source.c (openp): Squelch warning about "filename".
9918
9919 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9920
9921         * source.c (openp): If the file does not exist don't necessarily
9922         search the path.
9923
9924 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9925
9926         Fix PR gdb/872.
9927         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9928         (integer_types_same_name_p): New function.
9929         (rank_one_type): Use it.
9930         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9931
9932 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9933
9934         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9935         variables.
9936         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9937         * configure.in: Add --with-sysroot.
9938         * configure: Regenerated.
9939         * main.c (gdb_sysroot): New variable.
9940         (captured_main): Initialize gdb_sysroot.
9941         * defs.h (gdb_sysroot): New extern declaration.
9942         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9943
9944 2003-01-12  Michael Chastain  <mec@shout.net>
9945
9946         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9947
9948 2003-01-12  Michael Chastain  <mec@shout.net>
9949
9950         * top.c (print_gdb_version): Bump copyright year to 2003.
9951
9952 2003-01-12  David Carlton  <carlton@bactrian.org>
9953
9954         * linespec.c (symtab_from_filename): Rename variable 's' to
9955         'file_symtab'.
9956
9957 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9958
9959         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9960         dummy frame.
9961         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9962
9963 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9964
9965         * d10v-tdep.c: Include "gdb_assert.h".
9966         (d10v_store_return_value): Rewrite to match current interface.
9967         (d10v_extract_struct_value_address): Ditto.
9968         (d10v_extract_return_value): Ditto.
9969         (d10v_gdbarch_init): Set store_restore_value,
9970         extract_struct_value_address and extract_return_value.
9971
9972 2003-01-12  J. Brobecker  <brobecker@gnat.com>
9973
9974         * hpread.c (set_namestring): New procedure replacing the
9975         SET_NAMESTRING macro.
9976         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9977         by calls to set_namestring.
9978
9979 2003-01-11  J. Brobecker  <brobecker@gnat.com>
9980
9981         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9982         a compilation warning.
9983         (hpread_process_one_debug_symbol): Likewise.
9984
9985 2003-01-10  David Carlton  <carlton@math.stanford.edu>
9986
9987         * linespec.c (decode_line_1): Rename variable 's' to
9988         'file_symtab'.
9989         (decode_all_digits): Rename argument 's' to 'file_symtab'.
9990         (decode_dollar): Ditto.
9991         (decode_variable): Ditto.
9992         (symbol_found): Ditto.
9993
9994 2003-01-09  Michael Chastain  <mec@shout.net>
9995
9996         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9997
9998 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
9999
10000         * win32-nat.c (set_process_privilege): New function.
10001         (child_attach): Call set_process_privilege() to enable the
10002         SE_DEBUG_NAME user privilege if available in process token.
10003
10004 2003-01-10  J. Brobecker  <brobecker@gnat.com>
10005
10006         * hpread.c (hpread_process_one_debug_symbol): Fix a small
10007         compilation error in the previous revision.
10008
10009 2003-01-09  David Carlton  <carlton@math.stanford.edu>
10010
10011         * linespec.c: Update copyright.
10012
10013 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
10014
10015         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10016         than inferior_ptid.
10017         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10018
10019 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
10020
10021         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10022         Update comments.
10023         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10024         (frame_saved_regs_zalloc): Update.
10025         (frame_saved_regs_register_unwind): Update.
10026         (create_new_frame): Update.
10027         (get_prev_frame): Update.
10028         (frame_extra_info_zalloc): Update.
10029         (deprecated_get_frame_saved_regs): Update.
10030         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10031         * cris-tdep.c: Update comment.
10032
10033         * somsolib.h: Fix function indentation.
10034         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10035         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10036         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10037         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10038         * somsolib.c, inftarg.c: Remove assignment in if conditional.
10039
10040         * infrun.c (follow_fork): Use ISO C definition.
10041         * expprint.c (print_subexp): Use xfree instead of free.
10042         * charset.c: Include "gdb_string.h" instead of <string.h>.
10043         (register_iconv_charsets): Use ISO C definition.
10044         (host_charset, target_charset): Ditto.
10045         * Makefile.in (charset.o): Update dependencies.
10046         (mi-cmd-env.o): Update dependencies.
10047
10048 2003-01-08  Andrew Cagney  <cagney@redhat.com>
10049
10050         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10051         get_frame_base.
10052
10053 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
10054
10055         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
10056         build directories.  Save edited gdb output in Mbuild.log.  If a
10057         build fails, remove any final GDB executable.
10058
10059 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
10060
10061         * gdb_mbuild.sh: Edit the output of `maint print architecture'
10062         replacing hex constants with function names and stripping leading
10063         file name directory prefixes.
10064
10065 2003-01-08  Andrew Cagney  <cagney@redhat.com>
10066
10067         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10068         get_frame_base.
10069
10070 2003-01-08  David Carlton  <carlton@math.stanford.edu>
10071
10072         * linespec.c (decode_line_1): Move code into decode_variable.
10073         (decode_variable): New function.
10074
10075 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
10076
10077         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10078
10079 2003-01-08  Andrew Cagney  <cagney@redhat.com>
10080
10081         * cris-tdep.c (cris_frame_init_saved_regs): Use
10082         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10083         saved_regs buffer.
10084         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10085         (sh64_nofp_frame_init_saved_regs): Ditto.
10086         (sh_fp_frame_init_saved_regs): Ditto.
10087         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10088         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10089         * mcore-tdep.c (analyze_dummy_frame): Ditto.
10090         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10091
10092 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
10093
10094         * minsyms.c (lookup_minimal_symbol): Update comment.
10095         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
10096         (lookup_minimal_symbol_solib_trampoline): Likewise.
10097
10098 2003-01-08  Andrew Cagney  <cagney@redhat.com>
10099
10100         * d10v-tdep.c (d10v_init_extra_frame_info): Use
10101         frame_relative_level.
10102
10103         * alpha-tdep.c: Use get_frame_extra_info.
10104         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10105         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10106         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10107         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10108
10109         * alpha-tdep.c: Use get_next_frame.
10110         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10111         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10112         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10113         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10114         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10115         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10116         * xstormy16-tdep.c: Ditto.
10117
10118 2003-01-07  Andrew Cagney  <cagney@redhat.com>
10119
10120         * alpha-tdep.c: Use get_frame_base.
10121         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10122         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10123         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10124         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10125         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10126         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10127         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10128         * config/sparc/tm-sparc.h: Ditto.
10129
10130 2003-01-07  Andrew Cagney  <cagney@redhat.com>
10131
10132         * frame.c (deprecated_get_frame_context): New function.
10133         (deprecated_set_frame_context): New function.
10134         * frame.h (deprecated_get_frame_context): Declare.
10135         (deprecated_set_frame_context): Declare.
10136         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10137         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10138
10139 2003-01-07  Andrew Cagney  <cagney@redhat.com>
10140
10141         * frame.c (deprecated_set_frame_next_hack): New function.
10142         (deprecated_set_frame_prev_hack): New function.
10143         * frame.h (deprecated_set_frame_next_hack): Declare.
10144         (deprecated_set_frame_prev_hack): Declare.
10145         * mcore-tdep.c (analyze_dummy_frame): Use
10146         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10147         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10148
10149 2003-01-07  David Carlton  <carlton@math.stanford.edu>
10150
10151         * linespec.c (decode_line_1): Move code into decode_dollar.
10152         (decode_dollar): New function.
10153
10154 2003-01-07  Andrew Cagney  <cagney@redhat.com>
10155
10156         * arm-tdep.c (arm_init_extra_frame_info): Use
10157         deprecated_update_frame_base_hack.
10158         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10159         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10160         (fix_frame_pointer): Ditto.
10161         (mn10300_analyze_prologue): Ditto.
10162
10163 2003-01-07  Andrew Cagney  <cagney@redhat.com>
10164
10165         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10166         extra_info using frame_extra_info_zalloc.
10167         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10168         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10169         (sh64_init_extra_frame_info): Ditto.
10170         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10171         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10172         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10173         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10174         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10175         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10176         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10177         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10178         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10179         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10180         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10181         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10182
10183         * mn10300-tdep.c (analyze_dummy_frame): Use
10184         deprecated_set_frame_extra_info_hack.
10185         * mcore-tdep.c (analyze_dummy_frame): Ditto.
10186
10187 2003-01-07  J. Brobecker  <brobecker@gnat.com>
10188
10189         * mdebugread.c (parse_symbol): Skip stProc entries which storage
10190         class is not scText. These do not define "real" procedures.
10191         (parse_partial_symbols): Likewise.
10192
10193 2003-01-06  Michael Snyder  <msnyder@redhat.com>
10194
10195         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10196
10197 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
10198
10199         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10200         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10201         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10202         deprecated_frame_xmalloc_with_cleanup.
10203         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10204         deprecated_frame_xmalloc.
10205         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10206         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10207
10208 2003-01-06  Andrew Cagney  <cagney@redhat.com>
10209
10210         * x86-64-linux-tdep.c: Include "osabi.h".
10211         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10212
10213         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10214
10215 2003-01-06  Andrew Cagney  <cagney@redhat.com>
10216
10217         * MAINTAINERS (Target Instruction Set Architectures): Update
10218         arm-elf.  Can be built with -Werror, has been multiarched.
10219
10220         * value.h (unpack_long): Make buffer parameter constant.
10221         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10222         * scm-lang.h (scm_parse): Ditto.
10223         * defs.h (extract_typed_address, extract_address): Ditto.
10224         (extract_long_unsigned_integer): Ditto.
10225         * inferior.h (unsigned_pointer_to_address): Ditto.
10226         (signed_pointer_to_address): Ditto.
10227         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10228         * gdbarch.h, gdbarch.c: Regenerate.
10229         * findvar.c (extract_long_unsigned_integer): Update.
10230         (extract_address): Update.
10231         (extract_typed_address): Update.
10232         (unsigned_pointer_to_address): Update.
10233         * values.c (unpack_long): Update.
10234         (unpack_double): Update.
10235         (unpack_pointer): Update.
10236         (unpack_field_as_long): Update.
10237         * d10v-tdep.c (d10v_pointer_to_address): Update.
10238         * avr-tdep.c (avr_pointer_to_address): Update.
10239         * scm-lang.c (scm_unpack): Update.
10240         * findvar.c (signed_pointer_to_address): Update.
10241
10242 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
10243
10244         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10245         since it is in i386-tdep.c.
10246
10247 2003-01-06  J. Brobecker  <brobecker@gnat.com>
10248
10249         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10250         failure introduced in the previous change.
10251
10252 2003-01-05  Michael Chastain  <mec@shout.net>
10253
10254         * README: Remove references to deleted remote-*.c files:
10255         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10256         remote-nrom.c, remote-os9k.c, remote-udi.c.
10257
10258 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
10259
10260         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10261         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10262         i386_get_longjmp_target.
10263
10264 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
10265
10266         * arm-tdep.c (prologue_cache): Change to a pointer.
10267         (_initialize_arm_tdep): Allocate prologue_cache.
10268         (check_prologue_cache): Update.
10269         (save_prologue_cache): Update.
10270         (arm_gdbarch_init): Update.
10271
10272 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10273
10274         * stabsread.c (update_method_name_from_physname): Call complaint()
10275         instead of error.
10276
10277 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10278
10279         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
10280         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10281         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10282
10283         * blockframe.c: Include "gdbcmd.h" and "command.h".
10284         (backtrace_below_main): New variable.
10285         (file_frame_chain_valid, func_frame_chain_valid)
10286         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10287         (generic_func_frame_chain_valid): Remove functions.
10288         (frame_chain_valid, do_flush_frames_sfunc): New functions.
10289         (_initialize_blockframe): New function.
10290         * Makefile.in (blockframe.o): Update dependencies.
10291         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10292         comment.  Call frame_chain_valid ().
10293         * frame.h: Remove old prototypes.  Add prototype for
10294         frame_chain_valid and update comments to match.
10295         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10296         Remove old comment.
10297         * gdbarch.h: Regenerated.
10298         * gdbarch.c: Regenerated.
10299
10300         * alpha-tdep.c (alpha_gdbarch_init): Don't call
10301         set_gdbarch_frame_chain_valid.
10302         * avr-tdep.c (avr_gdbarch_init): Likewise.
10303         * cris-tdep.c (cris_gdbarch_init): Likewise.
10304         * frv-tdep.c (frv_gdbarch_init): Likewise.
10305         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10306         * i386-tdep.c (i386_svr4_init_abi): Likewise.
10307         (i386_nw_init_abi): Likewise.
10308         (i386_gdbarch_init): Likewise.
10309         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10310         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10311         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10312         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10313         * mips-tdep.c (mips_gdbarch_init): Likewise.
10314         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10315         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10316         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10317         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10318         * s390-tdep.c (s390_gdbarch_init): Likewise.
10319         * sh-tdep.c (sh_gdbarch_init): Likewise.
10320         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10321         * v850-tdep.c (v850_gdbarch_init): Likewise.
10322         * vax-tdep.c (vax_gdbarch_init): Likewise.
10323         * x86-64-tdep.c (x86_64_init_abi): Likewise.
10324
10325         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10326         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10327         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10328         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10329         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10330         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10331         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10332         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10333
10334 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10335
10336         * Makefile.in (acconfig_h): Remove incorrect macro.
10337         (config_h): Define.
10338         (osabi.o): Update dependencies.
10339         * configure.tgt: Set gdb_osabi based on target triplet.
10340         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10341         * configure: Regenerated.
10342         * config.in: Regenerated.
10343         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10344         (GDB_OSABI_DEFAULT): Define if not already defined.
10345         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10346         (set_osabi_string): New variables.
10347         (gdbarch_register_osabi): Add new OS ABI to
10348         gdb_osabi_available_names.
10349         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10350         (set_osabi, show_osabi): New functions.
10351         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10352
10353 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10354
10355         * arch-utils.c (gdbarch_info_init): Set osabi to
10356         GDB_OSABI_UNINITIALIZED.
10357         * gdbarch.sh: Add osabi to struct gdbarch and to struct
10358         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
10359         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10360         * gdbarch.c: Regenerated.
10361         * gdbarch.h: Regenerated.
10362         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10363         there's no BFD.
10364         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10365         * osabi.h (enum gdb_osabi): Move to defs.h.
10366         (gdbarch_init_osabi): Update prototype.
10367         * defs.h (enum gdb_osabi): Moved here.
10368         * Makefile.in: Update dependencies.
10369
10370         * alpha-tdep.h: Don't include "osabi.h".
10371         (struct gdbarch_tdep): Remove osabi member.
10372         * alpha-tdep.c: Include "osabi.h".
10373         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10374         iterate over arches.  Update call to gdbarch_init_osabi.
10375         (alpha_dump_tdep): Don't dump osabi.
10376         * alpha-linux-tdep.c: Include "osabi.h".
10377         * alpha-osf1-tdep.c: Include "osabi.h".
10378         * alphafbsd-tdep.c: Include "osabi.h".
10379         * alphanbsd-tdep.c: Include "osabi.h".
10380
10381         * arm-tdep.h: Don't include "osabi.h".
10382         (struct gdbarch_tdep): Remove osabi member.
10383         * arm-tdep.c: Include "osabi.h".
10384         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10385         iterate over arches.  Update call to gdbarch_init_osabi.
10386         (arm_dump_tdep): Don't dump osabi.
10387         * arm-linux-tdep.c: Include "osabi.h".
10388         * armnbsd-tdep.c: Include "osabi.h".
10389
10390         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10391         Update call to gdbarch_init_osabi.
10392
10393         * i386-tdep.h: Don't include "osabi.h".
10394         (struct gdbarch_tdep): Remove osabi member.
10395         * i386-tdep.c: Include "osabi.h".
10396         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10397         iterate over arches.  Update call to gdbarch_init_osabi.
10398         (i386_dump_tdep): Don't dump osabi.
10399         * i386-linux-tdep.c: Include "osabi.h".
10400         * i386-sol2-tdep.c: Include "osabi.h".
10401         * i386bsd-tdep.c: Include "osabi.h".
10402         * i386gnu-tdep.c: Include "osabi.h".
10403         * i386ly-tdep.c: Include "osabi.h".
10404         * i386nbsd-tdep.c: Include "osabi.h".
10405         * i386obsd-tdep.c: Include "osabi.h".
10406
10407         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10408         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10409         check osabi when iterating over arches.  Update call to
10410         gdbarch_init_osabi.
10411         (mips_dump_tdep): Don't dump osabi.
10412
10413         * ns32k-tdep.h: Don't include "osabi.h".
10414         (struct gdbarch_tdep): Remove.
10415         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10416         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
10417         allocate tdep.  Update call to gdbarch_init_osabi.
10418         (ns32k_dump_tdep): Remove.
10419         (_initialize_ns32k_tdep): Update call to gdbarch_register.
10420         * ns32knbsd-tdep.c: Include "osabi.h".
10421
10422         * ppc-tdep.h: Don't include "osabi.h".
10423         (struct gdbarch_tdep): Remove osabi member.
10424         * rs6000-tdep.c: Include "osabi.h".
10425         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
10426         osabi when iterating over arches.  Update call to
10427         gdbarch_init_osabi.
10428         (rs6000_dump_tdep): Don't dump osabi.
10429         * ppc-linux-tdep.c: Include "osabi.h".
10430         * ppcnbsd-tdep.c: Include "osabi.h".
10431
10432         * sh-tdep.h: Don't include "osabi.h".
10433         (struct gdbarch_tdep): Remove osabi member.
10434         * sh-tdep.c: Include "osabi.h".
10435         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10436         iterate over arches.  Update call to gdbarch_init_osabi.
10437         (sh_dump_tdep): Don't dump osabi.
10438         * shnbsd-tdep.c: Include "osabi.h".
10439
10440         * sparc-tdep.c: Include "osabi.h".
10441         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10442         iterate over arches.  Update call to gdbarch_init_osabi.
10443         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
10444         tdep structure.
10445
10446         * vax-tdep.h: Don't include "osabi.h".
10447         (struct gdbarch_tdep): Remove.
10448         * vax-tdep.c: Include "osabi.h".
10449         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10450         iterate over arches.  Don't allocate tdep.  Update call
10451         to gdbarch_init_osabi.
10452         (vax_dump_tdep): Remove.
10453         (_initialize_vax_tdep): Update call to gdbarch_register.
10454
10455 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10456
10457         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10458         entirely.
10459         (breakpoint_re_set_one): Don't fetch the value for a disabled
10460         watchpoint.
10461
10462 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10463
10464         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10465         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10466         (COERCE_FLOAT_TO_DOUBLE): Remove.
10467         * gdbarch.c: Regenerate.
10468         * gdbarch.h: Regenerate.
10469         * Makefile.in: Remove value_h from gdbarch_h.
10470         * valops.c (coerce_float_to_double): New variable.
10471         (default_coerce_float_to_double): Remove.
10472         (standard_coerce_float_to_double): Remove.
10473         (value_arg_coerce): Use coerce_float_to_double.
10474         (_initialize_valops): Add "set coerce-float-to-double".
10475         * value.h (default_coerce_float_to_double): Remove prototype.
10476         (standard_coerce_float_to_double): Remove prototype.
10477
10478         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10479         prototyped.
10480         * mdebugread.c (parse_symbol): Likewise.
10481         * stabsread.c (define_symbol): Mark all functions as prototyped.
10482
10483         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10484         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10485         set_gdbarch_coerce_float_to_double.
10486         * arm-tdep.c (arm_gdbarch_init): Likewise.
10487         * frv-tdep.c (frv_gdbarch_init): Likewise.
10488         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10489         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10490         * mips-tdep.c (mips_gdbarch_init): Likewise.
10491         (mips_coerce_float_to_double): Remove.
10492         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10493         (rs6000_coerce_float_to_double): Remove.
10494         * s390-tdep.c (s390_gdbarch_init): Likewise.
10495         * sh-tdep.c (sh_gdbarch_init): Likewise.
10496         (sh_coerce_float_to_double): Remove.
10497         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10498         (sparc_coerce_float_to_double): Remove.
10499         * v850-tdep.c (v850_gdbarch_init): Likewise.
10500         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10501         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10502         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10503         (hppa_coerce_float_to_double): Remove prototype.
10504         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10505
10506 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10507
10508         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10509
10510 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10511
10512         Suggested by Stewart Brown <sb24@avaya.com>:
10513         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10514         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
10515         (c_type_print_varspec_suffix): Likewise.
10516
10517 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
10518
10519         * configure.in: Don't set and AC_SUBST SUBDIRS.
10520         * configure: Regenerated.
10521
10522         * configure.in: Remove code dealing with shared libraries.
10523         * Makefile.in: Remove HLDFLAGS and HLDENV.
10524         * configure: Regenerated.
10525
10526 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
10527
10528         * frame.c (deprecated_frame_xmalloc): New function.
10529         (deprecated_set_frame_saved_regs_hack): New function.
10530         (deprecated_set_frame_extra_info_hack): New function.
10531         * frame.h (deprecated_frame_xmalloc): Declare.
10532         (deprecated_set_frame_saved_regs_hack): Declare.
10533         (deprecated_set_frame_extra_info_hack): Declare.
10534
10535 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
10536
10537         * configure.in: Move code that provides the --enable-gdbtk option
10538         right after the code that handles the --enable-tui option, and
10539         polish it somewhat.
10540         * configure: Regenerated.
10541
10542         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
10543         AC_CHECK_FUNCS and remove the old check for pread64.
10544         * acinclude.m4 (AC_GNU_SOURCE): New macro.
10545         * acconfig.h (_GNU_SOURCE): Add.
10546         (HAVE_PREAD64): Remove.
10547         * configure, aclocal.m4, config.in: Regenerated.
10548
10549 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
10550
10551         * alpha-tdep.c: Use get_frame_saved_regs.
10552         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10553         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10554         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10555         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10556         * vax-tdep.c, xstormy16-tdep.c: Ditto.
10557
10558 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10559
10560         * configure.in: Remove all use of the SUBDIRS variable; add
10561         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
10562         code providing the --enable-multi-ice option, and move it right in
10563         front of the code that checks whether gdbserver is supported.
10564         Polish that too.
10565         * configure: Regenerated.
10566         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10567         @SUBDIRS@.
10568
10569 2003-01-03  Andrew Cagney  <cagney@redhat.com>
10570
10571         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10572         * avr-tdep.c, cris-tdep.c: Ditto.
10573         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10574         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10575
10576 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10577
10578         * configure.in: Remove --enable-netrom option.
10579         * configure: Regenerated.
10580
10581 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10582
10583         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10584         declaration for `struct re_pattern_buffer' instead.
10585         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10586
10587 2003-01-03  J. Brobecker  <brobecker@gnat.com>
10588
10589         * mdebugread.c (parse_symbol): Count until the stEnd matching
10590         the structure name.
10591
10592 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10593
10594         * configure.in: Remove --with-cpu option.
10595         subscripts.  Remove evil changequotes here.
10596         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10597         * config.in, configure: Regenerated.
10598
10599         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10600         * configure.in: Cleanup section that sources GDB and BFD configure
10601         subscripts.  Remove evil changequotes here.
10602         * config.in, configure: Regenerated.
10603
10604 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10605
10606         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10607         frame accessor methods.
10608         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10609         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10610         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10611         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10612         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10613         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10614         * z8k-tdep.c: Ditto.
10615
10616 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10617
10618         * configure.in: Remove UI_OUT configuration code.
10619         * ada-lang.c: Update assuming UI_OUT is always true.
10620         * Makefile.in (UIOUT_CFLAGS): Remove.
10621         * configure: Regenerated.
10622         * TODO: Remove blurb about elimination of -DUI_OUT.
10623
10624         * configure.in: Move code that provides the --enable-gdbcli,
10625         --enable-gdbmi options right before the code that handles the
10626         --enable-tui option.  Polish a bit.
10627         * configure: Regenerated.
10628
10629         * configure.in: Rewrite check for GNU regex and the
10630         --without-included regex option, and move it into the "Checks for
10631         library functions" section.  This makes us use the system regex
10632         again by default on systems with version 2 of the GNU C library.
10633         This was apparently broken.
10634         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10635         * acconfig.h (USE_INCLUDED_REGEX): Remove.
10636         * config.in, configure: Regenerated.
10637
10638         * configure.in: Move code that provides the --enable-tui option
10639         before the "Checks for libraries" section.  Polish the code
10640         somewhat and set need_curses to yes if we build the TUI.  Rewrite
10641         code that looks for a library providing termcap functionality to
10642         match more closely what's done in the Readline library, and move
10643         it into to the "Checks for libraries" section.
10644         * configure: Regenerated.
10645         * Makefile.in (TERMCAP): Remove variable.
10646         * config/i386/go32.mh (TERMCAP): Remove variable.
10647
10648 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10649
10650         * MAINTAINERS: Mention gdb_mbuild.sh.
10651         * gdb_mbuild.sh: Rewrite.
10652
10653 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10654
10655         * configure.in: Fix typo in last change.
10656         * config.in, configure: Regenerated.
10657
10658 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10659
10660         * valarith.c (value_binop): Delete obsolete code and comments.
10661         * configure.host: Ditto.
10662         * buildsym.h (make_blockvector): Ditto.
10663         * buildsym.c (make_blockvector): Ditto.
10664         * defs.h (enum language): Ditto.
10665         (chill_demangle): Ditto.
10666         * elfread.c (elf_symtab_read): Ditto.
10667         * dwarfread.c (CHILL_PRODUCER): Ditto.
10668         (set_cu_language): Ditto.
10669         (handle_producer): Ditto.
10670         * expprint.c (print_subexp): Ditto.
10671         * gdbtypes.c (chill_varying_type): Ditto.
10672         * gdbtypes.h (builtin_type_chill_bool): Ditto.
10673         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10674         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10675         (chill_varying_type): Ditto.
10676         * language.h (_LANG_chill): Ditto.
10677         * language.c (binop_result_type, integral_type): Ditto.
10678         (character_type, string_type, structured_type): Ditto.
10679         (lang_bool_type, binop_type_check): Ditto.
10680         * stabsread.h (os9k_stabs): Ditto.
10681         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10682         (define_symbol, read_type, read_struct_fields): Ditto.
10683         (read_array_type, read_enum_type, read_huge_number): Ditto.
10684         (read_range_type, start_stabs): Ditto.
10685         * symfile.c (init_filename_language_table): Ditto.
10686         (add_psymbol_with_dem_name_to_list): Ditto.
10687         * symtab.c (symbol_init_language_specific): Ditto.
10688         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10689         * symtab.h (struct general_symbol_info): Ditto.
10690         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10691         * typeprint.c (typedef_print): Ditto.
10692         * utils.c (fprintf_symbol_filtered): Ditto.
10693         * valops.c (value_cast, search_struct_field, value_slice): Delete
10694         obsolete code.
10695         (varying_to_slice): Delete function.
10696         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10697         (varying_to_slice): Delete declaration.
10698         * MAINTAINERS: Update.
10699
10700 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10701
10702         * configure.in: Reorganize "Checks for library functions section"
10703         a bit.  Remove check for `btowc' and `isascii' functions.
10704         * configure: Regenerated.
10705
10706         * acconfig.h (_MSE_INT_H): Remove.
10707         * configure.in: Create "Checks for header files" section, and move
10708         appropriate tests there.  Don't check for objlist.h, wchar.h,
10709         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
10710         misdetection fix.  Also add "Checks for types", "Checks for
10711         compiler characteristics" and "Checks for library functions"
10712         sections.
10713         * config.in, configure: Regenerated.
10714
10715         * configure.in: Create "Checks for programs" section, and move
10716         appropriate tests there.
10717
10718 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
10719
10720         * configure.in: Create "Checks for libraries" section, and move
10721         appropriate tests there.  Cleanup check for wctype in libw.  Use
10722         AC_SEARCH_LIBS to see whether we need libsocket.
10723         * configure: Regenerated.
10724
10725 For older changes see ChangeLog-2002
10726 \f
10727 Local Variables:
10728 mode: change-log
10729 left-margin: 8
10730 fill-column: 74
10731 version-control: never
10732 End: