* i387-tdep.h: Update copyright date.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2
3 * i387-tdep.h: Update copyright date.
4 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
5
6 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
7 CFLAGS games to reflect reality.
8
9 2003-08-24 Andrew Cagney <cagney@redhat.com>
10
11 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
12 GDB_MULTI_ARCH is always non-zero.
13 * osabi.c (_initialize_gdb_osabi): Ditto.
14 (gdbarch_init_osabi): Ditto.
15 * sparc-tdep.c: Ditto for #if code.
16
17 2003-08-23 Mark Kettenis <kettenis@gnu.org>
18
19 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
20 Update comments.
21 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
22 comments.
23 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
24 x86_64_supply_fxsave.
25 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
26 x86_64_supply_fxsave.
27 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
28 x86_64_supply_fxsave.
29
30 2003-08-23 Andreas Jaeger <aj@suse.de>
31
32 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
33 i387_supply_fxsave.
34
35 2003-08-23 Mark Kettenis <kettenis@gnu.org>
36
37 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
38 i387_supply_register.
39 (go32_fetch_registers): Adjust call to i387_supply_fsave.
40 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
41 i387_supply_fsave.
42 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
43 i387_supply_fxsave.
44 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
45 i387_supply_fsave.
46 * i386bsd-nat.c (supply_fpregset): Adjust call to
47 i387_supply_fsave.
48 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
49 call to i387_supply_fxsave. Call i387_supply_fsave instead of
50 supply_fpregset.
51 (store_inferior_registers): Remove extraneous whitespace. Call
52 i387_fill_fsave instead of fill_fpregset.
53 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
54 (supply_fpregset): Likewise.
55 * i386v4-nat.c (supply_fpregset): Adjust call to
56 i387_supply_fsave.
57 * i386-interix-nat.c (supply_fpregset): Adjust call to
58 i387_supply_fsave.
59 * i386-linux-nat.c (supply_fpregset): Adjust call to
60 i387_supply_fsave.
61 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
62 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
63 i387supply_fsave and i387_supply_fxsave.
64 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
65 Incorporate code from `i387_supply_register.
66 (i387_supply_register): Remove.
67 (i387_supply_fxsave): Add `regnum' argument.
68 Update comments.
69 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
70 prototype.
71 (i387_supply_register): remove prototype.
72 Update comments.
73
74 2003-08-22 Michael Chastain <mec@shout.net>
75
76 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
77 Add lines for files in gdb/testsuite/gdb.cp/* that are
78 still not 8.3 unique.
79
80 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
81
82 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
83 TYPE_VPTR_FIELDNO is valid.
84
85 2003-08-19 Mark Kettenis <kettenis@gnu.org>
86
87 * utils.c (set_width_command): Remove prototypes.
88 (set_screen_size): New prototype.
89 (init_page_info): Simplify by fetching the screen size from
90 Readline. Call set_screen_size.
91 (set_screen_size): New function.
92 (set_width): Add missing whitespace in comment.
93 (set_width_command): Call set_screen_size.
94 (set_height_command): New function.
95 (initialize_utils): Fix formatting. Make "set height" command
96 call set_height_command. Remove redundant code that turns off
97 pagination if output isn't a terminal. Remove redundant call to
98 set_width_command.
99
100 2003-08-22 Mark Kettenis <kettenis@gnu.org>
101
102 * sparc64-tdep.h (sparc64_regnum): Fix comment.
103 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
104 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
105 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
106 `case' keyword.
107 (sparc64_register_info): Give the reister with number
108 SPARC64_STATE_REGNUM a name.
109 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
110 %asi and %ccr.
111 (sparc64_push_dummy_call): Take BIAS into account when checking
112 stcak alignment.
113 (sparc_software_single_step): Remove assertions that check whether
114 NPC and NNPC were zero.
115 (sparc_supply_rwindow): Make public. Merge functionality with
116 sparc64_supply_rwindow.
117 (sparc_fill_rwindow): Make public. Merge functionality with
118 sparc64_fill_rwindow.
119 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
120 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
121 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
122 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
123 sparc_supply_rwindow instead of sparc64_supply_rwindow.
124
125 * reggroups.c: Add whitespace after declarations of local
126 variables in functions.
127
128 2003-08-21 Michael Chastain <mec@shout.net>
129
130 * gdbtypes.h: Change array bound type from an int to enum.
131
132 2003-08-21 Andrew Cagney <cagney@redhat.com>
133
134 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
135 * config/sparc/tm-sparc.h: Ditto.
136 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
137 unconditionally.
138 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
139
140 2003-07-13 Mark Kettenis <kettenis@gnu.org>
141
142 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
143 (register_objfile_data, set_objfile_data, objfile_data): New
144 prototypes.
145 * objfiles.c (objfile_alloc_data, objfile_free_data): New
146 prototypes.
147 (allocate_objfile): Call objfile_alloc_data.
148 (free_objfile): Call objfile_free_data.
149 (struct objfile_data): New.
150 (struct objfile_data_registration): New.
151 (struct objfile_data_registry): New.
152 (objfile_data_registry): New variable.
153 (register_objfile_data): New function.
154 (objfile_alloc_data, objfile_free_data): New functions.
155 (set_objfile_data, objfile_data): New functions.
156 * dwarf2-frame.c (dwarf2_frame_data): New variable.
157 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
158 (_initialize_dwarf2_frame): New function and prototype.
159
160 2003-08-21 Andrew Cagney <cagney@redhat.com>
161
162 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
163 a specific architecture.
164 * arch-utils.h (set_architecture_from_arch_mach): Delete
165 declaration.
166 (target_architecture_hook): Delete declaration.
167 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
168 (default_float_format): Assume GDB_MULTI_ARCH.
169 (default_double_format): Assume GDB_MULTI_ARCH.
170 (set_endian_from_file): Delete function.
171 (arch_ok): Delete function.
172 (set_arch): Delete function.
173 (set_architecture_from_arch_mach): Delete function.
174 (set_architecture_from_file): Delete function.
175 (set_architecture): Assume GDB_MULTI_ARCH.
176 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
177
178 2003-08-21 Mark Kettenis <kettenis@gnu.org>
179
180 Rewrite FreeBSD/sparc64 native configuration.
181 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
182 * sparc64fbsd-nat.c: New file.
183 * sparc64fbsd-tdep.c: New file.
184 * sparc64-tdep.c sparc64-tdep.h: New files.
185 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
186 sparc64fbsd-tdep.o): New dependencies.
187 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
188 and sparc64fbsd-tdep.c.
189 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
190 * config/sparc/fbsd.mh: Remove copyright notice.
191 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
192 sparcbsd-nat.o.
193 * config/sparc/fbsd.mt: Remove copyright notice.
194 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
195 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
196 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
197 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
198 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
199 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
200 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
201 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
202 "sparc/tm-sp64.h".
203 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
204 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
205
206 2003-08-21 Michael Chastain <mec@shout.net>
207
208 * symtab.h: Add doco on the space critical structures and
209 some measurements of space usage.
210
211 2003-08-21 Michael Snyder <msnyder@redhat.com>
212
213 * tracepoint.c (trace_dump_command): Trace break address
214 is subject to DECR_PC_AFTER_BREAK.
215 (set_traceframe_context): Make "trace_line" an int.
216 Fixes suggested by Mark Newman <mark.newman@lmco.com>
217
218 2003-08-20 Michael Snyder <msnyder@redhat.com>
219
220 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
221 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
222 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
223 argument passing.
224 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
225 functions, replace sh_push_dummy_call.
226 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
227
228 2003-08-20 Michael Chastain <mec@shout.net>
229
230 * gdbtypes.h (struct main_type): Rearrange to save space.
231
232 2003-08-20 Michael Snyder <msnyder@redhat.com>
233
234 * trad-frame.c: Comment typo fix.
235
236 2003-08-20 Michael Snyder <msnyder@redhat.com>
237 Kevin Buettner <kevinb@redhat.com>
238
239 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
240 (frv_frame_init_saved_regs): Add declaration.
241 (frame_extra_info): Add new field ``saved_regs''.
242 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
243 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
244 Update frame related code.
245 (frv_extract_struct_value_address): Adjust formatting.
246 * Makefile.in (frv-tdep.o): Update dependencies.
247 * config/frv/tm-frv.h (target_insert_watchpoint)
248 (target_remove_watchpoint, target_insert_hw_breakpoint)
249 (target_remove_hw_breakpoint): Delete these macros.
250 (remote_insert_watchpoint, remote_remove_watchpoint)
251 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
252 these declarations.
253
254 2003-08-20 Michael Chastain <mec@shout.net>
255
256 * defs.h (ENUM_BITFIELD): New macro.
257 * symtab.h (ENUM_BITFIELD): Use it.
258 (BYTE_BITFIELD): Remove old macro, which was already disabled.
259
260 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
261
262 * MAINTAINERS (write after approval): Add myself.
263
264 2003-08-18 Andrew Cagney <cagney@redhat.com>
265
266 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
267 * gdbarch.h, gdbarch.c: Re-generate.
268 * infcall.c (call_function_by_hand): Adjust the SP by
269 frame_red_zone_size before allocating any stack space.
270 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
271 * x86-64-tdep.c (x86_64_frame_align): New function.
272 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
273
274 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
275 Remove code adjusting SP so that it skips over the Red Zone.
276
277 2003-08-18 Mark Kettenis <kettenis@gnu.org>
278
279 * NEWS (New native configurations): Mention FreeBSD/amd64.
280
281 2003-08-18 Andrew Cagney <cagney@redhat.com>
282
283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
284 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
285 "m68k_frame_p".
286 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
287
288 2003-08-18 Mark Kettenis <kettenis@gnu.org>
289
290 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
291
292 2003-08-18 Michal Ludvig <mludvig@suse.cz>
293
294 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
295 Define.
296 * i386-linux-nat.c: Include "linux-nat.h".
297 (child_post_startup_inferior): New function.
298
299 2003-08-18 Mark Kettenis <kettenis@gnu.org>
300
301 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
302 at the start of a frameless function. This probably fixes PR
303 backtrace/1338.
304
305 2003-08-17 Michael Chastain <mec@shout.net>
306
307 * symfile.c (find_sym_fns): Remove special case for apollo target.
308
309 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
310
311 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
312 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
313 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
314 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
315 (linux_supports_tracevforkdone): New function.
316 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
317 TRACEVFORKDONE.
318 (child_follow_fork): Handle vfork.
319 (linux_handle_extended_wait): Likewise. Also handle exec.
320 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
321 * NEWS: Mention fork tracing.
322
323 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
324
325 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
326
327 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
328
329 * Makefile.in (i386-linux-nat.o): Update dependencies.
330 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
331 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
332 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
333 * i386-linux-nat.c: Include "linux-nat.h".
334 (child_post_startup_inferior): New function.
335 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
336 * infptrace.c (kill_inferior): Wrap in #ifdef.
337 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
338 attaching to each LWP.
339 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
340 (init_lin_lwp_ops): Fill in some more operations.
341 * linux-nat.h (linux_enable_event_reporting)
342 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
343 prototypes.
344 * linux-nat.c (linux_enable_event_reporting): New function.
345 (child_post_attach, linux_child_post_startup_inferior)
346 (child_post_startup_inferior, child_follow_fork)
347 (linux_handle_extended_wait, kill_inferior): New functions.
348
349 2003-08-16 Andrew Cagney <cagney@redhat.com>
350
351 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
352 * gdbarch.h, gdbarch.c: Re-generate.
353
354 2003-08-16 Mark Kettenis <kettenis@gnu.org>
355
356 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
357
358 2003-08-16 Andrew Cagney <cagney@redhat.com>
359
360 * NEWS: Mention that "set prompt-escape-char" was deleted.
361 * top.c (get_prompt_1): Delete function.
362 (gdb_prompt_escape):
363 (init_main): Do not clear "gdb_prompt_escape". Delete "set
364 prompt-escape-char" command.
365 (MAX_PROMPT_SIZE): Delete macro.
366 (get_prompt): Simplify, do not call get_prompt_1.
367
368 2003-08-16 Andrew Cagney <cagney@redhat.com>
369
370 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
371 -Werror. -Wformat-nonliteral problems.
372
373 2003-08-15 J. Brobecker <brobecker@gnat.com>
374
375 Further multiarching work mostly for hppa64-*-hpux11:
376 * hppa-tdep.h: New file.
377 * hppa-tdep.c: #include hppa-tdep.c.
378 (hppa32_num_regs): Renamed from hppa_num_regs.
379 (hppa64_num_regs): New constant.
380 (hppa64_call_dummy_breakpoint_offset): New constant.
381 (hppa32_call_dummy_length): New constant.
382 (hppa64_call_dummy_length): New constant.
383 (hppa32_stack_align): Make name 32bit explicit.
384 (hppa32_register_virtual_type): Likewise.
385 (hppa32_extract_return_value): Likewise.
386 (hppa32_use_struct_convention): Likewise.
387 (hppa32_store_return_value): Likewise.
388 (hppa64_register_virtual_type): New function.
389 (hppa64_extract_return_value): New function.
390 (hppa64_use_struct_convention): New function.
391 (hppa64_store_return_value): New function.
392 (hppa_frame_locals_address): Remove declaration, function does
393 not exist anymore.
394 (hppa_register_byte): Add support for PA64 ABI.
395 (hppa_gdbarch_init): Add support for PA64 ABI.
396 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
397 Make name 32bit explicit.
398 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
399 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
400 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
401 (hppa64_hpux_frame_base_before_sigtramp): New function.
402 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
403 * config/pa/tm-hppa64.h: Remove macros that are no longer
404 necessary now that the gdbarch vector is properly setup.
405 Transform some macros into function calls. Some minor cleanup.
406 * config/pa/tm-hppah.h: Update function calls in macros
407 following the function renaming in hppa-hpux-tdep.c.
408 * Makefile.in (hppa_tdep_h): New variable.
409 (hppa-tdep.o): Add dependency over hppa_tdep_h.
410
411 2003-08-14 Michael Snyder <msnyder@redhat.com>
412
413 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
414
415 2003-08-13 J. Brobecker <brobecker@gnat.com>
416
417 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
418 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
419 routine.
420
421 2003-08-13 Michael Snyder <msnyder@redhat.com>
422
423 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
424 (frv_saved_pc_after_call): Use deprecated ftype.
425 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
426 (frv_remote_translate_xfer_address): Remove.
427 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
428
429 2003-08-13 J. Brobecker <brobecker@gnat.com>
430
431 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
432 initialization after the common gdbarch initialization, not before.
433
434 2003-08-13 J. Brobecker <brobecker@gnat.com>
435
436 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
437 (ADDR_BITS_REMOVE): Remove, redundant.
438
439 2003-08-13 J. Brobecker <brobecker@gnat.com>
440
441 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
442 gdbarch method to clear the 2 low bits of text addresses.
443
444 2003-08-12 Andrew Cagney <cagney@redhat.com>
445
446 * Makefile.in (dsrec.o): Update dependencies.
447 * dsrec.c: Include "gdb_assert.h".
448 (make_srec): Use snprintf instead of sprintf, use a literal format
449 string.
450
451 2003-08-12 Andrew Cagney <cagney@redhat.com>
452
453 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
454 FRAME_OBSTACK_ZALLOC.
455
456 2003-08-12 Kevin Buettner <kevinb@redhat.com>
457
458 * i386-tdep.c (i386_gdbarch_init): Enable default support for
459 SSE registers.
460
461 2003-08-10 Mark Kettenis <kettenis@gnu.org>
462
463 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
464 amd64fbsd_sc_reg_offset): Add extern declarations.
465 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
466 declarations.
467
468 2003-08-11 Ben Elliston <bje@wasabisystems.com>
469
470 * MAINTAINERS (write after approval): Update my mail address.
471
472 2003-08-10 Andrew Cagney <cagney@redhat.com>
473
474 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
475
476 2003-08-10 Mark Kettenis <kettenis@gnu.org>
477
478 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
479 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
480 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
481 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
482 i386bsd_sc_reg_offset): Add extern declarations.
483 * i386obsd-nat.c: Include "i386-tdep.h"
484 (_initialize_i386obsd_nat): Remove extern declarations.
485 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
486 declarations.
487 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
488 declarations.
489
490 * i386-tdep.c (i386_register_to_value): Use get_frame_register
491 instead of frame_read_register.
492 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
493 instead of frame_read_register. Use I386_ESP_REGNUM instead of
494 SP_REGNUM.
495 (i386_frame_prev_register): Use frame_unwind_register_unsigned
496 instead of frame_unwind_unsigned_register. Use
497 I386_EFLAGS_REGISTER instead of PS_REGNUM.
498 (i386_get_longjmp_target): Use regcache_read_unsigned_register
499 instead of read_register. Use builtin_type_void_data_ptr instead
500 of builtin_type_void_func_ptr when extracting the address of the
501 jmp_buf.
502 (i386_extract_return_value, i386_store_return_value,
503 i386_pseudo_register_read, i386_pseudo_register_write): Use
504 register_size instead REGISTER_RAW_SIZE.
505
506 2003-08-10 Andrew Cagney <cagney@redhat.com>
507
508 * infcall.c (call_function_by_hand): Use xstrprintf instead of
509 sprintf. Make "name" constant.
510
511 2003-08-10 Mark Kettenis <kettenis@gnu.org>
512
513 * i387-tdep.c (i387_register_to_value): Use get_frame_register
514 instead of frame_read_register.
515 (i387_print_float_info): Use get_frame_register and
516 get_frame_register_unsigned instead of frame_register_read.
517
518 * i386fbsd-nat.c: Include "i386-tdep.h".
519 (child_resume): Make `eflags' an ULONGEST. Use
520 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
521 instead of register_read and register_write.
522
523 * i386bsd-nat.c (fetch_inferior_registers,
524 store_inferior_registers): Don't use && at the end of a line.
525 (_initialize_i386bsd_nat): Fix typo.
526
527 * frame.c (_initialize_frame): Add missing backslash.
528
529 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
530 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
531 and supply_register instead of manipulating the register buffer
532 directly.
533
534 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
535 * config/i386/nm-i386sol2.h
536 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
537
538 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
539 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
540 instructions that GCC likes to mingle into the prologue. Fixes
541 gdb/1253 and gdb/1255.
542
543 2003-08-09 Andrew Cagney <cagney@redhat.com>
544
545 Fix GDB PR cli/926.
546 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
547 * command.h (add_setshow_uinteger_cmd): Declare.
548 * frame.c (set_backtrace_cmd): New function.
549 (show_backtrace_cmd): New function.
550 * frame.c (_initialize_frame): Replace "set/show
551 backtrace-below-main" with "set/show backtrace past-main". Add
552 command "set/show backtrace limit".
553 (backtrace_past_main): Rename "backtrace_below_main".
554 (backtrace_limit): New variable.
555 (get_prev_frame): Update. Check the backtrace_limit.
556
557 2003-08-09 Andrew Cagney <cagney@redhat.com>
558
559 * defs.h (xstrprintf): Declare.
560 * utils.c (xstrprintf): New function.
561 * breakpoint.c (insert_breakpoints): Replace sprintf and
562 non-literal format strings, with xstrprintf and cleanups.
563 (delete_breakpoint,breakpoint_re_set): Ditto.
564 (commands_command, insert_breakpoints): Ditto.
565 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
566 (break_at_finish_command_1): Ditto.
567
568 2003-08-09 Andrew Cagney <cagney@redhat.com>
569
570 * MAINTAINERS (language support): List Adam Fedor as Objective C
571 maintainer.
572
573 2003-08-08 J. Brobecker <brobecker@gnat.com>
574
575 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
576 are now multiarched.
577
578 2003-08-08 J. Brobecker <brobecker@gnat.com>
579
580 * config/pa/tm-hppa64.h: Remove lots of macros that are no
581 longer necessary now that hppa64 is partially multiarch'ed.
582
583 2003-08-08 Andrew Cagney <cagney@redhat.com>
584
585 * interps.c (interp_set): Check for a NULL "old_interp".
586
587 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
588
589 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
590 (install-only): Support DESTDIR.
591 (uninstall): Likewise.
592 (install-gdbtk): Likewise.
593
594 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
595
596 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
597 contains something meaningful at all times.
598
599 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
600
601 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
602
603 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
604
605 * MAINTAINERS (write after approval): Added self.
606
607 2003-08-07 Andrew Cagney <cagney@redhat.com>
608
609 * inferior.h (AT_SYMBOL): Define.
610 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
611 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
612 * mips-tdep.c (mips_call_dummy_address): Delete function.
613 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
614 set call_dummy_address.
615
616 2003-08-07 Andrew Cagney <cagney@redhat.com>
617
618 * language.c (op_error): Delete function.
619 (binop_type_check): Delete function.
620 * language.h (type_op_error, range_op_error): Delete macros.
621 (op_error): Delete declaration.
622
623 2003-08-07 Andrew Cagney <cagney@redhat.com>
624
625 * interps.h (INTERP_MI2, INTERP_MI3): Define.
626
627 2003-08-07 Michal Ludvig <mludvig@suse.cz>
628
629 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
630 (x86_64_push_arguments): Skip the red zone.
631
632 2003-08-05 Andrew Cagney <cagney@redhat.com>
633
634 * reggroups.c (reggroup_next): Check for the final entry.
635
636 2003-08-04 Andrew Cagney <cagney@redhat.com>
637
638 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
639 * cli/cli-script.c (define_command): Call query directly, instead
640 of passing it a buffer.
641 * ocd.c (ocd_error): Pass error a constant format string.
642 * remote-mips.c (mips_error): Use fputs_filtered.
643
644 * solib-svr4.c (_initialize_svr4_solib): Update
645 register_gdbarch_data call.
646 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
647
648 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
649 (register_gdbarch_data): Delete "free" parameter. Update
650 comments.
651 * gdbarch.h, gdbarch.c: Re-generate.
652 * reggroups.c (_initialize_reggroup): Update.
653 * gnu-v3-abi.c (init_gnuv3_ops): Update.
654 * frame-base.c (_initialize_frame_base): Update.
655 * frame-unwind.c (_initialize_frame_unwind): Update.
656 * user-regs.c (_initialize_user_regs): Update.
657 * remote.c (_initialize_remote): Update.
658 * regcache.c (_initialize_regcache): Update.
659
660 * regcache.c (xfree_regcache_descr): Delete function.
661 (_initialize_regcache): Update call to register_gdbarch_data.
662 (init_regcache_descr, init_legacy_regcache_descr): Use
663 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
664
665 * remote.c (free_remote_state): Delete function.
666 (_initialize_remote): Update register_gdbarch_data.
667 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
668 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
669
670 2003-08-04 Andrew Cagney <cagney@redhat.com>
671
672 * reggroups.c (struct reggroup_el): Define.
673 (struct reggroups): Delete field "nr_group". Replace array
674 "group" with a "first" to "last" linked list.
675 (reggroups_init): Update. Allocate using gdbarch's obstack.
676 (reggroups_free): Delete function.
677 (add_group): Update. Add "el" parameter.
678 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
679 (default_groups): Update.
680 (reggroup_next): Replace reggroups.
681 (reggroups_dump): Update.
682 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
683 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
684 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
685
686 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
687
688 * Makefile.in (tui-interp.o): Update dependencies.
689
690 2003-08-04 David Carlton <carlton@kealia.com>
691
692 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
693 to internal_error call.
694 * source.c (forward_search_command): Add "%s" format argument.
695 (reverse_search_command): Ditto.
696 * top.c (quit_confirm): Ditto.
697 * cli/cli-setshow.c (do_setshow_command): Ditto.
698 * cp-valprint.c (cp_print_class_method): Replace
699 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
700 (cp_print_class_member): Ditto.
701 * event-top.c (command_line_handler): Ditto.
702 * linux-proc.c (linux_info_proc_cmd): Ditto.
703 * p-typeprint.c (pascal_type_print_base): Ditto.
704 * p-valprint.c (pascal_object_print_class_method): Ditto.
705 (pascal_object_print_class_member): Ditto.
706 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
707 * remote.c (remote_cisco_section_offsets): Ditto.
708 * top.c (command_line_input): Ditto.
709 * utils.c (vwarning,error_stream,quit): Ditto.
710 * valprint.c (print_floating,print_binary_chars)
711 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
712
713 2003-08-04 Andrew Cagney <cagney@redhat.com>
714
715 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
716
717 2003-08-02 Andrew Cagney <cagney@redhat.com>
718
719 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
720 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
721 amd64fbsd-nat.c.
722
723 2003-08-02 Andrew Cagney <cagney@redhat.com>
724
725 * Makefile.in: Update all dependencies and definitions.
726
727 2003-08-02 Adam Fedor <fedor@gnu.org>
728
729 * linespec.c (is_objc_method_format): New function
730 (decode_line_1, locate_first_half): Use it.
731 Fixes PR objc/1298
732
733 2003-08-01 Andrew Cagney <cagney@redhat.com>
734
735 * NEWS: Mention that m32r is multi-arch.
736 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
737 * configure.tgt: Recognize m32r-*-*.
738 * config/m32r/tm-m32r.h: Delete file.
739 * config/m32r/m32r.mt: New file.
740 * m32r-rom.c (m32r_upload_command): Use hostent only when
741 gethostname succeeds, in order to avoid a compilation
742 warning.
743 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
744 compiler warning.
745
746 2003-08-01 Michael Snyder <msnyder@redhat.com>
747
748 * sh-tdep.c (sh_frame_align): New gdbarch method.
749 (sh_gdbarch_init): Set up frame_align method.
750
751 2003-07-31 Michael Snyder <msnyder@redhat.com>
752
753 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
754 which is already covered by the new frames infrastructure.
755
756 2003-07-31 Andrew Cagney <cagney@redhat.com>
757
758 * user-regs.c (struct user_reg): Add "next" link.
759 (struct user_regs): Replace "user" with "first" and "last" links.
760 (append_user_reg): Add pre-allocated "reg" parameter.
761 (builtin_user_regs): Provide initial value for "last".
762 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
763 (user_regs_init): Allocate memory from the gdbarch obstack.
764 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
765 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
766 linked list.
767 (usernum_to_user_reg): New function.
768 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
769 (value_of_user_reg): Use usernum_to_user_reg.
770 (user_regs_free): Delete function.
771 (_initialize_user_regs): Update register_gdbarch_data call.
772
773 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
774
775 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
776
777 2003-07-30 Michael Snyder <msnyder@redhat.com>
778
779 * value.h (value_being_returned): Add a struct_addr argument.
780 * infcall.c (call_function_by_hand): Pass struct_addr to
781 value_being_returned.
782 * infcmd.c (print_return_value): Pass zero as struct_addr.
783 * values.c (value_being_returned): If struct_addr is passed,
784 use it instead of trying to recover it from the inferior.
785
786 2003-07-30 Kevin Buettner <kevinb@redhat.com>
787
788 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
789 the prologue analyzer won't need to attempt to extract the pc
790 value from the woefully incomplete dummy frame.
791 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
792 possible. Disable code which modifies the frame.
793
794 2003-07-28 Andrew Cagney <cagney@redhat.com>
795
796 * annotate.c (annotate_breakpoints_headers): Restrict annotation
797 to level 2.
798 (annotate_breakpoints_table, annotate_record): Ditto.
799 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
800 (annotate_field_name_end, annotate_field_value): Ditto.
801 (annotate_field_end, annotate_frame_source_begin): Ditto.
802 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
803 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
804 (annotate_frame_begin, annotate_frame_function_name): Ditto.
805 (annotate_frame_address_end, annotate_frame_address): Ditto.
806 (annotate_frame_args, annotate_frame_end): Ditto.
807 (annotate_frame_where, annotate_arg_begin): Ditto.
808 (annotate_arg_name_end, annotate_arg_value): Ditto.
809 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
810 (annotate_function_call, annotate_signal_name): Ditto.
811 (annotate_signal_string, annotate_signal_name_end): Ditto.
812 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
813 (annotate_value_begin, annotate_value_history_value): Ditto.
814 (annotate_value_history_end, annotate_value_end): Ditto.
815 (annotate_display_begin, annotate_display_number_end): Ditto.
816 (annotate_display_format, annotate_display_expression): Ditto.
817 (annotate_display_expression_end, annotate_display_value): Ditto.
818 (annotate_display_end, annotate_array_section_begin): Ditto.
819 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
820 (annotate_elt, annotate_array_section_end): Ditto.
821
822 2003-07-28 Andrew Cagney <cagney@redhat.com>
823
824 * regcache.c (struct regcache_descr): Update comments on
825 nr_raw_registers.
826 (init_legacy_regcache_descr): Don't set nr_raw_registers or
827 sizeof_raw_register_valid_p.
828 (init_regcache_descr): Set nr_raw_registers and
829 sizeof_raw_register_valid_p before calling
830 init_legacy_regcache_descr.
831
832 2003-07-28 Andrew Cagney <cagney@redhat.com>
833
834 * mips-tdep.c (print_gp_register_row): Print the GPR's register
835 MOD NUM_REGS.
836
837 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
838
839 * thread.c (info_threads_command): Use get_selected_frame ().
840 Check that there is at least one non-sentinel frame.
841
842 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
843
844 * m68hc11-tdep.c (struct frame_extra_info): Remove.
845 (m68hc11_pop_frame): Remove.
846 (m68hc11_frame_saved_pc): Remove.
847 (m68hc11_frame_chain): Remove.
848 (m68hc11_frame_init_saved_regs): Remove.
849 (m68hc11_init_extra_frame_info): Remove.
850 (m68hc11_store_struct_return): Remove.
851 (m68hc11_saved_pc_after_call): Remove.
852
853 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
854
855 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
856 frame unwind information.
857 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
858 and adapted for frame unwinding.
859 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
860 (m68hc11_unwind_pc): New function.
861 (m68hc11_frame_unwind_cache): New function to analyze frames.
862 (m68hc11_frame_this_id): New function to create new frame struct.
863 (m68hc11_frame_prev_register): New function to unwind a register from
864 the frame.
865 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
866 (m68hc11_frame_p): New function for the above.
867 (m68hc11_frame_base_address): New function to return fp of frame.
868 (m68hc11_frame_args_address): Update for frame.
869 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
870 (m68hc11_unwind_sp): New function.
871 (m68hc11_unwind_dummy_id): New function.
872 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
873 calls.
874
875 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
876
877 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
878 (m68hc11_guess_from_prologue): Advance the pc and frame size only
879 when we are beyond the current pc.
880
881 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
882
883 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
884 from m68hc11_push_arguments.
885 (m68hc11_push_arguments): Remove.
886 (m68hc11_push_return_address): Remove.
887 (m68hc11_gdbarch_init): Install the above; remove above deprecated
888 handlers; remove deprecated_extra_stack_alignment_needed.
889
890 2003-07-27 Andrew Cagney <cagney@redhat.com>
891
892 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
893 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
894 REAL_PC and not the pointer.
895 * hppa-hpux-tdep.c: Include frame.h
896
897 2003-07-27 Andrew Cagney <cagney@redhat.com>
898
899 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
900 GDB_MULTI_ACH_PARTIAL.
901
902 2003-07-27 Andrew Cagney <cagney@redhat.com>
903
904 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
905 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
906 operator at start and not end of line.
907 (decode_prologue): Ditto.
908 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
909 frame_unwind_register_unsigned instead of
910 frame_unwind_unsigned_register.
911 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
912 read_register.
913 (m32r_push_dummy_call): Use register_size instead of
914 REGISTER_RAW_SIZE.
915 (m32r_frame_sniffer): Replace m32r_frame_p.
916 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
917 * m32r-rom.c (report_transfer_performance): Delete extern
918 declaration.
919 (m32r_load, m32r_upload_command): Use print_transfer_performance
920 instead of report_transfer_performance.
921 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
922 / add_show_from_set.
923
924 2003-07-26 Andrew Cagney <cagney@redhat.com>
925
926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
927 store_return_value and extract_struct_value_address.
928
929 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
930
931 PR c++/1267
932 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
933 NULL, default to the section containing PC.
934
935 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
936
937 * NEWS: Mention "regs" deprecated for m68hc11 too.
938
939 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
940 (m68hc11_print_register): New function to print out one register.
941 (m68hc11_print_registers_info): New function to print registers.
942 (show_regs): Deprecate and use the above.
943 (m68hc11_gdbarch_init): Install the print_registers_info.
944
945 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
946
947 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
948 that we have a SIGTRAP before returning non-zero.
949
950 2003-07-23 Michal Ludvig <mludvig@suse.cz>
951 Elena Zannoni <ezannoni@redhat.com>
952
953 * linespec.c (decode_line_2): Avoid crash if
954 find_function_start_sal() returns empty record.
955
956 2003-07-23 Andreas Schwab <schwab@suse.de>
957
958 * ia64-tdep.c (ia64_print_insn): New function.
959 (ia64_gdbarch_init): Set print_insn to it.
960 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
961 deprecated_tm_print_insn_info.
962
963 2003-07-22 Michael Snyder <msnyder@redhat.com>
964
965 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
966 handle 8-bit returns (long long).
967 (h8300h_extract_return_value): Ditto.
968 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
969
970 2003-07-22 Andrew Cagney <cagney@redhat.com>
971
972 * gdbarch.c Include "gdb_obstack.h".
973 (struct gdbarch): Add an "obstack".
974 (alloc_gdbarch_data): Allocate the gdbarch data using
975 GDBARCH_OBSTACK_CALLOC.
976 (free_gdbarch_data): Delete function.
977 (gdbarch_obstack_zalloc): New function.
978 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
979 Assert that the architecture is not initialized.
980 (gdbarch_alloc): Allocate an obstack, allocate the architecture
981 vector from the obstack.
982 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
983 architecture obstack.
984 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
985 (set_gdbarch_data): Assert that the data is not initialized.
986 (struct gdbarch_data): Delete member "free".
987 (register_gdbarch_data): Do not initialize "free".
988 * gdbarch.h, gdbarch.c: Re-generate.
989
990 2003-07-22 Andrew Cagney <cagney@redhat.com>
991
992 * configure.in (build_warnings): Add -Wformat-nonliteral.
993 * configure: Re-generate.
994
995 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
996
997 * dwarf2loc.c (locexpr_describe_location): Fix typos.
998
999 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1000
1001 * findvar.c (read_var_value): Remove case for thread local storage
1002 variables. It is now entirely handled by the dwarf2 location
1003 expression code.
1004 * printcmd.c (address_info): Ditto.
1005 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1006 enumeration value.
1007 (struct symbol): Remove objfile field, which was used by
1008 LOC_THREAD_LOCAL_STATIC only.
1009 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1010 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1011 usage of objfile pointer.
1012 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1013 thread local variables.
1014 Add include of objfiles.h.
1015 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1016 storage variables.
1017 * Makefile.in (dwarf2loc.o): Update dependencies.
1018
1019 2003-07-22 Andrew Cagney <cagney@redhat.com>
1020
1021 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1022 get_frame_base.
1023 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1024 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1025 (struct value): Add opaque declaration.
1026 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1027
1028 2003-07-21 Andrew Cagney <cagney@redhat.com>
1029
1030 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1031 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1032
1033 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1034
1035 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1036 regcache_cooked_read_unsigned instead of read_register.
1037 (m68hc11_saved_pc_after_call): Likewise.
1038 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1039 instead of write_register.
1040 (m68hc11_register_type): New function.
1041 (m68hc11_register_virtual_type): Remove.
1042 (m68hc11_store_return_value): Convert to use the regcache.
1043 (m68hc11_extract_struct_value_address): Likewise.
1044 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1045 m68hc11_register_type; undeprecate store_return_value and
1046 extract_struct_value_address.
1047
1048 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1049
1050 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1051 and translate to use regcache.
1052 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1053
1054 2003-07-18 Andrew Cagney <cagney@redhat.com>
1055
1056 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1057 * gdbarch.h, gdbarch.c: Re-generate.
1058 * i386-tdep.c (i386_gdbarch_init): Do not set
1059 DWARF2_BUILD_FRAME_INFO.
1060 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1061 unconditionally.
1062 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1063 DWARF2_BUILD_FRAME_INFO.
1064
1065 2003-07-18 Andrew Cagney <cagney@redhat.com>
1066
1067 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1068 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1069
1070 2003-07-18 Andrew Cagney <cagney@redhat.com>
1071
1072 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1073 frame_unwind_address_in_block, instead of frame_pc_unwind.
1074 (dwarf2_frame_cache): Ditto.
1075
1076 2003-07-18 Andrew Cagney <cagney@redhat.com>
1077
1078 * user-regs.h (struct gdbarch): Declare opaque.
1079 * ui-out.h (struct ui_file): Declare opaque.
1080 * dwarf2-frame.h (struct frame_info): Declare opaque.
1081
1082 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1083
1084 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1085 #include "...".
1086 (procfs_meminfo): Change strerror to safe_strerror.
1087 (procfs_can_run): Remove K&R badness.
1088
1089 2003-07-17 Michael Snyder <msnyder@redhat.com>
1090
1091 * remote-sim.c: Comment typo fix.
1092
1093 2003-07-17 Andrew Cagney <cagney@redhat.com>
1094
1095 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1096 configure.
1097 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1098 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1099 GDB_MULTI_ARCH_PARTIAL.
1100
1101 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1102
1103 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1104 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1105 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1106
1107 2003-07-16 Theodore A. Roth <troth@openavr.org>
1108
1109 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1110 found.
1111 (avr_frame_unwind_cache): Don't unwind FP for main.
1112 Update a comment.
1113 Save the computed prev_sp.
1114 (avr_saved_regs_unwinder): Remove function.
1115 (avr_frame_prev_register): Use PC unwind logic from
1116 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1117
1118 2003-07-16 Andrew Cagney <cagney@redhat.com>
1119
1120 * frame-base.h (frame_base_p_ftype): Delete definition.
1121 (frame_base_append_predicate): Delete declaration.
1122 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1123 (frame_unwind_append_predicate): Delete declaration.
1124 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1125 (append_predicate): Delete parameter "p".
1126 (frame_unwind_append_predicate): Delete function.
1127 (frame_unwind_append_sniffer): Update call to append_predicate.
1128 (frame_unwind_free): Delete function.
1129 (_initialize_frame_unwind): Pass NULL as "free" to
1130 register_gdbarch_data.
1131 (frame_unwind_init): Append the dummy_frame_sniffer.
1132 (frame_unwind_find_by_frame): Simplify.
1133 * frame-base.c (struct frame_base_table): Delete field "p".
1134 (append_predicate): Delete parameter "p".
1135 (frame_base_append_predicate): Delete function.
1136 (frame_base_append_sniffer): Update call to append_predicate.
1137 (frame_base_free): Delete function.
1138 (frame_base_find_by_frame): Simplify.
1139 (_initialize_frame_base): Pass NULL as "free" to
1140 register_gdbarch_data.
1141 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1142 (x86_64_sigtramp_frame_sniffer): Replace
1143 "x86_64_sigtramp_frame_p".
1144 (x86_64_init_abi): Set the frame unwind sniffers.
1145 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1146 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1147 (m68k_gdbarch_init): Set the frame unwind sniffers.
1148 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1149 "i386_sigtramp_frame_p".
1150 (i386_frame_sniffer): Replace "i386_frame_p".
1151 (i386_gdbarch_init): Set the frame unwind sniffers.
1152 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1153 (avr_gdbarch_init): Set the frame unwind sniffers.
1154 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1155 "alpha_sigtramp_frame_p"
1156 (alpha_heuristic_frame_sniffer): Replace
1157 "alpha_heuristic_frame_p".
1158 (alpha_gdbarch_init): Set the frame unwind sniffers.
1159 (alpha_dwarf2_init_abi): Ditto.
1160 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1161 "alpha_debug_frame_p".
1162 (alpha_mdebug_frame_base_sniffer): Replace
1163 "alpha_mdebug_frame_base_p".
1164 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1165 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1166 (d10v_gdbarch_init): Set the frame unwind sniffer.
1167 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1168 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1169 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1170 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1171 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1172 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1173
1174 2003-07-16 Michael Snyder <msnyder@redhat.com>
1175
1176 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1177 should go thru sh_dsp_register_sim_regno, else the dsp regs
1178 will not get the right values.
1179
1180 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1181
1182 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1183 deprecated_store_floating by call to store_typed_floating.
1184 (sh_sh4_register_convert_to_raw): Substitute call to
1185 deprecated_extract_floating by call to extract_typed_floating.
1186
1187 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1188
1189 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1190
1191 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1192
1193 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1194 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1195 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1196 as possible.
1197 (do_pseudo_register): Remove.
1198 (sh_push_dummy_code): New function.
1199 (sh64_store_struct_return): Rename from sh_store_struct_return.
1200 Only called for sh64 now.
1201 (sh_extract_struct_value_address): Regcache'ify.
1202 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1203 and accomodate new tasks.
1204 (sh64_push_return_address): Rename from sh_push_return_address.
1205 Only called for sh64 now.
1206 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1207 Regcache'ify.
1208 (sh3e_sh4_extract_return_value): Regcache'ify.
1209 (sh_default_store_return_value): Ditto.
1210 (sh3e_sh4_store_return_value): Ditto.
1211 (sh_default_register_byte): Remove.
1212 (sh_sh4_register_byte): Remove.
1213 (sh_default_register_raw_size): Remove.
1214 (sh_sh4_register_raw_size): Remove.
1215 (sh_register_virtual_size): Remove.
1216 (sh_sh3e_register_virtual_type): Remove.
1217 (sh_sh3e_register_type): New function.
1218 (sh_sh4_register_virtual_type): Remove.
1219 (sh_sh4_register_type): New function.
1220 (sh_default_register_virtual_type): Remove.
1221 (sh_default_register_type): New function.
1222 (do_fv_register_info): Add parameters to accomodate call from
1223 sh_print_registers_info.
1224 (do_dr_register_info): Ditto.
1225 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1226 Add parameters to accomodate call from sh_print_registers_info.
1227 (sh_do_fp_register): Ditto.
1228 (sh64_do_pseudo_register): Call do_dr_register_info,
1229 do_fv_register_info and sh_do_fp_register with default parameters.
1230 (sh_do_register): Add parameters to accomodate call from
1231 sh_print_registers_info.
1232 (sh_print_register): Ditto.
1233 (sh_print_registers_info): Rename from sh_do_registers_info.
1234 Add parameters to be used as gdbarch_print_registers_info
1235 implementation. Accomodate removed do_pseudo_register function
1236 pointer.
1237 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1238 function pointer. Call sh_print_register with default parameters.
1239 (sh64_do_registers_info): Call sh_print_registers_info instead of
1240 sh_do_registers_info.
1241 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1242 detection of deprecated vs. non-deprecated functionality.
1243 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1244 function pointer assignments by direct function calls.
1245
1246 2003-07-15 Andrew Cagney <cagney@redhat.com>
1247
1248 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1249 (frame_register_unwind, create_new_frame): Ditto.
1250 (legacy_get_prev_frame, get_frame_type): Ditto.
1251 (get_frame_base_address): Use frame_base_find_by_frame.
1252 (get_frame_locals_address): Use frame_base_find_by_frame.
1253 (get_frame_args_address): Use frame_base_find_by_frame.
1254 * frame-base.h (frame_base_sniffer_ftype): Declare.
1255 (frame_base_append_sniffer): Declare.
1256 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1257 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1258 (frame_base_append_sniffer): New function.
1259 (frame_base_append_predicate): Add a NULL sniffer.
1260 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1261 (struct frame_base_table): Add "sniffer".
1262 (frame_base_free): Free the "sniffer" table.
1263 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1264 (frame_unwind_append_sniffer): Declare.
1265 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1266 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1267 (struct frame_unwind_table): Add "sniffer", delete "middle".
1268 (append_predicate): Add "sniffer" parameter, append the sniffer.
1269 (frame_unwind_init): Update append_predicate call.
1270 (frame_unwind_append_sniffer): New function.
1271 (frame_unwind_append_predicate): Update append_predicate call.
1272 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1273
1274 2003-07-15 Andrew Cagney <cagney@redhat.com>
1275
1276 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1277 before code inhibiting repeated unwind attempts. Add to
1278 commentary on that test's problems.
1279 * blockframe.c (inside_main_func): Look for "main" in the minimal
1280 symbol table.
1281 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1282 identical.
1283
1284 2003-07-15 Andrew Cagney <cagney@redhat.com>
1285
1286 * complaints.c (struct explanation): Define.
1287 (struct complaints): Change type of "explanation" to "struct
1288 explanation".
1289 (symfile_explanations): Convert to a "struct explanation" table.
1290 (vcomplaint): Update.
1291
1292 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1293
1294 * x86-64-linux-nat.c (regmap): Removed.
1295 (supply_gregset, fill_gregset): Call
1296 x86_64_linux_(fill,supply)_gregset functions.
1297 * x86-64-linux-tdep.c (USER_*): New defines.
1298 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1299 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1300 New functions.
1301 (fetch_core_registers): Ditto.
1302 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1303 * x86-64-linux-tdep.h: New file.
1304 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1305 and core-regset.o.
1306 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1307
1308 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1309
1310 * x86-64-tdep.c (x86_64_store_return_value): Use
1311 regcache_cooked_write_part instead of regcache_cooked_write.
1312
1313 * configure.host: Add x86_64-*-freebsd*.
1314 * configure.tgt: Add x86_64-*-freebsd*.
1315 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1316 * amd64fbsd-nat.c: New file.
1317 * amd64fbsd-tdep.c: New file.
1318 * config/i386/nm-fbsd64.h: New file.
1319 * config/i386/fbsd64.mh: New file.
1320 * config/i386/fbsd64.mt: New file.
1321
1322 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1323
1324 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1325 `sc_regs_offset' and `sc_fpregs_offset'.
1326 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1327 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1328 (alpha_sigtramp_register_address): Rewrite to use new members of
1329 `struct gdbarch_tdep'.
1330 (alpha_gdbarch_init): Initialize new members of struct
1331 gdbarch_tdep'.
1332 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1333 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1334 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1335 (alphafbsd_pc_in_sigtramp): Implement.
1336 (alphafbsd_sigtramp_offset): New function.
1337 (alphafbsd_sigcontext_addr): New function.
1338 (alphafbsd_init_abi): Initialize signal trampoline related members
1339 of `struct gdbarch_tdep'.
1340 (_initialize_alphafbsd_tdep): Add prototype.
1341
1342 2003-07-11 Theodore A. Roth <troth@openavr.org>
1343
1344 * Makefile.in (install-only): Quote sed expression when generating
1345 transformed_name.
1346
1347 2003-07-11 Richard Henderson <rth@redhat.com>
1348
1349 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1350 * dwarf2-frame.c: Include complaints.h.
1351 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1352 variable initialization; return NULL on error.
1353 (decode_frame_entry): New.
1354
1355 2003-07-11 Andrew Cagney <cagney@redhat.com>
1356
1357 * frame.h (frame_address_in_block): Delete declaration.
1358 * blockframe.c (frame_address_in_block): Delete function.
1359 (get_frame_block): Use get_frame_address_in_block.
1360 (block_innermost_frame): Ditto.
1361 * stack.c (print_frame, backtrace_command_1): Ditto.
1362
1363 * frame.h (get_frame_address_in_block): Declare.
1364 (frame_unwind_address_in_block): Declare.
1365 * frame.c (frame_unwind_address_in_block): New function.
1366 (get_frame_address_in_block): New function.
1367
1368 2003-07-10 Andrew Cagney <cagney@redhat.com>
1369
1370 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1371 pre-default. Note: re-generate has no effect.
1372
1373 2003-07-10 Andrew Cagney <cagney@redhat.com>
1374
1375 * gdbarch.sh: When a variable, but not a function, compare against
1376 0. Fix problem in previous patch.
1377 * gdbarch.c: Re-generate.
1378
1379 2003-07-10 Andrew Cagney <cagney@redhat.com>
1380
1381 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1382 functions against NULL, not 0.
1383 * gdbarch.c: Re-generate.
1384
1385 2003-07-10 Fred Fish <fnf@ninemoons.com>
1386
1387 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1388 null string instead of a null pointer.
1389 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1390
1391 2003-07-09 Michael Snyder <msnyder@redhat.com>
1392
1393 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1394
1395 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1396
1397 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1398 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1399 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1400 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1401 * x86-64-tdep.c: ... from here.
1402
1403 2003-07-09 Andreas Schwab <schwab@suse.de>
1404
1405 * m68k-tdep.h (enum struct_return): Define.
1406 (struct gdbarch_tdep): Add struct_return.
1407 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1408 bytes are padded to the right, not to the left. Pass struct value
1409 address in register %a1, not on stack.
1410 (m68k_use_struct_convention): New function.
1411 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1412 struct_return in tdep to pcc_struct_return.
1413 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1414 reg_struct_return.
1415
1416 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1417
1418 * somread.c (som_symfile_offsets): Fix compilation error.
1419
1420 2003-07-09 Andrew Cagney <cagney@redhat.com>
1421
1422 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1423 Add comments about the checks.
1424
1425 2003-07-08 Andrew Cagney <cagney@redhat.com>
1426
1427 * Makefile.in: Make dependency section headers consistent.
1428 (config_h): Move to $BUILD headers section.
1429 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1430 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1431 (ada-exp.tab.c): Move to YACC/LEX section.
1432 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1433 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1434
1435 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1436
1437 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1438 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1439 of strerror with safe_strerror, use ISO C function definitions,
1440 and replace instances of sprintf with snprintf.
1441
1442 2003-07-07 Andrew Cagney <cagney@redhat.com>
1443
1444 * frame.c (get_prev_frame): Enable check for identical frames.
1445 Update comments. Update error messages.
1446
1447 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1448
1449 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1450
1451 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1452
1453 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1454 sort_symtab_syms, no longer necessary.
1455
1456 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1457
1458 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1459
1460 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1461
1462 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1463 (mips_register_byte): Likewise.
1464
1465 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1466
1467 * Makefile.in (sparc_tdep_h): New.
1468 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1469 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1470 * sparc-linux-nat.c: Include "sparc-tdep.h".
1471 * sparc-nat.c: Likewise.
1472 * sparc-tdep.c: Likewise.
1473 * sparc64nbsd-nat.c: Likewise.
1474 * sparcnbsd-nat.c: Likewise.
1475 * sparcnbsd-tdep.c: Likewise.
1476 * sparc-tdep.h: New file.
1477 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1478 and sparc_npc_regnum.
1479
1480 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1481
1482 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1483 (mips_linux_cannot_store_register): List supported instead of
1484 unsupported registers.
1485
1486 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1487
1488 * disasm.c (dump_insns): Separate instructions from addresses.
1489
1490 2003-07-07 Andreas Schwab <schwab@suse.de>
1491
1492 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1493 dependencies.
1494 * m68k-tdep.c (NUM_FREGS): Delete.
1495 (SIG_PC_FP_OFFSET): Delete.
1496 (TARGET_M68K): Delete.
1497 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1498 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1499 P_MOVEL_SP, P_MOVEML_SP): Define.
1500 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1501 P_TRAP): Delete.
1502 (m68k_register_raw_size): Delete.
1503 (m68k_register_virtual_size): Delete.
1504 (m68k_register_type): Renamed from m68k_register_virtual_type and
1505 add gdbarch argument.
1506 (m68k_store_struct_return): Delete.
1507 (m68k_deprecated_extract_return_value): Delete.
1508 (m68k_deprecated_extract_struct_value_address): Delete.
1509 (m68k_frame_chain): Delete.
1510 (m68k_frame_saved_pc): Delete.
1511 (m68k_fix_call_dummy): Delete.
1512 (m68k_push_dummy_frame): Delete.
1513 (m68k_pop_frame): Delete.
1514 (m68k_extract_return_value): New function.
1515 (m68k_store_return_value): Rewrite using regcache.
1516 (m68k_extract_struct_value_address): Rewrite using regcache.
1517 (m68k_push_dummy_call): New function.
1518 (struct m68k_frame_cache): Define.
1519 (m68k_alloc_frame_cache): New function.
1520 (m68k_analyze_frame_setup): New function.
1521 (m68k_analyze_register_saves): New function.
1522 (m68k_analyze_prologue): New function.
1523 (m68k_skip_prologue): Rewrite using above functions.
1524 (m68k_unwind_pc): New function.
1525 (m68k_frame_cache): New function.
1526 (m68k_frame_this_id): New function.
1527 (m68k_frame_prev_register): New function.
1528 (m68k_frame_unwind): New variable.
1529 (m68k_frame_p): New function.
1530 (m68k_sigtramp_frame_cache): New function.
1531 (m68k_sigtramp_frame_this_id): New function.
1532 (m68k_sigtramp_frame_prev_register): New function.
1533 (m68k_sigtramp_frame_unwind): New variable.
1534 (m68k_sigtramp_frame_p): New function.
1535 (m68k_frame_base_address): New function.
1536 (m68k_frame_base): New function.
1537 (m68k_unwind_dummy_id): New function.
1538 (fill_gregset): Use regcache_collect.
1539 (fill_fpregset): Likewise.
1540 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1541 defined.
1542 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1543 deprecated_init_frame_pc, deprecated_store_struct_return,
1544 deprecated_extract_return_value, deprecated_store_return_value,
1545 deprecated_frame_chain, deprecated_frame_saved_pc,
1546 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1547 deprecated_register_virtual_size,
1548 deprecated_max_register_raw_size,
1549 deprecated_max_register_virtual_size,
1550 deprecated_register_virtual_type, deprecated_register_size,
1551 deprecated_register_byte, deprecated_register_bytes,
1552 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1553 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1554 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1555 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1556 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1557 deprecated_push_dummy_frame, deprecated_pop_frame,
1558 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1559 only if SYSCALL_TRAP is defined. Set extract_return_value,
1560 store_return_value, extract_struct_value_address, register_type,
1561 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1562 predicates.
1563 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1564 M68K_MAX_REGISTER_SIZE): Define.
1565 (struct m68k_sigtramp_info): Define.
1566 (struct gdbarch_tdep): Add get_sigtramp_info.
1567 * m68klinux-nat.c (fetch_register): Use register_size instead of
1568 REGISTER_RAW_SIZE. Don't put assignment in if.
1569 (store_register): Likewise.
1570 (fetch_inferior_registers): Likewise.
1571 (store_inferior_registers): Likewise.
1572 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1573 (m68k_linux_frame_saved_pc): Delete.
1574 (m68k_linux_sigcontext_reg_offset,
1575 m68k_linux_ucontext_reg_offset): Define.
1576 (m68k_linux_get_sigtramp_info): New function.
1577 (m68k_linux_extract_return_value): Rewrite using regcache.
1578 (m68k_linux_store_return_value): Likewise.
1579 (m68k_linux_extract_struct_value_address): Likewise.
1580 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1581 Don't set deprecated_frame_saved_pc,
1582 deprecated_extract_return_value, deprecated_store_return_value,
1583 deprecated_extract_struct_value_address. Set
1584 extract_return_value, store_return_value,
1585 extract_struct_value_address.
1586
1587 2003-07-07 Andrew Cagney <cagney@redhat.com>
1588
1589 * expprint.c: Include "user-regs.h" instead of "frame.h".
1590 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1591 frame_map_regnum_to_name.
1592 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1593 (frame_map_name_to_regnum): Simplify, call
1594 user_reg_map_name_to_regnum.
1595 (frame_map_regnum_to_name): Simplify, call
1596 user_reg_map_regnum_to_name.
1597 (frame_register_unwind): Update.
1598 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1599 (_initialize_frame_reg): Call user_reg_add_builtin.
1600 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1601 (value_of_register): Use value_of_user_reg.
1602 * eval.c (evaluate_subexp_standard): Update.
1603 * parse.c (write_dollar_variable): Update.
1604 * d10v-tdep.c (d10v_print_registers_info): Update.
1605 * infcmd.c (registers_info): Update.
1606 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1607 (builtin_regs_h): Delete macro.
1608 (user_regs_h): Define.
1609 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1610 (builtin-regs.o): Delete target.
1611 (user-regs.o): Specify dependencies.
1612 (expprint.o): Update dependencies.
1613 (findvar.o): Update dependencies.
1614 (frame.o): Update dependencies.
1615 (std-regs.o): Update dependencies.
1616
1617 2003-07-06 Christopher Faylor <cgf@redhat.com>
1618
1619 * win32-nat.c (solib_symbols_add): Use one variable for all section
1620 address stuff. Pass variable rather than address of variable to
1621 safe_symbol_file_add.
1622
1623 2003-07-06 Andreas Schwab <schwab@suse.de>
1624
1625 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1626
1627 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1628
1629 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1630
1631 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1632
1633 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1634
1635 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1636
1637 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1638 * config/i386/nto.mh: New file.
1639 * config/i386/nm-nto.h: New file.
1640 * configure.host: Add i[3456]86-*-nto*.
1641
1642 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1643
1644 * remote-vx.c (vx_add_symbols): Fix compilation error.
1645
1646 2003-07-03 Andrew Cagney <cagney@redhat.com>
1647
1648 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1649 * gdbarch.h, gdbarch.c: Re-generate.
1650 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1651 (legacy_register_name): Declare.
1652 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1653 (REGISTER_NAME): Define.
1654 * sparc-tdep.c (legacy_register_name): New function.
1655 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1656 (REGISTER_NAME): Define.
1657 (hppa64_register_name): Declare.
1658 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1659 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1660 (hppa64_register_name): New function.
1661 (hppa_register_name): New function.
1662 * arch-utils.c (legacy_register_name): Delete.
1663 * arch-utils.h (legacy_register_name): Delete.
1664
1665 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1666
1667 * cli/cli-interp.c (cli_interpreter_resume): Update the
1668 cli_uiout's stream to gdb_stdout.
1669
1670 2003-07-03 Andrew Cagney <cagney@redhat.com>
1671
1672 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1673 predicate.
1674 * gdbarch.h, gdbarch.c: Re-generate.
1675 * regcache.c (init_regcache_descr): Use legacy code when either
1676 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1677
1678 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1679
1680 * NEWS: Move "set logging" entry into GDB 6.0 section.
1681
1682 2003-07-02 Jim Blandy <jimb@redhat.com>
1683
1684 * s390-tdep.c (struct frame_extra_info): new member:
1685 'stack_bought_valid'.
1686 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1687 initialize fextra_info->stack_bought.
1688 (s390_frameless_function_invocation): Don't trust the value of
1689 fextra_info_ptr->stack_bought unless
1690 fextra_info->stack_bought_valid is set.
1691
1692 New S390 prologue analyzer.
1693 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1694 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1695 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1696 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1697 compute_x_addr, s390_on_stack, s390_store,
1698 s390_get_signal_frame_info): New functions.
1699 (S390_NUM_SPILL_SLOTS): New macro.
1700 (s390_get_frame_info): Rewritten.
1701 (is_arg_reg): Deleted.
1702
1703 Break out the decoding of S/390 instructions into separate
1704 functions, to make it more legible, and easier to check
1705 against the spec.
1706 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1707 is_rx, is_rxe): New functions.
1708 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1709 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1710 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1711 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1712 enums for opcode values. (Is this an improvement?)
1713
1714 2003-07-02 Andrew Cagney <cagney@redhat.com>
1715
1716 * i386-tdep.c: Revert change committed as part of trad-frame code
1717 below.
1718
1719 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1720
1721 * breakpoint.c (insert_catchpoint): Make static.
1722
1723 2003-07-02 Andreas Schwab <schwab@suse.de>
1724
1725 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1726 former ia64_push_arguments and ia64_push_return_address, and use
1727 regcache functions instead of read/write_register.
1728 (ia64_gdbarch_init): Set push_dummy_call instead of
1729 deprecated_push_arguments and deprecated_push_return_address.
1730
1731 2003-07-01 Andreas Jaeger <aj@suse.de>
1732
1733 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1734 before the call.
1735 Set %rax only to number of SSE registers used.
1736
1737 2003-07-01 Andrew Cagney <cagney@redhat.com>
1738
1739 * trad-frame.h: Update comments, a -1 .addr is reserved.
1740 (trad_frame_value_p, trad_frame_addr_p): Declare.
1741 (trad_frame_reg_p): Declare.
1742 (trad_frame_set_value): Rename trad_frame_register_value.
1743 (trad_frame_set_unknown): Declare.
1744 * trad-frame.c (trad_frame_realreg_p): New function.
1745 (trad_frame_addr_p, trad_frame_value_p): New function.
1746 (trad_frame_set_unknown): New function.
1747 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1748 (trad_frame_prev_register): Use trad_frame_realreg_p,
1749 trad_frame_addr_p and trad_frame_value_p.
1750 (trad_frame_set_value): Rename trad_frame_register_value.
1751 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1752 and trad_frame_set_value.
1753
1754 2003-06-30 Jim Blandy <jimb@redhat.com>
1755
1756 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1757 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1758 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1759 for 16 registers, and then 32 more bytes.
1760 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1761 New macros.
1762 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1763 Move up in the file, since it's now used by is_simple_arg.
1764 (is_simple_arg): Don't assume registers are four bytes long.
1765 Exclude all double arguments. Extended floats are not simple
1766 args.
1767 (is_power_of_two): New function.
1768 (pass_by_copy_ref): Call is_power_of_two, and check that the
1769 length fits in a register, rather than listing all the acceptable
1770 sizes. Extended floats are not passed by reference.
1771 (s390_push_arguments): Don't assume registers are four bytes long.
1772 Reserve an argument register to point to the buffer for structures
1773 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1774 S390_STACK_FRAME_OVERHEAD.
1775
1776 2003-06-30 Andreas Schwab <schwab@suse.de>
1777
1778 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1779 format error message.
1780
1781 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1782
1783 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1784
1785 2003-06-30 David Carlton <carlton@kealia.com>
1786
1787 Band-aid for PR c++/1245.
1788 * Makefile.in (cp-support.o): Depend on complaints_h.
1789 * cp-support.c: Include complaints.h. Add declaration for
1790 find_last_component.
1791 (cp_find_first_component): Separate code into
1792 cp_find_first_component_aux.
1793 (cp_find_first_component_aux): Call demangled_name_complaint.
1794 (demangled_name_complaint): New.
1795
1796 2003-06-30 Andrew Cagney <cagney@redhat.com>
1797
1798 * remote.c (remote_write_bytes): Explicitly compute and then use
1799 the payload size. Update comments to reflect. Fixes problem of
1800 GDB not sending small packets as found by Fred Fish.
1801
1802 2003-06-30 Andrew Cagney <cagney@redhat.com>
1803
1804 * remote.c (remote_async_wait): Fix -Wformat problem.
1805
1806 2003-06-29 Andrew Cagney <cagney@redhat.com>
1807
1808 * remote.c (remote_wait): Call error, and not warning, when the
1809 packet is corrupt.
1810 (remote_async_wait): Ditto.
1811
1812 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1813
1814 * sparc-tdep.c (sparc_y_regnum): Make external again.
1815
1816 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1817
1818 * cli/cli-logging.c (pop_output_files): Add void to function
1819 definition.
1820
1821 2003-06-29 Andrew Cagney <cagney@redhat.com>
1822
1823 * frame.c (frame_register_unwind): Use unsigned char when dumping
1824 the buffer contents.
1825
1826 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1827
1828 * cli/cli-logging.c: New file.
1829 * cli-out.c (struct ui_out_data): Add original_stream.
1830 (cli_redirect): New function.
1831 (cli_ui_out_impl): Add cli_redirect.
1832 (cli_out_new): Initialize original_stream.
1833 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1834 (uo_redirect, ui_out_redirect): New.
1835 * ui-out.h (struct ui_out_impl): Add redirect member.
1836 (redirect_ftype): New.
1837 (ui_out_redirect): Add prototype.
1838 * Makefile.in: Add rules for cli-logging.c.
1839 * NEWS: Mention "set logging".
1840
1841 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1842
1843 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1844
1845 2003-06-27 Andrew Cagney <cagney@redhat.com>
1846
1847 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1848 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1849 * avr-tdep.c (avr_call_dummy_address): Delete function.
1850 (avr_gdbarch_init): Do not set call_dummy_address.
1851
1852 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1853
1854 * symfile.c (syms_from_objfile): Move variables to inner block.
1855 Move the checks for the non-mainline case a bit earlier to avoid
1856 doing some useless computations.
1857
1858 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1859
1860 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1861
1862 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1863
1864 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1865 sections.
1866
1867 2003-06-26 Michael Chastain <mec@shout.net>
1868
1869 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1870 gdb/testsuite/gdb.c++/pr-1210.exp.
1871
1872 2003-06-26 Andrew Cagney <cagney@redhat.com>
1873
1874 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1875 altivec_expression.h and altivec_registers.h.
1876
1877 2003-06-26 Andrew Cagney <cagney@redhat.com>
1878
1879 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1880 info->mach when MIPS16. Patch suggested by Fred Fish.
1881
1882 2003-06-26 Andrew Cagney <cagney@redhat.com>
1883
1884 * utils.c (internal_vproblem): Print the problem to a reason
1885 buffer and then pass to query. Make the msg variable more local.
1886
1887 2003-06-26 Andrew Cagney <cagney@redhat.com>
1888
1889 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1890 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1891 * gdbarch.h, gdbarch.c: Re-generate.
1892 * frame-base.c (default_frame_args_address): Update. Use
1893 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1894 not available.
1895 (default_frame_locals_address): Ditto for
1896 DEPRECATED_FRAME_LOCALS_ADDRESS.
1897 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1898 (vax_frame_num_args): Update.
1899 (vax_gdbarch_init): Update.
1900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1901 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1902 * mcore-tdep.c (mcore_gdbarch_init): Update.
1903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1904 * ia64-tdep.c (ia64_gdbarch_init): Update.
1905 * symtab.h (address_class): Update comments.
1906 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1907 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1908 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1909 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1910 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1911 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1912 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1913 * alpha-mdebug-tdep.c: Update.
1914 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1915
1916 2003-06-26 Andreas Jaeger <aj@suse.de>
1917
1918 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1919 of SSE registers so that varargs functions work. Rework handling
1920 of passing arguments on the stack.
1921 (x86_64_store_return_value): Return double and float values in SSE
1922 register.
1923
1924 2003-06-24 Michael Chastain <mec@shout.net>
1925
1926 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1927 the "constructor breakpoints ignored" bug.
1928
1929 2003-06-25 David Carlton <carlton@kealia.com>
1930
1931 * MAINTAINERS: Update e-mail address.
1932
1933 2003-06-24 Jim Blandy <jimb@redhat.com>
1934
1935 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1936
1937 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1938 function.
1939 (ppc_linux_init_abi): Register it as the
1940 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1941
1942 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1943 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1944 method.
1945
1946 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1947 (ppc64_standard_linkage_target): Use it.
1948
1949 2003-06-23 Andrew Cagney <cagney@redhat.com>
1950
1951 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1952 for 0 "int0" and 4 "int32" sized registers.
1953 * gdbtypes.c (builtin_type_int0): Define.
1954 (build_gdbtypes): Initialize builtin_type_int0.
1955 * gdbtypes.h (builtin_type_int0): Declare.
1956
1957 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1958
1959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1960 as characters are unsigned.
1961
1962 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1963
1964 PR gdb/1179
1965 * dwarfread.c (struct_type): Skip static fields without crashing.
1966
1967 2003-06-22 Andrew Cagney <cagney@redhat.com>
1968
1969 GDB 6.0 branch created.
1970 * README: Update.
1971 * PROBLEMS: Update. Empty.
1972 * NEWS: Update.
1973
1974 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1975
1976 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1977 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1978
1979 2003-06-22 Andrew Cagney <cagney@redhat.com>
1980
1981 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1982 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1983 Velikov.
1984
1985 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1986
1987 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1988 compilers.
1989
1990 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1991
1992 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1993 argument of val_print.
1994 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1995 to the address argument of baseclass_offset or target_read_memory.
1996 Do add it to the argument of cp_print_value_fields.
1997
1998 2003-06-21 Andrew Cagney <cagney@redhat.com>
1999
2000 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2001 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2002 instead of 0..NUM_REGS.
2003 (mips_register_reggroup_p): New function.
2004 (mips_pseudo_register_write): New function.
2005 (mips_pseudo_register_read): New function.
2006 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2007 based on the register's type.
2008 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2009 cooked.
2010 (mips_get_saved_register): Simplify. Assert that REGNO is a
2011 pseudo / cooked.
2012 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2013 (mips_register_type): Replace mips_register_virtual_type. Map
2014 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2015 when available.
2016 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2017 that the register is cooked / virtual.
2018 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2019 Only get the extra info when needed.
2020 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2021 (mips32_heuristic_proc_desc): Fetch the cooked register.
2022 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2023 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2024 (mips_print_register): Use gdbarch_register_type, instead of
2025 REGISTER_VIRTUAL_TYPE.
2026 (print_gp_register_row): Use gdbarch_register_type, instead of
2027 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2028 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2029 Print the pseudo / cooked registers.
2030 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2031 Print the pseudo / cooked registers.
2032 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2033 REG_NUM is pseudo / cooked.
2034 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2035 (mips_n32n64_xfer_return_value): Ditto.
2036 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2037 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2038 (mips_register_sim_regno): New function.
2039 (mips_gdbarch_init): Set deprecated_register_byte,
2040 register_group_p, pseudo_register_write, pseudo_register_read,
2041 register_sim_regno, and num_pseudo_regs. Set register_type,
2042 instead of register_virtual_type.
2043 * Makefile.in (mips-tdep.o): Update dependencies.
2044 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2045 REGISTER_VIRTUAL_TYPE.
2046 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2047 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2048 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2049 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2050 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2051
2052 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2053
2054 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2055 * cli/cli-cmds.c: Include "gdb_vfork.h".
2056 (shell_escape): Use vfork.
2057
2058 2003-06-21 Andrew Cagney <cagney@redhat.com>
2059
2060 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2061 32 bit floating-point register saves.
2062
2063 * frame.h (deprecated_unwind_get_saved_register): Delete.
2064 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2065 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2066 and deprecated_get_next_frame_hack instead of
2067 deprecated_unwind_get_saved_register.
2068
2069 * mips-tdep.c (mips_dump_tdep): Do not print
2070 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2071
2072 * frame.c (get_frame_register): New function.
2073 (frame_unwind_register_signed): New function.
2074 (get_frame_register_signed): New function.
2075 (frame_unwind_register_unsigned): New function.
2076 (get_frame_register_unsigned): New function.
2077 * frame.h: Add comments on naming schema.
2078 (get_frame_register, frame_unwind_register_signed): Declare.
2079 (get_frame_register_signed, get_frame_register_signed): Declare.
2080 (frame_unwind_register_unsigned): Declare.
2081 (get_frame_register_unsigned): Declare.
2082
2083 2003-06-20 Theodore A. Roth <troth@openavr.org>
2084
2085 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2086
2087 2003-06-20 Theodore A. Roth <troth@openavr.org>
2088
2089 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2090 (avr_read_sp): Ditto.
2091
2092 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2093
2094 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2095 * config/arm/nm-linux.h: Likewise.
2096 * config/arm/tm-linux.h: Likewise.
2097 * config/ia64/nm-linux.h: Likewise.
2098 * config/ia64/tm-ia64.h: Likewise.
2099 * config/s390/tm-linux.h: Likewise.
2100 * config/s390/tm-s390.h: Likewise.
2101 * s390-nat.c: Likewise.
2102 * s390-tdep.c: Likewise.
2103
2104 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2105 * config/ia64/linux.mt: Likewise.
2106 * config/m68k/linux.mh: Likewise.
2107 * config/mips/linux.mt: Likewise.
2108 * config/powerpc/linux.mh: Likewise.
2109 * config/sh/linux.mt: Likewise.
2110
2111 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2112
2113 * solib.c (solib_open): Change tests for whether to search
2114 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2115 comments.
2116
2117 2003-06-19 Theodore A. Roth <troth@openavr.org>
2118
2119 * avr-tdep.c (avr_frame_address): Delete function.
2120 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2121 set_gdbarch_frame_args_address.
2122
2123 2003-06-19 Andrew Cagney <cagney@redhat.com>
2124
2125 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2126 (REGISTER_CONVERT_FROM_TYPE): Delete.
2127 (mips_register_convert_to_type): Delete declaration.
2128 (mips_register_convert_from_type): Delete declaration.
2129 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2130 kernel/.
2131
2132 2003-06-19 Michael Snyder <msnyder@redhat.com>
2133
2134 * linux-nat.h: New file.
2135 * linux-nat.c: Include linux-nat.h.
2136 * lin-lwp.c: Include linux-nat.h.
2137 Move struct lwp_info def to linux-nat.h.
2138 * linux-proc.c: Include linux-nat.h.
2139 (linux_make_note_section): Iterate over lwps instead of threads.
2140 (linux_do_thread_registers): Use lwp instead of merged pid.
2141 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2142 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2143 Add dependency on linux_nat_h.
2144
2145 2003-06-19 Theodore A. Roth <troth@openavr.org>
2146
2147 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2148
2149 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2150
2151 * varobj.c (get_type, get_target_type): Use check_typedef.
2152
2153 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2154
2155 * breakpoint.c (insert_catchpoint): Call internal_error.
2156
2157 2003-06-19 Theodore A. Roth <troth@openavr.org>
2158
2159 * avr-tdep.c (avr_push_dummy_code): Delete function.
2160 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2161
2162 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2163
2164 * arch-utils.c (default_prepare_to_proceed): Remove.
2165 (generic_prepare_to_proceed): Remove.
2166 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2167 (generic_prepare_to_proceed): Remove prototype.
2168 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2169 * gdbarch.c: Regenerate.
2170 * gdbarch.h: Regenerate.
2171 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2172 * hppah-nat.c (hppa_switched_threads): Remove.
2173 * infrun.c (prepare_to_proceed): New static function, copied from
2174 generic_prepare_to_proceed. Remove select_it argument.
2175 (proceed): Call prepare_to_proceed.
2176 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2177 variables.
2178 (ptrace_wait): Don't set the removed variables.
2179 (hppa_switched_threads): Remove.
2180 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2181 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2182 (lin_lwp_prepare_to_proceed): Remove prototype.
2183 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2184 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2185
2186 2003-06-18 Theodore A. Roth <troth@openavr.org>
2187
2188 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2189 trad-frame.h.
2190 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2191 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2192 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2193 (AVR_PROLOGUE_*): Enumerate prologue types.
2194 (struct frame_extra_info): Remove.
2195 (struct avr_unwind_cache): Define.
2196 (avr_write_sp): Delete function.
2197 (avr_read_fp): Ditto.
2198 (avr_init_extra_frame_info): Ditto.
2199 (avr_pop_frame): Ditto.
2200 (avr_frame_saved_pc): Ditto.
2201 (avr_saved_pc_after_call): Ditto.
2202 (avr_push_return_address): Ditto.
2203 (avr_frame_chain): Ditto.
2204 (avr_store_struct_return): Ditto.
2205 (avr_push_arguments): Ditto.
2206 (avr_scan_prologue): Update comments. Changed to set up the info for
2207 cache unwinding. Now returns end of prologue PC.
2208 (avr_skip_prologue): Better handling of functions lacking a prologue
2209 by using avr_scan_prologue.
2210 (avr_scan_arg_moves): New function.
2211 (avr_saved_regs_unwinder): Ditto.
2212 (avr_frame_unwind_cache): Ditto.
2213 (avr_unwind_pc): Ditto.
2214 (avr_frame_this_id): Ditto.
2215 (avr_frame_prev_register): Ditto.
2216 (avr_frame_p): Ditto.
2217 (avr_frame_base_address ): Ditto.
2218 (avr_unwind_dummy_id): Ditto.
2219 (avr_push_dummy_code): Ditto.
2220 (push_stack_item): Ditto.
2221 (pop_stack_item): Ditto.
2222 (avr_push_dummy_call): Ditto.
2223 (struct stack_item): Define.
2224 (avr_frame_unwind): Declare structure.
2225 (avr_frame_base): Ditto.
2226 (avr_gdbarch_init): Remove calls to
2227 set_gdbarch_deprecated_init_frame_pc,
2228 set_gdbarch_deprecated_target_read_fp,
2229 set_gdbarch_deprecated_dummy_write_sp,
2230 set_gdbarch_deprecated_fp_regnum,
2231 set_gdbarch_deprecated_push_arguments,
2232 set_gdbarch_deprecated_push_return_address,
2233 set_gdbarch_deprecated_pop_frame,
2234 set_gdbarch_deprecated_store_struct_return,
2235 set_gdbarch_deprecated_frame_init_saved_regs,
2236 set_gdbarch_deprecated_init_extra_frame_info,
2237 set_gdbarch_deprecated_frame_chain,
2238 set_gdbarch_deprecated_frame_saved_pc,
2239 set_gdbarch_deprecated_saved_pc_after_call.
2240 Add calls to set_gdbarch_push_dummy_call,
2241 set_gdbarch_push_dummy_code,
2242 frame_unwind_append_predicate,
2243 frame_base_set_default,
2244 set_gdbarch_unwind_dummy_id,
2245 set_gdbarch_unwind_pc.
2246 Wrap a long line.
2247
2248 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2249
2250 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2251 registers for H8/300S.
2252 (h8300_print_registers_info): Ditto.
2253 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2254
2255 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2256
2257 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2258 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2259 (lin_lwp_wait): Likewise. Update comments.
2260 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2261 (pull_pid_from_list, linux_record_stopped_pid): New.
2262
2263 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2264
2265 * ada-lang.c (scan_discrim_bound): Name first argument.
2266 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2267 declared by ALL_BLOCK_SYMBOLS.
2268
2269 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2270
2271 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2272 ("regcache.h"): Include it.
2273 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2274
2275 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2276
2277 * NEWS: Mention gdbserver detach change and "disconnect" command.
2278 * infcmd.c (disconnect_command): New function.
2279 (_initialize_infcmd): Add ``disconnect'' command.
2280 * remote.c (remote_async_detach): Delete.
2281 (remote_detach): Merge remote_async_detach.
2282 (remote_disconnect): New.
2283 (init_remote_ops): Set to_disconnect.
2284 (init_remote_cisco_ops): Likewise.
2285 (init_remote_async_ops): Likewise. Use remote_detach.
2286 * target.c (cleanup_target): Default to_disconnect.
2287 (update_current_target): Inherit to_disconnect.
2288 (target_disconnect, debug_to_disconnect): New functions.
2289 (setup_target_debug): Set to_disconnect.
2290 * target.h (struct target_ops): Add to_disconnect.
2291 (target_disconnect): Add prototype.
2292
2293 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2294
2295 * breakpoint.c (insert_catchpoint): New function.
2296 (insert_breakpoints): Use catch_exceptions to call
2297 insert_catchpoint. Disable catchpoints if they fail to insert.
2298
2299 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2300
2301 * symfile.c (reread_symbols): Clear sym_private.
2302
2303 2003-06-17 Andrew Cagney <cagney@redhat.com>
2304
2305 * trad-frame.h (struct frame_info): Add opaque declaration.
2306 * remote-fileio.h (struct cmd_list_element): Add opaque
2307 declaration.
2308 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2309 comments.
2310
2311 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2312
2313 * remote.c (remote_prepare_to_store): Replace call to
2314 deprecated_read_register_bytes with multiple regcache_raw_read
2315 calls.
2316
2317 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2318
2319 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2320 (nto_find_and_open_solib): Likewise.
2321 (nto_init_solib_absolute_prefix): Likewise.
2322 (_initialize_nto_tdep): Fix indentation.
2323
2324 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2325
2326 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2327
2328 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2329
2330 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2331
2332 2003-06-17 Jim Blandy <jimb@redhat.com>
2333
2334 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2335
2336 2003-06-16 Theodore A. Roth <troth@openavr.org>
2337
2338 * avr-tdep.c (avr_extract_return_value): New function.
2339 (avr_gdbarch_init): Set extract_return_value method.
2340
2341 2003-06-16 Andrew Cagney <cagney@redhat.com>
2342
2343 * frame.h (deprecated_get_next_frame_hack): Declare.
2344 * frame.c (legacy_saved_regs_prev_register): Only require
2345 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2346 there are always saved regs.
2347 (deprecated_generic_get_saved_register): Do not require
2348 DEPRECATED_FRAME_INIT_SAVED_REGS.
2349 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2350 use frame ID unwind instead.
2351 (deprecated_get_next_frame_hack): New function.
2352
2353 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2354
2355 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2356 (h8300_push_dummy_call): ...this function. Some minor optimization.
2357 (h8300_push_return_address): Remove.
2358 (h8300_gdbarch_init): Remove calls to
2359 set_gdbarch_deprecated_dummy_write_sp,
2360 set_gdbarch_deprecated_push_arguments and
2361 set_gdbarch_deprecated_push_return_address.
2362 Add call to set_gdbarch_push_dummy_call.
2363
2364 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2365
2366 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2367 (E_PSEUDO_EXR_REGNUM): Ditto.
2368 (h8300_is_argument_spill): Check for instructions moving argument
2369 registers into safe registers.
2370 (h8300_skip_prologue): Check for stm instruction to push registers
2371 used for register variables onto stack.
2372 (gdb_print_insn_h8300): Remove.
2373 (h8300_examine_prologue): Add a comment.
2374 (h8300_register_name): Take pseudo registers into account.
2375 (h8300s_register_name): Ditto.
2376 (h8300sx_register_name): Ditto.
2377 (h8300_print_register): Ditto.
2378 (h8300_print_registers_info): Define "nice" printing order.
2379 (h8300_saved_pc_after_call): Take pseudo registers into account.
2380 (h8300_register_type): Ditto. Return type used for remote connection
2381 when requesting real CCR or EXR register, return actual type when
2382 requesting pseudo CCR or EXR.
2383 (h8300_pseudo_register_read): New function.
2384 (h8300_pseudo_register_write): Ditto.
2385 (h8300_dbg_reg_to_regnum): Ditto.
2386 (h8300s_dbg_reg_to_regnum): Ditto.
2387 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2388 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2389 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2390 set_gdbarch_print_insn architecture dependent.
2391 Call set_gdbarch_pseudo_register_read and
2392 set_gdbarch_pseudo_register_write.
2393 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2394
2395 2003-06-16 Andrew Cagney <cagney@redhat.com>
2396
2397 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2398 * gdbarch.h, gdbarch.c: Re-generate.
2399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2400 * s390-tdep.c (s390_gdbarch_init): Update.
2401 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2402 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2403 * mips-tdep.c (mips_gdbarch_init): Update.
2404 * mcore-tdep.c (mcore_gdbarch_init): Update.
2405 * cris-tdep.c (cris_gdbarch_init): Update.
2406 * infcall.c (call_function_by_hand): Update.
2407 * ia64-tdep.c (ia64_push_arguments): Update comment.
2408 * frame.c (legacy_get_prev_frame): Do not assume
2409 SAVE_DUMMY_FRAME_TOS_P.
2410 * dummy-frame.c (find_dummy_frame): Update comment.
2411
2412 2003-06-16 Andrew Cagney <cagney@redhat.com>
2413
2414 * regcache.c (do_cooked_read): Do not use register_valid_p.
2415
2416 2003-06-15 Theodore A. Roth <troth@openavr.org>
2417
2418 * avr-tdep.c (avr_register_type): Remove a blank line.
2419 (avr_scan_prologue): Correct some comments.
2420
2421 2003-06-15 Theodore A. Roth <troth@openavr.org>
2422
2423 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2424 prologue types.
2425 Properly scan prologues generated by gcc with the -mcall-prologues
2426 option.
2427 Add code to scan -mcall-prologues for mega devices.
2428
2429 2003-06-15 Theodore A. Roth <troth@openavr.org>
2430
2431 * avr-tdep.c (avr_register_byte): Delete function.
2432 (avr_register_raw_size): Delete function.
2433 (avr_register_virtual_size): Delete function.
2434 (avr_register_virtual_type): Delete function.
2435 (avr_register_type): New function.
2436 (avr_address_to_pointer): Remove unused code.
2437 (avr_read_fp): Need to read FP as two separate bytes due to change to
2438 avr_register_type() usage.
2439 (avr_gdbarch_init): Don't set deprecated_register_size.
2440 Don't set deprecated_register_bytes.
2441 Don't set deprecated_register_byte.
2442 Don't set deprecated_register_raw_size.
2443 Don't set deprecated_max_register_raw_size.
2444 Don't set deprecated_register_virtual_size.
2445 Don't set deprecated_max_register_virtual_size.
2446 Don't set deprecated_register_virtual_type.
2447 Set register_type method.
2448
2449 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2450
2451 * Makefile.in (linux-nat.o): Add rule.
2452 * linux-nat.c: New file.
2453 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2454 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2455 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2456 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2457 * config/arm/linux.mh (NATDEPFILES): Likewise.
2458 * config/i386/linux.mh (NATDEPFILES): Likewise.
2459 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2460 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2461 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2462 * config/mips/linux.mh (NATDEPFILES): Likewise.
2463 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2464 * config/s390/s390.mh (NATDEPFILES): Likewise.
2465 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2466
2467 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2468
2469 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2470 replace out-of-date comment.
2471
2472 2003-06-15 Andrew Cagney <cagney@redhat.com>
2473
2474 * rdi-share/host.h (Fail): Change to a varargs function.
2475 * remote-rdi.c (Fail): Update.
2476
2477 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2478
2479 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2480 (i386_convert_register_p, i386_register_to_value,
2481 i386_register_from_value): Handle types longer than 8 bytes.
2482
2483 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2484
2485 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2486 Move floating-point code to new function in i387-tdep.c.
2487 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2488 New functions containing code moved here from i386-tdep.c.
2489 * i387-tdep.h: Add opaque declaration for `struct type'.
2490 (i387_register_to_value, i387_value_to_register): New prototypes.
2491 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2492 (x86_64_init_abi): Set convert_register_p, register_to_value and
2493 value_to_register here.
2494
2495 2003-06-14 Andrew Cagney <cagney@redhat.com>
2496
2497 * mips-tdep.c (mips_register_to_value): Make static.
2498 (mips_value_to_register): Make static.
2499 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2500 * ia64-tdep.c (ia64_register_raw_size): Make static.
2501 (ia64_register_virtual_size): Make static.
2502 (ia64_register_byte): Make static.
2503 * i387-tdep.c: Include "i387-tdep.h".
2504 (print_387_control_word): Delete function.
2505 (print_387_status_word): Delete function.
2506 (print_387_status_bits): Delete function.
2507 (print_387_control_bits): Delete function.
2508 * Makefile.in (i387-tdep.o): Update dependencies.
2509 * rdi-share/host.h (Fail): Declare.
2510 * remote-rdi.c (Fail): Update to match declaration.
2511
2512 2003-06-14 Andrew Cagney <cagney@redhat.com>
2513
2514 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2515 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2516 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2517 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2518 * README: Delete reference to remote-array.
2519 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2520 (remote-array.o): Delete target.
2521 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2522 * remote-array.c: Delete file.
2523
2524 2003-06-14 Andrew Cagney <cagney@redhat.com>
2525 Mark Kettenis <kettenis@gnu.org>
2526
2527 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2528 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2529 parameter with "frame".
2530 * gdbarch.h, gdbarch.c: Re-generate.
2531 * frame.h (put_frame_register): Declare.
2532 * frame.c (put_frame_register): New function.
2533 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2534 (legacy_register_to_value): Rewrite, use "frame" to get the
2535 register value.
2536 (legacy_value_to_register): Rewrite, use "frame" to find the
2537 register's location before storing.
2538 * arch-utils.h (legacy_convert_register_p): Update.
2539 (legacy_register_to_value, legacy_value_to_register): Update.
2540 * findvar.c (value_from_register): Rewrite, eliminate use of
2541 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2542 "frame" to REGISTER_TO_VALUE.
2543 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2544 lval_reg_frame_relative + lval_register branch of the switch. Do
2545 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2546 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2547 I386_EDI_REGNUM): New defines.
2548 (i386_next_regnum, i386_convert_register_p,
2549 i386_register_to_value, i386_value_to_register): New functions.
2550 (i386_register_convertible, i386_register_convert_to_virtual,
2551 i386_convert_to_raw): Remove functions.
2552 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2553 value_to_register instead of register_convertible,
2554 register_convert_to_virtual and register_convert_to_raw.
2555 * mips-tdep.c (mips_convert_register_p): New function.
2556 (mips_value_to_register): Replace mips_register_convert_from_type.
2557 (mips_register_to_value): Replace mips_register_convert_to_type.
2558 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2559 register_to_value.
2560 * alpha-tdep.c (alpha_convert_register_p): Update.
2561 (alpha_value_to_register): Update, store the register.
2562 (alpha_register_to_value): Update, fetch the register.
2563
2564 2003-06-14 Theodore A. Roth <troth@openavr.org>
2565
2566 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2567 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2568 Don't set deprecated_call_dummy_words.
2569 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2570 Don't set remote_translate_xfer_address.
2571 (avr_io_reg_read_command): Remove commented out debug printf.
2572 Wrap a long line.
2573
2574 2003-06-14 Theodore A. Roth <troth@openavr.org>
2575
2576 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2577 causes gdb to seg fault.
2578
2579 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2580
2581 * sparc-nat.c (fetch_inferior_registers): Correct
2582 a reference to "registers".
2583
2584 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2585
2586 * Makefile.in (exc_request_U_h): Define
2587 (exc_request_S_h): Likewise.
2588 (msg_reply_S_h): Likewise.
2589 (msg_U_h): Likewise.
2590 (notify_S_h): Likewise.
2591 (process_reply_S_h): Likewise.
2592 (gnu-nat.o): Depend on gdb_obstack_h
2593 * gnu-nat.c: Include "gdb_obstack.h".
2594
2595 2003-06-13 Andrew Cagney <cagney@redhat.com>
2596
2597 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2598 * gdbarch.h, gdbarch.c: Re-generate.
2599
2600 2003-06-13 Andrew Cagney <cagney@redhat.com>
2601
2602 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2603 when deprecated REGISTER macros can be deleted.
2604 * gdbarch.h, gdbarch.c: Re-generate.
2605
2606 2003-06-13 Jim Blandy <jimb@redhat.com>
2607
2608 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2609 Linux entry point symbols for _dl_debug_state, too.
2610
2611 2003-06-13 Andrew Cagney <cagney@redhat.com>
2612
2613 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2614 available, do not use the FP register, and always save the TOS.
2615 * dummy-frame.c (dummy_frame_this_id): Do not assert
2616 SAVE_DUMMY_FRAME_TOS.
2617 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2618 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2619 (i386_push_dummy_call): Add 8 to the returned SP.
2620 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2621 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2622 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2623 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2624 (x86_64_push_dummy_call): Return "sp + 16".
2625 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2626 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2627 save_dummy_frame_tos.
2628
2629 2003-06-13 Jim Blandy <jimb@redhat.com>
2630
2631 * frv-tdep.c (frv_use_struct_convention): Delete static
2632 declaration for function deleted in my change of 2003-06-12.
2633
2634 2003-06-13 Theodore A. Roth <troth@openavr.org>
2635
2636 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2637 (avr_pointer_to_address): Shift code addrs left 1 bit.
2638 (avr_convert_from_func_ptr_addr): Delete function since operation is
2639 better handled by avr_address_to_pointer and avr_pointer_to_address.
2640 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2641
2642 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2643
2644 From Kelley Cook <kelleycook@wideopenwest.com>:
2645 * configure.host: Accept i[34567]86 variants.
2646 * configure.tgt: Likewise.
2647 * nlm/configure.in: Likewise.
2648 * nlm/configure: Regenerated.
2649
2650 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2651
2652 * arm-tdep.c (solib-svr4.h): Dont' include it.
2653 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2654 * arm-linux-tdep.c: ... here. Make static.
2655 (arm_linux_init_abi): Register it.
2656 (solib-svr4.h): Include it.
2657 * Makefile.in: Update dependencies.
2658 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2659 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2660
2661 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2662
2663 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2664 indicate registers used for return values.
2665 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2666 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2667 members.
2668 (h8300_init_extra_frame_info): Ditto.
2669 (h8300_frame_locals_address): Removed.
2670 (h8300_frame_args_address): Removed.
2671 (h8300_extract_return_value): Use new regcache structure. Only care
2672 for 16 bit CPUs.
2673 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2674 (h8300_store_return_value): Use new regcache structure. Only care
2675 for 16 bit CPUs.
2676 (h8300h_store_return_value): Same function for 32 bit CPUs.
2677 (h8300_store_struct_return): Removed.
2678 (h8300_extract_struct_value_address): Use new regcache structure.
2679 (h8300h_extract_struct_value_address): Removed.
2680 (h8300_push_dummy_code): New function.
2681 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2682 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2683 set_gdbarch_store_return_value architecture dependent.
2684 Call set_gdbarch_push_dummy_code and
2685 set_gdbarch_extract_struct_value_address.
2686 Remove calls to set_gdbarch_frame_args_address,
2687 set_gdbarch_frame_locals_address,
2688 set_gdbarch_deprecated_store_struct_return,
2689 set_gdbarch_deprecated_extract_return_value,
2690 set_gdbarch_deprecated_extract_struct_value_address,
2691 set_gdbarch_deprecated_call_dummy_words and
2692 set_gdbarch_deprecated_sizeof_call_dummy_words.
2693
2694 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2695
2696 * h8300-tdep.c (h8300_register_byte): Remove.
2697 (h8300h_register_byte): Remove.
2698 (h8300_register_virtual_type): Remove. Substitute by...
2699 (h8300_register_type): New function.
2700 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2701 (h8300h_extract_struct_value_address): Ditto.
2702 (h8300_gdbarch_init): Drop calls to
2703 set_gdbarch_deprecated_register_byte and
2704 set_gdbarch_deprecated_register_virtual_type.
2705 Add call to set_gdbarch_register_type.
2706
2707 2003-06-13 Andrew Cagney <cagney@redhat.com>
2708
2709 * gdbarch.sh: Update comments on registers.
2710 (deprecated_register_byte): Rename register_byte.
2711 (deprecated_register_raw_size): Rename register_raw_size.
2712 (deprecated_register_virtual_size): Rename register_virtual_size.
2713 (deprecated_register_virtual_type): Rename register_virtual_type.
2714 * gdbarch.h, gdbarch.c: Re-generate.
2715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2716 * vax-tdep.c (vax_gdbarch_init): Update.
2717 * v850-tdep.c (v850_gdbarch_init): Update.
2718 * sparc-tdep.c (sparc_gdbarch_init): Update.
2719 * sh-tdep.c (sh_gdbarch_init): Update.
2720 * s390-tdep.c (s390_gdbarch_init): Update.
2721 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2722 * ns32k-tdep.c: Update.
2723 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2724 * mips-tdep.c (mips_gdbarch_init): Update.
2725 * mcore-tdep.c (mcore_gdbarch_init): Update.
2726 * m68k-tdep.c (m68k_gdbarch_init): Update.
2727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2728 * ia64-tdep.c (ia64_gdbarch_init): Update.
2729 * hppa-tdep.c (hppa_gdbarch_init): Update.
2730 * h8300-tdep.c (h8300_gdbarch_init): Update.
2731 * frv-tdep.c (frv_gdbarch_init): Update.
2732 * cris-tdep.c (cris_gdbarch_init): Update.
2733 * avr-tdep.c (avr_gdbarch_init): Update.
2734 * alpha-tdep.c (alpha_gdbarch_init): Update.
2735 * arm-tdep.c (arm_gdbarch_init): Update.
2736
2737 2003-06-13 Andrew Cagney <cagney@redhat.com>
2738
2739 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2740 mips_o32_use_struct_convention with always_use_struct_convention.
2741
2742 2003-06-12 David Carlton <carlton@kealia.com>
2743
2744 * cp-namespace.c (cp_set_block_scope): Comment out
2745 processing_has_namespace_info branch.
2746
2747 2003-06-12 Jim Blandy <jimb@redhat.com>
2748
2749 Recognize and skip 64-bit PowerPC Linux linkage functions.
2750 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2751 insn_pattern, insns_match_pattern, d_field, ds_field): New
2752 functions, macros, and types for working with PPC instructions.
2753 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2754 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2755 ppc64_skip_trampoline_code): New functions, variables, and macros
2756 for recognizing and skipping linkage functions.
2757 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2758 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2759
2760 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2761 register offsets for both the 32- and 64-bit interfaces.
2762
2763 Actually finish the job started by my change of 2003-05-29.
2764 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2765 other #definition of this.
2766 (ppc_linux_skip_trampoline_code): Remove declaration.
2767 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2768 static.
2769 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2770 method for GDBARCH.
2771
2772 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2773 'long' on ppc64-*-linux*.
2774
2775 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2776 isn't #defined, assume the register doesn't exist: act as if
2777 tdep->ppc_mq_regnum were -1.
2778
2779 * configure.host, configure.tgt: Add entries for
2780 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2781 powerpc/linux.mt.
2782 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2783 New files.
2784
2785 * arch-utils.c (always_use_struct_convention): New function.
2786 * arch-utils.h (always_use_struct_convention): New prototype.
2787 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2788 (alpha_gdbarch_init): Register always_use_struct_convention,
2789 instead of alpha_use_struct_convention.
2790 * cris-tdep.c (cris_use_struct_convention): Delete.
2791 (cris_gdbarch_init): Register always_use_struct_convention,
2792 instead of cris_use_struct_convention.
2793 * frv-tdep.c (frv_use_struct_convention): Delete.
2794 (frv_gdbarch_init): Register always_use_struct_convention,
2795 instead of frv_use_struct_convention.
2796 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2797 (h8300_gdbarch_init): Register always_use_struct_convention,
2798 instead of h8300_use_struct_convention.
2799 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2800 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2801 instead of mips_o32_use_struct_convention.
2802
2803 2003-06-12 Andrew Cagney <cagney@redhat.com>
2804
2805 * wince.c: Include "mips-tdep.h".
2806 * mips-tdep.h (mips_next_pc): Declare.
2807 * mcore-tdep.c: Make more local functions static.
2808 * Makefile.in (wince.o): Update dependencies.
2809
2810 2003-06-12 David Carlton <carlton@kealia.com>
2811
2812 * symtab.c (lookup_symbol_aux_minsyms): Replace
2813 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2814 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2815 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2816 SYMBOL_NATURAL_NAME.
2817
2818 2003-06-12 Andreas Schwab <schwab@suse.de>
2819
2820 * Makefile.in (tuiDisassem.o): Update dependencies.
2821
2822 2003-06-12 David Carlton <carlton@bactrian.org>
2823
2824 * symtab.h: Delete declaration of make_symbol_overload_list.
2825 Add declaration of lookup_partial_symbol.
2826 * symtab.c (remove_params): Move to cp-support.c.
2827 (overload_list_add_symbol, make_symbol_overload_list)
2828 (sym_return_val_size, sym_return_val_index): Ditto.
2829 (lookup_partial_symbol): Make extern.
2830 * cp-support.h: Add declaration of make_symbol_overload_list.
2831 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2832 symtab.h, and block.h.
2833 (remove_params): Move here from symtab.c.
2834 (overload_list_add_symbol, make_symbol_overload_list)
2835 (sym_return_val_size, sym_return_val_index): Ditto.
2836 * valops.c: Include cp-support.h.
2837 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2838 frame_h, and block_h.
2839 (valops.o): Depend on cp_support_h.
2840
2841 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2842
2843 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2844 substitute by NUM_REGS throughout.
2845 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2846 (h8300s_register_name): New function for H8S registers.
2847 (h8300sx_register_name): Ditto for H8SX registers.
2848 (h8300_print_register): Revise register printing, avoid depending
2849 on 32 bit long.
2850 (h8300_register_byte): Only care for H8/300 registers.
2851 (h8300h_register_byte): New function for any other architecture.
2852 (h8300_register_raw_size): Remove.
2853 (h8300_register_virtual_type): Revise to return actually useful
2854 type.
2855 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2856 (h8300h_extract_struct_value_address): New function for any other
2857 architecture.
2858 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2859 set_gdbarch_register_name, set_gdbarch_register_byte,
2860 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2861 Remove calls to set_gdbarch_deprecated_register_size,
2862 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2863 set_gdbarch_deprecated_max_register_raw_size,
2864 set_gdbarch_register_virtual_size and
2865 set_gdbarch_deprecated_max_register_virtual_size entirely.
2866 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2867 set_gdbarch_long_double_bit.
2868
2869 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2870
2871 * doublest.c (convert_doublest_to_floatformat): When dealing
2872 with the implied integer bit, only alter mant_bits if we are
2873 processing a full 32 bits of mantissa.
2874
2875 2003-06-11 David Carlton <carlton@bactrian.org>
2876
2877 * dictionary.h: New.
2878 * dictionary.c: New.
2879 * block.h: Add opaque declaration for struct dictionary.
2880 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2881 'sym' members.
2882 (BLOCK_DICT): New macro.
2883 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2884 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2885 BLOCK_SHOULD_SORT.
2886 (ALL_BLOCK_SYMBOLS): Update definition.
2887 * Makefile.in (SFILES): Add dictionary.c.
2888 (dictionary_h): New.
2889 (COMMON_OBS): Add dictionary.o.
2890 (dictionary.o): New.
2891 (ada-lang.o): Depend on dictionary_h.
2892 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2893 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2894 (mi-cmd-stack.o): Ditto.
2895 (gdbtk-cmds.o): Update dependencies.
2896 (gdbtk-stack.o): Ditto.
2897 * ada-lang.c: Include dictionary.h.
2898 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2899 (fill_in_ada_prototype, debug_print_block): Ditto.
2900 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2901 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2902 'is_sorted'.
2903 * mdebugread.c: Include dictionary.h.
2904 (struct parse_stack): Delete 'maxsyms' member.
2905 (parse_symbol): Update calls to new_block. Delete calls to
2906 shrink_block. Use dictionary methods.
2907 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2908 Update calls to new_symtab. Don't maintain maxsyms data.
2909 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2910 (add_symbol): Just call dict_add_symbol.
2911 (new_symtab): Delete 'maxsyms' argument.
2912 (new_symtab): Update calls to new_block.
2913 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2914 (shrink_block): Delete function.
2915 (fixup_sigtramp): Update call to new_block. Add symbol via
2916 dict_add_symbol.
2917 * jv-lang.c: Include dictionary.h.
2918 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2919 appropriately. Set class_symtab->free_func. Make sure the
2920 blockvector is big enough to hold two blocks.
2921 (add_class_symtab_symbol): Use dictionary methods.
2922 (free_class_block): New function.
2923 (type_from_class): Replace explicit iteration by
2924 ALL_BLOCK_SYMBOLS.
2925 * symtab.h (struct symtab): Replace 'free_ptr' method by
2926 'free_func'.
2927 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2928 sort_symtab_syms.
2929 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2930 sort_symtab_syms.
2931 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2932 Include dictionary.h.
2933 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2934 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2935 sort_symtab_syms.
2936 * objfiles.c: Include dictionary.h.
2937 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2938 * buildsym.c: Include dictionary.h.
2939 (finish_block): Use dictionary methods.
2940 (end_symtab): Set free_func to NULL, not free_ptr.
2941 * tracepoint.c: Include dictionary.h.
2942 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2943 (scope_info): Ditto.
2944 * stack.c: Include dictionary.h.
2945 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2946 (print_block_frame_labels, print_frame_arg_vars)
2947 (print_frame_args): Ditto.
2948 * symmisc.c (free_symtab_block): Use dictionary methods.
2949 (dump_symtab): Ditto.
2950 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2951 Include dictionary.h.
2952 * symfile.h: Delete declarations of sort_block_syms,
2953 sort_symtab_syms.
2954 * symfile.c (sort_block_syms): Delete.
2955 (sort_symtab_syms): Delete.
2956 * symtab.c: Include dictionary.h.
2957 (lookup_block_symbol): Use dictionary iterators.
2958 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2959 (search_symbols, make_symbol_completion_list): Ditto.
2960 (make_symbol_overload_list): Ditto.
2961 * valops.c (value_of_local): Use dict_empty.
2962 Include dictionary.h.
2963
2964 2003-06-11 J. Brobecker <brobecker@gnat.com>
2965
2966 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2967
2968 2003-06-11 David Carlton <carlton@bactrian.org>
2969
2970 * block.h (BLOCK_SHOULD_SORT): Delete.
2971 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2972 blocks.
2973 * ada-lang.c (ada_add_block_symbols): Ditto.
2974 * symfile.c (sort_block_syms): Delete.
2975 (sort_symtab_syms): Ditto.
2976 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2977 declarations.
2978 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2979 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2980 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2981 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2982 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2983 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2984 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2985
2986 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2987
2988 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2989 bits to 128.
2990
2991 2003-06-11 Andrew Cagney <cagney@redhat.com>
2992
2993 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2994 REGISTER_CONVERTIBLE.
2995 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2996 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2997 * gdbarch.h, gdbarch.c: Re-generate.
2998 * arch-utils.h (deprecated_register_convertible_not): Rename
2999 generic_register_convertible_not.
3000 * arch-utils.c (deprecated_register_convertible_not): Rename
3001 generic_register_convertible.
3002 (legacy_convert_register_p, legacy_register_to_value): Update.
3003 * sh-tdep.c (sh64_push_arguments): Update.
3004 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3005 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3006 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3007 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3008 * arch-utils.c (legacy_value_to_register): Update.
3009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3010 (rs6000_register_convert_to_raw): Make parameter "from" const.
3011 * mips-tdep.c (mips_gdbarch_init): Update.
3012 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3013 * infcmd.c (default_print_registers_info): Update.
3014 * ia64-tdep.c (ia64_gdbarch_init): Update.
3015 (ia64_register_convert_to_raw): Make parameter "from" const.
3016 * i386-tdep.c (i386_gdbarch_init): Update.
3017 (i386_register_convert_to_raw): Update.
3018
3019 2003-06-11 Andrew Cagney <cagney@redhat.com>
3020
3021 * remote-fileio.c: Include "remote-fileio.h".
3022 * Makefile.in (remote-fileio.o): Update dependencies.
3023 (remote_fileio_h): Fix typo.
3024
3025 2003-06-11 Andrew Cagney <cagney@redhat.com>
3026
3027 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3028 (xstormy16_save_dummy_frame_tos): Make static.
3029 (_initialize_xstormy16_tdep): Add declaration.
3030 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3031 * v850-tdep.c: Make local functions static.
3032 (_initialize_v850_tdep): Add declaration.
3033 * sparc-tdep.c: Make local functions static.
3034 (_initialize_sparc_tdep): Add declaration.
3035 * sh-tdep.c: Make local functions static.
3036 (_initialize_sh_tdep): Add declaration.
3037 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3038 * s390-tdep.c: Make local functions static.
3039 (_initialize_s390_tdep): Add declaration.
3040 * dbxread.c (find_stab_function_addr): Make static.
3041 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3042 * ocd.c (_initialize_remote_ocd): Add declaration.
3043 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3044 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3045 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3046 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3047 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3048 * remote-array.c (_initialize_array): Add declaration.
3049 (_initialize_remote_monitors): Add declaration.
3050 * remote-mips.c: Make local functions static.
3051 (_initialize_remote_mips): Add declaration.
3052 * mcore-tdep.c: Make all local functions static.
3053 (_initialize_mcore_tdep): Add declaration.
3054 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3055 * abug-rom.c (_initialize_abug_rom): Add declaration.
3056 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3057 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3058 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3059 * remote-est.c (_initialize_est): Add declaration.
3060 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3061 (m68hc11_call_dummy_address): Make static.
3062 * ia64-tdep.c: Make local functions static.
3063 (_initialize_ia64_tdep): Add declaration.
3064 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3065 * monitor.c (monitor_wait_filter): Make static.
3066 (_initialize_remote_monitors): Add declaration.
3067 * remote-hms.c (_initialize_remote_hms): Add declaration.
3068 * remote-e7000.c (fetch_regs_from_dump): Make static.
3069 (expect_n): Make static.
3070 (_initialize_remote_e7000): Add declaration.
3071 * ser-e7kpc.c: Always include "defs.h".
3072 (_initialize_ser_e7000pc): Add declaration.
3073 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3074 * cris-tdep.c: Make all but one function static.
3075 (_initialize_cris_tdep): Add declaration.
3076 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3077 * solib.c (update_solib_list): Make static.
3078 (_initialize_solib): Add declaration.
3079 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3080 (_initialize_avr_tdep): Add declaration.
3081 * remote-rdi.c (voiddummy): Make static.
3082 (_initialize_remote_rdi): Add declaration.
3083 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3084 * remote-rdp.c (send_rdp): Make static.
3085 (_initialize_remote_rdp): Add declaration.
3086 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3087
3088 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3089
3090 * remote-fileio.c: Make ari happy.
3091
3092 2003-06-10 J. Brobecker <brobecker@gnat.com>
3093
3094 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3095 fetching the trailing bytes of the buffer we are about to write.
3096
3097 2003-06-10 Andrew Cagney <cagney@redhat.com>
3098
3099 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3100 * Makefile.in (remote-fileio.o): Update dependencies.
3101 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3102 include <setjmp.h>, or <sys/types.h> conditional on USG.
3103 (remote_fio_jmp_buf): Delete global variable.
3104
3105 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3106 Martin M. Hunt <hunt@redhat.com>
3107
3108 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3109 (SFILES): Add remote-fileio.c.
3110 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3111 dependencies for building remote.o.
3112 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3113 * remote-fileio.h: New header file defining remote File-I/O interface.
3114 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3115 static storage class.
3116 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3117 'F' packet.
3118 (_initialize_remote): Call initialize_remote_fileio().
3119 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3120 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3121 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3122 (captured_main): Initialize new ui_files.
3123 * ui-file.c: Add read and fgets input functions.
3124 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3125 (null_file_read): New function.
3126 (ui_file_read): New function.
3127 (set_ui_file_read): New function.
3128 (stdio_file_read): New function.
3129 * ui-file.h: New type ui_file_read_ftype.
3130 (set_ui_file_read): Declare.
3131 (ui_file_read): Declare.
3132
3133 2003-06-09 Andrew Cagney <cagney@redhat.com>
3134
3135 * frame.h (deprecated_unwind_get_saved_register): Rename
3136 generic_unwind_get_saved_register, update comments.
3137 * mips-tdep.c (mips_get_saved_register): Update.
3138 * frame.c (deprecated_unwind_get_saved_register): Update.
3139
3140 2003-06-09 Andrew Cagney <cagney@redhat.com>
3141
3142 * vax-tdep.c (vax_frame_locals_address): Delete function.
3143 (vax_gdbarch_init): Do not set frame_locals_address.
3144 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3145 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3146 * s390-tdep.c (s390_frame_args_address): Delete function.
3147 (s390_gdbarch_init): Do not set frame_args_address or
3148 frame_locals_address.
3149 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3150 (ns32k_gdbarch_init): Do not set frame_locals_address.
3151 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3152 (hppa_frame_locals_address): Delete function.
3153 (hppa_gdbarch_init): Do not set frame_args_address, or
3154 frame_locals_address.
3155 * arm-tdep.c (arm_frame_args_address): Delete.
3156 (arm_frame_locals_address): Delete.
3157 (arm_gdbarch_init): Do not set frame_args_address, or
3158 frame_locals_address.
3159
3160 2003-06-09 Andrew Cagney <cagney@redhat.com>
3161
3162 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3163 * gdbarch.h, gdbarch.c: Re-generate.
3164 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3165 * arch-utils.c (frame_num_args_unknown): Delete function.
3166 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3167 (frame_info): Use FRAME_NUM_ARGS_P.
3168 * arm-tdep.c (arm_frame_num_args): Delete function.
3169 (arm_gdbarch_init): Do not set frame_num_args.
3170 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3171 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3172 (hppa_gdbarch_init): Do not set frame_num_args.
3173 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3175 frame_num_args to default frame_num_args_unknown.
3176 * v850-tdep.c (v850_gdbarch_init): Ditto.
3177 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3178 * sh-tdep.c (sh_gdbarch_init): Ditto.
3179 * s390-tdep.c (s390_gdbarch_init): Ditto.
3180 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3182 * mips-tdep.c (mips_gdbarch_init): Ditto.
3183 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3184 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3186 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3187 * i386-tdep.c (i386_gdbarch_init): Ditto.
3188 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3189 * frv-tdep.c (frv_gdbarch_init): Ditto.
3190 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3191 * cris-tdep.c (cris_gdbarch_init): Ditto.
3192 * avr-tdep.c (avr_gdbarch_init): Ditto.
3193 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3194
3195 2003-06-09 Andrew Cagney <cagney@redhat.com>
3196
3197 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3198 (print_frame_args): Moved to "stack.c".
3199 * stack.c: Include "gdb_assert.h".
3200 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3201 (print_frame_args): Moved from "printcmd.c".
3202 * frame.h (print_frame_args): Delete declaration.
3203 * Makefile.in (stack.o): Update dependencies.
3204
3205 2003-06-08 Andrew Cagney <cagney@redhat.com>
3206
3207 * frame.c (get_prev_frame): Remove reference to
3208 frame_args_address_correct in comments.
3209 * frame-base.c (default_frame_args_address): Delete code
3210 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3211 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3212 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3213 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3214 (vax_frame_args_address_correct): Delete declaration.
3215
3216 2003-06-08 Andrew Cagney <cagney@redhat.com>
3217
3218 * gdbarch.sh (UNWIND_SP): Add.
3219 * gdbarch.h, gdbarch.c: Re-generate.
3220 * frame.c (frame_sp_unwind): New function.
3221 (get_frame_sp): New function.
3222 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3223 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3224 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3225 value.
3226 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3227 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3228
3229 2003-06-08 Andrew Cagney <cagney@redhat.com>
3230
3231 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3232 REMOTE_BREAKPOINT.
3233 * remote.c: Update.
3234 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3235 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3236 * config/m68k/tm-sun3.h: Update.
3237 * config/m68k/tm-m68klynx.h: Update.
3238 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3239
3240 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3241 trad_frame". Update comments.
3242 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3243 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3244 (trad_frame_register_value, trad_frame_prev_register): Update.
3245
3246 2003-06-08 Andrew Cagney <cagney@redhat.com>
3247
3248 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3249 from GCC's acinclude.m4.
3250 * configure.in: Check for getopt's delcaration.
3251 * aclocal.m4, config.in, configure: Re-generate.
3252 * main.c (error_init): Delete declaration.
3253 * defs.h (error_init): Declare.
3254 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3255 (rs6000_convert_from_func_ptr_addr): Make static.
3256 (_initialize_rs6000_tdep): Add declaration.
3257 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3258 (show_commands, set_verbose, show_history): Delete declaration.
3259 * top.h (set_verbose): Add declaration.
3260 (show_history, set_history, show_commands): Add declaration.
3261 (do_restore_instream_cleanup): Add declaration.
3262 * objc-lang.c (specialcmp): Make static.
3263 (print_object_command): Make static.
3264 (find_objc_msgsend): Make static.
3265 (find_objc_msgcall_submethod_helper): Make static.
3266 (find_objc_msgcall_submethod): Make static.
3267 (_initialize_objc_language): Add declaration.
3268 (find_implementation_from_class): Make static.
3269 (find_implementation): Make static.
3270 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3271 * objc-lang.h (lookup_struct_typedef): Add declaration.
3272 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3273 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3274 (do_restore_user_call_depth): Make static.
3275 (do_restore_instream_cleanup): Delete declaration.
3276 (dont_repeat): Delete declaration.
3277 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3278 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3279 * reggroups.c (_initialize_reggroup): Add declaration.
3280 * cp-support.c (_initialize_cp_support): Add declaration.
3281 * cp-abi.c (_initialize_cp_abi): Add declaration.
3282 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3283 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3284 (_initialize_gnu_v3_abi): Add declaration.
3285 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3286 (_initialize_gnu_v2_abi): Add declaration.
3287 * frame-base.c (_initialize_frame_base): Add declaration.
3288 * doublest.c (floatformat_from_length): Make static.
3289 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3290 * frame.c (create_sentinel_frame): Make static.
3291 (_initialize_frame): Add declaration.
3292 * top.c (do_catch_errors): Make static.
3293 (gdb_rl_operate_and_get_next_completion): Make static.
3294 * typeprint.c: Include "typeprint.h".
3295 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3296 (sentinel_frame_this_id): Make static.
3297 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3298 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3299 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3300 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3301 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3302 * maint.c (maintenance_print_architecture): Make static.
3303 * signals/signals.c (_initialize_signals): Add declaration.
3304 * std-regs.c (_initialize_frame_reg): Add declaration.
3305 * jv-exp.y (push_variable): ISO C definition.
3306 (push_qualified_expression_name): Ditto.
3307 * memattr.c (_initialize_mem): Add declaration.
3308 * remote.c (remote_check_watch_resources): Make static.
3309 (remote_stopped_by_watchpoint): Make static.
3310 (remote_stopped_data_address): Make static.
3311 * d10v-tdep.c (nr_dmap_regs): Make static.
3312 (a0_regnum): Make static.
3313 (d10v_frame_unwind_cache): Make static.
3314 (d10v_frame_p): Make static.
3315 * osabi.c (show_osabi): Make static.
3316 (_initialize_gdb_osabi): Add extern declaration.
3317 * gdbtypes.c (make_qualified_type): Make static.
3318 (safe_parse_type): Make static.
3319 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3320 * macrotab.c (macro_bcache_free): Make static.
3321 * interps.c (interp_set_quiet): Make static.
3322 (interpreter_exec_cmd): Make static.
3323 * stack.h (select_frame_command): New file.
3324 * stack.c: Include "stack.h".
3325 (select_frame_command_wrapper): Delete function.
3326 (select_frame_command): Make global.
3327 * infcall.c: Include "infcall.h".
3328 * linespec.c: Include "linespec.h".
3329 * symfile.c (sections_overlap): Make static.
3330 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3331 * charset.c (_initialize_charset): Add missing prototype.
3332 * regcache.c (init_legacy_regcache_descr): Make static.
3333 (do_regcache_xfree): Make static.
3334 (regcache_xfer_part): Make static.
3335 (_initialize_regcache): Add missing prototype.
3336 * breakpoint.c (parse_breakpoint_sals): Make static.
3337 (breakpoint_sals_to_pc): Make static.
3338 * interps.h (clear_interpreter_hooks): ISO C declaration.
3339 * Makefile.in (stack_h): Define.
3340 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3341 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3342
3343 2003-06-08 Andrew Cagney <cagney@redhat.com>
3344
3345 * Makefile.in (d10v-tdep.o): Update dependencies.
3346 (SFILES): Add trad-frame.c.
3347 (trad_frame_h): Define.
3348 (COMMON_OBS): Add trad-frame.o.
3349 (trad-frame.o): Specify dependencies.
3350 * d10v-tdep.c: Include "trad-frame.h".
3351 (saved_regs_unwinder): Delete function.
3352 (d10v_frame_prev_register): Use trad_frame_prev_register.
3353 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3354 trad_frame", delete "regs" and "prev_sp".
3355 (prologue_find_regs): Use trad-frame.
3356 * trad-frame.h, trad-frame.c: New files.
3357
3358 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3359
3360 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3361
3362 2003-06-07 Adam Fedor <fedor@gnu.org>
3363
3364 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3365 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3366 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3367 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3368 resolve_msgsend_super, resolve_msgsend_super_stret):
3369 Use it.
3370
3371 2003-06-07 Andrew Cagney <cagney@redhat.com>
3372
3373 * symfile.h: Re-indent, clean up comments.
3374
3375 2003-06-07 Andrew Cagney <cagney@redhat.com>
3376
3377 * inferior.h (deprecated_write_sp): Replace
3378 generic_target_write_sp.
3379 * regcache.c (deprecated_write_sp): Replace
3380 generic_target_write_sp.
3381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3382 * vax-tdep.c (vax_gdbarch_init): Update.
3383 * v850-tdep.c (v850_gdbarch_init): Update.
3384 * sparc-tdep.c (sparc_gdbarch_init): Update.
3385 * sh-tdep.c (sh_gdbarch_init): Update.
3386 * s390-tdep.c (s390_gdbarch_init): Update.
3387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3388 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3389 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3390 * mcore-tdep.c (mcore_gdbarch_init): Update.
3391 * m68k-tdep.c (m68k_gdbarch_init): Update.
3392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3393 * ia64-tdep.c (ia64_gdbarch_init): Update.
3394 * h8300-tdep.c (h8300_gdbarch_init): Update.
3395 * frv-tdep.c (frv_gdbarch_init): Update.
3396 * cris-tdep.c (cris_gdbarch_init): Update.
3397 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3398
3399 2003-06-07 Andrew Cagney <cagney@redhat.com>
3400
3401 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3402 Assert that PC_REGNUM is valid.
3403 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3404
3405 2003-06-07 Andrew Cagney <cagney@redhat.com>
3406
3407 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3408 * gdbarch.h, gdbarch.c: Regenerate.
3409 * mn10300-tdep.c: Include "gdb_assert.h".
3410 (mn10300_read_fp): New function.
3411 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3412 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3413 * ia64-tdep.c: Include "gdb_assert.h".
3414 (ia64_read_fp): New function.
3415 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3416 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3417 * regcache.c (generic_target_read_sp): Delete function.
3418 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3419 * inferior.h (generic_target_read_sp): Delete declaration.
3420 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3421 generic_target_read_sp.
3422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3423 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3424 * sh-tdep.c (sh_gdbarch_init): Ditto.
3425 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3426 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3427
3428 2003-06-07 Andrew Cagney <cagney@redhat.com>
3429
3430 * gdbarch.sh: Comment each field of startup_gdbarch.
3431 * gdbarch.h, gdbarch.c: Re-generate.
3432
3433 2003-06-07 Andrew Cagney <cagney@redhat.com>
3434
3435 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3436 * gdbarch.h, gdbarch.c: Re-generate.
3437 * regcache.c: Update comments on read_pc et.al.
3438 (generic_target_read_pc): Delete function.
3439 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3440 * inferior.h (generic_target_read_pc): Delete declaration.
3441 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3442 generic_target_read_pc.
3443 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3444 * sh-tdep.c (sh_gdbarch_init): Ditto.
3445 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3447
3448 2003-06-07 Andrew Cagney <cagney@redhat.com>
3449
3450 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3451 "index" with "special_local_sect". Use strcmp instead of STREQ.
3452 Append period to coments.
3453
3454 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3455
3456 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3457 (elfstab_offset_sections): Likewise.
3458 * gdb-stabs.h (stab_section_info): Likewise.
3459 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3460 * objfiles.c (objfile_relocate): Likewise.
3461 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3462 * remote.c (get_offsets): Likewise.
3463 (remote_cisco_objfile_relocate): Likewise.
3464 * somread.c (som_symfile_offsets): Likewise.
3465 * symfile.c (alloc_section_addr_info): New function.
3466 (build_section_addr_info_from_section_tab): Use it.
3467 (free_section_addr_info): Adjust.
3468 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3469 (syms_from_objfile): Allocate local_addr dynamically.
3470 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3471 dynamically.
3472 (add_symbol_file_command): Allocate sect_opts dynamically.
3473 (reread_symbols): Avoid use of SECT_OFF_MAX.
3474 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3475 (alloc_section_addr_info): Declare it.
3476 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3477 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3478 dynamically.
3479 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3480
3481 2003-06-06 Andrew Cagney <cagney@redhat.com>
3482
3483 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3484 (d10v_frame_unwind_cache): Do not set "return_pc".
3485
3486 2003-06-06 Michael Snyder <msnyder@redhat.com>
3487
3488 * h8300-tdep.c: Make tidy (long lines).
3489
3490 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3491
3492 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3493 to regcache_collect().
3494
3495 2003-06-05 J. Brobecker <brobecker@gnat.com>
3496
3497 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3498 pc_in_sigtramp multiarch method.
3499 (hppa_hpux_som_init_abi): Use it.
3500 (hppa_hpux_elf_init_abi): Likewise.
3501 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3502 macro has been multiarched.
3503 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3504 macro here, as hppa64 isn't multiarched yet.
3505
3506 2003-06-05 Andrew Cagney <cagney@redhat.com>
3507
3508 * Makefile.in (value_h): Add $(frame_h).
3509 * value.h: Include "frame.h".
3510 (struct value): Replace "frame_addr" with "frame_id".
3511 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3512 * values.c (allocate_value): Use VALUE_FRAME_ID.
3513 (value_copy): Use VALUE_FRAME_ID.
3514 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3515 * valops.c (value_assign): Update. Use frame_find_by_id.
3516
3517 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3518
3519 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3520 in each pass.
3521
3522 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3523
3524 * thread-db.c (check_event): For create/death event breakpoints,
3525 loop through all messages to ensure that we read the message
3526 corresponding to the breakpoint we are at.
3527
3528 2003-06-04 Michael Snyder <msnyder@redhat.com>
3529
3530 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3531
3532 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3533
3534 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3535 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3536 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3537 when handling .eh_frame sections.
3538
3539 2003-06-04 J. Brobecker <brobecker@gnat.com>
3540
3541 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3542 prepare_to_proceed procedure instead of the hppa-specific one.
3543 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3544
3545 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3546
3547 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3548 * config.in: Regenerated.
3549 * configure.in: Add test for syscall function and check for
3550 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3551 * configure: Regenerated.
3552 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3553 <sys/syscall.h>.
3554 (kill_lwp): New function that uses tkill syscall or
3555 uses kill, depending on whether threading model is nptl or not.
3556 All callers of kill() changed to use kill_lwp().
3557 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3558 see if all threads have already exited in the nptl model.
3559 (stop_and_resume_callback): New callback function used by the
3560 lin_lwp_wait thread exit handling code.
3561 (stop_wait_callback): Check for threads already having exited and
3562 delete such threads fromt the lwp list when discovered.
3563 (stop_callback): Don't assert retcode of kill call.
3564
3565 Roland McGrath <roland@redhat.com>
3566 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3567 nptl libthread_db.
3568
3569 2003-06-03 Richard Henderson <rth@redhat.com>
3570
3571 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3572 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3573 (alpha_sigtramp_frame_prev_register): Likewise.
3574 (alpha_heuristic_frame_prev_register): Likewise.
3575 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3576
3577 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3578 alpha-specific register id names.
3579 (alpha_mdebug_frame_unwind_cache): Likewise.
3580 (alpha_mdebug_frame_prev_register): Likewise.
3581
3582 2003-06-03 Richard Henderson <rth@redhat.com>
3583
3584 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3585 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3586 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3587 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3588 unwind routines.
3589 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3590 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3591 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3592
3593 * alpha-linux-tdep.c: Remove unnecessary includes.
3594 * Makefile.in (alpha-linux-tdep.o): Update.
3595
3596 2003-06-03 Richard Henderson <rth@redhat.com>
3597
3598 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3599 (alphabsd_fill_fpreg): Likewise.
3600
3601 2003-06-03 J. Brobecker <brobecker@gnat.com>
3602
3603 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3604 references to struct frame_info fields by calls to the equivalent
3605 accessors. Necessary now that frame_info is opaque.
3606
3607 2003-06-03 J. Brobecker <brobecker@gnat.com>
3608
3609 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3610 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3611 structure, field no longer exists.
3612
3613 2003-06-03 J. Brobecker <brobecker@gnat.com>
3614
3615 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3616 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3617
3618 2003-06-03 J. Brobecker <brobecker@gnat.com>
3619
3620 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3621 references to struct frame_info fields by calls to the equivalent
3622 accessors. Necessary now that frame_info is opaque.
3623
3624 2003-06-03 J. Brobecker <brobecker@gnat.com>
3625
3626 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3627 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3628 structure, field no longer exists.
3629
3630 2003-06-03 Theodore A. Roth <troth@openavr.org>
3631
3632 * remote.c (init_remote_state): Compute sizeof_g_packet by
3633 accumulation of the size of all registers instead of blindly using
3634 DEPRECATED_REGISTER_BYTES.
3635
3636 2003-06-03 Michael Snyder <msnyder@redhat.com>
3637
3638 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3639 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3640 for h8300sx.
3641
3642 2003-06-03 J. Brobecker <brobecker@gnat.com>
3643
3644 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3645 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3646
3647 2003-06-03 Andrew Cagney <cagney@redhat.com>
3648
3649 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3650 (sparc_convert_to_raw): Delete function.
3651 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3652 register_convert_to_virtual.
3653
3654 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3655
3656 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3657 layer if not dealing with a statically-linked threaded program.
3658
3659 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3660
3661 * solib.c (solib_open): Update comment to reflect actual search order.
3662
3663 2003-06-03 Andrew Cagney <cagney@redhat.com>
3664
3665 * frame.c (get_frame_memory_signed): New function.
3666 (get_frame_memory, get_frame_memory_unsigned): New function.
3667 (get_frame_arch): New function.
3668 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3669 (get_frame_memory, get_frame_unsigned_memory): Declare.
3670 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3671 get_frame_memory_unsigned and get_frame_arch.
3672 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3673
3674 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3675
3676 * MAINTAINERS (write after approval): Add myself.
3677
3678 2003-06-03 Jim Blandy <jimb@redhat.com>
3679
3680 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3681 elements of gregset_t are 64 bits each, but access registers
3682 are still 32 bits, so they're packed two per gregset_t
3683 element. Unpack/pack them properly.
3684
3685 2003-06-02 David Carlton <carlton@bactrian.org>
3686
3687 * linespec.c (find_methods): Break out code into
3688 add_matching_methods and add_constructors.
3689 (add_matching_methods): New.
3690 (add_constructors): Ditto.
3691
3692 2003-06-02 Andrew Cagney <cagney@redhat.com>
3693
3694 * sparc-tdep.c (sparc_print_registers): Delete call to
3695 REGISTER_CONVERTIBLE.
3696 (sparc_gdbarch_init): Do not set register_convertible.
3697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3698 * frv-tdep.c (frv_gdbarch_init): Ditto.
3699 * cris-tdep.c (cris_gdbarch_init): Ditto.
3700
3701 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3702
3703 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3704 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3705 (syms_from_objfile): Ditto.
3706
3707 2003-06-03 Andreas Schwab <schwab@suse.de>
3708
3709 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3710 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3711
3712 2003-06-02 Richard Henderson <rth@redhat.com>
3713
3714 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3715 a member of all_reggroup.
3716
3717 2003-06-02 Richard Henderson <rth@redhat.com>
3718
3719 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3720 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3721 (alpha_lds, alpha_sts): New.
3722 (alpha_convert_register_p): Change from _register_convertible.
3723 (alpha_register_to_value): Change from _convert_to_virtual;
3724 restructure and fail for type sizes other than 4 or 8.
3725 (alpha_value_to_register): Similarly.
3726 (alpha_extract_return_value): Use alpha_sts.
3727 (alpha_store_return_value): Use alpha_lds.
3728 (alpha_gdbarch_init): Update hooks.
3729
3730 2003-06-02 Richard Henderson <rth@redhat.com>
3731
3732 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3733 regnum identifiers.
3734 (alpha_sigtramp_register_address): Likewise.
3735
3736 2003-06-02 Richard Henderson <rth@redhat.com>
3737
3738 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3739 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3740 * alpha-tdep.h: Declare them.
3741
3742 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3743 Remove zerobuf. Don't error on UNIQUE.
3744 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3745 (ALPHA_REGSET_UNIQUE): Provide default.
3746 (supply_gregset): Use alpha_supply_int_regs.
3747 (fill_gregset): Use alpha_fill_int_regs.
3748 (supply_fpregset): Use alpha_supply_fp_regs.
3749 (fill_fpregset): Use alpha_fill_fp_regs.
3750 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3751 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3752 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3753 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3754 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3755 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3756
3757 2003-06-02 Richard Henderson <rth@redhat.com>
3758
3759 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3760
3761 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3762 (alpha_store_return_value): Likewise.
3763
3764 2003-06-02 David Carlton <carlton@math.stanford.edu>
3765
3766 * block.c (contained_in): Add 'const' to arguments.
3767 (block_function): Ditto.
3768 * block.h: Update declarations for block_function and
3769 contained_in.
3770
3771 2003-06-02 David Carlton <carlton@math.stanford.edu>
3772
3773 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3774 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3775 * p-valprint.c (pascal_val_print): Ditto.
3776 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3777
3778 2003-06-02 Richard Henderson <rth@redhat.com>
3779
3780 * alpha-tdep.c (alpha_push_dummy_call): Use
3781 builtin_type_ieee_double_little instead of builtin_type_double.
3782
3783 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3784 sign-extension of 32-bit values.
3785 (alpha_store_return_value): Similarly.
3786
3787 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3788 (alpha_extract_return_value): Likewise.
3789 (alpha_store_return_value): Likewise.
3790
3791 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3792 (alpha_store_return_value): Error on IEEE Quad floats.
3793
3794 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3795 (alpha_extract_struct_value_address): Likewise.
3796 (alpha_store_return_value): Likewise.
3797 (alpha_store_struct_return): Remove.
3798 (alpha_gdbarch_init): Update hook registration to match.
3799
3800 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3801 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3802 macros where appropriate.
3803 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3804 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3805
3806 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3807 for SP, GP; void_func_ptr for PC; non-language-specific types
3808 for all others.
3809 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3810
3811 2003-06-02 Richard Henderson <rth@redhat.com>
3812
3813 * top.h (lim_at_start): Declare.
3814 * main.c (captured_main): Set it.
3815 * top.c (lim_at_start): Define.
3816 (command_loop): Use it instead of &environ.
3817 * event-top.c (command_handler): Likewise.
3818
3819 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3820
3821 * mipsnbsd-tdep.c: Update copyright years.
3822 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3823
3824 2003-06-01 Richard Henderson <rth@redhat.com>
3825
3826 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3827 (alpha-linux-tdep.o): Update dependencies.
3828 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3829 * alpha-mdebug-tdep.c: Remove unneeded includes.
3830
3831 2003-06-01 Richard Henderson <rth@redhat.com>
3832
3833 * alpha-tdep.c (alpha_register_reggroup_p): New.
3834 (alpha_gdbarch_init): Register it.
3835
3836 2003-06-02 Andrew Cagney <cagney@redhat.com>
3837
3838 * dwarfread.c: Eliminate "register"
3839 (decode_die_type): Eliminate assignment within "if".
3840 (struct_type, decode_array_element_type): Ditto.
3841 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3842 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3843 (decode_modified_type, completedieinfo): Ditto.
3844 * block.c: Eliminate "register".
3845 (blockvector_for_pc_sect): Eliminate assignment within "if".
3846 * cp-support.h (struct symbol): Opaque declaration.
3847 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3848
3849 2003-06-01 Richard Henderson <rth@redhat.com>
3850
3851 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3852 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3853
3854 2003-06-01 Adam Fedor <fedor@gnu.org>
3855
3856 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3857 * gdbarch.[ch]: Regenerate.
3858 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3859 (hppa_gdbarch_init): Set it in the gdbarch vector.
3860 * i386-tdep.c (i386_fetch_pointer_argument): New
3861 (i386_gdbarch_init): Set it into gdbarch.
3862 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3863 (rs6000_gdbarch_init): Set it in gdbarch.
3864 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3865 (sparc_gdbarch_init): Set it in gdbarch.
3866
3867 2003-06-01 Andrew Cagney <cagney@redhat.com>
3868
3869 * defs.h (extract_address): Delete declaration.
3870 * findvar.c (extract_address): Delete function.
3871 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3872 extract_address with the inline equivalent,
3873 extract_unsigned_integer.
3874 (xstormy16_extract_struct_value_address): Ditto.
3875 (xstormy16_pointer_to_address): Ditto.
3876 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3877 * v850-tdep.c (v850_push_arguments): Ditto.
3878 (v850_extract_return_value): Ditto.
3879 (v850_extract_struct_value_address): Ditto.
3880 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3881 (sparcnbsd_get_longjmp_target_64): Ditto.
3882 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3883 (get_longjmp_target): Ditto.
3884 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3885 (sh64_extract_struct_value_address): Ditto.
3886 (sh_push_arguments): Ditto.
3887 (sh64_push_arguments): Ditto.
3888 * remote-vxsparc.c (vx_read_register): Ditto.
3889 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3890 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3891 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3892 * mipsv4-nat.c (get_longjmp_target): Ditto.
3893 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3894 * mips-nat.c (get_longjmp_target): Ditto.
3895 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3896 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3897 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3898 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3899 * irix5-nat.c (get_longjmp_target): Ditto.
3900 * irix4-nat.c (get_longjmp_target): Ditto.
3901 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3902 (ia64_push_arguments): Ditto.
3903 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3904 * h8300-tdep.c (h8300_push_arguments): Ditto.
3905 (h8300_store_return_value): Ditto.
3906 (h8300_extract_struct_value_address): Ditto.
3907 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3908 (frv_push_arguments): Ditto.
3909 * avr-tdep.c (avr_pointer_to_address): Ditto.
3910 (avr_push_arguments): Ditto.
3911 * arm-tdep.c (arm_push_dummy_call): Ditto.
3912 (arm_get_longjmp_target): Ditto.
3913 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3914 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3915 (alpha_get_longjmp_target): Ditto.
3916
3917 * solib-irix.c (extract_mips_address): Inline extract_address,
3918 replacing it with extract_signed_integer.
3919 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3920 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3921 (first_link_map_member, open_symbol_file_object): Ditto.
3922 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3923 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3924 (LM_NEXT, LM_NAME): Ditto.
3925
3926 2003-06-01 Richard Henderson <rth@redhat.com>
3927
3928 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3929 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3930 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3931 (alpha_cannot_store_register): Likewise.
3932 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3933 * alpha-nat.c (supply_gregset): Likewise.
3934 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3935
3936 2003-06-01 Andrew Cagney <cagney@redhat.com>
3937
3938 * infcall.c (call_function_by_hand): Update comment on
3939 DEPRECATED_DUMMY_WRITE_SP.
3940
3941 * mips-tdep.c (mips_gdbarch_init): Do not set
3942 deprecated_dummy_write_sp.
3943 (mips_eabi_push_dummy_call): Set the SP register.
3944 (mips_o64_push_dummy_call): Set the SP register.
3945 (mips_o32_push_dummy_call): Set the SP register.
3946 (mips_n32n64_push_dummy_call): Set the SP register.
3947
3948 2003-06-01 Richard Henderson <rth@redhat.com>
3949
3950 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3951 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3952 (supply_gregset): Likewise.
3953 * alpha-tdep.c (alpha_store_return_value): Likewise.
3954 (alpha_get_longjmp_target): Likewise.
3955 (alpha_register_name): Constify array.
3956 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3957 deprecated_register_size, deprecated_register_bytes,
3958 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3959 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3960 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3961
3962 2003-06-01 Richard Henderson <rth@redhat.com>
3963
3964 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3965 from arg_reg_buffer to regcache to avoid double conversion.
3966
3967 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3968
3969 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3970 SP_REGNUM.
3971 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3972 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3973
3974 2003-06-01 Richard Henderson <rth@redhat.com>
3975
3976 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3977 (decode_frame_entry): Set it. Skip FDE augmentation.
3978
3979 2003-06-01 Richard Henderson <rth@redhat.com>
3980
3981 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3982 not overlapping PC_REGNUM.
3983
3984 2003-06-01 Richard Henderson <rth@redhat.com>
3985
3986 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3987 alpha_push_arguments. Don't dump argument register data to
3988 the target stack. Fix float and 128-bit long double semantics.
3989 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3990 (alpha_fix_call_dummy): Remove.
3991 (alpha_call_dummy_words): Remove.
3992 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3993
3994 2003-06-01 Richard Henderson <rth@redhat.com>
3995
3996 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3997
3998 2003-06-01 Andrew Cagney <cagney@redhat.com>
3999
4000 * mips-tdep.c (is_mips16_addr): New function.
4001 (make_mips16_addr, unmake_mips16_addr): New functions.
4002 (pc_is_mips16, mips_fetch_instruction): Use.
4003 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4004 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4005 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4006 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4007 TARGET_MIPS.
4008 * config/mips/tm-mips.h: Update copyright.
4009 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4010 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4011 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4012 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4013 (TM_PRINT_INSN_MACH): Delete.
4014 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4015
4016 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4017 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4018 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4019 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4020 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4021 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4022 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4023 mips*-*-riscos* and mips*-*-sysv* onto mips.
4024 * config/mips/mips64.mt: New file.
4025 * config/mips/mips.mt: New file.
4026 * config/mips/littlemips.mt: Delete file.
4027 * config/mips/decstation.mt: Delete file.
4028 * config/mips/vr4300el.mt: Delete file.
4029 * config/mips/vr5000el.mt: Delete file.
4030 * config/mips/vr5000.mt: Delete file.
4031 * config/mips/vr4100.mt: Delete file.
4032 * config/mips/vr4xxxel.mt: Delete file.
4033 * config/mips/vr4300.mt: Delete file.
4034 * config/mips/vr4xxx.mt: Delete file.
4035 * config/mips/bigmips.mt: Delete file.
4036 * config/mips/bigmips64.mt: Delete file.
4037 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4038 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4039 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4040 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4041 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4042 "tm-bigmips.h".
4043 * config/mips/tm-irix3.h: Ditto.
4044 * config/mips/tm-mipsv4.h: Ditto.
4045 * config/mips/tm-embed.h: Ditto.
4046 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4047 "tm-bigmips64.h".
4048 * config/mips/tm-vr5000el.h: Delete file.
4049 * config/mips/tm-tx39l.h: Delete file.
4050 * config/mips/tm-vr4300el.h: Delete file.
4051 * config/mips/tm-vr4xxxel.h: Delete file.
4052 * config/mips/tm-vr4300.h: Delete file.
4053 * config/mips/tm-vr4100.h: Delete file.
4054 * config/mips/tm-vr4xxx.h: Delete file.
4055 * config/mips/tm-vr5000.h: Delete file.
4056 * config/mips/tm-embedl64.h: Delete file.
4057 * config/mips/tm-embedl.h: Delete file.
4058 * config/mips/tm-embed64.h: Delete file.
4059 * config/mips/tm-bigmips64.h: Delete file.
4060 * config/mips/tm-bigmips.h: Delete file.
4061
4062 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4063
4064 Fix gdb/1216.
4065 * shnbsd-nat.c: Include "sh-tdep.h".
4066
4067 From Richard Henderson <rth@redhat.com>:
4068 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4069
4070 2003-05-31 Andrew Cagney <cagney@redhat.com>
4071
4072 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4073 forward declaration.
4074 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4075 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4076 (mips_find_saved_regs): Use set_reg_offset.
4077 (mips_frame_init_saved_regs): Delete function.
4078 (mips_pop_frame): Call mips_find_saved_regs instead of
4079 DEPRECATED_FRAME_INIT_SAVED_REGS.
4080
4081 2003-05-31 Andrew Cagney <cagney@redhat.com>
4082
4083 * mips-tdep.c (mips_gdbarch_init): Do not set
4084 deprecated_max_register_raw_size, register_virtual_size, and
4085 deprecated_max_register_virtual_size.
4086
4087 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4088
4089 * i386-tdep.c: Include "dwarf2-frame.h".
4090 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4091 * Makefile.in (i386-tdep.o): Update dependencies.
4092
4093 * dwarf2-frame.c, dwarf2-frame.h: New files.
4094 * Makefile.in (SFILES): Add dwarf2-frame.c.
4095 (dwarf2_frame_h): Define.
4096 (COMMON_OBS): Add dwarf2-frame.o.
4097 (dwarf2-frame.o): Add dependencies.
4098
4099 2003-05-31 Andreas Jaeger <aj@suse.de>
4100
4101 * x86-64-linux-nat.c: Fix comment.
4102
4103 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4104
4105 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4106 function signature.
4107
4108 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4109 have a sigcontext_addr handler.
4110 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4111 sigcontext_addr handler.
4112
4113 2003-05-31 Andrew Cagney <cagney@redhat.com>
4114
4115 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4116 (print_fp_register_row): Replace do_fp_register_row.
4117 (mips_print_fp_register): Add "file" and "frame" parameters.
4118 (mips_print_register): Add "file" and "frame" parameters.
4119 (mips_print_registers_info): Replace mips_do_registers_info.
4120 (mips_gdbarch_init): Set print_registers_info instead of
4121 deprecated_do_registers_info.
4122 (mips_read_fp_register_single): Add "frame" parameter.
4123 (mips_read_fp_register_double): Add "frame" parameter.
4124
4125 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4126
4127 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4128 Fixes a bug where GDB would print the wrong register names for
4129 targets without SSE.
4130
4131 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4132 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4133 registers.
4134
4135 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4136 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4137 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4138 TDEP->sc_sp_offset.
4139
4140 From Michal Ludvig <mludvig@suse.cz>:
4141 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4142 and `sc_num_regs'.
4143 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4144 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4145 I386_ST0_REGNUM): Move here from...
4146 * i386-tdep.c: ... here.
4147 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4148 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4149 registers if possible.
4150 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4151 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4152 Remove variables.
4153 (i386bsd_sc_reg_offset): New variable.
4154 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4155 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4156 TDEP->sc_sp_offset.
4157 (i386fbsd_sc_reg_offset): New variable.
4158 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4159 TDEP->sc_num_regs.
4160 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4161 variables.
4162 (i386fbsd4_sc_reg_offset): New variable.
4163 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4164 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4165 TDEP->sc_sp_offset.
4166 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4167 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4168 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4169 Remove variables.
4170 (i386nbsd_sc_reg_offset): New variable.
4171 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4172 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4173 TDEP->sc_sp_offset.
4174 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4175 Remove variables.
4176 (i386obsd_sc_reg_offset): New variable.
4177 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4178 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4179 TDEP->sc_sp_offset.
4180 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4181 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4182 for frame pointer offset in `struct sigcontext'.
4183
4184 2003-05-31 Andrew Cagney <cagney@redhat.com>
4185
4186 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4187 architecture methods call_dummy_words, sizeof_call_dummy_words,
4188 push_return_address, store_struct_return, and fix_call_dummy. Set
4189 push_dummy_call instead of deprecated_push_arguments.
4190 (mips_store_struct_return): Delete function.
4191 (mips_fix_call_dummy): Delete function.
4192 (mips_push_return_address): Delete function.
4193 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4194 RA_REGNUM and T9_REGNUM.
4195 (mips_n32n64_push_dummy_call): Ditto for
4196 mips_n32n64_push_arguments.
4197 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4198 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4199
4200 2003-05-31 Andrew Cagney <cagney@redhat.com>
4201
4202 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4203 "dummy_addr" to "bp_addr".
4204 * infcall.c (call_function_by_hand): Pass "funaddr" to
4205 gdbarch_push_dummy_call.
4206 * gdbarch.h, gdbarch.c: Re-generate.
4207 * i386-tdep.c (i386_push_dummy_call): Update.
4208 * arm-tdep.c (arm_push_dummy_call): Update.
4209 * d10v-tdep.c (d10v_push_dummy_call): Update.
4210
4211 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4212
4213 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4214 variable declarations.
4215 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4216 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4217 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4218 x86_64_init_frame_pc, x86_64_init_frame_pc,
4219 x86_64_function_has_prologue): Remove prototypes.
4220 (X86_64_NUM_GREGS): New define.
4221 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4222 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4223 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4224 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4225 XMM1_REGNUM): Remove defines.
4226 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4227 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4228 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4229 X86_64_XMM1_REGNUM): New defines.
4230 (struct x86_64_register_info): Renamed from `struct
4231 register_info'. Remove `size' member.
4232 (x86_64_register_info_table): Remove variable.
4233 (x86_64_register_info): New variable.
4234 (X86_64_NUM_REGS): New define.
4235 (X86_64_NUM_GREGS): Remove define.
4236 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4237 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4238 Remove variables.
4239 (x86_54_dwarf2_reg_to_regnum): Remove function.
4240 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4241 (x86_64_dwarf_reg_to_regnum): New function.
4242 (x86_64_register_name): Rewrite.
4243 (x86_64_register_raw_size): Remove function.
4244 (x86_64_register_byte_table): Remove variable.
4245 (x86_64_register_byte): Remove function.
4246 (x86_64_register_virtual_type): Remove function.
4247 (x86_64_register_type): New function.
4248 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4249 x86_64_register_convert_to_raw): Remove functions.
4250 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4251 (x86_64_use_struct_convention): Make static. Adjust for renamed
4252 defines.
4253 (x86_64_frame_init_saved_regs): Remove function.
4254 (x86_64_push_arguments): Make static. Change to accept a regcache
4255 as argument.
4256 (x86_64_store_return_value, x86_64_extract_return_value): Make
4257 static. Rewrite based on i386 counterparts.
4258 (x86_64_push_dummy_call): New function.
4259 (X86_64_NUM_SAVED_REGS): New define.
4260 (x86_64_register_number): Remove function.
4261 (x86_64_store_struct_return): Remove function.
4262 (x86_64_frameless_function_invocation,
4263 x86_64_function_has_prologue): Remove functions.
4264 (PROLOG_BUFSIZE): Remove define.
4265 (struct x86_64_frame_cache): New structure.
4266 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4267 x86_64_frame_cache, x86_64_frame_this_id,
4268 x86_64_frame_prev_register, x86_64_frame_p,
4269 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4270 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4271 functions.
4272 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4273 variables.
4274 (x86_64_skip_prologue): Rewrite in terms of
4275 x86_64_analyze_prologue.
4276 (x86_64_frame_base_address): New function.
4277 (x86_64_frame_base): New variable.
4278 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4279 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4280 set deprecated_fp_regnum, deprecated_register_size,
4281 deprecated_register_bytes, register_raw_size, register_byte,
4282 register_virtual_type, register_convertiable,
4283 register_convert_to_virtual, convert_to_raw,
4284 deprecated_get_saved_register, deprecated_target_read_fp,
4285 deprecated_push_arguments, deprecated_push_return_address,
4286 deprecated_pop_frame, deprecated_store_struct_return,
4287 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4288 frameless_function_invocation, deprecated_frame_saved_pc,
4289 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4290 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4291 deprecated_init_frame_pc and virtual_frame_pointer. Call
4292 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4293 and x86_64_frame_p. Call frame_base_set_default to register
4294 x86_64_frame_base.
4295 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4296 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4297 (_initialize_x86_64_tdep): Remove function.
4298 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4299 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4300 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4301 define.
4302 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4303 (x86_64_linux_sigcontext_addr): Rewrite.
4304 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4305 x86_64_linux_frame_saved_pc): Remove functions.
4306 (x86_64_linux_pc_in_sigtramp): Renamed from
4307 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4308 trampoline.
4309 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4310 Remove_functions.
4311 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4312 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4313 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4314 (x86_64_regmap): Rename to regmap.
4315 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4316 x86_64_num_gregs.
4317 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4318 x86_64_regmap.
4319 (x86_64_fxsave_offset): Remove function.
4320 (supply_fpregset): Simply call x86_64_supply_fxsave.
4321 (fill_fpregset): Simply call x86_64_fill_fxsave.
4322 (fetch_inferior_registers, store_inferior_registers): Avoid
4323 asignment in if-statement.
4324 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4325 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4326 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4327 (fetch_core_registers): Remove function.
4328 (linux_elf_core_fns): Remove.
4329 (offsetoff): Don't define.
4330 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4331 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4332 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4333 add core-regset.o.
4334 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4335 protection against multiple includes instead of NM_X86_64_h. Add
4336 various comments. Include "config/nm-linux.h". Don't include
4337 <signal.h>.
4338 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4339 GET_THREAD_SIGNALS): Remove defines.
4340 (x86_64_register_u_addr, kernel_u_size,
4341 lin_thread_get_thread_signals): Remove prototypes.
4342 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4343 [HAVE_LINK_H]: Don't include "solib.h".
4344 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4345 * config/i386/tm-x86-64linux.h: Fix comments.
4346 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4347 x86-64-tdep.o): Update dependencies.
4348
4349 2003-05-30 Andrew Cagney <cagney@redhat.com>
4350
4351 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4352 Change parameter type to a "struct regcache *".
4353
4354 * gdbarch.sh: Regardless of the multi-arch level, always define
4355 the macro when not already defined.
4356 * gdbarch.h, gdbarch.c: Re-generate.
4357
4358 2003-05-30 Richard Henderson <rth@redhat.com>
4359
4360 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4361 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4362 (alpha_mdebug_frame_this_id): Likewise.
4363 (alpha_mdebug_frame_prev_register): Likewise.
4364 (alpha_mdebug_frame_base_address): Likewise.
4365 (alpha_mdebug_frame_locals_address): Likewise.
4366 (alpha_mdebug_frame_args_address): Likewise.
4367 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4368 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4369 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4370 loop increment.
4371 (alpha_heuristic_frame_this_id): Make static.
4372 (alpha_heuristic_frame_prev_register): Likewise.
4373 (alpha_heuristic_frame_base_address): Likewise.
4374 * alpha-tdep.h: Update.
4375
4376 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4377
4378 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4379 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4380 defenitions.
4381 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4382 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4383 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4384 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4385 I386_ST0_REGNUM): New defines.
4386 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4387 codestream_get): Remove define.
4388 (codestream_next_addr, condestream_addr, condestream_buf,
4389 codestream_off, codestream_cnt): Remove variables.
4390 (codestream_fill, codestream_seek, codestream_read): Remove
4391 functions.
4392 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4393 functionality.
4394 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4395 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4396 i386_frame_saved_pc, i386_saved_pc_after_call,
4397 i386_frame_num_args, i386_frame_init_saved_regs,
4398 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4399 i386_push_arguments): Remove functions.
4400 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4401 functionality. Use i386_analyze_prologue instead of
4402 i386_get_frame_setup.
4403 (I386_NUM_SAVED_REGS): New define.
4404 (struct i386_frame_cache): New structure.
4405 (i386_alloc_frame_cache, i386_analyze_struct_return,
4406 i386_skip_probe, i386_analyze_frame_setup,
4407 i386_analyze_register_saves, i386_analyze_prologue,
4408 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4409 i386_frame_prev_register, i386_sigtramp_frame_cache,
4410 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4411 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4412 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4413 New functions.
4414 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4415 New variables.
4416 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4417 I386_EAX_REGNUM and I386_EDX_REGNUM.
4418 (i386_extract_return_value, i386_store_return_value): Use
4419 I386_ST0_REGNUM where appropriate.
4420 (i386_extract_struct_value_address): Rewrite to use extract_address.
4421 (i386_svr4_pc_in_sigtramp): Add comment.
4422 (i386_svr4_sigcontext_addr): Rewrite.
4423 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4424 TDEP->sc_sp_offset.
4425 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4426 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4427 of new defines. Set push_dummy_call, don't set
4428 deprecated_push_arguments, deprecated_push_return_address,
4429 deprecated_pop_frame. Don't set parm_boundary. Don't set
4430 deprecated_frame_chain, deprecated_frame_saved_pc,
4431 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4432 save_dummy_frame_tos, unwind_pc. Call
4433 frame_unwind_append_predicate and frame_base_set_default. Don't
4434 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4435 Don't set frameless_function_invocation. Don't set
4436 deprecated_register_bytes, deprecated_register_size,
4437 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4438 * i386-linux-tdep.c: Fix formatting in some comments.
4439 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4440 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4441 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4442 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4443 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4444 redundant parentheses.
4445 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4446 (i386_linux_sigcontext_addr): Use it. Rewrite.
4447 (find_minsym_and_objfile): Change name of second argument.
4448 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4449 changed. Use frame_pc_unwind instead of
4450 DEPRECATED_SAVED_PC_AFTER_CALL.
4451 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4452 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4453 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4454 unwinder.
4455 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4456 "dummy-frame.h".
4457 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4458 (_initialize_i386_cygwin_tdep): New prototype.
4459 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4460 deprecated_frame_chain_valid.
4461 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4462 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4463 Rely on the SVR4 defaults.
4464 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4465 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4466
4467 2003-05-30 Andrew Cagney <cagney@redhat.com>
4468
4469 * infcall.c (call_function_by_hand): Always call
4470 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4471
4472 2003-05-30 Richard Henderson <rth@redhat.com>
4473
4474 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4475 increment.
4476
4477 2003-05-29 Jim Blandy <jimb@redhat.com>
4478
4479 Use gdbarch methods for solib stuff on PowerPC Linux.
4480 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4481 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4482 show through.
4483 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4484 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4485 giving the same effect as the #definitions above.
4486
4487 2003-05-29 Adam Fedor <fedor@gnu.org>
4488
4489 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4490 (find_implementation_from_class): Replace it with the standard
4491 case i.e. do nothing.
4492
4493 2003-05-29 Richard Henderson <rth@redhat.com>
4494
4495 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4496 (alpha_linux_sigtramp_offset): Use it. Make static.
4497 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4498 update for new frame model.
4499 * alpha-mdebug-tdep.c: New file.
4500 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4501 (alpha_osf1_init_abi): Install it.
4502 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4503 (linked_proc_desc_table): Remove.
4504 (alpha_frame_past_sigtramp_frame): Remove.
4505 (alpha_dynamic_sigtramp_offset): Remove.
4506 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4507 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4508 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4509 (push_sigtramp_desc): Remove.
4510 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4511 (alpha_cannot_store_register): Likewise.
4512 (alpha_sigcontext_addr): Remove.
4513 (alpha_find_saved_regs): Remove.
4514 (alpha_frame_init_saved_regs): Remove.
4515 (alpha_init_frame_pc_first): Remove.
4516 (read_next_frame_reg): Remove.
4517 (alpha_frame_saved_pc): Remove.
4518 (alpha_saved_pc_after_call): Remove.
4519 (temp_proc_desc, temp_saved_regs): Remove.
4520 (alpha_about_to_return): Remove.
4521 (cached_proc_desc): Remove.
4522 (alpha_frame_chain): Remove.
4523 (alpha_print_extra_frame_info): Remove.
4524 (alpha_init_extra_frame_info): Remove.
4525 (alpha_frame_locals_address): Remove.
4526 (alpha_frame_args_address): Remove.
4527 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4528 (alpha_push_dummy_frame): Remove.
4529 (alpha_pop_frame): Remove.
4530 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4531 (alpha_read_insn): New.
4532 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4533 for different insn encodings.
4534 (alpha_in_lenient_prologue): Remove.
4535 (struct alpha_sigtramp_unwind_cache): New.
4536 (alpha_sigtramp_frame_unwind_cache): New.
4537 (alpha_sigtramp_register_address): New.
4538 (alpha_sigtramp_frame_this_id): New.
4539 (alpha_sigtramp_frame_prev_register): New.
4540 (alpha_sigtramp_frame_unwind): New.
4541 (alpha_sigtramp_frame_p): New.
4542 (struct alpha_heuristic_unwind_cache): New.
4543 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4544 don't count nop insns that occur between functions.
4545 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4546 heuristic_proc_desc, but without the mdebug wrapping.
4547 (alpha_heuristic_frame_this_id): New.
4548 (alpha_heuristic_frame_prev_register): New.
4549 (alpha_heuristic_frame_unwind): New.
4550 (alpha_heuristic_frame_p): New.
4551 (alpha_heuristic_frame_base_address): New.
4552 (alpha_heuristic_frame_base): New.
4553 (alpha_unwind_dummy_id): New.
4554 (alpha_unwind_pc): New.
4555 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4556 frame related deprecated initializations; install replacements.
4557 (alpha_dump_tdep): Remove.
4558 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4559 (alpha_read_insn, alpha_after_prologue,
4560 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4561 alpha_heuristic_frame_prev_register,
4562 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4563 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4564 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4565 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4566
4567 2003-05-29 Andrew Cagney <cagney@redhat.com>
4568
4569 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4570 dependant on the availability of ASSERT_FUNCTION.
4571 (ASSERT_FUNCTION): Do not define when there is no function name.
4572
4573 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4574
4575 From Jimi X <jimix@watson.ibm.com>:
4576 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4577
4578 2003-05-28 Jim Blandy <jimb@redhat.com>
4579
4580 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4581 argument to ptrace to int; the system headers should give it the
4582 right type, and pointers don't fit in ints on powerpc64-*-*.
4583
4584 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4585
4586 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4587 DW_TAG_catch_block.
4588
4589 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4590
4591 * stabsread.c (dbx_lookup_type): Make static.
4592 (read_type): Ditto.
4593 (add_undefined_type): Ditto.
4594 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4595 not export.
4596
4597 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4598
4599 * hpread.c (hpread_has_name): Make static.
4600 (hpread_psymtab_to_symtab): Ditto.
4601 (file_exists): Ditto.
4602 (hpread_call_pxdb): Ditto.
4603 (hpread_pxdb_needed): Ditto.
4604 (hpread_quick_traverse): Ditto.
4605 (hpread_get_header): Ditto.
4606 (hpread_get_lntt): Ditto.
4607 (hpread_get_slt): Ditto.
4608 (class_of): Ditto.
4609
4610 2003-05-25 Andreas Schwab <schwab@suse.de>
4611
4612 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4613 stack_align and deprecated_extra_stack_alignment_needed.
4614 (m68k_stack_align): Delete.
4615
4616 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4617 (m68k_register_virtual_size): Likewise.
4618 (altos_skip_prologue): Remove obsolete function.
4619 (isi_frame_num_args): Likewise.
4620 (news_frame_num_args): Likewise.
4621 (m68k_fix_call_dummy): Make static.
4622 (m68k_push_dummy_frame): Likewise.
4623 (m68k_pop_frame): Likewise.
4624 (m68k_skip_prologue): Likewise.
4625 (m68k_frame_init_saved_regs): Likewise.
4626 (m68k_saved_pc_after_call): Likewise.
4627 (m68k_get_longjmp_target): Make multi-arch.
4628 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4629 structure. Register m68k_get_longjmp_target if enabled.
4630 * m68k-tdep.h (struct gdbarch_tdep): Define.
4631 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4632
4633 * Makefile.in (config.status): Also depend on configure.tgt
4634 and configure.host.
4635 (m68klinux-tdep.o): Update dependencies.
4636 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4637 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4638 (M68K_LINUX_JB_PC): Define.
4639 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4640 and take additional parameter.
4641 (m68k_linux_sigtramp_saved_pc): Update.
4642 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4643 m68k_linux_pc_in_sigtramp, in_plt_section,
4644 find_solib_trampoline_target.
4645 * config/m68k/tm-linux.h: Don't include any tm headers.
4646 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4647 (JB_ELEMENT_SIZE): Likewise.
4648 (JB_PC): Likewise.
4649 (GET_LONGJMP_TARGET): Likewise.
4650 (IN_SIGTRAMP): Likewise.
4651 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4652
4653 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4654
4655 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4656 (sparc32_push_arguments): Re-implement by calling
4657 sparc32_do_push_arguments.
4658
4659 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4660
4661 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4662 SPARC_O1_REGNUM): New defines.
4663 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4664 (sparc32_store_return_value): New function.
4665 (sparc_extract_struct_value_address): Rewrite to operate on a
4666 regcache.
4667 (sparc_gdbarch_init): Don't set
4668 deprecated_extract_struct_value_address. Set
4669 extract_struct_value_address instead. Don't set
4670 deprecated_extract_return_value and deprecated_store_return_value
4671 for 32-bit targets. Set extract_return_value and
4672 store_return_value instead.
4673 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4674 DEPRECTAED_EXTRACT_RETURN_VALUE,
4675 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4676 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4677 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4678 (sparc_store_return_value): Remove prototype.
4679 (sparc32_store_return_value): New prototype.
4680 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4681 Adjust prototypes.
4682
4683 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4684
4685 * sparcnbsd-tdep.c: Include "gdb_string.h".
4686
4687 2003-05-23 Andrew Cagney <cagney@redhat.com>
4688
4689 * p-valprint.c (pascal_val_print): Replace extract_address with
4690 the inline equivalent extract_unsigned_integer.
4691 * jv-valprint.c (java_value_print): Ditto.
4692 * ada-valprint.c (ada_val_print_1): Ditto.
4693 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4694
4695 2003-05-23 Theodore A. Roth <troth@openavr.org>
4696
4697 * blockframe.c (frameless_look_for_prologue): Remove unused
4698 after_prologue variable.
4699
4700 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4701
4702 * blockframe.c (get_pc_function_start): Rewrite to avoid
4703 asignments in if-statements.
4704
4705 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4706
4707 Committed by Elena Zannoni <ezannoni@redhat.com>.
4708 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4709 files, don't relocate absolute symbols (and do use mst_abs).
4710
4711 2003-05-23 Andrew Cagney <cagney@redhat.com>
4712
4713 * objc-lang.c: Include "gdb_assert.h".
4714 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4715 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4716 (gdb_check, gdb_check_fatal): Delete functions.
4717 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4718 gdb_assert.
4719 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4720 * Makefile.in (objc-lang.o): Update dependencies.
4721
4722 2003-05-22 Ian Lance Taylor <ian@airs.com>
4723
4724 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4725 with fprintf_filtered, not fprintf_unfiltered.
4726
4727 2003-05-22 Andrew Cagney <cagney@redhat.com>
4728
4729 * stack.c (frame_info): Inline extract_address, replacing it with
4730 extract_unsigned_integer.
4731 * findvar.c (unsigned_pointer_to_address): Ditto.
4732 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4733 * dwarf2expr.c (dwarf2_read_address): Ditto.
4734 * frame.c (frame_pc_unwind): Update comment.
4735 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4736
4737 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4738
4739 * infptrace.c (detach): Call print_sys_errmsg rather than
4740 perror_with_name to issue warning message when errno is non-zero
4741 after calling ptrace detach.
4742
4743 2003-05-21 J. Brobecker <brobecker@gnat.com>
4744
4745 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4746 macro definitions from here...
4747 * hppa-tdep.c: ...to there.
4748
4749 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4750
4751 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4752 register_ptrace_addr(). Fix all callers.
4753
4754 2003-05-21 Andreas Schwab <schwab@suse.de>
4755
4756 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4757 dependencies.
4758 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4759 end.
4760 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4761 (_initialize_m68k_linux_tdep): New function.
4762 (m68k_linux_frame_saved_pc): Make static.
4763 (m68k_linux_extract_return_value): Likewise.
4764 (m68k_linux_store_return_value): Likewise.
4765 (m68k_linux_extract_struct_value_address): Likewise.
4766 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4767 Remove.
4768 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4769 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4770 (DEPRECATED_FRAME_SAVED_PC): Remove.
4771
4772 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4773
4774 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4775 regset numbering rather than our own.
4776
4777 2003-05-19 David Carlton <carlton@bactrian.org>
4778
4779 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4780
4781 2003-05-19 David Carlton <carlton@bactrian.org>
4782
4783 Partial fix for PR c++/827.
4784 * cp-support.h: Include symtab.h.
4785 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4786 * cp-namespace.c: Update contributors.
4787 (cp_lookup_symbol_nonlocal): New.
4788 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4789 (lookup_symbol_file): Ditto.
4790 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4791 * block.h: Declare block_scope, block_using, block_global_block.
4792 * block.c (block_scope): New.
4793 (block_using, block_global_block): Ditto.
4794 * Makefile.in (cp_support_h): Depend on symtab_h.
4795 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4796
4797 2003-05-19 David Carlton <carlton@bactrian.org>
4798
4799 * language.h (struct language_defn): Add 'la_value_of_this'
4800 and 'la_lookup_symbol_nonlocal' members.
4801 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4802 lookup_symbol_static, lookup_symbol_global,
4803 lookup_symbol_aux_block.
4804 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4805 if we should search fields of this and how to do static/global
4806 lookup.
4807 (lookup_symbol_aux_block): Make extern.
4808 (basic_lookup_symbol_nonlocal): New.
4809 (lookup_symbol_static, lookup_symbol_global): Ditto.
4810 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4811 'la_lookup_symbol_nonlocal' members.
4812 * c-lang.c (c_language_defn, cplus_language_defn)
4813 (asm_language_defn, minimal_language_defn): Ditto.
4814 * jv-lang.c (java_language_defn): Ditto.
4815 * language.c (unknown_language_defn, auto_language_defn)
4816 (local_language_defn): Ditto.
4817 * m2-lang.c (m2_language_defn): Ditto.
4818 * objc-lang.c (objc_language_defn): Ditto.
4819 * scm-lang.c (scm_language_defn): Ditto.
4820 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4821 * p-lang.c (pascal_language_defn): Ditto for both.
4822 * Makefile.in (f-lang.o): Depend on value_h.
4823 (p-lang.o): Ditto.
4824
4825 2003-05-19 David Carlton <carlton@bactrian.org>
4826
4827 * block.h: Declare block_static_block.
4828 * block.c (block_static_block): New.
4829 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4830 lookup_symbol_aux_local, calling block_static_block instead.
4831 (lookup_symbol_aux_local): Delete 'static_block' argument.
4832
4833 2003-05-19 David Carlton <carlton@bactrian.org>
4834
4835 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4836
4837 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4838
4839 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4840 register numbers mapping.
4841
4842 2003-05-18 Adam Fedor <fedor@gnu.org>
4843
4844 * symtab.c (completion_list_objc_symbol): New function.
4845 (make_symbol_completion_list): Use it to add ObjC symbols
4846 when looking though the list.
4847 (language_search_unquoted_string): New function.
4848 (make_file_symbol_completion_list): Use it.
4849
4850 2003-05-18 Andreas Schwab <schwab@suse.de>
4851
4852 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4853 dependencies.
4854 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4855 as m68k_linux_extract_return_value.
4856 (DEPRECATED_STORE_RETURN_VALUE): Define as
4857 m68k_linux_store_return_value.
4858 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4859 m68k_linux_extract_struct_value_address.
4860 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4861 get_next_frame, get_frame_base, get_frame_pc.
4862 (m68k_linux_frame_saved_pc): Use get_frame_base.
4863 (m68k_linux_extract_return_value): New function.
4864 (m68k_linux_store_return_value): New function.
4865 (m68k_linux_extract_struct_value_address): New function.
4866 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4867
4868 * c-exp.y (typebase): Remove duplicate occurence of
4869 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4870 of lookup_signed_typename.
4871
4872 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4873
4874 * dwarf2loc.c (find_location_expression): Change type of second
4875 argument to `size_t *'.
4876 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4877 for size variable.
4878
4879 2003-05-18 David Carlton <carlton@bactrian.org>
4880
4881 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4882 'linkage_name'. Add comment.
4883 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4884 'linkage_name'.
4885 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4886 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4887 (lookup_block_symbol): Ditto.
4888
4889 2003-05-16 Andrew Cagney <cagney@redhat.com>
4890
4891 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4892 * gdbarch.h, gdbarch.c: Re-generate.
4893 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4894 * TODO (REGISTER_BYTES): Delete reference.
4895 * alpha-tdep.c (alpha_gdbarch_init): Update.
4896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4897 * x86-64-tdep.c (x86_64_init_abi): Update.
4898 * vax-tdep.c (vax_gdbarch_init): Update.
4899 * v850-tdep.c (v850_gdbarch_init): Update.
4900 * sparc-tdep.c (sparc_gdbarch_init): Update.
4901 * sh-tdep.c (sh_gdbarch_init): Update.
4902 * s390-tdep.c (s390_gdbarch_init): Update.
4903 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4904 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4905 (ns32k_gdbarch_init_32382): Update.
4906 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4907 * mcore-tdep.c (mcore_gdbarch_init): Update.
4908 * m68k-tdep.c (m68k_gdbarch_init): Update.
4909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4910 * ia64-tdep.c (ia64_gdbarch_init): Update.
4911 * i386-tdep.c (i386_gdbarch_init): Update.
4912 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4913 * hppa-tdep.c (hppa_gdbarch_init): Update.
4914 * h8300-tdep.c (h8300_gdbarch_init): Update.
4915 * frv-tdep.c (frv_gdbarch_init): Update.
4916 * cris-tdep.c (cris_gdbarch_init): Update.
4917 * avr-tdep.c (avr_gdbarch_init): Update.
4918 * arm-tdep.c (arm_gdbarch_init): Update.
4919 * sparc-tdep.c (sparc_pop_frame): Update.
4920 * rs6000-tdep.c (rs6000_pop_frame): Update.
4921 * remote.c (init_remote_state): Update.
4922 (remote_prepare_to_store): Update.
4923 * remote-vx.c (vx_prepare_to_store): Update.
4924 * remote-sds.c (sds_fetch_registers): Update.
4925 (sds_prepare_to_store): Update.
4926 * remote-array.c: Update.
4927 * regcache.c (init_legacy_regcache_descr): Update.
4928 (init_regcache_descr): Update.
4929 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4930 (mips_o64_extract_return_value): Update.
4931 * irix5-nat.c (fetch_core_registers): Update.
4932 * irix4-nat.c (fetch_core_registers): Update.
4933 * i386-tdep.h: Update.
4934 * hppa-tdep.c (pa_do_registers_info): Update.
4935 (pa_do_strcat_registers_info): Update.
4936 * cris-tdep.c (cris_register_bytes_ok): Update.
4937 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4938 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4939 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4940 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4941 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4942 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4943 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4944 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4945 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4946 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4947 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4948 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4949 (REGISTER_BYTES_OK): Update.
4950 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4951 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4952
4953 2003-05-16 Ian Lance Taylor <ian@airs.com>
4954
4955 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4956 (vax_print_insn, print_insn_arg): Remove static functions.
4957 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4958 print_insn_vax from opcodes library.
4959 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4960
4961 2003-05-15 Andrew Cagney <cagney@redhat.com>
4962
4963 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4964 * target.h (memory_breakpoint_from_pc): Delete declaration.
4965 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4966 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4967 * monitor.c (monitor_insert_breakpoint): Use
4968 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4969 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4970 * gdbarch.h, gdbarch.c: Re-generate.
4971 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4972 (sparc_gdbarch_init): Set breakpoint_from_pc to
4973 sparc_breakpoint_from_pc.
4974 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4975 (BREAKPOINT_FROM_PC): Define.
4976 (sparc_breakpoint_from_pc): Declare.
4977 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4978 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4979 (BREAKPOINT_FROM_PC): Define.
4980 (BREAKPOINT): Delete macro.
4981 * target.h: Update comment.
4982 * s390-tdep.c (s390_gdbarch_init): Update comments.
4983 * remote.c: Update comments.
4984 * remote-mips.c: Update comments.
4985 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4986 * mem-break.c: Update comment.
4987 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4988 (ia64_memory_insert_breakpoint): Update.
4989 * config/sparc/tm-sparc.h: Update comment.
4990 * config/pa/tm-hppa64.h: Update comment.
4991 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4992 (rs6000_breakpoint_from_pc): Update.
4993 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4994 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4995 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4996 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4997 (mips_breakpoint_from_pc): Update.
4998 (mips_dump_tdep): Update.
4999
5000 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5001 * minsyms.c (lookup_minimal_symbol): Inline
5002 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5003
5004 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5005 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5006 * p-lang.c (pascal_printstr): Ditto.
5007 * objc-lang.c (objc_printstr): Ditto.
5008 * m2-lang.c (m2_printstr): Ditto.
5009 * jv-valprint.c (java_print_value_fields): Ditto.
5010 * f-lang.c (f_printstr): Ditto.
5011 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5012 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5013 for repeat_count_threshold.
5014 * Makefile.in (cp-valprint.o): Update dependencies.
5015
5016 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5017
5018 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5019 (examine_prologue): Support looking through leaf functions, knowing
5020 they start with mov r2,r12. Support skipping over indirect stores
5021 of the input registers. Upon hitting a non-nop branch instruction
5022 or predicated instruction, bail out by setting lim_pc to the current
5023 pc value in the loop. At the end, if the lim_pc value is still
5024 beyond our calculated value and we have trust_limit set,
5025 use the lim_pc value.
5026
5027 2003-05-15 Andrew Cagney <cagney@redhat.com>
5028
5029 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5030 generic_find_dummy_frame.
5031 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5032 (deprecated_generic_find_dummy_frame): Update.
5033 (deprecated_read_register_dummy): Update.
5034 * frame.c (deprecated_generic_get_saved_register): Update.
5035
5036 2003-05-15 Theodore A. Roth <troth@openavr.org>
5037
5038 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5039 (avr_gdbarch_init): Set breakpoint_from_pc method.
5040
5041 2003-05-15 Andrew Cagney <cagney@redhat.com>
5042
5043 * regcache.c (build_regcache): Set deprecated_register_valid
5044 directly.
5045 (deprecated_grub_regcache_for_register_valid): Delete function.
5046 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5047 declaration.
5048
5049 2003-05-15 David Carlton <carlton@bactrian.org>
5050
5051 Committed by Elena Zannoni <ezannoni@redhat.com>
5052 * symtab.c (lookup_symbol_aux): Delete calls to
5053 lookup_symbol_aux_minsyms.
5054 (lookup_symbol_aux_minsyms): Comment out function and
5055 prototype. Delete lookup by mangled name.
5056
5057 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5058
5059 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5060 correctly indicate an empty stack and ``stack_allocated'' to the
5061 indicate the number of elements initially allocated.
5062 (dwarf_expr_grow_stack): Simplify method for computing new
5063 stack size. Don't loop infinitely if ``stack_len'' is zero.
5064 (execute_stack_op): Move ``ctx->in_reg'' initialization
5065 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5066 be used in conjuction with DW_OP_piece. Revise error message
5067 accordingly.
5068
5069 2003-05-14 Theodore A. Roth <troth@openavr.org>
5070
5071 * MAINTAINERS: Update my email address.
5072 * avr-tdep.c: Ditto.
5073
5074 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5075
5076 * symtab.h (enum domain_enum): Rename from namespace_enum.
5077 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5078 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5079 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5080 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5081 TYPES_NAMESPACE, METHODS_NAMESPACE.
5082 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5083 (struct symbol, struct partial_symbol): Rename field
5084 'namespace_enum namespace' to 'domain_enum domain'.
5085 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5086 Delete old define kludge for namespace.
5087
5088 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5089 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5090 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5091 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5092 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5093 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5094 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5095 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5096 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5097 occurrences of the above.
5098
5099 2003-05-14 Ian Lance Taylor <ian@airs.com>
5100
5101 * Makefile.in (install-only): Use $(SHELL) when running
5102 mkinstalldirs.
5103
5104 2003-05-13 Ian Lance Taylor <ian@airs.com>
5105
5106 * MAINTAINERS (write after approval): Add myself.
5107
5108 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5109 second and third arguments.
5110 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5111 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5112
5113 2003-05-13 Andrew Cagney <cagney@redhat.com>
5114
5115 * defs.h (store_address): Delete declaration.
5116 findvar.c (store_address): Delete function.
5117 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5118 store_unsigned_integer.
5119 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5120 * v850-tdep.c (v850_push_arguments): Ditto.
5121 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5122 * sh-tdep.c (sh64_get_saved_register): Ditto.
5123 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5124 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5125 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5126 (mips_get_saved_register): Ditto.
5127 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5128 (find_func_descr, ia64_push_arguments): Ditto.
5129 * i386-tdep.c (i386_push_arguments): Ditto.
5130 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5131 * frv-tdep.c (frv_push_arguments): Ditto.
5132 * frame.c (legacy_saved_regs_prev_register): Ditto.
5133 (deprecated_generic_get_saved_register): Ditto.
5134 * findvar.c (unsigned_address_to_pointer): Ditto.
5135 * dwarf2read.c (dwarf2_const_value): Ditto.
5136 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5137 * alpha-tdep.c (alpha_push_arguments): Ditto.
5138
5139 2003-05-12 J. Brobecker <brobecker@gnat.com>
5140
5141 * NEWS: Mention that the hppa-hpux port has been partially
5142 multiarched (32bit ABIT only, so far).
5143
5144 2003-05-11 Andrew Cagney <cagney@redhat.com>
5145
5146 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5147 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5148 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5149 sim/testsuite/sim/arm/misaligned2.ms, and
5150 sim/testsuite/sim/arm/misaligned3.ms.
5151 * disasm.h (struct ui_file): Add opaque struct declaration.
5152 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5153 * frame.h (struct ui_file): Ditto.
5154
5155 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5156
5157 * value.h: Pretty print.
5158
5159 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5160
5161 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5162
5163 2003-05-08 Andrew Cagney <cagney@redhat.com>
5164
5165 * regcache.h (max_register_size): Delete declaration.
5166 * regcache.c (max_register_size): Delete function.
5167 (struct regcache_descr): Delete field "max_register_size".
5168 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5169 registers fit in MAX_REGISTER_SIZE.
5170 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5171 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5172 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5173 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5174 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5175 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5176 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5177 * dve3900-rom.c, hppa-tdep.c: Ditto.
5178
5179 2003-05-08 David Carlton <carlton@math.stanford.edu>
5180
5181 * valops.c (push_word): Fix typo.
5182
5183 2003-05-08 Andrew Cagney <cagney@redhat.com>
5184
5185 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5186 * gdbarch.h: Re-generate.
5187 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5188 (legacy_max_register_raw_size): Delete declaration.
5189 * regcache.c (legacy_max_register_raw_size): Delete function.
5190 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5191 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5192 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5193 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5194 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5195 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5196 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5197 * findvar.c, dwarf2cfi.c: Ditto.
5198
5199 2003-05-08 Andrew Cagney <cagney@redhat.com>
5200
5201 * mips-tdep.c (read_signed_register): New function, moved to here
5202 from "regcache.c".
5203 (read_signed_register_pid): Ditto.
5204 * regcache.c (read_signed_register_pid): Delete function, moved to
5205 "mips-tdep.c".
5206 (read_signed_register): Ditto.
5207 * regcache.h (read_signed_register): Delete declaration.
5208 (read_signed_register_pid): Delete declaration.
5209
5210 2003-05-08 Andrew Cagney <cagney@redhat.com>
5211
5212 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5213 * gdbarch.h: Re-generate.
5214 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5215 (legacy_max_register_virtual_size): Delete declaration.
5216 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5217 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5218 * tracepoint.c (memrange_sortmerge): Ditto.
5219 * sparc-tdep.c (sparc_print_registers): Ditto.
5220 * regcache.c (legacy_max_register_virtual_size): Delete function.
5221
5222 2002-05-08 J. Brobecker <brobecker@gnat.com>
5223
5224 * fork-child.c (escape_bang_in_quoted_argument): New function.
5225 (fork_inferior): Escape '!' characters in quoted arguments
5226 only when needed.
5227
5228 2003-05-08 J. Brobecker <brobecker@gnat.com>
5229
5230 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5231 the language of the CU is not currently supported by GDB.
5232
5233 2003-05-08 J. Brobecker <brobecker@gnat.com>
5234
5235 * defs.h (language): Add language_minimal enum value.
5236 * c-lang.c (minimal_language_defn): New language definition.
5237 (_initialize_c_language): Add the new minimal language to the list
5238 of languages known to GDB.
5239
5240 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5241
5242 * frame.c (get_frame_type): Don't attempt to lazily initialize
5243 frame's unwinder for legacy frames.
5244
5245 2003-05-07 Andrew Cagney <cagney@redhat.com>
5246
5247 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5248 and "regcache" parameters.
5249 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5250
5251 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5252
5253 * dwarf2read.c (dwarf_decode_lines): Only use output of
5254 check_cu_functions() when calling record_line(). Do not update
5255 the current address.
5256
5257 2003-05-07 Andrew Cagney <cagney@redhat.com>
5258
5259 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5260 code.
5261
5262 2003-05-07 Jim Blandy <jimb@redhat.com>
5263
5264 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5265 'maint info symtabs' and 'maint info psymtabs'.
5266 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5267 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5268 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5269 Declarations updated.
5270 * maint.c (maintenance_list_command): Delete.
5271 (_initialize_maint_cmds): Update calls to add_cmd.
5272 * gdbcmd.h (maintenancelistlist): Delete declaration.
5273 * cli/cli-cmds.c (maintenancelistlist): Delete.
5274 (init_cmd_lists): Don't initialize it.
5275 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5276
5277 2003-05-07 Andrew Cagney <cagney@redhat.com>
5278
5279 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5280 "regcache".
5281 (d10v_print_registers_info): Update.
5282 (d10v_dmap_register, d10v_imap_register): Delete functions.
5283 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5284 and "imap_register".
5285 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5286 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5287 * arch-utils.c (generic_remote_translate_xfer_address): Add
5288 "regcache" and "gdbarch" parameters.
5289 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5290 parameter. Change class to multi-arch.
5291 * gdbarch.h, gdbarch.c: Re-generate.
5292 * remote.c (remote_xfer_memory): Use
5293 gdbarch_remote_translate_xfer_address.
5294
5295 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5296
5297 * infrun.c (prev_pc): Move declaration ahead of proceed().
5298 (proceed): Refresh prev_pc value before resuming.
5299 (stop_stepping): Remove code to refresh prev_pc.
5300
5301 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5302
5303 * nto-tdep.c: Removed stray comment.
5304
5305 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5306
5307 * i386-nto-tdep.c: Fix old K&R function definitions.
5308 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5309 Also change add_show_from_set() call to add_setshow_cmd().
5310 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5311
5312 2003-05-05 Andrew Cagney <cagney@redhat.com>
5313
5314 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5315 (fprint_dummy_frames): New function.
5316 (maintenance_print_dummy_frames): New function.
5317 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5318 * frame.c (fprint_frame_id): Make global.
5319 * frame.h (fprint_frame_id): Declare.
5320 * Makefile.in (dummy-frame.o): Update dependencies.
5321
5322 2003-05-05 Andrew Cagney <cagney@redhat.com>
5323
5324 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5325 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5326 SIZEOF_CALL_DUMMY_WORDS.
5327 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5328 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5329 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5330 CALL_DUMMY_BREAKPOINT_OFFSET.
5331 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5332 CALL_DUMMY_START_OFFSET.
5333 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5334 * gdbarch.h, gdbarch.c: Re-generate.
5335 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5336 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5337 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5338 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5339 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5340 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5341 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5342 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5343 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5344 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5345 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5346 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5347 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5348 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5349 * config/sparc/tm-sparc.h: Update.
5350
5351 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5352
5353 * configure.tgt: Add i[3456]86-*-nto*.
5354 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5355 * nto-tdep.c: New file. Neutrino target support routines.
5356 * nto-tdep.h: New file. Neutrino target header.
5357 * config/tm-qnxnto.h: New file.
5358 * config/i386/i386nto.mt: New file.
5359 * config/i386/tm-i386nto.h: New file.
5360
5361 2003-05-04 Andrew Cagney <cagney@redhat.com>
5362
5363 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5364 (load_infrun_state): Ditto.
5365 (struct thread_info): Drop "prev_func_name" field.
5366 * thread.c (load_infrun_state): Update.
5367 (save_infrun_state): Update.
5368 * infrun.c (prev_func_name): Delete variable.
5369 (init_wait_for_inferior): Do not clear prev_func_name.
5370 (stop_stepping, keep_going, context_switch): Do not swap
5371 prev_func_name.
5372 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5373 instead of PC_IN_SIGTRAMP.
5374
5375 2003-05-04 Andrew Cagney <cagney@redhat.com>
5376
5377 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5378 REGISTER_BYTE with register_offset_hack.
5379 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5380 that REGISTER_BYTE is consistent with the regcache.
5381 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5382 * gdbarch.h, gdbarch.c: Regenerate.
5383
5384 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5385
5386 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5387 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5388
5389 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5390
5391 2003-05-03 J. Brobecker <brobecker@gnat.com>
5392
5393 From Thierry Schneider <tpschneider1@yahoo.com>
5394 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5395 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5396 (mi-cmd-symbol.o): Add rule.
5397
5398 2003-05-03 Andrew Cagney <cagney@redhat.com>
5399
5400 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5401 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5402 * gdbarch.h, gdbarch.c: Re-generate.
5403 * d10v-tdep.c (d10v_push_dummy_code): New function.
5404 (d10v_gdbarch_init): Set push_dummy_code.
5405 * infcall.c (legacy_push_dummy_code): New function.
5406 (generic_push_dummy_code): New function.
5407 (push_dummy_code): New function.
5408 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5409 instead of dummy_addr, to push_dummy_call. Move call to
5410 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5411 switch.
5412 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5413
5414 2003-05-03 Andrew Cagney <cagney@redhat.com>
5415
5416 * disasm.h (print_insn): Declare.
5417 * disasm.c (init_gdb_disassemble_info): New function.
5418 (gdb_disassembly): Call init_gdb_disassemble_info.
5419 (gdb_print_insn): New function.
5420 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5421 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5422 * mcore-tdep.c: Include "disasm.h"
5423 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5424 * d10v-tdep.c: Include "disasm.h".
5425 (display_trace): Call gdb_print_insn, instead of print_insn.
5426 (print_insn): Delete function.
5427 * printcmd.c: Include "disasm.h".
5428 (print_insn): Delete function.
5429 (print_formatted): Call gdb_print_insn, instead of print_insn.
5430 * Makefile.in (printcmd.o): Update dependencies.
5431 (mcore-tdep.o, d10v-tdep.o): Ditto.
5432
5433 2003-05-02 Andrew Cagney <cagney@redhat.com>
5434
5435 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5436 PC_REGNUM, re-indent.
5437 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5438 PC_REGNUM isn't set.
5439
5440 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5441 * gdbarch.h, gdbarch.c: Re-generate.
5442 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5443 register_virtual_size, pc_regnum, or register_bytes.
5444 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5445 (d10v_register_type): Use D10V_PC_REGNUM.
5446 (d10v_print_registers_info, d10v_read_pc): Ditto.
5447 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5448 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5449
5450 2003-05-02 David Carlton <carlton@bactrian.org>
5451
5452 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5453 the name with mstrsave.
5454
5455 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5456
5457 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5458 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5459 (host_charset_name, target_charset_name): New vars for use by
5460 set/show commands.
5461 (host_charset_enum, target_charset_enum): New enums for set/show
5462 commands.
5463 (set_charset_sfunc, set_host_charset_sfunc,
5464 set_target_charset_sfunc): New functions.
5465 (set_host_charset, set_target_charset): Make static.
5466 (list_charsets, set_host_charset_command,
5467 set_target_charset_command): Delete functions.
5468 (show_charset_command): Rewrite as....
5469 (show_charset): Hook this up with the set/show command mechanism.
5470 (_initialize_charset): Change names of charsets to match the
5471 set/show enums. Use host_charset_name and target_charset_name.
5472 Use set/show mechanism for charset, host-charset, target-charset
5473 commands. Do not make 'show host-charset' and 'show
5474 target-charset' be aliases of 'show charset'.
5475
5476 * charset.h (set_host_charset, set_target_charset): Don't export,
5477 they are not used outside the file.
5478
5479 2003-05-01 Andrew Cagney <cagney@redhat.com>
5480
5481 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5482 (gdb_disassembly): Make "di" non static, always initialize and
5483 cleanup. Always use dis_asm_read_memory.
5484 (gdb_dis_asm_read_memory): Delete function.
5485
5486 2003-05-01 Andrew Cagney <cagney@redhat.com>
5487
5488 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5489 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5490
5491 2003-04-30 Andrew Cagney <cagney@redhat.com>
5492
5493 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5494 "tm_print_insn_info".
5495 (TARGET_PRINT_INSN_INFO): Delete macro.
5496 (dis_asm_read_memory): Delete function declaration.
5497 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5498 (tm_print_insn_info): Delete variable definition.
5499 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5500 * gdbarch.h, gdbarch.c: Re-generate.
5501 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5502 "deprecated_tm_print_insn_info".
5503 * mcore-tdep.c (mcore_dump_insn): Ditto.
5504 * mips-tdep.c (mips_gdbarch_init): Ditto.
5505 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5506 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5507 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5508 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5509 instead of TARGET_PRINT_INSN_INFO, add comment.
5510 * s390-tdep.c (s390_get_frame_info): Instead of
5511 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5512 (s390_check_function_end, s390_is_sigreturn): Ditto.
5513 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5514 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5515 * disasm.c: Include "gdbcore.h".
5516 (_initialize_disasm): New function, initialize
5517 "deprecated_tm_print_insn_info".
5518 (deprecated_tm_print_insn_info): New variable.
5519 (dis_asm_read_memory): Moved from "corefile.c", made static.
5520 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5521 * Makefile.in (disasm.o): Update dependencies.
5522
5523 2003-04-30 Andrew Cagney <cagney@redhat.com>
5524
5525 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5526
5527 2003-04-29 Adam Fedor <fedor@gnu.org>
5528
5529 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5530 * infcall.c (find_function_addr): Make non-static.
5531 * infcall.h (find_function_addr): Declare.
5532 * Makefile.in (eval.o): Update dependencies.
5533
5534 2003-04-28 Adam Fedor <fedor@gnu.org>
5535
5536 * symtab.c (symbol_find_demangled_name): Check for and demangle
5537 ObjC symbols.
5538 (symbol_init_demangled_name): Init for language_objc as well.
5539
5540 2003-04-28 Andrew Cagney <cagney@redhat.com>
5541
5542 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5543 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5544 * gdbarch.h, gdbarch.c: Re-generate.
5545 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5546 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5547 * inferior.h (deprecated_read_fp): Rename read_fp.
5548 (generic_target_read_fp): Delete declaration.
5549 * regcache.c (generic_target_read_fp): Delete function.
5550 (deprecated_read_fp): Replace read_fp, use
5551 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5552 * d10v-tdep.c (d10v_read_fp): Delete function.
5553 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5554
5555 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5556 deprecated_target_read_fp to generic_target_read_fp.
5557 * sh-tdep.c (sh_gdbarch_init): Ditto.
5558 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5560 * frv-tdep.c (frv_gdbarch_init): Ditto.
5561
5562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5563 deprecated_fp_regnum.
5564 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5565 * vax-tdep.c (vax_gdbarch_init): Ditto.
5566 * v850-tdep.c (v850_gdbarch_init): Ditto.
5567 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5568 * sh-tdep.c (sh_gdbarch_init): Ditto.
5569 * s390-tdep.c (s390_gdbarch_init): Ditto.
5570 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5573 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5575 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5576 * i386-tdep.c (i386_gdbarch_init): Ditto.
5577 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5578 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5579 * frv-tdep.c (frv_gdbarch_init): Ditto.
5580 * cris-tdep.c (cris_gdbarch_init): Ditto.
5581 * avr-tdep.c (avr_gdbarch_init): Ditto.
5582 * arm-tdep.c (arm_gdbarch_init): Ditto.
5583 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5584
5585 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5586 * v850-tdep.c (v850_gdbarch_init): Ditto.
5587 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5588 * sh-tdep.c (sh_gdbarch_init): Ditto.
5589 * s390-tdep.c (s390_gdbarch_init): Ditto.
5590 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5591 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5592 * mips-tdep.c (mips_gdbarch_init): Ditto.
5593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5594 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5595 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5596 * frv-tdep.c (frv_gdbarch_init): Ditto.
5597 * avr-tdep.c (avr_gdbarch_init): Ditto.
5598 * arm-tdep.c (arm_gdbarch_init): Ditto.
5599
5600 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5601 DEPRECATED_FP_REGNUM.
5602 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5603 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5604 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5605 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5606 (sparc32_register_virtual_type): Ditto.
5607 * sh-tdep.c (sh64_frame_chain): Ditto.
5608 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5609 (sh_nofp_frame_init_saved_regs): Ditto.
5610 (sh64_nofp_frame_init_saved_regs): Ditto.
5611 (sh_fp_frame_init_saved_regs): Ditto.
5612 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5613 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5614 * procfs.c (procfs_fetch_registers): Ditto.
5615 (procfs_store_registers): Ditto.
5616 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5617 (store_inferior_registers, fetch_core_registers): Ditto.
5618 (fetch_kcore_registers, clear_regs): Ditto.
5619 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5620 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5621 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5622 * nlm/i386.c (do_status): Ditto.
5623 * mipsv4-nat.c (supply_gregset): Ditto.
5624 * mips-tdep.c: Ditto for comments.
5625 * mips-nat.c (fetch_inferior_registers): Ditto.
5626 (store_inferior_registers, fetch_core_registers): Ditto.
5627 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5628 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5629 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5630 (i386_do_pop_frame, i386_register_type): Ditto.
5631 * hppa-tdep.c (hppa_frame_chain): Ditto.
5632 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5633 (hppa_pop_frame, hppa_read_fp): Ditto.
5634 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5635 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5636 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5637 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5638 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5639 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5640 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5641 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5642 * blockframe.c: Ditto for comments.
5643 * arch-utils.h: Ditto for comments.
5644 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5645 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5646 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5647 * alpha-tdep.h: Ditto for comments.
5648 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5649 (alpha_cannot_store_register): Ditto.
5650 (alpha_push_dummy_frame): Ditto.
5651 * alpha-nat.c (supply_gregset): Ditto.
5652
5653 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5654 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5655 * config/sparc/tm-sparc.h: Update comment.
5656
5657 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5658 deprecated_read_fp instead of TARGET_READ_FP.
5659 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5660 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5661 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5662 deprecated_read_fp instead of read_fp.
5663 * s390-tdep.c (s390_push_arguments): Ditto.
5664 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5665 * frame.h: Ditto in comments.
5666 * frame.c (legacy_get_prev_frame): Ditto.
5667 * dummy-frame.c (dummy_frame_this_id): Ditto.
5668 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5669
5670 2003-04-28 Andrew Cagney <cagney@redhat.com>
5671
5672 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5673 * gdbarch.h, gdbarch.c: Re-generate.
5674 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5675 * vax-tdep.c (_initialize_vax_tdep): Update.
5676 * v850-tdep.c (_initialize_v850_tdep): Update.
5677 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5678 * s390-tdep.c (_initialize_s390_tdep): Update.
5679 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5680 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5681 * mips-tdep.c (_initialize_mips_tdep): Update.
5682 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5683 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5684 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5685 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5686 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5687 * frv-tdep.c (_initialize_frv_tdep): Update.
5688 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5689 (_initialize_cris_tdep): Update.
5690 * arch-utils.c (legacy_print_insn): Update.
5691 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5692
5693 2003-04-26 Adam Fedor <fedor@gnu.org>
5694
5695 * linespec.c (decode_objc): New function to decode ObjC calls
5696 (decode_line_1): Check for ObjC calls (using decode_objc)
5697 * Makefile (linespec.o): Update dependencies.
5698
5699 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5700
5701 * breakpoint.h (struct breakpoint_ops): New.
5702 (struct breakpoint): Add ops member.
5703
5704 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5705 (mention): Use new breakpoint ops member.
5706 (set_raw_breakpoint): Initialize ops field to NULL.
5707 (print_exception_catchpoint, print_one_exception_catchpoint)
5708 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5709 (gnu_v3_exception_catchpoint_ops): New.
5710 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5711
5712 2003-04-25 Adam Fedor <fedor@gnu.org>
5713
5714 * Makefile.in (COMMON_OBS): Add objc-lang.o
5715
5716 2003-04-25 Andrew Cagney <cagney@redhat.com>
5717
5718 * d10v-tdep.c (print_insn): Delete function.
5719 (display_trace): Use TARGET_PRINT_INSN.
5720 (_initialize_d10v_tdep): Do not set tm_print_insn.
5721 (d10v_gdbarch_init): Set print_insn.
5722
5723 2003-04-25 Andrew Cagney <cagney@redhat.com>
5724
5725 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5726 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5727 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5728 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5729 (nr_dmap_regs, a0_regnum): ... new functions.
5730 (d10v_print_registers_info): Use a0_regnum, use register_size.
5731 (d10v_register_byte): Delete function.
5732 (d10v_register_raw_size): Delete function.
5733 (d10v_register_type): Use a0_regnum.
5734 (d10v_print_registers_info): Use a0_regnum.
5735 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5736 (d10v_gdbarch_init): Do not set register_byte or
5737 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5738 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5739 extract_address.
5740 (trace_command): Use XCALLOC.
5741 (print_insn): Delete reference to tm_print_insn.
5742 (saved_regs_unwinder): Use store_unsigned_integer instead of
5743 store_address.
5744 * frame.h (FRAME_OBSTACK_CALLOC): Define
5745
5746 2003-04-25 David Carlton <carlton@bactrian.org>
5747
5748 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5749
5750 2003-04-24 Adam Fedor <fedor@gnu.org>
5751
5752 * objc-lang.c: Include "valprint.h"
5753 * Makefile.in (objc-lang.o): Update dependencies.
5754
5755 2003-04-24 Adam Fedor <fedor@gnu.org>
5756
5757 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5758 architecture dependant compilation and mark as unimplemented
5759 (until they get put in the gdbarch vector).
5760
5761 2003-04-23 David Carlton <carlton@bactrian.org>
5762
5763 * cp-support.c (cp_find_first_component): Accept 'operator' in
5764 more locations.
5765
5766 2003-04-23 Andrew Cagney <cagney@redhat.com>
5767
5768 * infcall.c (call_function_by_hand): Eliminate redundant
5769 indentation. Move "saved_async" and "old_cleanups" to where they
5770 are needed.
5771
5772 2003-04-23 Andrew Cagney <cagney@redhat.com>
5773
5774 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5775 and "buffer". Move the "name" code to where it is needed.
5776
5777 2003-04-23 Andrew Cagney <cagney@redhat.com>
5778
5779 * infcall.c (call_function_by_hand): Move variables "start_sp",
5780 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5781 code to ON_STACK switch branch.
5782
5783 2003-04-23 Andrew Cagney <cagney@redhat.com>
5784
5785 * infcall.c (call_function_by_hand): Make declaration of "i",
5786 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5787 lint.
5788
5789 2003-04-23 Andrew Cagney <cagney@redhat.com>
5790
5791 * infcall.c (call_function_by_hand): Delete variable
5792 "n_method_args". Localize "param_type"'s declaration to the loop
5793 that it is used. Reinstate code assigning to said variable -
5794 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5795 Rationalize code using "param_type".
5796
5797 2003-04-22 Andrew Cagney <cagney@redhat.com>
5798
5799 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5800 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5801 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5802 to DEPRECATED_PUSH_RETURN_ADDRESS.
5803
5804 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5805
5806 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5807 on the DWARF2 register number prior to fetching a register.
5808
5809 2003-04-22 J. Brobecker <brobecker@gnat.com>
5810
5811 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5812 Update all the tests using SOFT_FLOAT considering the fact that
5813 this macro was always set to 0.
5814 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5815 considering the fact that this macro was always set to 0.
5816 * hppa-tdep.h (hppa_store_return_value): Likewise.
5817 (hppa_extract_return_value): Likewise.
5818
5819 2003-04-22 J. Brobecker <brobecker@gnat.com>
5820
5821 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5822 the hppa-pro target only.
5823
5824 2003-04-21 J. Brobecker <brobecker@gnat.com>
5825
5826 Ongoing multi-arch conversion effort for HP/UX:
5827 * config/pa/tm-hppa.h: Move all macro that are no longer
5828 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5829 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5830
5831 2003-04-21 J. Brobecker <brobecker@gnat.com>
5832
5833 * config/pa/tm-hppa.h: Obsolete a section that was only used
5834 for hppa-pro.
5835
5836 2003-04-21 J. Brobecker <brobecker@gnat.com>
5837
5838 Ongoing multi-arch conversion for HP/UX.
5839 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5840 if already defined (allows hppa64 to stay non-multiarched for now).
5841 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5842
5843 2003-04-21 Andrew Cagney <cagney@redhat.com>
5844
5845 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5846
5847 2003-04-21 Andrew Cagney <cagney@redhat.com>
5848
5849 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5850 "i386_num_mmx_regs".
5851
5852 2003-04-21 Andrew Cagney <cagney@redhat.com>
5853
5854 * infcall.c: New file.
5855 * infcall.h: New file.
5856 * valarith.c: Include "infcall.h".
5857 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5858 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5859 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5860 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5861 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5862 (SFILES): Add "infcall.c"
5863 (COMMON_OBS): Add "infcall.o".
5864 (infcall.o): Specify dependencies.
5865 * value.h (call_function_by_hand): Delete declaration.
5866 * inferior.h (run_stack_dummy): Delete declaration.
5867 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5868 (run_stack_dummy): Move to "infcall.c", merged into
5869 call_function_by_hand.
5870 * valops.c (call_function_by_hand): Moved to "infcall.c".
5871 (find_function_addr, value_arg_coerce): Ditto.
5872 (unwindonsignal_p, coerce_float_to_double): Ditto.
5873 (_initialize_valops): Move "set/show coerce-float-to-double", and
5874 "set/show unwindonsignal" commands to "infcall.c".
5875 * v850-tdep.c, target.h: Update comments.
5876 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5877 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5878 (sh64_init_extra_frame_info): Update comments.
5879 * mn10300-tdep.c: Update comments.
5880 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5881 * config/sparc/tm-sparc.h: Update comments.
5882 * breakpoint.h: Update comments.
5883 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5884 * arm-tdep.c: Update comment.
5885
5886 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5887
5888 * i386-tdep.c (i386_num_register_names): New variable.
5889 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5890 (MM0_REGNUM): Remove redundant parentheses in define.
5891 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5892 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5893 i386_mxcsr_regnum_p): Remove redundant parentheses.
5894 (i386_register_name): Use i386_num_register_names.
5895
5896 * i386-tdep.c (i386_extract_return_value,
5897 i386_store_return_value): Correct check for availability of
5898 floating-point registers.
5899
5900 * i386-tdep.c (i386_frame_num_args): Remove function.
5901 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5902
5903 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5904 mmx_regnum_to_fp_regnum. Adjust all callers.
5905
5906 * i386-tdep.c (i386_get_longjmp_target): Use
5907 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5908 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5909 extract_address.
5910
5911 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5912
5913 * core-regset.c: Update comments to reflect reality. Re-order
5914 includes.
5915 (fetch_core_registers): Use switch instead of if. Remove
5916 redundant prototype.
5917
5918 2003-04-18 Jim Blandy <jimb@redhat.com>
5919
5920 * s390-tdep.c (s390_frame_align): New function.
5921 (s390_gdbarch_init): Register it with the gdbarch object.
5922
5923 2003-04-17 Richard Henderson <rth@redhat.com>
5924
5925 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5926
5927 2003-04-17 Michael Snyder <msnyder@redhat.com>
5928 Karen Bennet <bennet@redhat.com>
5929
5930 Committed by Elena Zannoni <ezannoni@redhat.com>
5931 * gdb_gcore.sh: New script to create a core dump of a process.
5932
5933 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5934
5935 * values.c (value_being_returned): Don't fetch the return
5936 value if the return type is void.
5937
5938 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5939
5940 * thread-db.c: Reindented.
5941
5942 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5943
5944 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5945 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5946 as types.
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5973
5974 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5975 the size of ``long double'' to 16, instead of 8.
5976
5977 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5978
5979 * i386-linux-nat.c: Add some whitespace to make things more
5980 readable.
5981 (fetch_register, store_register, fetch_inferior_registers,
5982 store_inferior_registers): Get rid of assignment in if-statement.
5983 (store_register): Fix typo in error message.
5984
5985 2003-04-16 Andrew Cagney <cagney@redhat.com>
5986
5987 * utils.c (xmmalloc): Always allocate something, matches
5988 libiberty/xmalloc's semantics.
5989 (xmrealloc, xmcalloc): Ditto.
5990
5991 2003-04-16 Andrew Cagney <cagney@redhat.com>
5992
5993 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5994 update comments.
5995 (get_frame_type): Initialize unwind and type when needed.
5996 (get_frame_id, frame_register_unwind): Ditto.
5997
5998 2003-04-16 Andrew Cagney <cagney@redhat.com>
5999
6000 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6001 obsolete.
6002 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6003 * sparcl-stub.c: Obsolete file.
6004 * config/sparc/tm-sparclet.h: Obsolete file.
6005 * sparclet-stub.c: Obsolete file.
6006 * sparclet-rom.c: Obsolete file.
6007 * sparcl-tdep.c: Obsolete file.
6008 * config/sparc/tm-sparclite.h: Obsolete file.
6009 * config/sparc/sparclite.mt: Obsolete file.
6010 * config/sparc/sparclet.mt: Obsolete file.
6011 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6012 sparc86x-*-* obsolete.
6013
6014 2003-04-15 David Carlton <carlton@math.stanford.edu>
6015
6016 * Makefile.in (SFILES): Add cp-namespace.c.
6017 (COMMON_OBS): Add cp-namespace.o.
6018 (block.o): Depend on gdb_obstack_h and cp_support_h.
6019 (buildsym.o): Depend on cp_support_h.
6020 (cp-namespace.o): New.
6021 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6022 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6023 (dwarf2read.o): Depend on cp_support_h.
6024 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6025 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6026 processing_current_namespace.
6027 (read_namespace): Update processing_current_namespace; check for
6028 anonymous namespaces.
6029 (dwarf2_name): New function.
6030 (dwarf2_extension): Ditto.
6031 * cp-support.h: Update copyright, contributors.
6032 Add inclusion guards.
6033 Add opaque declaration for structs obstack, block, symbol.
6034 (struct using_direct): New struct.
6035 Add declarations for cp_find_first_component,
6036 cp_entire_prefix_len, processing_has_namespace_info,
6037 processing_current_namespace, cp_is_anonymous,
6038 cp_add_using_directive, cp_initialize_namespace,
6039 cp_finalize_namespace, cp_set_block_scope,
6040 cp_scan_for_anonymous_namespaces.
6041 * cp-namespace.c: New file.
6042 * cp-support.c: Update copyright.
6043 Include ctype.h, gdb_assert.h, gdbcmd.h.
6044 New variable maint_cplus_cmd_list.
6045 (cp_find_first_component): New function.
6046 (cp_entire_prefix_len, maint_cplus_command)
6047 (first_component_command, _initialize_cp_support): Ditto.
6048 * buildsym.c: Include cp-support.h.
6049 New variable using_list.
6050 (add_symbol_to_list): Check for anonymous namespaces.
6051 (finish_block): Set block's scope.
6052 (start_symtab): Initialize C++ namespace support.
6053 (end_symtab): Finalize C++ namespace support.
6054 * block.h: Add opaque declarations for structs
6055 block_namespace_info, using_direct, and obstack.
6056 Add declarations for block_set_scope and block_set_using.
6057 (struct block): Add 'language_specific' member.
6058 (BLOCK_NAMESPACE): New macro.
6059 * block.c: Include gdb_obstack.h and cp-support.h.
6060 (struct block_namespace_info): New struct.
6061 (block_set_scope): New function.
6062 (block_set_using, block_initialize_namespace): Ditto.
6063
6064 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6065
6066 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6067 (locate_base): Return early if there aren't any link map offsets.
6068 (svr4_solib_create_inferior_hook): Warn if shared library support
6069 is unavailable.
6070
6071 2003-04-14 David Carlton <carlton@math.stanford.edu>
6072
6073 * symtab.c (symbol_set_names): Add prefix when storing Java names
6074 in hash table. Fix for PR java/1039.
6075
6076 2003-04-14 David Carlton <carlton@math.stanford.edu>
6077
6078 * symtab.c (symbol_set_names): Rename 'name' arg to
6079 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6080 * symtab.h: Change 'name' argument in declaration of
6081 symbol_set_names to 'linkage_name'.
6082 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6083
6084 2003-04-14 Andrew Cagney <cagney@redhat.com>
6085
6086 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6087 return the fully sign-extended register value.
6088 (get_frame_pointer): Ditto.
6089 (mips_pop_frame): Initialize "proc_desc" after checking for a
6090 dummy frame.
6091
6092 2003-04-14 Andrew Cagney <cagney@redhat.com>
6093
6094 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6095 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6096 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6097 (mips_push_register): Delete function.
6098 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6099 PUSH_FP_REGNUM.
6100
6101 2003-04-14 Jim Blandy <jimb@redhat.com>
6102
6103 * symmisc.c: #include "gdb_regex.h".
6104 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6105 functions.
6106 * maint.c (maintenance_list_command): New function.
6107 (_initialize_maint_cmds): Register the above as commands.
6108 * symtab.h (maintenance_list_symtabs,
6109 maintenance_list_psymtabs): New declarations.
6110 * cli/cli-cmds.c (maintenancelistlist): New variable.
6111 (init_cmd_lists): Initialize it.
6112 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6113 * gdbcmd.h (maintenancelistlist): New declaration.
6114 * Makefile.in (symmisc.o): Update dependencies.
6115
6116 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6117
6118 * s390-nat.c: Include asm/types.h for addr_t.
6119
6120 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6121
6122 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6123 actually incoming type.
6124
6125 2003-04-13 Andrew Cagney <cagney@redhat.com>
6126
6127 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6128 get_next_frame and get_frame_saved_regs.
6129
6130 2003-04-13 Andrew Cagney <cagney@redhat.com>
6131
6132 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6133 of gdbarch_num_regs.
6134
6135 2003-04-13 Andrew Cagney <cagney@redhat.com>
6136
6137 * frame.h: Mention what replaced what in "struct frame_info".
6138 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6139 deprecated_update_frame_base_hack and
6140 deprecated_update_frame_pc_hack.
6141 * hppa-tdep.c: Ditto.
6142
6143 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6144
6145 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6146 to read_reg and update its comment. Remove regnum member.
6147 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6148 Don't call read_reg when setting in_reg. Call read_reg to get
6149 the frame base if it's in a register. Return the register number
6150 on the stack instead of in the context. Remove extra arguments
6151 to read_reg.
6152 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6153 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6154 the register number on the expression stack.
6155 (needs_frame_read_reg): Remove extra arguments.
6156
6157 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6158
6159 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6160 made non-static.
6161 (execute_stack_op): All callers updated.
6162 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6163 * dwarf2loc.c (find_location_expression): New function.
6164 (dwarf_expr_frame_base): Call it.
6165 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6166 (dwarf2_tracepoint_var_ref): New function, broken out from
6167 locexpr_tracepoint_var_ref.
6168 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6169 Make static.
6170 (loclist_read_variable, loclist_read_needs_frame): New functions.
6171 (loclist_describe_location, loclist_tracepoint_var_ref): New
6172 functions.
6173 (dwarf2_loclist_funcs): New struct location_funcs.
6174 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6175 (struct dwarf2_locexpr_baton): Add comments.
6176 (dwarf2_loclist_funcs): New extern.
6177 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6178 base_address and base_known.
6179 (dwarf_loc_buffer): New variable.
6180 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6181 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6182 (dwarf2_has_info): Initialize dwarf_loc_offset.
6183 (dwarf2_build_psymtabs): Read in .debug_loc.
6184 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6185 DWARF_LOC_SIZE.
6186 (psymtab_to_symtab_1): Likewise. Move base address calculation
6187 here, from...
6188 (dwarf2_get_pc_bounds): ... here. Use the base address from
6189 cu_header.
6190 (dwarf2_symbol_mark_computed): Handle location lists.
6191
6192 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6193
6194 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6195 if the linkage name demangled successfully.
6196
6197 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6198
6199 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6200 disassmbly_flavour): Removed.
6201
6202 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6203
6204 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6205
6206 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6207
6208 2003-04-12 Andrew Cagney <cagney@redhat.com>
6209
6210 * frame.h (struct frame_info): Move definition from here ...
6211 * frame.c (struct frame_info): ... to here.
6212
6213 2003-04-12 Andrew Cagney <cagney@redhat.com>
6214
6215 * gdbthread.h (save_infrun_state): Delete parameter
6216 "prev_func_start".
6217 (struct thread_info): Delete field "prev_func_start".
6218 (load_infrun_state): Ditto.
6219 * thread.c (load_infrun_state, save_infrun_state): Update.
6220 * infrun.c (prev_func_start): Delete variable.
6221 (context_switch, init_wait_for_inferior): Update.
6222 (stop_stepping, keep_going): Update.
6223
6224 2003-04-12 Andrew Cagney <cagney@redhat.com>
6225
6226 * gdbarch.sh: Add missing opaque declarations.
6227 * gdbarch.h: Regnerate.
6228 * symtab.h: Add missing opaque declarations.
6229 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6230 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6231 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6232 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6233 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6234 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6235 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6236 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6237 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6238 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6239 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6240 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6241 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6242
6243 2003-04-11 Andrew Cagney <cagney@redhat.com>
6244
6245 * frame.c (get_frame_id): Return this frame's "id".
6246 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6247 function start.
6248 (legacy_saved_regs_this_id): Replace function body with
6249 internal-error.
6250 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6251 FRAME_OBSTACK_ZALLOC.
6252 (create_new_frame): Mark the frame ID as valid.
6253
6254 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6255
6256 * Makefile.in (libbfd_h): Added missing setting.
6257 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6258 according to the selected ABI.
6259
6260 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6261
6262 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6263
6264 2003-04-11 Andrew Cagney <cagney@redhat.com>
6265
6266 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6267 SAVED_PC_AFTER_CALL.
6268 * gdbarch.h, gdbarch.c: Regenerate.
6269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6270 * x86-64-tdep.c (x86_64_init_abi): Update.
6271 * vax-tdep.c (vax_gdbarch_init): Update.
6272 * v850-tdep.c (v850_gdbarch_init): Update.
6273 * sparc-tdep.c (sparc_gdbarch_init): Update.
6274 * sh-tdep.c (sh_gdbarch_init): Update.
6275 * s390-tdep.c (s390_gdbarch_init): Update.
6276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6277 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6278 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6279 * mips-tdep.c (mips_gdbarch_init): Update.
6280 * mcore-tdep.c (mcore_gdbarch_init): Update.
6281 * m68k-tdep.c (m68k_gdbarch_init): Update.
6282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6283 * ia64-tdep.c (ia64_gdbarch_init): Update.
6284 (ia64_saved_pc_after_call): Update declaration.
6285 * i386ly-tdep.c (i386lynx_init_abi): Update.
6286 * i386-tdep.c (i386_gdbarch_init): Update.
6287 * hppa-tdep.c (hppa_gdbarch_init): Update.
6288 * h8300-tdep.c (h8300_gdbarch_init): Update.
6289 * frv-tdep.c (frv_gdbarch_init): Update.
6290 * cris-tdep.c (cris_gdbarch_init): Update.
6291 * avr-tdep.c (avr_gdbarch_init): Update.
6292 * arm-tdep.c (arm_gdbarch_init): Update.
6293 * alpha-tdep.c (alpha_gdbarch_init): Update.
6294 * ns32knbsd-nat.c (frame_num_args): Update.
6295 * ns32k-tdep.c (umax_frame_num_args): Update.
6296 * mips-tdep.c (mips_init_frame_pc_first): Update.
6297 * infrun.c (step_over_function): Update.
6298 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6299 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6300 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6301 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6302 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6303 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6304 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6305 * arch-utils.c (init_frame_pc_default): Update.
6306 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6307 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6308 declaration.
6309
6310 2003-04-11 Andrew Cagney <cagney@redhat.com>
6311
6312 * i387-tdep.c: Update copyright.
6313 (i387_to_double): Delete function.
6314 (double_to_i387): Delete function.
6315
6316 2003-04-10 Andrew Cagney <cagney@redhat.com>
6317
6318 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6319 frame's function's address. Simplify.
6320 (d10v_frame_unwind_cache): Check that the frame's function is
6321 non-zero.
6322
6323 2003-04-10 Jim Blandy <jimb@redhat.com>
6324
6325 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6326 call to set_gdbarch_deprecated_push_arguments.
6327
6328 2003-04-10 Andrew Cagney <cagney@redhat.com>
6329
6330 * frame.c (fprint_frame_id): New function.
6331 (fprint_frame_type, fprint_frame): New function.
6332 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6333 (create_sentinel_frame, get_frame_id): Ditto.
6334 (frame_id_p, frame_id_eq): Ditto.
6335 (frame_id_inner, create_new_frame): Ditto.
6336 (legacy_get_prev_frame, get_prev_frame): Ditto.
6337 (deprecated_update_frame_pc_hack): Ditto.
6338 (frame_register_unwind): Ditto.
6339 (deprecated_update_frame_base_hack): Ditto.
6340
6341 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6342
6343 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6344 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6345 frame_chain function.
6346 * Makefile.in: Add dependencies due to above change.
6347
6348 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6349
6350 * blockframe.c (legacy_frame_chain_valid): Move call to
6351 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6352 inside_entry_file.
6353
6354 2003-04-09 Andrew Cagney <cagney@redhat.com>
6355
6356 * frame.h (struct frame_id): Replace "pc" and "base" with
6357 "stack_addr" and "code_addr". Update comments.
6358 (frame_id_build): Update parameter names and comment.
6359 (struct frame_info): Replace "id_p" and "id" with "this_id".
6360 * dummy-frame.c (dummy_frame_this_id): Update.
6361 * breakpoint.c (print_one_breakpoint): Update.
6362 * frame.c (get_frame_id): Update.
6363 (get_frame_base, frame_id_build): Update.
6364 (create_sentinel_frame, legacy_get_prev_frame): Update.
6365 (deprecated_update_frame_base_hack): Update.
6366 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6367 (frame_id_inner): Ditto.
6368
6369 2003-04-09 Andrew Cagney <cagney@redhat.com>
6370
6371 * defs.h (gdb_print_host_address): Make "addr" parameter a
6372 pointer constant.
6373 * utils.c (gdb_print_host_address): Update.
6374
6375 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6376
6377 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6378 register number for R0 is 0.
6379
6380 2003-04-09 J. Brobecker <brobecker@gnat.com>
6381
6382 * frame.h (struct gdbarch): Add opaque structure definition
6383 to avoid a compilation warning on LynxOS 4.0.
6384
6385 2003-04-09 Andrew Cagney <cagney@redhat.com>
6386
6387 * frame.h (struct frame_info): Delete field "pc". Replace
6388 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6389 structure.
6390 * frame.c (frame_pc_unwind): Update.
6391 (create_sentinel_frame): Do not set "pc".
6392 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6393 (get_frame_pc): Call frame_pc_unwind.
6394 (deprecated_update_frame_pc_hack): Update.
6395 (create_new_frame): Use "pc" not "->pc".
6396
6397 2003-04-09 Andrew Cagney <cagney@redhat.com>
6398
6399 * frame.c (get_frame_id): Eliminate code updating "frame".
6400 (legacy_get_prev_frame): Ditto.
6401 (get_frame_base): Return id.base directly.
6402 (deprecated_update_frame_base_hack): Update "id.base".
6403 * frame.h (struct frame_info): Delete field "frame".
6404
6405 2003-04-09 Andrew Cagney <cagney@redhat.com>
6406
6407 * NEWS: Mention that the "Sequent family" is obsolete.
6408 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6409 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6410 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6411 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6412 * config/i386/tm-ptx4.h: Obsolete file.
6413 * config/i386/tm-ptx.h: Obsolete file.
6414 * symm-tdep.c: Obsolete file.
6415 * config/i386/symmetry.mt: Obsolete file.
6416 * config/i386/tm-symmetry.h: Obsolete file.
6417 * symm-nat.c: Obsolete file.
6418 * config/i386/nm-symmetry.h: Obsolete file.
6419 * config/i386/xm-symmetry.h: Obsolete file.
6420 * config/i386/symmetry.mh: Obsolete file.
6421 * config/i386/nm-ptx4.h: Obsolete file.
6422 * config/i386/ptx4.mh: Obsolete file.
6423 * config/i386/ptx.mt: Obsolete file.
6424 * config/i386/ptx.mh: Obsolete file.
6425 * config/i386/xm-ptx4.h: Obsolete file.
6426 * config/i386/xm-ptx.h: Obsolete file.
6427
6428 2003-04-09 Andrew Cagney <cagney@redhat.com>
6429
6430 Obsolete mips*-*-mach3*.
6431 * NEWS: Mention that mips*-*-mach3* is obsolete.
6432 * m3-nat.c: Obsolete file.
6433 * config/nm-m3.h: Obsolete file.
6434 * config/mips/tm-mipsm3.h: Obsolete file.
6435 * config/mips/mipsm3.mt: Obsolete file.
6436 * config/mips/mipsm3.mh: Obsolete file.
6437 * config/mips/xm-mipsm3.h: Obsolete file.
6438 * mipsm3-nat.c: Obsolete file.
6439 * configure.host: Obsolete mips-dec-mach3*.
6440 * configure.tgt: Obsolete mips*-*-mach3*.
6441
6442 2003-04-09 Andrew Cagney <cagney@redhat.com>
6443
6444 * doublest.h: Update copyright.
6445 (deprecated_store_floating, deprecated_extract_floating): Rename
6446 store_floating and extract_floating. Update comments.
6447 * doublest.c: Update copyright.
6448 (extract_floating_by_length): Replace extract_floating.
6449 (store_floating_by_length): Replace store_floating.
6450 (deprecated_extract_floating): New function.
6451 (deprecated_store_floating): New function.
6452 (extract_typed_floating): Call extract_floating_by_length.
6453 (store_typed_floating): Call store_floating_by_length.
6454 * x86-64-tdep.c (x86_64_store_return_value): Update.
6455 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6456 (sh64_extract_return_value): Update.
6457 (sh_sh4_register_convert_to_virtual): Update.
6458 (sh_sh64_register_convert_to_virtual): Update.
6459 (sh_sh4_register_convert_to_raw): Update.
6460 (sh_sh64_register_convert_to_raw): Update.
6461 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6462 (rs6000_register_convert_to_raw): Update.
6463 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6464 (ia64_register_convert_to_raw): Update.
6465 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6466 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6467 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6468 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6469 (alpha_register_convert_to_raw): Update.
6470
6471 2003-04-08 Andrew Cagney <cagney@redhat.com>
6472
6473 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6474 * gdbarch.h, gdbarch.c: Re-generate.
6475 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6476 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6477 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6478 conditionally, use frame_pc_unwind as an alternative. Add
6479 comments.
6480 * arch-utils.c (init_frame_pc_default): Only call
6481 SAVED_PC_AFTER_CALL when available.
6482
6483 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6484
6485 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6486 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6487 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6488 (start_remote): Ditto.
6489 (handle_inferior_event): Ditto.
6490 (save_inferior_status): Ditto.
6491 (restore_inferior_status): Ditto.
6492 * infcmd.c (attach_command): Ditto.
6493 * fork-child.c (startup_inferior): Ditto.
6494 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6495 * alpha-tdep.c (heuristic_proc_start): Ditto.
6496 * mips-tdep.c (heuristic_proc_start): Ditto.
6497 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6498 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6499 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6500 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6501 * remote-vx.c (vx_create_inferior): Ditto.
6502
6503 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6504
6505 * infrun.c (stop_soon_quietly): Make it an enum, to better
6506 override the default behavior of handle_inferior_event.
6507 (clear_proceed_status): Update uses of stop_soon_quietly to
6508 reflect that it is now an enum.
6509 (start_remote): Ditto.
6510 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6511 is set to handle the new GNU/Linux kernel behavior for
6512 attach/sigstop. Update uses of stop_soon_quietly.
6513 * inferior.h (enum stop_kind): New enum.
6514 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6515 Reset normal handle_inferior_event behavior, afterwards.
6516 * fork-child.c (startup_inferior): Update.
6517 * alpha-tdep.c (heuristic_proc_start): Update.
6518 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6519 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6520 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6521 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6522 * remote-vx.c (vx_create_inferior): Update.
6523 * mips-tdep.c (heuristic_proc_start): Update.
6524
6525 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6526
6527 * disasm.c (dump_insns): Move variables inside loop, or they will
6528 be freed more than once, causing wild memory corruptions.
6529 (gdb_disassembly): Look for the substring "-thread",
6530 instead of "-threads" in the target name, to make sure to find
6531 the 'multi-thread' target. Also, make sure we do the right thing
6532 with the "core" target.
6533
6534 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6535
6536 * mips-tdep.c (mips_print_fp_register): New function, created from
6537 do_fp_register_row(). Registers are now (also) printed as hex.
6538 Only one register is printed per row.
6539 (mips_print_register, do_fp_register_row): Print floating point
6540 registers with mips_print_fp_register().
6541
6542 2003-04-06 Andrew Cagney <cagney@redhat.com>
6543
6544 * valprint.h (inspect_it): Add extern declaration.
6545 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6546 (selectors_info, classes_info): Ditto.
6547 (find_objc_msgcall): Fix indentation.
6548 (objc_printstr): Delete extern declarations.
6549
6550 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6551
6552 2003-04-06 Andrew Cagney <cagney@redhat.com>
6553
6554 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6555 Update comment.
6556 * frame.c (legacy_saved_regs_this_id): Update.
6557 (legacy_get_prev_frame): Update.
6558 * xstormy16-tdep.c: Update comment.
6559 * sparc-tdep.c (sparc_frame_chain): Update comment.
6560 * blockframe.c (legacy_frame_chain_valid): Update.
6561
6562 2003-04-06 Andrew Cagney <cagney@redhat.com>
6563
6564 * valprint.c (val_print_type_code_int): Delete #ifdef
6565 PRINT_TYPELESS_INTEGER code.
6566
6567 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6568 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6569 multi-arch definition.
6570 * gdbarch.h: Re-generate.
6571
6572 2003-04-05 Andrew Cagney <cagney@redhat.com>
6573
6574 Eliminate FRAME_FIND_SAVED_REGS.
6575 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6576 Change FSR parameter to a pointer.
6577 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6578 Assume FSR parameter is a pointer.
6579 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6580 Make fsr a pointer.
6581 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6582 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6583 saved_regs a pointer.
6584 (hppa_frame_saved_pc): Ditto.
6585 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6586 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6587 pointer.
6588 (restore_pc_queue): Make fsr a pointer.
6589 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6590 (hppa_frame_chain): Make saved_regs a pointer, call
6591 hppa_frame_init_saved_regs.
6592 * sparc-tdep.c: Include "gdb_assert.h".
6593 (sparc_frame_find_saved_regs): Replace internal_error with
6594 gdb_assert.
6595 * remote-vxsparc.c (vx_read_register): Delete reference to
6596 FRAME_FIND_SAVED_REGS.
6597 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6598 * gdbarch.h: Regenerate.
6599 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6600 (deprecated_get_frame_saved_regs): Delete declaration.
6601 (struct frame_saved_regs): Delete definition.
6602 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6603 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6604 (hppa_frame_find_saved_regs): Delete declaration.
6605 (FRAME_FIND_SAVED_REGS): Delete macro.
6606 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6607 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6608 FRAME_FIND_SAVED_REGS in comment.
6609
6610 2003-04-05 Andrew Cagney <cagney@redhat.com>
6611
6612 * frame.c (frame_func_unwind, get_frame_func): New functions.
6613 * frame.h (get_frame_func, frame_func_unwind): Declare.
6614 (struct frame_info): Add field "prev_func" for caching the
6615 previous frame's function address.
6616 * arm-tdep.c (arm_frameless_function_invocation): Combine
6617 get_pc_function_start and get_frame_pc into get_frame_func.
6618 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6619 (sh64_nofp_frame_init_saved_regs): Ditto.
6620 * s390-tdep.c (s390_function_start): Ditto.
6621 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6622 (rs6000_frameless_function_invocation): Ditto.
6623 (rs6000_frame_saved_pc): Ditto.
6624 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6625 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6626 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6627 (i386_frame_init_saved_regs): Ditto.
6628 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6629 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6630 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6631 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6632 * blockframe.c (frameless_look_for_prologue): Ditto.
6633
6634 2003-04-05 Andrew Cagney <cagney@redhat.com>
6635
6636 * frame.c (legacy_get_prev_frame): Link prev to next at the
6637 function start. Update comments.
6638
6639 2003-04-05 Andrew Cagney <cagney@redhat.com>
6640
6641 * frame.c (get_frame_id): Update comment.
6642 (legacy_get_prev_frame): Update comment.
6643 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6644 * gdbarch.h: Regenerate.
6645 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6646 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6647
6648 2003-04-05 Andrew Cagney <cagney@redhat.com>
6649
6650 * stack.c (print_frame_info): Use get_frame_pc.
6651
6652 2003-04-04 Andrew Cagney <cagney@redhat.com>
6653
6654 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6655 the frame's type from the unwinder.
6656 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6657 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6658 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6659 (get_frame_base_address): Use get_frame_type.
6660 (get_frame_locals_address, get_frame_args_address): Ditto.
6661 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6662 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6663 (struct frame_info): Add comment explaining why the frame contains
6664 a "type" field.
6665 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6666 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6667 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6668 NORMAL_FRAME.
6669 * frame-unwind.h: Include "frame.h".
6670 (struct frame_unwind): Add "type" field.
6671 * Makefile.in (frame_unwind_h): Add $(frame_h).
6672
6673 2003-04-04 Andrew Cagney <cagney@redhat.com>
6674
6675 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6676 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6677 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6678 get_frame_base.
6679 (d10v_unwind_dummy_id): Use frame_id_build.
6680 * frame.c (find_frame_sal): Use get_frame_pc.
6681 (create_new_frame): Use deprecated_update_frame_pc_hack and
6682 deprecated_update_frame_base_hack.
6683 (create_sentinel_frame): Add comment about ->pc going away.
6684 (get_prev_frame): Add comment about ->pc going away.
6685 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6686 frame_id_build, deprecated_update_frame_pc_hack and
6687 deprecated_update_frame_base_hack.
6688 (select_frame): Use get_frame_pc.
6689 (legacy_saved_regs_this_id): Use frame_id_build.
6690
6691 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6692
6693 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6694 signed integer case.
6695 (classify_argument): Handle enumerations and references.
6696
6697 2003-04-04 Andrew Cagney <cagney@redhat.com>
6698
6699 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6700 ID to NULL.
6701
6702 2003-04-01 Adam Fedor <fedor@gnu.org>
6703
6704 * gdb/objc-lang.c (selectors_info): Replace calls to
6705 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6706 SYMBOL_NATURAL_NAME.
6707 (classes_info, find_methods): Likewise.
6708
6709 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6710
6711 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6712 ``mach'' to the value determined by bfd_default_set_arch_mach().
6713
6714 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6715
6716 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6717 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6718 (mi-cmd-file.o): Update dependencies.
6719
6720 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6721
6722 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6723 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6724
6725 2003-04-01 Adam Fedor <fedor@gnu.org>
6726
6727 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6728 * language.h (struct language_defn): Add la_demangle.
6729 (language_demangle): Declare.
6730 * language.c (language_demangle): New function.
6731 (unk_lang_demangle): Likewise.
6732 (unknown_language_defn, auto_language_defn, local_language_defn):
6733 Add ukn_lang_demangle.
6734 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6735 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6736 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6737 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6738 * jv-lang.c (java_demangle): New function
6739 (java_language_defn): Use it for la_demangle element.
6740 * objc-lang.c (objc_demangle): Add options argument
6741 (objc_language_defn): Use objc_demangle for la_demangle element.
6742 * maint.c (maintenance_demangle): Replace switch with
6743 call to language_demangle.
6744 * utils.c (fprintf_symbol_filtered): Likewise.
6745
6746 2003-04-01 Andrew Cagney <cagney@redhat.com>
6747
6748 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6749 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6750 PRINT_TYPELESS_INTEGER.
6751 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6752 PUSH_RETURN_ADDRESS.
6753
6754 2003-04-01 Andrew Cagney <cagney@redhat.com>
6755
6756 * Makefile.in (d10v-tdep.o): Update dependencies.
6757 * d10v-tdep.c: Include "frame-base.h".
6758 (d10v_frame_unwind): Make constant.
6759 (d10v_frame_base_address): New function.
6760 (d10v_frame_base): New variable.
6761 (d10v_gdbarch_init): Set frame_base default.
6762 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6763 comment for base.
6764 (d10v_frame_unwind_cache): Set and use "prev_sp".
6765 (d10v_frame_this_id): Use the previous frame's inner most stack
6766 address and this frame's func address for the frame ID. Use
6767 frame_id_build. Don't analyze beyond the current instruction.
6768
6769 2003-04-01 Andrew Cagney <cagney@redhat.com>
6770
6771 * frame.h (get_frame_locals_address, get_frame_args_address):
6772 Refer to the base address, instead of the address of the first
6773 local or parameter.
6774
6775 2003-04-01 Andrew Cagney <cagney@redhat.com>
6776
6777 Add frame debug info addresses:
6778 * frame-base.c: New file.
6779 * frame-base.h: New file.
6780 * frame.h (struct frame_base): Add opaque declaration.
6781 (get_frame_base): Update comment.
6782 (get_frame_base_address): Declare.
6783 (get_frame_locals_address): Declare.
6784 (get_frame_args_address): Declare.
6785 (struct frame_info): Add "base" and "base_cache". Update
6786 comments on the unwinder.
6787 * frame.c: Include "frame-base.h".
6788 (get_frame_locals_address): New function.
6789 (get_frame_base_address): New function.
6790 (get_frame_args_address): New function.
6791 * findvar.c (read_var_value): Use get_frame_locals_address and
6792 get_frame_args_address.
6793 * stack.c (frame_info): Use get_frame_locals_address and
6794 get_frame_args_address.
6795 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6796 moved to "frame-base.c".
6797 * printcmd.c (print_frame_nameless_args): Ditto.
6798 * symtab.h (address_class): Update comments.
6799 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6800 get_frame_base_address.
6801 * dwarf2expr.c (execute_stack_op): Ditto.
6802 * Makefile.in (frame_base_h): Define.
6803 (frame.o): Update dependencies.
6804 (frame-base.o): Add dependencies.
6805 (SFILES): Add frame-base.c.
6806 (COMMON_OBS): Add frame-base.o.
6807
6808 2003-04-01 Andrew Cagney <cagney@redhat.com>
6809
6810 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6811 CALL_DUMMY_LENGTH): Ditto.
6812 * gdbarch.c: Re-generate.
6813 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6814 (CALL_DUMMY_LENGTH): Delete macro.
6815 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6816 * arm-tdep.c (arm_gdbarch_init): Ditto.
6817 * avr-tdep.c (avr_gdbarch_init): Ditto.
6818 * cris-tdep.c (cris_gdbarch_init): Ditto.
6819 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6820 * frv-tdep.c (frv_gdbarch_init): Ditto.
6821 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6822 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6823 * i386-tdep.c (i386_gdbarch_init): Ditto.
6824 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6826 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6827 * mips-tdep.c (mips_gdbarch_init): Ditto.
6828 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6829 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6830 * s390-tdep.c (s390_gdbarch_init): Ditto.
6831 * sh-tdep.c (sh_gdbarch_init): Ditto.
6832 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6833 * v850-tdep.c (v850_gdbarch_init): Ditto.
6834 * vax-tdep.c (vax_gdbarch_init): Ditto.
6835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6836
6837 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6838
6839 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6840
6841 2003-04-01 Andrew Cagney <cagney@redhat.com>
6842
6843 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6844 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6845 * gdbarch.h, gdbarch.c: Re-generate.
6846 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6847 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6848 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6849 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6850 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6851 * infcmd.c (run_stack_dummy): Simplify assuming
6852 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6853 * infrun.c (handle_inferior_event): Ditto.
6854 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6855 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6856 * arm-tdep.c (arm_gdbarch_init): Ditto.
6857 * avr-tdep.c (avr_gdbarch_init): Ditto.
6858 * cris-tdep.c (cris_gdbarch_init): Ditto.
6859 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6860 * frv-tdep.c (frv_gdbarch_init): Ditto.
6861 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6862 * i386-tdep.c (i386_gdbarch_init): Ditto.
6863 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6865 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6866 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6867 * mips-tdep.c (mips_gdbarch_init): Ditto.
6868 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6869 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6870 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6871 * s390-tdep.c (s390_gdbarch_init): Ditto.
6872 * sh-tdep.c (sh_gdbarch_init): Ditto.
6873 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6874 * v850-tdep.c (v850_gdbarch_init): Ditto.
6875 * vax-tdep.c (vax_gdbarch_init): Ditto.
6876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6877
6878 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6879
6880 * symfile.c (symfile_relocate_debug_section): Update call to
6881 bfd_simple_get_relocated_section_contents.
6882
6883 2003-03-31 Andrew Cagney <cagney@redhat.com>
6884
6885 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6886 * gdbarch.h, gdbarch.c: Regenerate.
6887 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6888 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6889 available.
6890 * frame.h (generic_fix_call_dummy): Delete declaration.
6891 * dummy-frame.h: Update comment.
6892 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6894 fix_call_dummy.
6895 * sh-tdep.c (sh_gdbarch_init): Ditto.
6896 * s390-tdep.c (s390_gdbarch_init): Ditto.
6897 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6900 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6901 * i386-tdep.c (i386_gdbarch_init): Ditto.
6902 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6903 * frv-tdep.c (frv_gdbarch_init): Ditto.
6904 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6905 * cris-tdep.c (cris_gdbarch_init): Ditto.
6906 * avr-tdep.c (avr_gdbarch_init): Ditto.
6907 * arm-tdep.c (arm_gdbarch_init): Ditto.
6908
6909 2003-03-31 J. Brobecker <brobecker@gnat.com>
6910
6911 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6912 (INIT_FRAME_AP): Likewise.
6913 (EXTRA_FRAME_INFO): Likewise.
6914
6915 2003-03-31 Andrew Cagney <cagney@redhat.com>
6916
6917 * gdbarch.sh: Include "symfile.h".
6918 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6919 * gdbarch.h, gdbarch.c: Re-generate.
6920 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6922 call_dummy_address, the default is at entry_point_address.
6923 * v850-tdep.c (v850_gdbarch_init): Ditto.
6924 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6925 * sh-tdep.c (sh_gdbarch_init): Ditto.
6926 * s390-tdep.c (s390_gdbarch_init): Ditto.
6927 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6928 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6929 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6930 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6931 * i386-tdep.c (i386_gdbarch_init): Ditto.
6932 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6933 * frv-tdep.c (frv_gdbarch_init): Ditto.
6934 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6935 * cris-tdep.c (cris_gdbarch_init): Ditto.
6936 * arm-tdep.c (arm_gdbarch_init): Ditto.
6937
6938 2003-03-31 Andrew Cagney <cagney@redhat.com>
6939
6940 * gdbarch.sh (CALL_DUMMY_P): Delete.
6941 * gdbarch.h, gdbarch.c: Re-generate.
6942 * inferior.h (CALL_DUMMY_P): Delete macro.
6943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6944 * vax-tdep.c (vax_gdbarch_init): Update.
6945 * v850-tdep.c (v850_gdbarch_init): Update.
6946 * sparc-tdep.c (sparc_gdbarch_init): Update.
6947 * sh-tdep.c (sh_gdbarch_init): Update.
6948 * s390-tdep.c (s390_gdbarch_init): Update.
6949 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6950 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6952 * mips-tdep.c (mips_gdbarch_init): Update.
6953 * mcore-tdep.c (mcore_gdbarch_init): Update.
6954 * m68k-tdep.c (m68k_gdbarch_init): Update.
6955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6956 * ia64-tdep.c (ia64_gdbarch_init): Update.
6957 * i386-tdep.c (i386_gdbarch_init): Update.
6958 * h8300-tdep.c (h8300_gdbarch_init): Update.
6959 * frv-tdep.c (frv_gdbarch_init): Update.
6960 * d10v-tdep.c (d10v_gdbarch_init): Update.
6961 * cris-tdep.c (cris_gdbarch_init): Update.
6962 * breakpoint.c (deprecated_frame_in_dummy): Update.
6963 * avr-tdep.c (avr_gdbarch_init): Update.
6964 * alpha-tdep.c (alpha_gdbarch_init): Update.
6965 * arm-tdep.c (arm_gdbarch_init): Update.
6966 * dummy-frame.c (dummy_frame_this_id): Update comments.
6967 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6968 * frame.c (legacy_get_prev_frame): Ditto.
6969 * valops.c (call_function_by_hand): Delete function.
6970 (hand_function_call): Rename to call_function_by_hand
6971
6972 2003-03-30 Andrew Cagney <cagney@redhat.com>
6973
6974 2002-11-10 Klee Dienes <kdienes@apple.com>
6975 * value.h (struct value): Update comment.
6976
6977 2003-03-30 Andrew Cagney <cagney@redhat.com>
6978
6979 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6980 D10V_FP_REGNUM.
6981 (d10v_gdbarch_init): Do not set fp_regnum.
6982
6983 * frame.c (get_frame_base): Force ID initialization.
6984 (get_prev_frame): Move computation of the frame ID from here ...
6985 (get_frame_id): ... to here.
6986 (legacy_get_prev_frame): Mark the frame ID as valid.
6987 * frame.h (struct frame_info): Add field "id_p".
6988
6989 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6990
6991 * i386-tdep.c (i386_store_struct_return): Removed.
6992 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6993
6994 2003-03-30 Andrew Cagney <cagney@redhat.com>
6995
6996 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6997 * gdbarch.h, gdbarch.c: Regenerate.
6998 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7000 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7001 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7002 * i386-tdep.c (i386_gdbarch_init): Ditto.
7003 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7004 * cris-tdep.c (cris_gdbarch_init): Ditto.
7005 * vax-tdep.c (vax_gdbarch_init): Ditto.
7006 * s390-tdep.c (s390_gdbarch_init): Ditto.
7007 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7009 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7010 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7011 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7012 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7013 * sparc-tdep.c (sparc_gdbarch_init): Update.
7014 * sh-tdep.c (sh_gdbarch_init): Update.
7015 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7016 * mips-tdep.c (mips_gdbarch_init): Update.
7017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7018 * ia64-tdep.c (ia64_gdbarch_init): Update.
7019 * frv-tdep.c (frv_gdbarch_init): Update.
7020 * avr-tdep.c (avr_gdbarch_init): Update.
7021 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7022 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7023 instead of when push_dummy_call is not available.
7024
7025 2003-03-30 Andrew Cagney <cagney@redhat.com>
7026
7027 * infttrace.c: Include "gdbthread.h".
7028 (parent_attach_all): Fix function signature.
7029 (call_ptrace): Update call.
7030 * Makefile.in (infttrace.o): Update dependencies.
7031
7032 2003-03-30 Andrew Cagney <cagney@redhat.com>
7033
7034 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7035 PUSH_RETURN_ADDRESS.
7036 * gdbarch.h, gdbarch.c: Regenerate.
7037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7038 * x86-64-tdep.c (x86_64_init_abi): Update.
7039 * v850-tdep.c (v850_gdbarch_init): Update.
7040 * sparc-tdep.c (sparc_gdbarch_init): Update.
7041 * sh-tdep.c (sh_gdbarch_init): Update.
7042 * s390-tdep.c (s390_gdbarch_init): Update.
7043 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7045 * mips-tdep.c (mips_gdbarch_init): Update.
7046 * mcore-tdep.c (mcore_gdbarch_init): Update.
7047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7048 * ia64-tdep.c (ia64_gdbarch_init): Update.
7049 * i386-tdep.c (i386_gdbarch_init): Update.
7050 * h8300-tdep.c (h8300_gdbarch_init): Update.
7051 * frv-tdep.c (frv_gdbarch_init): Update.
7052 * cris-tdep.c (cris_gdbarch_init): Update.
7053 * avr-tdep.c (avr_gdbarch_init): Update.
7054 * arm-tdep.c (arm_gdbarch_init): Update.
7055 * valops.c (hand_function_call): Update.
7056
7057 2003-03-29 Andrew Cagney <cagney@redhat.com>
7058
7059 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7060 sizeof_call_dummy_words.
7061 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7062 define.
7063 * gdbarch.h: Regenerate.
7064
7065 2003-03-29 Andrew Cagney <cagney@redhat.com>
7066
7067 * infttrace.h: New file.
7068 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7069 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7070 (hpread_read_doc_function_type): Detect an initialized type1.
7071 (hpread_quick_traverse): Initialize mod_name_string.
7072 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7073 (som_solib_get_solib_by_pc): Declare.
7074 (so_lib_thread_start_addr): Declare.
7075 (no_shared_libraries): Declare.
7076 * somread.c (init_import_symbols): Make static. Add forward
7077 declaration.
7078 * config/pa/nm-hppah.h: Include "infttrace.h" for
7079 parent_attach_all.
7080 (hppa_insert_hw_watchpoint): Declare.
7081 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7082 * hppah-nat.c: Include "gdb_string.h".
7083 (parent_attach_all): Delete extern declaration, moved to
7084 "infttrace.h".
7085 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7086 int.
7087 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7088 * Makefile.in (infttrace_h): Define.
7089 (hpread.o): Update dependencies.
7090 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7091 * hppa-hpux-tdep.c: Include "gdb_string.h".
7092 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7093 * infrun.c (handle_inferior_event): Always initialize
7094 stepped_after_stopped_by_watchpoint. Add default and remove
7095 fallthrough in switch statement.
7096 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7097 parameter to int.
7098 (hppa_remove_hw_watchpoint): Ditto.
7099
7100 2003-03-29 Andrew Cagney <cagney@redhat.com>
7101
7102 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7103 offset.
7104
7105 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7106
7107 * arm-tdep.c (arm_push_arguments): Delete.
7108 (struct stack_item): New type.
7109 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7110 (arm_store_struct_return): Delte.
7111 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7112 arm_push_arguments or arm_store_struct_return.
7113
7114 2003-03-28 Andrew Cagney <cagney@redhat.com>
7115
7116 * Makefile.in (d10v-tdep.o): Update dependencies.
7117 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7118 * d10v-tdep.c: Include "remote.h".
7119 (target_resume_hook): Delete extern declaration.
7120 (target_wait_loop_hook): Ditto.
7121 (tdisassemble_command): Eliminate assignment in "if" conditional.
7122 (d10v_ts2_register_sim_regno): Eliminate call to
7123 legacy_register_sim_regno.
7124 (d10v_ts3_register_sim_regno): Ditto.
7125
7126 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7127
7128 * thread.c: Reindented.
7129 * lin-lwp.c: Ditto.
7130 * linux-proc.c: Ditto.
7131
7132 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7133
7134 * MAINTAINERS (write after approval): Add myself.
7135
7136 2003-03-27 Theodore A. Roth <troth@openavr.org>
7137
7138 * objc-exp.y: Add missing semi-colons.
7139
7140 2003-03-27 Andrew Cagney <cagney@redhat.com>
7141
7142 * regcache.c (write_sp): Delete function and references.
7143 * inferior.h (write_sp): Delete declaration.
7144 * valops.c (hand_function_call): Replace write_sp with
7145 TARGET_WRITE_SP.
7146 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7147 (sparc_pop_frame): Ditto.
7148
7149 2003-03-27 Andrew Cagney <cagney@redhat.com>
7150
7151 * NEWS: Mention removal of support for hppa*-*-bsd* and
7152 hppa*-*-osf* natives, and hppa*-*-pro* target.
7153 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7154 * config/pa/xm-pa.h: Obsolete file.
7155 * config/pa/xm-hppab.h: Obsolete file.
7156 * config/pa/nm-hppab.h: Obsolete file.
7157 * config/pa/tm-hppab.h: Obsolete file.
7158 * config/pa/tm-hppao.h: Obsolete file.
7159 * config/pa/nm-hppao.h: Obsolete file.
7160 * config/pa/tm-pro.h: Obsolete file.
7161 * config/pa/hppaosf.mt: Obsolete file.
7162 * config/pa/hppaosf.mh: Obsolete file.
7163 * config/pa/hppapro.mt: Obsolete file.
7164 * config/pa/hppabsd.mt: Obsolete file.
7165 * config/pa/hppabsd.mh: Obsolete file.
7166 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7167 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7168 hppa*-*-osf*.
7169
7170 2003-03-27 Andrew Cagney <cagney@redhat.com>
7171
7172 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7173 push_arguments. Don't set push_return_address or write_sp.
7174 (d10v_push_dummy_call): Replace d10v_push_arguments.
7175 (d10v_push_return_address, d10v_write_sp): Delete function,
7176 handled by push_dummy_call.
7177
7178 2003-03-26 Andrew Cagney <cagney@redhat.com>
7179
7180 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7181 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7182 regcache and dummy_addr parameters.
7183 * gdbarch.h, gdbarch.c: Re-generate.
7184 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7185 available; assume it will handle stack alignment and return
7186 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7187 legacy_push_arguments.
7188 (legacy_push_arguments): Rename default_push_arguments.
7189 * value.h (legacy_push_arguments): Rename default_push_arguments.
7190 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7191 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7192 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7193 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7194 * config/i386/tm-symmetry.h: Update.
7195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7196 * x86-64-tdep.c (x86_64_init_abi): Update.
7197 * v850-tdep.c (v850_gdbarch_init): Update.
7198 * sparc-tdep.c (sparc_gdbarch_init): Update.
7199 * sh-tdep.c (sh_gdbarch_init): Update.
7200 * s390-tdep.c (s390_gdbarch_init): Update.
7201 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7202 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7203 * mips-tdep.c (mips_gdbarch_init): Update.
7204 * mcore-tdep.c (mcore_gdbarch_init): Update.
7205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7206 * ia64-tdep.c (ia64_gdbarch_init): Update.
7207 * i386-tdep.c (i386_gdbarch_init): Update.
7208 * hppa-tdep.c (hppa_gdbarch_init): Update.
7209 * h8300-tdep.c (h8300_gdbarch_init): Update.
7210 * frv-tdep.c (frv_gdbarch_init): Update.
7211 * d10v-tdep.c (d10v_gdbarch_init): Update.
7212 * cris-tdep.c (cris_gdbarch_init): Update.
7213 * avr-tdep.c (avr_gdbarch_init): Update.
7214 * arm-tdep.c (arm_gdbarch_init): Update.
7215 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7216 * alpha-tdep.c (alpha_gdbarch_init): Update.
7217
7218 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7219
7220 * signals/signals.c (do_target_signal_to_host): Correct realtime
7221 signal range test.
7222
7223 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7224
7225 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7226 (struct sal_chain, map_catch_names): Remove.
7227 (catch_exception_command_1): Don't call
7228 handle_gnu_4_16_catch_command.
7229
7230 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7231
7232 From Mark Dettinger <dettinge@de.ibm.com>:
7233 * dwarf2cfi.c (read_2u): Increment pointer by two.
7234
7235 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7236
7237 * signals/signals.c: Fix typos in last change.
7238
7239 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7240
7241 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7242 not already defined. Use __SIGRTMIN if available.
7243 (target_signal_from_host): Remove SIGRTMIN block.
7244 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7245 the signal is within the realtime range.
7246
7247 2003-03-25 Adam Fedor <fedor@gnu.org>
7248
7249 * Makefile.in (infrun.o): Add $(language_h)
7250 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7251 for language specific trampolines.
7252 * language.h (struct language_defn): Add skip_trampoline.
7253 (skip_language_trampoline): Declare.
7254 * language.c (unk_lang_trampoline, skip_language_trampoline):
7255 New functions.
7256 (unknown_language_defn, auto_language_defn, local_language_defn):
7257 Add ukn_lang_trampoline.
7258 * ada-lang.c (ada_language_defn): Add NULL for language
7259 specific skip_trampoline.
7260 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7261 scm-lang.c: Likewise.
7262 * objc-lang.c (objc_skip_trampoline): New function.
7263 (objc_language_defn): Add objc_skip_trampoline.
7264
7265 2003-03-25 Andrew Cagney <cagney@redhat.com>
7266
7267 * frame.c (get_prev_frame): Delay validating a frame's ID -
7268 non-NULL, didn't go backwards - until an attempt to unwind it to
7269 the previous frame.
7270
7271 2003-03-25 Andrew Cagney <cagney@redhat.com>
7272
7273 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7274 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7275 * gdbarch.h, gdbarch.c: Re-generate.
7276 * config/sparc/tm-sparc.h
7277 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7278 * sparc-tdep.c (sparc_gdbarch_init): Set
7279 deprecated_extra_stack_alignment_needed.
7280 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7282 extra_stack_alignment_needed.
7283 * v850-tdep.c (v850_gdbarch_init): Ditto.
7284 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7285 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7286 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7287 * cris-tdep.c (cris_gdbarch_init): Ditto.
7288 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7290
7291 2003-03-25 Andrew Cagney <cagney@redhat.com>
7292
7293 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7294 STORE_STRUCT_RETURN.
7295 * gdbarch.h, gdbarch.c: Regenerate.
7296 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7297 (d10v_push_arguments): Set the struct return register.
7298 (d10v_gdbarch_init): Update.
7299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7300 * x86-64-tdep.c (x86_64_init_abi): Update.
7301 * vax-tdep.c (vax_gdbarch_init): Update.
7302 * v850-tdep.c (v850_gdbarch_init): Update.
7303 * sparc-tdep.c (sparc_gdbarch_init): Update.
7304 * sh-tdep.c (sh_gdbarch_init): Update.
7305 * s390-tdep.c (s390_gdbarch_init): Update.
7306 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7309 * mips-tdep.c (mips_gdbarch_init): Update.
7310 * mcore-tdep.c (mcore_gdbarch_init): Update.
7311 * m68k-tdep.c (m68k_gdbarch_init): Update.
7312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7313 * ia64-tdep.c (ia64_gdbarch_init): Update.
7314 * i386-tdep.c (i386_gdbarch_init): Update.
7315 * hppa-tdep.c (hppa_gdbarch_init): Update.
7316 * h8300-tdep.c (h8300_gdbarch_init): Update.
7317 * frv-tdep.c (frv_gdbarch_init): Update.
7318 * cris-tdep.c (cris_gdbarch_init): Update.
7319 * avr-tdep.c (avr_gdbarch_init): Update.
7320 * arm-tdep.c (arm_gdbarch_init): Update.
7321 * alpha-tdep.c (alpha_gdbarch_init): Update.
7322
7323 2003-03-25 Andrew Cagney <cagney@redhat.com>
7324
7325 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7326 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7327 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7328 * gdbarch.h, gdbarch.c: Regenerate.
7329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7330 call_dummy_stack_adjust_p.
7331 * vax-tdep.c (vax_gdbarch_init): Ditto.
7332 * v850-tdep.c (v850_gdbarch_init): Ditto.
7333 * sh-tdep.c (sh_gdbarch_init): Ditto.
7334 * s390-tdep.c (s390_gdbarch_init): Ditto.
7335 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7336 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7338 * mips-tdep.c (mips_gdbarch_init): Ditto.
7339 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7340 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7342 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7343 * i386-tdep.c (i386_gdbarch_init): Ditto.
7344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7345 * frv-tdep.c (frv_gdbarch_init): Ditto.
7346 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7347 * cris-tdep.c (cris_gdbarch_init): Ditto.
7348 * avr-tdep.c (avr_gdbarch_init): Ditto.
7349 * arm-tdep.c (arm_gdbarch_init): Ditto.
7350 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7351 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7352 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7353 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7354 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7355 call_dummy_stack_adjust_p.
7356 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7357 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7358 * sparc-tdep.c (sparc32_push_arguments): Update.
7359 * valops.c (hand_function_call): Update.
7360
7361 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7362
7363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7364 set_gdbarch_char_signed.
7365
7366 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7367
7368 PR cli/548
7369 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7370
7371 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7372
7373 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7374 (_initialize_arm_tdep): Don't set tm_print_insn.
7375
7376 2003-03-24 Adam Fedor <fedor@gnu.org>
7377
7378 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7379 * objc-lang.h: Add multiple inclusion protection.
7380 (start_msglist, add_msglist, end_msglist): Additional declarations.
7381
7382 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7383
7384 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7385 value was renamed to ARM_FLOAT_SOFT_FPA.
7386
7387 2003-03-23 Andrew Cagney <cagney@redhat.com>
7388
7389 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7390 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7391 * gdbarch.h, gdbarch.c: Regenerate.
7392 * valops.c (hand_function_call): Update.
7393 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7394 * frame.c (legacy_saved_regs_this_id): Update.
7395 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7396 * dummy-frame.h: Update.
7397 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7398 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7399 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7400 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7401 * config/m68k/tm-sun3.h: Update.
7402 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7404 * x86-64-tdep.c (x86_64_init_abi): Update.
7405 * vax-tdep.c (vax_gdbarch_init): Update.
7406 * v850-tdep.c (v850_gdbarch_init): Update.
7407 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7408 * sh-tdep.c (sh_gdbarch_init): Update.
7409 * s390-tdep.c (s390_gdbarch_init): Update.
7410 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7411 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7412 (frame_get_saved_regs): Update.
7413 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7414 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7415 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7416 * mips-tdep.c (mips_gdbarch_init): Update.
7417 * mcore-tdep.c (mcore_gdbarch_init): Update.
7418 * m68k-tdep.c (m68k_gdbarch_init): Update.
7419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7420 * ia64-tdep.c (ia64_gdbarch_init): Update.
7421 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7422 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7423 (i386_interix_back_one_frame): Update.
7424 * hppa-tdep.c (hppa_gdbarch_init): Update.
7425 (hppa_init_extra_frame_info): Update.
7426 * h8300-tdep.c (h8300_gdbarch_init): Update.
7427 * frv-tdep.c (frv_gdbarch_init): Update.
7428 * cris-tdep.c (cris_gdbarch_init): Update.
7429 * avr-tdep.c (avr_gdbarch_init): Update.
7430 * arm-tdep.c (arm_gdbarch_init): Update.
7431 * alpha-tdep.c (alpha_gdbarch_init): Update.
7432
7433 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7434
7435 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7436 (arm_get_fp_model): Declare.
7437 * arm-tdep.c (fp_model_strings): New string array.
7438 (arm_fp_model, current_fp_model): New variables.
7439 (arm_get_fp_model): New function.
7440 (arm_set_fp): New function.
7441 (set_fp_model_sfunc): New function.
7442 (show_fp_model): New function.
7443 (_initialize_arm_tdep): Add new command to set/show the FPU.
7444 (arm_extract_return_value): Use arm_get_fp_model.
7445 (arm_store_return_value): Likewise.
7446 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7447 to initialize the floating-point data types.
7448 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7449 model is FPA.
7450
7451 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7452
7453 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7454 the current setting of each value.
7455 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7456 new_set and new_show. Use add_setshow_cmd_full and
7457 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7458 commands and add new version as subcommands of "set/show arm".
7459
7460 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7461
7462 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7463 (set_arm_command, show_arm_command): New functions.
7464 (_initialize_arm_tdep): Add them.
7465 (num_disassembly_options): Renamed from num_flavor_options.
7466 (valid_disassembly_styles): Renamed from valid_flavors.
7467 (disassembly_style): Renamed from disassembly_flavor.
7468 (set_disassembly_style_sfunc): Renamed from
7469 set_disassembly_flavor_sfunc.
7470 (set_disassembly_style): Renamed from set_disassembly_flavor.
7471 (arm_othernames): Updated.
7472 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7473 command. Add "set/show arm disassembly" commands. Deprecate
7474 "othernames" command.
7475
7476 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7477
7478 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7479 (arm-tdep.o): Depend on elf_arm_h.
7480
7481 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7482
7483 * Makefile.in (coff_internal_h): Define.
7484 (arm-tdep.o): Update dependencies.
7485
7486 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7487
7488 * arm-tdep.c (prologue_cache): Delete.
7489 (check_prologue_cache, save_prologue_cache): Delete.
7490 (arm_scan_prologue): Don't check or update the prologue_cache.
7491 (arm_gdb_arch_init): Don't initialize it.
7492 (_initialize_arm_tdep): Likewise.
7493
7494 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7495
7496 * MAINTAINERS (tui): Maintainer of tui code.
7497
7498 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7499
7500 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7501 (i386-cygwin-tdep.o): Add dependencies.
7502 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7503 * i386-cygwin-tdep.c: New file.
7504 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7505 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7506
7507 2003-03-20 Andrew Cagney <cagney@redhat.com>
7508
7509 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7510 (handle_inferior_event): Remove code calling
7511 DYNAMIC_TRAMPOLINE_NEXTPC.
7512
7513 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7514 already has a full path.
7515
7516 * main.c (gdb_main): Return 1.
7517 (captured_main): Call error to report an invalid interpreter.
7518
7519 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7520 * alpha-osf1-tdep.c: Include "gdb_string.h".
7521
7522 2003-03-19 J. Brobecker <brobecker@gnat.com>
7523
7524 Continuing work to convert the hppa targets to multiarch partial.
7525
7526 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7527 method, now that hppa_push_dummy_frame has a conformant prototype.
7528 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7529 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7530 for the switch to multiarch partial.
7531
7532 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7533
7534 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7535 when iss is issNull.
7536
7537 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7538
7539 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7540 NUM_REGS bounds check.
7541
7542 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7543
7544 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7545 * mips-tdep.c (gdb_assert.h): Include.
7546 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7547 (mips_register_name): Handle integer registers explicitly. Add
7548 bounds checking.
7549 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7550 (mips_lsi33k_reg_names): Don't list integer registers; they're
7551 handled by mips_register_name() now.
7552 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7553 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7554 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7555 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7556 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7557
7558 2003-03-18 Andrew Cagney <cagney@redhat.com>
7559
7560 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7561 a void pointer.
7562 * gdbtypes.h (print_scalar_formatted): Update declaration.
7563 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7564
7565 2003-03-18 J. Brobecker <brobecker@gnat.com>
7566
7567 * infrun.c (observer.h): Add #include.
7568 (normal_stop): Add call to observer_notify_normal_stop.
7569 * Makefile.in (infrun.o): Add dependency on observer.h.
7570
7571 2003-03-18 J. Brobecker <brobecker@gnat.com>
7572
7573 Continuing work to convert the hppa targets to multiarch partial.
7574 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7575 parameter. Reformat comment.
7576 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7577 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7578 to match new profile.
7579
7580 2003-03-18 J. Brobecker <brobecker@gnat.com>
7581
7582 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7583 appear to be working in any case.
7584
7585 2003-03-18 J. Brobecker <brobecker@gnat.com>
7586
7587 * observer.c (observer_test_first_observer): New static variable.
7588 (observer_test_second_observer): Likewise.
7589 (observer_test_third_observer): Likewise.
7590 (observer_test_first_notification_function): New static function.
7591 (observer_test_second_notification_function): Likewise.
7592 (observer_test_third_notification_function): Likewise.
7593
7594 2003-03-17 J. Brobecker <brobecker@gnat.com>
7595
7596 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7597 * somsolib.c (gdb_assert.h): Likewise.
7598 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7599 (somsolib.o): Likewise.
7600
7601 2003-03-17 Andrew Cagney <cagney@redhat.com>
7602
7603 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7604 BFD. Simplify setting of di.endian.
7605
7606 2003-03-17 Andrew Cagney <cagney@redhat.com>
7607
7608 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7609 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7610
7611 From Elena Zannoni <ezannoni@redhat.com>
7612 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7613 vector and floating-point parameters.
7614 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7615 convention.
7616 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7617
7618 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7619
7620 * MAINTAINERS: Remove my name from several maintainership roles.
7621
7622 2003-03-17 Andrew Cagney <cagney@redhat.com>
7623
7624 Fix frame off-by-one bug.
7625 * frame-unwind.h (frame_this_id_ftype): Replace
7626 frame_unwind_id_ftype.
7627 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7628 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7629 with "prev_register".
7630 * frame-unwind.c (frame_unwind_find_by_pc): Return
7631 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7632 comment.
7633 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7634 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7635 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7636 (dummy_frame_unwind): Update.
7637 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7638 sentinel_frame_register_unwind.
7639 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7640 (sentinel_frame_unwinder): Update.
7641 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7642 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7643 * frame.c (create_sentinel_frame): Update. Initialize
7644 "prologue_cache" instead of "unwind_cache".
7645 (frame_register_unwind): Call this frame's prev_register with the
7646 next frame and this frame's prologue cache.
7647 (get_prev_frame): Simplify. Always call prev frame's this_id with
7648 this frame and prev frame's prologue cache. Document that this
7649 call is shifted one to the left when compared to the
7650 frame_register_unwind call.
7651 (legacy_saved_regs_prev_register): Replace
7652 frame_saved_regs_register_unwind.
7653 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7654 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7655 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7656 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7657 (d10v_frame_unwind): Update.
7658 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7659 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7660 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7661 "saved_regs" with "this_saved_regs".
7662
7663 2003-03-16 Andrew Cagney <cagney@redhat.com>
7664
7665 * frame.c (frame_pop): Don't call target_store_registers. Fix
7666 problem reported by Mark Kettenis.
7667
7668 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7669
7670 * i386-tdep.c (i386_register_type): Renamed from
7671 i386_register_virtual_type. Adjust function signature.
7672 (i386_gdbarch_init): Set register_type instead of
7673 deprecated_max_register_raw_size,
7674 deprecated_max_register_virtual_size and register_virtual_type.
7675
7676 2003-03-14 Andrew Cagney <cagney@redhat.com>
7677
7678 * frame.c (get_prev_frame): When a legacy frame, always call
7679 legacy_get_prev_frame. Simplify unwind code using assumption that
7680 the unwinder is new.
7681 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7682 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7683 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7684
7685 2003-03-14 Andrew Cagney <cagney@redhat.com>
7686
7687 * frame.c (get_saved_register): Delete function.
7688 * frame.h (get_saved_register): Delete declaration.
7689 * xstormy16-tdep.c: Update comment.
7690 * regcache.h: Update comments.
7691 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7692 get_saved_register and extract_address, use
7693 frame_read_unsigned_register.
7694 (sparc_frame_saved_pc): Ditto.
7695 (sparc_get_saved_register): Instead of get_saved_register, use
7696 frame_register.
7697 (sparc_pop_frame): Ditto.
7698 * findvar.c: Update comments.
7699 (value_of_register): Call frame_register instead of
7700 get_saved_register.
7701 (value_from_register): Ditto.
7702 * config/sparc/tm-sparc.h: Update comment.
7703 * breakpoint.c: Update comment.
7704
7705 2003-03-14 Andrew Cagney <cagney@redhat.com>
7706
7707 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7708 GET_SAVED_REGISTER.
7709 * gdbarch.h, gdbarch.c: Re-generate.
7710 * frame.h: Update comments.
7711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7712 * x86-64-tdep.c (x86_64_init_abi): Update.
7713 * sparc-tdep.c (sparc_gdbarch_init): Update.
7714 * sh-tdep.c (sh_gdbarch_init): Update.
7715 * mips-tdep.c (mips_gdbarch_init): Update.
7716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7717 * cris-tdep.c (cris_gdbarch_init): Update.
7718 * ia64-tdep.c (ia64_gdbarch_init): Update.
7719 * frame.c (frame_register): Update.
7720 (get_saved_register): Update.
7721 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7722
7723 2003-03-13 Andrew Cagney <cagney@redhat.com>
7724
7725 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7726 * gdbarch.h, gdbarch.c: Regenerate.
7727 * valops.c (hand_function_call): Update comment.
7728 * stack.c (return_command): Update comment.
7729 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7730 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7732 * x86-64-tdep.c (x86_64_init_abi): Update.
7733 * vax-tdep.c (vax_gdbarch_init): Update.
7734 * v850-tdep.c (v850_gdbarch_init): Update.
7735 * sparc-tdep.c (sparc_gdbarch_init): Update.
7736 * sh-tdep.c (sh_gdbarch_init): Update.
7737 * s390-tdep.c (s390_gdbarch_init): Update.
7738 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7739 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7740 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7741 * mips-tdep.c (mips_gdbarch_init): Update.
7742 * mcore-tdep.c (mcore_gdbarch_init): Update.
7743 * m68k-tdep.c (m68k_gdbarch_init): Update.
7744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7745 * ia64-tdep.c (ia64_gdbarch_init): Update.
7746 * i386-tdep.c (i386_gdbarch_init): Update.
7747 * hppa-tdep.c (hppa_gdbarch_init): Update.
7748 * h8300-tdep.c (h8300_gdbarch_init): Update.
7749 * frv-tdep.c (frv_gdbarch_init): Update.
7750 * cris-tdep.c (cris_gdbarch_init): Update.
7751 * avr-tdep.c (avr_gdbarch_init): Update.
7752 * arm-tdep.c (arm_gdbarch_init): Update.
7753 * alpha-tdep.c (alpha_gdbarch_init): Update.
7754
7755 2003-03-13 Andrew Cagney <cagney@redhat.com>
7756
7757 * frame.c (legacy_frame_p): New function.
7758 (get_prev_frame): Use legacy_frame_p.
7759 * frame.h (legacy_frame_p): Declare.
7760
7761 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7762
7763 * MAINTAINERS (write after approval): Alphabetically
7764 listing corrected.
7765
7766 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7767
7768 * MAINTAINERS (write after approval): Add myself.
7769
7770 2003-03-12 Andrew Cagney <cagney@redhat.com>
7771
7772 * frame.c (get_prev_frame): Rename the frame parameter to
7773 "this_frame".
7774 (get_next_frame, legacy_get_prev_frame): Ditto.
7775
7776 2003-03-12 Andrew Cagney <cagney@redhat.com>
7777
7778 * frame.c (get_current_frame): Check target_has_registers before
7779 checking target_has_stack.
7780 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7781 instead of deprecated_selected_frame.
7782 * findvar.c (value_of_register): Pass "frame", not
7783 deprecated_selected_frame, to value_of_builtin_reg.
7784
7785 2003-03-12 Andrew Cagney <cagney@redhat.com>
7786
7787 * regcache.c (regcache_cooked_write_signed): New function.
7788 (regcache_cooked_write_unsigned): New function.
7789 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7790 (regcache_cooked_read_signed): Fix regnum in range assertion.
7791 * regcache.h (regcache_cooked_write_signed): Declare.
7792 (regcache_cooked_write_unsigned): Declare.
7793
7794 2003-03-12 Andrew Cagney <cagney@redhat.com>
7795
7796 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7797 * gdbarch.h, gdbarch.c: Re-generate.
7798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7799 * x86-64-tdep.h: Update.
7800 * x86-64-tdep.c (x86_64_init_abi): Update.
7801 * v850-tdep.c (v850_gdbarch_init): Update.
7802 * sparc-tdep.c (sparc_gdbarch_init): Update.
7803 * sh-tdep.c (sh_gdbarch_init): Update.
7804 * s390-tdep.c (s390_gdbarch_init): Update.
7805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7806 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7807 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7809 * mips-tdep.c (mips_gdbarch_init): Update.
7810 * mcore-tdep.c (mcore_gdbarch_init): Update.
7811 * m68k-tdep.c (m68k_gdbarch_init): Update.
7812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7813 * ia64-tdep.c (ia64_gdbarch_init): Update.
7814 * i386-tdep.c (i386_gdbarch_init): Update.
7815 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7816 * hppa-tdep.c (hppa_gdbarch_init): Update.
7817 * h8300-tdep.c (h8300_gdbarch_init): Update.
7818 * frv-tdep.c (frv_gdbarch_init): Update.
7819 * cris-tdep.c (cris_gdbarch_init): Update.
7820 * avr-tdep.c (avr_gdbarch_init): Update.
7821 * arm-tdep.c (arm_gdbarch_init): Update.
7822 * alpha-tdep.c (alpha_gdbarch_init): Update.
7823 * sh-tdep.c (sh_init_extra_frame_info): Update.
7824 (sh64_init_extra_frame_info): Update.
7825 * ns32knbsd-nat.c (frame_num_args): Update.
7826 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7827 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7828 (xstormy16_frame_chain_valid): Update.
7829 * vax-tdep.c (vax_saved_pc_after_call): Update.
7830 * v850-tdep.c (v850_frame_chain): Update.
7831 (v850_pop_frame): Update.
7832 (v850_init_extra_frame_info): Update.
7833 * sparc-tdep.c (setup_arbitrary_frame): Update.
7834 * ns32k-tdep.c (umax_frame_num_args): Update.
7835 * s390-tdep.c (s390_pop_frame_regular): Update.
7836 * mn10300-tdep.c (mn10300_frame_chain): Update.
7837 (mn10300_pop_frame_regular): Update.
7838 (mn10300_init_extra_frame_info): Update.
7839 * mips-tdep.c (mips_init_frame_pc_first): Update.
7840 (mips_frame_chain): Update.
7841 (mips_pop_frame): Update.
7842 * mcore-tdep.c (mcore_frame_chain): Update.
7843 (mcore_pop_frame): Update.
7844 (mcore_init_extra_frame_info): Update.
7845 * arch-utils.c (init_frame_pc_default): Update.
7846 * m68k-tdep.c (isi_frame_num_args): Update.
7847 (delta68_frame_num_args): Update.
7848 (news_frame_num_args): Update.
7849 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7850 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7851 (alpha_frame_chain): Update.
7852 (alpha_pop_frame): Update.
7853 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7854 (hppa_init_extra_frame_info): Update.
7855 (hppa_frame_chain): Update.
7856 (hppa_frame_chain_valid): Update.
7857 * cris-tdep.c (cris_init_extra_frame_info): Update.
7858 * avr-tdep.c (avr_init_extra_frame_info): Update.
7859 * arm-tdep.c (arm_frame_chain_valid): Update.
7860 (arm_init_extra_frame_info): Update.
7861 (arm_pop_frame): Update.
7862 * frame.c (frame_pc_unwind): Update.
7863 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7864 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7865 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7866 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7867 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7868 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7869
7870 2003-03-12 Andrew Cagney <cagney@redhat.com>
7871
7872 Eliminate the need for POP_FRAME.
7873 * frame.c (do_frame_unwind_register): New function.
7874 (frame_pop): When no POP_FRAME, pop the frame using register
7875 unwind and a scratch regcache.
7876 (frame_saved_regs_pop): Delete function.
7877 (trad_frame_unwinder): Update.
7878 * d10v-tdep.c (d10v_frame_pop): Delete function.
7879 (d10v_frame_unwind): Update.
7880 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7881 (sentinel_frame_unwinder): Update.
7882 * dummy-frame.c (dummy_frame_pop): Delete function.
7883 (dummy_frame_unwind): Update.
7884 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7885 (struct frame_unwind): Update.
7886
7887 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7888
7889 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7890 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7891 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7892 Do range checks on register number obtained from debugging info.
7893 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7894 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7895 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7896 mapping function.
7897 (do_fp_register_row): Fix typo which caused double type to be
7898 used when attempting to unpack a float.
7899
7900 2003-03-11 J. Brobecker <brobecker@gnat.com>
7901
7902 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7903
7904 2003-03-11 Andrew Cagney <cagney@redhat.com>
7905
7906 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7907 frame. Problem found by Corinna Vinschen.
7908
7909 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7910
7911 * doublest.c (floatformat_from_length): Accept also
7912 the real size of 'long double' type.
7913
7914 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7915
7916 From Klee Dienes <kdienes@apple.com>:
7917 * breakpoint.c (bpstat_copy): Copy the command lines as well
7918 as the old value, to match what is freed in bpstat_clear.
7919
7920 2003-03-10 David Carlton <carlton@math.stanford.edu>
7921
7922 * minsyms.c (add_minsym_to_hash_table): Replace
7923 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7924 (compare_minimal_symbols, compact_minimal_symbols)
7925 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7926 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7927 of DEPRECATED_SYMBOL_MATCHES_NAME.
7928 (lookup_minimal_symbol_solib_trampoline): Ditto.
7929
7930 2003-03-10 Andrew Cagney <cagney@redhat.com>
7931
7932 * regcache.h (regcache_cooked_read_ftype): Define.
7933 (regcache_save, regcache_restore): Add a cooked_read parameter.
7934 * regcache.c (regcache_save, regcache_restore): Update.
7935 (do_cooked_read): New function.
7936 (regcache_cpy): Pass do_cooked_read to regcache_save and
7937 regcache_restore.
7938
7939 2003-03-10 Andrew Cagney <cagney@redhat.com>
7940
7941 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7942 * gdbarch.h, gdbarch.c: Re-generate.
7943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7944 * x86-64-tdep.h: Update.
7945 * x86-64-tdep.c (x86_64_init_abi): Update.
7946 * v850-tdep.c (v850_gdbarch_init): Update.
7947 * sparc-tdep.c (sparc_gdbarch_init): Update.
7948 * sh-tdep.c (sh_gdbarch_init): Update.
7949 * s390-tdep.c (s390_gdbarch_init): Update.
7950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7951 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7952 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7954 * mips-tdep.c (mips_gdbarch_init): Update.
7955 * mcore-tdep.c (mcore_gdbarch_init): Update.
7956 * m68k-tdep.c (m68k_gdbarch_init): Update.
7957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7958 * ia64-tdep.c (ia64_gdbarch_init): Update.
7959 * i386-tdep.c (i386_gdbarch_init): Update.
7960 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7961 * hppa-tdep.c (hppa_gdbarch_init): Update.
7962 * h8300-tdep.c (h8300_gdbarch_init): Update.
7963 * frv-tdep.c (frv_gdbarch_init): Update.
7964 * cris-tdep.c (cris_gdbarch_init): Update.
7965 * avr-tdep.c (avr_gdbarch_init): Update.
7966 * arm-tdep.c (arm_gdbarch_init): Update.
7967 * alpha-tdep.c (alpha_gdbarch_init): Update.
7968 * sh-tdep.c (sh_init_extra_frame_info): Update.
7969 (sh64_init_extra_frame_info): Update.
7970 * ns32knbsd-nat.c (frame_num_args): Update.
7971 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7972 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7973 (xstormy16_frame_chain_valid): Update.
7974 * vax-tdep.c (vax_saved_pc_after_call): Update.
7975 * v850-tdep.c (v850_frame_chain): Update.
7976 (v850_pop_frame): Update.
7977 (v850_init_extra_frame_info): Update.
7978 * sparc-tdep.c (setup_arbitrary_frame): Update.
7979 * ns32k-tdep.c (umax_frame_num_args): Update.
7980 * s390-tdep.c (s390_pop_frame_regular): Update.
7981 * mn10300-tdep.c (mn10300_frame_chain): Update.
7982 (mn10300_pop_frame_regular): Update.
7983 (mn10300_init_extra_frame_info): Update.
7984 * mips-tdep.c (mips_init_frame_pc_first): Update.
7985 (mips_frame_chain): Update.
7986 (mips_pop_frame): Update.
7987 * mcore-tdep.c (mcore_frame_chain): Update.
7988 (mcore_pop_frame): Update.
7989 (mcore_init_extra_frame_info): Update.
7990 * arch-utils.c (init_frame_pc_default): Update.
7991 * m68k-tdep.c (isi_frame_num_args): Update.
7992 (delta68_frame_num_args): Update.
7993 (news_frame_num_args): Update.
7994 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7995 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7996 (alpha_frame_chain): Update.
7997 (alpha_pop_frame): Update.
7998 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7999 (hppa_init_extra_frame_info): Update.
8000 (hppa_frame_chain): Update.
8001 (hppa_frame_chain_valid): Update.
8002 * cris-tdep.c (cris_init_extra_frame_info): Update.
8003 * avr-tdep.c (avr_init_extra_frame_info): Update.
8004 * arm-tdep.c (arm_frame_chain_valid): Update.
8005 (arm_init_extra_frame_info): Update.
8006 (arm_pop_frame): Update.
8007 * frame.c (frame_pc_unwind): Update.
8008 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8009 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8010 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8011 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8012 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8013 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8014
8015 2003-03-10 Andrew Cagney <cagney@redhat.com>
8016
8017 * gdbarch.sh (gdbarch_unwind_pc): New method.
8018 * gdbarch.h, gdbarch.c: Regenerate.
8019 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8020 but use read_pc and FRAME_SAVED_PC as fall backs.
8021 (frame_saved_regs_pc_unwind): Delete function.
8022 (trad_frame_unwinder): Update.
8023 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8024 (struct frame_unwind): Update.
8025 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8026 (dummy_frame_unwind): Update.
8027 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8028 (sentinel_frame_unwinder): Update.
8029 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8030 (d10v_frame_unwind): Update.
8031 (d10v_unwind_pc): New function.
8032 (d10v_gdbarch_init): Set unwind_pc.
8033
8034 2003-03-10 Andrew Cagney <cagney@redhat.com>
8035
8036 * gdbarch.h: Re-generate.
8037
8038 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8039 PC.
8040 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8041 the PC register.
8042
8043 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8044
8045 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8046
8047 2003-03-08 Andrew Cagney <cagney@redhat.com>
8048
8049 * cli-out.c: Update copyright.
8050 (cli_out_data): Define typedef. Use instead of ui_out_data.
8051
8052 2003-03-08 Andrew Cagney <cagney@redhat.com>
8053
8054 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8055 the result.
8056
8057 2003-03-07 Andrew Cagney <cagney@redhat.com>
8058
8059 * gdbarch.sh: Don't generate two macro definitions when an
8060 undefined macro taking no arguments.
8061 * gdbarch.h: Regenerate.
8062
8063 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8064
8065 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8066 (x86_64_unwind_dummy_id): New functions.
8067 (x86_64_init_abi): Register these two new functions.
8068
8069 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8070
8071 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8072 (x86_64_skip_prologue): Move prologue detection to
8073 separate function.
8074 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8075
8076 2003-03-05 Andrew Cagney <cagney@redhat.com>
8077
8078 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8079 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8080 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8081 to use unwind_dummy_id when a dummy frame.
8082 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8083 predicate.
8084 * gdbarch.h, gdbarch.c: Regneerate.
8085
8086 2003-03-05 Andrew Cagney <cagney@redhat.com>
8087
8088 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8089 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8090 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8091 values.
8092
8093 2003-03-05 Andrew Cagney <cagney@redhat.com>
8094
8095 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8096 (struct d10v_unwind_cache): Delete field "frameless". Replace
8097 "next_addr" with "sp_offset". Add "r11_offset".
8098 (d10v_frame_unwind_cache): Update.
8099 (prologue_find_regs): Update. When "mv r11, sp", save the
8100 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8101 RN was saved in r11_offset.
8102
8103 2003-03-05 Andrew Cagney <cagney@redhat.com>
8104
8105 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8106 cached PC value in the next frame.
8107
8108 2003-03-05 Andrew Cagney <cagney@redhat.com>
8109
8110 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8111 "id_unwind_cache" with "id".
8112 (frame_id_unwind): Delete declaration.
8113 * frame.c (frame_id_unwind): Delete function.
8114 (get_prev_frame): Call the frame id unwind method directly. Store
8115 the returned next frame's ID value in NEXT_FRAME. Note that there
8116 is a problem with the wrong unwind ID being called with the wrong
8117 unwind cache.
8118
8119 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8120
8121 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8122
8123 2003-03-05 James Ingham <jingham@apple.com>
8124 Daniel Jacobowitz <drow@mvista.com>
8125
8126 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8127 (auto_cp_abi): New variable.
8128 (current_cp_abi, num_cp_abis): Make static.
8129 (CP_ABI_MAX): Define.
8130 (cp_abis): Turn into an array.
8131 (value_virtual_fn_field): Fix formatting.
8132 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8133 takes a pointer.
8134 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8135 (list_cp_abis, _initialize_cp_abi): New functions.
8136 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8137 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8138 switch_to_cp_abi. Update prototype for register_cp_abi.
8139 * Makefile.in (cp-abi.o): Update dependencies.
8140 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8141 instead of switch_to_cp_abi.
8142 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8143 register_cp_abi.
8144 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8145 register_cp_abi.
8146 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8147
8148 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8149
8150 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8151 * dwarf2loc.c: Include "regcache.h".
8152 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8153 register_size.
8154 * Makefile.in (dwarf2loc.o): Update dependencies.
8155
8156 2003-03-04 Theodore A. Roth <troth@openavr.org>
8157
8158 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8159 number of io registers reported by remote target is not a multiple of
8160 step.
8161
8162 2003-03-04 David Carlton <carlton@math.stanford.edu>
8163
8164 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8165 (lookup_symbol_aux_psymtabs): Update call to
8166 lookup_partial_symbol.
8167 (lookup_transparent_type, find_main_psymtab)
8168 (make_symbol_overload_list): Ditto.
8169
8170 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8171
8172 * MAINTAINERS (Write after approval): Update my email address.
8173
8174 2003-03-03 Andrew Cagney <cagney@redhat.com>
8175
8176 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8177 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8178 predicate. Replace MAX_REGISTER_RAW_SIZE.
8179 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8180 MAX_REGISTER_VIRTUAL_SIZE.
8181 * regcache.c (legacy_max_register_raw_size): New function.
8182 (legacy_max_register_virtual_size): New function.
8183 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8184 (MAX_REGISTER_RAW_SIZE): Define.
8185 (legacy_max_register_raw_size): Declare.
8186 (legacy_max_register_virtual_size): Declare.
8187 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8188 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8189 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8190 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8191 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8192 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8193 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8194 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8195 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8197 * vax-tdep.c (vax_gdbarch_init): Update.
8198 * v850-tdep.c (v850_gdbarch_init): Update.
8199 * sparc-tdep.c (sparc_gdbarch_init): Update.
8200 * sh-tdep.c (sh_gdbarch_init): Update.
8201 * s390-tdep.c (s390_gdbarch_init): Update.
8202 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8203 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8204 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8205 * mips-tdep.c (mips_gdbarch_init): Update.
8206 * mcore-tdep.c (mcore_gdbarch_init): Update.
8207 * m68k-tdep.c (m68k_gdbarch_init): Update.
8208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8209 * ia64-tdep.c (ia64_gdbarch_init): Update.
8210 * i386-tdep.c (i386_gdbarch_init): Update.
8211 * hppa-tdep.c (hppa_gdbarch_init): Update.
8212 * h8300-tdep.c (h8300_gdbarch_init): Update.
8213 * frv-tdep.c (frv_gdbarch_init): Update.
8214 * cris-tdep.c (cris_gdbarch_init): Update.
8215 * avr-tdep.c (avr_gdbarch_init): Update.
8216 * arm-tdep.c (arm_gdbarch_init): Update.
8217 * alpha-tdep.c (alpha_gdbarch_init): Update.
8218 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8219 max_register_raw_size or max_register_virtual_size.
8220
8221 2003-03-03 David Carlton <carlton@math.stanford.edu>
8222
8223 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8224 SYMBOL_MATCHES_NAME, add comment.
8225 (SYMBOL_MATCHES_NATURAL_NAME): New.
8226 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8227 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8228 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8229 * symtab.c (lookup_partial_symbol): Use
8230 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8231 unhelpful comment.
8232 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8233 SYMBOL_MATCHES_NAME.
8234 Fix for PR c++/33.
8235
8236 2003-03-03 David Carlton <carlton@math.stanford.edu>
8237
8238 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8239 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8240 by regexp matching against SYMBOL_NATURAL_NAME.
8241
8242 2003-03-03 David Carlton <carlton@math.stanford.edu>
8243
8244 * linespec.c (find_method): Extract code into collect_methods.
8245 (collect_methods): New.
8246
8247 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8248
8249 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8250 get_frame_base.
8251
8252 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8253 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8254
8255 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8256
8257 * arch-utils.c (generic_register_byte): Fix to use the loop index
8258 and not regnum when summing the size of all registers up to regnum.
8259
8260 2003-03-01 Andrew Cagney <cagney@redhat.com>
8261
8262 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8263 FRAME_INIT_SAVED_REGS.
8264 * gdbarch.h, gdbarch.c: Regenerate.
8265 * stack.c (frame_info): Update.
8266 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8267 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8268 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8269 * ns32k-tdep.c (ns32k_pop_frame): Update.
8270 * mips-tdep.c (mips_pop_frame): Update.
8271 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8272 * ia64-tdep.c (ia64_frame_chain): Update.
8273 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8274 (ia64_frameless_function_invocation): Update.
8275 (ia64_init_extra_frame_info): Update.
8276 (ia64_pop_frame_regular): Update.
8277 * frame.h (struct frame_info): Update comment.
8278 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8279 * frame.c (frame_saved_regs_register_unwind): Update.
8280 (frame_saved_regs_register_unwind): Update.
8281 (deprecated_generic_get_saved_register): Update.
8282 * cris-tdep.c: Update comment.
8283 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8284 Rename macro.
8285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8286 * x86-64-tdep.c (x86_64_init_abi): Update.
8287 * vax-tdep.c (vax_gdbarch_init): Update.
8288 * v850-tdep.c (v850_gdbarch_init): Update.
8289 * sparc-tdep.c (sparc_gdbarch_init): Update.
8290 * sh-tdep.c (sh_gdbarch_init): Update.
8291 * s390-tdep.c (s390_gdbarch_init): Update.
8292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8293 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8294 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8295 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8296 * mips-tdep.c (mips_gdbarch_init): Update.
8297 * mcore-tdep.c (mcore_gdbarch_init): Update.
8298 * m68k-tdep.c (m68k_gdbarch_init): Update.
8299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8300 * ia64-tdep.c (ia64_gdbarch_init): Update.
8301 * i386-tdep.c (i386_gdbarch_init): Update.
8302 * frv-tdep.c (frv_gdbarch_init): Update.
8303 * avr-tdep.c (avr_gdbarch_init): Update.
8304 * arm-tdep.c (arm_gdbarch_init): Update.
8305 * alpha-tdep.c (alpha_gdbarch_init): Update.
8306
8307 2003-03-01 Andrew Cagney <cagney@redhat.com>
8308
8309 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8310 option enum and switch. When no windows, set the interpreter to
8311 INTERP_CONSOLE.
8312
8313 2003-03-01 Andrew Cagney <cagney@redhat.com>
8314
8315 * main.c (captured_main): Replace magic option characters with an
8316 enum.
8317
8318 2003-03-01 Andrew Cagney <cagney@redhat.com>
8319
8320 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8321 INIT_EXTRA_FRAME_INFO.
8322 * gdbarch.h, gdbarch.c: Regenerate.
8323 * arm-tdep.c: Update comments.
8324 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8325 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8326 * frame.h, avr-tdep.c: Ditto.
8327 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8328 (create_new_frame, legacy_get_prev_frame): Ditto.
8329 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8330 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8332 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8333 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8334 * v850-tdep.c (v850_gdbarch_init): Ditto.
8335 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8336 * sh-tdep.c (sh_gdbarch_init): Ditto.
8337 * s390-tdep.c (s390_gdbarch_init): Ditto.
8338 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8339 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8340 * mips-tdep.c (mips_gdbarch_init): Ditto.
8341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8343 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8344 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8345 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8346 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8347 * frv-tdep.c (frv_gdbarch_init): Ditto.
8348 * cris-tdep.c (cris_gdbarch_init): Ditto.
8349 * avr-tdep.c (avr_gdbarch_init): Ditto.
8350 * arm-tdep.c (arm_gdbarch_init): Ditto.
8351 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8352 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8353
8354 2003-03-01 Andrew Cagney <cagney@redhat.com>
8355
8356 * gdbarch.sh (register_type): New function with predicate.
8357 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8358 * gdbarch.h, gdbarch.c: Re-generate.
8359 * arch-utils.c (generic_register_byte): Use generic_register_size.
8360 (generic_register_size): When available, use
8361 gdbarch_register_type.
8362 * regcache.c (init_regcache_descr): When available, initialize the
8363 register type array using gdbarch_register_type. If the
8364 architecture supplies gdbarch_register_type, do not use the legacy
8365 regcache layout.
8366 * d10v-tdep.c (d10v_register_type): Replace
8367 d10v_register_virtual_type.
8368 (d10v_gdbarch_init): Set register_type instead of
8369 register_virtual_type.
8370
8371 2003-03-01 Andrew Cagney <cagney@redhat.com>
8372
8373 * Makefile.in (ax-gdb.o): Update dependencies.
8374 * ax-gdb.c: Include "regcache.h".
8375 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8376 * findvar.c (value_of_register): Ditto.
8377 * infcmd.c (default_print_registers_info): Ditto.
8378
8379 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8380
8381 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8382 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8383
8384 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8385
8386 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8387 of STREQ.
8388
8389 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8390
8391 * Makefile.in (dwarf2loc.o): Update dependencies.
8392 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8393 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8394 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8395 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8396 (locexpr_tracepoint_var_ref): New function.
8397 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8398
8399 2003-02-28 Andrew Cagney <cagney@redhat.com>
8400
8401 * regcache.c (register_size): New function.
8402 * regcache.h (register_size): Declare
8403 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8404 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8405
8406 2003-02-28 David Carlton <carlton@math.stanford.edu>
8407
8408 * linespec.c (decode_compound): Extract code into find_method.
8409 (find_method): New.
8410
8411 2003-02-28 J. Brobecker <brobecker@gnat.com>
8412
8413 * Makefile.in: Add rules to build and link in observer.o.
8414
8415 2003-02-27 J. Brobecker <brobecker@gnat.com>
8416
8417 * observer.c: Minor comments edits.
8418
8419 2003-02-27 J. Brobecker <brobecker@gnat.com>
8420
8421 * observer.h, observer.c: New file.
8422
8423 2003-02-27 Andrew Cagney <cagney@redhat.com>
8424
8425 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8426
8427 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8428
8429 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8430 (M6812_OP_STS_EXT): Likewise.
8431 (m6811_prologue): Use the above to recognize prologue.
8432 (m6812_prologue): Likewise.
8433
8434 2003-02-27 David Carlton <carlton@math.stanford.edu>
8435
8436 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8437 SYMBOL_PRINT_NAME.
8438 (compare_psymbols): Ditto.
8439 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8440
8441 2003-02-27 Michael Snyder <msnyder@redhat.com>
8442
8443 * f-lang.c (build_fortran_types): New function.
8444 (_initialize_f_language): Gdbarch-register built-in fortran types.
8445 * doublest.c (extract_floating): Fix warning text.
8446
8447 2003-02-27 Andrew Cagney <cagney@redhat.com>
8448
8449 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8450 predicate. Replaces PUSH_DUMMY_FRAME.
8451 * gdbarch.h, gdbarch.c: Regnerate.
8452 * valops.c (hand_function_call): Update. Call
8453 generic_push_dummy_frame directly.
8454 * vax-tdep.c (vax_gdbarch_init): Update.
8455 * sparc-tdep.c (sparc_gdbarch_init): Update.
8456 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8457 * m68k-tdep.c (m68k_gdbarch_init): Update.
8458 * hppa-tdep.c (hppa_gdbarch_init): Update.
8459 * alpha-tdep.c (alpha_gdbarch_init): Update.
8460 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8461 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8462 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8464 push_dummy_frame to generic_push_dummy_frame.
8465 * v850-tdep.c (v850_gdbarch_init): Ditto.
8466 * sh-tdep.c (sh_gdbarch_init): Ditto.
8467 * s390-tdep.c (s390_gdbarch_init): Ditto.
8468 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8469 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8470 * mips-tdep.c (mips_gdbarch_init): Ditto.
8471 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8473 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8474 * i386-tdep.c (i386_gdbarch_init): Ditto.
8475 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8476 * frv-tdep.c (frv_gdbarch_init): Ditto.
8477 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8478 * cris-tdep.c (cris_gdbarch_init): Ditto.
8479 * avr-tdep.c (avr_gdbarch_init): Ditto.
8480 * arm-tdep.c (arm_gdbarch_init): Ditto.
8481
8482 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8483
8484 * mips-tdep.c (show_mips_abi): New function.
8485 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8486 command ``show mips abi''.
8487
8488 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8489
8490 From Elena Zannoni <ezannoni@redhat.com>
8491 * dbxread.c (process_one_symbol): Only record line 0 if one or
8492 more sline entries have been seen for the function.
8493
8494 2003-02-26 Michael Chastain <mec@shout.net>
8495
8496 * configure: Regenerate with autoconf 000227.
8497
8498 2003-02-26 Michael Chastain <mec@shout.net>
8499
8500 Close PR build/660.
8501 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8502 for old libc5/glibc.
8503 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8504
8505 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8506
8507 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8508 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8509
8510 2003-02-26 Michael Chastain <mec@shout.net>
8511
8512 * configure.in: New variable HAVE_UINTPTR_T.
8513 * configure, config.in: Regenerated.
8514
8515 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8516
8517 Fix PR build/1097.
8518 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8519
8520 2003-02-25 Andrew Cagney <cagney@redhat.com>
8521
8522 * frame.c (get_prev_frame): Add comment on check for
8523 inside_entry_func. Only check for inside_entry_file when not a
8524 dummy and not a sentinel. Check that the new frame is not inner
8525 to the old frame.
8526
8527 2003-02-25 Andrew Cagney <cagney@redhat.com>
8528
8529 * frame.c (frame_debug): New variable.
8530 (_initialize_frame): Add "set/show debug frame" command.
8531 (get_prev_frame): When frame_debug, print reason why unwind
8532 failed.
8533
8534 2003-02-25 Michael Chastain <mec@shout.net>
8535
8536 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8537 to avoid uintptr_t definition problems.
8538
8539 2003-02-25 David Carlton <carlton@math.stanford.edu>
8540
8541 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8542 (SYMBOL_LINKAGE_NAME): Ditto.
8543 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8544 SYMBOL_LINKAGE_NAME.
8545 (struct general_symbol_info): Expand comment.
8546 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8547 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8548 (SYMBOL_MATCHES_REGEXP): Ditto.
8549 * symtab.c (symbol_natural_name): New function.
8550 * objfiles.h: Replace all uses of SYMBOL_NAME by
8551 DEPRECATED_SYMBOL_NAME.
8552 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8553 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8554 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8555 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8556 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8557 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8558 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8559 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8560 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8561 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8562 * ada-exp.y: Ditto.
8563 * ada-exp.y: Update copyright.
8564 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8565 * cp-valprint.c: Ditto.
8566
8567 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8568
8569 * infptrace.c (detach): Do not flag error if ptrace detach fails
8570 and errno is set to ESRCH.
8571
8572 2003-02-24 Andrew Cagney <cagney@redhat.com>
8573
8574 * infptrace.c (udot_info): Change type of udot_off to long. Use
8575 paddr when printing udot_off's value.
8576
8577 2003-02-24 David Carlton <carlton@math.stanford.edu>
8578
8579 * symtab.c (make_symbol_overload_list): Only read in partial
8580 symtabs containing a matching partial symbol.
8581
8582 2003-02-24 David Carlton <carlton@math.stanford.edu>
8583
8584 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8585 do the comparison, not strcmp.
8586 * symfile.c (compare_psymbols): Ditto.
8587 * defs.h: Declare strcmp_iw_ordered.
8588 * utils.c (strcmp_iw_ordered): New function.
8589
8590 2003-02-24 Jim Blandy <jimb@redhat.com>
8591
8592 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8593 support, shared libs): Remove my name from here, to better reflect
8594 reality.
8595
8596 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8597
8598 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8599 (target_ops): Add to_have_continuable_watchpoint.
8600 * target.c (update_current_target): Add INHERIT line for
8601 to_have_continuable_watchpoint.
8602 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8603 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8604 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8605 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8606
8607 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8608
8609 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8610 maintainership.
8611
8612 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8613
8614 * solib.c (solib_open): Call target defined search function after
8615 failing with solib-search-path.
8616 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8617 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8618
8619 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8620
8621 * MAINTAINERS: Add myself to Write After section.
8622
8623 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8624
8625 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8626
8627 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8628
8629 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8630 (m68hc11_add_reggroups): New function.
8631 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8632 (m68hc11_gdbarch_init): Install the reggroups.
8633 (_initialize_m68hc11_tdep): Initialize them.
8634
8635 2003-02-21 James E Wilson <wilson@tuliptree.org>
8636
8637 * MAINTAINERS: Update my email address.
8638
8639 2003-02-21 David Carlton <carlton@math.stanford.edu>
8640
8641 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8642
8643 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8644
8645 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8646 * symtab.h: Add opaque declarations of struct axs_value and
8647 struct agent_expr.
8648 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8649 (struct location_funcs): New type.
8650 (struct symbol): Add "loc" to aux_value.
8651 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8652 * dwarf2read.c: Include "dwarf2expr.h".
8653 (dwarf2_symbol_mark_computed): New function.
8654 (read_func_scope): Use it.
8655 (var_decode_location): New function.
8656 (new_symbol): Use it.
8657 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8658
8659 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8660 (dwarf2expr_h, dwarf2loc_h): New variables.
8661 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8662 (dwarf2expr.o, dwarf2loc.o): New rules.
8663 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8664 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8665 LOC_COMPUTED_ARG.
8666 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8667 * m2-exp.y (yylex): Likewise.
8668 * printcmd.c (address_info, print_frame_args): Likewise.
8669 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8670 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8671 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8672 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8673 * symtab.c (lookup_block_symbol): Likewise.
8674
8675 2003-02-20 Adam Fedor <fedor@gnu.org>
8676
8677 * symtab.h: Remove objc_specific struct
8678 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8679 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8680 Have language_objc use cplus_specific struct.
8681
8682 2003-02-20 Tom Tromey <tromey@redhat.com>
8683
8684 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8685 TYPE_NAME, when printing a String value. PR java/1075.
8686
8687 2003-02-20 Adam Fedor <fedor@gnu.org>
8688
8689 * objc-lang.h (find_methods): Remove declaration.
8690 * objc-lang.c (find_methods): Make static.
8691
8692 2003-02-20 Christopher Faylor <cgf@redhat.com>
8693
8694 * win32-nat.c (get_image_name): Check return value from
8695 ReadProcessMemory.
8696 (child_xfer_memory): Ditto.
8697
8698 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8699
8700 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8701 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8702 '${exec_prefix}' (in addition to the expansion thereof) as
8703 relocatable.
8704 * configure: Rebuilt.
8705
8706 2003-02-20 David Carlton <carlton@math.stanford.edu>
8707
8708 * symtab.c (search_symbols): Revert the search_symbols part of my
8709 2002-12-23 patch. Add comment.
8710
8711 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8712
8713 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8714 * dbxread.c (elfstab_build_psymtabs): Don't call
8715 install_minimal_symbols.
8716 (stabsect_build_psymtabs): Likewise.
8717 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8718 earlier.
8719 * somread.c (som_symfile_read): Call install_minimal_symbols
8720 and do_cleanups earlier.
8721 * nlmread.c (nlm_symfile_read): Likewise.
8722 * mdebugread.c (elfmdebug_build_psymtabs): Call
8723 install_minimal_symbols and make appropriate cleanups.
8724
8725 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8726
8727 * solib.c (reload_shared_libraries): New function.
8728 (_initialize_solib): Add callbacks for ``set solib-search-path''
8729 and ``set solib-absolute-prefix''.
8730
8731 2003-02-20 David Carlton <carlton@math.stanford.edu>
8732
8733 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8734 expand comment.
8735 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8736 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8737 * ada-typeprint.c (ada_typedef_print): Ditto.
8738 * ax-gdb.c (gen_var_ref): Ditto.
8739 * breakpoint.c (print_one_breakpoint): Ditto.
8740 * buildsym.c (finish_block): Ditto.
8741 * c-valprint.c (c_val_print): Ditto.
8742 * expprint.c (print_subexp): Ditto.
8743 * findvar.c (locate_var_value): Ditto.
8744 * infcmd.c (jump_command): Ditto.
8745 * linespec.c (decode_line_2, decode_compound): Ditto.
8746 * maint.c (maintenance_translate_address): Ditto.
8747 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8748 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8749 Ditto.
8750 * p-valprint.c (pascal_val_print): Ditto.
8751 * stabsread.c (define_symbol): Ditto.
8752 * stack.c (print_frame, frame_info, print_block_frame_locals)
8753 (print_frame_arg_vars, return_command): Ditto.
8754 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8755 * symmisc.c (print_symbol): Ditto.
8756 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8757 (compare_search_syms, print_symbol_info, print_msymbol_info)
8758 (rbreak_command): Ditto.
8759 * tracepoint.c (tracepoints_info): Ditto.
8760 * typeprint.c (typedef_print): Ditto.
8761 * valops.c (value_of_variable, hand_function_call): Ditto.
8762 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8763 * ada-typeprint.c: Update Copyright.
8764 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8765 * tracepoint.c, cli/cli-cmds.c: Ditto.
8766
8767 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8768
8769 * frame.c (generic_unwind_get_saved_register): Make non-static.
8770 * frame.h (generic_unwind_get_saved_register): Declare.
8771 * mips-tdep.c (read_next_frame_reg): Fetch register from
8772 current regcache when frame is NULL.
8773 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8774 that must be NULL.
8775 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8776 instead of frame_register_unwind().
8777
8778 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8779
8780 * remote-sim.c (gdbsim_insert_breakpoint)
8781 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8782 code.
8783
8784 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8785
8786 * remote.c (_initialize_remote): Add commands "set/show remote
8787 hardware-watchpoint-limit" and "set/show remote
8788 hardware-breakpoint-limit".
8789 (remote_hw_watchpoint_limit): Initialize to -1.
8790 (remote_hw_breakpoint_limit): Ditto.
8791 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8792
8793 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8794
8795 * coff-pe-read.c: New file - support reading of minimal symbols from a
8796 portable executable using the export table.
8797 * coff-pe-read.h: New file.
8798 * coffread.c: Include coff-pe-read.h.
8799 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8800 debugging symbols found.
8801 * Makefile.in (SFILES): Add coff-pe-read.o.
8802 (coff_pe_read_h): Define.
8803 (COMMON_OBS): Add coff-pe-read.o.
8804 (coffread.o): Add coff_pe_read_h dependency.
8805 (coff-pe-read.o): New target.
8806
8807 2003-02-19 David Carlton <carlton@math.stanford.edu>
8808
8809 * Makefile.in (SFILES): Add block.c.
8810 (block_h): New.
8811 (COMMON_OBS): Add block.o.
8812 (block.o): New.
8813 (x86-64-tdep.o): Add $(block_h).
8814 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8815 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8816 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8817 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8818 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8819 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8820 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8821 * value.h: Add opaque declaration for struct block.
8822 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8823 * ada-lang.h: Ditto.
8824 * x86-64-tdep.c: #include "block.h"
8825 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8826 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8827 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8828 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8829 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8830 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8831 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8832 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8833 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8834 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8835 * symtab.c (block_function): Ditto.
8836 (contained_in): Ditto.
8837 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8838 block.h. Add opaque declaration for struct block.
8839 * symtab.h: Move block_function and contained_in declarations to
8840 block.h. Add opaque declarations for struct block, struct
8841 blockvector.
8842 (struct block): Move to block.h.
8843 (struct blockvector): Ditto.
8844 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8845 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8846 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8847 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8848 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8849 Ditto.
8850 * block.c: New file.
8851 * block.h: New file.
8852
8853 2003-02-19 Theodore A. Roth <troth@openavr.org>
8854
8855 * avr-tdep.c (avr_extract_return_value): Remove function.
8856 (avr_store_return_value): Remove function.
8857 (avr_extract_struct_value_address): Remove function.
8858 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8859
8860 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8861
8862 * rs6000-tdep.c: Include "gdb_assert.h".
8863 (registers_e500): Add "acc" and "spefscr".
8864 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8865 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8866 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8867 really is "r0".
8868 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8869
8870 2003-02-18 Keith Seitz <keiths@redhat.com>
8871
8872 * Makefile.in: Add gdbtk-interps.c.
8873
8874 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8875
8876 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8877 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8878
8879 2003-02-18 Andrew Cagney <cagney@redhat.com>
8880
8881 * symtab.h (struct objfile): Add opaque declaration.
8882
8883 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8884
8885 From Jim Ingham <jingham@apple.com>:
8886 * dbxread.c (process_one_symbol): Use last_function_start rather
8887 than function_start_offset to find the real beginning of the
8888 current function. The latter is just the text section offset on
8889 some systems, the former is always the real function start.
8890
8891 2003-02-17 Andrew Cagney <cagney@redhat.com>
8892
8893 * configure.in: Revert ${target} != ${host}.
8894
8895 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8896
8897 * configure.in (Makefile): Use the test ${target} != ${host},
8898 instead of the absence of the "nm.h" file, to determine of the
8899 configuration non-native.
8900 * configure: Regenerate.
8901
8902 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8903
8904 From Brian Ford <ford@vss.fsi.com>
8905
8906 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8907 conditionalize tui_active test.
8908 (lookup_cmd_1): Ditto.
8909
8910 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8911
8912 * configure.in: Add check for _etext.
8913 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8914 available.
8915 * config.in, configure: regenerated.
8916
8917 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8920
8921 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8922
8923 * main.c (tui_version): Delete variable.
8924 (captured_main): When --tui, set interpreter_p to "tui" instead of
8925 enabling tui_version.
8926 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8927 tui_version.
8928 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8929 * cli/cli-cmds.c (disassemble_command): Ditto.
8930 * defs.h (tui_version): Delete declaration.
8931 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8932 (tui-interp.o): Add rules.
8933 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8934
8935 2003-02-14 Christopher Faylor <cgf@redhat.com>
8936
8937 * win32-nat.c (register_loaded_dll): Correctly set address range for
8938 just-loaded dll.
8939
8940 2003-02-12 Jason Molenda (jmolenda@apple.com)
8941
8942 * symmisc.c (print_objfile_statistics): Include information about
8943 the number of psymtabs and symtabs in each object file.
8944
8945 2003-02-13 Keith R Seitz <keiths@redhat.com>
8946
8947 * main.h (struct captured_main_args): Add interpreter_p.
8948 * main.c (captured_main): Initialize interpreter_p from context.
8949 * gdb.c (main): Set interpreter_p argument.
8950 * Makefile.in (gdb.o): Add dependency for interps.h.
8951
8952 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8953
8954 * event-top.c (cli_command_loop): Delete declaration.
8955 (_initialize_event_loop): Delete function setting event_loop_hook.
8956 * event-top.h (cli_command_loop): Declare. Update copyright.
8957 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8958 * interps.c (current_interp_command_loop): When event_loop_p, call
8959 cli_command_loop.
8960
8961 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8962
8963 * interps.h (interp_command_loop_ftype): Change return type to
8964 void.
8965
8966 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8967
8968 * x86-64-tdep.c (x86_64_extract_return_value)
8969 (x86_64_store_return_value): Use regcache instead of regbuf.
8970 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8971 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8972
8973 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8974
8975 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8976 * aclocal.m4: Regenerate.
8977 * configure: Regenerate.
8978
8979 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8980 TCL_LD_SEARCH_FLAGS.
8981
8982 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8983
8984 * dwarf2cfi.c: Reindented.
8985
8986 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8987
8988 * interps.c (clear_interpreter_hooks): Convert function definition
8989 to ISO C.
8990
8991 2003-02-07 David Carlton <carlton@math.stanford.edu>
8992
8993 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8994
8995 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8996
8997 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8998 (struct type): ...to here.
8999 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9000 field.
9001 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9002 (replace_type): Set length on all type variants for a given type.
9003
9004 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9005
9006 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9007 <sys/stat.h>.
9008 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9009
9010 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9011
9012 * Makefile.in (symm-nat.o): Update dependencies.
9013 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9014 (lynx-nat.o, ia64-linux-nat.): Ditto.
9015 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9016 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9017 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9018
9019 * Makefile.in (inflow_h): Define.
9020 (procfs.o, inflow.o, procfs.o): Update dependencies.
9021 * inftarg.c (child_stop): Delete extern declaration of
9022 inferior_process_group. Include "inflow.h".
9023 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9024 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9025 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9026 (our_process_group, inferior_process_group): Extern declarations.
9027
9028 * procfs.c: Include "gdb_assert.h".
9029
9030 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9031 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9032 * jv-typeprint.c (java_type_print_base): Ditto.
9033 * typeprint.c (typedef_print): Eliminate STREQ.
9034 * cli/cli-script.c (define_command, define_command): Ditto.
9035 * main.c (captured_main): Ditto.
9036 * values.c (lookup_internalvar): Ditto.
9037 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9038 within `if' conditional.
9039 * linespec.c (decode_line_2): Ditto.
9040 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9041 (bfd_openw_with_cleanup): Ditto.
9042
9043 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9044
9045 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9046 legacy_extract_return_value and store_return_value to
9047 legacy_return_value.
9048
9049 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9050
9051 * win32-nat.c (get_relocated_section_addrs): New function. Find
9052 section load addresses for symbol handling in relocated DLLs.
9053 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9054
9055 2003-02-05 Fred Fish <fnf@intrinsity.com>
9056
9057 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9058 '=' and '!='.
9059 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9060 with '&' and '=='.
9061 (angel_RDI_info): Ditto.
9062 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9063 with '&' and '!='.
9064 (threads_continue_all_with_signals): Ditto.
9065
9066 2003-02-05 Jim Ingham <jingham@apple.com>
9067 Keith Seitz <keiths@redhat.com>
9068 Elena Zannoni <ezannoni@redhat.com>
9069 Andrew Cagney <ac131313@redhat.com>
9070
9071 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9072 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9073 (SUBDIR_MI_OBS): Add "mi-interp.o".
9074 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9075 (SFILES): Add "interps.c".
9076 (COMMON_OBS): Add "interps.o".
9077 (interps_h, mi_main_h): Define.
9078 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9079 (mi-main.o, main.o, event-top.o): Update dependencies.
9080 * cli/cli-interp.c: New file.
9081 * interps.h, interps.c: New files.
9082 * top.c: (gdb_init): Don't install the default interpreter, handed
9083 by captured_main.
9084 * main.c: Include "interps.h".
9085 (interpreter_p): Note that it should malloc'ed.
9086 (captured_command_loop): Call current_interp_command_loop.
9087 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9088 xfree and xstrdup when updating interpreter_p. Install the
9089 default interpreter. Add hack to stop mi1's copyright notice
9090 being encoded.
9091 * event-top.h (gdb_setup_readline): Declare.
9092 (gdb_disable_readline): Declare.
9093 * event-top.c: Include "interps.h".
9094 (display_gdb_prompt): Call current_interp_display_prompt_p.
9095 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9096 gdb_stdlog, and gdb_stdtarg.
9097 (_initialize_event_loop): Don't call gdb_setup_readline.
9098 * cli-out.c (cli_out_set_stream): New function.
9099 * cli-out.h (cli_out_set_stream): Declare.
9100
9101 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9102
9103 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9104 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9105 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9106 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9107 config/i386/i386v42mp.mt: Removed.
9108
9109 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9110
9111 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9112 GDB_OSABI_SOLARIS.
9113
9114 2003-02-05 Michael Chastain <mec@shout.net>
9115
9116 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9117 2.12.1 and earlier versions.
9118
9119 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9120
9121 Remove orphaned hosts, targets and files.
9122 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9123 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9124 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9125 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9126 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9127 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9128 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9129 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9130 * config/sparc/tm-sp64sim.h: Delete.
9131 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9132 hosts.
9133 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9134 mips*-dec-mach3* targets.
9135
9136 2003-02-04 Michael Chastain <mec@shout.net>
9137
9138 * NEWS: Fix typo: sepcifying -> specifying.
9139
9140 2003-02-04 Michael Chastain <mec@shout.net>
9141
9142 * dwarfread.c: Add documentation on the state of dwarf-1,
9143 looking towards obsoletion.
9144
9145 2003-02-03 Michael Chastain <mec@shout.net>
9146
9147 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9148 gdb/testsuite/gdb.c++/pr-1023.exp.
9149
9150 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9151
9152 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9153 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9154
9155 * utils.c (init_page_info): Delete reference to MPW in comments.
9156 * main.c (captured_main): Delete #ifdef MPW.
9157
9158 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9159
9160 * NEWS: Note that the m32r-*-elf* is obsolete.
9161 * monitor.c (monitor_expect): Obsolete reference to m32r.
9162 * configure.tgt: Mark m32r-*-elf* as obsolete.
9163 * MAINTAINERS: Mark m32k as obsolete.
9164 * m32r-rom.c: Obsolete file.
9165 * config/m32r/m32r.mt: Obsolete file.
9166 * config/m32r/tm-m32r.h: Obsolete file.
9167 * m32r-stub.c: Obsolete file.
9168 * m32r-tdep.c: Obsolete file.
9169
9170 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9171
9172 * NEWS: Mention that the z8k-zilog-none is obsolete.
9173 * MAINTAINERS: Mark z8k as obsolete.
9174 * configure.tgt: Obsolete the z8k-*-coff* target.
9175 * config/z8k/z8k.mt: Obsolete file.
9176 * config/z8k/tm-z8k.h: Obsolete file.
9177 * z8k-tdep.c: Obsolete file.
9178
9179 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9180
9181 * NEWS: Mention that the mn10200-elf is obsolete.
9182 * configure.tgt: Obsolete mn10200-*-* target.
9183 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9184 mention that the mn10200 is obsolete.
9185 * breakpoint.h: Ditto.
9186 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9187 * config/mn10200/mn10200.mt: Obsolete file.
9188 * config/mn10200/tm-mn10200.h: Obsolete file.
9189 * mn10200-tdep.c: Obsolete file.
9190
9191 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9192
9193 * MAINTAINERS: Mark h8500 as obsolete.
9194 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9195 * findvar.c (value_from_register): Ditto.
9196 * h8500-tdep.c: Mark file as obsolete.
9197 * config/h8500/h8500.mt: Ditto.
9198 * config/h8500/tm-h8500.h: Ditto.
9199 * NEWS: Mention that h8500 is obsolete.
9200
9201 2003-02-04 David Carlton <carlton@math.stanford.edu>
9202
9203 * objfiles.c (allocate_objfile): Always set name. Add comment at
9204 start of function.
9205 * jv-lang.c (get_dynamics_objfile): Add comment.
9206
9207 2003-02-04 David Carlton <carlton@math.stanford.edu>
9208
9209 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9210 * printcmd.c (build_address_symbolic): Replace uses of
9211 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9212 SYMBOL_NAME, and asm_demangle.
9213 Update copyright.
9214
9215 2003-02-04 David Carlton <carlton@math.stanford.edu>
9216
9217 * linespec.c (decode_compound): Extract code into
9218 lookup_prefix_sym.
9219 (lookup_prefix_sym): New function.
9220
9221 2003-02-04 David Carlton <carlton@math.stanford.edu>
9222
9223 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9224 FLOAT_COERCION_BADNESS.
9225 * gdbtypes.c (rank_one_type): Replace all uses of
9226 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9227
9228 2003-02-04 Jim Blandy <jimb@redhat.com>
9229
9230 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9231 section, let dwarf_macinfo_section point to it, not
9232 dwarf_loc_section.
9233
9234 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9235
9236 Pointed out by Anton Blanchard <anton@samba.org>.
9237 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9238 (ppc_linux_at_sigtramp_return_path): Use it.
9239
9240 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9241
9242 * defs.h (streq): Add prototype.
9243 * utils.c (streq): New function.
9244
9245 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9246 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9247 * mdebugread.c (new_symbol): Likewise.
9248 * stabsread.c (define_symbol): Likewise.
9249 * coffread.c (process_coff_symbol): Likewise.
9250 * dwarfread.c (new_symbol): Likewise.
9251
9252 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9253 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9254 here.
9255 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9256 SYMBOL_INIT_DEMANGLED_NAME.
9257 * objfiles.c: Include "hashtab.h".
9258 (allocate_objfile): Call htab_set_functions_ex for the
9259 demangled_names_hash.
9260 (free_objfile): Call htab_delete for the demangled_names_hash.
9261 * objfiles.h (struct htab): Add declaration.
9262 (struct objfile): Add demangled_names_hash.
9263 * symfile.c: Include "hashtab.h".
9264 (reread_symbols): Call htab_delete for the demangled_names_hash.
9265 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9266 SYMBOL_NAME in the bcache.
9267 * symtab.c: Include "hashtab.h". Update comments.
9268 (create_demangled_names_hash, symbol_set_names): New functions.
9269 (symbol_find_demangled_name): New function, broken out from
9270 symbol_init_demangled_names.
9271 (symbol_init_demangled_names): Use it.
9272 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9273 (SYMBOL_SET_NAMES): New macro.
9274 (symbol_set_names): Add prototype.
9275
9276 2003-02-03 Jim Blandy <jimb@redhat.com>
9277
9278 Use a single, consistent representation for an empty minimal
9279 symbol table in an objfile.
9280 * objfiles.c (terminate_minimal_symbol_table): New function.
9281 (allocate_objfile): Call it.
9282 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9283 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9284 non-NULL.
9285 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9286 objfile has minimal symbols, compare minimal_symbol_count to zero,
9287 instead of comparing msymbols with NULL.
9288 * objfiles.c (have_minimal_symbols): Same.
9289 * solib-sunos.c (solib_add_common_symbols): Call
9290 terminate_minimal_symbol_table.
9291 * symfile.c (reread_symbols): Same.
9292
9293 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9294
9295 * s390-tdep.c (s390_address_class_type_flags)
9296 (s390_address_class_type_flags_to_name)
9297 (s390_address_class_name_to_type_flags): New functions.
9298 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9299 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9300
9301 2003-02-03 Michael Snyder <msnyder@redhat.com>
9302
9303 * arm-tdep.c: Fix spell-o in comment.
9304
9305 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9306
9307 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9308 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9309 error messages to contain BFD filename.
9310
9311 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9312
9313 Fix PR gdb/742 gdb/743 gdb/877
9314 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9315 (do_mixed_source_and_assembly): Use
9316 make_cleanup_ui_out_tuple_begin_end and
9317 make_cleanup_ui_out_tuple_begin_end.
9318 (do_mixed_source_and_assembly): Ditto.
9319 * thread.c (do_captured_list_thread_ids): Ditto.
9320 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9321 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9322 ui_out_tuple_end): Delete prototypes.
9323 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9324 ui_out_list_end, ui_out_tuple_end): Delete.
9325
9326 From Kevin Buettner <kevinb@redhat.com>:
9327 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9328 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9329 (do_cleanup_table_end): New functions.
9330 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9331 Use cleanups to invoke_ui_out_tuple_end().
9332 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9333 * cli/cli-setshow.c (cmd_show_list): Use
9334 make_cleanup_ui_out_tuple_begin_end.
9335
9336 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9337
9338 * frame.c (frame_unwind_register): New function.
9339 (frame_unwind_unsigned_register): Use.
9340 (frame_unwind_signed_register): Use.
9341 (frame_read_register): New function.
9342 * frame.h (frame_unwind_register): Declare.
9343 (frame_read_register): Declare.
9344
9345 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9346 and frame_unwind_register instead of read_memory, write_register
9347 and deprecated_write_register_bytes.
9348
9349 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9350
9351 * frame.h: Note that namelen can be negative.
9352 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9353 NAME's length.
9354
9355 * NEWS: Mention that the d10v's `regs' command is deprecated.
9356 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9357 (d10v_print_registers_info): New function.
9358 (show_regs): Call d10v_print_registers_info.
9359 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9360
9361 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9362
9363 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9364 lost in the previous patch.
9365
9366 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9367
9368 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9369 * stack.c (print_frame_info_base): Output complete FRAME tuple
9370 for synthesized frames.
9371
9372 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9373
9374 * mips-nat.c (zerobuf): Delete.
9375 (fetch_inferior_registers): Alloc local zerobuf.
9376 (fetch_core_registers): Alloc local zerobuf.
9377 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9378 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9379 * thread-db.c (thread_db_store_registers): Ditto.
9380 * sh-tdep.c (sh_do_register): Ditto.
9381 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9382 * remote-sim.c (gdbsim_store_register): Ditto.
9383 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9384 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9385 * monitor.c (monitor_supply_register): Ditto.
9386 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9387 * mips-nat.c (fetch_inferior_registers): Ditto.
9388 * m68klinux-nat.c (fetch_register): Ditto.
9389 * lynx-nat.c (fetch_inferior_registers): Ditto.
9390 (fetch_inferior_registers): Ditto.
9391 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9392 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9393 (hpux_thread_store_registers): Ditto.
9394 * hppah-nat.c (fetch_register): Ditto.
9395 * hppab-nat.c (fetch_register): Ditto.
9396 * hppa-tdep.c (pa_register_look_aside): Ditto.
9397 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9398 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9399
9400 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9401
9402 * gdbarch.sh: Explictly specify all method levels. When a
9403 variable with an empty level, provide a non-multi-arch default.
9404 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9405 * gdbarch.h: Re-generate.
9406 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9407 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9408
9409 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9410
9411 * defs.h (host_pointer_to_address): Delete declaration.
9412 (address_to_host_pointer): Delete declaration.
9413 * utils.c (host_pointer_to_address): Delete function.
9414 (address_to_host_pointer): Delete function.
9415 * procfs.c (procfs_address_to_host_pointer): New function.
9416 * procfs.c (proc_set_watchpoint): Use.
9417 (procfs_can_use_hw_breakpoint): Update comments.
9418 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9419 (som_solib_add): Use.
9420 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9421 * hppa-tdep.c (unwind_command): Use.
9422
9423 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9424
9425 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9426 strlen d_name.
9427
9428 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9429 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9430 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9431 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9432 (define_symbol): Update.
9433 * symfile.c (generic_load): Remove references to nindy.
9434 * symtab.c: Remove references to nindy.
9435
9436 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9437
9438 * infcmd.c (print_float_info): Delete code conditional on
9439 FLOAT_INFO.
9440 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9441 * config/m68k/nm-apollo68b.h: Ditto.
9442 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9443 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9444 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9445
9446 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9447
9448 * config/i386/tm-i386os9k.h: Removed.
9449
9450 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9451 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9452 they're identical to i[3456]86-*-sysv* now.
9453 * config/i386/i386v32.mh: Removed.
9454 * config/i386/xm-i386v32.h: Removed.
9455 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9456
9457 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9458
9459 * config/i386/i386dgux.mh: Removed.
9460 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9461
9462 * configure.in: Fix typo.
9463 * configure: Regenerated.
9464
9465 2003-01-31 David Carlton <carlton@math.stanford.edu>
9466
9467 * dwarf2read.c (dwarf2_locate_sections): Set
9468 dwarf_ranges_section.
9469
9470 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9471
9472 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9473 * utils.c: Update comments documenting legitimate uses of PTR.
9474
9475 * utils.c: Re-indent.
9476
9477 * config/djgpp/fnchange.lst: Delete nindy files.
9478 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9479 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9480 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9481 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9482 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9483 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9484 * Makefile.in (init.c): Remove nindy references.
9485 (saber_gdb): Delete rule.
9486 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9487 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9488 and a68v-nat.c.
9489 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9490 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9491 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9492 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9493 nindy-share/stop.h.
9494 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9495 * saber.suppress: Delete file.
9496
9497 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9498
9499 * dbxread.c (stabs_data): New static variable.
9500 (fill_symbuf): Support an in-memory buffer for stabs data.
9501 (stabs_seek): New function.
9502 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9503 (read_ofile_symtab): Use stabs_seek.
9504 (elfstab_build_psymtabs): Take an asection* instead of
9505 an offset and size. Relocate the stabs data if necessary.
9506 Save the section* for dbx_psymtab_to_symtab.
9507 * dwarf2read.c: Add section variables for each debug section.
9508 (dwarf2_locate_sections): Fill them in.
9509 (dwarf2_read_section): Take an asection* argument.
9510 Relocate the section contents if necessary.
9511 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9512 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9513 it to dwarf2_read_section.
9514 (dwarf2_build_frame_info): Update callers.
9515 * elfread.c (elf_symfile_read): Update call to
9516 elfstab_build_psymtabs.
9517 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9518 (DBX_STAB_SECTION): New macro.
9519 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9520 * symfile.c (symfile_dummy_outputs): New function.
9521 (symfile_relocate_debug_section): New function.
9522 * symfile.h (symfile_relocate_debug_section): Add prototype.
9523
9524 2003-01-31 Richard Henderson <rth@redhat.com>
9525
9526 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9527 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9528 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9529 * alpha-tdep.c (alpha_register_name): Add "unique".
9530 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9531 (ALPHA_UNIQUE_REGNUM): New.
9532 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9533
9534 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9535
9536 * README: Remove reference to Ericsson 1800 monitor.
9537 * Makefile.in (remote-es.o): Delete rule.
9538 (ALLDEPFILES): Delete remote-es.c.
9539 * remote-es.c: Delete file.
9540 * config/m68k/es1800.mt: Delete file.
9541 * config/djgpp/fnchange.lst: Update.
9542 * configure.tgt: Delete m68*-ericsson-* target.
9543
9544 2003-01-31 Adam Fedor <fedor@gnu.org>
9545
9546 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9547 Remove duplicate/shadowing variable of same name.
9548
9549 2003-01-30 Jim Blandy <jimb@redhat.com>
9550
9551 * symfile.c (find_separate_debug_file): Assert that the objfile's
9552 directory name we compute ends with a slash, and then assume that
9553 that's so everywhere we use it.
9554
9555 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * valops.c (value_assign): Flush frame cache after stores to memory
9558 also.
9559
9560 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9561
9562 * Makefile.in (mon960-rom.o): Delete rule.
9563 * mon960-rom.c: Delete file.
9564
9565 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9566
9567 * d10v-tdep.c: Include "frame-unwind.h".
9568 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9569 list.
9570 (next_addr, uses_frame): Delete.
9571 (struct d10v_unwind_cache): Define.
9572 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9573 Use info instead of next_addr and uses_frame globals.
9574 (d10v_frame_init_saved_regs): Delete function.
9575 (d10v_init_extra_frame_info): Delete function.
9576 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9577 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9578 init_frame_pc or frame_saved_pc.
9579 (d10v_pop_frame): Delete function.
9580 (do_d10v_pop_frame): Delete function.
9581 (d10v_frame_chain): Delete function.
9582 (d10v_frame_chain_valid): Delete function.
9583 (d10v_frame_pc_unwind): New function.
9584 (d10v_frame_id_unwind): New function.
9585 (saved_regs_unwinder): New function.
9586 (d10v_frame_register_unwind): New function.
9587 (d10v_frame_pop): New function.
9588 (d10v_frame_unwind): New variable.
9589 (d10v_frame_p): New function.
9590 (d10v_frame_saved_pc): Delete function.
9591 * Makefile.in (d10v-tdep.o): Update dependencies.
9592
9593 2003-01-30 J. Brobecker <brobecker@gnat.com>
9594
9595 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9596 causing some regressions due to a change in the default value
9597 for this macro.
9598
9599 2003-01-29 Richard Henderson <rth@redhat.com>
9600 Elena Zannoni <ezannoni@redhat.com>
9601 Daniel Jacobowitz <drow@mvista.com>
9602
9603 Fix PR gdb/961.
9604 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9605 variables.
9606 (RANGES_SECTION): New.
9607 (dwarf_ranges_buffer): New variable.
9608 (struct comp_unit_head): Add member "die".
9609 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9610 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9611 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9612 (dwarf2_locate_sections): Likewise.
9613 (dwarf2_build_psymtabs): Read .debug_ranges.
9614 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9615 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9616 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9617 Look for DW_AT_ranges and return the bounding box.
9618
9619 2003-01-29 Brian Ford <ford@vss.fsi.com>
9620
9621 * win32-nat.c (cygwin_pid): Removed as unused.
9622 (child_attach): Try fall back to Cygwin pid.
9623
9624 2003-01-29 Jim Blandy <jimb@redhat.com>
9625
9626 * objfiles.h (struct objfile): Doc fix.
9627
9628 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9629
9630 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9631 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9632 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9633 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9634 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9635 (FRAME_SAVED_PC): Change to a function with predicate.
9636 * gdbarch.h, gdbarch.c: Re-generate.
9637
9638 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9639
9640 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9641
9642 * complaints.c (complain): Delete function.
9643 * complaints.h (struct deprecated_complaint): Delete definition.
9644 (complain): Delete declaration.
9645
9646 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9647
9648 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9649 dummy frames.
9650
9651 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9652
9653 * sentinel-frame.h, sentinel-frame.c: New files.
9654 * Makefile.in (frame.o): Update dependencies.
9655 (SFILES): Add sentinel-frame.c.
9656 (sentinel_frame_h): Define.
9657 (COMMON_OBS): Add sentinel-frame.o.
9658 (sentinel-frame.o): Specify dependencies.
9659 * frame.c: Include "sentinel-frame.h".
9660 (frame_register_unwind): Rewrite assuming that there is always a a
9661 ->next frame.
9662 (frame_register, generic_unwind_get_saved_register): Ditto.
9663 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9664 (create_sentinel_frame, unwind_to_current_frame): New functions.
9665 (get_current_frame): Rewrite using create_sentinel_frame and
9666 unwind_to_current_frame. When possible, always create a frame.
9667 (create_new_frame): Set next to the sentinel frame.
9668 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9669 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9670 ID cache when necessary.
9671 (frame_saved_regs_id_unwind): Use frame_relative_level.
9672 (deprecated_generic_get_saved_register): Use frame_relative_level,
9673 get_frame_saved_regs, get_frame_pc, get_frame_base and
9674 get_next_frame.
9675 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9676 frame_register.
9677
9678 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9679
9680 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9681
9682 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9683
9684 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9685 (maintenance_set_profile_cmd): Use error () instead of warning ().
9686
9687 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * configure.in: Check that -pg works if using --enable-profiling.
9690 Check for monstartup and _mcleanup regardless of --enable-profiling.
9691 * maint.c: Check for monstartup and _mcleanup before using them.
9692 * config.in: Regenerated.
9693 * configure: Regenerated.
9694
9695 2003-01-24 Nick Clifton <nickc@redhat.com>
9696
9697 * Add sh2e support:
9698
9699 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9700
9701 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9702 (sh2e_show_regs): New.
9703 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9704 * config/sh/tm-sh.h: Added sh2e to comments.
9705
9706 2003-01-23 Jim Blandy <jimb@redhat.com>
9707
9708 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9709 symbols found)" message here; we haven't checked for a separate
9710 debug info file yet, so we don't know yet.
9711 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9712 we've looked everywhere. Also, there's no need to print a special
9713 message when we're loading the separate debug info file: the one
9714 symbol_file_add prints is fine.
9715
9716 2003-01-23 Alexander Larsson <alexl@redhat.com>
9717 Jim Blandy <jimb@redhat.com>
9718
9719 Add support for executables whose debug info has been separated
9720 out into a separate file, leaving only a link behind.
9721 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9722 and separate_debug_objfile_backlink.
9723 (put_objfile_before): New declaration.
9724 * symfile.c: #include "filenames.h".
9725 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9726 debug info in a separate file, read that, too. Save the addrs
9727 argument, so we can use it again to read the separated debug info;
9728 syms_from_objfile modifies the table we pass it.
9729 (reread_symbols): After re-reading an objfile, call
9730 reread_separate_symbols to refresh its separate debug info
9731 objfile, if it has one.
9732 (reread_separate_symbols, find_separate_debug_file,
9733 get_debug_link_info, separate_debug_file_exists): New functions.
9734 (debug_file_directory): New global var.
9735 (_initialize_symfile): Initialize debug_file_directory, and
9736 provide the new `set debug-file-directory' command to let the user
9737 change it.
9738 * objfiles.c (free_objfile): If this objfile has its debug info in
9739 a separate objfile, free that one too. If this is itself a
9740 separate debug info objfile, clear our parent's backlink.
9741 (put_objfile_before): New function.
9742 * utils.c (gnu_debuglink_crc32): New function.
9743 * defs.h (gnu_debuglink_crc32): New declaration.
9744 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9745 * configure.in: Handle --with-separate-debug-dir config option.
9746 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9747 * acconfig.h (DEBUGDIR): New macro.
9748 * configure, aclocal.m4, config.in: Regenerated.
9749
9750 2003-01-22 Jim Blandy <jimb@redhat.com>
9751
9752 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9753 like the old symbol_file_add, but taking new arguments: you can
9754 now pass in either a `struct section_addr_info' list to say where
9755 each section is loaded, or a `struct section_offsets' table. Pass
9756 these new arguments through to syms_from_objfile as appropriate.
9757 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9758 with the appropriate quiescent values for the new arguments.
9759
9760 * symfile.c: #include "gdb_assert.h".
9761 (syms_from_objfile): Add the ability to pass in a section offset
9762 table directly, as an alternative to the section_addr_info table.
9763 Document arguments better.
9764 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9765 * symfile.h (syms_from_objfile): Update declaration.
9766 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9767 syms_from_objfile.
9768 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9769
9770 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9771
9772 Original patch by Tom Tromey <tromey@cygnus.com> and
9773 Jason Molenda <jmolenda@apple.com>.
9774 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9775 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9776 * NEWS: Mention profiling.
9777 * configure.in (--enable-gdbtk): Fix typo.
9778 (--enable-profiling): New. Set PROFILE_CFLAGS.
9779 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9780 Fill in function.
9781 (profiling_state): New variable.
9782 (mcleanup_wrapper): New function.
9783 (_initialize_maint): Remove NOTYET, fix call to
9784 add_setshow_boolean_cmd for "maint set profile".
9785 * configure: Regenerated.
9786
9787 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9788
9789 * Makefile.in (install-gdbtk): Install PNG images too.
9790
9791 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9792
9793 * exec.c (text_start): Delete global variable.
9794 (exec_file_attach): Make text_start local to the function.
9795 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9796 * valops.c (hand_function_call): Delete code that handles
9797 BEFORE_TEXT_END and AFTER_TEXT_END.
9798 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9799 of CALL_DUMMY_LOCATION.
9800 * gdbarch.c: Regenerate.
9801 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9802 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9803 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9804 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9805 (text_end): Delete extern declaration.
9806
9807 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9808
9809 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9810 * blockframe.c (backtrace_below_main): Move to "frame.c".
9811 (frame_chain_valid): Delete check for backtrace_below_main.
9812 (_initialize_blockframe): Delete initialization, move ``set
9813 backtrace-below-main'' command to "frame.c".
9814 (do_flush_frames_sfunc): Delete function.
9815 * frame.c: Include "command.h" and "gdbcmd.h".
9816 (frame_type_from_pc): New function.
9817 (create_new_frame): Use frame_type_from_pc.
9818 (legacy_get_prev_frame): New function.
9819 (get_prev_frame): Rewrite. When an old style frame, call
9820 legacy_get_prev_frame. Otherwize, unwind the PC first.
9821 (_initialize_frame): Add ``set backtrace-below-main'' command.
9822 * Makefile.in (frame.o): Update dependencies.
9823
9824 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9825
9826 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9827 DEPRECATED_REGISTERS_INFO.
9828
9829 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9830
9831 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9832 Maintainers'. Update `Various Maintainers'.
9833
9834 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9835
9836 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9837 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9838 Suppress actual parameters when `-'.
9839 * gdbarch.h, gdbarch.c: Regenerate.
9840
9841 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9842
9843 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9844 code handling dummy frames.
9845
9846 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9847
9848 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9849 (struct frame_unwind): Add field pop.
9850 * frame.h (frame_pop): Declare.
9851 * frame.c (frame_saved_regs_pop): New function.
9852 (trad_frame_unwinder): Add frame_saved_regs_pop.
9853 (frame_pop): New function.
9854 * dummy-frame.c (dummy_frame_pop): New function.
9855 (discard_innermost_dummy): New function.
9856 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9857 (dummy_frame_unwind): Add dummy_frame_pop.
9858 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9859 * valops.c (hand_function_call): Ditto.
9860 * stack.c (return_command): Ditto.
9861
9862 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9863
9864 * cris-tdep.c: Fix function declaration indentation.
9865 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9866 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9867 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9868 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9869 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9870 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9871
9872 2003-01-18 Michael Chastain <mec@shout.net>
9873
9874 * README (Unpacking and Installation -- quick overview):
9875 Warn against ".../gdb-5.3/gdb/configure".
9876
9877 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9878
9879 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9880 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9881 (struct frame_unwind): Declare opaque.
9882 (dummy_frame_p): Declare function.
9883 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9884 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9885 * dummy-frame.c: Include "frame-unwind.h".
9886 (dummy_frame_p): New function.
9887 (dummy_frame_unwind): New variable.
9888 * frame.c: Include "frame-unwind.h".
9889 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9890 to use the new unwind field.
9891 (set_unwind_by_pc): Delete function.
9892 (create_new_frame, get_prev_frame): Set unwind field using
9893 frame_unwind_find_by_pc.
9894 (trad_frame_unwind, trad_frame_unwinder): New variables.
9895 * frame.h (trad_frame_unwind): Declare variable.
9896 (frame_id_unwind_ftype): Delete declaration.
9897 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9898 (struct frame_unwind): Declare opaque.
9899 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9900 register_unwind with a single unwind pointer.
9901 * frame-unwind.h, frame-unwind.c: New files.
9902 * Makefile.in (SFILES): Add frame-unwind.c.
9903 (frame_unwind_h): Define.
9904 (COMMON_OBS): Add frame-unwind.o.
9905 (frame-unwind.o): Specify dependencies.
9906 (frame.o, dummy-frame.o): Update dependencies.
9907
9908 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9909
9910 * ada-valprint.c: Eliminate PTR.
9911 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9912 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9913 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9914 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9915 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9916 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9917 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9918
9919 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9920
9921 * main.c (captured_main): Don't use PTR.
9922 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9923 * gdbtypes.c (lookup_primitive_typename): Ditto.
9924 (lookup_struct_elt_type): Ditto.
9925 * f-valprint.c (info_common_command): Ditto.
9926 (list_all_visible_commons): Ditto.
9927 * jv-typeprint.c (java_type_print_base): Ditto.
9928
9929 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9930 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9931 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9932 i386-interix-nat.c and i386-interix-tdep.c. Rename
9933 m68klinux-nat.c and m68klinux-tdep.c. Rename
9934 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9935 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9936 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9937 * main.c (captured_main): Use xfree, not free.
9938
9939 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9940
9941 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9942 ID back using a parameter.
9943 * frame.c (frame_id_unwind): Update call.
9944 (frame_saved_regs_id_unwind): Update.
9945 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9946 * dummy-frame.h (struct frame_id): Add opaque declaration.
9947 (dummy_frame_id_unwind): Update declaration.
9948
9949 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9950
9951 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9952
9953 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9954
9955 * MAINTAINERS (Stephen P. Smith): Updated email address.
9956
9957 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9958
9959 Fix PR gdb/898
9960 * breakpoint.c (until_break_command): Add new argument. Use it to
9961 decide whether to stop only at the current frame or not.
9962 * breakpoint.h (until_break_command): Update prototype.
9963 * infcmd.c (until_command): Add new argument to until_break_command
9964 call.
9965 (advance_command): New function.
9966 (_initialize_infcmd): Update help string for 'until' command.
9967 Add new 'advance' command.
9968
9969 2003-01-14 David Carlton <carlton@math.stanford.edu>
9970
9971 * linespec.c (decode_line_1): Normalize comments.
9972 (set_flags): Ditto.
9973 (locate_first_half): Ditto.
9974 (decode_compound): Ditto.
9975 (symtab_from_filename): Ditto.
9976 (decode_all_digits): Ditto.
9977 (decode_dollar): Ditto.
9978 (find_methods): Ditto.
9979 (find_toplevel_char): Ditto.
9980
9981 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9982
9983 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9984 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9985 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9986 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9987 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9988 * language.c, language.h, m32r-tdep.c: Update copyright.
9989 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9990 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9991 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9992 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9993 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9994 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9995
9996 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9997
9998 * stabsread.h (process_later, resolve_cfront_continuation):
9999 Obsolete.
10000 Update copyright years.
10001 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10002 Update copyright year.
10003 * dbxread.c(struct cont_elem): Obsolete.
10004 (process_later, process_now): Obsolete functions.
10005 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10006 Update copyright year.
10007 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10008 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10009 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10010 (parse_partial_symbols): Obsolete cfront support.
10011 * stabsread.c
10012 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10013 macros.
10014 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10015 read_cfront_baseclasses, read_cfront_member_functions,
10016 resolve_cfront_continuation,read_cfront_static_fields,
10017 copy_cfront_struct_fields): Obsolete functions.
10018 (define_symbol, read_one_struct_field): Obsolete cfront support.
10019 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10020 Update Copyright year.
10021
10022 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10023
10024 * stack.c (print_frame_info, print_stack_frame_base_stub,
10025 print_stack_frame_base, show_and_print_stack_frame_stub,
10026 show_and_print_stack_frame, print_only_stack_frame_stub,
10027 print_only_stack_frame): Delete functions.
10028 (print_stack_frame_stub): Call print_frame_info instead of
10029 print_frame_info_base.
10030 (print_frame_info_base): Rename to print_frame_info.
10031 (backtrace_command_1): Call print_frame_info, instead of
10032 print_frame_info_base.
10033 (current_frame_command): Call print_stack_frame, instead of
10034 print_only_stack_frame.
10035 (frame_command): Call print_stack_frame, instead of
10036 show_and_print_stack_frame.
10037 (up_command): Ditto.
10038 (down_command): Ditto.
10039 * frame.h (print_only_stack_frame): Delete prototype.
10040 * infrun.c (normal_stop): Call print_stack_frame, instead of
10041 show_and_print_stack_frame.
10042 * thread.c (info_threads_command): Call print_stack_frame, instead
10043 of print_only_stack_frame.
10044
10045 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10046
10047 * README (Graphical interface to GDB): Update URL. Point at
10048 gdb/links/.
10049
10050 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10051 version match.
10052
10053 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10056 lines.
10057
10058 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10059
10060 * thread-db.c (attach_thread): Prototype.
10061 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10062 thread information (ti), and valid flags (th_valid, ti_valid).
10063 (attach_thread): Move target_pid_to_str call to after the thread
10064 is added to GDB's list. Initialize the cache.
10065 (thread_get_info_callback, thread_db_map_id2thr)
10066 (thread_db_get_info): New functions.
10067 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10068 (thread_db_store_registers, thread_db_thread_alive)
10069 (thread_db_get_thread_local_address): Use them.
10070 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10071 of calling error() for threads in unknown state.
10072
10073 (clear_lwpid_callback): New function.
10074 (thread_db_resume): Use it to clear the cache.
10075
10076 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10077
10078 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10079 (resume_callback): Remove dead code.
10080
10081 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10082
10083 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10084 predicate.
10085 * gdbarch.h, gdbarch.c: Regenerate.
10086 * stack.c (frame_info): Only initialize the saved registers when
10087 FRAME_INIT_SAVED_REGS_P.
10088 * frame.c (frame_saved_regs_register_unwind): Assert
10089 FRAME_INIT_SAVED_REGS_P.
10090 (deprecated_generic_get_saved_register): Ditto.
10091
10092 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10093
10094 * source.c (openp): Squelch warning about "filename".
10095
10096 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10097
10098 * source.c (openp): If the file does not exist don't necessarily
10099 search the path.
10100
10101 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10102
10103 Fix PR gdb/872.
10104 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10105 (integer_types_same_name_p): New function.
10106 (rank_one_type): Use it.
10107 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10108
10109 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10110
10111 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10112 variables.
10113 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10114 * configure.in: Add --with-sysroot.
10115 * configure: Regenerated.
10116 * main.c (gdb_sysroot): New variable.
10117 (captured_main): Initialize gdb_sysroot.
10118 * defs.h (gdb_sysroot): New extern declaration.
10119 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10120
10121 2003-01-12 Michael Chastain <mec@shout.net>
10122
10123 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10124
10125 2003-01-12 Michael Chastain <mec@shout.net>
10126
10127 * top.c (print_gdb_version): Bump copyright year to 2003.
10128
10129 2003-01-12 David Carlton <carlton@bactrian.org>
10130
10131 * linespec.c (symtab_from_filename): Rename variable 's' to
10132 'file_symtab'.
10133
10134 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10135
10136 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10137 dummy frame.
10138 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10139
10140 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10141
10142 * d10v-tdep.c: Include "gdb_assert.h".
10143 (d10v_store_return_value): Rewrite to match current interface.
10144 (d10v_extract_struct_value_address): Ditto.
10145 (d10v_extract_return_value): Ditto.
10146 (d10v_gdbarch_init): Set store_restore_value,
10147 extract_struct_value_address and extract_return_value.
10148
10149 2003-01-12 J. Brobecker <brobecker@gnat.com>
10150
10151 * hpread.c (set_namestring): New procedure replacing the
10152 SET_NAMESTRING macro.
10153 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10154 by calls to set_namestring.
10155
10156 2003-01-11 J. Brobecker <brobecker@gnat.com>
10157
10158 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10159 a compilation warning.
10160 (hpread_process_one_debug_symbol): Likewise.
10161
10162 2003-01-10 David Carlton <carlton@math.stanford.edu>
10163
10164 * linespec.c (decode_line_1): Rename variable 's' to
10165 'file_symtab'.
10166 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10167 (decode_dollar): Ditto.
10168 (decode_variable): Ditto.
10169 (symbol_found): Ditto.
10170
10171 2003-01-09 Michael Chastain <mec@shout.net>
10172
10173 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10174
10175 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10176
10177 * win32-nat.c (set_process_privilege): New function.
10178 (child_attach): Call set_process_privilege() to enable the
10179 SE_DEBUG_NAME user privilege if available in process token.
10180
10181 2003-01-10 J. Brobecker <brobecker@gnat.com>
10182
10183 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10184 compilation error in the previous revision.
10185
10186 2003-01-09 David Carlton <carlton@math.stanford.edu>
10187
10188 * linespec.c: Update copyright.
10189
10190 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10191
10192 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10193 than inferior_ptid.
10194 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10195
10196 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10197
10198 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10199 Update comments.
10200 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10201 (frame_saved_regs_zalloc): Update.
10202 (frame_saved_regs_register_unwind): Update.
10203 (create_new_frame): Update.
10204 (get_prev_frame): Update.
10205 (frame_extra_info_zalloc): Update.
10206 (deprecated_get_frame_saved_regs): Update.
10207 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10208 * cris-tdep.c: Update comment.
10209
10210 * somsolib.h: Fix function indentation.
10211 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10212 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10213 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10214 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10215 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10216
10217 * infrun.c (follow_fork): Use ISO C definition.
10218 * expprint.c (print_subexp): Use xfree instead of free.
10219 * charset.c: Include "gdb_string.h" instead of <string.h>.
10220 (register_iconv_charsets): Use ISO C definition.
10221 (host_charset, target_charset): Ditto.
10222 * Makefile.in (charset.o): Update dependencies.
10223 (mi-cmd-env.o): Update dependencies.
10224
10225 2003-01-08 Andrew Cagney <cagney@redhat.com>
10226
10227 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10228 get_frame_base.
10229
10230 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10231
10232 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10233 build directories. Save edited gdb output in Mbuild.log. If a
10234 build fails, remove any final GDB executable.
10235
10236 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10237
10238 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10239 replacing hex constants with function names and stripping leading
10240 file name directory prefixes.
10241
10242 2003-01-08 Andrew Cagney <cagney@redhat.com>
10243
10244 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10245 get_frame_base.
10246
10247 2003-01-08 David Carlton <carlton@math.stanford.edu>
10248
10249 * linespec.c (decode_line_1): Move code into decode_variable.
10250 (decode_variable): New function.
10251
10252 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10253
10254 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10255
10256 2003-01-08 Andrew Cagney <cagney@redhat.com>
10257
10258 * cris-tdep.c (cris_frame_init_saved_regs): Use
10259 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10260 saved_regs buffer.
10261 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10262 (sh64_nofp_frame_init_saved_regs): Ditto.
10263 (sh_fp_frame_init_saved_regs): Ditto.
10264 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10265 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10266 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10267 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10268
10269 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10270
10271 * minsyms.c (lookup_minimal_symbol): Update comment.
10272 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10273 (lookup_minimal_symbol_solib_trampoline): Likewise.
10274
10275 2003-01-08 Andrew Cagney <cagney@redhat.com>
10276
10277 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10278 frame_relative_level.
10279
10280 * alpha-tdep.c: Use get_frame_extra_info.
10281 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10282 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10283 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10284 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10285
10286 * alpha-tdep.c: Use get_next_frame.
10287 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10288 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10289 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10290 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10291 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10292 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10293 * xstormy16-tdep.c: Ditto.
10294
10295 2003-01-07 Andrew Cagney <cagney@redhat.com>
10296
10297 * alpha-tdep.c: Use get_frame_base.
10298 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10299 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10300 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10301 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10302 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10303 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10304 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10305 * config/sparc/tm-sparc.h: Ditto.
10306
10307 2003-01-07 Andrew Cagney <cagney@redhat.com>
10308
10309 * frame.c (deprecated_get_frame_context): New function.
10310 (deprecated_set_frame_context): New function.
10311 * frame.h (deprecated_get_frame_context): Declare.
10312 (deprecated_set_frame_context): Declare.
10313 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10314 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10315
10316 2003-01-07 Andrew Cagney <cagney@redhat.com>
10317
10318 * frame.c (deprecated_set_frame_next_hack): New function.
10319 (deprecated_set_frame_prev_hack): New function.
10320 * frame.h (deprecated_set_frame_next_hack): Declare.
10321 (deprecated_set_frame_prev_hack): Declare.
10322 * mcore-tdep.c (analyze_dummy_frame): Use
10323 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10324 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10325
10326 2003-01-07 David Carlton <carlton@math.stanford.edu>
10327
10328 * linespec.c (decode_line_1): Move code into decode_dollar.
10329 (decode_dollar): New function.
10330
10331 2003-01-07 Andrew Cagney <cagney@redhat.com>
10332
10333 * arm-tdep.c (arm_init_extra_frame_info): Use
10334 deprecated_update_frame_base_hack.
10335 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10336 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10337 (fix_frame_pointer): Ditto.
10338 (mn10300_analyze_prologue): Ditto.
10339
10340 2003-01-07 Andrew Cagney <cagney@redhat.com>
10341
10342 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10343 extra_info using frame_extra_info_zalloc.
10344 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10345 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10346 (sh64_init_extra_frame_info): Ditto.
10347 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10348 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10349 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10350 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10351 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10352 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10353 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10354 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10355 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10356 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10357 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10358 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10359
10360 * mn10300-tdep.c (analyze_dummy_frame): Use
10361 deprecated_set_frame_extra_info_hack.
10362 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10363
10364 2003-01-07 J. Brobecker <brobecker@gnat.com>
10365
10366 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10367 class is not scText. These do not define "real" procedures.
10368 (parse_partial_symbols): Likewise.
10369
10370 2003-01-06 Michael Snyder <msnyder@redhat.com>
10371
10372 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10373
10374 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10375
10376 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10377 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10378 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10379 deprecated_frame_xmalloc_with_cleanup.
10380 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10381 deprecated_frame_xmalloc.
10382 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10383 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10384
10385 2003-01-06 Andrew Cagney <cagney@redhat.com>
10386
10387 * x86-64-linux-tdep.c: Include "osabi.h".
10388 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10389
10390 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10391
10392 2003-01-06 Andrew Cagney <cagney@redhat.com>
10393
10394 * MAINTAINERS (Target Instruction Set Architectures): Update
10395 arm-elf. Can be built with -Werror, has been multiarched.
10396
10397 * value.h (unpack_long): Make buffer parameter constant.
10398 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10399 * scm-lang.h (scm_parse): Ditto.
10400 * defs.h (extract_typed_address, extract_address): Ditto.
10401 (extract_long_unsigned_integer): Ditto.
10402 * inferior.h (unsigned_pointer_to_address): Ditto.
10403 (signed_pointer_to_address): Ditto.
10404 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10405 * gdbarch.h, gdbarch.c: Regenerate.
10406 * findvar.c (extract_long_unsigned_integer): Update.
10407 (extract_address): Update.
10408 (extract_typed_address): Update.
10409 (unsigned_pointer_to_address): Update.
10410 * values.c (unpack_long): Update.
10411 (unpack_double): Update.
10412 (unpack_pointer): Update.
10413 (unpack_field_as_long): Update.
10414 * d10v-tdep.c (d10v_pointer_to_address): Update.
10415 * avr-tdep.c (avr_pointer_to_address): Update.
10416 * scm-lang.c (scm_unpack): Update.
10417 * findvar.c (signed_pointer_to_address): Update.
10418
10419 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10420
10421 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10422 since it is in i386-tdep.c.
10423
10424 2003-01-06 J. Brobecker <brobecker@gnat.com>
10425
10426 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10427 failure introduced in the previous change.
10428
10429 2003-01-05 Michael Chastain <mec@shout.net>
10430
10431 * README: Remove references to deleted remote-*.c files:
10432 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10433 remote-nrom.c, remote-os9k.c, remote-udi.c.
10434
10435 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10436
10437 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10438 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10439 i386_get_longjmp_target.
10440
10441 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10442
10443 * arm-tdep.c (prologue_cache): Change to a pointer.
10444 (_initialize_arm_tdep): Allocate prologue_cache.
10445 (check_prologue_cache): Update.
10446 (save_prologue_cache): Update.
10447 (arm_gdbarch_init): Update.
10448
10449 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10450
10451 * stabsread.c (update_method_name_from_physname): Call complaint()
10452 instead of error.
10453
10454 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10457 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10458 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10459
10460 * blockframe.c: Include "gdbcmd.h" and "command.h".
10461 (backtrace_below_main): New variable.
10462 (file_frame_chain_valid, func_frame_chain_valid)
10463 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10464 (generic_func_frame_chain_valid): Remove functions.
10465 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10466 (_initialize_blockframe): New function.
10467 * Makefile.in (blockframe.o): Update dependencies.
10468 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10469 comment. Call frame_chain_valid ().
10470 * frame.h: Remove old prototypes. Add prototype for
10471 frame_chain_valid and update comments to match.
10472 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10473 Remove old comment.
10474 * gdbarch.h: Regenerated.
10475 * gdbarch.c: Regenerated.
10476
10477 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10478 set_gdbarch_frame_chain_valid.
10479 * avr-tdep.c (avr_gdbarch_init): Likewise.
10480 * cris-tdep.c (cris_gdbarch_init): Likewise.
10481 * frv-tdep.c (frv_gdbarch_init): Likewise.
10482 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10483 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10484 (i386_nw_init_abi): Likewise.
10485 (i386_gdbarch_init): Likewise.
10486 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10488 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10489 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10490 * mips-tdep.c (mips_gdbarch_init): Likewise.
10491 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10492 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10493 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10494 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10495 * s390-tdep.c (s390_gdbarch_init): Likewise.
10496 * sh-tdep.c (sh_gdbarch_init): Likewise.
10497 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10498 * v850-tdep.c (v850_gdbarch_init): Likewise.
10499 * vax-tdep.c (vax_gdbarch_init): Likewise.
10500 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10501
10502 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10503 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10504 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10505 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10506 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10507 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10508 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10509 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10510
10511 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10512
10513 * Makefile.in (acconfig_h): Remove incorrect macro.
10514 (config_h): Define.
10515 (osabi.o): Update dependencies.
10516 * configure.tgt: Set gdb_osabi based on target triplet.
10517 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10518 * configure: Regenerated.
10519 * config.in: Regenerated.
10520 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10521 (GDB_OSABI_DEFAULT): Define if not already defined.
10522 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10523 (set_osabi_string): New variables.
10524 (gdbarch_register_osabi): Add new OS ABI to
10525 gdb_osabi_available_names.
10526 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10527 (set_osabi, show_osabi): New functions.
10528 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10529
10530 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10531
10532 * arch-utils.c (gdbarch_info_init): Set osabi to
10533 GDB_OSABI_UNINITIALIZED.
10534 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10535 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10536 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10537 * gdbarch.c: Regenerated.
10538 * gdbarch.h: Regenerated.
10539 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10540 there's no BFD.
10541 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10542 * osabi.h (enum gdb_osabi): Move to defs.h.
10543 (gdbarch_init_osabi): Update prototype.
10544 * defs.h (enum gdb_osabi): Moved here.
10545 * Makefile.in: Update dependencies.
10546
10547 * alpha-tdep.h: Don't include "osabi.h".
10548 (struct gdbarch_tdep): Remove osabi member.
10549 * alpha-tdep.c: Include "osabi.h".
10550 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10551 iterate over arches. Update call to gdbarch_init_osabi.
10552 (alpha_dump_tdep): Don't dump osabi.
10553 * alpha-linux-tdep.c: Include "osabi.h".
10554 * alpha-osf1-tdep.c: Include "osabi.h".
10555 * alphafbsd-tdep.c: Include "osabi.h".
10556 * alphanbsd-tdep.c: Include "osabi.h".
10557
10558 * arm-tdep.h: Don't include "osabi.h".
10559 (struct gdbarch_tdep): Remove osabi member.
10560 * arm-tdep.c: Include "osabi.h".
10561 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10562 iterate over arches. Update call to gdbarch_init_osabi.
10563 (arm_dump_tdep): Don't dump osabi.
10564 * arm-linux-tdep.c: Include "osabi.h".
10565 * armnbsd-tdep.c: Include "osabi.h".
10566
10567 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10568 Update call to gdbarch_init_osabi.
10569
10570 * i386-tdep.h: Don't include "osabi.h".
10571 (struct gdbarch_tdep): Remove osabi member.
10572 * i386-tdep.c: Include "osabi.h".
10573 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10574 iterate over arches. Update call to gdbarch_init_osabi.
10575 (i386_dump_tdep): Don't dump osabi.
10576 * i386-linux-tdep.c: Include "osabi.h".
10577 * i386-sol2-tdep.c: Include "osabi.h".
10578 * i386bsd-tdep.c: Include "osabi.h".
10579 * i386gnu-tdep.c: Include "osabi.h".
10580 * i386ly-tdep.c: Include "osabi.h".
10581 * i386nbsd-tdep.c: Include "osabi.h".
10582 * i386obsd-tdep.c: Include "osabi.h".
10583
10584 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10585 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10586 check osabi when iterating over arches. Update call to
10587 gdbarch_init_osabi.
10588 (mips_dump_tdep): Don't dump osabi.
10589
10590 * ns32k-tdep.h: Don't include "osabi.h".
10591 (struct gdbarch_tdep): Remove.
10592 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10593 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10594 allocate tdep. Update call to gdbarch_init_osabi.
10595 (ns32k_dump_tdep): Remove.
10596 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10597 * ns32knbsd-tdep.c: Include "osabi.h".
10598
10599 * ppc-tdep.h: Don't include "osabi.h".
10600 (struct gdbarch_tdep): Remove osabi member.
10601 * rs6000-tdep.c: Include "osabi.h".
10602 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10603 osabi when iterating over arches. Update call to
10604 gdbarch_init_osabi.
10605 (rs6000_dump_tdep): Don't dump osabi.
10606 * ppc-linux-tdep.c: Include "osabi.h".
10607 * ppcnbsd-tdep.c: Include "osabi.h".
10608
10609 * sh-tdep.h: Don't include "osabi.h".
10610 (struct gdbarch_tdep): Remove osabi member.
10611 * sh-tdep.c: Include "osabi.h".
10612 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10613 iterate over arches. Update call to gdbarch_init_osabi.
10614 (sh_dump_tdep): Don't dump osabi.
10615 * shnbsd-tdep.c: Include "osabi.h".
10616
10617 * sparc-tdep.c: Include "osabi.h".
10618 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10619 iterate over arches. Update call to gdbarch_init_osabi.
10620 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10621 tdep structure.
10622
10623 * vax-tdep.h: Don't include "osabi.h".
10624 (struct gdbarch_tdep): Remove.
10625 * vax-tdep.c: Include "osabi.h".
10626 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10627 iterate over arches. Don't allocate tdep. Update call
10628 to gdbarch_init_osabi.
10629 (vax_dump_tdep): Remove.
10630 (_initialize_vax_tdep): Update call to gdbarch_register.
10631
10632 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10633
10634 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10635 entirely.
10636 (breakpoint_re_set_one): Don't fetch the value for a disabled
10637 watchpoint.
10638
10639 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10640
10641 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10642 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10643 (COERCE_FLOAT_TO_DOUBLE): Remove.
10644 * gdbarch.c: Regenerate.
10645 * gdbarch.h: Regenerate.
10646 * Makefile.in: Remove value_h from gdbarch_h.
10647 * valops.c (coerce_float_to_double): New variable.
10648 (default_coerce_float_to_double): Remove.
10649 (standard_coerce_float_to_double): Remove.
10650 (value_arg_coerce): Use coerce_float_to_double.
10651 (_initialize_valops): Add "set coerce-float-to-double".
10652 * value.h (default_coerce_float_to_double): Remove prototype.
10653 (standard_coerce_float_to_double): Remove prototype.
10654
10655 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10656 prototyped.
10657 * mdebugread.c (parse_symbol): Likewise.
10658 * stabsread.c (define_symbol): Mark all functions as prototyped.
10659
10660 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10661 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10662 set_gdbarch_coerce_float_to_double.
10663 * arm-tdep.c (arm_gdbarch_init): Likewise.
10664 * frv-tdep.c (frv_gdbarch_init): Likewise.
10665 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10666 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10667 * mips-tdep.c (mips_gdbarch_init): Likewise.
10668 (mips_coerce_float_to_double): Remove.
10669 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10670 (rs6000_coerce_float_to_double): Remove.
10671 * s390-tdep.c (s390_gdbarch_init): Likewise.
10672 * sh-tdep.c (sh_gdbarch_init): Likewise.
10673 (sh_coerce_float_to_double): Remove.
10674 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10675 (sparc_coerce_float_to_double): Remove.
10676 * v850-tdep.c (v850_gdbarch_init): Likewise.
10677 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10678 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10679 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10680 (hppa_coerce_float_to_double): Remove prototype.
10681 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10682
10683 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10684
10685 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10686
10687 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10688
10689 Suggested by Stewart Brown <sb24@avaya.com>:
10690 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10691 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10692 (c_type_print_varspec_suffix): Likewise.
10693
10694 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10695
10696 * configure.in: Don't set and AC_SUBST SUBDIRS.
10697 * configure: Regenerated.
10698
10699 * configure.in: Remove code dealing with shared libraries.
10700 * Makefile.in: Remove HLDFLAGS and HLDENV.
10701 * configure: Regenerated.
10702
10703 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10704
10705 * frame.c (deprecated_frame_xmalloc): New function.
10706 (deprecated_set_frame_saved_regs_hack): New function.
10707 (deprecated_set_frame_extra_info_hack): New function.
10708 * frame.h (deprecated_frame_xmalloc): Declare.
10709 (deprecated_set_frame_saved_regs_hack): Declare.
10710 (deprecated_set_frame_extra_info_hack): Declare.
10711
10712 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10713
10714 * configure.in: Move code that provides the --enable-gdbtk option
10715 right after the code that handles the --enable-tui option, and
10716 polish it somewhat.
10717 * configure: Regenerated.
10718
10719 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10720 AC_CHECK_FUNCS and remove the old check for pread64.
10721 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10722 * acconfig.h (_GNU_SOURCE): Add.
10723 (HAVE_PREAD64): Remove.
10724 * configure, aclocal.m4, config.in: Regenerated.
10725
10726 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10727
10728 * alpha-tdep.c: Use get_frame_saved_regs.
10729 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10730 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10731 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10732 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10733 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10734
10735 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10736
10737 * configure.in: Remove all use of the SUBDIRS variable; add
10738 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10739 code providing the --enable-multi-ice option, and move it right in
10740 front of the code that checks whether gdbserver is supported.
10741 Polish that too.
10742 * configure: Regenerated.
10743 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10744 @SUBDIRS@.
10745
10746 2003-01-03 Andrew Cagney <cagney@redhat.com>
10747
10748 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10749 * avr-tdep.c, cris-tdep.c: Ditto.
10750 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10751 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10752
10753 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10754
10755 * configure.in: Remove --enable-netrom option.
10756 * configure: Regenerated.
10757
10758 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10759
10760 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10761 declaration for `struct re_pattern_buffer' instead.
10762 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10763
10764 2003-01-03 J. Brobecker <brobecker@gnat.com>
10765
10766 * mdebugread.c (parse_symbol): Count until the stEnd matching
10767 the structure name.
10768
10769 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10770
10771 * configure.in: Remove --with-cpu option.
10772 subscripts. Remove evil changequotes here.
10773 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10774 * config.in, configure: Regenerated.
10775
10776 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10777 * configure.in: Cleanup section that sources GDB and BFD configure
10778 subscripts. Remove evil changequotes here.
10779 * config.in, configure: Regenerated.
10780
10781 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10782
10783 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10784 frame accessor methods.
10785 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10786 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10787 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10788 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10789 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10790 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10791 * z8k-tdep.c: Ditto.
10792
10793 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10794
10795 * configure.in: Remove UI_OUT configuration code.
10796 * ada-lang.c: Update assuming UI_OUT is always true.
10797 * Makefile.in (UIOUT_CFLAGS): Remove.
10798 * configure: Regenerated.
10799 * TODO: Remove blurb about elimination of -DUI_OUT.
10800
10801 * configure.in: Move code that provides the --enable-gdbcli,
10802 --enable-gdbmi options right before the code that handles the
10803 --enable-tui option. Polish a bit.
10804 * configure: Regenerated.
10805
10806 * configure.in: Rewrite check for GNU regex and the
10807 --without-included regex option, and move it into the "Checks for
10808 library functions" section. This makes us use the system regex
10809 again by default on systems with version 2 of the GNU C library.
10810 This was apparently broken.
10811 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10812 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10813 * config.in, configure: Regenerated.
10814
10815 * configure.in: Move code that provides the --enable-tui option
10816 before the "Checks for libraries" section. Polish the code
10817 somewhat and set need_curses to yes if we build the TUI. Rewrite
10818 code that looks for a library providing termcap functionality to
10819 match more closely what's done in the Readline library, and move
10820 it into to the "Checks for libraries" section.
10821 * configure: Regenerated.
10822 * Makefile.in (TERMCAP): Remove variable.
10823 * config/i386/go32.mh (TERMCAP): Remove variable.
10824
10825 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10826
10827 * MAINTAINERS: Mention gdb_mbuild.sh.
10828 * gdb_mbuild.sh: Rewrite.
10829
10830 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10831
10832 * configure.in: Fix typo in last change.
10833 * config.in, configure: Regenerated.
10834
10835 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10836
10837 * valarith.c (value_binop): Delete obsolete code and comments.
10838 * configure.host: Ditto.
10839 * buildsym.h (make_blockvector): Ditto.
10840 * buildsym.c (make_blockvector): Ditto.
10841 * defs.h (enum language): Ditto.
10842 (chill_demangle): Ditto.
10843 * elfread.c (elf_symtab_read): Ditto.
10844 * dwarfread.c (CHILL_PRODUCER): Ditto.
10845 (set_cu_language): Ditto.
10846 (handle_producer): Ditto.
10847 * expprint.c (print_subexp): Ditto.
10848 * gdbtypes.c (chill_varying_type): Ditto.
10849 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10850 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10851 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10852 (chill_varying_type): Ditto.
10853 * language.h (_LANG_chill): Ditto.
10854 * language.c (binop_result_type, integral_type): Ditto.
10855 (character_type, string_type, structured_type): Ditto.
10856 (lang_bool_type, binop_type_check): Ditto.
10857 * stabsread.h (os9k_stabs): Ditto.
10858 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10859 (define_symbol, read_type, read_struct_fields): Ditto.
10860 (read_array_type, read_enum_type, read_huge_number): Ditto.
10861 (read_range_type, start_stabs): Ditto.
10862 * symfile.c (init_filename_language_table): Ditto.
10863 (add_psymbol_with_dem_name_to_list): Ditto.
10864 * symtab.c (symbol_init_language_specific): Ditto.
10865 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10866 * symtab.h (struct general_symbol_info): Ditto.
10867 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10868 * typeprint.c (typedef_print): Ditto.
10869 * utils.c (fprintf_symbol_filtered): Ditto.
10870 * valops.c (value_cast, search_struct_field, value_slice): Delete
10871 obsolete code.
10872 (varying_to_slice): Delete function.
10873 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10874 (varying_to_slice): Delete declaration.
10875 * MAINTAINERS: Update.
10876
10877 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10878
10879 * configure.in: Reorganize "Checks for library functions section"
10880 a bit. Remove check for `btowc' and `isascii' functions.
10881 * configure: Regenerated.
10882
10883 * acconfig.h (_MSE_INT_H): Remove.
10884 * configure.in: Create "Checks for header files" section, and move
10885 appropriate tests there. Don't check for objlist.h, wchar.h,
10886 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10887 misdetection fix. Also add "Checks for types", "Checks for
10888 compiler characteristics" and "Checks for library functions"
10889 sections.
10890 * config.in, configure: Regenerated.
10891
10892 * configure.in: Create "Checks for programs" section, and move
10893 appropriate tests there.
10894
10895 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10896
10897 * configure.in: Create "Checks for libraries" section, and move
10898 appropriate tests there. Cleanup check for wctype in libw. Use
10899 AC_SEARCH_LIBS to see whether we need libsocket.
10900 * configure: Regenerated.
10901
10902 For older changes see ChangeLog-2002
10903 \f
10904 Local Variables:
10905 mode: change-log
10906 left-margin: 8
10907 fill-column: 74
10908 version-control: never
10909 End:
This page took 0.368763 seconds and 5 git commands to generate.