* linux-proc.c (linux_proc_xfer_memory): Remove comment about
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2
3 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4 CFLAGS games to reflect reality.
5
6 2003-08-24 Andrew Cagney <cagney@redhat.com>
7
8 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
9 GDB_MULTI_ARCH is always non-zero.
10 * osabi.c (_initialize_gdb_osabi): Ditto.
11 (gdbarch_init_osabi): Ditto.
12 * sparc-tdep.c: Ditto for #if code.
13
14 2003-08-23 Mark Kettenis <kettenis@gnu.org>
15
16 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
17 Update comments.
18 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
19 comments.
20 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
21 x86_64_supply_fxsave.
22 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
23 x86_64_supply_fxsave.
24 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
25 x86_64_supply_fxsave.
26
27 2003-08-23 Andreas Jaeger <aj@suse.de>
28
29 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
30 i387_supply_fxsave.
31
32 2003-08-23 Mark Kettenis <kettenis@gnu.org>
33
34 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
35 i387_supply_register.
36 (go32_fetch_registers): Adjust call to i387_supply_fsave.
37 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
38 i387_supply_fsave.
39 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
40 i387_supply_fxsave.
41 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
42 i387_supply_fsave.
43 * i386bsd-nat.c (supply_fpregset): Adjust call to
44 i387_supply_fsave.
45 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
46 call to i387_supply_fxsave. Call i387_supply_fsave instead of
47 supply_fpregset.
48 (store_inferior_registers): Remove extraneous whitespace. Call
49 i387_fill_fsave instead of fill_fpregset.
50 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
51 (supply_fpregset): Likewise.
52 * i386v4-nat.c (supply_fpregset): Adjust call to
53 i387_supply_fsave.
54 * i386-interix-nat.c (supply_fpregset): Adjust call to
55 i387_supply_fsave.
56 * i386-linux-nat.c (supply_fpregset): Adjust call to
57 i387_supply_fsave.
58 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
59 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
60 i387supply_fsave and i387_supply_fxsave.
61 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
62 Incorporate code from `i387_supply_register.
63 (i387_supply_register): Remove.
64 (i387_supply_fxsave): Add `regnum' argument.
65 Update comments.
66 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
67 prototype.
68 (i387_supply_register): remove prototype.
69 Update comments.
70
71 2003-08-22 Michael Chastain <mec@shout.net>
72
73 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
74 Add lines for files in gdb/testsuite/gdb.cp/* that are
75 still not 8.3 unique.
76
77 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
78
79 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
80 TYPE_VPTR_FIELDNO is valid.
81
82 2003-08-19 Mark Kettenis <kettenis@gnu.org>
83
84 * utils.c (set_width_command): Remove prototypes.
85 (set_screen_size): New prototype.
86 (init_page_info): Simplify by fetching the screen size from
87 Readline. Call set_screen_size.
88 (set_screen_size): New function.
89 (set_width): Add missing whitespace in comment.
90 (set_width_command): Call set_screen_size.
91 (set_height_command): New function.
92 (initialize_utils): Fix formatting. Make "set height" command
93 call set_height_command. Remove redundant code that turns off
94 pagination if output isn't a terminal. Remove redundant call to
95 set_width_command.
96
97 2003-08-22 Mark Kettenis <kettenis@gnu.org>
98
99 * sparc64-tdep.h (sparc64_regnum): Fix comment.
100 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
101 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
102 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
103 `case' keyword.
104 (sparc64_register_info): Give the reister with number
105 SPARC64_STATE_REGNUM a name.
106 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
107 %asi and %ccr.
108 (sparc64_push_dummy_call): Take BIAS into account when checking
109 stcak alignment.
110 (sparc_software_single_step): Remove assertions that check whether
111 NPC and NNPC were zero.
112 (sparc_supply_rwindow): Make public. Merge functionality with
113 sparc64_supply_rwindow.
114 (sparc_fill_rwindow): Make public. Merge functionality with
115 sparc64_fill_rwindow.
116 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
117 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
118 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
119 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
120 sparc_supply_rwindow instead of sparc64_supply_rwindow.
121
122 * reggroups.c: Add whitespace after declarations of local
123 variables in functions.
124
125 2003-08-21 Michael Chastain <mec@shout.net>
126
127 * gdbtypes.h: Change array bound type from an int to enum.
128
129 2003-08-21 Andrew Cagney <cagney@redhat.com>
130
131 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
132 * config/sparc/tm-sparc.h: Ditto.
133 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
134 unconditionally.
135 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
136
137 2003-07-13 Mark Kettenis <kettenis@gnu.org>
138
139 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
140 (register_objfile_data, set_objfile_data, objfile_data): New
141 prototypes.
142 * objfiles.c (objfile_alloc_data, objfile_free_data): New
143 prototypes.
144 (allocate_objfile): Call objfile_alloc_data.
145 (free_objfile): Call objfile_free_data.
146 (struct objfile_data): New.
147 (struct objfile_data_registration): New.
148 (struct objfile_data_registry): New.
149 (objfile_data_registry): New variable.
150 (register_objfile_data): New function.
151 (objfile_alloc_data, objfile_free_data): New functions.
152 (set_objfile_data, objfile_data): New functions.
153 * dwarf2-frame.c (dwarf2_frame_data): New variable.
154 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
155 (_initialize_dwarf2_frame): New function and prototype.
156
157 2003-08-21 Andrew Cagney <cagney@redhat.com>
158
159 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
160 a specific architecture.
161 * arch-utils.h (set_architecture_from_arch_mach): Delete
162 declaration.
163 (target_architecture_hook): Delete declaration.
164 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
165 (default_float_format): Assume GDB_MULTI_ARCH.
166 (default_double_format): Assume GDB_MULTI_ARCH.
167 (set_endian_from_file): Delete function.
168 (arch_ok): Delete function.
169 (set_arch): Delete function.
170 (set_architecture_from_arch_mach): Delete function.
171 (set_architecture_from_file): Delete function.
172 (set_architecture): Assume GDB_MULTI_ARCH.
173 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
174
175 2003-08-21 Mark Kettenis <kettenis@gnu.org>
176
177 Rewrite FreeBSD/sparc64 native configuration.
178 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
179 * sparc64fbsd-nat.c: New file.
180 * sparc64fbsd-tdep.c: New file.
181 * sparc64-tdep.c sparc64-tdep.h: New files.
182 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
183 sparc64fbsd-tdep.o): New dependencies.
184 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
185 and sparc64fbsd-tdep.c.
186 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
187 * config/sparc/fbsd.mh: Remove copyright notice.
188 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
189 sparcbsd-nat.o.
190 * config/sparc/fbsd.mt: Remove copyright notice.
191 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
192 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
193 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
194 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
195 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
196 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
197 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
198 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
199 "sparc/tm-sp64.h".
200 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
201 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
202
203 2003-08-21 Michael Chastain <mec@shout.net>
204
205 * symtab.h: Add doco on the space critical structures and
206 some measurements of space usage.
207
208 2003-08-21 Michael Snyder <msnyder@redhat.com>
209
210 * tracepoint.c (trace_dump_command): Trace break address
211 is subject to DECR_PC_AFTER_BREAK.
212 (set_traceframe_context): Make "trace_line" an int.
213 Fixes suggested by Mark Newman <mark.newman@lmco.com>
214
215 2003-08-20 Michael Snyder <msnyder@redhat.com>
216
217 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
218 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
219 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
220 argument passing.
221 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
222 functions, replace sh_push_dummy_call.
223 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
224
225 2003-08-20 Michael Chastain <mec@shout.net>
226
227 * gdbtypes.h (struct main_type): Rearrange to save space.
228
229 2003-08-20 Michael Snyder <msnyder@redhat.com>
230
231 * trad-frame.c: Comment typo fix.
232
233 2003-08-20 Michael Snyder <msnyder@redhat.com>
234 Kevin Buettner <kevinb@redhat.com>
235
236 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
237 (frv_frame_init_saved_regs): Add declaration.
238 (frame_extra_info): Add new field ``saved_regs''.
239 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
240 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
241 Update frame related code.
242 (frv_extract_struct_value_address): Adjust formatting.
243 * Makefile.in (frv-tdep.o): Update dependencies.
244 * config/frv/tm-frv.h (target_insert_watchpoint)
245 (target_remove_watchpoint, target_insert_hw_breakpoint)
246 (target_remove_hw_breakpoint): Delete these macros.
247 (remote_insert_watchpoint, remote_remove_watchpoint)
248 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
249 these declarations.
250
251 2003-08-20 Michael Chastain <mec@shout.net>
252
253 * defs.h (ENUM_BITFIELD): New macro.
254 * symtab.h (ENUM_BITFIELD): Use it.
255 (BYTE_BITFIELD): Remove old macro, which was already disabled.
256
257 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
258
259 * MAINTAINERS (write after approval): Add myself.
260
261 2003-08-18 Andrew Cagney <cagney@redhat.com>
262
263 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
264 * gdbarch.h, gdbarch.c: Re-generate.
265 * infcall.c (call_function_by_hand): Adjust the SP by
266 frame_red_zone_size before allocating any stack space.
267 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
268 * x86-64-tdep.c (x86_64_frame_align): New function.
269 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
270
271 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
272 Remove code adjusting SP so that it skips over the Red Zone.
273
274 2003-08-18 Mark Kettenis <kettenis@gnu.org>
275
276 * NEWS (New native configurations): Mention FreeBSD/amd64.
277
278 2003-08-18 Andrew Cagney <cagney@redhat.com>
279
280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
281 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
282 "m68k_frame_p".
283 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
284
285 2003-08-18 Mark Kettenis <kettenis@gnu.org>
286
287 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
288
289 2003-08-18 Michal Ludvig <mludvig@suse.cz>
290
291 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
292 Define.
293 * i386-linux-nat.c: Include "linux-nat.h".
294 (child_post_startup_inferior): New function.
295
296 2003-08-18 Mark Kettenis <kettenis@gnu.org>
297
298 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
299 at the start of a frameless function. This probably fixes PR
300 backtrace/1338.
301
302 2003-08-17 Michael Chastain <mec@shout.net>
303
304 * symfile.c (find_sym_fns): Remove special case for apollo target.
305
306 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
307
308 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
309 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
310 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
311 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
312 (linux_supports_tracevforkdone): New function.
313 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
314 TRACEVFORKDONE.
315 (child_follow_fork): Handle vfork.
316 (linux_handle_extended_wait): Likewise. Also handle exec.
317 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
318 * NEWS: Mention fork tracing.
319
320 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
321
322 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
323
324 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
325
326 * Makefile.in (i386-linux-nat.o): Update dependencies.
327 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
328 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
329 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
330 * i386-linux-nat.c: Include "linux-nat.h".
331 (child_post_startup_inferior): New function.
332 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
333 * infptrace.c (kill_inferior): Wrap in #ifdef.
334 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
335 attaching to each LWP.
336 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
337 (init_lin_lwp_ops): Fill in some more operations.
338 * linux-nat.h (linux_enable_event_reporting)
339 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
340 prototypes.
341 * linux-nat.c (linux_enable_event_reporting): New function.
342 (child_post_attach, linux_child_post_startup_inferior)
343 (child_post_startup_inferior, child_follow_fork)
344 (linux_handle_extended_wait, kill_inferior): New functions.
345
346 2003-08-16 Andrew Cagney <cagney@redhat.com>
347
348 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
349 * gdbarch.h, gdbarch.c: Re-generate.
350
351 2003-08-16 Mark Kettenis <kettenis@gnu.org>
352
353 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
354
355 2003-08-16 Andrew Cagney <cagney@redhat.com>
356
357 * NEWS: Mention that "set prompt-escape-char" was deleted.
358 * top.c (get_prompt_1): Delete function.
359 (gdb_prompt_escape):
360 (init_main): Do not clear "gdb_prompt_escape". Delete "set
361 prompt-escape-char" command.
362 (MAX_PROMPT_SIZE): Delete macro.
363 (get_prompt): Simplify, do not call get_prompt_1.
364
365 2003-08-16 Andrew Cagney <cagney@redhat.com>
366
367 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
368 -Werror. -Wformat-nonliteral problems.
369
370 2003-08-15 J. Brobecker <brobecker@gnat.com>
371
372 Further multiarching work mostly for hppa64-*-hpux11:
373 * hppa-tdep.h: New file.
374 * hppa-tdep.c: #include hppa-tdep.c.
375 (hppa32_num_regs): Renamed from hppa_num_regs.
376 (hppa64_num_regs): New constant.
377 (hppa64_call_dummy_breakpoint_offset): New constant.
378 (hppa32_call_dummy_length): New constant.
379 (hppa64_call_dummy_length): New constant.
380 (hppa32_stack_align): Make name 32bit explicit.
381 (hppa32_register_virtual_type): Likewise.
382 (hppa32_extract_return_value): Likewise.
383 (hppa32_use_struct_convention): Likewise.
384 (hppa32_store_return_value): Likewise.
385 (hppa64_register_virtual_type): New function.
386 (hppa64_extract_return_value): New function.
387 (hppa64_use_struct_convention): New function.
388 (hppa64_store_return_value): New function.
389 (hppa_frame_locals_address): Remove declaration, function does
390 not exist anymore.
391 (hppa_register_byte): Add support for PA64 ABI.
392 (hppa_gdbarch_init): Add support for PA64 ABI.
393 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
394 Make name 32bit explicit.
395 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
396 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
397 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
398 (hppa64_hpux_frame_base_before_sigtramp): New function.
399 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
400 * config/pa/tm-hppa64.h: Remove macros that are no longer
401 necessary now that the gdbarch vector is properly setup.
402 Transform some macros into function calls. Some minor cleanup.
403 * config/pa/tm-hppah.h: Update function calls in macros
404 following the function renaming in hppa-hpux-tdep.c.
405 * Makefile.in (hppa_tdep_h): New variable.
406 (hppa-tdep.o): Add dependency over hppa_tdep_h.
407
408 2003-08-14 Michael Snyder <msnyder@redhat.com>
409
410 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
411
412 2003-08-13 J. Brobecker <brobecker@gnat.com>
413
414 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
415 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
416 routine.
417
418 2003-08-13 Michael Snyder <msnyder@redhat.com>
419
420 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
421 (frv_saved_pc_after_call): Use deprecated ftype.
422 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
423 (frv_remote_translate_xfer_address): Remove.
424 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
425
426 2003-08-13 J. Brobecker <brobecker@gnat.com>
427
428 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
429 initialization after the common gdbarch initialization, not before.
430
431 2003-08-13 J. Brobecker <brobecker@gnat.com>
432
433 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
434 (ADDR_BITS_REMOVE): Remove, redundant.
435
436 2003-08-13 J. Brobecker <brobecker@gnat.com>
437
438 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
439 gdbarch method to clear the 2 low bits of text addresses.
440
441 2003-08-12 Andrew Cagney <cagney@redhat.com>
442
443 * Makefile.in (dsrec.o): Update dependencies.
444 * dsrec.c: Include "gdb_assert.h".
445 (make_srec): Use snprintf instead of sprintf, use a literal format
446 string.
447
448 2003-08-12 Andrew Cagney <cagney@redhat.com>
449
450 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
451 FRAME_OBSTACK_ZALLOC.
452
453 2003-08-12 Kevin Buettner <kevinb@redhat.com>
454
455 * i386-tdep.c (i386_gdbarch_init): Enable default support for
456 SSE registers.
457
458 2003-08-10 Mark Kettenis <kettenis@gnu.org>
459
460 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
461 amd64fbsd_sc_reg_offset): Add extern declarations.
462 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
463 declarations.
464
465 2003-08-11 Ben Elliston <bje@wasabisystems.com>
466
467 * MAINTAINERS (write after approval): Update my mail address.
468
469 2003-08-10 Andrew Cagney <cagney@redhat.com>
470
471 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
472
473 2003-08-10 Mark Kettenis <kettenis@gnu.org>
474
475 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
476 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
477 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
478 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
479 i386bsd_sc_reg_offset): Add extern declarations.
480 * i386obsd-nat.c: Include "i386-tdep.h"
481 (_initialize_i386obsd_nat): Remove extern declarations.
482 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
483 declarations.
484 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
485 declarations.
486
487 * i386-tdep.c (i386_register_to_value): Use get_frame_register
488 instead of frame_read_register.
489 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
490 instead of frame_read_register. Use I386_ESP_REGNUM instead of
491 SP_REGNUM.
492 (i386_frame_prev_register): Use frame_unwind_register_unsigned
493 instead of frame_unwind_unsigned_register. Use
494 I386_EFLAGS_REGISTER instead of PS_REGNUM.
495 (i386_get_longjmp_target): Use regcache_read_unsigned_register
496 instead of read_register. Use builtin_type_void_data_ptr instead
497 of builtin_type_void_func_ptr when extracting the address of the
498 jmp_buf.
499 (i386_extract_return_value, i386_store_return_value,
500 i386_pseudo_register_read, i386_pseudo_register_write): Use
501 register_size instead REGISTER_RAW_SIZE.
502
503 2003-08-10 Andrew Cagney <cagney@redhat.com>
504
505 * infcall.c (call_function_by_hand): Use xstrprintf instead of
506 sprintf. Make "name" constant.
507
508 2003-08-10 Mark Kettenis <kettenis@gnu.org>
509
510 * i387-tdep.c (i387_register_to_value): Use get_frame_register
511 instead of frame_read_register.
512 (i387_print_float_info): Use get_frame_register and
513 get_frame_register_unsigned instead of frame_register_read.
514
515 * i386fbsd-nat.c: Include "i386-tdep.h".
516 (child_resume): Make `eflags' an ULONGEST. Use
517 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
518 instead of register_read and register_write.
519
520 * i386bsd-nat.c (fetch_inferior_registers,
521 store_inferior_registers): Don't use && at the end of a line.
522 (_initialize_i386bsd_nat): Fix typo.
523
524 * frame.c (_initialize_frame): Add missing backslash.
525
526 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
527 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
528 and supply_register instead of manipulating the register buffer
529 directly.
530
531 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
532 * config/i386/nm-i386sol2.h
533 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
534
535 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
536 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
537 instructions that GCC likes to mingle into the prologue. Fixes
538 gdb/1253 and gdb/1255.
539
540 2003-08-09 Andrew Cagney <cagney@redhat.com>
541
542 Fix GDB PR cli/926.
543 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
544 * command.h (add_setshow_uinteger_cmd): Declare.
545 * frame.c (set_backtrace_cmd): New function.
546 (show_backtrace_cmd): New function.
547 * frame.c (_initialize_frame): Replace "set/show
548 backtrace-below-main" with "set/show backtrace past-main". Add
549 command "set/show backtrace limit".
550 (backtrace_past_main): Rename "backtrace_below_main".
551 (backtrace_limit): New variable.
552 (get_prev_frame): Update. Check the backtrace_limit.
553
554 2003-08-09 Andrew Cagney <cagney@redhat.com>
555
556 * defs.h (xstrprintf): Declare.
557 * utils.c (xstrprintf): New function.
558 * breakpoint.c (insert_breakpoints): Replace sprintf and
559 non-literal format strings, with xstrprintf and cleanups.
560 (delete_breakpoint,breakpoint_re_set): Ditto.
561 (commands_command, insert_breakpoints): Ditto.
562 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
563 (break_at_finish_command_1): Ditto.
564
565 2003-08-09 Andrew Cagney <cagney@redhat.com>
566
567 * MAINTAINERS (language support): List Adam Fedor as Objective C
568 maintainer.
569
570 2003-08-08 J. Brobecker <brobecker@gnat.com>
571
572 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
573 are now multiarched.
574
575 2003-08-08 J. Brobecker <brobecker@gnat.com>
576
577 * config/pa/tm-hppa64.h: Remove lots of macros that are no
578 longer necessary now that hppa64 is partially multiarch'ed.
579
580 2003-08-08 Andrew Cagney <cagney@redhat.com>
581
582 * interps.c (interp_set): Check for a NULL "old_interp".
583
584 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
585
586 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
587 (install-only): Support DESTDIR.
588 (uninstall): Likewise.
589 (install-gdbtk): Likewise.
590
591 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
592
593 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
594 contains something meaningful at all times.
595
596 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
597
598 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
599
600 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
601
602 * MAINTAINERS (write after approval): Added self.
603
604 2003-08-07 Andrew Cagney <cagney@redhat.com>
605
606 * inferior.h (AT_SYMBOL): Define.
607 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
608 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
609 * mips-tdep.c (mips_call_dummy_address): Delete function.
610 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
611 set call_dummy_address.
612
613 2003-08-07 Andrew Cagney <cagney@redhat.com>
614
615 * language.c (op_error): Delete function.
616 (binop_type_check): Delete function.
617 * language.h (type_op_error, range_op_error): Delete macros.
618 (op_error): Delete declaration.
619
620 2003-08-07 Andrew Cagney <cagney@redhat.com>
621
622 * interps.h (INTERP_MI2, INTERP_MI3): Define.
623
624 2003-08-07 Michal Ludvig <mludvig@suse.cz>
625
626 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
627 (x86_64_push_arguments): Skip the red zone.
628
629 2003-08-05 Andrew Cagney <cagney@redhat.com>
630
631 * reggroups.c (reggroup_next): Check for the final entry.
632
633 2003-08-04 Andrew Cagney <cagney@redhat.com>
634
635 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
636 * cli/cli-script.c (define_command): Call query directly, instead
637 of passing it a buffer.
638 * ocd.c (ocd_error): Pass error a constant format string.
639 * remote-mips.c (mips_error): Use fputs_filtered.
640
641 * solib-svr4.c (_initialize_svr4_solib): Update
642 register_gdbarch_data call.
643 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
644
645 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
646 (register_gdbarch_data): Delete "free" parameter. Update
647 comments.
648 * gdbarch.h, gdbarch.c: Re-generate.
649 * reggroups.c (_initialize_reggroup): Update.
650 * gnu-v3-abi.c (init_gnuv3_ops): Update.
651 * frame-base.c (_initialize_frame_base): Update.
652 * frame-unwind.c (_initialize_frame_unwind): Update.
653 * user-regs.c (_initialize_user_regs): Update.
654 * remote.c (_initialize_remote): Update.
655 * regcache.c (_initialize_regcache): Update.
656
657 * regcache.c (xfree_regcache_descr): Delete function.
658 (_initialize_regcache): Update call to register_gdbarch_data.
659 (init_regcache_descr, init_legacy_regcache_descr): Use
660 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
661
662 * remote.c (free_remote_state): Delete function.
663 (_initialize_remote): Update register_gdbarch_data.
664 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
665 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
666
667 2003-08-04 Andrew Cagney <cagney@redhat.com>
668
669 * reggroups.c (struct reggroup_el): Define.
670 (struct reggroups): Delete field "nr_group". Replace array
671 "group" with a "first" to "last" linked list.
672 (reggroups_init): Update. Allocate using gdbarch's obstack.
673 (reggroups_free): Delete function.
674 (add_group): Update. Add "el" parameter.
675 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
676 (default_groups): Update.
677 (reggroup_next): Replace reggroups.
678 (reggroups_dump): Update.
679 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
680 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
681 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
682
683 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
684
685 * Makefile.in (tui-interp.o): Update dependencies.
686
687 2003-08-04 David Carlton <carlton@kealia.com>
688
689 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
690 to internal_error call.
691 * source.c (forward_search_command): Add "%s" format argument.
692 (reverse_search_command): Ditto.
693 * top.c (quit_confirm): Ditto.
694 * cli/cli-setshow.c (do_setshow_command): Ditto.
695 * cp-valprint.c (cp_print_class_method): Replace
696 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
697 (cp_print_class_member): Ditto.
698 * event-top.c (command_line_handler): Ditto.
699 * linux-proc.c (linux_info_proc_cmd): Ditto.
700 * p-typeprint.c (pascal_type_print_base): Ditto.
701 * p-valprint.c (pascal_object_print_class_method): Ditto.
702 (pascal_object_print_class_member): Ditto.
703 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
704 * remote.c (remote_cisco_section_offsets): Ditto.
705 * top.c (command_line_input): Ditto.
706 * utils.c (vwarning,error_stream,quit): Ditto.
707 * valprint.c (print_floating,print_binary_chars)
708 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
709
710 2003-08-04 Andrew Cagney <cagney@redhat.com>
711
712 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
713
714 2003-08-02 Andrew Cagney <cagney@redhat.com>
715
716 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
717 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
718 amd64fbsd-nat.c.
719
720 2003-08-02 Andrew Cagney <cagney@redhat.com>
721
722 * Makefile.in: Update all dependencies and definitions.
723
724 2003-08-02 Adam Fedor <fedor@gnu.org>
725
726 * linespec.c (is_objc_method_format): New function
727 (decode_line_1, locate_first_half): Use it.
728 Fixes PR objc/1298
729
730 2003-08-01 Andrew Cagney <cagney@redhat.com>
731
732 * NEWS: Mention that m32r is multi-arch.
733 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
734 * configure.tgt: Recognize m32r-*-*.
735 * config/m32r/tm-m32r.h: Delete file.
736 * config/m32r/m32r.mt: New file.
737 * m32r-rom.c (m32r_upload_command): Use hostent only when
738 gethostname succeeds, in order to avoid a compilation
739 warning.
740 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
741 compiler warning.
742
743 2003-08-01 Michael Snyder <msnyder@redhat.com>
744
745 * sh-tdep.c (sh_frame_align): New gdbarch method.
746 (sh_gdbarch_init): Set up frame_align method.
747
748 2003-07-31 Michael Snyder <msnyder@redhat.com>
749
750 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
751 which is already covered by the new frames infrastructure.
752
753 2003-07-31 Andrew Cagney <cagney@redhat.com>
754
755 * user-regs.c (struct user_reg): Add "next" link.
756 (struct user_regs): Replace "user" with "first" and "last" links.
757 (append_user_reg): Add pre-allocated "reg" parameter.
758 (builtin_user_regs): Provide initial value for "last".
759 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
760 (user_regs_init): Allocate memory from the gdbarch obstack.
761 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
762 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
763 linked list.
764 (usernum_to_user_reg): New function.
765 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
766 (value_of_user_reg): Use usernum_to_user_reg.
767 (user_regs_free): Delete function.
768 (_initialize_user_regs): Update register_gdbarch_data call.
769
770 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
771
772 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
773
774 2003-07-30 Michael Snyder <msnyder@redhat.com>
775
776 * value.h (value_being_returned): Add a struct_addr argument.
777 * infcall.c (call_function_by_hand): Pass struct_addr to
778 value_being_returned.
779 * infcmd.c (print_return_value): Pass zero as struct_addr.
780 * values.c (value_being_returned): If struct_addr is passed,
781 use it instead of trying to recover it from the inferior.
782
783 2003-07-30 Kevin Buettner <kevinb@redhat.com>
784
785 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
786 the prologue analyzer won't need to attempt to extract the pc
787 value from the woefully incomplete dummy frame.
788 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
789 possible. Disable code which modifies the frame.
790
791 2003-07-28 Andrew Cagney <cagney@redhat.com>
792
793 * annotate.c (annotate_breakpoints_headers): Restrict annotation
794 to level 2.
795 (annotate_breakpoints_table, annotate_record): Ditto.
796 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
797 (annotate_field_name_end, annotate_field_value): Ditto.
798 (annotate_field_end, annotate_frame_source_begin): Ditto.
799 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
800 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
801 (annotate_frame_begin, annotate_frame_function_name): Ditto.
802 (annotate_frame_address_end, annotate_frame_address): Ditto.
803 (annotate_frame_args, annotate_frame_end): Ditto.
804 (annotate_frame_where, annotate_arg_begin): Ditto.
805 (annotate_arg_name_end, annotate_arg_value): Ditto.
806 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
807 (annotate_function_call, annotate_signal_name): Ditto.
808 (annotate_signal_string, annotate_signal_name_end): Ditto.
809 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
810 (annotate_value_begin, annotate_value_history_value): Ditto.
811 (annotate_value_history_end, annotate_value_end): Ditto.
812 (annotate_display_begin, annotate_display_number_end): Ditto.
813 (annotate_display_format, annotate_display_expression): Ditto.
814 (annotate_display_expression_end, annotate_display_value): Ditto.
815 (annotate_display_end, annotate_array_section_begin): Ditto.
816 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
817 (annotate_elt, annotate_array_section_end): Ditto.
818
819 2003-07-28 Andrew Cagney <cagney@redhat.com>
820
821 * regcache.c (struct regcache_descr): Update comments on
822 nr_raw_registers.
823 (init_legacy_regcache_descr): Don't set nr_raw_registers or
824 sizeof_raw_register_valid_p.
825 (init_regcache_descr): Set nr_raw_registers and
826 sizeof_raw_register_valid_p before calling
827 init_legacy_regcache_descr.
828
829 2003-07-28 Andrew Cagney <cagney@redhat.com>
830
831 * mips-tdep.c (print_gp_register_row): Print the GPR's register
832 MOD NUM_REGS.
833
834 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
835
836 * thread.c (info_threads_command): Use get_selected_frame ().
837 Check that there is at least one non-sentinel frame.
838
839 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
840
841 * m68hc11-tdep.c (struct frame_extra_info): Remove.
842 (m68hc11_pop_frame): Remove.
843 (m68hc11_frame_saved_pc): Remove.
844 (m68hc11_frame_chain): Remove.
845 (m68hc11_frame_init_saved_regs): Remove.
846 (m68hc11_init_extra_frame_info): Remove.
847 (m68hc11_store_struct_return): Remove.
848 (m68hc11_saved_pc_after_call): Remove.
849
850 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
851
852 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
853 frame unwind information.
854 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
855 and adapted for frame unwinding.
856 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
857 (m68hc11_unwind_pc): New function.
858 (m68hc11_frame_unwind_cache): New function to analyze frames.
859 (m68hc11_frame_this_id): New function to create new frame struct.
860 (m68hc11_frame_prev_register): New function to unwind a register from
861 the frame.
862 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
863 (m68hc11_frame_p): New function for the above.
864 (m68hc11_frame_base_address): New function to return fp of frame.
865 (m68hc11_frame_args_address): Update for frame.
866 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
867 (m68hc11_unwind_sp): New function.
868 (m68hc11_unwind_dummy_id): New function.
869 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
870 calls.
871
872 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
873
874 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
875 (m68hc11_guess_from_prologue): Advance the pc and frame size only
876 when we are beyond the current pc.
877
878 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
879
880 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
881 from m68hc11_push_arguments.
882 (m68hc11_push_arguments): Remove.
883 (m68hc11_push_return_address): Remove.
884 (m68hc11_gdbarch_init): Install the above; remove above deprecated
885 handlers; remove deprecated_extra_stack_alignment_needed.
886
887 2003-07-27 Andrew Cagney <cagney@redhat.com>
888
889 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
890 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
891 REAL_PC and not the pointer.
892 * hppa-hpux-tdep.c: Include frame.h
893
894 2003-07-27 Andrew Cagney <cagney@redhat.com>
895
896 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
897 GDB_MULTI_ACH_PARTIAL.
898
899 2003-07-27 Andrew Cagney <cagney@redhat.com>
900
901 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
902 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
903 operator at start and not end of line.
904 (decode_prologue): Ditto.
905 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
906 frame_unwind_register_unsigned instead of
907 frame_unwind_unsigned_register.
908 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
909 read_register.
910 (m32r_push_dummy_call): Use register_size instead of
911 REGISTER_RAW_SIZE.
912 (m32r_frame_sniffer): Replace m32r_frame_p.
913 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
914 * m32r-rom.c (report_transfer_performance): Delete extern
915 declaration.
916 (m32r_load, m32r_upload_command): Use print_transfer_performance
917 instead of report_transfer_performance.
918 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
919 / add_show_from_set.
920
921 2003-07-26 Andrew Cagney <cagney@redhat.com>
922
923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
924 store_return_value and extract_struct_value_address.
925
926 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
927
928 PR c++/1267
929 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
930 NULL, default to the section containing PC.
931
932 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
933
934 * NEWS: Mention "regs" deprecated for m68hc11 too.
935
936 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
937 (m68hc11_print_register): New function to print out one register.
938 (m68hc11_print_registers_info): New function to print registers.
939 (show_regs): Deprecate and use the above.
940 (m68hc11_gdbarch_init): Install the print_registers_info.
941
942 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
943
944 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
945 that we have a SIGTRAP before returning non-zero.
946
947 2003-07-23 Michal Ludvig <mludvig@suse.cz>
948 Elena Zannoni <ezannoni@redhat.com>
949
950 * linespec.c (decode_line_2): Avoid crash if
951 find_function_start_sal() returns empty record.
952
953 2003-07-23 Andreas Schwab <schwab@suse.de>
954
955 * ia64-tdep.c (ia64_print_insn): New function.
956 (ia64_gdbarch_init): Set print_insn to it.
957 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
958 deprecated_tm_print_insn_info.
959
960 2003-07-22 Michael Snyder <msnyder@redhat.com>
961
962 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
963 handle 8-bit returns (long long).
964 (h8300h_extract_return_value): Ditto.
965 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
966
967 2003-07-22 Andrew Cagney <cagney@redhat.com>
968
969 * gdbarch.c Include "gdb_obstack.h".
970 (struct gdbarch): Add an "obstack".
971 (alloc_gdbarch_data): Allocate the gdbarch data using
972 GDBARCH_OBSTACK_CALLOC.
973 (free_gdbarch_data): Delete function.
974 (gdbarch_obstack_zalloc): New function.
975 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
976 Assert that the architecture is not initialized.
977 (gdbarch_alloc): Allocate an obstack, allocate the architecture
978 vector from the obstack.
979 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
980 architecture obstack.
981 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
982 (set_gdbarch_data): Assert that the data is not initialized.
983 (struct gdbarch_data): Delete member "free".
984 (register_gdbarch_data): Do not initialize "free".
985 * gdbarch.h, gdbarch.c: Re-generate.
986
987 2003-07-22 Andrew Cagney <cagney@redhat.com>
988
989 * configure.in (build_warnings): Add -Wformat-nonliteral.
990 * configure: Re-generate.
991
992 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
993
994 * dwarf2loc.c (locexpr_describe_location): Fix typos.
995
996 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
997
998 * findvar.c (read_var_value): Remove case for thread local storage
999 variables. It is now entirely handled by the dwarf2 location
1000 expression code.
1001 * printcmd.c (address_info): Ditto.
1002 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1003 enumeration value.
1004 (struct symbol): Remove objfile field, which was used by
1005 LOC_THREAD_LOCAL_STATIC only.
1006 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1007 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1008 usage of objfile pointer.
1009 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1010 thread local variables.
1011 Add include of objfiles.h.
1012 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1013 storage variables.
1014 * Makefile.in (dwarf2loc.o): Update dependencies.
1015
1016 2003-07-22 Andrew Cagney <cagney@redhat.com>
1017
1018 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1019 get_frame_base.
1020 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1021 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1022 (struct value): Add opaque declaration.
1023 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1024
1025 2003-07-21 Andrew Cagney <cagney@redhat.com>
1026
1027 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1028 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1029
1030 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1031
1032 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1033 regcache_cooked_read_unsigned instead of read_register.
1034 (m68hc11_saved_pc_after_call): Likewise.
1035 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1036 instead of write_register.
1037 (m68hc11_register_type): New function.
1038 (m68hc11_register_virtual_type): Remove.
1039 (m68hc11_store_return_value): Convert to use the regcache.
1040 (m68hc11_extract_struct_value_address): Likewise.
1041 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1042 m68hc11_register_type; undeprecate store_return_value and
1043 extract_struct_value_address.
1044
1045 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1046
1047 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1048 and translate to use regcache.
1049 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1050
1051 2003-07-18 Andrew Cagney <cagney@redhat.com>
1052
1053 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1054 * gdbarch.h, gdbarch.c: Re-generate.
1055 * i386-tdep.c (i386_gdbarch_init): Do not set
1056 DWARF2_BUILD_FRAME_INFO.
1057 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1058 unconditionally.
1059 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1060 DWARF2_BUILD_FRAME_INFO.
1061
1062 2003-07-18 Andrew Cagney <cagney@redhat.com>
1063
1064 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1065 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1066
1067 2003-07-18 Andrew Cagney <cagney@redhat.com>
1068
1069 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1070 frame_unwind_address_in_block, instead of frame_pc_unwind.
1071 (dwarf2_frame_cache): Ditto.
1072
1073 2003-07-18 Andrew Cagney <cagney@redhat.com>
1074
1075 * user-regs.h (struct gdbarch): Declare opaque.
1076 * ui-out.h (struct ui_file): Declare opaque.
1077 * dwarf2-frame.h (struct frame_info): Declare opaque.
1078
1079 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1080
1081 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1082 #include "...".
1083 (procfs_meminfo): Change strerror to safe_strerror.
1084 (procfs_can_run): Remove K&R badness.
1085
1086 2003-07-17 Michael Snyder <msnyder@redhat.com>
1087
1088 * remote-sim.c: Comment typo fix.
1089
1090 2003-07-17 Andrew Cagney <cagney@redhat.com>
1091
1092 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1093 configure.
1094 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1095 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1096 GDB_MULTI_ARCH_PARTIAL.
1097
1098 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1099
1100 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1101 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1102 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1103
1104 2003-07-16 Theodore A. Roth <troth@openavr.org>
1105
1106 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1107 found.
1108 (avr_frame_unwind_cache): Don't unwind FP for main.
1109 Update a comment.
1110 Save the computed prev_sp.
1111 (avr_saved_regs_unwinder): Remove function.
1112 (avr_frame_prev_register): Use PC unwind logic from
1113 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1114
1115 2003-07-16 Andrew Cagney <cagney@redhat.com>
1116
1117 * frame-base.h (frame_base_p_ftype): Delete definition.
1118 (frame_base_append_predicate): Delete declaration.
1119 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1120 (frame_unwind_append_predicate): Delete declaration.
1121 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1122 (append_predicate): Delete parameter "p".
1123 (frame_unwind_append_predicate): Delete function.
1124 (frame_unwind_append_sniffer): Update call to append_predicate.
1125 (frame_unwind_free): Delete function.
1126 (_initialize_frame_unwind): Pass NULL as "free" to
1127 register_gdbarch_data.
1128 (frame_unwind_init): Append the dummy_frame_sniffer.
1129 (frame_unwind_find_by_frame): Simplify.
1130 * frame-base.c (struct frame_base_table): Delete field "p".
1131 (append_predicate): Delete parameter "p".
1132 (frame_base_append_predicate): Delete function.
1133 (frame_base_append_sniffer): Update call to append_predicate.
1134 (frame_base_free): Delete function.
1135 (frame_base_find_by_frame): Simplify.
1136 (_initialize_frame_base): Pass NULL as "free" to
1137 register_gdbarch_data.
1138 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1139 (x86_64_sigtramp_frame_sniffer): Replace
1140 "x86_64_sigtramp_frame_p".
1141 (x86_64_init_abi): Set the frame unwind sniffers.
1142 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1143 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1144 (m68k_gdbarch_init): Set the frame unwind sniffers.
1145 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1146 "i386_sigtramp_frame_p".
1147 (i386_frame_sniffer): Replace "i386_frame_p".
1148 (i386_gdbarch_init): Set the frame unwind sniffers.
1149 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1150 (avr_gdbarch_init): Set the frame unwind sniffers.
1151 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1152 "alpha_sigtramp_frame_p"
1153 (alpha_heuristic_frame_sniffer): Replace
1154 "alpha_heuristic_frame_p".
1155 (alpha_gdbarch_init): Set the frame unwind sniffers.
1156 (alpha_dwarf2_init_abi): Ditto.
1157 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1158 "alpha_debug_frame_p".
1159 (alpha_mdebug_frame_base_sniffer): Replace
1160 "alpha_mdebug_frame_base_p".
1161 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1162 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1163 (d10v_gdbarch_init): Set the frame unwind sniffer.
1164 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1165 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1166 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1167 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1168 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1169 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1170
1171 2003-07-16 Michael Snyder <msnyder@redhat.com>
1172
1173 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1174 should go thru sh_dsp_register_sim_regno, else the dsp regs
1175 will not get the right values.
1176
1177 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1178
1179 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1180 deprecated_store_floating by call to store_typed_floating.
1181 (sh_sh4_register_convert_to_raw): Substitute call to
1182 deprecated_extract_floating by call to extract_typed_floating.
1183
1184 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1185
1186 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1187
1188 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1189
1190 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1191 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1192 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1193 as possible.
1194 (do_pseudo_register): Remove.
1195 (sh_push_dummy_code): New function.
1196 (sh64_store_struct_return): Rename from sh_store_struct_return.
1197 Only called for sh64 now.
1198 (sh_extract_struct_value_address): Regcache'ify.
1199 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1200 and accomodate new tasks.
1201 (sh64_push_return_address): Rename from sh_push_return_address.
1202 Only called for sh64 now.
1203 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1204 Regcache'ify.
1205 (sh3e_sh4_extract_return_value): Regcache'ify.
1206 (sh_default_store_return_value): Ditto.
1207 (sh3e_sh4_store_return_value): Ditto.
1208 (sh_default_register_byte): Remove.
1209 (sh_sh4_register_byte): Remove.
1210 (sh_default_register_raw_size): Remove.
1211 (sh_sh4_register_raw_size): Remove.
1212 (sh_register_virtual_size): Remove.
1213 (sh_sh3e_register_virtual_type): Remove.
1214 (sh_sh3e_register_type): New function.
1215 (sh_sh4_register_virtual_type): Remove.
1216 (sh_sh4_register_type): New function.
1217 (sh_default_register_virtual_type): Remove.
1218 (sh_default_register_type): New function.
1219 (do_fv_register_info): Add parameters to accomodate call from
1220 sh_print_registers_info.
1221 (do_dr_register_info): Ditto.
1222 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1223 Add parameters to accomodate call from sh_print_registers_info.
1224 (sh_do_fp_register): Ditto.
1225 (sh64_do_pseudo_register): Call do_dr_register_info,
1226 do_fv_register_info and sh_do_fp_register with default parameters.
1227 (sh_do_register): Add parameters to accomodate call from
1228 sh_print_registers_info.
1229 (sh_print_register): Ditto.
1230 (sh_print_registers_info): Rename from sh_do_registers_info.
1231 Add parameters to be used as gdbarch_print_registers_info
1232 implementation. Accomodate removed do_pseudo_register function
1233 pointer.
1234 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1235 function pointer. Call sh_print_register with default parameters.
1236 (sh64_do_registers_info): Call sh_print_registers_info instead of
1237 sh_do_registers_info.
1238 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1239 detection of deprecated vs. non-deprecated functionality.
1240 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1241 function pointer assignments by direct function calls.
1242
1243 2003-07-15 Andrew Cagney <cagney@redhat.com>
1244
1245 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1246 (frame_register_unwind, create_new_frame): Ditto.
1247 (legacy_get_prev_frame, get_frame_type): Ditto.
1248 (get_frame_base_address): Use frame_base_find_by_frame.
1249 (get_frame_locals_address): Use frame_base_find_by_frame.
1250 (get_frame_args_address): Use frame_base_find_by_frame.
1251 * frame-base.h (frame_base_sniffer_ftype): Declare.
1252 (frame_base_append_sniffer): Declare.
1253 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1254 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1255 (frame_base_append_sniffer): New function.
1256 (frame_base_append_predicate): Add a NULL sniffer.
1257 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1258 (struct frame_base_table): Add "sniffer".
1259 (frame_base_free): Free the "sniffer" table.
1260 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1261 (frame_unwind_append_sniffer): Declare.
1262 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1263 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1264 (struct frame_unwind_table): Add "sniffer", delete "middle".
1265 (append_predicate): Add "sniffer" parameter, append the sniffer.
1266 (frame_unwind_init): Update append_predicate call.
1267 (frame_unwind_append_sniffer): New function.
1268 (frame_unwind_append_predicate): Update append_predicate call.
1269 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1270
1271 2003-07-15 Andrew Cagney <cagney@redhat.com>
1272
1273 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1274 before code inhibiting repeated unwind attempts. Add to
1275 commentary on that test's problems.
1276 * blockframe.c (inside_main_func): Look for "main" in the minimal
1277 symbol table.
1278 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1279 identical.
1280
1281 2003-07-15 Andrew Cagney <cagney@redhat.com>
1282
1283 * complaints.c (struct explanation): Define.
1284 (struct complaints): Change type of "explanation" to "struct
1285 explanation".
1286 (symfile_explanations): Convert to a "struct explanation" table.
1287 (vcomplaint): Update.
1288
1289 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1290
1291 * x86-64-linux-nat.c (regmap): Removed.
1292 (supply_gregset, fill_gregset): Call
1293 x86_64_linux_(fill,supply)_gregset functions.
1294 * x86-64-linux-tdep.c (USER_*): New defines.
1295 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1296 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1297 New functions.
1298 (fetch_core_registers): Ditto.
1299 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1300 * x86-64-linux-tdep.h: New file.
1301 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1302 and core-regset.o.
1303 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1304
1305 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1306
1307 * x86-64-tdep.c (x86_64_store_return_value): Use
1308 regcache_cooked_write_part instead of regcache_cooked_write.
1309
1310 * configure.host: Add x86_64-*-freebsd*.
1311 * configure.tgt: Add x86_64-*-freebsd*.
1312 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1313 * amd64fbsd-nat.c: New file.
1314 * amd64fbsd-tdep.c: New file.
1315 * config/i386/nm-fbsd64.h: New file.
1316 * config/i386/fbsd64.mh: New file.
1317 * config/i386/fbsd64.mt: New file.
1318
1319 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1320
1321 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1322 `sc_regs_offset' and `sc_fpregs_offset'.
1323 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1324 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1325 (alpha_sigtramp_register_address): Rewrite to use new members of
1326 `struct gdbarch_tdep'.
1327 (alpha_gdbarch_init): Initialize new members of struct
1328 gdbarch_tdep'.
1329 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1330 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1331 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1332 (alphafbsd_pc_in_sigtramp): Implement.
1333 (alphafbsd_sigtramp_offset): New function.
1334 (alphafbsd_sigcontext_addr): New function.
1335 (alphafbsd_init_abi): Initialize signal trampoline related members
1336 of `struct gdbarch_tdep'.
1337 (_initialize_alphafbsd_tdep): Add prototype.
1338
1339 2003-07-11 Theodore A. Roth <troth@openavr.org>
1340
1341 * Makefile.in (install-only): Quote sed expression when generating
1342 transformed_name.
1343
1344 2003-07-11 Richard Henderson <rth@redhat.com>
1345
1346 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1347 * dwarf2-frame.c: Include complaints.h.
1348 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1349 variable initialization; return NULL on error.
1350 (decode_frame_entry): New.
1351
1352 2003-07-11 Andrew Cagney <cagney@redhat.com>
1353
1354 * frame.h (frame_address_in_block): Delete declaration.
1355 * blockframe.c (frame_address_in_block): Delete function.
1356 (get_frame_block): Use get_frame_address_in_block.
1357 (block_innermost_frame): Ditto.
1358 * stack.c (print_frame, backtrace_command_1): Ditto.
1359
1360 * frame.h (get_frame_address_in_block): Declare.
1361 (frame_unwind_address_in_block): Declare.
1362 * frame.c (frame_unwind_address_in_block): New function.
1363 (get_frame_address_in_block): New function.
1364
1365 2003-07-10 Andrew Cagney <cagney@redhat.com>
1366
1367 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1368 pre-default. Note: re-generate has no effect.
1369
1370 2003-07-10 Andrew Cagney <cagney@redhat.com>
1371
1372 * gdbarch.sh: When a variable, but not a function, compare against
1373 0. Fix problem in previous patch.
1374 * gdbarch.c: Re-generate.
1375
1376 2003-07-10 Andrew Cagney <cagney@redhat.com>
1377
1378 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1379 functions against NULL, not 0.
1380 * gdbarch.c: Re-generate.
1381
1382 2003-07-10 Fred Fish <fnf@ninemoons.com>
1383
1384 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1385 null string instead of a null pointer.
1386 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1387
1388 2003-07-09 Michael Snyder <msnyder@redhat.com>
1389
1390 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1391
1392 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1393
1394 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1395 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1396 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1397 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1398 * x86-64-tdep.c: ... from here.
1399
1400 2003-07-09 Andreas Schwab <schwab@suse.de>
1401
1402 * m68k-tdep.h (enum struct_return): Define.
1403 (struct gdbarch_tdep): Add struct_return.
1404 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1405 bytes are padded to the right, not to the left. Pass struct value
1406 address in register %a1, not on stack.
1407 (m68k_use_struct_convention): New function.
1408 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1409 struct_return in tdep to pcc_struct_return.
1410 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1411 reg_struct_return.
1412
1413 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1414
1415 * somread.c (som_symfile_offsets): Fix compilation error.
1416
1417 2003-07-09 Andrew Cagney <cagney@redhat.com>
1418
1419 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1420 Add comments about the checks.
1421
1422 2003-07-08 Andrew Cagney <cagney@redhat.com>
1423
1424 * Makefile.in: Make dependency section headers consistent.
1425 (config_h): Move to $BUILD headers section.
1426 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1427 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1428 (ada-exp.tab.c): Move to YACC/LEX section.
1429 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1430 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1431
1432 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1433
1434 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1435 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1436 of strerror with safe_strerror, use ISO C function definitions,
1437 and replace instances of sprintf with snprintf.
1438
1439 2003-07-07 Andrew Cagney <cagney@redhat.com>
1440
1441 * frame.c (get_prev_frame): Enable check for identical frames.
1442 Update comments. Update error messages.
1443
1444 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1445
1446 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1447
1448 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1449
1450 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1451 sort_symtab_syms, no longer necessary.
1452
1453 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1454
1455 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1456
1457 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1458
1459 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1460 (mips_register_byte): Likewise.
1461
1462 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1463
1464 * Makefile.in (sparc_tdep_h): New.
1465 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1466 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1467 * sparc-linux-nat.c: Include "sparc-tdep.h".
1468 * sparc-nat.c: Likewise.
1469 * sparc-tdep.c: Likewise.
1470 * sparc64nbsd-nat.c: Likewise.
1471 * sparcnbsd-nat.c: Likewise.
1472 * sparcnbsd-tdep.c: Likewise.
1473 * sparc-tdep.h: New file.
1474 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1475 and sparc_npc_regnum.
1476
1477 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1478
1479 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1480 (mips_linux_cannot_store_register): List supported instead of
1481 unsupported registers.
1482
1483 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1484
1485 * disasm.c (dump_insns): Separate instructions from addresses.
1486
1487 2003-07-07 Andreas Schwab <schwab@suse.de>
1488
1489 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1490 dependencies.
1491 * m68k-tdep.c (NUM_FREGS): Delete.
1492 (SIG_PC_FP_OFFSET): Delete.
1493 (TARGET_M68K): Delete.
1494 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1495 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1496 P_MOVEL_SP, P_MOVEML_SP): Define.
1497 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1498 P_TRAP): Delete.
1499 (m68k_register_raw_size): Delete.
1500 (m68k_register_virtual_size): Delete.
1501 (m68k_register_type): Renamed from m68k_register_virtual_type and
1502 add gdbarch argument.
1503 (m68k_store_struct_return): Delete.
1504 (m68k_deprecated_extract_return_value): Delete.
1505 (m68k_deprecated_extract_struct_value_address): Delete.
1506 (m68k_frame_chain): Delete.
1507 (m68k_frame_saved_pc): Delete.
1508 (m68k_fix_call_dummy): Delete.
1509 (m68k_push_dummy_frame): Delete.
1510 (m68k_pop_frame): Delete.
1511 (m68k_extract_return_value): New function.
1512 (m68k_store_return_value): Rewrite using regcache.
1513 (m68k_extract_struct_value_address): Rewrite using regcache.
1514 (m68k_push_dummy_call): New function.
1515 (struct m68k_frame_cache): Define.
1516 (m68k_alloc_frame_cache): New function.
1517 (m68k_analyze_frame_setup): New function.
1518 (m68k_analyze_register_saves): New function.
1519 (m68k_analyze_prologue): New function.
1520 (m68k_skip_prologue): Rewrite using above functions.
1521 (m68k_unwind_pc): New function.
1522 (m68k_frame_cache): New function.
1523 (m68k_frame_this_id): New function.
1524 (m68k_frame_prev_register): New function.
1525 (m68k_frame_unwind): New variable.
1526 (m68k_frame_p): New function.
1527 (m68k_sigtramp_frame_cache): New function.
1528 (m68k_sigtramp_frame_this_id): New function.
1529 (m68k_sigtramp_frame_prev_register): New function.
1530 (m68k_sigtramp_frame_unwind): New variable.
1531 (m68k_sigtramp_frame_p): New function.
1532 (m68k_frame_base_address): New function.
1533 (m68k_frame_base): New function.
1534 (m68k_unwind_dummy_id): New function.
1535 (fill_gregset): Use regcache_collect.
1536 (fill_fpregset): Likewise.
1537 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1538 defined.
1539 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1540 deprecated_init_frame_pc, deprecated_store_struct_return,
1541 deprecated_extract_return_value, deprecated_store_return_value,
1542 deprecated_frame_chain, deprecated_frame_saved_pc,
1543 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1544 deprecated_register_virtual_size,
1545 deprecated_max_register_raw_size,
1546 deprecated_max_register_virtual_size,
1547 deprecated_register_virtual_type, deprecated_register_size,
1548 deprecated_register_byte, deprecated_register_bytes,
1549 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1550 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1551 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1552 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1553 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1554 deprecated_push_dummy_frame, deprecated_pop_frame,
1555 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1556 only if SYSCALL_TRAP is defined. Set extract_return_value,
1557 store_return_value, extract_struct_value_address, register_type,
1558 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1559 predicates.
1560 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1561 M68K_MAX_REGISTER_SIZE): Define.
1562 (struct m68k_sigtramp_info): Define.
1563 (struct gdbarch_tdep): Add get_sigtramp_info.
1564 * m68klinux-nat.c (fetch_register): Use register_size instead of
1565 REGISTER_RAW_SIZE. Don't put assignment in if.
1566 (store_register): Likewise.
1567 (fetch_inferior_registers): Likewise.
1568 (store_inferior_registers): Likewise.
1569 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1570 (m68k_linux_frame_saved_pc): Delete.
1571 (m68k_linux_sigcontext_reg_offset,
1572 m68k_linux_ucontext_reg_offset): Define.
1573 (m68k_linux_get_sigtramp_info): New function.
1574 (m68k_linux_extract_return_value): Rewrite using regcache.
1575 (m68k_linux_store_return_value): Likewise.
1576 (m68k_linux_extract_struct_value_address): Likewise.
1577 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1578 Don't set deprecated_frame_saved_pc,
1579 deprecated_extract_return_value, deprecated_store_return_value,
1580 deprecated_extract_struct_value_address. Set
1581 extract_return_value, store_return_value,
1582 extract_struct_value_address.
1583
1584 2003-07-07 Andrew Cagney <cagney@redhat.com>
1585
1586 * expprint.c: Include "user-regs.h" instead of "frame.h".
1587 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1588 frame_map_regnum_to_name.
1589 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1590 (frame_map_name_to_regnum): Simplify, call
1591 user_reg_map_name_to_regnum.
1592 (frame_map_regnum_to_name): Simplify, call
1593 user_reg_map_regnum_to_name.
1594 (frame_register_unwind): Update.
1595 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1596 (_initialize_frame_reg): Call user_reg_add_builtin.
1597 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1598 (value_of_register): Use value_of_user_reg.
1599 * eval.c (evaluate_subexp_standard): Update.
1600 * parse.c (write_dollar_variable): Update.
1601 * d10v-tdep.c (d10v_print_registers_info): Update.
1602 * infcmd.c (registers_info): Update.
1603 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1604 (builtin_regs_h): Delete macro.
1605 (user_regs_h): Define.
1606 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1607 (builtin-regs.o): Delete target.
1608 (user-regs.o): Specify dependencies.
1609 (expprint.o): Update dependencies.
1610 (findvar.o): Update dependencies.
1611 (frame.o): Update dependencies.
1612 (std-regs.o): Update dependencies.
1613
1614 2003-07-06 Christopher Faylor <cgf@redhat.com>
1615
1616 * win32-nat.c (solib_symbols_add): Use one variable for all section
1617 address stuff. Pass variable rather than address of variable to
1618 safe_symbol_file_add.
1619
1620 2003-07-06 Andreas Schwab <schwab@suse.de>
1621
1622 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1623
1624 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1625
1626 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1627
1628 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1629
1630 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1631
1632 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1633
1634 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1635 * config/i386/nto.mh: New file.
1636 * config/i386/nm-nto.h: New file.
1637 * configure.host: Add i[3456]86-*-nto*.
1638
1639 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1640
1641 * remote-vx.c (vx_add_symbols): Fix compilation error.
1642
1643 2003-07-03 Andrew Cagney <cagney@redhat.com>
1644
1645 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1646 * gdbarch.h, gdbarch.c: Re-generate.
1647 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1648 (legacy_register_name): Declare.
1649 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1650 (REGISTER_NAME): Define.
1651 * sparc-tdep.c (legacy_register_name): New function.
1652 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1653 (REGISTER_NAME): Define.
1654 (hppa64_register_name): Declare.
1655 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1656 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1657 (hppa64_register_name): New function.
1658 (hppa_register_name): New function.
1659 * arch-utils.c (legacy_register_name): Delete.
1660 * arch-utils.h (legacy_register_name): Delete.
1661
1662 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1663
1664 * cli/cli-interp.c (cli_interpreter_resume): Update the
1665 cli_uiout's stream to gdb_stdout.
1666
1667 2003-07-03 Andrew Cagney <cagney@redhat.com>
1668
1669 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1670 predicate.
1671 * gdbarch.h, gdbarch.c: Re-generate.
1672 * regcache.c (init_regcache_descr): Use legacy code when either
1673 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1674
1675 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1676
1677 * NEWS: Move "set logging" entry into GDB 6.0 section.
1678
1679 2003-07-02 Jim Blandy <jimb@redhat.com>
1680
1681 * s390-tdep.c (struct frame_extra_info): new member:
1682 'stack_bought_valid'.
1683 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1684 initialize fextra_info->stack_bought.
1685 (s390_frameless_function_invocation): Don't trust the value of
1686 fextra_info_ptr->stack_bought unless
1687 fextra_info->stack_bought_valid is set.
1688
1689 New S390 prologue analyzer.
1690 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1691 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1692 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1693 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1694 compute_x_addr, s390_on_stack, s390_store,
1695 s390_get_signal_frame_info): New functions.
1696 (S390_NUM_SPILL_SLOTS): New macro.
1697 (s390_get_frame_info): Rewritten.
1698 (is_arg_reg): Deleted.
1699
1700 Break out the decoding of S/390 instructions into separate
1701 functions, to make it more legible, and easier to check
1702 against the spec.
1703 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1704 is_rx, is_rxe): New functions.
1705 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1706 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1707 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1708 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1709 enums for opcode values. (Is this an improvement?)
1710
1711 2003-07-02 Andrew Cagney <cagney@redhat.com>
1712
1713 * i386-tdep.c: Revert change committed as part of trad-frame code
1714 below.
1715
1716 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1717
1718 * breakpoint.c (insert_catchpoint): Make static.
1719
1720 2003-07-02 Andreas Schwab <schwab@suse.de>
1721
1722 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1723 former ia64_push_arguments and ia64_push_return_address, and use
1724 regcache functions instead of read/write_register.
1725 (ia64_gdbarch_init): Set push_dummy_call instead of
1726 deprecated_push_arguments and deprecated_push_return_address.
1727
1728 2003-07-01 Andreas Jaeger <aj@suse.de>
1729
1730 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1731 before the call.
1732 Set %rax only to number of SSE registers used.
1733
1734 2003-07-01 Andrew Cagney <cagney@redhat.com>
1735
1736 * trad-frame.h: Update comments, a -1 .addr is reserved.
1737 (trad_frame_value_p, trad_frame_addr_p): Declare.
1738 (trad_frame_reg_p): Declare.
1739 (trad_frame_set_value): Rename trad_frame_register_value.
1740 (trad_frame_set_unknown): Declare.
1741 * trad-frame.c (trad_frame_realreg_p): New function.
1742 (trad_frame_addr_p, trad_frame_value_p): New function.
1743 (trad_frame_set_unknown): New function.
1744 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1745 (trad_frame_prev_register): Use trad_frame_realreg_p,
1746 trad_frame_addr_p and trad_frame_value_p.
1747 (trad_frame_set_value): Rename trad_frame_register_value.
1748 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1749 and trad_frame_set_value.
1750
1751 2003-06-30 Jim Blandy <jimb@redhat.com>
1752
1753 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1754 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1755 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1756 for 16 registers, and then 32 more bytes.
1757 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1758 New macros.
1759 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1760 Move up in the file, since it's now used by is_simple_arg.
1761 (is_simple_arg): Don't assume registers are four bytes long.
1762 Exclude all double arguments. Extended floats are not simple
1763 args.
1764 (is_power_of_two): New function.
1765 (pass_by_copy_ref): Call is_power_of_two, and check that the
1766 length fits in a register, rather than listing all the acceptable
1767 sizes. Extended floats are not passed by reference.
1768 (s390_push_arguments): Don't assume registers are four bytes long.
1769 Reserve an argument register to point to the buffer for structures
1770 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1771 S390_STACK_FRAME_OVERHEAD.
1772
1773 2003-06-30 Andreas Schwab <schwab@suse.de>
1774
1775 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1776 format error message.
1777
1778 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1779
1780 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1781
1782 2003-06-30 David Carlton <carlton@kealia.com>
1783
1784 Band-aid for PR c++/1245.
1785 * Makefile.in (cp-support.o): Depend on complaints_h.
1786 * cp-support.c: Include complaints.h. Add declaration for
1787 find_last_component.
1788 (cp_find_first_component): Separate code into
1789 cp_find_first_component_aux.
1790 (cp_find_first_component_aux): Call demangled_name_complaint.
1791 (demangled_name_complaint): New.
1792
1793 2003-06-30 Andrew Cagney <cagney@redhat.com>
1794
1795 * remote.c (remote_write_bytes): Explicitly compute and then use
1796 the payload size. Update comments to reflect. Fixes problem of
1797 GDB not sending small packets as found by Fred Fish.
1798
1799 2003-06-30 Andrew Cagney <cagney@redhat.com>
1800
1801 * remote.c (remote_async_wait): Fix -Wformat problem.
1802
1803 2003-06-29 Andrew Cagney <cagney@redhat.com>
1804
1805 * remote.c (remote_wait): Call error, and not warning, when the
1806 packet is corrupt.
1807 (remote_async_wait): Ditto.
1808
1809 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1810
1811 * sparc-tdep.c (sparc_y_regnum): Make external again.
1812
1813 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1814
1815 * cli/cli-logging.c (pop_output_files): Add void to function
1816 definition.
1817
1818 2003-06-29 Andrew Cagney <cagney@redhat.com>
1819
1820 * frame.c (frame_register_unwind): Use unsigned char when dumping
1821 the buffer contents.
1822
1823 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1824
1825 * cli/cli-logging.c: New file.
1826 * cli-out.c (struct ui_out_data): Add original_stream.
1827 (cli_redirect): New function.
1828 (cli_ui_out_impl): Add cli_redirect.
1829 (cli_out_new): Initialize original_stream.
1830 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1831 (uo_redirect, ui_out_redirect): New.
1832 * ui-out.h (struct ui_out_impl): Add redirect member.
1833 (redirect_ftype): New.
1834 (ui_out_redirect): Add prototype.
1835 * Makefile.in: Add rules for cli-logging.c.
1836 * NEWS: Mention "set logging".
1837
1838 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1839
1840 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1841
1842 2003-06-27 Andrew Cagney <cagney@redhat.com>
1843
1844 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1845 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1846 * avr-tdep.c (avr_call_dummy_address): Delete function.
1847 (avr_gdbarch_init): Do not set call_dummy_address.
1848
1849 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1850
1851 * symfile.c (syms_from_objfile): Move variables to inner block.
1852 Move the checks for the non-mainline case a bit earlier to avoid
1853 doing some useless computations.
1854
1855 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1856
1857 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1858
1859 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1860
1861 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1862 sections.
1863
1864 2003-06-26 Michael Chastain <mec@shout.net>
1865
1866 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1867 gdb/testsuite/gdb.c++/pr-1210.exp.
1868
1869 2003-06-26 Andrew Cagney <cagney@redhat.com>
1870
1871 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1872 altivec_expression.h and altivec_registers.h.
1873
1874 2003-06-26 Andrew Cagney <cagney@redhat.com>
1875
1876 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1877 info->mach when MIPS16. Patch suggested by Fred Fish.
1878
1879 2003-06-26 Andrew Cagney <cagney@redhat.com>
1880
1881 * utils.c (internal_vproblem): Print the problem to a reason
1882 buffer and then pass to query. Make the msg variable more local.
1883
1884 2003-06-26 Andrew Cagney <cagney@redhat.com>
1885
1886 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1887 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1888 * gdbarch.h, gdbarch.c: Re-generate.
1889 * frame-base.c (default_frame_args_address): Update. Use
1890 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1891 not available.
1892 (default_frame_locals_address): Ditto for
1893 DEPRECATED_FRAME_LOCALS_ADDRESS.
1894 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1895 (vax_frame_num_args): Update.
1896 (vax_gdbarch_init): Update.
1897 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1898 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1899 * mcore-tdep.c (mcore_gdbarch_init): Update.
1900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1901 * ia64-tdep.c (ia64_gdbarch_init): Update.
1902 * symtab.h (address_class): Update comments.
1903 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1904 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1905 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1906 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1907 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1908 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1909 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1910 * alpha-mdebug-tdep.c: Update.
1911 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1912
1913 2003-06-26 Andreas Jaeger <aj@suse.de>
1914
1915 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1916 of SSE registers so that varargs functions work. Rework handling
1917 of passing arguments on the stack.
1918 (x86_64_store_return_value): Return double and float values in SSE
1919 register.
1920
1921 2003-06-24 Michael Chastain <mec@shout.net>
1922
1923 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1924 the "constructor breakpoints ignored" bug.
1925
1926 2003-06-25 David Carlton <carlton@kealia.com>
1927
1928 * MAINTAINERS: Update e-mail address.
1929
1930 2003-06-24 Jim Blandy <jimb@redhat.com>
1931
1932 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1933
1934 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1935 function.
1936 (ppc_linux_init_abi): Register it as the
1937 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1938
1939 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1940 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1941 method.
1942
1943 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1944 (ppc64_standard_linkage_target): Use it.
1945
1946 2003-06-23 Andrew Cagney <cagney@redhat.com>
1947
1948 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1949 for 0 "int0" and 4 "int32" sized registers.
1950 * gdbtypes.c (builtin_type_int0): Define.
1951 (build_gdbtypes): Initialize builtin_type_int0.
1952 * gdbtypes.h (builtin_type_int0): Declare.
1953
1954 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1955
1956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1957 as characters are unsigned.
1958
1959 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1960
1961 PR gdb/1179
1962 * dwarfread.c (struct_type): Skip static fields without crashing.
1963
1964 2003-06-22 Andrew Cagney <cagney@redhat.com>
1965
1966 GDB 6.0 branch created.
1967 * README: Update.
1968 * PROBLEMS: Update. Empty.
1969 * NEWS: Update.
1970
1971 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1972
1973 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1974 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1975
1976 2003-06-22 Andrew Cagney <cagney@redhat.com>
1977
1978 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1979 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1980 Velikov.
1981
1982 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1983
1984 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1985 compilers.
1986
1987 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1988
1989 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1990 argument of val_print.
1991 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1992 to the address argument of baseclass_offset or target_read_memory.
1993 Do add it to the argument of cp_print_value_fields.
1994
1995 2003-06-21 Andrew Cagney <cagney@redhat.com>
1996
1997 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1998 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1999 instead of 0..NUM_REGS.
2000 (mips_register_reggroup_p): New function.
2001 (mips_pseudo_register_write): New function.
2002 (mips_pseudo_register_read): New function.
2003 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2004 based on the register's type.
2005 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2006 cooked.
2007 (mips_get_saved_register): Simplify. Assert that REGNO is a
2008 pseudo / cooked.
2009 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2010 (mips_register_type): Replace mips_register_virtual_type. Map
2011 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2012 when available.
2013 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2014 that the register is cooked / virtual.
2015 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2016 Only get the extra info when needed.
2017 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2018 (mips32_heuristic_proc_desc): Fetch the cooked register.
2019 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2020 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2021 (mips_print_register): Use gdbarch_register_type, instead of
2022 REGISTER_VIRTUAL_TYPE.
2023 (print_gp_register_row): Use gdbarch_register_type, instead of
2024 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2025 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2026 Print the pseudo / cooked registers.
2027 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2028 Print the pseudo / cooked registers.
2029 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2030 REG_NUM is pseudo / cooked.
2031 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2032 (mips_n32n64_xfer_return_value): Ditto.
2033 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2034 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2035 (mips_register_sim_regno): New function.
2036 (mips_gdbarch_init): Set deprecated_register_byte,
2037 register_group_p, pseudo_register_write, pseudo_register_read,
2038 register_sim_regno, and num_pseudo_regs. Set register_type,
2039 instead of register_virtual_type.
2040 * Makefile.in (mips-tdep.o): Update dependencies.
2041 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2042 REGISTER_VIRTUAL_TYPE.
2043 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2044 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2045 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2046 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2047 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2048
2049 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2050
2051 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2052 * cli/cli-cmds.c: Include "gdb_vfork.h".
2053 (shell_escape): Use vfork.
2054
2055 2003-06-21 Andrew Cagney <cagney@redhat.com>
2056
2057 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2058 32 bit floating-point register saves.
2059
2060 * frame.h (deprecated_unwind_get_saved_register): Delete.
2061 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2062 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2063 and deprecated_get_next_frame_hack instead of
2064 deprecated_unwind_get_saved_register.
2065
2066 * mips-tdep.c (mips_dump_tdep): Do not print
2067 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2068
2069 * frame.c (get_frame_register): New function.
2070 (frame_unwind_register_signed): New function.
2071 (get_frame_register_signed): New function.
2072 (frame_unwind_register_unsigned): New function.
2073 (get_frame_register_unsigned): New function.
2074 * frame.h: Add comments on naming schema.
2075 (get_frame_register, frame_unwind_register_signed): Declare.
2076 (get_frame_register_signed, get_frame_register_signed): Declare.
2077 (frame_unwind_register_unsigned): Declare.
2078 (get_frame_register_unsigned): Declare.
2079
2080 2003-06-20 Theodore A. Roth <troth@openavr.org>
2081
2082 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2083
2084 2003-06-20 Theodore A. Roth <troth@openavr.org>
2085
2086 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2087 (avr_read_sp): Ditto.
2088
2089 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2090
2091 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2092 * config/arm/nm-linux.h: Likewise.
2093 * config/arm/tm-linux.h: Likewise.
2094 * config/ia64/nm-linux.h: Likewise.
2095 * config/ia64/tm-ia64.h: Likewise.
2096 * config/s390/tm-linux.h: Likewise.
2097 * config/s390/tm-s390.h: Likewise.
2098 * s390-nat.c: Likewise.
2099 * s390-tdep.c: Likewise.
2100
2101 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2102 * config/ia64/linux.mt: Likewise.
2103 * config/m68k/linux.mh: Likewise.
2104 * config/mips/linux.mt: Likewise.
2105 * config/powerpc/linux.mh: Likewise.
2106 * config/sh/linux.mt: Likewise.
2107
2108 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2109
2110 * solib.c (solib_open): Change tests for whether to search
2111 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2112 comments.
2113
2114 2003-06-19 Theodore A. Roth <troth@openavr.org>
2115
2116 * avr-tdep.c (avr_frame_address): Delete function.
2117 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2118 set_gdbarch_frame_args_address.
2119
2120 2003-06-19 Andrew Cagney <cagney@redhat.com>
2121
2122 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2123 (REGISTER_CONVERT_FROM_TYPE): Delete.
2124 (mips_register_convert_to_type): Delete declaration.
2125 (mips_register_convert_from_type): Delete declaration.
2126 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2127 kernel/.
2128
2129 2003-06-19 Michael Snyder <msnyder@redhat.com>
2130
2131 * linux-nat.h: New file.
2132 * linux-nat.c: Include linux-nat.h.
2133 * lin-lwp.c: Include linux-nat.h.
2134 Move struct lwp_info def to linux-nat.h.
2135 * linux-proc.c: Include linux-nat.h.
2136 (linux_make_note_section): Iterate over lwps instead of threads.
2137 (linux_do_thread_registers): Use lwp instead of merged pid.
2138 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2139 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2140 Add dependency on linux_nat_h.
2141
2142 2003-06-19 Theodore A. Roth <troth@openavr.org>
2143
2144 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2145
2146 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2147
2148 * varobj.c (get_type, get_target_type): Use check_typedef.
2149
2150 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2151
2152 * breakpoint.c (insert_catchpoint): Call internal_error.
2153
2154 2003-06-19 Theodore A. Roth <troth@openavr.org>
2155
2156 * avr-tdep.c (avr_push_dummy_code): Delete function.
2157 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2158
2159 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2160
2161 * arch-utils.c (default_prepare_to_proceed): Remove.
2162 (generic_prepare_to_proceed): Remove.
2163 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2164 (generic_prepare_to_proceed): Remove prototype.
2165 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2166 * gdbarch.c: Regenerate.
2167 * gdbarch.h: Regenerate.
2168 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2169 * hppah-nat.c (hppa_switched_threads): Remove.
2170 * infrun.c (prepare_to_proceed): New static function, copied from
2171 generic_prepare_to_proceed. Remove select_it argument.
2172 (proceed): Call prepare_to_proceed.
2173 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2174 variables.
2175 (ptrace_wait): Don't set the removed variables.
2176 (hppa_switched_threads): Remove.
2177 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2178 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2179 (lin_lwp_prepare_to_proceed): Remove prototype.
2180 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2181 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2182
2183 2003-06-18 Theodore A. Roth <troth@openavr.org>
2184
2185 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2186 trad-frame.h.
2187 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2188 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2189 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2190 (AVR_PROLOGUE_*): Enumerate prologue types.
2191 (struct frame_extra_info): Remove.
2192 (struct avr_unwind_cache): Define.
2193 (avr_write_sp): Delete function.
2194 (avr_read_fp): Ditto.
2195 (avr_init_extra_frame_info): Ditto.
2196 (avr_pop_frame): Ditto.
2197 (avr_frame_saved_pc): Ditto.
2198 (avr_saved_pc_after_call): Ditto.
2199 (avr_push_return_address): Ditto.
2200 (avr_frame_chain): Ditto.
2201 (avr_store_struct_return): Ditto.
2202 (avr_push_arguments): Ditto.
2203 (avr_scan_prologue): Update comments. Changed to set up the info for
2204 cache unwinding. Now returns end of prologue PC.
2205 (avr_skip_prologue): Better handling of functions lacking a prologue
2206 by using avr_scan_prologue.
2207 (avr_scan_arg_moves): New function.
2208 (avr_saved_regs_unwinder): Ditto.
2209 (avr_frame_unwind_cache): Ditto.
2210 (avr_unwind_pc): Ditto.
2211 (avr_frame_this_id): Ditto.
2212 (avr_frame_prev_register): Ditto.
2213 (avr_frame_p): Ditto.
2214 (avr_frame_base_address ): Ditto.
2215 (avr_unwind_dummy_id): Ditto.
2216 (avr_push_dummy_code): Ditto.
2217 (push_stack_item): Ditto.
2218 (pop_stack_item): Ditto.
2219 (avr_push_dummy_call): Ditto.
2220 (struct stack_item): Define.
2221 (avr_frame_unwind): Declare structure.
2222 (avr_frame_base): Ditto.
2223 (avr_gdbarch_init): Remove calls to
2224 set_gdbarch_deprecated_init_frame_pc,
2225 set_gdbarch_deprecated_target_read_fp,
2226 set_gdbarch_deprecated_dummy_write_sp,
2227 set_gdbarch_deprecated_fp_regnum,
2228 set_gdbarch_deprecated_push_arguments,
2229 set_gdbarch_deprecated_push_return_address,
2230 set_gdbarch_deprecated_pop_frame,
2231 set_gdbarch_deprecated_store_struct_return,
2232 set_gdbarch_deprecated_frame_init_saved_regs,
2233 set_gdbarch_deprecated_init_extra_frame_info,
2234 set_gdbarch_deprecated_frame_chain,
2235 set_gdbarch_deprecated_frame_saved_pc,
2236 set_gdbarch_deprecated_saved_pc_after_call.
2237 Add calls to set_gdbarch_push_dummy_call,
2238 set_gdbarch_push_dummy_code,
2239 frame_unwind_append_predicate,
2240 frame_base_set_default,
2241 set_gdbarch_unwind_dummy_id,
2242 set_gdbarch_unwind_pc.
2243 Wrap a long line.
2244
2245 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2246
2247 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2248 registers for H8/300S.
2249 (h8300_print_registers_info): Ditto.
2250 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2251
2252 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2253
2254 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2255 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2256 (lin_lwp_wait): Likewise. Update comments.
2257 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2258 (pull_pid_from_list, linux_record_stopped_pid): New.
2259
2260 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2261
2262 * ada-lang.c (scan_discrim_bound): Name first argument.
2263 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2264 declared by ALL_BLOCK_SYMBOLS.
2265
2266 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2267
2268 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2269 ("regcache.h"): Include it.
2270 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2271
2272 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2273
2274 * NEWS: Mention gdbserver detach change and "disconnect" command.
2275 * infcmd.c (disconnect_command): New function.
2276 (_initialize_infcmd): Add ``disconnect'' command.
2277 * remote.c (remote_async_detach): Delete.
2278 (remote_detach): Merge remote_async_detach.
2279 (remote_disconnect): New.
2280 (init_remote_ops): Set to_disconnect.
2281 (init_remote_cisco_ops): Likewise.
2282 (init_remote_async_ops): Likewise. Use remote_detach.
2283 * target.c (cleanup_target): Default to_disconnect.
2284 (update_current_target): Inherit to_disconnect.
2285 (target_disconnect, debug_to_disconnect): New functions.
2286 (setup_target_debug): Set to_disconnect.
2287 * target.h (struct target_ops): Add to_disconnect.
2288 (target_disconnect): Add prototype.
2289
2290 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2291
2292 * breakpoint.c (insert_catchpoint): New function.
2293 (insert_breakpoints): Use catch_exceptions to call
2294 insert_catchpoint. Disable catchpoints if they fail to insert.
2295
2296 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2297
2298 * symfile.c (reread_symbols): Clear sym_private.
2299
2300 2003-06-17 Andrew Cagney <cagney@redhat.com>
2301
2302 * trad-frame.h (struct frame_info): Add opaque declaration.
2303 * remote-fileio.h (struct cmd_list_element): Add opaque
2304 declaration.
2305 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2306 comments.
2307
2308 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2309
2310 * remote.c (remote_prepare_to_store): Replace call to
2311 deprecated_read_register_bytes with multiple regcache_raw_read
2312 calls.
2313
2314 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2315
2316 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2317 (nto_find_and_open_solib): Likewise.
2318 (nto_init_solib_absolute_prefix): Likewise.
2319 (_initialize_nto_tdep): Fix indentation.
2320
2321 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2322
2323 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2324
2325 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2326
2327 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2328
2329 2003-06-17 Jim Blandy <jimb@redhat.com>
2330
2331 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2332
2333 2003-06-16 Theodore A. Roth <troth@openavr.org>
2334
2335 * avr-tdep.c (avr_extract_return_value): New function.
2336 (avr_gdbarch_init): Set extract_return_value method.
2337
2338 2003-06-16 Andrew Cagney <cagney@redhat.com>
2339
2340 * frame.h (deprecated_get_next_frame_hack): Declare.
2341 * frame.c (legacy_saved_regs_prev_register): Only require
2342 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2343 there are always saved regs.
2344 (deprecated_generic_get_saved_register): Do not require
2345 DEPRECATED_FRAME_INIT_SAVED_REGS.
2346 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2347 use frame ID unwind instead.
2348 (deprecated_get_next_frame_hack): New function.
2349
2350 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2351
2352 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2353 (h8300_push_dummy_call): ...this function. Some minor optimization.
2354 (h8300_push_return_address): Remove.
2355 (h8300_gdbarch_init): Remove calls to
2356 set_gdbarch_deprecated_dummy_write_sp,
2357 set_gdbarch_deprecated_push_arguments and
2358 set_gdbarch_deprecated_push_return_address.
2359 Add call to set_gdbarch_push_dummy_call.
2360
2361 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2362
2363 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2364 (E_PSEUDO_EXR_REGNUM): Ditto.
2365 (h8300_is_argument_spill): Check for instructions moving argument
2366 registers into safe registers.
2367 (h8300_skip_prologue): Check for stm instruction to push registers
2368 used for register variables onto stack.
2369 (gdb_print_insn_h8300): Remove.
2370 (h8300_examine_prologue): Add a comment.
2371 (h8300_register_name): Take pseudo registers into account.
2372 (h8300s_register_name): Ditto.
2373 (h8300sx_register_name): Ditto.
2374 (h8300_print_register): Ditto.
2375 (h8300_print_registers_info): Define "nice" printing order.
2376 (h8300_saved_pc_after_call): Take pseudo registers into account.
2377 (h8300_register_type): Ditto. Return type used for remote connection
2378 when requesting real CCR or EXR register, return actual type when
2379 requesting pseudo CCR or EXR.
2380 (h8300_pseudo_register_read): New function.
2381 (h8300_pseudo_register_write): Ditto.
2382 (h8300_dbg_reg_to_regnum): Ditto.
2383 (h8300s_dbg_reg_to_regnum): Ditto.
2384 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2385 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2386 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2387 set_gdbarch_print_insn architecture dependent.
2388 Call set_gdbarch_pseudo_register_read and
2389 set_gdbarch_pseudo_register_write.
2390 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2391
2392 2003-06-16 Andrew Cagney <cagney@redhat.com>
2393
2394 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2395 * gdbarch.h, gdbarch.c: Re-generate.
2396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2397 * s390-tdep.c (s390_gdbarch_init): Update.
2398 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2399 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2400 * mips-tdep.c (mips_gdbarch_init): Update.
2401 * mcore-tdep.c (mcore_gdbarch_init): Update.
2402 * cris-tdep.c (cris_gdbarch_init): Update.
2403 * infcall.c (call_function_by_hand): Update.
2404 * ia64-tdep.c (ia64_push_arguments): Update comment.
2405 * frame.c (legacy_get_prev_frame): Do not assume
2406 SAVE_DUMMY_FRAME_TOS_P.
2407 * dummy-frame.c (find_dummy_frame): Update comment.
2408
2409 2003-06-16 Andrew Cagney <cagney@redhat.com>
2410
2411 * regcache.c (do_cooked_read): Do not use register_valid_p.
2412
2413 2003-06-15 Theodore A. Roth <troth@openavr.org>
2414
2415 * avr-tdep.c (avr_register_type): Remove a blank line.
2416 (avr_scan_prologue): Correct some comments.
2417
2418 2003-06-15 Theodore A. Roth <troth@openavr.org>
2419
2420 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2421 prologue types.
2422 Properly scan prologues generated by gcc with the -mcall-prologues
2423 option.
2424 Add code to scan -mcall-prologues for mega devices.
2425
2426 2003-06-15 Theodore A. Roth <troth@openavr.org>
2427
2428 * avr-tdep.c (avr_register_byte): Delete function.
2429 (avr_register_raw_size): Delete function.
2430 (avr_register_virtual_size): Delete function.
2431 (avr_register_virtual_type): Delete function.
2432 (avr_register_type): New function.
2433 (avr_address_to_pointer): Remove unused code.
2434 (avr_read_fp): Need to read FP as two separate bytes due to change to
2435 avr_register_type() usage.
2436 (avr_gdbarch_init): Don't set deprecated_register_size.
2437 Don't set deprecated_register_bytes.
2438 Don't set deprecated_register_byte.
2439 Don't set deprecated_register_raw_size.
2440 Don't set deprecated_max_register_raw_size.
2441 Don't set deprecated_register_virtual_size.
2442 Don't set deprecated_max_register_virtual_size.
2443 Don't set deprecated_register_virtual_type.
2444 Set register_type method.
2445
2446 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2447
2448 * Makefile.in (linux-nat.o): Add rule.
2449 * linux-nat.c: New file.
2450 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2451 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2452 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2453 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2454 * config/arm/linux.mh (NATDEPFILES): Likewise.
2455 * config/i386/linux.mh (NATDEPFILES): Likewise.
2456 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2457 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2458 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2459 * config/mips/linux.mh (NATDEPFILES): Likewise.
2460 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2461 * config/s390/s390.mh (NATDEPFILES): Likewise.
2462 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2463
2464 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2465
2466 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2467 replace out-of-date comment.
2468
2469 2003-06-15 Andrew Cagney <cagney@redhat.com>
2470
2471 * rdi-share/host.h (Fail): Change to a varargs function.
2472 * remote-rdi.c (Fail): Update.
2473
2474 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2475
2476 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2477 (i386_convert_register_p, i386_register_to_value,
2478 i386_register_from_value): Handle types longer than 8 bytes.
2479
2480 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2481
2482 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2483 Move floating-point code to new function in i387-tdep.c.
2484 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2485 New functions containing code moved here from i386-tdep.c.
2486 * i387-tdep.h: Add opaque declaration for `struct type'.
2487 (i387_register_to_value, i387_value_to_register): New prototypes.
2488 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2489 (x86_64_init_abi): Set convert_register_p, register_to_value and
2490 value_to_register here.
2491
2492 2003-06-14 Andrew Cagney <cagney@redhat.com>
2493
2494 * mips-tdep.c (mips_register_to_value): Make static.
2495 (mips_value_to_register): Make static.
2496 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2497 * ia64-tdep.c (ia64_register_raw_size): Make static.
2498 (ia64_register_virtual_size): Make static.
2499 (ia64_register_byte): Make static.
2500 * i387-tdep.c: Include "i387-tdep.h".
2501 (print_387_control_word): Delete function.
2502 (print_387_status_word): Delete function.
2503 (print_387_status_bits): Delete function.
2504 (print_387_control_bits): Delete function.
2505 * Makefile.in (i387-tdep.o): Update dependencies.
2506 * rdi-share/host.h (Fail): Declare.
2507 * remote-rdi.c (Fail): Update to match declaration.
2508
2509 2003-06-14 Andrew Cagney <cagney@redhat.com>
2510
2511 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2512 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2513 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2514 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2515 * README: Delete reference to remote-array.
2516 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2517 (remote-array.o): Delete target.
2518 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2519 * remote-array.c: Delete file.
2520
2521 2003-06-14 Andrew Cagney <cagney@redhat.com>
2522 Mark Kettenis <kettenis@gnu.org>
2523
2524 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2525 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2526 parameter with "frame".
2527 * gdbarch.h, gdbarch.c: Re-generate.
2528 * frame.h (put_frame_register): Declare.
2529 * frame.c (put_frame_register): New function.
2530 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2531 (legacy_register_to_value): Rewrite, use "frame" to get the
2532 register value.
2533 (legacy_value_to_register): Rewrite, use "frame" to find the
2534 register's location before storing.
2535 * arch-utils.h (legacy_convert_register_p): Update.
2536 (legacy_register_to_value, legacy_value_to_register): Update.
2537 * findvar.c (value_from_register): Rewrite, eliminate use of
2538 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2539 "frame" to REGISTER_TO_VALUE.
2540 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2541 lval_reg_frame_relative + lval_register branch of the switch. Do
2542 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2543 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2544 I386_EDI_REGNUM): New defines.
2545 (i386_next_regnum, i386_convert_register_p,
2546 i386_register_to_value, i386_value_to_register): New functions.
2547 (i386_register_convertible, i386_register_convert_to_virtual,
2548 i386_convert_to_raw): Remove functions.
2549 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2550 value_to_register instead of register_convertible,
2551 register_convert_to_virtual and register_convert_to_raw.
2552 * mips-tdep.c (mips_convert_register_p): New function.
2553 (mips_value_to_register): Replace mips_register_convert_from_type.
2554 (mips_register_to_value): Replace mips_register_convert_to_type.
2555 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2556 register_to_value.
2557 * alpha-tdep.c (alpha_convert_register_p): Update.
2558 (alpha_value_to_register): Update, store the register.
2559 (alpha_register_to_value): Update, fetch the register.
2560
2561 2003-06-14 Theodore A. Roth <troth@openavr.org>
2562
2563 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2564 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2565 Don't set deprecated_call_dummy_words.
2566 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2567 Don't set remote_translate_xfer_address.
2568 (avr_io_reg_read_command): Remove commented out debug printf.
2569 Wrap a long line.
2570
2571 2003-06-14 Theodore A. Roth <troth@openavr.org>
2572
2573 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2574 causes gdb to seg fault.
2575
2576 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * sparc-nat.c (fetch_inferior_registers): Correct
2579 a reference to "registers".
2580
2581 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2582
2583 * Makefile.in (exc_request_U_h): Define
2584 (exc_request_S_h): Likewise.
2585 (msg_reply_S_h): Likewise.
2586 (msg_U_h): Likewise.
2587 (notify_S_h): Likewise.
2588 (process_reply_S_h): Likewise.
2589 (gnu-nat.o): Depend on gdb_obstack_h
2590 * gnu-nat.c: Include "gdb_obstack.h".
2591
2592 2003-06-13 Andrew Cagney <cagney@redhat.com>
2593
2594 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2595 * gdbarch.h, gdbarch.c: Re-generate.
2596
2597 2003-06-13 Andrew Cagney <cagney@redhat.com>
2598
2599 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2600 when deprecated REGISTER macros can be deleted.
2601 * gdbarch.h, gdbarch.c: Re-generate.
2602
2603 2003-06-13 Jim Blandy <jimb@redhat.com>
2604
2605 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2606 Linux entry point symbols for _dl_debug_state, too.
2607
2608 2003-06-13 Andrew Cagney <cagney@redhat.com>
2609
2610 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2611 available, do not use the FP register, and always save the TOS.
2612 * dummy-frame.c (dummy_frame_this_id): Do not assert
2613 SAVE_DUMMY_FRAME_TOS.
2614 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2615 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2616 (i386_push_dummy_call): Add 8 to the returned SP.
2617 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2618 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2619 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2620 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2621 (x86_64_push_dummy_call): Return "sp + 16".
2622 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2623 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2624 save_dummy_frame_tos.
2625
2626 2003-06-13 Jim Blandy <jimb@redhat.com>
2627
2628 * frv-tdep.c (frv_use_struct_convention): Delete static
2629 declaration for function deleted in my change of 2003-06-12.
2630
2631 2003-06-13 Theodore A. Roth <troth@openavr.org>
2632
2633 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2634 (avr_pointer_to_address): Shift code addrs left 1 bit.
2635 (avr_convert_from_func_ptr_addr): Delete function since operation is
2636 better handled by avr_address_to_pointer and avr_pointer_to_address.
2637 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2638
2639 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2640
2641 From Kelley Cook <kelleycook@wideopenwest.com>:
2642 * configure.host: Accept i[34567]86 variants.
2643 * configure.tgt: Likewise.
2644 * nlm/configure.in: Likewise.
2645 * nlm/configure: Regenerated.
2646
2647 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2648
2649 * arm-tdep.c (solib-svr4.h): Dont' include it.
2650 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2651 * arm-linux-tdep.c: ... here. Make static.
2652 (arm_linux_init_abi): Register it.
2653 (solib-svr4.h): Include it.
2654 * Makefile.in: Update dependencies.
2655 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2656 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2657
2658 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2659
2660 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2661 indicate registers used for return values.
2662 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2663 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2664 members.
2665 (h8300_init_extra_frame_info): Ditto.
2666 (h8300_frame_locals_address): Removed.
2667 (h8300_frame_args_address): Removed.
2668 (h8300_extract_return_value): Use new regcache structure. Only care
2669 for 16 bit CPUs.
2670 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2671 (h8300_store_return_value): Use new regcache structure. Only care
2672 for 16 bit CPUs.
2673 (h8300h_store_return_value): Same function for 32 bit CPUs.
2674 (h8300_store_struct_return): Removed.
2675 (h8300_extract_struct_value_address): Use new regcache structure.
2676 (h8300h_extract_struct_value_address): Removed.
2677 (h8300_push_dummy_code): New function.
2678 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2679 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2680 set_gdbarch_store_return_value architecture dependent.
2681 Call set_gdbarch_push_dummy_code and
2682 set_gdbarch_extract_struct_value_address.
2683 Remove calls to set_gdbarch_frame_args_address,
2684 set_gdbarch_frame_locals_address,
2685 set_gdbarch_deprecated_store_struct_return,
2686 set_gdbarch_deprecated_extract_return_value,
2687 set_gdbarch_deprecated_extract_struct_value_address,
2688 set_gdbarch_deprecated_call_dummy_words and
2689 set_gdbarch_deprecated_sizeof_call_dummy_words.
2690
2691 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2692
2693 * h8300-tdep.c (h8300_register_byte): Remove.
2694 (h8300h_register_byte): Remove.
2695 (h8300_register_virtual_type): Remove. Substitute by...
2696 (h8300_register_type): New function.
2697 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2698 (h8300h_extract_struct_value_address): Ditto.
2699 (h8300_gdbarch_init): Drop calls to
2700 set_gdbarch_deprecated_register_byte and
2701 set_gdbarch_deprecated_register_virtual_type.
2702 Add call to set_gdbarch_register_type.
2703
2704 2003-06-13 Andrew Cagney <cagney@redhat.com>
2705
2706 * gdbarch.sh: Update comments on registers.
2707 (deprecated_register_byte): Rename register_byte.
2708 (deprecated_register_raw_size): Rename register_raw_size.
2709 (deprecated_register_virtual_size): Rename register_virtual_size.
2710 (deprecated_register_virtual_type): Rename register_virtual_type.
2711 * gdbarch.h, gdbarch.c: Re-generate.
2712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2713 * vax-tdep.c (vax_gdbarch_init): Update.
2714 * v850-tdep.c (v850_gdbarch_init): Update.
2715 * sparc-tdep.c (sparc_gdbarch_init): Update.
2716 * sh-tdep.c (sh_gdbarch_init): Update.
2717 * s390-tdep.c (s390_gdbarch_init): Update.
2718 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2719 * ns32k-tdep.c: Update.
2720 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2721 * mips-tdep.c (mips_gdbarch_init): Update.
2722 * mcore-tdep.c (mcore_gdbarch_init): Update.
2723 * m68k-tdep.c (m68k_gdbarch_init): Update.
2724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2725 * ia64-tdep.c (ia64_gdbarch_init): Update.
2726 * hppa-tdep.c (hppa_gdbarch_init): Update.
2727 * h8300-tdep.c (h8300_gdbarch_init): Update.
2728 * frv-tdep.c (frv_gdbarch_init): Update.
2729 * cris-tdep.c (cris_gdbarch_init): Update.
2730 * avr-tdep.c (avr_gdbarch_init): Update.
2731 * alpha-tdep.c (alpha_gdbarch_init): Update.
2732 * arm-tdep.c (arm_gdbarch_init): Update.
2733
2734 2003-06-13 Andrew Cagney <cagney@redhat.com>
2735
2736 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2737 mips_o32_use_struct_convention with always_use_struct_convention.
2738
2739 2003-06-12 David Carlton <carlton@kealia.com>
2740
2741 * cp-namespace.c (cp_set_block_scope): Comment out
2742 processing_has_namespace_info branch.
2743
2744 2003-06-12 Jim Blandy <jimb@redhat.com>
2745
2746 Recognize and skip 64-bit PowerPC Linux linkage functions.
2747 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2748 insn_pattern, insns_match_pattern, d_field, ds_field): New
2749 functions, macros, and types for working with PPC instructions.
2750 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2751 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2752 ppc64_skip_trampoline_code): New functions, variables, and macros
2753 for recognizing and skipping linkage functions.
2754 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2755 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2756
2757 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2758 register offsets for both the 32- and 64-bit interfaces.
2759
2760 Actually finish the job started by my change of 2003-05-29.
2761 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2762 other #definition of this.
2763 (ppc_linux_skip_trampoline_code): Remove declaration.
2764 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2765 static.
2766 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2767 method for GDBARCH.
2768
2769 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2770 'long' on ppc64-*-linux*.
2771
2772 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2773 isn't #defined, assume the register doesn't exist: act as if
2774 tdep->ppc_mq_regnum were -1.
2775
2776 * configure.host, configure.tgt: Add entries for
2777 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2778 powerpc/linux.mt.
2779 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2780 New files.
2781
2782 * arch-utils.c (always_use_struct_convention): New function.
2783 * arch-utils.h (always_use_struct_convention): New prototype.
2784 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2785 (alpha_gdbarch_init): Register always_use_struct_convention,
2786 instead of alpha_use_struct_convention.
2787 * cris-tdep.c (cris_use_struct_convention): Delete.
2788 (cris_gdbarch_init): Register always_use_struct_convention,
2789 instead of cris_use_struct_convention.
2790 * frv-tdep.c (frv_use_struct_convention): Delete.
2791 (frv_gdbarch_init): Register always_use_struct_convention,
2792 instead of frv_use_struct_convention.
2793 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2794 (h8300_gdbarch_init): Register always_use_struct_convention,
2795 instead of h8300_use_struct_convention.
2796 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2797 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2798 instead of mips_o32_use_struct_convention.
2799
2800 2003-06-12 Andrew Cagney <cagney@redhat.com>
2801
2802 * wince.c: Include "mips-tdep.h".
2803 * mips-tdep.h (mips_next_pc): Declare.
2804 * mcore-tdep.c: Make more local functions static.
2805 * Makefile.in (wince.o): Update dependencies.
2806
2807 2003-06-12 David Carlton <carlton@kealia.com>
2808
2809 * symtab.c (lookup_symbol_aux_minsyms): Replace
2810 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2811 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2812 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2813 SYMBOL_NATURAL_NAME.
2814
2815 2003-06-12 Andreas Schwab <schwab@suse.de>
2816
2817 * Makefile.in (tuiDisassem.o): Update dependencies.
2818
2819 2003-06-12 David Carlton <carlton@bactrian.org>
2820
2821 * symtab.h: Delete declaration of make_symbol_overload_list.
2822 Add declaration of lookup_partial_symbol.
2823 * symtab.c (remove_params): Move to cp-support.c.
2824 (overload_list_add_symbol, make_symbol_overload_list)
2825 (sym_return_val_size, sym_return_val_index): Ditto.
2826 (lookup_partial_symbol): Make extern.
2827 * cp-support.h: Add declaration of make_symbol_overload_list.
2828 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2829 symtab.h, and block.h.
2830 (remove_params): Move here from symtab.c.
2831 (overload_list_add_symbol, make_symbol_overload_list)
2832 (sym_return_val_size, sym_return_val_index): Ditto.
2833 * valops.c: Include cp-support.h.
2834 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2835 frame_h, and block_h.
2836 (valops.o): Depend on cp_support_h.
2837
2838 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2839
2840 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2841 substitute by NUM_REGS throughout.
2842 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2843 (h8300s_register_name): New function for H8S registers.
2844 (h8300sx_register_name): Ditto for H8SX registers.
2845 (h8300_print_register): Revise register printing, avoid depending
2846 on 32 bit long.
2847 (h8300_register_byte): Only care for H8/300 registers.
2848 (h8300h_register_byte): New function for any other architecture.
2849 (h8300_register_raw_size): Remove.
2850 (h8300_register_virtual_type): Revise to return actually useful
2851 type.
2852 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2853 (h8300h_extract_struct_value_address): New function for any other
2854 architecture.
2855 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2856 set_gdbarch_register_name, set_gdbarch_register_byte,
2857 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2858 Remove calls to set_gdbarch_deprecated_register_size,
2859 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2860 set_gdbarch_deprecated_max_register_raw_size,
2861 set_gdbarch_register_virtual_size and
2862 set_gdbarch_deprecated_max_register_virtual_size entirely.
2863 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2864 set_gdbarch_long_double_bit.
2865
2866 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2867
2868 * doublest.c (convert_doublest_to_floatformat): When dealing
2869 with the implied integer bit, only alter mant_bits if we are
2870 processing a full 32 bits of mantissa.
2871
2872 2003-06-11 David Carlton <carlton@bactrian.org>
2873
2874 * dictionary.h: New.
2875 * dictionary.c: New.
2876 * block.h: Add opaque declaration for struct dictionary.
2877 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2878 'sym' members.
2879 (BLOCK_DICT): New macro.
2880 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2881 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2882 BLOCK_SHOULD_SORT.
2883 (ALL_BLOCK_SYMBOLS): Update definition.
2884 * Makefile.in (SFILES): Add dictionary.c.
2885 (dictionary_h): New.
2886 (COMMON_OBS): Add dictionary.o.
2887 (dictionary.o): New.
2888 (ada-lang.o): Depend on dictionary_h.
2889 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2890 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2891 (mi-cmd-stack.o): Ditto.
2892 (gdbtk-cmds.o): Update dependencies.
2893 (gdbtk-stack.o): Ditto.
2894 * ada-lang.c: Include dictionary.h.
2895 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2896 (fill_in_ada_prototype, debug_print_block): Ditto.
2897 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2898 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2899 'is_sorted'.
2900 * mdebugread.c: Include dictionary.h.
2901 (struct parse_stack): Delete 'maxsyms' member.
2902 (parse_symbol): Update calls to new_block. Delete calls to
2903 shrink_block. Use dictionary methods.
2904 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2905 Update calls to new_symtab. Don't maintain maxsyms data.
2906 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2907 (add_symbol): Just call dict_add_symbol.
2908 (new_symtab): Delete 'maxsyms' argument.
2909 (new_symtab): Update calls to new_block.
2910 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2911 (shrink_block): Delete function.
2912 (fixup_sigtramp): Update call to new_block. Add symbol via
2913 dict_add_symbol.
2914 * jv-lang.c: Include dictionary.h.
2915 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2916 appropriately. Set class_symtab->free_func. Make sure the
2917 blockvector is big enough to hold two blocks.
2918 (add_class_symtab_symbol): Use dictionary methods.
2919 (free_class_block): New function.
2920 (type_from_class): Replace explicit iteration by
2921 ALL_BLOCK_SYMBOLS.
2922 * symtab.h (struct symtab): Replace 'free_ptr' method by
2923 'free_func'.
2924 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2925 sort_symtab_syms.
2926 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2927 sort_symtab_syms.
2928 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2929 Include dictionary.h.
2930 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2931 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2932 sort_symtab_syms.
2933 * objfiles.c: Include dictionary.h.
2934 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2935 * buildsym.c: Include dictionary.h.
2936 (finish_block): Use dictionary methods.
2937 (end_symtab): Set free_func to NULL, not free_ptr.
2938 * tracepoint.c: Include dictionary.h.
2939 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2940 (scope_info): Ditto.
2941 * stack.c: Include dictionary.h.
2942 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2943 (print_block_frame_labels, print_frame_arg_vars)
2944 (print_frame_args): Ditto.
2945 * symmisc.c (free_symtab_block): Use dictionary methods.
2946 (dump_symtab): Ditto.
2947 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2948 Include dictionary.h.
2949 * symfile.h: Delete declarations of sort_block_syms,
2950 sort_symtab_syms.
2951 * symfile.c (sort_block_syms): Delete.
2952 (sort_symtab_syms): Delete.
2953 * symtab.c: Include dictionary.h.
2954 (lookup_block_symbol): Use dictionary iterators.
2955 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2956 (search_symbols, make_symbol_completion_list): Ditto.
2957 (make_symbol_overload_list): Ditto.
2958 * valops.c (value_of_local): Use dict_empty.
2959 Include dictionary.h.
2960
2961 2003-06-11 J. Brobecker <brobecker@gnat.com>
2962
2963 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2964
2965 2003-06-11 David Carlton <carlton@bactrian.org>
2966
2967 * block.h (BLOCK_SHOULD_SORT): Delete.
2968 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2969 blocks.
2970 * ada-lang.c (ada_add_block_symbols): Ditto.
2971 * symfile.c (sort_block_syms): Delete.
2972 (sort_symtab_syms): Ditto.
2973 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2974 declarations.
2975 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2976 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2977 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2978 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2979 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2980 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2981 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2982
2983 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2984
2985 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2986 bits to 128.
2987
2988 2003-06-11 Andrew Cagney <cagney@redhat.com>
2989
2990 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2991 REGISTER_CONVERTIBLE.
2992 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2993 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2994 * gdbarch.h, gdbarch.c: Re-generate.
2995 * arch-utils.h (deprecated_register_convertible_not): Rename
2996 generic_register_convertible_not.
2997 * arch-utils.c (deprecated_register_convertible_not): Rename
2998 generic_register_convertible.
2999 (legacy_convert_register_p, legacy_register_to_value): Update.
3000 * sh-tdep.c (sh64_push_arguments): Update.
3001 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3002 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3003 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3004 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3005 * arch-utils.c (legacy_value_to_register): Update.
3006 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3007 (rs6000_register_convert_to_raw): Make parameter "from" const.
3008 * mips-tdep.c (mips_gdbarch_init): Update.
3009 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3010 * infcmd.c (default_print_registers_info): Update.
3011 * ia64-tdep.c (ia64_gdbarch_init): Update.
3012 (ia64_register_convert_to_raw): Make parameter "from" const.
3013 * i386-tdep.c (i386_gdbarch_init): Update.
3014 (i386_register_convert_to_raw): Update.
3015
3016 2003-06-11 Andrew Cagney <cagney@redhat.com>
3017
3018 * remote-fileio.c: Include "remote-fileio.h".
3019 * Makefile.in (remote-fileio.o): Update dependencies.
3020 (remote_fileio_h): Fix typo.
3021
3022 2003-06-11 Andrew Cagney <cagney@redhat.com>
3023
3024 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3025 (xstormy16_save_dummy_frame_tos): Make static.
3026 (_initialize_xstormy16_tdep): Add declaration.
3027 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3028 * v850-tdep.c: Make local functions static.
3029 (_initialize_v850_tdep): Add declaration.
3030 * sparc-tdep.c: Make local functions static.
3031 (_initialize_sparc_tdep): Add declaration.
3032 * sh-tdep.c: Make local functions static.
3033 (_initialize_sh_tdep): Add declaration.
3034 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3035 * s390-tdep.c: Make local functions static.
3036 (_initialize_s390_tdep): Add declaration.
3037 * dbxread.c (find_stab_function_addr): Make static.
3038 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3039 * ocd.c (_initialize_remote_ocd): Add declaration.
3040 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3041 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3042 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3043 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3044 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3045 * remote-array.c (_initialize_array): Add declaration.
3046 (_initialize_remote_monitors): Add declaration.
3047 * remote-mips.c: Make local functions static.
3048 (_initialize_remote_mips): Add declaration.
3049 * mcore-tdep.c: Make all local functions static.
3050 (_initialize_mcore_tdep): Add declaration.
3051 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3052 * abug-rom.c (_initialize_abug_rom): Add declaration.
3053 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3054 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3055 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3056 * remote-est.c (_initialize_est): Add declaration.
3057 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3058 (m68hc11_call_dummy_address): Make static.
3059 * ia64-tdep.c: Make local functions static.
3060 (_initialize_ia64_tdep): Add declaration.
3061 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3062 * monitor.c (monitor_wait_filter): Make static.
3063 (_initialize_remote_monitors): Add declaration.
3064 * remote-hms.c (_initialize_remote_hms): Add declaration.
3065 * remote-e7000.c (fetch_regs_from_dump): Make static.
3066 (expect_n): Make static.
3067 (_initialize_remote_e7000): Add declaration.
3068 * ser-e7kpc.c: Always include "defs.h".
3069 (_initialize_ser_e7000pc): Add declaration.
3070 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3071 * cris-tdep.c: Make all but one function static.
3072 (_initialize_cris_tdep): Add declaration.
3073 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3074 * solib.c (update_solib_list): Make static.
3075 (_initialize_solib): Add declaration.
3076 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3077 (_initialize_avr_tdep): Add declaration.
3078 * remote-rdi.c (voiddummy): Make static.
3079 (_initialize_remote_rdi): Add declaration.
3080 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3081 * remote-rdp.c (send_rdp): Make static.
3082 (_initialize_remote_rdp): Add declaration.
3083 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3084
3085 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3086
3087 * remote-fileio.c: Make ari happy.
3088
3089 2003-06-10 J. Brobecker <brobecker@gnat.com>
3090
3091 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3092 fetching the trailing bytes of the buffer we are about to write.
3093
3094 2003-06-10 Andrew Cagney <cagney@redhat.com>
3095
3096 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3097 * Makefile.in (remote-fileio.o): Update dependencies.
3098 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3099 include <setjmp.h>, or <sys/types.h> conditional on USG.
3100 (remote_fio_jmp_buf): Delete global variable.
3101
3102 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3103 Martin M. Hunt <hunt@redhat.com>
3104
3105 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3106 (SFILES): Add remote-fileio.c.
3107 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3108 dependencies for building remote.o.
3109 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3110 * remote-fileio.h: New header file defining remote File-I/O interface.
3111 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3112 static storage class.
3113 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3114 'F' packet.
3115 (_initialize_remote): Call initialize_remote_fileio().
3116 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3117 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3118 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3119 (captured_main): Initialize new ui_files.
3120 * ui-file.c: Add read and fgets input functions.
3121 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3122 (null_file_read): New function.
3123 (ui_file_read): New function.
3124 (set_ui_file_read): New function.
3125 (stdio_file_read): New function.
3126 * ui-file.h: New type ui_file_read_ftype.
3127 (set_ui_file_read): Declare.
3128 (ui_file_read): Declare.
3129
3130 2003-06-09 Andrew Cagney <cagney@redhat.com>
3131
3132 * frame.h (deprecated_unwind_get_saved_register): Rename
3133 generic_unwind_get_saved_register, update comments.
3134 * mips-tdep.c (mips_get_saved_register): Update.
3135 * frame.c (deprecated_unwind_get_saved_register): Update.
3136
3137 2003-06-09 Andrew Cagney <cagney@redhat.com>
3138
3139 * vax-tdep.c (vax_frame_locals_address): Delete function.
3140 (vax_gdbarch_init): Do not set frame_locals_address.
3141 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3142 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3143 * s390-tdep.c (s390_frame_args_address): Delete function.
3144 (s390_gdbarch_init): Do not set frame_args_address or
3145 frame_locals_address.
3146 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3147 (ns32k_gdbarch_init): Do not set frame_locals_address.
3148 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3149 (hppa_frame_locals_address): Delete function.
3150 (hppa_gdbarch_init): Do not set frame_args_address, or
3151 frame_locals_address.
3152 * arm-tdep.c (arm_frame_args_address): Delete.
3153 (arm_frame_locals_address): Delete.
3154 (arm_gdbarch_init): Do not set frame_args_address, or
3155 frame_locals_address.
3156
3157 2003-06-09 Andrew Cagney <cagney@redhat.com>
3158
3159 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3160 * gdbarch.h, gdbarch.c: Re-generate.
3161 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3162 * arch-utils.c (frame_num_args_unknown): Delete function.
3163 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3164 (frame_info): Use FRAME_NUM_ARGS_P.
3165 * arm-tdep.c (arm_frame_num_args): Delete function.
3166 (arm_gdbarch_init): Do not set frame_num_args.
3167 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3168 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3169 (hppa_gdbarch_init): Do not set frame_num_args.
3170 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3172 frame_num_args to default frame_num_args_unknown.
3173 * v850-tdep.c (v850_gdbarch_init): Ditto.
3174 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3175 * sh-tdep.c (sh_gdbarch_init): Ditto.
3176 * s390-tdep.c (s390_gdbarch_init): Ditto.
3177 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3178 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3179 * mips-tdep.c (mips_gdbarch_init): Ditto.
3180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3181 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3183 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3184 * i386-tdep.c (i386_gdbarch_init): Ditto.
3185 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3186 * frv-tdep.c (frv_gdbarch_init): Ditto.
3187 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3188 * cris-tdep.c (cris_gdbarch_init): Ditto.
3189 * avr-tdep.c (avr_gdbarch_init): Ditto.
3190 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3191
3192 2003-06-09 Andrew Cagney <cagney@redhat.com>
3193
3194 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3195 (print_frame_args): Moved to "stack.c".
3196 * stack.c: Include "gdb_assert.h".
3197 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3198 (print_frame_args): Moved from "printcmd.c".
3199 * frame.h (print_frame_args): Delete declaration.
3200 * Makefile.in (stack.o): Update dependencies.
3201
3202 2003-06-08 Andrew Cagney <cagney@redhat.com>
3203
3204 * frame.c (get_prev_frame): Remove reference to
3205 frame_args_address_correct in comments.
3206 * frame-base.c (default_frame_args_address): Delete code
3207 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3208 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3209 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3210 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3211 (vax_frame_args_address_correct): Delete declaration.
3212
3213 2003-06-08 Andrew Cagney <cagney@redhat.com>
3214
3215 * gdbarch.sh (UNWIND_SP): Add.
3216 * gdbarch.h, gdbarch.c: Re-generate.
3217 * frame.c (frame_sp_unwind): New function.
3218 (get_frame_sp): New function.
3219 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3220 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3221 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3222 value.
3223 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3224 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3225
3226 2003-06-08 Andrew Cagney <cagney@redhat.com>
3227
3228 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3229 REMOTE_BREAKPOINT.
3230 * remote.c: Update.
3231 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3232 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3233 * config/m68k/tm-sun3.h: Update.
3234 * config/m68k/tm-m68klynx.h: Update.
3235 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3236
3237 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3238 trad_frame". Update comments.
3239 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3240 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3241 (trad_frame_register_value, trad_frame_prev_register): Update.
3242
3243 2003-06-08 Andrew Cagney <cagney@redhat.com>
3244
3245 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3246 from GCC's acinclude.m4.
3247 * configure.in: Check for getopt's delcaration.
3248 * aclocal.m4, config.in, configure: Re-generate.
3249 * main.c (error_init): Delete declaration.
3250 * defs.h (error_init): Declare.
3251 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3252 (rs6000_convert_from_func_ptr_addr): Make static.
3253 (_initialize_rs6000_tdep): Add declaration.
3254 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3255 (show_commands, set_verbose, show_history): Delete declaration.
3256 * top.h (set_verbose): Add declaration.
3257 (show_history, set_history, show_commands): Add declaration.
3258 (do_restore_instream_cleanup): Add declaration.
3259 * objc-lang.c (specialcmp): Make static.
3260 (print_object_command): Make static.
3261 (find_objc_msgsend): Make static.
3262 (find_objc_msgcall_submethod_helper): Make static.
3263 (find_objc_msgcall_submethod): Make static.
3264 (_initialize_objc_language): Add declaration.
3265 (find_implementation_from_class): Make static.
3266 (find_implementation): Make static.
3267 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3268 * objc-lang.h (lookup_struct_typedef): Add declaration.
3269 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3270 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3271 (do_restore_user_call_depth): Make static.
3272 (do_restore_instream_cleanup): Delete declaration.
3273 (dont_repeat): Delete declaration.
3274 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3275 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3276 * reggroups.c (_initialize_reggroup): Add declaration.
3277 * cp-support.c (_initialize_cp_support): Add declaration.
3278 * cp-abi.c (_initialize_cp_abi): Add declaration.
3279 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3280 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3281 (_initialize_gnu_v3_abi): Add declaration.
3282 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3283 (_initialize_gnu_v2_abi): Add declaration.
3284 * frame-base.c (_initialize_frame_base): Add declaration.
3285 * doublest.c (floatformat_from_length): Make static.
3286 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3287 * frame.c (create_sentinel_frame): Make static.
3288 (_initialize_frame): Add declaration.
3289 * top.c (do_catch_errors): Make static.
3290 (gdb_rl_operate_and_get_next_completion): Make static.
3291 * typeprint.c: Include "typeprint.h".
3292 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3293 (sentinel_frame_this_id): Make static.
3294 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3295 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3296 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3297 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3298 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3299 * maint.c (maintenance_print_architecture): Make static.
3300 * signals/signals.c (_initialize_signals): Add declaration.
3301 * std-regs.c (_initialize_frame_reg): Add declaration.
3302 * jv-exp.y (push_variable): ISO C definition.
3303 (push_qualified_expression_name): Ditto.
3304 * memattr.c (_initialize_mem): Add declaration.
3305 * remote.c (remote_check_watch_resources): Make static.
3306 (remote_stopped_by_watchpoint): Make static.
3307 (remote_stopped_data_address): Make static.
3308 * d10v-tdep.c (nr_dmap_regs): Make static.
3309 (a0_regnum): Make static.
3310 (d10v_frame_unwind_cache): Make static.
3311 (d10v_frame_p): Make static.
3312 * osabi.c (show_osabi): Make static.
3313 (_initialize_gdb_osabi): Add extern declaration.
3314 * gdbtypes.c (make_qualified_type): Make static.
3315 (safe_parse_type): Make static.
3316 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3317 * macrotab.c (macro_bcache_free): Make static.
3318 * interps.c (interp_set_quiet): Make static.
3319 (interpreter_exec_cmd): Make static.
3320 * stack.h (select_frame_command): New file.
3321 * stack.c: Include "stack.h".
3322 (select_frame_command_wrapper): Delete function.
3323 (select_frame_command): Make global.
3324 * infcall.c: Include "infcall.h".
3325 * linespec.c: Include "linespec.h".
3326 * symfile.c (sections_overlap): Make static.
3327 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3328 * charset.c (_initialize_charset): Add missing prototype.
3329 * regcache.c (init_legacy_regcache_descr): Make static.
3330 (do_regcache_xfree): Make static.
3331 (regcache_xfer_part): Make static.
3332 (_initialize_regcache): Add missing prototype.
3333 * breakpoint.c (parse_breakpoint_sals): Make static.
3334 (breakpoint_sals_to_pc): Make static.
3335 * interps.h (clear_interpreter_hooks): ISO C declaration.
3336 * Makefile.in (stack_h): Define.
3337 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3338 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3339
3340 2003-06-08 Andrew Cagney <cagney@redhat.com>
3341
3342 * Makefile.in (d10v-tdep.o): Update dependencies.
3343 (SFILES): Add trad-frame.c.
3344 (trad_frame_h): Define.
3345 (COMMON_OBS): Add trad-frame.o.
3346 (trad-frame.o): Specify dependencies.
3347 * d10v-tdep.c: Include "trad-frame.h".
3348 (saved_regs_unwinder): Delete function.
3349 (d10v_frame_prev_register): Use trad_frame_prev_register.
3350 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3351 trad_frame", delete "regs" and "prev_sp".
3352 (prologue_find_regs): Use trad-frame.
3353 * trad-frame.h, trad-frame.c: New files.
3354
3355 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3356
3357 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3358
3359 2003-06-07 Adam Fedor <fedor@gnu.org>
3360
3361 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3362 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3363 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3364 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3365 resolve_msgsend_super, resolve_msgsend_super_stret):
3366 Use it.
3367
3368 2003-06-07 Andrew Cagney <cagney@redhat.com>
3369
3370 * symfile.h: Re-indent, clean up comments.
3371
3372 2003-06-07 Andrew Cagney <cagney@redhat.com>
3373
3374 * inferior.h (deprecated_write_sp): Replace
3375 generic_target_write_sp.
3376 * regcache.c (deprecated_write_sp): Replace
3377 generic_target_write_sp.
3378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3379 * vax-tdep.c (vax_gdbarch_init): Update.
3380 * v850-tdep.c (v850_gdbarch_init): Update.
3381 * sparc-tdep.c (sparc_gdbarch_init): Update.
3382 * sh-tdep.c (sh_gdbarch_init): Update.
3383 * s390-tdep.c (s390_gdbarch_init): Update.
3384 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3385 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3386 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3387 * mcore-tdep.c (mcore_gdbarch_init): Update.
3388 * m68k-tdep.c (m68k_gdbarch_init): Update.
3389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3390 * ia64-tdep.c (ia64_gdbarch_init): Update.
3391 * h8300-tdep.c (h8300_gdbarch_init): Update.
3392 * frv-tdep.c (frv_gdbarch_init): Update.
3393 * cris-tdep.c (cris_gdbarch_init): Update.
3394 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3395
3396 2003-06-07 Andrew Cagney <cagney@redhat.com>
3397
3398 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3399 Assert that PC_REGNUM is valid.
3400 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3401
3402 2003-06-07 Andrew Cagney <cagney@redhat.com>
3403
3404 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3405 * gdbarch.h, gdbarch.c: Regenerate.
3406 * mn10300-tdep.c: Include "gdb_assert.h".
3407 (mn10300_read_fp): New function.
3408 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3409 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3410 * ia64-tdep.c: Include "gdb_assert.h".
3411 (ia64_read_fp): New function.
3412 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3413 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3414 * regcache.c (generic_target_read_sp): Delete function.
3415 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3416 * inferior.h (generic_target_read_sp): Delete declaration.
3417 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3418 generic_target_read_sp.
3419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3420 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3421 * sh-tdep.c (sh_gdbarch_init): Ditto.
3422 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3423 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3424
3425 2003-06-07 Andrew Cagney <cagney@redhat.com>
3426
3427 * gdbarch.sh: Comment each field of startup_gdbarch.
3428 * gdbarch.h, gdbarch.c: Re-generate.
3429
3430 2003-06-07 Andrew Cagney <cagney@redhat.com>
3431
3432 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3433 * gdbarch.h, gdbarch.c: Re-generate.
3434 * regcache.c: Update comments on read_pc et.al.
3435 (generic_target_read_pc): Delete function.
3436 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3437 * inferior.h (generic_target_read_pc): Delete declaration.
3438 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3439 generic_target_read_pc.
3440 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3441 * sh-tdep.c (sh_gdbarch_init): Ditto.
3442 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3444
3445 2003-06-07 Andrew Cagney <cagney@redhat.com>
3446
3447 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3448 "index" with "special_local_sect". Use strcmp instead of STREQ.
3449 Append period to coments.
3450
3451 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3452
3453 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3454 (elfstab_offset_sections): Likewise.
3455 * gdb-stabs.h (stab_section_info): Likewise.
3456 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3457 * objfiles.c (objfile_relocate): Likewise.
3458 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3459 * remote.c (get_offsets): Likewise.
3460 (remote_cisco_objfile_relocate): Likewise.
3461 * somread.c (som_symfile_offsets): Likewise.
3462 * symfile.c (alloc_section_addr_info): New function.
3463 (build_section_addr_info_from_section_tab): Use it.
3464 (free_section_addr_info): Adjust.
3465 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3466 (syms_from_objfile): Allocate local_addr dynamically.
3467 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3468 dynamically.
3469 (add_symbol_file_command): Allocate sect_opts dynamically.
3470 (reread_symbols): Avoid use of SECT_OFF_MAX.
3471 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3472 (alloc_section_addr_info): Declare it.
3473 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3474 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3475 dynamically.
3476 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3477
3478 2003-06-06 Andrew Cagney <cagney@redhat.com>
3479
3480 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3481 (d10v_frame_unwind_cache): Do not set "return_pc".
3482
3483 2003-06-06 Michael Snyder <msnyder@redhat.com>
3484
3485 * h8300-tdep.c: Make tidy (long lines).
3486
3487 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3488
3489 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3490 to regcache_collect().
3491
3492 2003-06-05 J. Brobecker <brobecker@gnat.com>
3493
3494 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3495 pc_in_sigtramp multiarch method.
3496 (hppa_hpux_som_init_abi): Use it.
3497 (hppa_hpux_elf_init_abi): Likewise.
3498 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3499 macro has been multiarched.
3500 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3501 macro here, as hppa64 isn't multiarched yet.
3502
3503 2003-06-05 Andrew Cagney <cagney@redhat.com>
3504
3505 * Makefile.in (value_h): Add $(frame_h).
3506 * value.h: Include "frame.h".
3507 (struct value): Replace "frame_addr" with "frame_id".
3508 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3509 * values.c (allocate_value): Use VALUE_FRAME_ID.
3510 (value_copy): Use VALUE_FRAME_ID.
3511 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3512 * valops.c (value_assign): Update. Use frame_find_by_id.
3513
3514 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3515
3516 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3517 in each pass.
3518
3519 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3520
3521 * thread-db.c (check_event): For create/death event breakpoints,
3522 loop through all messages to ensure that we read the message
3523 corresponding to the breakpoint we are at.
3524
3525 2003-06-04 Michael Snyder <msnyder@redhat.com>
3526
3527 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3528
3529 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3530
3531 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3532 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3533 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3534 when handling .eh_frame sections.
3535
3536 2003-06-04 J. Brobecker <brobecker@gnat.com>
3537
3538 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3539 prepare_to_proceed procedure instead of the hppa-specific one.
3540 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3541
3542 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3543
3544 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3545 * config.in: Regenerated.
3546 * configure.in: Add test for syscall function and check for
3547 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3548 * configure: Regenerated.
3549 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3550 <sys/syscall.h>.
3551 (kill_lwp): New function that uses tkill syscall or
3552 uses kill, depending on whether threading model is nptl or not.
3553 All callers of kill() changed to use kill_lwp().
3554 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3555 see if all threads have already exited in the nptl model.
3556 (stop_and_resume_callback): New callback function used by the
3557 lin_lwp_wait thread exit handling code.
3558 (stop_wait_callback): Check for threads already having exited and
3559 delete such threads fromt the lwp list when discovered.
3560 (stop_callback): Don't assert retcode of kill call.
3561
3562 Roland McGrath <roland@redhat.com>
3563 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3564 nptl libthread_db.
3565
3566 2003-06-03 Richard Henderson <rth@redhat.com>
3567
3568 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3569 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3570 (alpha_sigtramp_frame_prev_register): Likewise.
3571 (alpha_heuristic_frame_prev_register): Likewise.
3572 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3573
3574 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3575 alpha-specific register id names.
3576 (alpha_mdebug_frame_unwind_cache): Likewise.
3577 (alpha_mdebug_frame_prev_register): Likewise.
3578
3579 2003-06-03 Richard Henderson <rth@redhat.com>
3580
3581 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3582 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3583 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3584 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3585 unwind routines.
3586 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3587 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3588 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3589
3590 * alpha-linux-tdep.c: Remove unnecessary includes.
3591 * Makefile.in (alpha-linux-tdep.o): Update.
3592
3593 2003-06-03 Richard Henderson <rth@redhat.com>
3594
3595 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3596 (alphabsd_fill_fpreg): Likewise.
3597
3598 2003-06-03 J. Brobecker <brobecker@gnat.com>
3599
3600 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3601 references to struct frame_info fields by calls to the equivalent
3602 accessors. Necessary now that frame_info is opaque.
3603
3604 2003-06-03 J. Brobecker <brobecker@gnat.com>
3605
3606 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3607 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3608 structure, field no longer exists.
3609
3610 2003-06-03 J. Brobecker <brobecker@gnat.com>
3611
3612 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3613 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3614
3615 2003-06-03 J. Brobecker <brobecker@gnat.com>
3616
3617 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3618 references to struct frame_info fields by calls to the equivalent
3619 accessors. Necessary now that frame_info is opaque.
3620
3621 2003-06-03 J. Brobecker <brobecker@gnat.com>
3622
3623 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3624 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3625 structure, field no longer exists.
3626
3627 2003-06-03 Theodore A. Roth <troth@openavr.org>
3628
3629 * remote.c (init_remote_state): Compute sizeof_g_packet by
3630 accumulation of the size of all registers instead of blindly using
3631 DEPRECATED_REGISTER_BYTES.
3632
3633 2003-06-03 Michael Snyder <msnyder@redhat.com>
3634
3635 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3636 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3637 for h8300sx.
3638
3639 2003-06-03 J. Brobecker <brobecker@gnat.com>
3640
3641 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3642 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3643
3644 2003-06-03 Andrew Cagney <cagney@redhat.com>
3645
3646 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3647 (sparc_convert_to_raw): Delete function.
3648 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3649 register_convert_to_virtual.
3650
3651 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3652
3653 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3654 layer if not dealing with a statically-linked threaded program.
3655
3656 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3657
3658 * solib.c (solib_open): Update comment to reflect actual search order.
3659
3660 2003-06-03 Andrew Cagney <cagney@redhat.com>
3661
3662 * frame.c (get_frame_memory_signed): New function.
3663 (get_frame_memory, get_frame_memory_unsigned): New function.
3664 (get_frame_arch): New function.
3665 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3666 (get_frame_memory, get_frame_unsigned_memory): Declare.
3667 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3668 get_frame_memory_unsigned and get_frame_arch.
3669 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3670
3671 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3672
3673 * MAINTAINERS (write after approval): Add myself.
3674
3675 2003-06-03 Jim Blandy <jimb@redhat.com>
3676
3677 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3678 elements of gregset_t are 64 bits each, but access registers
3679 are still 32 bits, so they're packed two per gregset_t
3680 element. Unpack/pack them properly.
3681
3682 2003-06-02 David Carlton <carlton@bactrian.org>
3683
3684 * linespec.c (find_methods): Break out code into
3685 add_matching_methods and add_constructors.
3686 (add_matching_methods): New.
3687 (add_constructors): Ditto.
3688
3689 2003-06-02 Andrew Cagney <cagney@redhat.com>
3690
3691 * sparc-tdep.c (sparc_print_registers): Delete call to
3692 REGISTER_CONVERTIBLE.
3693 (sparc_gdbarch_init): Do not set register_convertible.
3694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3695 * frv-tdep.c (frv_gdbarch_init): Ditto.
3696 * cris-tdep.c (cris_gdbarch_init): Ditto.
3697
3698 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3699
3700 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3701 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3702 (syms_from_objfile): Ditto.
3703
3704 2003-06-03 Andreas Schwab <schwab@suse.de>
3705
3706 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3707 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3708
3709 2003-06-02 Richard Henderson <rth@redhat.com>
3710
3711 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3712 a member of all_reggroup.
3713
3714 2003-06-02 Richard Henderson <rth@redhat.com>
3715
3716 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3717 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3718 (alpha_lds, alpha_sts): New.
3719 (alpha_convert_register_p): Change from _register_convertible.
3720 (alpha_register_to_value): Change from _convert_to_virtual;
3721 restructure and fail for type sizes other than 4 or 8.
3722 (alpha_value_to_register): Similarly.
3723 (alpha_extract_return_value): Use alpha_sts.
3724 (alpha_store_return_value): Use alpha_lds.
3725 (alpha_gdbarch_init): Update hooks.
3726
3727 2003-06-02 Richard Henderson <rth@redhat.com>
3728
3729 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3730 regnum identifiers.
3731 (alpha_sigtramp_register_address): Likewise.
3732
3733 2003-06-02 Richard Henderson <rth@redhat.com>
3734
3735 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3736 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3737 * alpha-tdep.h: Declare them.
3738
3739 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3740 Remove zerobuf. Don't error on UNIQUE.
3741 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3742 (ALPHA_REGSET_UNIQUE): Provide default.
3743 (supply_gregset): Use alpha_supply_int_regs.
3744 (fill_gregset): Use alpha_fill_int_regs.
3745 (supply_fpregset): Use alpha_supply_fp_regs.
3746 (fill_fpregset): Use alpha_fill_fp_regs.
3747 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3748 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3749 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3750 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3751 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3752 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3753
3754 2003-06-02 Richard Henderson <rth@redhat.com>
3755
3756 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3757
3758 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3759 (alpha_store_return_value): Likewise.
3760
3761 2003-06-02 David Carlton <carlton@math.stanford.edu>
3762
3763 * block.c (contained_in): Add 'const' to arguments.
3764 (block_function): Ditto.
3765 * block.h: Update declarations for block_function and
3766 contained_in.
3767
3768 2003-06-02 David Carlton <carlton@math.stanford.edu>
3769
3770 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3771 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3772 * p-valprint.c (pascal_val_print): Ditto.
3773 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3774
3775 2003-06-02 Richard Henderson <rth@redhat.com>
3776
3777 * alpha-tdep.c (alpha_push_dummy_call): Use
3778 builtin_type_ieee_double_little instead of builtin_type_double.
3779
3780 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3781 sign-extension of 32-bit values.
3782 (alpha_store_return_value): Similarly.
3783
3784 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3785 (alpha_extract_return_value): Likewise.
3786 (alpha_store_return_value): Likewise.
3787
3788 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3789 (alpha_store_return_value): Error on IEEE Quad floats.
3790
3791 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3792 (alpha_extract_struct_value_address): Likewise.
3793 (alpha_store_return_value): Likewise.
3794 (alpha_store_struct_return): Remove.
3795 (alpha_gdbarch_init): Update hook registration to match.
3796
3797 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3798 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3799 macros where appropriate.
3800 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3801 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3802
3803 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3804 for SP, GP; void_func_ptr for PC; non-language-specific types
3805 for all others.
3806 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3807
3808 2003-06-02 Richard Henderson <rth@redhat.com>
3809
3810 * top.h (lim_at_start): Declare.
3811 * main.c (captured_main): Set it.
3812 * top.c (lim_at_start): Define.
3813 (command_loop): Use it instead of &environ.
3814 * event-top.c (command_handler): Likewise.
3815
3816 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3817
3818 * mipsnbsd-tdep.c: Update copyright years.
3819 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3820
3821 2003-06-01 Richard Henderson <rth@redhat.com>
3822
3823 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3824 (alpha-linux-tdep.o): Update dependencies.
3825 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3826 * alpha-mdebug-tdep.c: Remove unneeded includes.
3827
3828 2003-06-01 Richard Henderson <rth@redhat.com>
3829
3830 * alpha-tdep.c (alpha_register_reggroup_p): New.
3831 (alpha_gdbarch_init): Register it.
3832
3833 2003-06-02 Andrew Cagney <cagney@redhat.com>
3834
3835 * dwarfread.c: Eliminate "register"
3836 (decode_die_type): Eliminate assignment within "if".
3837 (struct_type, decode_array_element_type): Ditto.
3838 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3839 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3840 (decode_modified_type, completedieinfo): Ditto.
3841 * block.c: Eliminate "register".
3842 (blockvector_for_pc_sect): Eliminate assignment within "if".
3843 * cp-support.h (struct symbol): Opaque declaration.
3844 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3845
3846 2003-06-01 Richard Henderson <rth@redhat.com>
3847
3848 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3849 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3850
3851 2003-06-01 Adam Fedor <fedor@gnu.org>
3852
3853 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3854 * gdbarch.[ch]: Regenerate.
3855 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3856 (hppa_gdbarch_init): Set it in the gdbarch vector.
3857 * i386-tdep.c (i386_fetch_pointer_argument): New
3858 (i386_gdbarch_init): Set it into gdbarch.
3859 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3860 (rs6000_gdbarch_init): Set it in gdbarch.
3861 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3862 (sparc_gdbarch_init): Set it in gdbarch.
3863
3864 2003-06-01 Andrew Cagney <cagney@redhat.com>
3865
3866 * defs.h (extract_address): Delete declaration.
3867 * findvar.c (extract_address): Delete function.
3868 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3869 extract_address with the inline equivalent,
3870 extract_unsigned_integer.
3871 (xstormy16_extract_struct_value_address): Ditto.
3872 (xstormy16_pointer_to_address): Ditto.
3873 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3874 * v850-tdep.c (v850_push_arguments): Ditto.
3875 (v850_extract_return_value): Ditto.
3876 (v850_extract_struct_value_address): Ditto.
3877 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3878 (sparcnbsd_get_longjmp_target_64): Ditto.
3879 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3880 (get_longjmp_target): Ditto.
3881 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3882 (sh64_extract_struct_value_address): Ditto.
3883 (sh_push_arguments): Ditto.
3884 (sh64_push_arguments): Ditto.
3885 * remote-vxsparc.c (vx_read_register): Ditto.
3886 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3887 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3888 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3889 * mipsv4-nat.c (get_longjmp_target): Ditto.
3890 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3891 * mips-nat.c (get_longjmp_target): Ditto.
3892 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3893 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3894 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3895 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3896 * irix5-nat.c (get_longjmp_target): Ditto.
3897 * irix4-nat.c (get_longjmp_target): Ditto.
3898 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3899 (ia64_push_arguments): Ditto.
3900 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3901 * h8300-tdep.c (h8300_push_arguments): Ditto.
3902 (h8300_store_return_value): Ditto.
3903 (h8300_extract_struct_value_address): Ditto.
3904 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3905 (frv_push_arguments): Ditto.
3906 * avr-tdep.c (avr_pointer_to_address): Ditto.
3907 (avr_push_arguments): Ditto.
3908 * arm-tdep.c (arm_push_dummy_call): Ditto.
3909 (arm_get_longjmp_target): Ditto.
3910 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3911 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3912 (alpha_get_longjmp_target): Ditto.
3913
3914 * solib-irix.c (extract_mips_address): Inline extract_address,
3915 replacing it with extract_signed_integer.
3916 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3917 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3918 (first_link_map_member, open_symbol_file_object): Ditto.
3919 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3920 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3921 (LM_NEXT, LM_NAME): Ditto.
3922
3923 2003-06-01 Richard Henderson <rth@redhat.com>
3924
3925 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3926 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3927 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3928 (alpha_cannot_store_register): Likewise.
3929 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3930 * alpha-nat.c (supply_gregset): Likewise.
3931 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3932
3933 2003-06-01 Andrew Cagney <cagney@redhat.com>
3934
3935 * infcall.c (call_function_by_hand): Update comment on
3936 DEPRECATED_DUMMY_WRITE_SP.
3937
3938 * mips-tdep.c (mips_gdbarch_init): Do not set
3939 deprecated_dummy_write_sp.
3940 (mips_eabi_push_dummy_call): Set the SP register.
3941 (mips_o64_push_dummy_call): Set the SP register.
3942 (mips_o32_push_dummy_call): Set the SP register.
3943 (mips_n32n64_push_dummy_call): Set the SP register.
3944
3945 2003-06-01 Richard Henderson <rth@redhat.com>
3946
3947 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3948 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3949 (supply_gregset): Likewise.
3950 * alpha-tdep.c (alpha_store_return_value): Likewise.
3951 (alpha_get_longjmp_target): Likewise.
3952 (alpha_register_name): Constify array.
3953 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3954 deprecated_register_size, deprecated_register_bytes,
3955 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3956 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3957 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3958
3959 2003-06-01 Richard Henderson <rth@redhat.com>
3960
3961 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3962 from arg_reg_buffer to regcache to avoid double conversion.
3963
3964 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3965
3966 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3967 SP_REGNUM.
3968 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3969 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3970
3971 2003-06-01 Richard Henderson <rth@redhat.com>
3972
3973 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3974 (decode_frame_entry): Set it. Skip FDE augmentation.
3975
3976 2003-06-01 Richard Henderson <rth@redhat.com>
3977
3978 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3979 not overlapping PC_REGNUM.
3980
3981 2003-06-01 Richard Henderson <rth@redhat.com>
3982
3983 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3984 alpha_push_arguments. Don't dump argument register data to
3985 the target stack. Fix float and 128-bit long double semantics.
3986 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3987 (alpha_fix_call_dummy): Remove.
3988 (alpha_call_dummy_words): Remove.
3989 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3990
3991 2003-06-01 Richard Henderson <rth@redhat.com>
3992
3993 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3994
3995 2003-06-01 Andrew Cagney <cagney@redhat.com>
3996
3997 * mips-tdep.c (is_mips16_addr): New function.
3998 (make_mips16_addr, unmake_mips16_addr): New functions.
3999 (pc_is_mips16, mips_fetch_instruction): Use.
4000 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4001 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4002 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4003 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4004 TARGET_MIPS.
4005 * config/mips/tm-mips.h: Update copyright.
4006 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4007 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4008 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4009 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4010 (TM_PRINT_INSN_MACH): Delete.
4011 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4012
4013 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4014 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4015 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4016 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4017 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4018 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4019 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4020 mips*-*-riscos* and mips*-*-sysv* onto mips.
4021 * config/mips/mips64.mt: New file.
4022 * config/mips/mips.mt: New file.
4023 * config/mips/littlemips.mt: Delete file.
4024 * config/mips/decstation.mt: Delete file.
4025 * config/mips/vr4300el.mt: Delete file.
4026 * config/mips/vr5000el.mt: Delete file.
4027 * config/mips/vr5000.mt: Delete file.
4028 * config/mips/vr4100.mt: Delete file.
4029 * config/mips/vr4xxxel.mt: Delete file.
4030 * config/mips/vr4300.mt: Delete file.
4031 * config/mips/vr4xxx.mt: Delete file.
4032 * config/mips/bigmips.mt: Delete file.
4033 * config/mips/bigmips64.mt: Delete file.
4034 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4035 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4036 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4037 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4038 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4039 "tm-bigmips.h".
4040 * config/mips/tm-irix3.h: Ditto.
4041 * config/mips/tm-mipsv4.h: Ditto.
4042 * config/mips/tm-embed.h: Ditto.
4043 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4044 "tm-bigmips64.h".
4045 * config/mips/tm-vr5000el.h: Delete file.
4046 * config/mips/tm-tx39l.h: Delete file.
4047 * config/mips/tm-vr4300el.h: Delete file.
4048 * config/mips/tm-vr4xxxel.h: Delete file.
4049 * config/mips/tm-vr4300.h: Delete file.
4050 * config/mips/tm-vr4100.h: Delete file.
4051 * config/mips/tm-vr4xxx.h: Delete file.
4052 * config/mips/tm-vr5000.h: Delete file.
4053 * config/mips/tm-embedl64.h: Delete file.
4054 * config/mips/tm-embedl.h: Delete file.
4055 * config/mips/tm-embed64.h: Delete file.
4056 * config/mips/tm-bigmips64.h: Delete file.
4057 * config/mips/tm-bigmips.h: Delete file.
4058
4059 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4060
4061 Fix gdb/1216.
4062 * shnbsd-nat.c: Include "sh-tdep.h".
4063
4064 From Richard Henderson <rth@redhat.com>:
4065 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4066
4067 2003-05-31 Andrew Cagney <cagney@redhat.com>
4068
4069 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4070 forward declaration.
4071 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4072 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4073 (mips_find_saved_regs): Use set_reg_offset.
4074 (mips_frame_init_saved_regs): Delete function.
4075 (mips_pop_frame): Call mips_find_saved_regs instead of
4076 DEPRECATED_FRAME_INIT_SAVED_REGS.
4077
4078 2003-05-31 Andrew Cagney <cagney@redhat.com>
4079
4080 * mips-tdep.c (mips_gdbarch_init): Do not set
4081 deprecated_max_register_raw_size, register_virtual_size, and
4082 deprecated_max_register_virtual_size.
4083
4084 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4085
4086 * i386-tdep.c: Include "dwarf2-frame.h".
4087 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4088 * Makefile.in (i386-tdep.o): Update dependencies.
4089
4090 * dwarf2-frame.c, dwarf2-frame.h: New files.
4091 * Makefile.in (SFILES): Add dwarf2-frame.c.
4092 (dwarf2_frame_h): Define.
4093 (COMMON_OBS): Add dwarf2-frame.o.
4094 (dwarf2-frame.o): Add dependencies.
4095
4096 2003-05-31 Andreas Jaeger <aj@suse.de>
4097
4098 * x86-64-linux-nat.c: Fix comment.
4099
4100 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4101
4102 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4103 function signature.
4104
4105 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4106 have a sigcontext_addr handler.
4107 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4108 sigcontext_addr handler.
4109
4110 2003-05-31 Andrew Cagney <cagney@redhat.com>
4111
4112 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4113 (print_fp_register_row): Replace do_fp_register_row.
4114 (mips_print_fp_register): Add "file" and "frame" parameters.
4115 (mips_print_register): Add "file" and "frame" parameters.
4116 (mips_print_registers_info): Replace mips_do_registers_info.
4117 (mips_gdbarch_init): Set print_registers_info instead of
4118 deprecated_do_registers_info.
4119 (mips_read_fp_register_single): Add "frame" parameter.
4120 (mips_read_fp_register_double): Add "frame" parameter.
4121
4122 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4123
4124 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4125 Fixes a bug where GDB would print the wrong register names for
4126 targets without SSE.
4127
4128 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4129 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4130 registers.
4131
4132 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4133 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4134 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4135 TDEP->sc_sp_offset.
4136
4137 From Michal Ludvig <mludvig@suse.cz>:
4138 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4139 and `sc_num_regs'.
4140 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4141 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4142 I386_ST0_REGNUM): Move here from...
4143 * i386-tdep.c: ... here.
4144 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4145 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4146 registers if possible.
4147 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4148 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4149 Remove variables.
4150 (i386bsd_sc_reg_offset): New variable.
4151 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4152 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4153 TDEP->sc_sp_offset.
4154 (i386fbsd_sc_reg_offset): New variable.
4155 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4156 TDEP->sc_num_regs.
4157 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4158 variables.
4159 (i386fbsd4_sc_reg_offset): New variable.
4160 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4161 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4162 TDEP->sc_sp_offset.
4163 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4164 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4165 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4166 Remove variables.
4167 (i386nbsd_sc_reg_offset): New variable.
4168 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4169 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4170 TDEP->sc_sp_offset.
4171 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4172 Remove variables.
4173 (i386obsd_sc_reg_offset): New variable.
4174 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4175 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4176 TDEP->sc_sp_offset.
4177 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4178 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4179 for frame pointer offset in `struct sigcontext'.
4180
4181 2003-05-31 Andrew Cagney <cagney@redhat.com>
4182
4183 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4184 architecture methods call_dummy_words, sizeof_call_dummy_words,
4185 push_return_address, store_struct_return, and fix_call_dummy. Set
4186 push_dummy_call instead of deprecated_push_arguments.
4187 (mips_store_struct_return): Delete function.
4188 (mips_fix_call_dummy): Delete function.
4189 (mips_push_return_address): Delete function.
4190 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4191 RA_REGNUM and T9_REGNUM.
4192 (mips_n32n64_push_dummy_call): Ditto for
4193 mips_n32n64_push_arguments.
4194 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4195 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4196
4197 2003-05-31 Andrew Cagney <cagney@redhat.com>
4198
4199 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4200 "dummy_addr" to "bp_addr".
4201 * infcall.c (call_function_by_hand): Pass "funaddr" to
4202 gdbarch_push_dummy_call.
4203 * gdbarch.h, gdbarch.c: Re-generate.
4204 * i386-tdep.c (i386_push_dummy_call): Update.
4205 * arm-tdep.c (arm_push_dummy_call): Update.
4206 * d10v-tdep.c (d10v_push_dummy_call): Update.
4207
4208 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4209
4210 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4211 variable declarations.
4212 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4213 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4214 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4215 x86_64_init_frame_pc, x86_64_init_frame_pc,
4216 x86_64_function_has_prologue): Remove prototypes.
4217 (X86_64_NUM_GREGS): New define.
4218 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4219 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4220 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4221 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4222 XMM1_REGNUM): Remove defines.
4223 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4224 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4225 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4226 X86_64_XMM1_REGNUM): New defines.
4227 (struct x86_64_register_info): Renamed from `struct
4228 register_info'. Remove `size' member.
4229 (x86_64_register_info_table): Remove variable.
4230 (x86_64_register_info): New variable.
4231 (X86_64_NUM_REGS): New define.
4232 (X86_64_NUM_GREGS): Remove define.
4233 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4234 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4235 Remove variables.
4236 (x86_54_dwarf2_reg_to_regnum): Remove function.
4237 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4238 (x86_64_dwarf_reg_to_regnum): New function.
4239 (x86_64_register_name): Rewrite.
4240 (x86_64_register_raw_size): Remove function.
4241 (x86_64_register_byte_table): Remove variable.
4242 (x86_64_register_byte): Remove function.
4243 (x86_64_register_virtual_type): Remove function.
4244 (x86_64_register_type): New function.
4245 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4246 x86_64_register_convert_to_raw): Remove functions.
4247 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4248 (x86_64_use_struct_convention): Make static. Adjust for renamed
4249 defines.
4250 (x86_64_frame_init_saved_regs): Remove function.
4251 (x86_64_push_arguments): Make static. Change to accept a regcache
4252 as argument.
4253 (x86_64_store_return_value, x86_64_extract_return_value): Make
4254 static. Rewrite based on i386 counterparts.
4255 (x86_64_push_dummy_call): New function.
4256 (X86_64_NUM_SAVED_REGS): New define.
4257 (x86_64_register_number): Remove function.
4258 (x86_64_store_struct_return): Remove function.
4259 (x86_64_frameless_function_invocation,
4260 x86_64_function_has_prologue): Remove functions.
4261 (PROLOG_BUFSIZE): Remove define.
4262 (struct x86_64_frame_cache): New structure.
4263 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4264 x86_64_frame_cache, x86_64_frame_this_id,
4265 x86_64_frame_prev_register, x86_64_frame_p,
4266 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4267 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4268 functions.
4269 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4270 variables.
4271 (x86_64_skip_prologue): Rewrite in terms of
4272 x86_64_analyze_prologue.
4273 (x86_64_frame_base_address): New function.
4274 (x86_64_frame_base): New variable.
4275 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4276 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4277 set deprecated_fp_regnum, deprecated_register_size,
4278 deprecated_register_bytes, register_raw_size, register_byte,
4279 register_virtual_type, register_convertiable,
4280 register_convert_to_virtual, convert_to_raw,
4281 deprecated_get_saved_register, deprecated_target_read_fp,
4282 deprecated_push_arguments, deprecated_push_return_address,
4283 deprecated_pop_frame, deprecated_store_struct_return,
4284 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4285 frameless_function_invocation, deprecated_frame_saved_pc,
4286 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4287 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4288 deprecated_init_frame_pc and virtual_frame_pointer. Call
4289 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4290 and x86_64_frame_p. Call frame_base_set_default to register
4291 x86_64_frame_base.
4292 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4293 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4294 (_initialize_x86_64_tdep): Remove function.
4295 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4296 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4297 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4298 define.
4299 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4300 (x86_64_linux_sigcontext_addr): Rewrite.
4301 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4302 x86_64_linux_frame_saved_pc): Remove functions.
4303 (x86_64_linux_pc_in_sigtramp): Renamed from
4304 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4305 trampoline.
4306 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4307 Remove_functions.
4308 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4309 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4310 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4311 (x86_64_regmap): Rename to regmap.
4312 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4313 x86_64_num_gregs.
4314 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4315 x86_64_regmap.
4316 (x86_64_fxsave_offset): Remove function.
4317 (supply_fpregset): Simply call x86_64_supply_fxsave.
4318 (fill_fpregset): Simply call x86_64_fill_fxsave.
4319 (fetch_inferior_registers, store_inferior_registers): Avoid
4320 asignment in if-statement.
4321 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4322 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4323 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4324 (fetch_core_registers): Remove function.
4325 (linux_elf_core_fns): Remove.
4326 (offsetoff): Don't define.
4327 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4328 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4329 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4330 add core-regset.o.
4331 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4332 protection against multiple includes instead of NM_X86_64_h. Add
4333 various comments. Include "config/nm-linux.h". Don't include
4334 <signal.h>.
4335 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4336 GET_THREAD_SIGNALS): Remove defines.
4337 (x86_64_register_u_addr, kernel_u_size,
4338 lin_thread_get_thread_signals): Remove prototypes.
4339 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4340 [HAVE_LINK_H]: Don't include "solib.h".
4341 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4342 * config/i386/tm-x86-64linux.h: Fix comments.
4343 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4344 x86-64-tdep.o): Update dependencies.
4345
4346 2003-05-30 Andrew Cagney <cagney@redhat.com>
4347
4348 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4349 Change parameter type to a "struct regcache *".
4350
4351 * gdbarch.sh: Regardless of the multi-arch level, always define
4352 the macro when not already defined.
4353 * gdbarch.h, gdbarch.c: Re-generate.
4354
4355 2003-05-30 Richard Henderson <rth@redhat.com>
4356
4357 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4358 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4359 (alpha_mdebug_frame_this_id): Likewise.
4360 (alpha_mdebug_frame_prev_register): Likewise.
4361 (alpha_mdebug_frame_base_address): Likewise.
4362 (alpha_mdebug_frame_locals_address): Likewise.
4363 (alpha_mdebug_frame_args_address): Likewise.
4364 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4365 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4366 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4367 loop increment.
4368 (alpha_heuristic_frame_this_id): Make static.
4369 (alpha_heuristic_frame_prev_register): Likewise.
4370 (alpha_heuristic_frame_base_address): Likewise.
4371 * alpha-tdep.h: Update.
4372
4373 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4374
4375 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4376 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4377 defenitions.
4378 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4379 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4380 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4381 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4382 I386_ST0_REGNUM): New defines.
4383 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4384 codestream_get): Remove define.
4385 (codestream_next_addr, condestream_addr, condestream_buf,
4386 codestream_off, codestream_cnt): Remove variables.
4387 (codestream_fill, codestream_seek, codestream_read): Remove
4388 functions.
4389 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4390 functionality.
4391 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4392 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4393 i386_frame_saved_pc, i386_saved_pc_after_call,
4394 i386_frame_num_args, i386_frame_init_saved_regs,
4395 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4396 i386_push_arguments): Remove functions.
4397 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4398 functionality. Use i386_analyze_prologue instead of
4399 i386_get_frame_setup.
4400 (I386_NUM_SAVED_REGS): New define.
4401 (struct i386_frame_cache): New structure.
4402 (i386_alloc_frame_cache, i386_analyze_struct_return,
4403 i386_skip_probe, i386_analyze_frame_setup,
4404 i386_analyze_register_saves, i386_analyze_prologue,
4405 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4406 i386_frame_prev_register, i386_sigtramp_frame_cache,
4407 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4408 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4409 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4410 New functions.
4411 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4412 New variables.
4413 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4414 I386_EAX_REGNUM and I386_EDX_REGNUM.
4415 (i386_extract_return_value, i386_store_return_value): Use
4416 I386_ST0_REGNUM where appropriate.
4417 (i386_extract_struct_value_address): Rewrite to use extract_address.
4418 (i386_svr4_pc_in_sigtramp): Add comment.
4419 (i386_svr4_sigcontext_addr): Rewrite.
4420 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4421 TDEP->sc_sp_offset.
4422 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4423 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4424 of new defines. Set push_dummy_call, don't set
4425 deprecated_push_arguments, deprecated_push_return_address,
4426 deprecated_pop_frame. Don't set parm_boundary. Don't set
4427 deprecated_frame_chain, deprecated_frame_saved_pc,
4428 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4429 save_dummy_frame_tos, unwind_pc. Call
4430 frame_unwind_append_predicate and frame_base_set_default. Don't
4431 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4432 Don't set frameless_function_invocation. Don't set
4433 deprecated_register_bytes, deprecated_register_size,
4434 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4435 * i386-linux-tdep.c: Fix formatting in some comments.
4436 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4437 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4438 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4439 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4440 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4441 redundant parentheses.
4442 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4443 (i386_linux_sigcontext_addr): Use it. Rewrite.
4444 (find_minsym_and_objfile): Change name of second argument.
4445 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4446 changed. Use frame_pc_unwind instead of
4447 DEPRECATED_SAVED_PC_AFTER_CALL.
4448 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4449 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4450 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4451 unwinder.
4452 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4453 "dummy-frame.h".
4454 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4455 (_initialize_i386_cygwin_tdep): New prototype.
4456 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4457 deprecated_frame_chain_valid.
4458 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4459 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4460 Rely on the SVR4 defaults.
4461 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4462 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4463
4464 2003-05-30 Andrew Cagney <cagney@redhat.com>
4465
4466 * infcall.c (call_function_by_hand): Always call
4467 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4468
4469 2003-05-30 Richard Henderson <rth@redhat.com>
4470
4471 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4472 increment.
4473
4474 2003-05-29 Jim Blandy <jimb@redhat.com>
4475
4476 Use gdbarch methods for solib stuff on PowerPC Linux.
4477 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4478 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4479 show through.
4480 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4481 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4482 giving the same effect as the #definitions above.
4483
4484 2003-05-29 Adam Fedor <fedor@gnu.org>
4485
4486 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4487 (find_implementation_from_class): Replace it with the standard
4488 case i.e. do nothing.
4489
4490 2003-05-29 Richard Henderson <rth@redhat.com>
4491
4492 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4493 (alpha_linux_sigtramp_offset): Use it. Make static.
4494 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4495 update for new frame model.
4496 * alpha-mdebug-tdep.c: New file.
4497 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4498 (alpha_osf1_init_abi): Install it.
4499 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4500 (linked_proc_desc_table): Remove.
4501 (alpha_frame_past_sigtramp_frame): Remove.
4502 (alpha_dynamic_sigtramp_offset): Remove.
4503 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4504 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4505 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4506 (push_sigtramp_desc): Remove.
4507 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4508 (alpha_cannot_store_register): Likewise.
4509 (alpha_sigcontext_addr): Remove.
4510 (alpha_find_saved_regs): Remove.
4511 (alpha_frame_init_saved_regs): Remove.
4512 (alpha_init_frame_pc_first): Remove.
4513 (read_next_frame_reg): Remove.
4514 (alpha_frame_saved_pc): Remove.
4515 (alpha_saved_pc_after_call): Remove.
4516 (temp_proc_desc, temp_saved_regs): Remove.
4517 (alpha_about_to_return): Remove.
4518 (cached_proc_desc): Remove.
4519 (alpha_frame_chain): Remove.
4520 (alpha_print_extra_frame_info): Remove.
4521 (alpha_init_extra_frame_info): Remove.
4522 (alpha_frame_locals_address): Remove.
4523 (alpha_frame_args_address): Remove.
4524 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4525 (alpha_push_dummy_frame): Remove.
4526 (alpha_pop_frame): Remove.
4527 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4528 (alpha_read_insn): New.
4529 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4530 for different insn encodings.
4531 (alpha_in_lenient_prologue): Remove.
4532 (struct alpha_sigtramp_unwind_cache): New.
4533 (alpha_sigtramp_frame_unwind_cache): New.
4534 (alpha_sigtramp_register_address): New.
4535 (alpha_sigtramp_frame_this_id): New.
4536 (alpha_sigtramp_frame_prev_register): New.
4537 (alpha_sigtramp_frame_unwind): New.
4538 (alpha_sigtramp_frame_p): New.
4539 (struct alpha_heuristic_unwind_cache): New.
4540 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4541 don't count nop insns that occur between functions.
4542 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4543 heuristic_proc_desc, but without the mdebug wrapping.
4544 (alpha_heuristic_frame_this_id): New.
4545 (alpha_heuristic_frame_prev_register): New.
4546 (alpha_heuristic_frame_unwind): New.
4547 (alpha_heuristic_frame_p): New.
4548 (alpha_heuristic_frame_base_address): New.
4549 (alpha_heuristic_frame_base): New.
4550 (alpha_unwind_dummy_id): New.
4551 (alpha_unwind_pc): New.
4552 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4553 frame related deprecated initializations; install replacements.
4554 (alpha_dump_tdep): Remove.
4555 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4556 (alpha_read_insn, alpha_after_prologue,
4557 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4558 alpha_heuristic_frame_prev_register,
4559 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4560 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4561 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4562 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4563
4564 2003-05-29 Andrew Cagney <cagney@redhat.com>
4565
4566 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4567 dependant on the availability of ASSERT_FUNCTION.
4568 (ASSERT_FUNCTION): Do not define when there is no function name.
4569
4570 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4571
4572 From Jimi X <jimix@watson.ibm.com>:
4573 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4574
4575 2003-05-28 Jim Blandy <jimb@redhat.com>
4576
4577 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4578 argument to ptrace to int; the system headers should give it the
4579 right type, and pointers don't fit in ints on powerpc64-*-*.
4580
4581 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4582
4583 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4584 DW_TAG_catch_block.
4585
4586 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4587
4588 * stabsread.c (dbx_lookup_type): Make static.
4589 (read_type): Ditto.
4590 (add_undefined_type): Ditto.
4591 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4592 not export.
4593
4594 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4595
4596 * hpread.c (hpread_has_name): Make static.
4597 (hpread_psymtab_to_symtab): Ditto.
4598 (file_exists): Ditto.
4599 (hpread_call_pxdb): Ditto.
4600 (hpread_pxdb_needed): Ditto.
4601 (hpread_quick_traverse): Ditto.
4602 (hpread_get_header): Ditto.
4603 (hpread_get_lntt): Ditto.
4604 (hpread_get_slt): Ditto.
4605 (class_of): Ditto.
4606
4607 2003-05-25 Andreas Schwab <schwab@suse.de>
4608
4609 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4610 stack_align and deprecated_extra_stack_alignment_needed.
4611 (m68k_stack_align): Delete.
4612
4613 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4614 (m68k_register_virtual_size): Likewise.
4615 (altos_skip_prologue): Remove obsolete function.
4616 (isi_frame_num_args): Likewise.
4617 (news_frame_num_args): Likewise.
4618 (m68k_fix_call_dummy): Make static.
4619 (m68k_push_dummy_frame): Likewise.
4620 (m68k_pop_frame): Likewise.
4621 (m68k_skip_prologue): Likewise.
4622 (m68k_frame_init_saved_regs): Likewise.
4623 (m68k_saved_pc_after_call): Likewise.
4624 (m68k_get_longjmp_target): Make multi-arch.
4625 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4626 structure. Register m68k_get_longjmp_target if enabled.
4627 * m68k-tdep.h (struct gdbarch_tdep): Define.
4628 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4629
4630 * Makefile.in (config.status): Also depend on configure.tgt
4631 and configure.host.
4632 (m68klinux-tdep.o): Update dependencies.
4633 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4634 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4635 (M68K_LINUX_JB_PC): Define.
4636 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4637 and take additional parameter.
4638 (m68k_linux_sigtramp_saved_pc): Update.
4639 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4640 m68k_linux_pc_in_sigtramp, in_plt_section,
4641 find_solib_trampoline_target.
4642 * config/m68k/tm-linux.h: Don't include any tm headers.
4643 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4644 (JB_ELEMENT_SIZE): Likewise.
4645 (JB_PC): Likewise.
4646 (GET_LONGJMP_TARGET): Likewise.
4647 (IN_SIGTRAMP): Likewise.
4648 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4649
4650 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4651
4652 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4653 (sparc32_push_arguments): Re-implement by calling
4654 sparc32_do_push_arguments.
4655
4656 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4657
4658 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4659 SPARC_O1_REGNUM): New defines.
4660 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4661 (sparc32_store_return_value): New function.
4662 (sparc_extract_struct_value_address): Rewrite to operate on a
4663 regcache.
4664 (sparc_gdbarch_init): Don't set
4665 deprecated_extract_struct_value_address. Set
4666 extract_struct_value_address instead. Don't set
4667 deprecated_extract_return_value and deprecated_store_return_value
4668 for 32-bit targets. Set extract_return_value and
4669 store_return_value instead.
4670 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4671 DEPRECTAED_EXTRACT_RETURN_VALUE,
4672 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4673 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4674 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4675 (sparc_store_return_value): Remove prototype.
4676 (sparc32_store_return_value): New prototype.
4677 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4678 Adjust prototypes.
4679
4680 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4681
4682 * sparcnbsd-tdep.c: Include "gdb_string.h".
4683
4684 2003-05-23 Andrew Cagney <cagney@redhat.com>
4685
4686 * p-valprint.c (pascal_val_print): Replace extract_address with
4687 the inline equivalent extract_unsigned_integer.
4688 * jv-valprint.c (java_value_print): Ditto.
4689 * ada-valprint.c (ada_val_print_1): Ditto.
4690 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4691
4692 2003-05-23 Theodore A. Roth <troth@openavr.org>
4693
4694 * blockframe.c (frameless_look_for_prologue): Remove unused
4695 after_prologue variable.
4696
4697 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4698
4699 * blockframe.c (get_pc_function_start): Rewrite to avoid
4700 asignments in if-statements.
4701
4702 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4703
4704 Committed by Elena Zannoni <ezannoni@redhat.com>.
4705 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4706 files, don't relocate absolute symbols (and do use mst_abs).
4707
4708 2003-05-23 Andrew Cagney <cagney@redhat.com>
4709
4710 * objc-lang.c: Include "gdb_assert.h".
4711 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4712 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4713 (gdb_check, gdb_check_fatal): Delete functions.
4714 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4715 gdb_assert.
4716 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4717 * Makefile.in (objc-lang.o): Update dependencies.
4718
4719 2003-05-22 Ian Lance Taylor <ian@airs.com>
4720
4721 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4722 with fprintf_filtered, not fprintf_unfiltered.
4723
4724 2003-05-22 Andrew Cagney <cagney@redhat.com>
4725
4726 * stack.c (frame_info): Inline extract_address, replacing it with
4727 extract_unsigned_integer.
4728 * findvar.c (unsigned_pointer_to_address): Ditto.
4729 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4730 * dwarf2expr.c (dwarf2_read_address): Ditto.
4731 * frame.c (frame_pc_unwind): Update comment.
4732 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4733
4734 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4735
4736 * infptrace.c (detach): Call print_sys_errmsg rather than
4737 perror_with_name to issue warning message when errno is non-zero
4738 after calling ptrace detach.
4739
4740 2003-05-21 J. Brobecker <brobecker@gnat.com>
4741
4742 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4743 macro definitions from here...
4744 * hppa-tdep.c: ...to there.
4745
4746 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4747
4748 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4749 register_ptrace_addr(). Fix all callers.
4750
4751 2003-05-21 Andreas Schwab <schwab@suse.de>
4752
4753 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4754 dependencies.
4755 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4756 end.
4757 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4758 (_initialize_m68k_linux_tdep): New function.
4759 (m68k_linux_frame_saved_pc): Make static.
4760 (m68k_linux_extract_return_value): Likewise.
4761 (m68k_linux_store_return_value): Likewise.
4762 (m68k_linux_extract_struct_value_address): Likewise.
4763 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4764 Remove.
4765 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4766 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4767 (DEPRECATED_FRAME_SAVED_PC): Remove.
4768
4769 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4770
4771 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4772 regset numbering rather than our own.
4773
4774 2003-05-19 David Carlton <carlton@bactrian.org>
4775
4776 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4777
4778 2003-05-19 David Carlton <carlton@bactrian.org>
4779
4780 Partial fix for PR c++/827.
4781 * cp-support.h: Include symtab.h.
4782 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4783 * cp-namespace.c: Update contributors.
4784 (cp_lookup_symbol_nonlocal): New.
4785 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4786 (lookup_symbol_file): Ditto.
4787 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4788 * block.h: Declare block_scope, block_using, block_global_block.
4789 * block.c (block_scope): New.
4790 (block_using, block_global_block): Ditto.
4791 * Makefile.in (cp_support_h): Depend on symtab_h.
4792 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4793
4794 2003-05-19 David Carlton <carlton@bactrian.org>
4795
4796 * language.h (struct language_defn): Add 'la_value_of_this'
4797 and 'la_lookup_symbol_nonlocal' members.
4798 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4799 lookup_symbol_static, lookup_symbol_global,
4800 lookup_symbol_aux_block.
4801 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4802 if we should search fields of this and how to do static/global
4803 lookup.
4804 (lookup_symbol_aux_block): Make extern.
4805 (basic_lookup_symbol_nonlocal): New.
4806 (lookup_symbol_static, lookup_symbol_global): Ditto.
4807 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4808 'la_lookup_symbol_nonlocal' members.
4809 * c-lang.c (c_language_defn, cplus_language_defn)
4810 (asm_language_defn, minimal_language_defn): Ditto.
4811 * jv-lang.c (java_language_defn): Ditto.
4812 * language.c (unknown_language_defn, auto_language_defn)
4813 (local_language_defn): Ditto.
4814 * m2-lang.c (m2_language_defn): Ditto.
4815 * objc-lang.c (objc_language_defn): Ditto.
4816 * scm-lang.c (scm_language_defn): Ditto.
4817 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4818 * p-lang.c (pascal_language_defn): Ditto for both.
4819 * Makefile.in (f-lang.o): Depend on value_h.
4820 (p-lang.o): Ditto.
4821
4822 2003-05-19 David Carlton <carlton@bactrian.org>
4823
4824 * block.h: Declare block_static_block.
4825 * block.c (block_static_block): New.
4826 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4827 lookup_symbol_aux_local, calling block_static_block instead.
4828 (lookup_symbol_aux_local): Delete 'static_block' argument.
4829
4830 2003-05-19 David Carlton <carlton@bactrian.org>
4831
4832 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4833
4834 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4835
4836 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4837 register numbers mapping.
4838
4839 2003-05-18 Adam Fedor <fedor@gnu.org>
4840
4841 * symtab.c (completion_list_objc_symbol): New function.
4842 (make_symbol_completion_list): Use it to add ObjC symbols
4843 when looking though the list.
4844 (language_search_unquoted_string): New function.
4845 (make_file_symbol_completion_list): Use it.
4846
4847 2003-05-18 Andreas Schwab <schwab@suse.de>
4848
4849 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4850 dependencies.
4851 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4852 as m68k_linux_extract_return_value.
4853 (DEPRECATED_STORE_RETURN_VALUE): Define as
4854 m68k_linux_store_return_value.
4855 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4856 m68k_linux_extract_struct_value_address.
4857 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4858 get_next_frame, get_frame_base, get_frame_pc.
4859 (m68k_linux_frame_saved_pc): Use get_frame_base.
4860 (m68k_linux_extract_return_value): New function.
4861 (m68k_linux_store_return_value): New function.
4862 (m68k_linux_extract_struct_value_address): New function.
4863 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4864
4865 * c-exp.y (typebase): Remove duplicate occurence of
4866 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4867 of lookup_signed_typename.
4868
4869 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4870
4871 * dwarf2loc.c (find_location_expression): Change type of second
4872 argument to `size_t *'.
4873 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4874 for size variable.
4875
4876 2003-05-18 David Carlton <carlton@bactrian.org>
4877
4878 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4879 'linkage_name'. Add comment.
4880 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4881 'linkage_name'.
4882 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4883 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4884 (lookup_block_symbol): Ditto.
4885
4886 2003-05-16 Andrew Cagney <cagney@redhat.com>
4887
4888 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4889 * gdbarch.h, gdbarch.c: Re-generate.
4890 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4891 * TODO (REGISTER_BYTES): Delete reference.
4892 * alpha-tdep.c (alpha_gdbarch_init): Update.
4893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4894 * x86-64-tdep.c (x86_64_init_abi): Update.
4895 * vax-tdep.c (vax_gdbarch_init): Update.
4896 * v850-tdep.c (v850_gdbarch_init): Update.
4897 * sparc-tdep.c (sparc_gdbarch_init): Update.
4898 * sh-tdep.c (sh_gdbarch_init): Update.
4899 * s390-tdep.c (s390_gdbarch_init): Update.
4900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4901 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4902 (ns32k_gdbarch_init_32382): Update.
4903 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4904 * mcore-tdep.c (mcore_gdbarch_init): Update.
4905 * m68k-tdep.c (m68k_gdbarch_init): Update.
4906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4907 * ia64-tdep.c (ia64_gdbarch_init): Update.
4908 * i386-tdep.c (i386_gdbarch_init): Update.
4909 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4910 * hppa-tdep.c (hppa_gdbarch_init): Update.
4911 * h8300-tdep.c (h8300_gdbarch_init): Update.
4912 * frv-tdep.c (frv_gdbarch_init): Update.
4913 * cris-tdep.c (cris_gdbarch_init): Update.
4914 * avr-tdep.c (avr_gdbarch_init): Update.
4915 * arm-tdep.c (arm_gdbarch_init): Update.
4916 * sparc-tdep.c (sparc_pop_frame): Update.
4917 * rs6000-tdep.c (rs6000_pop_frame): Update.
4918 * remote.c (init_remote_state): Update.
4919 (remote_prepare_to_store): Update.
4920 * remote-vx.c (vx_prepare_to_store): Update.
4921 * remote-sds.c (sds_fetch_registers): Update.
4922 (sds_prepare_to_store): Update.
4923 * remote-array.c: Update.
4924 * regcache.c (init_legacy_regcache_descr): Update.
4925 (init_regcache_descr): Update.
4926 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4927 (mips_o64_extract_return_value): Update.
4928 * irix5-nat.c (fetch_core_registers): Update.
4929 * irix4-nat.c (fetch_core_registers): Update.
4930 * i386-tdep.h: Update.
4931 * hppa-tdep.c (pa_do_registers_info): Update.
4932 (pa_do_strcat_registers_info): Update.
4933 * cris-tdep.c (cris_register_bytes_ok): Update.
4934 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4935 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4936 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4937 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4938 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4939 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4940 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4941 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4942 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4943 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4944 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4945 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4946 (REGISTER_BYTES_OK): Update.
4947 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4948 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4949
4950 2003-05-16 Ian Lance Taylor <ian@airs.com>
4951
4952 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4953 (vax_print_insn, print_insn_arg): Remove static functions.
4954 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4955 print_insn_vax from opcodes library.
4956 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4957
4958 2003-05-15 Andrew Cagney <cagney@redhat.com>
4959
4960 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4961 * target.h (memory_breakpoint_from_pc): Delete declaration.
4962 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4963 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4964 * monitor.c (monitor_insert_breakpoint): Use
4965 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4966 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4967 * gdbarch.h, gdbarch.c: Re-generate.
4968 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4969 (sparc_gdbarch_init): Set breakpoint_from_pc to
4970 sparc_breakpoint_from_pc.
4971 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4972 (BREAKPOINT_FROM_PC): Define.
4973 (sparc_breakpoint_from_pc): Declare.
4974 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4975 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4976 (BREAKPOINT_FROM_PC): Define.
4977 (BREAKPOINT): Delete macro.
4978 * target.h: Update comment.
4979 * s390-tdep.c (s390_gdbarch_init): Update comments.
4980 * remote.c: Update comments.
4981 * remote-mips.c: Update comments.
4982 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4983 * mem-break.c: Update comment.
4984 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4985 (ia64_memory_insert_breakpoint): Update.
4986 * config/sparc/tm-sparc.h: Update comment.
4987 * config/pa/tm-hppa64.h: Update comment.
4988 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4989 (rs6000_breakpoint_from_pc): Update.
4990 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4991 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4992 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4993 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4994 (mips_breakpoint_from_pc): Update.
4995 (mips_dump_tdep): Update.
4996
4997 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4998 * minsyms.c (lookup_minimal_symbol): Inline
4999 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5000
5001 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5002 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5003 * p-lang.c (pascal_printstr): Ditto.
5004 * objc-lang.c (objc_printstr): Ditto.
5005 * m2-lang.c (m2_printstr): Ditto.
5006 * jv-valprint.c (java_print_value_fields): Ditto.
5007 * f-lang.c (f_printstr): Ditto.
5008 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5009 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5010 for repeat_count_threshold.
5011 * Makefile.in (cp-valprint.o): Update dependencies.
5012
5013 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5014
5015 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5016 (examine_prologue): Support looking through leaf functions, knowing
5017 they start with mov r2,r12. Support skipping over indirect stores
5018 of the input registers. Upon hitting a non-nop branch instruction
5019 or predicated instruction, bail out by setting lim_pc to the current
5020 pc value in the loop. At the end, if the lim_pc value is still
5021 beyond our calculated value and we have trust_limit set,
5022 use the lim_pc value.
5023
5024 2003-05-15 Andrew Cagney <cagney@redhat.com>
5025
5026 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5027 generic_find_dummy_frame.
5028 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5029 (deprecated_generic_find_dummy_frame): Update.
5030 (deprecated_read_register_dummy): Update.
5031 * frame.c (deprecated_generic_get_saved_register): Update.
5032
5033 2003-05-15 Theodore A. Roth <troth@openavr.org>
5034
5035 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5036 (avr_gdbarch_init): Set breakpoint_from_pc method.
5037
5038 2003-05-15 Andrew Cagney <cagney@redhat.com>
5039
5040 * regcache.c (build_regcache): Set deprecated_register_valid
5041 directly.
5042 (deprecated_grub_regcache_for_register_valid): Delete function.
5043 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5044 declaration.
5045
5046 2003-05-15 David Carlton <carlton@bactrian.org>
5047
5048 Committed by Elena Zannoni <ezannoni@redhat.com>
5049 * symtab.c (lookup_symbol_aux): Delete calls to
5050 lookup_symbol_aux_minsyms.
5051 (lookup_symbol_aux_minsyms): Comment out function and
5052 prototype. Delete lookup by mangled name.
5053
5054 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5055
5056 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5057 correctly indicate an empty stack and ``stack_allocated'' to the
5058 indicate the number of elements initially allocated.
5059 (dwarf_expr_grow_stack): Simplify method for computing new
5060 stack size. Don't loop infinitely if ``stack_len'' is zero.
5061 (execute_stack_op): Move ``ctx->in_reg'' initialization
5062 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5063 be used in conjuction with DW_OP_piece. Revise error message
5064 accordingly.
5065
5066 2003-05-14 Theodore A. Roth <troth@openavr.org>
5067
5068 * MAINTAINERS: Update my email address.
5069 * avr-tdep.c: Ditto.
5070
5071 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5072
5073 * symtab.h (enum domain_enum): Rename from namespace_enum.
5074 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5075 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5076 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5077 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5078 TYPES_NAMESPACE, METHODS_NAMESPACE.
5079 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5080 (struct symbol, struct partial_symbol): Rename field
5081 'namespace_enum namespace' to 'domain_enum domain'.
5082 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5083 Delete old define kludge for namespace.
5084
5085 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5086 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5087 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5088 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5089 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5090 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5091 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5092 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5093 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5094 occurrences of the above.
5095
5096 2003-05-14 Ian Lance Taylor <ian@airs.com>
5097
5098 * Makefile.in (install-only): Use $(SHELL) when running
5099 mkinstalldirs.
5100
5101 2003-05-13 Ian Lance Taylor <ian@airs.com>
5102
5103 * MAINTAINERS (write after approval): Add myself.
5104
5105 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5106 second and third arguments.
5107 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5108 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5109
5110 2003-05-13 Andrew Cagney <cagney@redhat.com>
5111
5112 * defs.h (store_address): Delete declaration.
5113 findvar.c (store_address): Delete function.
5114 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5115 store_unsigned_integer.
5116 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5117 * v850-tdep.c (v850_push_arguments): Ditto.
5118 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5119 * sh-tdep.c (sh64_get_saved_register): Ditto.
5120 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5121 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5122 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5123 (mips_get_saved_register): Ditto.
5124 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5125 (find_func_descr, ia64_push_arguments): Ditto.
5126 * i386-tdep.c (i386_push_arguments): Ditto.
5127 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5128 * frv-tdep.c (frv_push_arguments): Ditto.
5129 * frame.c (legacy_saved_regs_prev_register): Ditto.
5130 (deprecated_generic_get_saved_register): Ditto.
5131 * findvar.c (unsigned_address_to_pointer): Ditto.
5132 * dwarf2read.c (dwarf2_const_value): Ditto.
5133 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5134 * alpha-tdep.c (alpha_push_arguments): Ditto.
5135
5136 2003-05-12 J. Brobecker <brobecker@gnat.com>
5137
5138 * NEWS: Mention that the hppa-hpux port has been partially
5139 multiarched (32bit ABIT only, so far).
5140
5141 2003-05-11 Andrew Cagney <cagney@redhat.com>
5142
5143 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5144 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5145 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5146 sim/testsuite/sim/arm/misaligned2.ms, and
5147 sim/testsuite/sim/arm/misaligned3.ms.
5148 * disasm.h (struct ui_file): Add opaque struct declaration.
5149 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5150 * frame.h (struct ui_file): Ditto.
5151
5152 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5153
5154 * value.h: Pretty print.
5155
5156 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5157
5158 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5159
5160 2003-05-08 Andrew Cagney <cagney@redhat.com>
5161
5162 * regcache.h (max_register_size): Delete declaration.
5163 * regcache.c (max_register_size): Delete function.
5164 (struct regcache_descr): Delete field "max_register_size".
5165 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5166 registers fit in MAX_REGISTER_SIZE.
5167 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5168 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5169 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5170 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5171 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5172 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5173 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5174 * dve3900-rom.c, hppa-tdep.c: Ditto.
5175
5176 2003-05-08 David Carlton <carlton@math.stanford.edu>
5177
5178 * valops.c (push_word): Fix typo.
5179
5180 2003-05-08 Andrew Cagney <cagney@redhat.com>
5181
5182 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5183 * gdbarch.h: Re-generate.
5184 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5185 (legacy_max_register_raw_size): Delete declaration.
5186 * regcache.c (legacy_max_register_raw_size): Delete function.
5187 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5188 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5189 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5190 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5191 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5192 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5193 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5194 * findvar.c, dwarf2cfi.c: Ditto.
5195
5196 2003-05-08 Andrew Cagney <cagney@redhat.com>
5197
5198 * mips-tdep.c (read_signed_register): New function, moved to here
5199 from "regcache.c".
5200 (read_signed_register_pid): Ditto.
5201 * regcache.c (read_signed_register_pid): Delete function, moved to
5202 "mips-tdep.c".
5203 (read_signed_register): Ditto.
5204 * regcache.h (read_signed_register): Delete declaration.
5205 (read_signed_register_pid): Delete declaration.
5206
5207 2003-05-08 Andrew Cagney <cagney@redhat.com>
5208
5209 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5210 * gdbarch.h: Re-generate.
5211 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5212 (legacy_max_register_virtual_size): Delete declaration.
5213 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5214 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5215 * tracepoint.c (memrange_sortmerge): Ditto.
5216 * sparc-tdep.c (sparc_print_registers): Ditto.
5217 * regcache.c (legacy_max_register_virtual_size): Delete function.
5218
5219 2002-05-08 J. Brobecker <brobecker@gnat.com>
5220
5221 * fork-child.c (escape_bang_in_quoted_argument): New function.
5222 (fork_inferior): Escape '!' characters in quoted arguments
5223 only when needed.
5224
5225 2003-05-08 J. Brobecker <brobecker@gnat.com>
5226
5227 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5228 the language of the CU is not currently supported by GDB.
5229
5230 2003-05-08 J. Brobecker <brobecker@gnat.com>
5231
5232 * defs.h (language): Add language_minimal enum value.
5233 * c-lang.c (minimal_language_defn): New language definition.
5234 (_initialize_c_language): Add the new minimal language to the list
5235 of languages known to GDB.
5236
5237 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5238
5239 * frame.c (get_frame_type): Don't attempt to lazily initialize
5240 frame's unwinder for legacy frames.
5241
5242 2003-05-07 Andrew Cagney <cagney@redhat.com>
5243
5244 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5245 and "regcache" parameters.
5246 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5247
5248 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5249
5250 * dwarf2read.c (dwarf_decode_lines): Only use output of
5251 check_cu_functions() when calling record_line(). Do not update
5252 the current address.
5253
5254 2003-05-07 Andrew Cagney <cagney@redhat.com>
5255
5256 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5257 code.
5258
5259 2003-05-07 Jim Blandy <jimb@redhat.com>
5260
5261 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5262 'maint info symtabs' and 'maint info psymtabs'.
5263 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5264 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5265 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5266 Declarations updated.
5267 * maint.c (maintenance_list_command): Delete.
5268 (_initialize_maint_cmds): Update calls to add_cmd.
5269 * gdbcmd.h (maintenancelistlist): Delete declaration.
5270 * cli/cli-cmds.c (maintenancelistlist): Delete.
5271 (init_cmd_lists): Don't initialize it.
5272 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5273
5274 2003-05-07 Andrew Cagney <cagney@redhat.com>
5275
5276 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5277 "regcache".
5278 (d10v_print_registers_info): Update.
5279 (d10v_dmap_register, d10v_imap_register): Delete functions.
5280 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5281 and "imap_register".
5282 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5283 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5284 * arch-utils.c (generic_remote_translate_xfer_address): Add
5285 "regcache" and "gdbarch" parameters.
5286 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5287 parameter. Change class to multi-arch.
5288 * gdbarch.h, gdbarch.c: Re-generate.
5289 * remote.c (remote_xfer_memory): Use
5290 gdbarch_remote_translate_xfer_address.
5291
5292 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5293
5294 * infrun.c (prev_pc): Move declaration ahead of proceed().
5295 (proceed): Refresh prev_pc value before resuming.
5296 (stop_stepping): Remove code to refresh prev_pc.
5297
5298 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5299
5300 * nto-tdep.c: Removed stray comment.
5301
5302 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5303
5304 * i386-nto-tdep.c: Fix old K&R function definitions.
5305 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5306 Also change add_show_from_set() call to add_setshow_cmd().
5307 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5308
5309 2003-05-05 Andrew Cagney <cagney@redhat.com>
5310
5311 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5312 (fprint_dummy_frames): New function.
5313 (maintenance_print_dummy_frames): New function.
5314 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5315 * frame.c (fprint_frame_id): Make global.
5316 * frame.h (fprint_frame_id): Declare.
5317 * Makefile.in (dummy-frame.o): Update dependencies.
5318
5319 2003-05-05 Andrew Cagney <cagney@redhat.com>
5320
5321 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5322 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5323 SIZEOF_CALL_DUMMY_WORDS.
5324 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5325 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5326 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5327 CALL_DUMMY_BREAKPOINT_OFFSET.
5328 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5329 CALL_DUMMY_START_OFFSET.
5330 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5331 * gdbarch.h, gdbarch.c: Re-generate.
5332 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5333 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5334 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5335 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5336 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5337 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5338 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5339 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5340 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5341 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5342 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5343 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5344 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5345 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5346 * config/sparc/tm-sparc.h: Update.
5347
5348 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5349
5350 * configure.tgt: Add i[3456]86-*-nto*.
5351 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5352 * nto-tdep.c: New file. Neutrino target support routines.
5353 * nto-tdep.h: New file. Neutrino target header.
5354 * config/tm-qnxnto.h: New file.
5355 * config/i386/i386nto.mt: New file.
5356 * config/i386/tm-i386nto.h: New file.
5357
5358 2003-05-04 Andrew Cagney <cagney@redhat.com>
5359
5360 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5361 (load_infrun_state): Ditto.
5362 (struct thread_info): Drop "prev_func_name" field.
5363 * thread.c (load_infrun_state): Update.
5364 (save_infrun_state): Update.
5365 * infrun.c (prev_func_name): Delete variable.
5366 (init_wait_for_inferior): Do not clear prev_func_name.
5367 (stop_stepping, keep_going, context_switch): Do not swap
5368 prev_func_name.
5369 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5370 instead of PC_IN_SIGTRAMP.
5371
5372 2003-05-04 Andrew Cagney <cagney@redhat.com>
5373
5374 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5375 REGISTER_BYTE with register_offset_hack.
5376 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5377 that REGISTER_BYTE is consistent with the regcache.
5378 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5379 * gdbarch.h, gdbarch.c: Regenerate.
5380
5381 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5382
5383 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5384 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5385
5386 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5387
5388 2003-05-03 J. Brobecker <brobecker@gnat.com>
5389
5390 From Thierry Schneider <tpschneider1@yahoo.com>
5391 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5392 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5393 (mi-cmd-symbol.o): Add rule.
5394
5395 2003-05-03 Andrew Cagney <cagney@redhat.com>
5396
5397 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5398 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5399 * gdbarch.h, gdbarch.c: Re-generate.
5400 * d10v-tdep.c (d10v_push_dummy_code): New function.
5401 (d10v_gdbarch_init): Set push_dummy_code.
5402 * infcall.c (legacy_push_dummy_code): New function.
5403 (generic_push_dummy_code): New function.
5404 (push_dummy_code): New function.
5405 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5406 instead of dummy_addr, to push_dummy_call. Move call to
5407 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5408 switch.
5409 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5410
5411 2003-05-03 Andrew Cagney <cagney@redhat.com>
5412
5413 * disasm.h (print_insn): Declare.
5414 * disasm.c (init_gdb_disassemble_info): New function.
5415 (gdb_disassembly): Call init_gdb_disassemble_info.
5416 (gdb_print_insn): New function.
5417 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5418 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5419 * mcore-tdep.c: Include "disasm.h"
5420 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5421 * d10v-tdep.c: Include "disasm.h".
5422 (display_trace): Call gdb_print_insn, instead of print_insn.
5423 (print_insn): Delete function.
5424 * printcmd.c: Include "disasm.h".
5425 (print_insn): Delete function.
5426 (print_formatted): Call gdb_print_insn, instead of print_insn.
5427 * Makefile.in (printcmd.o): Update dependencies.
5428 (mcore-tdep.o, d10v-tdep.o): Ditto.
5429
5430 2003-05-02 Andrew Cagney <cagney@redhat.com>
5431
5432 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5433 PC_REGNUM, re-indent.
5434 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5435 PC_REGNUM isn't set.
5436
5437 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5438 * gdbarch.h, gdbarch.c: Re-generate.
5439 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5440 register_virtual_size, pc_regnum, or register_bytes.
5441 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5442 (d10v_register_type): Use D10V_PC_REGNUM.
5443 (d10v_print_registers_info, d10v_read_pc): Ditto.
5444 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5445 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5446
5447 2003-05-02 David Carlton <carlton@bactrian.org>
5448
5449 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5450 the name with mstrsave.
5451
5452 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5453
5454 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5455 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5456 (host_charset_name, target_charset_name): New vars for use by
5457 set/show commands.
5458 (host_charset_enum, target_charset_enum): New enums for set/show
5459 commands.
5460 (set_charset_sfunc, set_host_charset_sfunc,
5461 set_target_charset_sfunc): New functions.
5462 (set_host_charset, set_target_charset): Make static.
5463 (list_charsets, set_host_charset_command,
5464 set_target_charset_command): Delete functions.
5465 (show_charset_command): Rewrite as....
5466 (show_charset): Hook this up with the set/show command mechanism.
5467 (_initialize_charset): Change names of charsets to match the
5468 set/show enums. Use host_charset_name and target_charset_name.
5469 Use set/show mechanism for charset, host-charset, target-charset
5470 commands. Do not make 'show host-charset' and 'show
5471 target-charset' be aliases of 'show charset'.
5472
5473 * charset.h (set_host_charset, set_target_charset): Don't export,
5474 they are not used outside the file.
5475
5476 2003-05-01 Andrew Cagney <cagney@redhat.com>
5477
5478 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5479 (gdb_disassembly): Make "di" non static, always initialize and
5480 cleanup. Always use dis_asm_read_memory.
5481 (gdb_dis_asm_read_memory): Delete function.
5482
5483 2003-05-01 Andrew Cagney <cagney@redhat.com>
5484
5485 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5486 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5487
5488 2003-04-30 Andrew Cagney <cagney@redhat.com>
5489
5490 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5491 "tm_print_insn_info".
5492 (TARGET_PRINT_INSN_INFO): Delete macro.
5493 (dis_asm_read_memory): Delete function declaration.
5494 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5495 (tm_print_insn_info): Delete variable definition.
5496 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5497 * gdbarch.h, gdbarch.c: Re-generate.
5498 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5499 "deprecated_tm_print_insn_info".
5500 * mcore-tdep.c (mcore_dump_insn): Ditto.
5501 * mips-tdep.c (mips_gdbarch_init): Ditto.
5502 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5503 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5504 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5505 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5506 instead of TARGET_PRINT_INSN_INFO, add comment.
5507 * s390-tdep.c (s390_get_frame_info): Instead of
5508 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5509 (s390_check_function_end, s390_is_sigreturn): Ditto.
5510 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5511 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5512 * disasm.c: Include "gdbcore.h".
5513 (_initialize_disasm): New function, initialize
5514 "deprecated_tm_print_insn_info".
5515 (deprecated_tm_print_insn_info): New variable.
5516 (dis_asm_read_memory): Moved from "corefile.c", made static.
5517 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5518 * Makefile.in (disasm.o): Update dependencies.
5519
5520 2003-04-30 Andrew Cagney <cagney@redhat.com>
5521
5522 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5523
5524 2003-04-29 Adam Fedor <fedor@gnu.org>
5525
5526 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5527 * infcall.c (find_function_addr): Make non-static.
5528 * infcall.h (find_function_addr): Declare.
5529 * Makefile.in (eval.o): Update dependencies.
5530
5531 2003-04-28 Adam Fedor <fedor@gnu.org>
5532
5533 * symtab.c (symbol_find_demangled_name): Check for and demangle
5534 ObjC symbols.
5535 (symbol_init_demangled_name): Init for language_objc as well.
5536
5537 2003-04-28 Andrew Cagney <cagney@redhat.com>
5538
5539 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5540 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5541 * gdbarch.h, gdbarch.c: Re-generate.
5542 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5543 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5544 * inferior.h (deprecated_read_fp): Rename read_fp.
5545 (generic_target_read_fp): Delete declaration.
5546 * regcache.c (generic_target_read_fp): Delete function.
5547 (deprecated_read_fp): Replace read_fp, use
5548 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5549 * d10v-tdep.c (d10v_read_fp): Delete function.
5550 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5551
5552 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5553 deprecated_target_read_fp to generic_target_read_fp.
5554 * sh-tdep.c (sh_gdbarch_init): Ditto.
5555 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5557 * frv-tdep.c (frv_gdbarch_init): Ditto.
5558
5559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5560 deprecated_fp_regnum.
5561 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5562 * vax-tdep.c (vax_gdbarch_init): Ditto.
5563 * v850-tdep.c (v850_gdbarch_init): Ditto.
5564 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5565 * sh-tdep.c (sh_gdbarch_init): Ditto.
5566 * s390-tdep.c (s390_gdbarch_init): Ditto.
5567 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5568 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5570 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5572 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5573 * i386-tdep.c (i386_gdbarch_init): Ditto.
5574 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5575 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5576 * frv-tdep.c (frv_gdbarch_init): Ditto.
5577 * cris-tdep.c (cris_gdbarch_init): Ditto.
5578 * avr-tdep.c (avr_gdbarch_init): Ditto.
5579 * arm-tdep.c (arm_gdbarch_init): Ditto.
5580 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5581
5582 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5583 * v850-tdep.c (v850_gdbarch_init): Ditto.
5584 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5585 * sh-tdep.c (sh_gdbarch_init): Ditto.
5586 * s390-tdep.c (s390_gdbarch_init): Ditto.
5587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5588 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5589 * mips-tdep.c (mips_gdbarch_init): Ditto.
5590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5592 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5593 * frv-tdep.c (frv_gdbarch_init): Ditto.
5594 * avr-tdep.c (avr_gdbarch_init): Ditto.
5595 * arm-tdep.c (arm_gdbarch_init): Ditto.
5596
5597 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5598 DEPRECATED_FP_REGNUM.
5599 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5600 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5601 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5602 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5603 (sparc32_register_virtual_type): Ditto.
5604 * sh-tdep.c (sh64_frame_chain): Ditto.
5605 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5606 (sh_nofp_frame_init_saved_regs): Ditto.
5607 (sh64_nofp_frame_init_saved_regs): Ditto.
5608 (sh_fp_frame_init_saved_regs): Ditto.
5609 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5610 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5611 * procfs.c (procfs_fetch_registers): Ditto.
5612 (procfs_store_registers): Ditto.
5613 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5614 (store_inferior_registers, fetch_core_registers): Ditto.
5615 (fetch_kcore_registers, clear_regs): Ditto.
5616 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5617 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5618 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5619 * nlm/i386.c (do_status): Ditto.
5620 * mipsv4-nat.c (supply_gregset): Ditto.
5621 * mips-tdep.c: Ditto for comments.
5622 * mips-nat.c (fetch_inferior_registers): Ditto.
5623 (store_inferior_registers, fetch_core_registers): Ditto.
5624 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5625 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5626 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5627 (i386_do_pop_frame, i386_register_type): Ditto.
5628 * hppa-tdep.c (hppa_frame_chain): Ditto.
5629 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5630 (hppa_pop_frame, hppa_read_fp): Ditto.
5631 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5632 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5633 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5634 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5635 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5636 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5637 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5638 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5639 * blockframe.c: Ditto for comments.
5640 * arch-utils.h: Ditto for comments.
5641 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5642 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5643 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5644 * alpha-tdep.h: Ditto for comments.
5645 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5646 (alpha_cannot_store_register): Ditto.
5647 (alpha_push_dummy_frame): Ditto.
5648 * alpha-nat.c (supply_gregset): Ditto.
5649
5650 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5651 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5652 * config/sparc/tm-sparc.h: Update comment.
5653
5654 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5655 deprecated_read_fp instead of TARGET_READ_FP.
5656 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5657 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5658 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5659 deprecated_read_fp instead of read_fp.
5660 * s390-tdep.c (s390_push_arguments): Ditto.
5661 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5662 * frame.h: Ditto in comments.
5663 * frame.c (legacy_get_prev_frame): Ditto.
5664 * dummy-frame.c (dummy_frame_this_id): Ditto.
5665 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5666
5667 2003-04-28 Andrew Cagney <cagney@redhat.com>
5668
5669 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5670 * gdbarch.h, gdbarch.c: Re-generate.
5671 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5672 * vax-tdep.c (_initialize_vax_tdep): Update.
5673 * v850-tdep.c (_initialize_v850_tdep): Update.
5674 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5675 * s390-tdep.c (_initialize_s390_tdep): Update.
5676 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5677 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5678 * mips-tdep.c (_initialize_mips_tdep): Update.
5679 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5680 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5681 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5682 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5683 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5684 * frv-tdep.c (_initialize_frv_tdep): Update.
5685 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5686 (_initialize_cris_tdep): Update.
5687 * arch-utils.c (legacy_print_insn): Update.
5688 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5689
5690 2003-04-26 Adam Fedor <fedor@gnu.org>
5691
5692 * linespec.c (decode_objc): New function to decode ObjC calls
5693 (decode_line_1): Check for ObjC calls (using decode_objc)
5694 * Makefile (linespec.o): Update dependencies.
5695
5696 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5697
5698 * breakpoint.h (struct breakpoint_ops): New.
5699 (struct breakpoint): Add ops member.
5700
5701 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5702 (mention): Use new breakpoint ops member.
5703 (set_raw_breakpoint): Initialize ops field to NULL.
5704 (print_exception_catchpoint, print_one_exception_catchpoint)
5705 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5706 (gnu_v3_exception_catchpoint_ops): New.
5707 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5708
5709 2003-04-25 Adam Fedor <fedor@gnu.org>
5710
5711 * Makefile.in (COMMON_OBS): Add objc-lang.o
5712
5713 2003-04-25 Andrew Cagney <cagney@redhat.com>
5714
5715 * d10v-tdep.c (print_insn): Delete function.
5716 (display_trace): Use TARGET_PRINT_INSN.
5717 (_initialize_d10v_tdep): Do not set tm_print_insn.
5718 (d10v_gdbarch_init): Set print_insn.
5719
5720 2003-04-25 Andrew Cagney <cagney@redhat.com>
5721
5722 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5723 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5724 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5725 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5726 (nr_dmap_regs, a0_regnum): ... new functions.
5727 (d10v_print_registers_info): Use a0_regnum, use register_size.
5728 (d10v_register_byte): Delete function.
5729 (d10v_register_raw_size): Delete function.
5730 (d10v_register_type): Use a0_regnum.
5731 (d10v_print_registers_info): Use a0_regnum.
5732 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5733 (d10v_gdbarch_init): Do not set register_byte or
5734 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5735 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5736 extract_address.
5737 (trace_command): Use XCALLOC.
5738 (print_insn): Delete reference to tm_print_insn.
5739 (saved_regs_unwinder): Use store_unsigned_integer instead of
5740 store_address.
5741 * frame.h (FRAME_OBSTACK_CALLOC): Define
5742
5743 2003-04-25 David Carlton <carlton@bactrian.org>
5744
5745 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5746
5747 2003-04-24 Adam Fedor <fedor@gnu.org>
5748
5749 * objc-lang.c: Include "valprint.h"
5750 * Makefile.in (objc-lang.o): Update dependencies.
5751
5752 2003-04-24 Adam Fedor <fedor@gnu.org>
5753
5754 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5755 architecture dependant compilation and mark as unimplemented
5756 (until they get put in the gdbarch vector).
5757
5758 2003-04-23 David Carlton <carlton@bactrian.org>
5759
5760 * cp-support.c (cp_find_first_component): Accept 'operator' in
5761 more locations.
5762
5763 2003-04-23 Andrew Cagney <cagney@redhat.com>
5764
5765 * infcall.c (call_function_by_hand): Eliminate redundant
5766 indentation. Move "saved_async" and "old_cleanups" to where they
5767 are needed.
5768
5769 2003-04-23 Andrew Cagney <cagney@redhat.com>
5770
5771 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5772 and "buffer". Move the "name" code to where it is needed.
5773
5774 2003-04-23 Andrew Cagney <cagney@redhat.com>
5775
5776 * infcall.c (call_function_by_hand): Move variables "start_sp",
5777 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5778 code to ON_STACK switch branch.
5779
5780 2003-04-23 Andrew Cagney <cagney@redhat.com>
5781
5782 * infcall.c (call_function_by_hand): Make declaration of "i",
5783 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5784 lint.
5785
5786 2003-04-23 Andrew Cagney <cagney@redhat.com>
5787
5788 * infcall.c (call_function_by_hand): Delete variable
5789 "n_method_args". Localize "param_type"'s declaration to the loop
5790 that it is used. Reinstate code assigning to said variable -
5791 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5792 Rationalize code using "param_type".
5793
5794 2003-04-22 Andrew Cagney <cagney@redhat.com>
5795
5796 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5797 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5798 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5799 to DEPRECATED_PUSH_RETURN_ADDRESS.
5800
5801 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5802
5803 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5804 on the DWARF2 register number prior to fetching a register.
5805
5806 2003-04-22 J. Brobecker <brobecker@gnat.com>
5807
5808 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5809 Update all the tests using SOFT_FLOAT considering the fact that
5810 this macro was always set to 0.
5811 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5812 considering the fact that this macro was always set to 0.
5813 * hppa-tdep.h (hppa_store_return_value): Likewise.
5814 (hppa_extract_return_value): Likewise.
5815
5816 2003-04-22 J. Brobecker <brobecker@gnat.com>
5817
5818 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5819 the hppa-pro target only.
5820
5821 2003-04-21 J. Brobecker <brobecker@gnat.com>
5822
5823 Ongoing multi-arch conversion effort for HP/UX:
5824 * config/pa/tm-hppa.h: Move all macro that are no longer
5825 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5826 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5827
5828 2003-04-21 J. Brobecker <brobecker@gnat.com>
5829
5830 * config/pa/tm-hppa.h: Obsolete a section that was only used
5831 for hppa-pro.
5832
5833 2003-04-21 J. Brobecker <brobecker@gnat.com>
5834
5835 Ongoing multi-arch conversion for HP/UX.
5836 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5837 if already defined (allows hppa64 to stay non-multiarched for now).
5838 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5839
5840 2003-04-21 Andrew Cagney <cagney@redhat.com>
5841
5842 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5843
5844 2003-04-21 Andrew Cagney <cagney@redhat.com>
5845
5846 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5847 "i386_num_mmx_regs".
5848
5849 2003-04-21 Andrew Cagney <cagney@redhat.com>
5850
5851 * infcall.c: New file.
5852 * infcall.h: New file.
5853 * valarith.c: Include "infcall.h".
5854 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5855 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5856 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5857 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5858 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5859 (SFILES): Add "infcall.c"
5860 (COMMON_OBS): Add "infcall.o".
5861 (infcall.o): Specify dependencies.
5862 * value.h (call_function_by_hand): Delete declaration.
5863 * inferior.h (run_stack_dummy): Delete declaration.
5864 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5865 (run_stack_dummy): Move to "infcall.c", merged into
5866 call_function_by_hand.
5867 * valops.c (call_function_by_hand): Moved to "infcall.c".
5868 (find_function_addr, value_arg_coerce): Ditto.
5869 (unwindonsignal_p, coerce_float_to_double): Ditto.
5870 (_initialize_valops): Move "set/show coerce-float-to-double", and
5871 "set/show unwindonsignal" commands to "infcall.c".
5872 * v850-tdep.c, target.h: Update comments.
5873 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5874 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5875 (sh64_init_extra_frame_info): Update comments.
5876 * mn10300-tdep.c: Update comments.
5877 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5878 * config/sparc/tm-sparc.h: Update comments.
5879 * breakpoint.h: Update comments.
5880 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5881 * arm-tdep.c: Update comment.
5882
5883 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5884
5885 * i386-tdep.c (i386_num_register_names): New variable.
5886 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5887 (MM0_REGNUM): Remove redundant parentheses in define.
5888 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5889 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5890 i386_mxcsr_regnum_p): Remove redundant parentheses.
5891 (i386_register_name): Use i386_num_register_names.
5892
5893 * i386-tdep.c (i386_extract_return_value,
5894 i386_store_return_value): Correct check for availability of
5895 floating-point registers.
5896
5897 * i386-tdep.c (i386_frame_num_args): Remove function.
5898 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5899
5900 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5901 mmx_regnum_to_fp_regnum. Adjust all callers.
5902
5903 * i386-tdep.c (i386_get_longjmp_target): Use
5904 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5905 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5906 extract_address.
5907
5908 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5909
5910 * core-regset.c: Update comments to reflect reality. Re-order
5911 includes.
5912 (fetch_core_registers): Use switch instead of if. Remove
5913 redundant prototype.
5914
5915 2003-04-18 Jim Blandy <jimb@redhat.com>
5916
5917 * s390-tdep.c (s390_frame_align): New function.
5918 (s390_gdbarch_init): Register it with the gdbarch object.
5919
5920 2003-04-17 Richard Henderson <rth@redhat.com>
5921
5922 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5923
5924 2003-04-17 Michael Snyder <msnyder@redhat.com>
5925 Karen Bennet <bennet@redhat.com>
5926
5927 Committed by Elena Zannoni <ezannoni@redhat.com>
5928 * gdb_gcore.sh: New script to create a core dump of a process.
5929
5930 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5931
5932 * values.c (value_being_returned): Don't fetch the return
5933 value if the return type is void.
5934
5935 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5936
5937 * thread-db.c: Reindented.
5938
5939 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5940
5941 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5942 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5943 as types.
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5970
5971 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5972 the size of ``long double'' to 16, instead of 8.
5973
5974 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5975
5976 * i386-linux-nat.c: Add some whitespace to make things more
5977 readable.
5978 (fetch_register, store_register, fetch_inferior_registers,
5979 store_inferior_registers): Get rid of assignment in if-statement.
5980 (store_register): Fix typo in error message.
5981
5982 2003-04-16 Andrew Cagney <cagney@redhat.com>
5983
5984 * utils.c (xmmalloc): Always allocate something, matches
5985 libiberty/xmalloc's semantics.
5986 (xmrealloc, xmcalloc): Ditto.
5987
5988 2003-04-16 Andrew Cagney <cagney@redhat.com>
5989
5990 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5991 update comments.
5992 (get_frame_type): Initialize unwind and type when needed.
5993 (get_frame_id, frame_register_unwind): Ditto.
5994
5995 2003-04-16 Andrew Cagney <cagney@redhat.com>
5996
5997 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5998 obsolete.
5999 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6000 * sparcl-stub.c: Obsolete file.
6001 * config/sparc/tm-sparclet.h: Obsolete file.
6002 * sparclet-stub.c: Obsolete file.
6003 * sparclet-rom.c: Obsolete file.
6004 * sparcl-tdep.c: Obsolete file.
6005 * config/sparc/tm-sparclite.h: Obsolete file.
6006 * config/sparc/sparclite.mt: Obsolete file.
6007 * config/sparc/sparclet.mt: Obsolete file.
6008 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6009 sparc86x-*-* obsolete.
6010
6011 2003-04-15 David Carlton <carlton@math.stanford.edu>
6012
6013 * Makefile.in (SFILES): Add cp-namespace.c.
6014 (COMMON_OBS): Add cp-namespace.o.
6015 (block.o): Depend on gdb_obstack_h and cp_support_h.
6016 (buildsym.o): Depend on cp_support_h.
6017 (cp-namespace.o): New.
6018 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6019 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6020 (dwarf2read.o): Depend on cp_support_h.
6021 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6022 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6023 processing_current_namespace.
6024 (read_namespace): Update processing_current_namespace; check for
6025 anonymous namespaces.
6026 (dwarf2_name): New function.
6027 (dwarf2_extension): Ditto.
6028 * cp-support.h: Update copyright, contributors.
6029 Add inclusion guards.
6030 Add opaque declaration for structs obstack, block, symbol.
6031 (struct using_direct): New struct.
6032 Add declarations for cp_find_first_component,
6033 cp_entire_prefix_len, processing_has_namespace_info,
6034 processing_current_namespace, cp_is_anonymous,
6035 cp_add_using_directive, cp_initialize_namespace,
6036 cp_finalize_namespace, cp_set_block_scope,
6037 cp_scan_for_anonymous_namespaces.
6038 * cp-namespace.c: New file.
6039 * cp-support.c: Update copyright.
6040 Include ctype.h, gdb_assert.h, gdbcmd.h.
6041 New variable maint_cplus_cmd_list.
6042 (cp_find_first_component): New function.
6043 (cp_entire_prefix_len, maint_cplus_command)
6044 (first_component_command, _initialize_cp_support): Ditto.
6045 * buildsym.c: Include cp-support.h.
6046 New variable using_list.
6047 (add_symbol_to_list): Check for anonymous namespaces.
6048 (finish_block): Set block's scope.
6049 (start_symtab): Initialize C++ namespace support.
6050 (end_symtab): Finalize C++ namespace support.
6051 * block.h: Add opaque declarations for structs
6052 block_namespace_info, using_direct, and obstack.
6053 Add declarations for block_set_scope and block_set_using.
6054 (struct block): Add 'language_specific' member.
6055 (BLOCK_NAMESPACE): New macro.
6056 * block.c: Include gdb_obstack.h and cp-support.h.
6057 (struct block_namespace_info): New struct.
6058 (block_set_scope): New function.
6059 (block_set_using, block_initialize_namespace): Ditto.
6060
6061 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6062
6063 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6064 (locate_base): Return early if there aren't any link map offsets.
6065 (svr4_solib_create_inferior_hook): Warn if shared library support
6066 is unavailable.
6067
6068 2003-04-14 David Carlton <carlton@math.stanford.edu>
6069
6070 * symtab.c (symbol_set_names): Add prefix when storing Java names
6071 in hash table. Fix for PR java/1039.
6072
6073 2003-04-14 David Carlton <carlton@math.stanford.edu>
6074
6075 * symtab.c (symbol_set_names): Rename 'name' arg to
6076 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6077 * symtab.h: Change 'name' argument in declaration of
6078 symbol_set_names to 'linkage_name'.
6079 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6080
6081 2003-04-14 Andrew Cagney <cagney@redhat.com>
6082
6083 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6084 return the fully sign-extended register value.
6085 (get_frame_pointer): Ditto.
6086 (mips_pop_frame): Initialize "proc_desc" after checking for a
6087 dummy frame.
6088
6089 2003-04-14 Andrew Cagney <cagney@redhat.com>
6090
6091 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6092 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6093 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6094 (mips_push_register): Delete function.
6095 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6096 PUSH_FP_REGNUM.
6097
6098 2003-04-14 Jim Blandy <jimb@redhat.com>
6099
6100 * symmisc.c: #include "gdb_regex.h".
6101 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6102 functions.
6103 * maint.c (maintenance_list_command): New function.
6104 (_initialize_maint_cmds): Register the above as commands.
6105 * symtab.h (maintenance_list_symtabs,
6106 maintenance_list_psymtabs): New declarations.
6107 * cli/cli-cmds.c (maintenancelistlist): New variable.
6108 (init_cmd_lists): Initialize it.
6109 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6110 * gdbcmd.h (maintenancelistlist): New declaration.
6111 * Makefile.in (symmisc.o): Update dependencies.
6112
6113 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6114
6115 * s390-nat.c: Include asm/types.h for addr_t.
6116
6117 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6118
6119 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6120 actually incoming type.
6121
6122 2003-04-13 Andrew Cagney <cagney@redhat.com>
6123
6124 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6125 get_next_frame and get_frame_saved_regs.
6126
6127 2003-04-13 Andrew Cagney <cagney@redhat.com>
6128
6129 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6130 of gdbarch_num_regs.
6131
6132 2003-04-13 Andrew Cagney <cagney@redhat.com>
6133
6134 * frame.h: Mention what replaced what in "struct frame_info".
6135 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6136 deprecated_update_frame_base_hack and
6137 deprecated_update_frame_pc_hack.
6138 * hppa-tdep.c: Ditto.
6139
6140 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6143 to read_reg and update its comment. Remove regnum member.
6144 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6145 Don't call read_reg when setting in_reg. Call read_reg to get
6146 the frame base if it's in a register. Return the register number
6147 on the stack instead of in the context. Remove extra arguments
6148 to read_reg.
6149 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6150 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6151 the register number on the expression stack.
6152 (needs_frame_read_reg): Remove extra arguments.
6153
6154 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6155
6156 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6157 made non-static.
6158 (execute_stack_op): All callers updated.
6159 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6160 * dwarf2loc.c (find_location_expression): New function.
6161 (dwarf_expr_frame_base): Call it.
6162 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6163 (dwarf2_tracepoint_var_ref): New function, broken out from
6164 locexpr_tracepoint_var_ref.
6165 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6166 Make static.
6167 (loclist_read_variable, loclist_read_needs_frame): New functions.
6168 (loclist_describe_location, loclist_tracepoint_var_ref): New
6169 functions.
6170 (dwarf2_loclist_funcs): New struct location_funcs.
6171 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6172 (struct dwarf2_locexpr_baton): Add comments.
6173 (dwarf2_loclist_funcs): New extern.
6174 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6175 base_address and base_known.
6176 (dwarf_loc_buffer): New variable.
6177 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6178 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6179 (dwarf2_has_info): Initialize dwarf_loc_offset.
6180 (dwarf2_build_psymtabs): Read in .debug_loc.
6181 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6182 DWARF_LOC_SIZE.
6183 (psymtab_to_symtab_1): Likewise. Move base address calculation
6184 here, from...
6185 (dwarf2_get_pc_bounds): ... here. Use the base address from
6186 cu_header.
6187 (dwarf2_symbol_mark_computed): Handle location lists.
6188
6189 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6190
6191 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6192 if the linkage name demangled successfully.
6193
6194 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6195
6196 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6197 disassmbly_flavour): Removed.
6198
6199 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6200
6201 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6202
6203 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6204
6205 2003-04-12 Andrew Cagney <cagney@redhat.com>
6206
6207 * frame.h (struct frame_info): Move definition from here ...
6208 * frame.c (struct frame_info): ... to here.
6209
6210 2003-04-12 Andrew Cagney <cagney@redhat.com>
6211
6212 * gdbthread.h (save_infrun_state): Delete parameter
6213 "prev_func_start".
6214 (struct thread_info): Delete field "prev_func_start".
6215 (load_infrun_state): Ditto.
6216 * thread.c (load_infrun_state, save_infrun_state): Update.
6217 * infrun.c (prev_func_start): Delete variable.
6218 (context_switch, init_wait_for_inferior): Update.
6219 (stop_stepping, keep_going): Update.
6220
6221 2003-04-12 Andrew Cagney <cagney@redhat.com>
6222
6223 * gdbarch.sh: Add missing opaque declarations.
6224 * gdbarch.h: Regnerate.
6225 * symtab.h: Add missing opaque declarations.
6226 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6227 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6228 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6229 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6230 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6231 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6232 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6233 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6234 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6235 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6236 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6237 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6238 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6239
6240 2003-04-11 Andrew Cagney <cagney@redhat.com>
6241
6242 * frame.c (get_frame_id): Return this frame's "id".
6243 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6244 function start.
6245 (legacy_saved_regs_this_id): Replace function body with
6246 internal-error.
6247 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6248 FRAME_OBSTACK_ZALLOC.
6249 (create_new_frame): Mark the frame ID as valid.
6250
6251 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6252
6253 * Makefile.in (libbfd_h): Added missing setting.
6254 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6255 according to the selected ABI.
6256
6257 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6258
6259 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6260
6261 2003-04-11 Andrew Cagney <cagney@redhat.com>
6262
6263 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6264 SAVED_PC_AFTER_CALL.
6265 * gdbarch.h, gdbarch.c: Regenerate.
6266 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6267 * x86-64-tdep.c (x86_64_init_abi): Update.
6268 * vax-tdep.c (vax_gdbarch_init): Update.
6269 * v850-tdep.c (v850_gdbarch_init): Update.
6270 * sparc-tdep.c (sparc_gdbarch_init): Update.
6271 * sh-tdep.c (sh_gdbarch_init): Update.
6272 * s390-tdep.c (s390_gdbarch_init): Update.
6273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6274 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6275 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6276 * mips-tdep.c (mips_gdbarch_init): Update.
6277 * mcore-tdep.c (mcore_gdbarch_init): Update.
6278 * m68k-tdep.c (m68k_gdbarch_init): Update.
6279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6280 * ia64-tdep.c (ia64_gdbarch_init): Update.
6281 (ia64_saved_pc_after_call): Update declaration.
6282 * i386ly-tdep.c (i386lynx_init_abi): Update.
6283 * i386-tdep.c (i386_gdbarch_init): Update.
6284 * hppa-tdep.c (hppa_gdbarch_init): Update.
6285 * h8300-tdep.c (h8300_gdbarch_init): Update.
6286 * frv-tdep.c (frv_gdbarch_init): Update.
6287 * cris-tdep.c (cris_gdbarch_init): Update.
6288 * avr-tdep.c (avr_gdbarch_init): Update.
6289 * arm-tdep.c (arm_gdbarch_init): Update.
6290 * alpha-tdep.c (alpha_gdbarch_init): Update.
6291 * ns32knbsd-nat.c (frame_num_args): Update.
6292 * ns32k-tdep.c (umax_frame_num_args): Update.
6293 * mips-tdep.c (mips_init_frame_pc_first): Update.
6294 * infrun.c (step_over_function): Update.
6295 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6296 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6297 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6298 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6299 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6300 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6301 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6302 * arch-utils.c (init_frame_pc_default): Update.
6303 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6304 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6305 declaration.
6306
6307 2003-04-11 Andrew Cagney <cagney@redhat.com>
6308
6309 * i387-tdep.c: Update copyright.
6310 (i387_to_double): Delete function.
6311 (double_to_i387): Delete function.
6312
6313 2003-04-10 Andrew Cagney <cagney@redhat.com>
6314
6315 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6316 frame's function's address. Simplify.
6317 (d10v_frame_unwind_cache): Check that the frame's function is
6318 non-zero.
6319
6320 2003-04-10 Jim Blandy <jimb@redhat.com>
6321
6322 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6323 call to set_gdbarch_deprecated_push_arguments.
6324
6325 2003-04-10 Andrew Cagney <cagney@redhat.com>
6326
6327 * frame.c (fprint_frame_id): New function.
6328 (fprint_frame_type, fprint_frame): New function.
6329 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6330 (create_sentinel_frame, get_frame_id): Ditto.
6331 (frame_id_p, frame_id_eq): Ditto.
6332 (frame_id_inner, create_new_frame): Ditto.
6333 (legacy_get_prev_frame, get_prev_frame): Ditto.
6334 (deprecated_update_frame_pc_hack): Ditto.
6335 (frame_register_unwind): Ditto.
6336 (deprecated_update_frame_base_hack): Ditto.
6337
6338 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6339
6340 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6341 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6342 frame_chain function.
6343 * Makefile.in: Add dependencies due to above change.
6344
6345 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6346
6347 * blockframe.c (legacy_frame_chain_valid): Move call to
6348 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6349 inside_entry_file.
6350
6351 2003-04-09 Andrew Cagney <cagney@redhat.com>
6352
6353 * frame.h (struct frame_id): Replace "pc" and "base" with
6354 "stack_addr" and "code_addr". Update comments.
6355 (frame_id_build): Update parameter names and comment.
6356 (struct frame_info): Replace "id_p" and "id" with "this_id".
6357 * dummy-frame.c (dummy_frame_this_id): Update.
6358 * breakpoint.c (print_one_breakpoint): Update.
6359 * frame.c (get_frame_id): Update.
6360 (get_frame_base, frame_id_build): Update.
6361 (create_sentinel_frame, legacy_get_prev_frame): Update.
6362 (deprecated_update_frame_base_hack): Update.
6363 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6364 (frame_id_inner): Ditto.
6365
6366 2003-04-09 Andrew Cagney <cagney@redhat.com>
6367
6368 * defs.h (gdb_print_host_address): Make "addr" parameter a
6369 pointer constant.
6370 * utils.c (gdb_print_host_address): Update.
6371
6372 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6373
6374 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6375 register number for R0 is 0.
6376
6377 2003-04-09 J. Brobecker <brobecker@gnat.com>
6378
6379 * frame.h (struct gdbarch): Add opaque structure definition
6380 to avoid a compilation warning on LynxOS 4.0.
6381
6382 2003-04-09 Andrew Cagney <cagney@redhat.com>
6383
6384 * frame.h (struct frame_info): Delete field "pc". Replace
6385 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6386 structure.
6387 * frame.c (frame_pc_unwind): Update.
6388 (create_sentinel_frame): Do not set "pc".
6389 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6390 (get_frame_pc): Call frame_pc_unwind.
6391 (deprecated_update_frame_pc_hack): Update.
6392 (create_new_frame): Use "pc" not "->pc".
6393
6394 2003-04-09 Andrew Cagney <cagney@redhat.com>
6395
6396 * frame.c (get_frame_id): Eliminate code updating "frame".
6397 (legacy_get_prev_frame): Ditto.
6398 (get_frame_base): Return id.base directly.
6399 (deprecated_update_frame_base_hack): Update "id.base".
6400 * frame.h (struct frame_info): Delete field "frame".
6401
6402 2003-04-09 Andrew Cagney <cagney@redhat.com>
6403
6404 * NEWS: Mention that the "Sequent family" is obsolete.
6405 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6406 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6407 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6408 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6409 * config/i386/tm-ptx4.h: Obsolete file.
6410 * config/i386/tm-ptx.h: Obsolete file.
6411 * symm-tdep.c: Obsolete file.
6412 * config/i386/symmetry.mt: Obsolete file.
6413 * config/i386/tm-symmetry.h: Obsolete file.
6414 * symm-nat.c: Obsolete file.
6415 * config/i386/nm-symmetry.h: Obsolete file.
6416 * config/i386/xm-symmetry.h: Obsolete file.
6417 * config/i386/symmetry.mh: Obsolete file.
6418 * config/i386/nm-ptx4.h: Obsolete file.
6419 * config/i386/ptx4.mh: Obsolete file.
6420 * config/i386/ptx.mt: Obsolete file.
6421 * config/i386/ptx.mh: Obsolete file.
6422 * config/i386/xm-ptx4.h: Obsolete file.
6423 * config/i386/xm-ptx.h: Obsolete file.
6424
6425 2003-04-09 Andrew Cagney <cagney@redhat.com>
6426
6427 Obsolete mips*-*-mach3*.
6428 * NEWS: Mention that mips*-*-mach3* is obsolete.
6429 * m3-nat.c: Obsolete file.
6430 * config/nm-m3.h: Obsolete file.
6431 * config/mips/tm-mipsm3.h: Obsolete file.
6432 * config/mips/mipsm3.mt: Obsolete file.
6433 * config/mips/mipsm3.mh: Obsolete file.
6434 * config/mips/xm-mipsm3.h: Obsolete file.
6435 * mipsm3-nat.c: Obsolete file.
6436 * configure.host: Obsolete mips-dec-mach3*.
6437 * configure.tgt: Obsolete mips*-*-mach3*.
6438
6439 2003-04-09 Andrew Cagney <cagney@redhat.com>
6440
6441 * doublest.h: Update copyright.
6442 (deprecated_store_floating, deprecated_extract_floating): Rename
6443 store_floating and extract_floating. Update comments.
6444 * doublest.c: Update copyright.
6445 (extract_floating_by_length): Replace extract_floating.
6446 (store_floating_by_length): Replace store_floating.
6447 (deprecated_extract_floating): New function.
6448 (deprecated_store_floating): New function.
6449 (extract_typed_floating): Call extract_floating_by_length.
6450 (store_typed_floating): Call store_floating_by_length.
6451 * x86-64-tdep.c (x86_64_store_return_value): Update.
6452 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6453 (sh64_extract_return_value): Update.
6454 (sh_sh4_register_convert_to_virtual): Update.
6455 (sh_sh64_register_convert_to_virtual): Update.
6456 (sh_sh4_register_convert_to_raw): Update.
6457 (sh_sh64_register_convert_to_raw): Update.
6458 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6459 (rs6000_register_convert_to_raw): Update.
6460 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6461 (ia64_register_convert_to_raw): Update.
6462 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6463 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6464 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6465 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6466 (alpha_register_convert_to_raw): Update.
6467
6468 2003-04-08 Andrew Cagney <cagney@redhat.com>
6469
6470 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6471 * gdbarch.h, gdbarch.c: Re-generate.
6472 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6473 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6474 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6475 conditionally, use frame_pc_unwind as an alternative. Add
6476 comments.
6477 * arch-utils.c (init_frame_pc_default): Only call
6478 SAVED_PC_AFTER_CALL when available.
6479
6480 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6481
6482 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6483 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6484 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6485 (start_remote): Ditto.
6486 (handle_inferior_event): Ditto.
6487 (save_inferior_status): Ditto.
6488 (restore_inferior_status): Ditto.
6489 * infcmd.c (attach_command): Ditto.
6490 * fork-child.c (startup_inferior): Ditto.
6491 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6492 * alpha-tdep.c (heuristic_proc_start): Ditto.
6493 * mips-tdep.c (heuristic_proc_start): Ditto.
6494 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6495 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6496 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6497 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6498 * remote-vx.c (vx_create_inferior): Ditto.
6499
6500 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6501
6502 * infrun.c (stop_soon_quietly): Make it an enum, to better
6503 override the default behavior of handle_inferior_event.
6504 (clear_proceed_status): Update uses of stop_soon_quietly to
6505 reflect that it is now an enum.
6506 (start_remote): Ditto.
6507 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6508 is set to handle the new GNU/Linux kernel behavior for
6509 attach/sigstop. Update uses of stop_soon_quietly.
6510 * inferior.h (enum stop_kind): New enum.
6511 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6512 Reset normal handle_inferior_event behavior, afterwards.
6513 * fork-child.c (startup_inferior): Update.
6514 * alpha-tdep.c (heuristic_proc_start): Update.
6515 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6516 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6517 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6518 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6519 * remote-vx.c (vx_create_inferior): Update.
6520 * mips-tdep.c (heuristic_proc_start): Update.
6521
6522 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6523
6524 * disasm.c (dump_insns): Move variables inside loop, or they will
6525 be freed more than once, causing wild memory corruptions.
6526 (gdb_disassembly): Look for the substring "-thread",
6527 instead of "-threads" in the target name, to make sure to find
6528 the 'multi-thread' target. Also, make sure we do the right thing
6529 with the "core" target.
6530
6531 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6532
6533 * mips-tdep.c (mips_print_fp_register): New function, created from
6534 do_fp_register_row(). Registers are now (also) printed as hex.
6535 Only one register is printed per row.
6536 (mips_print_register, do_fp_register_row): Print floating point
6537 registers with mips_print_fp_register().
6538
6539 2003-04-06 Andrew Cagney <cagney@redhat.com>
6540
6541 * valprint.h (inspect_it): Add extern declaration.
6542 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6543 (selectors_info, classes_info): Ditto.
6544 (find_objc_msgcall): Fix indentation.
6545 (objc_printstr): Delete extern declarations.
6546
6547 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6548
6549 2003-04-06 Andrew Cagney <cagney@redhat.com>
6550
6551 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6552 Update comment.
6553 * frame.c (legacy_saved_regs_this_id): Update.
6554 (legacy_get_prev_frame): Update.
6555 * xstormy16-tdep.c: Update comment.
6556 * sparc-tdep.c (sparc_frame_chain): Update comment.
6557 * blockframe.c (legacy_frame_chain_valid): Update.
6558
6559 2003-04-06 Andrew Cagney <cagney@redhat.com>
6560
6561 * valprint.c (val_print_type_code_int): Delete #ifdef
6562 PRINT_TYPELESS_INTEGER code.
6563
6564 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6565 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6566 multi-arch definition.
6567 * gdbarch.h: Re-generate.
6568
6569 2003-04-05 Andrew Cagney <cagney@redhat.com>
6570
6571 Eliminate FRAME_FIND_SAVED_REGS.
6572 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6573 Change FSR parameter to a pointer.
6574 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6575 Assume FSR parameter is a pointer.
6576 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6577 Make fsr a pointer.
6578 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6579 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6580 saved_regs a pointer.
6581 (hppa_frame_saved_pc): Ditto.
6582 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6583 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6584 pointer.
6585 (restore_pc_queue): Make fsr a pointer.
6586 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6587 (hppa_frame_chain): Make saved_regs a pointer, call
6588 hppa_frame_init_saved_regs.
6589 * sparc-tdep.c: Include "gdb_assert.h".
6590 (sparc_frame_find_saved_regs): Replace internal_error with
6591 gdb_assert.
6592 * remote-vxsparc.c (vx_read_register): Delete reference to
6593 FRAME_FIND_SAVED_REGS.
6594 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6595 * gdbarch.h: Regenerate.
6596 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6597 (deprecated_get_frame_saved_regs): Delete declaration.
6598 (struct frame_saved_regs): Delete definition.
6599 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6600 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6601 (hppa_frame_find_saved_regs): Delete declaration.
6602 (FRAME_FIND_SAVED_REGS): Delete macro.
6603 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6604 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6605 FRAME_FIND_SAVED_REGS in comment.
6606
6607 2003-04-05 Andrew Cagney <cagney@redhat.com>
6608
6609 * frame.c (frame_func_unwind, get_frame_func): New functions.
6610 * frame.h (get_frame_func, frame_func_unwind): Declare.
6611 (struct frame_info): Add field "prev_func" for caching the
6612 previous frame's function address.
6613 * arm-tdep.c (arm_frameless_function_invocation): Combine
6614 get_pc_function_start and get_frame_pc into get_frame_func.
6615 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6616 (sh64_nofp_frame_init_saved_regs): Ditto.
6617 * s390-tdep.c (s390_function_start): Ditto.
6618 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6619 (rs6000_frameless_function_invocation): Ditto.
6620 (rs6000_frame_saved_pc): Ditto.
6621 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6622 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6623 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6624 (i386_frame_init_saved_regs): Ditto.
6625 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6626 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6627 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6628 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6629 * blockframe.c (frameless_look_for_prologue): Ditto.
6630
6631 2003-04-05 Andrew Cagney <cagney@redhat.com>
6632
6633 * frame.c (legacy_get_prev_frame): Link prev to next at the
6634 function start. Update comments.
6635
6636 2003-04-05 Andrew Cagney <cagney@redhat.com>
6637
6638 * frame.c (get_frame_id): Update comment.
6639 (legacy_get_prev_frame): Update comment.
6640 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6641 * gdbarch.h: Regenerate.
6642 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6643 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6644
6645 2003-04-05 Andrew Cagney <cagney@redhat.com>
6646
6647 * stack.c (print_frame_info): Use get_frame_pc.
6648
6649 2003-04-04 Andrew Cagney <cagney@redhat.com>
6650
6651 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6652 the frame's type from the unwinder.
6653 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6654 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6655 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6656 (get_frame_base_address): Use get_frame_type.
6657 (get_frame_locals_address, get_frame_args_address): Ditto.
6658 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6659 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6660 (struct frame_info): Add comment explaining why the frame contains
6661 a "type" field.
6662 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6663 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6664 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6665 NORMAL_FRAME.
6666 * frame-unwind.h: Include "frame.h".
6667 (struct frame_unwind): Add "type" field.
6668 * Makefile.in (frame_unwind_h): Add $(frame_h).
6669
6670 2003-04-04 Andrew Cagney <cagney@redhat.com>
6671
6672 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6673 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6674 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6675 get_frame_base.
6676 (d10v_unwind_dummy_id): Use frame_id_build.
6677 * frame.c (find_frame_sal): Use get_frame_pc.
6678 (create_new_frame): Use deprecated_update_frame_pc_hack and
6679 deprecated_update_frame_base_hack.
6680 (create_sentinel_frame): Add comment about ->pc going away.
6681 (get_prev_frame): Add comment about ->pc going away.
6682 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6683 frame_id_build, deprecated_update_frame_pc_hack and
6684 deprecated_update_frame_base_hack.
6685 (select_frame): Use get_frame_pc.
6686 (legacy_saved_regs_this_id): Use frame_id_build.
6687
6688 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6689
6690 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6691 signed integer case.
6692 (classify_argument): Handle enumerations and references.
6693
6694 2003-04-04 Andrew Cagney <cagney@redhat.com>
6695
6696 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6697 ID to NULL.
6698
6699 2003-04-01 Adam Fedor <fedor@gnu.org>
6700
6701 * gdb/objc-lang.c (selectors_info): Replace calls to
6702 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6703 SYMBOL_NATURAL_NAME.
6704 (classes_info, find_methods): Likewise.
6705
6706 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6707
6708 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6709 ``mach'' to the value determined by bfd_default_set_arch_mach().
6710
6711 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6712
6713 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6714 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6715 (mi-cmd-file.o): Update dependencies.
6716
6717 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6718
6719 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6720 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6721
6722 2003-04-01 Adam Fedor <fedor@gnu.org>
6723
6724 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6725 * language.h (struct language_defn): Add la_demangle.
6726 (language_demangle): Declare.
6727 * language.c (language_demangle): New function.
6728 (unk_lang_demangle): Likewise.
6729 (unknown_language_defn, auto_language_defn, local_language_defn):
6730 Add ukn_lang_demangle.
6731 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6732 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6733 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6734 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6735 * jv-lang.c (java_demangle): New function
6736 (java_language_defn): Use it for la_demangle element.
6737 * objc-lang.c (objc_demangle): Add options argument
6738 (objc_language_defn): Use objc_demangle for la_demangle element.
6739 * maint.c (maintenance_demangle): Replace switch with
6740 call to language_demangle.
6741 * utils.c (fprintf_symbol_filtered): Likewise.
6742
6743 2003-04-01 Andrew Cagney <cagney@redhat.com>
6744
6745 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6746 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6747 PRINT_TYPELESS_INTEGER.
6748 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6749 PUSH_RETURN_ADDRESS.
6750
6751 2003-04-01 Andrew Cagney <cagney@redhat.com>
6752
6753 * Makefile.in (d10v-tdep.o): Update dependencies.
6754 * d10v-tdep.c: Include "frame-base.h".
6755 (d10v_frame_unwind): Make constant.
6756 (d10v_frame_base_address): New function.
6757 (d10v_frame_base): New variable.
6758 (d10v_gdbarch_init): Set frame_base default.
6759 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6760 comment for base.
6761 (d10v_frame_unwind_cache): Set and use "prev_sp".
6762 (d10v_frame_this_id): Use the previous frame's inner most stack
6763 address and this frame's func address for the frame ID. Use
6764 frame_id_build. Don't analyze beyond the current instruction.
6765
6766 2003-04-01 Andrew Cagney <cagney@redhat.com>
6767
6768 * frame.h (get_frame_locals_address, get_frame_args_address):
6769 Refer to the base address, instead of the address of the first
6770 local or parameter.
6771
6772 2003-04-01 Andrew Cagney <cagney@redhat.com>
6773
6774 Add frame debug info addresses:
6775 * frame-base.c: New file.
6776 * frame-base.h: New file.
6777 * frame.h (struct frame_base): Add opaque declaration.
6778 (get_frame_base): Update comment.
6779 (get_frame_base_address): Declare.
6780 (get_frame_locals_address): Declare.
6781 (get_frame_args_address): Declare.
6782 (struct frame_info): Add "base" and "base_cache". Update
6783 comments on the unwinder.
6784 * frame.c: Include "frame-base.h".
6785 (get_frame_locals_address): New function.
6786 (get_frame_base_address): New function.
6787 (get_frame_args_address): New function.
6788 * findvar.c (read_var_value): Use get_frame_locals_address and
6789 get_frame_args_address.
6790 * stack.c (frame_info): Use get_frame_locals_address and
6791 get_frame_args_address.
6792 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6793 moved to "frame-base.c".
6794 * printcmd.c (print_frame_nameless_args): Ditto.
6795 * symtab.h (address_class): Update comments.
6796 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6797 get_frame_base_address.
6798 * dwarf2expr.c (execute_stack_op): Ditto.
6799 * Makefile.in (frame_base_h): Define.
6800 (frame.o): Update dependencies.
6801 (frame-base.o): Add dependencies.
6802 (SFILES): Add frame-base.c.
6803 (COMMON_OBS): Add frame-base.o.
6804
6805 2003-04-01 Andrew Cagney <cagney@redhat.com>
6806
6807 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6808 CALL_DUMMY_LENGTH): Ditto.
6809 * gdbarch.c: Re-generate.
6810 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6811 (CALL_DUMMY_LENGTH): Delete macro.
6812 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6813 * arm-tdep.c (arm_gdbarch_init): Ditto.
6814 * avr-tdep.c (avr_gdbarch_init): Ditto.
6815 * cris-tdep.c (cris_gdbarch_init): Ditto.
6816 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6817 * frv-tdep.c (frv_gdbarch_init): Ditto.
6818 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6819 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6820 * i386-tdep.c (i386_gdbarch_init): Ditto.
6821 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6823 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6824 * mips-tdep.c (mips_gdbarch_init): Ditto.
6825 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6827 * s390-tdep.c (s390_gdbarch_init): Ditto.
6828 * sh-tdep.c (sh_gdbarch_init): Ditto.
6829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6830 * v850-tdep.c (v850_gdbarch_init): Ditto.
6831 * vax-tdep.c (vax_gdbarch_init): Ditto.
6832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6833
6834 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6835
6836 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6837
6838 2003-04-01 Andrew Cagney <cagney@redhat.com>
6839
6840 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6841 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6842 * gdbarch.h, gdbarch.c: Re-generate.
6843 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6844 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6845 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6846 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6847 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6848 * infcmd.c (run_stack_dummy): Simplify assuming
6849 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6850 * infrun.c (handle_inferior_event): Ditto.
6851 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6852 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6853 * arm-tdep.c (arm_gdbarch_init): Ditto.
6854 * avr-tdep.c (avr_gdbarch_init): Ditto.
6855 * cris-tdep.c (cris_gdbarch_init): Ditto.
6856 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6857 * frv-tdep.c (frv_gdbarch_init): Ditto.
6858 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6859 * i386-tdep.c (i386_gdbarch_init): Ditto.
6860 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6862 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6863 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6864 * mips-tdep.c (mips_gdbarch_init): Ditto.
6865 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6866 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6867 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6868 * s390-tdep.c (s390_gdbarch_init): Ditto.
6869 * sh-tdep.c (sh_gdbarch_init): Ditto.
6870 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6871 * v850-tdep.c (v850_gdbarch_init): Ditto.
6872 * vax-tdep.c (vax_gdbarch_init): Ditto.
6873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6874
6875 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6876
6877 * symfile.c (symfile_relocate_debug_section): Update call to
6878 bfd_simple_get_relocated_section_contents.
6879
6880 2003-03-31 Andrew Cagney <cagney@redhat.com>
6881
6882 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6883 * gdbarch.h, gdbarch.c: Regenerate.
6884 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6885 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6886 available.
6887 * frame.h (generic_fix_call_dummy): Delete declaration.
6888 * dummy-frame.h: Update comment.
6889 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6891 fix_call_dummy.
6892 * sh-tdep.c (sh_gdbarch_init): Ditto.
6893 * s390-tdep.c (s390_gdbarch_init): Ditto.
6894 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6895 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6897 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6898 * i386-tdep.c (i386_gdbarch_init): Ditto.
6899 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6900 * frv-tdep.c (frv_gdbarch_init): Ditto.
6901 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6902 * cris-tdep.c (cris_gdbarch_init): Ditto.
6903 * avr-tdep.c (avr_gdbarch_init): Ditto.
6904 * arm-tdep.c (arm_gdbarch_init): Ditto.
6905
6906 2003-03-31 J. Brobecker <brobecker@gnat.com>
6907
6908 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6909 (INIT_FRAME_AP): Likewise.
6910 (EXTRA_FRAME_INFO): Likewise.
6911
6912 2003-03-31 Andrew Cagney <cagney@redhat.com>
6913
6914 * gdbarch.sh: Include "symfile.h".
6915 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6916 * gdbarch.h, gdbarch.c: Re-generate.
6917 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6919 call_dummy_address, the default is at entry_point_address.
6920 * v850-tdep.c (v850_gdbarch_init): Ditto.
6921 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6922 * sh-tdep.c (sh_gdbarch_init): Ditto.
6923 * s390-tdep.c (s390_gdbarch_init): Ditto.
6924 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6925 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6926 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6927 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6928 * i386-tdep.c (i386_gdbarch_init): Ditto.
6929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6930 * frv-tdep.c (frv_gdbarch_init): Ditto.
6931 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6932 * cris-tdep.c (cris_gdbarch_init): Ditto.
6933 * arm-tdep.c (arm_gdbarch_init): Ditto.
6934
6935 2003-03-31 Andrew Cagney <cagney@redhat.com>
6936
6937 * gdbarch.sh (CALL_DUMMY_P): Delete.
6938 * gdbarch.h, gdbarch.c: Re-generate.
6939 * inferior.h (CALL_DUMMY_P): Delete macro.
6940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6941 * vax-tdep.c (vax_gdbarch_init): Update.
6942 * v850-tdep.c (v850_gdbarch_init): Update.
6943 * sparc-tdep.c (sparc_gdbarch_init): Update.
6944 * sh-tdep.c (sh_gdbarch_init): Update.
6945 * s390-tdep.c (s390_gdbarch_init): Update.
6946 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6947 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6949 * mips-tdep.c (mips_gdbarch_init): Update.
6950 * mcore-tdep.c (mcore_gdbarch_init): Update.
6951 * m68k-tdep.c (m68k_gdbarch_init): Update.
6952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6953 * ia64-tdep.c (ia64_gdbarch_init): Update.
6954 * i386-tdep.c (i386_gdbarch_init): Update.
6955 * h8300-tdep.c (h8300_gdbarch_init): Update.
6956 * frv-tdep.c (frv_gdbarch_init): Update.
6957 * d10v-tdep.c (d10v_gdbarch_init): Update.
6958 * cris-tdep.c (cris_gdbarch_init): Update.
6959 * breakpoint.c (deprecated_frame_in_dummy): Update.
6960 * avr-tdep.c (avr_gdbarch_init): Update.
6961 * alpha-tdep.c (alpha_gdbarch_init): Update.
6962 * arm-tdep.c (arm_gdbarch_init): Update.
6963 * dummy-frame.c (dummy_frame_this_id): Update comments.
6964 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6965 * frame.c (legacy_get_prev_frame): Ditto.
6966 * valops.c (call_function_by_hand): Delete function.
6967 (hand_function_call): Rename to call_function_by_hand
6968
6969 2003-03-30 Andrew Cagney <cagney@redhat.com>
6970
6971 2002-11-10 Klee Dienes <kdienes@apple.com>
6972 * value.h (struct value): Update comment.
6973
6974 2003-03-30 Andrew Cagney <cagney@redhat.com>
6975
6976 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6977 D10V_FP_REGNUM.
6978 (d10v_gdbarch_init): Do not set fp_regnum.
6979
6980 * frame.c (get_frame_base): Force ID initialization.
6981 (get_prev_frame): Move computation of the frame ID from here ...
6982 (get_frame_id): ... to here.
6983 (legacy_get_prev_frame): Mark the frame ID as valid.
6984 * frame.h (struct frame_info): Add field "id_p".
6985
6986 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6987
6988 * i386-tdep.c (i386_store_struct_return): Removed.
6989 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6990
6991 2003-03-30 Andrew Cagney <cagney@redhat.com>
6992
6993 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6994 * gdbarch.h, gdbarch.c: Regenerate.
6995 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6997 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6998 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6999 * i386-tdep.c (i386_gdbarch_init): Ditto.
7000 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7001 * cris-tdep.c (cris_gdbarch_init): Ditto.
7002 * vax-tdep.c (vax_gdbarch_init): Ditto.
7003 * s390-tdep.c (s390_gdbarch_init): Ditto.
7004 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7005 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7006 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7007 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7008 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7009 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7010 * sparc-tdep.c (sparc_gdbarch_init): Update.
7011 * sh-tdep.c (sh_gdbarch_init): Update.
7012 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7013 * mips-tdep.c (mips_gdbarch_init): Update.
7014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7015 * ia64-tdep.c (ia64_gdbarch_init): Update.
7016 * frv-tdep.c (frv_gdbarch_init): Update.
7017 * avr-tdep.c (avr_gdbarch_init): Update.
7018 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7019 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7020 instead of when push_dummy_call is not available.
7021
7022 2003-03-30 Andrew Cagney <cagney@redhat.com>
7023
7024 * infttrace.c: Include "gdbthread.h".
7025 (parent_attach_all): Fix function signature.
7026 (call_ptrace): Update call.
7027 * Makefile.in (infttrace.o): Update dependencies.
7028
7029 2003-03-30 Andrew Cagney <cagney@redhat.com>
7030
7031 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7032 PUSH_RETURN_ADDRESS.
7033 * gdbarch.h, gdbarch.c: Regenerate.
7034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7035 * x86-64-tdep.c (x86_64_init_abi): Update.
7036 * v850-tdep.c (v850_gdbarch_init): Update.
7037 * sparc-tdep.c (sparc_gdbarch_init): Update.
7038 * sh-tdep.c (sh_gdbarch_init): Update.
7039 * s390-tdep.c (s390_gdbarch_init): Update.
7040 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7041 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7042 * mips-tdep.c (mips_gdbarch_init): Update.
7043 * mcore-tdep.c (mcore_gdbarch_init): Update.
7044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7045 * ia64-tdep.c (ia64_gdbarch_init): Update.
7046 * i386-tdep.c (i386_gdbarch_init): Update.
7047 * h8300-tdep.c (h8300_gdbarch_init): Update.
7048 * frv-tdep.c (frv_gdbarch_init): Update.
7049 * cris-tdep.c (cris_gdbarch_init): Update.
7050 * avr-tdep.c (avr_gdbarch_init): Update.
7051 * arm-tdep.c (arm_gdbarch_init): Update.
7052 * valops.c (hand_function_call): Update.
7053
7054 2003-03-29 Andrew Cagney <cagney@redhat.com>
7055
7056 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7057 sizeof_call_dummy_words.
7058 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7059 define.
7060 * gdbarch.h: Regenerate.
7061
7062 2003-03-29 Andrew Cagney <cagney@redhat.com>
7063
7064 * infttrace.h: New file.
7065 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7066 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7067 (hpread_read_doc_function_type): Detect an initialized type1.
7068 (hpread_quick_traverse): Initialize mod_name_string.
7069 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7070 (som_solib_get_solib_by_pc): Declare.
7071 (so_lib_thread_start_addr): Declare.
7072 (no_shared_libraries): Declare.
7073 * somread.c (init_import_symbols): Make static. Add forward
7074 declaration.
7075 * config/pa/nm-hppah.h: Include "infttrace.h" for
7076 parent_attach_all.
7077 (hppa_insert_hw_watchpoint): Declare.
7078 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7079 * hppah-nat.c: Include "gdb_string.h".
7080 (parent_attach_all): Delete extern declaration, moved to
7081 "infttrace.h".
7082 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7083 int.
7084 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7085 * Makefile.in (infttrace_h): Define.
7086 (hpread.o): Update dependencies.
7087 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7088 * hppa-hpux-tdep.c: Include "gdb_string.h".
7089 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7090 * infrun.c (handle_inferior_event): Always initialize
7091 stepped_after_stopped_by_watchpoint. Add default and remove
7092 fallthrough in switch statement.
7093 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7094 parameter to int.
7095 (hppa_remove_hw_watchpoint): Ditto.
7096
7097 2003-03-29 Andrew Cagney <cagney@redhat.com>
7098
7099 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7100 offset.
7101
7102 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7103
7104 * arm-tdep.c (arm_push_arguments): Delete.
7105 (struct stack_item): New type.
7106 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7107 (arm_store_struct_return): Delte.
7108 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7109 arm_push_arguments or arm_store_struct_return.
7110
7111 2003-03-28 Andrew Cagney <cagney@redhat.com>
7112
7113 * Makefile.in (d10v-tdep.o): Update dependencies.
7114 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7115 * d10v-tdep.c: Include "remote.h".
7116 (target_resume_hook): Delete extern declaration.
7117 (target_wait_loop_hook): Ditto.
7118 (tdisassemble_command): Eliminate assignment in "if" conditional.
7119 (d10v_ts2_register_sim_regno): Eliminate call to
7120 legacy_register_sim_regno.
7121 (d10v_ts3_register_sim_regno): Ditto.
7122
7123 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7124
7125 * thread.c: Reindented.
7126 * lin-lwp.c: Ditto.
7127 * linux-proc.c: Ditto.
7128
7129 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7130
7131 * MAINTAINERS (write after approval): Add myself.
7132
7133 2003-03-27 Theodore A. Roth <troth@openavr.org>
7134
7135 * objc-exp.y: Add missing semi-colons.
7136
7137 2003-03-27 Andrew Cagney <cagney@redhat.com>
7138
7139 * regcache.c (write_sp): Delete function and references.
7140 * inferior.h (write_sp): Delete declaration.
7141 * valops.c (hand_function_call): Replace write_sp with
7142 TARGET_WRITE_SP.
7143 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7144 (sparc_pop_frame): Ditto.
7145
7146 2003-03-27 Andrew Cagney <cagney@redhat.com>
7147
7148 * NEWS: Mention removal of support for hppa*-*-bsd* and
7149 hppa*-*-osf* natives, and hppa*-*-pro* target.
7150 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7151 * config/pa/xm-pa.h: Obsolete file.
7152 * config/pa/xm-hppab.h: Obsolete file.
7153 * config/pa/nm-hppab.h: Obsolete file.
7154 * config/pa/tm-hppab.h: Obsolete file.
7155 * config/pa/tm-hppao.h: Obsolete file.
7156 * config/pa/nm-hppao.h: Obsolete file.
7157 * config/pa/tm-pro.h: Obsolete file.
7158 * config/pa/hppaosf.mt: Obsolete file.
7159 * config/pa/hppaosf.mh: Obsolete file.
7160 * config/pa/hppapro.mt: Obsolete file.
7161 * config/pa/hppabsd.mt: Obsolete file.
7162 * config/pa/hppabsd.mh: Obsolete file.
7163 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7164 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7165 hppa*-*-osf*.
7166
7167 2003-03-27 Andrew Cagney <cagney@redhat.com>
7168
7169 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7170 push_arguments. Don't set push_return_address or write_sp.
7171 (d10v_push_dummy_call): Replace d10v_push_arguments.
7172 (d10v_push_return_address, d10v_write_sp): Delete function,
7173 handled by push_dummy_call.
7174
7175 2003-03-26 Andrew Cagney <cagney@redhat.com>
7176
7177 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7178 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7179 regcache and dummy_addr parameters.
7180 * gdbarch.h, gdbarch.c: Re-generate.
7181 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7182 available; assume it will handle stack alignment and return
7183 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7184 legacy_push_arguments.
7185 (legacy_push_arguments): Rename default_push_arguments.
7186 * value.h (legacy_push_arguments): Rename default_push_arguments.
7187 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7188 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7189 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7190 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7191 * config/i386/tm-symmetry.h: Update.
7192 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7193 * x86-64-tdep.c (x86_64_init_abi): Update.
7194 * v850-tdep.c (v850_gdbarch_init): Update.
7195 * sparc-tdep.c (sparc_gdbarch_init): Update.
7196 * sh-tdep.c (sh_gdbarch_init): Update.
7197 * s390-tdep.c (s390_gdbarch_init): Update.
7198 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7199 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7200 * mips-tdep.c (mips_gdbarch_init): Update.
7201 * mcore-tdep.c (mcore_gdbarch_init): Update.
7202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7203 * ia64-tdep.c (ia64_gdbarch_init): Update.
7204 * i386-tdep.c (i386_gdbarch_init): Update.
7205 * hppa-tdep.c (hppa_gdbarch_init): Update.
7206 * h8300-tdep.c (h8300_gdbarch_init): Update.
7207 * frv-tdep.c (frv_gdbarch_init): Update.
7208 * d10v-tdep.c (d10v_gdbarch_init): Update.
7209 * cris-tdep.c (cris_gdbarch_init): Update.
7210 * avr-tdep.c (avr_gdbarch_init): Update.
7211 * arm-tdep.c (arm_gdbarch_init): Update.
7212 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7213 * alpha-tdep.c (alpha_gdbarch_init): Update.
7214
7215 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7216
7217 * signals/signals.c (do_target_signal_to_host): Correct realtime
7218 signal range test.
7219
7220 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7221
7222 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7223 (struct sal_chain, map_catch_names): Remove.
7224 (catch_exception_command_1): Don't call
7225 handle_gnu_4_16_catch_command.
7226
7227 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7228
7229 From Mark Dettinger <dettinge@de.ibm.com>:
7230 * dwarf2cfi.c (read_2u): Increment pointer by two.
7231
7232 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7233
7234 * signals/signals.c: Fix typos in last change.
7235
7236 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7237
7238 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7239 not already defined. Use __SIGRTMIN if available.
7240 (target_signal_from_host): Remove SIGRTMIN block.
7241 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7242 the signal is within the realtime range.
7243
7244 2003-03-25 Adam Fedor <fedor@gnu.org>
7245
7246 * Makefile.in (infrun.o): Add $(language_h)
7247 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7248 for language specific trampolines.
7249 * language.h (struct language_defn): Add skip_trampoline.
7250 (skip_language_trampoline): Declare.
7251 * language.c (unk_lang_trampoline, skip_language_trampoline):
7252 New functions.
7253 (unknown_language_defn, auto_language_defn, local_language_defn):
7254 Add ukn_lang_trampoline.
7255 * ada-lang.c (ada_language_defn): Add NULL for language
7256 specific skip_trampoline.
7257 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7258 scm-lang.c: Likewise.
7259 * objc-lang.c (objc_skip_trampoline): New function.
7260 (objc_language_defn): Add objc_skip_trampoline.
7261
7262 2003-03-25 Andrew Cagney <cagney@redhat.com>
7263
7264 * frame.c (get_prev_frame): Delay validating a frame's ID -
7265 non-NULL, didn't go backwards - until an attempt to unwind it to
7266 the previous frame.
7267
7268 2003-03-25 Andrew Cagney <cagney@redhat.com>
7269
7270 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7271 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7272 * gdbarch.h, gdbarch.c: Re-generate.
7273 * config/sparc/tm-sparc.h
7274 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7275 * sparc-tdep.c (sparc_gdbarch_init): Set
7276 deprecated_extra_stack_alignment_needed.
7277 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7279 extra_stack_alignment_needed.
7280 * v850-tdep.c (v850_gdbarch_init): Ditto.
7281 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7282 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7283 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7284 * cris-tdep.c (cris_gdbarch_init): Ditto.
7285 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7287
7288 2003-03-25 Andrew Cagney <cagney@redhat.com>
7289
7290 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7291 STORE_STRUCT_RETURN.
7292 * gdbarch.h, gdbarch.c: Regenerate.
7293 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7294 (d10v_push_arguments): Set the struct return register.
7295 (d10v_gdbarch_init): Update.
7296 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7297 * x86-64-tdep.c (x86_64_init_abi): Update.
7298 * vax-tdep.c (vax_gdbarch_init): Update.
7299 * v850-tdep.c (v850_gdbarch_init): Update.
7300 * sparc-tdep.c (sparc_gdbarch_init): Update.
7301 * sh-tdep.c (sh_gdbarch_init): Update.
7302 * s390-tdep.c (s390_gdbarch_init): Update.
7303 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7304 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7305 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7306 * mips-tdep.c (mips_gdbarch_init): Update.
7307 * mcore-tdep.c (mcore_gdbarch_init): Update.
7308 * m68k-tdep.c (m68k_gdbarch_init): Update.
7309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7310 * ia64-tdep.c (ia64_gdbarch_init): Update.
7311 * i386-tdep.c (i386_gdbarch_init): Update.
7312 * hppa-tdep.c (hppa_gdbarch_init): Update.
7313 * h8300-tdep.c (h8300_gdbarch_init): Update.
7314 * frv-tdep.c (frv_gdbarch_init): Update.
7315 * cris-tdep.c (cris_gdbarch_init): Update.
7316 * avr-tdep.c (avr_gdbarch_init): Update.
7317 * arm-tdep.c (arm_gdbarch_init): Update.
7318 * alpha-tdep.c (alpha_gdbarch_init): Update.
7319
7320 2003-03-25 Andrew Cagney <cagney@redhat.com>
7321
7322 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7323 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7324 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7325 * gdbarch.h, gdbarch.c: Regenerate.
7326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7327 call_dummy_stack_adjust_p.
7328 * vax-tdep.c (vax_gdbarch_init): Ditto.
7329 * v850-tdep.c (v850_gdbarch_init): Ditto.
7330 * sh-tdep.c (sh_gdbarch_init): Ditto.
7331 * s390-tdep.c (s390_gdbarch_init): Ditto.
7332 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7333 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7334 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7335 * mips-tdep.c (mips_gdbarch_init): Ditto.
7336 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7337 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7339 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7340 * i386-tdep.c (i386_gdbarch_init): Ditto.
7341 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7342 * frv-tdep.c (frv_gdbarch_init): Ditto.
7343 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7344 * cris-tdep.c (cris_gdbarch_init): Ditto.
7345 * avr-tdep.c (avr_gdbarch_init): Ditto.
7346 * arm-tdep.c (arm_gdbarch_init): Ditto.
7347 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7348 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7349 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7350 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7351 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7352 call_dummy_stack_adjust_p.
7353 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7354 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7355 * sparc-tdep.c (sparc32_push_arguments): Update.
7356 * valops.c (hand_function_call): Update.
7357
7358 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7359
7360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7361 set_gdbarch_char_signed.
7362
7363 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7364
7365 PR cli/548
7366 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7367
7368 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7369
7370 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7371 (_initialize_arm_tdep): Don't set tm_print_insn.
7372
7373 2003-03-24 Adam Fedor <fedor@gnu.org>
7374
7375 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7376 * objc-lang.h: Add multiple inclusion protection.
7377 (start_msglist, add_msglist, end_msglist): Additional declarations.
7378
7379 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7380
7381 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7382 value was renamed to ARM_FLOAT_SOFT_FPA.
7383
7384 2003-03-23 Andrew Cagney <cagney@redhat.com>
7385
7386 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7387 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7388 * gdbarch.h, gdbarch.c: Regenerate.
7389 * valops.c (hand_function_call): Update.
7390 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7391 * frame.c (legacy_saved_regs_this_id): Update.
7392 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7393 * dummy-frame.h: Update.
7394 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7395 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7396 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7397 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7398 * config/m68k/tm-sun3.h: Update.
7399 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7400 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7401 * x86-64-tdep.c (x86_64_init_abi): Update.
7402 * vax-tdep.c (vax_gdbarch_init): Update.
7403 * v850-tdep.c (v850_gdbarch_init): Update.
7404 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7405 * sh-tdep.c (sh_gdbarch_init): Update.
7406 * s390-tdep.c (s390_gdbarch_init): Update.
7407 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7408 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7409 (frame_get_saved_regs): Update.
7410 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7411 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7413 * mips-tdep.c (mips_gdbarch_init): Update.
7414 * mcore-tdep.c (mcore_gdbarch_init): Update.
7415 * m68k-tdep.c (m68k_gdbarch_init): Update.
7416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7417 * ia64-tdep.c (ia64_gdbarch_init): Update.
7418 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7419 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7420 (i386_interix_back_one_frame): Update.
7421 * hppa-tdep.c (hppa_gdbarch_init): Update.
7422 (hppa_init_extra_frame_info): Update.
7423 * h8300-tdep.c (h8300_gdbarch_init): Update.
7424 * frv-tdep.c (frv_gdbarch_init): Update.
7425 * cris-tdep.c (cris_gdbarch_init): Update.
7426 * avr-tdep.c (avr_gdbarch_init): Update.
7427 * arm-tdep.c (arm_gdbarch_init): Update.
7428 * alpha-tdep.c (alpha_gdbarch_init): Update.
7429
7430 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7431
7432 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7433 (arm_get_fp_model): Declare.
7434 * arm-tdep.c (fp_model_strings): New string array.
7435 (arm_fp_model, current_fp_model): New variables.
7436 (arm_get_fp_model): New function.
7437 (arm_set_fp): New function.
7438 (set_fp_model_sfunc): New function.
7439 (show_fp_model): New function.
7440 (_initialize_arm_tdep): Add new command to set/show the FPU.
7441 (arm_extract_return_value): Use arm_get_fp_model.
7442 (arm_store_return_value): Likewise.
7443 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7444 to initialize the floating-point data types.
7445 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7446 model is FPA.
7447
7448 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7449
7450 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7451 the current setting of each value.
7452 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7453 new_set and new_show. Use add_setshow_cmd_full and
7454 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7455 commands and add new version as subcommands of "set/show arm".
7456
7457 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7458
7459 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7460 (set_arm_command, show_arm_command): New functions.
7461 (_initialize_arm_tdep): Add them.
7462 (num_disassembly_options): Renamed from num_flavor_options.
7463 (valid_disassembly_styles): Renamed from valid_flavors.
7464 (disassembly_style): Renamed from disassembly_flavor.
7465 (set_disassembly_style_sfunc): Renamed from
7466 set_disassembly_flavor_sfunc.
7467 (set_disassembly_style): Renamed from set_disassembly_flavor.
7468 (arm_othernames): Updated.
7469 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7470 command. Add "set/show arm disassembly" commands. Deprecate
7471 "othernames" command.
7472
7473 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7474
7475 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7476 (arm-tdep.o): Depend on elf_arm_h.
7477
7478 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7479
7480 * Makefile.in (coff_internal_h): Define.
7481 (arm-tdep.o): Update dependencies.
7482
7483 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7484
7485 * arm-tdep.c (prologue_cache): Delete.
7486 (check_prologue_cache, save_prologue_cache): Delete.
7487 (arm_scan_prologue): Don't check or update the prologue_cache.
7488 (arm_gdb_arch_init): Don't initialize it.
7489 (_initialize_arm_tdep): Likewise.
7490
7491 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7492
7493 * MAINTAINERS (tui): Maintainer of tui code.
7494
7495 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7496
7497 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7498 (i386-cygwin-tdep.o): Add dependencies.
7499 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7500 * i386-cygwin-tdep.c: New file.
7501 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7502 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7503
7504 2003-03-20 Andrew Cagney <cagney@redhat.com>
7505
7506 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7507 (handle_inferior_event): Remove code calling
7508 DYNAMIC_TRAMPOLINE_NEXTPC.
7509
7510 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7511 already has a full path.
7512
7513 * main.c (gdb_main): Return 1.
7514 (captured_main): Call error to report an invalid interpreter.
7515
7516 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7517 * alpha-osf1-tdep.c: Include "gdb_string.h".
7518
7519 2003-03-19 J. Brobecker <brobecker@gnat.com>
7520
7521 Continuing work to convert the hppa targets to multiarch partial.
7522
7523 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7524 method, now that hppa_push_dummy_frame has a conformant prototype.
7525 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7526 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7527 for the switch to multiarch partial.
7528
7529 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7530
7531 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7532 when iss is issNull.
7533
7534 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7535
7536 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7537 NUM_REGS bounds check.
7538
7539 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7540
7541 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7542 * mips-tdep.c (gdb_assert.h): Include.
7543 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7544 (mips_register_name): Handle integer registers explicitly. Add
7545 bounds checking.
7546 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7547 (mips_lsi33k_reg_names): Don't list integer registers; they're
7548 handled by mips_register_name() now.
7549 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7550 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7551 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7552 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7553 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7554
7555 2003-03-18 Andrew Cagney <cagney@redhat.com>
7556
7557 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7558 a void pointer.
7559 * gdbtypes.h (print_scalar_formatted): Update declaration.
7560 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7561
7562 2003-03-18 J. Brobecker <brobecker@gnat.com>
7563
7564 * infrun.c (observer.h): Add #include.
7565 (normal_stop): Add call to observer_notify_normal_stop.
7566 * Makefile.in (infrun.o): Add dependency on observer.h.
7567
7568 2003-03-18 J. Brobecker <brobecker@gnat.com>
7569
7570 Continuing work to convert the hppa targets to multiarch partial.
7571 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7572 parameter. Reformat comment.
7573 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7574 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7575 to match new profile.
7576
7577 2003-03-18 J. Brobecker <brobecker@gnat.com>
7578
7579 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7580 appear to be working in any case.
7581
7582 2003-03-18 J. Brobecker <brobecker@gnat.com>
7583
7584 * observer.c (observer_test_first_observer): New static variable.
7585 (observer_test_second_observer): Likewise.
7586 (observer_test_third_observer): Likewise.
7587 (observer_test_first_notification_function): New static function.
7588 (observer_test_second_notification_function): Likewise.
7589 (observer_test_third_notification_function): Likewise.
7590
7591 2003-03-17 J. Brobecker <brobecker@gnat.com>
7592
7593 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7594 * somsolib.c (gdb_assert.h): Likewise.
7595 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7596 (somsolib.o): Likewise.
7597
7598 2003-03-17 Andrew Cagney <cagney@redhat.com>
7599
7600 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7601 BFD. Simplify setting of di.endian.
7602
7603 2003-03-17 Andrew Cagney <cagney@redhat.com>
7604
7605 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7606 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7607
7608 From Elena Zannoni <ezannoni@redhat.com>
7609 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7610 vector and floating-point parameters.
7611 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7612 convention.
7613 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7614
7615 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7616
7617 * MAINTAINERS: Remove my name from several maintainership roles.
7618
7619 2003-03-17 Andrew Cagney <cagney@redhat.com>
7620
7621 Fix frame off-by-one bug.
7622 * frame-unwind.h (frame_this_id_ftype): Replace
7623 frame_unwind_id_ftype.
7624 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7625 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7626 with "prev_register".
7627 * frame-unwind.c (frame_unwind_find_by_pc): Return
7628 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7629 comment.
7630 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7631 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7632 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7633 (dummy_frame_unwind): Update.
7634 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7635 sentinel_frame_register_unwind.
7636 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7637 (sentinel_frame_unwinder): Update.
7638 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7639 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7640 * frame.c (create_sentinel_frame): Update. Initialize
7641 "prologue_cache" instead of "unwind_cache".
7642 (frame_register_unwind): Call this frame's prev_register with the
7643 next frame and this frame's prologue cache.
7644 (get_prev_frame): Simplify. Always call prev frame's this_id with
7645 this frame and prev frame's prologue cache. Document that this
7646 call is shifted one to the left when compared to the
7647 frame_register_unwind call.
7648 (legacy_saved_regs_prev_register): Replace
7649 frame_saved_regs_register_unwind.
7650 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7651 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7652 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7653 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7654 (d10v_frame_unwind): Update.
7655 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7656 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7657 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7658 "saved_regs" with "this_saved_regs".
7659
7660 2003-03-16 Andrew Cagney <cagney@redhat.com>
7661
7662 * frame.c (frame_pop): Don't call target_store_registers. Fix
7663 problem reported by Mark Kettenis.
7664
7665 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7666
7667 * i386-tdep.c (i386_register_type): Renamed from
7668 i386_register_virtual_type. Adjust function signature.
7669 (i386_gdbarch_init): Set register_type instead of
7670 deprecated_max_register_raw_size,
7671 deprecated_max_register_virtual_size and register_virtual_type.
7672
7673 2003-03-14 Andrew Cagney <cagney@redhat.com>
7674
7675 * frame.c (get_prev_frame): When a legacy frame, always call
7676 legacy_get_prev_frame. Simplify unwind code using assumption that
7677 the unwinder is new.
7678 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7679 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7680 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7681
7682 2003-03-14 Andrew Cagney <cagney@redhat.com>
7683
7684 * frame.c (get_saved_register): Delete function.
7685 * frame.h (get_saved_register): Delete declaration.
7686 * xstormy16-tdep.c: Update comment.
7687 * regcache.h: Update comments.
7688 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7689 get_saved_register and extract_address, use
7690 frame_read_unsigned_register.
7691 (sparc_frame_saved_pc): Ditto.
7692 (sparc_get_saved_register): Instead of get_saved_register, use
7693 frame_register.
7694 (sparc_pop_frame): Ditto.
7695 * findvar.c: Update comments.
7696 (value_of_register): Call frame_register instead of
7697 get_saved_register.
7698 (value_from_register): Ditto.
7699 * config/sparc/tm-sparc.h: Update comment.
7700 * breakpoint.c: Update comment.
7701
7702 2003-03-14 Andrew Cagney <cagney@redhat.com>
7703
7704 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7705 GET_SAVED_REGISTER.
7706 * gdbarch.h, gdbarch.c: Re-generate.
7707 * frame.h: Update comments.
7708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7709 * x86-64-tdep.c (x86_64_init_abi): Update.
7710 * sparc-tdep.c (sparc_gdbarch_init): Update.
7711 * sh-tdep.c (sh_gdbarch_init): Update.
7712 * mips-tdep.c (mips_gdbarch_init): Update.
7713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7714 * cris-tdep.c (cris_gdbarch_init): Update.
7715 * ia64-tdep.c (ia64_gdbarch_init): Update.
7716 * frame.c (frame_register): Update.
7717 (get_saved_register): Update.
7718 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7719
7720 2003-03-13 Andrew Cagney <cagney@redhat.com>
7721
7722 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7723 * gdbarch.h, gdbarch.c: Regenerate.
7724 * valops.c (hand_function_call): Update comment.
7725 * stack.c (return_command): Update comment.
7726 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7727 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7729 * x86-64-tdep.c (x86_64_init_abi): Update.
7730 * vax-tdep.c (vax_gdbarch_init): Update.
7731 * v850-tdep.c (v850_gdbarch_init): Update.
7732 * sparc-tdep.c (sparc_gdbarch_init): Update.
7733 * sh-tdep.c (sh_gdbarch_init): Update.
7734 * s390-tdep.c (s390_gdbarch_init): Update.
7735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7736 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7737 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7738 * mips-tdep.c (mips_gdbarch_init): Update.
7739 * mcore-tdep.c (mcore_gdbarch_init): Update.
7740 * m68k-tdep.c (m68k_gdbarch_init): Update.
7741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7742 * ia64-tdep.c (ia64_gdbarch_init): Update.
7743 * i386-tdep.c (i386_gdbarch_init): Update.
7744 * hppa-tdep.c (hppa_gdbarch_init): Update.
7745 * h8300-tdep.c (h8300_gdbarch_init): Update.
7746 * frv-tdep.c (frv_gdbarch_init): Update.
7747 * cris-tdep.c (cris_gdbarch_init): Update.
7748 * avr-tdep.c (avr_gdbarch_init): Update.
7749 * arm-tdep.c (arm_gdbarch_init): Update.
7750 * alpha-tdep.c (alpha_gdbarch_init): Update.
7751
7752 2003-03-13 Andrew Cagney <cagney@redhat.com>
7753
7754 * frame.c (legacy_frame_p): New function.
7755 (get_prev_frame): Use legacy_frame_p.
7756 * frame.h (legacy_frame_p): Declare.
7757
7758 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7759
7760 * MAINTAINERS (write after approval): Alphabetically
7761 listing corrected.
7762
7763 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7764
7765 * MAINTAINERS (write after approval): Add myself.
7766
7767 2003-03-12 Andrew Cagney <cagney@redhat.com>
7768
7769 * frame.c (get_prev_frame): Rename the frame parameter to
7770 "this_frame".
7771 (get_next_frame, legacy_get_prev_frame): Ditto.
7772
7773 2003-03-12 Andrew Cagney <cagney@redhat.com>
7774
7775 * frame.c (get_current_frame): Check target_has_registers before
7776 checking target_has_stack.
7777 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7778 instead of deprecated_selected_frame.
7779 * findvar.c (value_of_register): Pass "frame", not
7780 deprecated_selected_frame, to value_of_builtin_reg.
7781
7782 2003-03-12 Andrew Cagney <cagney@redhat.com>
7783
7784 * regcache.c (regcache_cooked_write_signed): New function.
7785 (regcache_cooked_write_unsigned): New function.
7786 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7787 (regcache_cooked_read_signed): Fix regnum in range assertion.
7788 * regcache.h (regcache_cooked_write_signed): Declare.
7789 (regcache_cooked_write_unsigned): Declare.
7790
7791 2003-03-12 Andrew Cagney <cagney@redhat.com>
7792
7793 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7794 * gdbarch.h, gdbarch.c: Re-generate.
7795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7796 * x86-64-tdep.h: Update.
7797 * x86-64-tdep.c (x86_64_init_abi): Update.
7798 * v850-tdep.c (v850_gdbarch_init): Update.
7799 * sparc-tdep.c (sparc_gdbarch_init): Update.
7800 * sh-tdep.c (sh_gdbarch_init): Update.
7801 * s390-tdep.c (s390_gdbarch_init): Update.
7802 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7803 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7804 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7805 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7806 * mips-tdep.c (mips_gdbarch_init): Update.
7807 * mcore-tdep.c (mcore_gdbarch_init): Update.
7808 * m68k-tdep.c (m68k_gdbarch_init): Update.
7809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7810 * ia64-tdep.c (ia64_gdbarch_init): Update.
7811 * i386-tdep.c (i386_gdbarch_init): Update.
7812 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7813 * hppa-tdep.c (hppa_gdbarch_init): Update.
7814 * h8300-tdep.c (h8300_gdbarch_init): Update.
7815 * frv-tdep.c (frv_gdbarch_init): Update.
7816 * cris-tdep.c (cris_gdbarch_init): Update.
7817 * avr-tdep.c (avr_gdbarch_init): Update.
7818 * arm-tdep.c (arm_gdbarch_init): Update.
7819 * alpha-tdep.c (alpha_gdbarch_init): Update.
7820 * sh-tdep.c (sh_init_extra_frame_info): Update.
7821 (sh64_init_extra_frame_info): Update.
7822 * ns32knbsd-nat.c (frame_num_args): Update.
7823 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7824 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7825 (xstormy16_frame_chain_valid): Update.
7826 * vax-tdep.c (vax_saved_pc_after_call): Update.
7827 * v850-tdep.c (v850_frame_chain): Update.
7828 (v850_pop_frame): Update.
7829 (v850_init_extra_frame_info): Update.
7830 * sparc-tdep.c (setup_arbitrary_frame): Update.
7831 * ns32k-tdep.c (umax_frame_num_args): Update.
7832 * s390-tdep.c (s390_pop_frame_regular): Update.
7833 * mn10300-tdep.c (mn10300_frame_chain): Update.
7834 (mn10300_pop_frame_regular): Update.
7835 (mn10300_init_extra_frame_info): Update.
7836 * mips-tdep.c (mips_init_frame_pc_first): Update.
7837 (mips_frame_chain): Update.
7838 (mips_pop_frame): Update.
7839 * mcore-tdep.c (mcore_frame_chain): Update.
7840 (mcore_pop_frame): Update.
7841 (mcore_init_extra_frame_info): Update.
7842 * arch-utils.c (init_frame_pc_default): Update.
7843 * m68k-tdep.c (isi_frame_num_args): Update.
7844 (delta68_frame_num_args): Update.
7845 (news_frame_num_args): Update.
7846 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7847 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7848 (alpha_frame_chain): Update.
7849 (alpha_pop_frame): Update.
7850 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7851 (hppa_init_extra_frame_info): Update.
7852 (hppa_frame_chain): Update.
7853 (hppa_frame_chain_valid): Update.
7854 * cris-tdep.c (cris_init_extra_frame_info): Update.
7855 * avr-tdep.c (avr_init_extra_frame_info): Update.
7856 * arm-tdep.c (arm_frame_chain_valid): Update.
7857 (arm_init_extra_frame_info): Update.
7858 (arm_pop_frame): Update.
7859 * frame.c (frame_pc_unwind): Update.
7860 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7861 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7862 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7863 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7864 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7865 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7866
7867 2003-03-12 Andrew Cagney <cagney@redhat.com>
7868
7869 Eliminate the need for POP_FRAME.
7870 * frame.c (do_frame_unwind_register): New function.
7871 (frame_pop): When no POP_FRAME, pop the frame using register
7872 unwind and a scratch regcache.
7873 (frame_saved_regs_pop): Delete function.
7874 (trad_frame_unwinder): Update.
7875 * d10v-tdep.c (d10v_frame_pop): Delete function.
7876 (d10v_frame_unwind): Update.
7877 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7878 (sentinel_frame_unwinder): Update.
7879 * dummy-frame.c (dummy_frame_pop): Delete function.
7880 (dummy_frame_unwind): Update.
7881 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7882 (struct frame_unwind): Update.
7883
7884 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7885
7886 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7887 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7888 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7889 Do range checks on register number obtained from debugging info.
7890 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7891 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7892 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7893 mapping function.
7894 (do_fp_register_row): Fix typo which caused double type to be
7895 used when attempting to unpack a float.
7896
7897 2003-03-11 J. Brobecker <brobecker@gnat.com>
7898
7899 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7900
7901 2003-03-11 Andrew Cagney <cagney@redhat.com>
7902
7903 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7904 frame. Problem found by Corinna Vinschen.
7905
7906 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7907
7908 * doublest.c (floatformat_from_length): Accept also
7909 the real size of 'long double' type.
7910
7911 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7912
7913 From Klee Dienes <kdienes@apple.com>:
7914 * breakpoint.c (bpstat_copy): Copy the command lines as well
7915 as the old value, to match what is freed in bpstat_clear.
7916
7917 2003-03-10 David Carlton <carlton@math.stanford.edu>
7918
7919 * minsyms.c (add_minsym_to_hash_table): Replace
7920 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7921 (compare_minimal_symbols, compact_minimal_symbols)
7922 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7923 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7924 of DEPRECATED_SYMBOL_MATCHES_NAME.
7925 (lookup_minimal_symbol_solib_trampoline): Ditto.
7926
7927 2003-03-10 Andrew Cagney <cagney@redhat.com>
7928
7929 * regcache.h (regcache_cooked_read_ftype): Define.
7930 (regcache_save, regcache_restore): Add a cooked_read parameter.
7931 * regcache.c (regcache_save, regcache_restore): Update.
7932 (do_cooked_read): New function.
7933 (regcache_cpy): Pass do_cooked_read to regcache_save and
7934 regcache_restore.
7935
7936 2003-03-10 Andrew Cagney <cagney@redhat.com>
7937
7938 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7939 * gdbarch.h, gdbarch.c: Re-generate.
7940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7941 * x86-64-tdep.h: Update.
7942 * x86-64-tdep.c (x86_64_init_abi): Update.
7943 * v850-tdep.c (v850_gdbarch_init): Update.
7944 * sparc-tdep.c (sparc_gdbarch_init): Update.
7945 * sh-tdep.c (sh_gdbarch_init): Update.
7946 * s390-tdep.c (s390_gdbarch_init): Update.
7947 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7948 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7949 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7950 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7951 * mips-tdep.c (mips_gdbarch_init): Update.
7952 * mcore-tdep.c (mcore_gdbarch_init): Update.
7953 * m68k-tdep.c (m68k_gdbarch_init): Update.
7954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7955 * ia64-tdep.c (ia64_gdbarch_init): Update.
7956 * i386-tdep.c (i386_gdbarch_init): Update.
7957 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7958 * hppa-tdep.c (hppa_gdbarch_init): Update.
7959 * h8300-tdep.c (h8300_gdbarch_init): Update.
7960 * frv-tdep.c (frv_gdbarch_init): Update.
7961 * cris-tdep.c (cris_gdbarch_init): Update.
7962 * avr-tdep.c (avr_gdbarch_init): Update.
7963 * arm-tdep.c (arm_gdbarch_init): Update.
7964 * alpha-tdep.c (alpha_gdbarch_init): Update.
7965 * sh-tdep.c (sh_init_extra_frame_info): Update.
7966 (sh64_init_extra_frame_info): Update.
7967 * ns32knbsd-nat.c (frame_num_args): Update.
7968 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7969 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7970 (xstormy16_frame_chain_valid): Update.
7971 * vax-tdep.c (vax_saved_pc_after_call): Update.
7972 * v850-tdep.c (v850_frame_chain): Update.
7973 (v850_pop_frame): Update.
7974 (v850_init_extra_frame_info): Update.
7975 * sparc-tdep.c (setup_arbitrary_frame): Update.
7976 * ns32k-tdep.c (umax_frame_num_args): Update.
7977 * s390-tdep.c (s390_pop_frame_regular): Update.
7978 * mn10300-tdep.c (mn10300_frame_chain): Update.
7979 (mn10300_pop_frame_regular): Update.
7980 (mn10300_init_extra_frame_info): Update.
7981 * mips-tdep.c (mips_init_frame_pc_first): Update.
7982 (mips_frame_chain): Update.
7983 (mips_pop_frame): Update.
7984 * mcore-tdep.c (mcore_frame_chain): Update.
7985 (mcore_pop_frame): Update.
7986 (mcore_init_extra_frame_info): Update.
7987 * arch-utils.c (init_frame_pc_default): Update.
7988 * m68k-tdep.c (isi_frame_num_args): Update.
7989 (delta68_frame_num_args): Update.
7990 (news_frame_num_args): Update.
7991 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7992 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7993 (alpha_frame_chain): Update.
7994 (alpha_pop_frame): Update.
7995 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7996 (hppa_init_extra_frame_info): Update.
7997 (hppa_frame_chain): Update.
7998 (hppa_frame_chain_valid): Update.
7999 * cris-tdep.c (cris_init_extra_frame_info): Update.
8000 * avr-tdep.c (avr_init_extra_frame_info): Update.
8001 * arm-tdep.c (arm_frame_chain_valid): Update.
8002 (arm_init_extra_frame_info): Update.
8003 (arm_pop_frame): Update.
8004 * frame.c (frame_pc_unwind): Update.
8005 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8006 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8007 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8008 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8009 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8010 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8011
8012 2003-03-10 Andrew Cagney <cagney@redhat.com>
8013
8014 * gdbarch.sh (gdbarch_unwind_pc): New method.
8015 * gdbarch.h, gdbarch.c: Regenerate.
8016 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8017 but use read_pc and FRAME_SAVED_PC as fall backs.
8018 (frame_saved_regs_pc_unwind): Delete function.
8019 (trad_frame_unwinder): Update.
8020 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8021 (struct frame_unwind): Update.
8022 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8023 (dummy_frame_unwind): Update.
8024 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8025 (sentinel_frame_unwinder): Update.
8026 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8027 (d10v_frame_unwind): Update.
8028 (d10v_unwind_pc): New function.
8029 (d10v_gdbarch_init): Set unwind_pc.
8030
8031 2003-03-10 Andrew Cagney <cagney@redhat.com>
8032
8033 * gdbarch.h: Re-generate.
8034
8035 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8036 PC.
8037 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8038 the PC register.
8039
8040 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8041
8042 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8043
8044 2003-03-08 Andrew Cagney <cagney@redhat.com>
8045
8046 * cli-out.c: Update copyright.
8047 (cli_out_data): Define typedef. Use instead of ui_out_data.
8048
8049 2003-03-08 Andrew Cagney <cagney@redhat.com>
8050
8051 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8052 the result.
8053
8054 2003-03-07 Andrew Cagney <cagney@redhat.com>
8055
8056 * gdbarch.sh: Don't generate two macro definitions when an
8057 undefined macro taking no arguments.
8058 * gdbarch.h: Regenerate.
8059
8060 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8061
8062 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8063 (x86_64_unwind_dummy_id): New functions.
8064 (x86_64_init_abi): Register these two new functions.
8065
8066 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8067
8068 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8069 (x86_64_skip_prologue): Move prologue detection to
8070 separate function.
8071 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8072
8073 2003-03-05 Andrew Cagney <cagney@redhat.com>
8074
8075 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8076 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8077 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8078 to use unwind_dummy_id when a dummy frame.
8079 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8080 predicate.
8081 * gdbarch.h, gdbarch.c: Regneerate.
8082
8083 2003-03-05 Andrew Cagney <cagney@redhat.com>
8084
8085 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8086 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8087 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8088 values.
8089
8090 2003-03-05 Andrew Cagney <cagney@redhat.com>
8091
8092 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8093 (struct d10v_unwind_cache): Delete field "frameless". Replace
8094 "next_addr" with "sp_offset". Add "r11_offset".
8095 (d10v_frame_unwind_cache): Update.
8096 (prologue_find_regs): Update. When "mv r11, sp", save the
8097 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8098 RN was saved in r11_offset.
8099
8100 2003-03-05 Andrew Cagney <cagney@redhat.com>
8101
8102 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8103 cached PC value in the next frame.
8104
8105 2003-03-05 Andrew Cagney <cagney@redhat.com>
8106
8107 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8108 "id_unwind_cache" with "id".
8109 (frame_id_unwind): Delete declaration.
8110 * frame.c (frame_id_unwind): Delete function.
8111 (get_prev_frame): Call the frame id unwind method directly. Store
8112 the returned next frame's ID value in NEXT_FRAME. Note that there
8113 is a problem with the wrong unwind ID being called with the wrong
8114 unwind cache.
8115
8116 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8117
8118 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8119
8120 2003-03-05 James Ingham <jingham@apple.com>
8121 Daniel Jacobowitz <drow@mvista.com>
8122
8123 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8124 (auto_cp_abi): New variable.
8125 (current_cp_abi, num_cp_abis): Make static.
8126 (CP_ABI_MAX): Define.
8127 (cp_abis): Turn into an array.
8128 (value_virtual_fn_field): Fix formatting.
8129 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8130 takes a pointer.
8131 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8132 (list_cp_abis, _initialize_cp_abi): New functions.
8133 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8134 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8135 switch_to_cp_abi. Update prototype for register_cp_abi.
8136 * Makefile.in (cp-abi.o): Update dependencies.
8137 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8138 instead of switch_to_cp_abi.
8139 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8140 register_cp_abi.
8141 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8142 register_cp_abi.
8143 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8144
8145 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8146
8147 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8148 * dwarf2loc.c: Include "regcache.h".
8149 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8150 register_size.
8151 * Makefile.in (dwarf2loc.o): Update dependencies.
8152
8153 2003-03-04 Theodore A. Roth <troth@openavr.org>
8154
8155 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8156 number of io registers reported by remote target is not a multiple of
8157 step.
8158
8159 2003-03-04 David Carlton <carlton@math.stanford.edu>
8160
8161 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8162 (lookup_symbol_aux_psymtabs): Update call to
8163 lookup_partial_symbol.
8164 (lookup_transparent_type, find_main_psymtab)
8165 (make_symbol_overload_list): Ditto.
8166
8167 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8168
8169 * MAINTAINERS (Write after approval): Update my email address.
8170
8171 2003-03-03 Andrew Cagney <cagney@redhat.com>
8172
8173 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8174 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8175 predicate. Replace MAX_REGISTER_RAW_SIZE.
8176 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8177 MAX_REGISTER_VIRTUAL_SIZE.
8178 * regcache.c (legacy_max_register_raw_size): New function.
8179 (legacy_max_register_virtual_size): New function.
8180 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8181 (MAX_REGISTER_RAW_SIZE): Define.
8182 (legacy_max_register_raw_size): Declare.
8183 (legacy_max_register_virtual_size): Declare.
8184 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8185 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8186 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8187 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8188 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8189 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8190 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8191 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8192 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8194 * vax-tdep.c (vax_gdbarch_init): Update.
8195 * v850-tdep.c (v850_gdbarch_init): Update.
8196 * sparc-tdep.c (sparc_gdbarch_init): Update.
8197 * sh-tdep.c (sh_gdbarch_init): Update.
8198 * s390-tdep.c (s390_gdbarch_init): Update.
8199 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8200 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8201 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8202 * mips-tdep.c (mips_gdbarch_init): Update.
8203 * mcore-tdep.c (mcore_gdbarch_init): Update.
8204 * m68k-tdep.c (m68k_gdbarch_init): Update.
8205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8206 * ia64-tdep.c (ia64_gdbarch_init): Update.
8207 * i386-tdep.c (i386_gdbarch_init): Update.
8208 * hppa-tdep.c (hppa_gdbarch_init): Update.
8209 * h8300-tdep.c (h8300_gdbarch_init): Update.
8210 * frv-tdep.c (frv_gdbarch_init): Update.
8211 * cris-tdep.c (cris_gdbarch_init): Update.
8212 * avr-tdep.c (avr_gdbarch_init): Update.
8213 * arm-tdep.c (arm_gdbarch_init): Update.
8214 * alpha-tdep.c (alpha_gdbarch_init): Update.
8215 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8216 max_register_raw_size or max_register_virtual_size.
8217
8218 2003-03-03 David Carlton <carlton@math.stanford.edu>
8219
8220 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8221 SYMBOL_MATCHES_NAME, add comment.
8222 (SYMBOL_MATCHES_NATURAL_NAME): New.
8223 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8224 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8225 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8226 * symtab.c (lookup_partial_symbol): Use
8227 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8228 unhelpful comment.
8229 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8230 SYMBOL_MATCHES_NAME.
8231 Fix for PR c++/33.
8232
8233 2003-03-03 David Carlton <carlton@math.stanford.edu>
8234
8235 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8236 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8237 by regexp matching against SYMBOL_NATURAL_NAME.
8238
8239 2003-03-03 David Carlton <carlton@math.stanford.edu>
8240
8241 * linespec.c (find_method): Extract code into collect_methods.
8242 (collect_methods): New.
8243
8244 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8245
8246 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8247 get_frame_base.
8248
8249 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8250 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8251
8252 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8253
8254 * arch-utils.c (generic_register_byte): Fix to use the loop index
8255 and not regnum when summing the size of all registers up to regnum.
8256
8257 2003-03-01 Andrew Cagney <cagney@redhat.com>
8258
8259 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8260 FRAME_INIT_SAVED_REGS.
8261 * gdbarch.h, gdbarch.c: Regenerate.
8262 * stack.c (frame_info): Update.
8263 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8264 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8265 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8266 * ns32k-tdep.c (ns32k_pop_frame): Update.
8267 * mips-tdep.c (mips_pop_frame): Update.
8268 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8269 * ia64-tdep.c (ia64_frame_chain): Update.
8270 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8271 (ia64_frameless_function_invocation): Update.
8272 (ia64_init_extra_frame_info): Update.
8273 (ia64_pop_frame_regular): Update.
8274 * frame.h (struct frame_info): Update comment.
8275 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8276 * frame.c (frame_saved_regs_register_unwind): Update.
8277 (frame_saved_regs_register_unwind): Update.
8278 (deprecated_generic_get_saved_register): Update.
8279 * cris-tdep.c: Update comment.
8280 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8281 Rename macro.
8282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8283 * x86-64-tdep.c (x86_64_init_abi): Update.
8284 * vax-tdep.c (vax_gdbarch_init): Update.
8285 * v850-tdep.c (v850_gdbarch_init): Update.
8286 * sparc-tdep.c (sparc_gdbarch_init): Update.
8287 * sh-tdep.c (sh_gdbarch_init): Update.
8288 * s390-tdep.c (s390_gdbarch_init): Update.
8289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8290 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8291 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8293 * mips-tdep.c (mips_gdbarch_init): Update.
8294 * mcore-tdep.c (mcore_gdbarch_init): Update.
8295 * m68k-tdep.c (m68k_gdbarch_init): Update.
8296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8297 * ia64-tdep.c (ia64_gdbarch_init): Update.
8298 * i386-tdep.c (i386_gdbarch_init): Update.
8299 * frv-tdep.c (frv_gdbarch_init): Update.
8300 * avr-tdep.c (avr_gdbarch_init): Update.
8301 * arm-tdep.c (arm_gdbarch_init): Update.
8302 * alpha-tdep.c (alpha_gdbarch_init): Update.
8303
8304 2003-03-01 Andrew Cagney <cagney@redhat.com>
8305
8306 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8307 option enum and switch. When no windows, set the interpreter to
8308 INTERP_CONSOLE.
8309
8310 2003-03-01 Andrew Cagney <cagney@redhat.com>
8311
8312 * main.c (captured_main): Replace magic option characters with an
8313 enum.
8314
8315 2003-03-01 Andrew Cagney <cagney@redhat.com>
8316
8317 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8318 INIT_EXTRA_FRAME_INFO.
8319 * gdbarch.h, gdbarch.c: Regenerate.
8320 * arm-tdep.c: Update comments.
8321 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8322 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8323 * frame.h, avr-tdep.c: Ditto.
8324 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8325 (create_new_frame, legacy_get_prev_frame): Ditto.
8326 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8327 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8329 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8330 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8331 * v850-tdep.c (v850_gdbarch_init): Ditto.
8332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8333 * sh-tdep.c (sh_gdbarch_init): Ditto.
8334 * s390-tdep.c (s390_gdbarch_init): Ditto.
8335 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8336 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8337 * mips-tdep.c (mips_gdbarch_init): Ditto.
8338 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8340 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8341 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8342 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8343 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8344 * frv-tdep.c (frv_gdbarch_init): Ditto.
8345 * cris-tdep.c (cris_gdbarch_init): Ditto.
8346 * avr-tdep.c (avr_gdbarch_init): Ditto.
8347 * arm-tdep.c (arm_gdbarch_init): Ditto.
8348 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8349 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8350
8351 2003-03-01 Andrew Cagney <cagney@redhat.com>
8352
8353 * gdbarch.sh (register_type): New function with predicate.
8354 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8355 * gdbarch.h, gdbarch.c: Re-generate.
8356 * arch-utils.c (generic_register_byte): Use generic_register_size.
8357 (generic_register_size): When available, use
8358 gdbarch_register_type.
8359 * regcache.c (init_regcache_descr): When available, initialize the
8360 register type array using gdbarch_register_type. If the
8361 architecture supplies gdbarch_register_type, do not use the legacy
8362 regcache layout.
8363 * d10v-tdep.c (d10v_register_type): Replace
8364 d10v_register_virtual_type.
8365 (d10v_gdbarch_init): Set register_type instead of
8366 register_virtual_type.
8367
8368 2003-03-01 Andrew Cagney <cagney@redhat.com>
8369
8370 * Makefile.in (ax-gdb.o): Update dependencies.
8371 * ax-gdb.c: Include "regcache.h".
8372 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8373 * findvar.c (value_of_register): Ditto.
8374 * infcmd.c (default_print_registers_info): Ditto.
8375
8376 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8377
8378 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8379 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8380
8381 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8382
8383 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8384 of STREQ.
8385
8386 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8387
8388 * Makefile.in (dwarf2loc.o): Update dependencies.
8389 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8390 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8391 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8392 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8393 (locexpr_tracepoint_var_ref): New function.
8394 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8395
8396 2003-02-28 Andrew Cagney <cagney@redhat.com>
8397
8398 * regcache.c (register_size): New function.
8399 * regcache.h (register_size): Declare
8400 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8401 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8402
8403 2003-02-28 David Carlton <carlton@math.stanford.edu>
8404
8405 * linespec.c (decode_compound): Extract code into find_method.
8406 (find_method): New.
8407
8408 2003-02-28 J. Brobecker <brobecker@gnat.com>
8409
8410 * Makefile.in: Add rules to build and link in observer.o.
8411
8412 2003-02-27 J. Brobecker <brobecker@gnat.com>
8413
8414 * observer.c: Minor comments edits.
8415
8416 2003-02-27 J. Brobecker <brobecker@gnat.com>
8417
8418 * observer.h, observer.c: New file.
8419
8420 2003-02-27 Andrew Cagney <cagney@redhat.com>
8421
8422 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8423
8424 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8425
8426 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8427 (M6812_OP_STS_EXT): Likewise.
8428 (m6811_prologue): Use the above to recognize prologue.
8429 (m6812_prologue): Likewise.
8430
8431 2003-02-27 David Carlton <carlton@math.stanford.edu>
8432
8433 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8434 SYMBOL_PRINT_NAME.
8435 (compare_psymbols): Ditto.
8436 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8437
8438 2003-02-27 Michael Snyder <msnyder@redhat.com>
8439
8440 * f-lang.c (build_fortran_types): New function.
8441 (_initialize_f_language): Gdbarch-register built-in fortran types.
8442 * doublest.c (extract_floating): Fix warning text.
8443
8444 2003-02-27 Andrew Cagney <cagney@redhat.com>
8445
8446 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8447 predicate. Replaces PUSH_DUMMY_FRAME.
8448 * gdbarch.h, gdbarch.c: Regnerate.
8449 * valops.c (hand_function_call): Update. Call
8450 generic_push_dummy_frame directly.
8451 * vax-tdep.c (vax_gdbarch_init): Update.
8452 * sparc-tdep.c (sparc_gdbarch_init): Update.
8453 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8454 * m68k-tdep.c (m68k_gdbarch_init): Update.
8455 * hppa-tdep.c (hppa_gdbarch_init): Update.
8456 * alpha-tdep.c (alpha_gdbarch_init): Update.
8457 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8458 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8459 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8461 push_dummy_frame to generic_push_dummy_frame.
8462 * v850-tdep.c (v850_gdbarch_init): Ditto.
8463 * sh-tdep.c (sh_gdbarch_init): Ditto.
8464 * s390-tdep.c (s390_gdbarch_init): Ditto.
8465 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8466 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8467 * mips-tdep.c (mips_gdbarch_init): Ditto.
8468 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8470 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8471 * i386-tdep.c (i386_gdbarch_init): Ditto.
8472 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8473 * frv-tdep.c (frv_gdbarch_init): Ditto.
8474 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8475 * cris-tdep.c (cris_gdbarch_init): Ditto.
8476 * avr-tdep.c (avr_gdbarch_init): Ditto.
8477 * arm-tdep.c (arm_gdbarch_init): Ditto.
8478
8479 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8480
8481 * mips-tdep.c (show_mips_abi): New function.
8482 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8483 command ``show mips abi''.
8484
8485 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8486
8487 From Elena Zannoni <ezannoni@redhat.com>
8488 * dbxread.c (process_one_symbol): Only record line 0 if one or
8489 more sline entries have been seen for the function.
8490
8491 2003-02-26 Michael Chastain <mec@shout.net>
8492
8493 * configure: Regenerate with autoconf 000227.
8494
8495 2003-02-26 Michael Chastain <mec@shout.net>
8496
8497 Close PR build/660.
8498 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8499 for old libc5/glibc.
8500 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8501
8502 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8503
8504 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8505 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8506
8507 2003-02-26 Michael Chastain <mec@shout.net>
8508
8509 * configure.in: New variable HAVE_UINTPTR_T.
8510 * configure, config.in: Regenerated.
8511
8512 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8513
8514 Fix PR build/1097.
8515 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8516
8517 2003-02-25 Andrew Cagney <cagney@redhat.com>
8518
8519 * frame.c (get_prev_frame): Add comment on check for
8520 inside_entry_func. Only check for inside_entry_file when not a
8521 dummy and not a sentinel. Check that the new frame is not inner
8522 to the old frame.
8523
8524 2003-02-25 Andrew Cagney <cagney@redhat.com>
8525
8526 * frame.c (frame_debug): New variable.
8527 (_initialize_frame): Add "set/show debug frame" command.
8528 (get_prev_frame): When frame_debug, print reason why unwind
8529 failed.
8530
8531 2003-02-25 Michael Chastain <mec@shout.net>
8532
8533 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8534 to avoid uintptr_t definition problems.
8535
8536 2003-02-25 David Carlton <carlton@math.stanford.edu>
8537
8538 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8539 (SYMBOL_LINKAGE_NAME): Ditto.
8540 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8541 SYMBOL_LINKAGE_NAME.
8542 (struct general_symbol_info): Expand comment.
8543 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8544 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8545 (SYMBOL_MATCHES_REGEXP): Ditto.
8546 * symtab.c (symbol_natural_name): New function.
8547 * objfiles.h: Replace all uses of SYMBOL_NAME by
8548 DEPRECATED_SYMBOL_NAME.
8549 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8550 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8551 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8552 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8553 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8554 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8555 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8556 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8557 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8558 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8559 * ada-exp.y: Ditto.
8560 * ada-exp.y: Update copyright.
8561 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8562 * cp-valprint.c: Ditto.
8563
8564 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8565
8566 * infptrace.c (detach): Do not flag error if ptrace detach fails
8567 and errno is set to ESRCH.
8568
8569 2003-02-24 Andrew Cagney <cagney@redhat.com>
8570
8571 * infptrace.c (udot_info): Change type of udot_off to long. Use
8572 paddr when printing udot_off's value.
8573
8574 2003-02-24 David Carlton <carlton@math.stanford.edu>
8575
8576 * symtab.c (make_symbol_overload_list): Only read in partial
8577 symtabs containing a matching partial symbol.
8578
8579 2003-02-24 David Carlton <carlton@math.stanford.edu>
8580
8581 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8582 do the comparison, not strcmp.
8583 * symfile.c (compare_psymbols): Ditto.
8584 * defs.h: Declare strcmp_iw_ordered.
8585 * utils.c (strcmp_iw_ordered): New function.
8586
8587 2003-02-24 Jim Blandy <jimb@redhat.com>
8588
8589 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8590 support, shared libs): Remove my name from here, to better reflect
8591 reality.
8592
8593 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8594
8595 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8596 (target_ops): Add to_have_continuable_watchpoint.
8597 * target.c (update_current_target): Add INHERIT line for
8598 to_have_continuable_watchpoint.
8599 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8600 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8601 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8602 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8603
8604 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8605
8606 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8607 maintainership.
8608
8609 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8610
8611 * solib.c (solib_open): Call target defined search function after
8612 failing with solib-search-path.
8613 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8614 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8615
8616 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8617
8618 * MAINTAINERS: Add myself to Write After section.
8619
8620 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8621
8622 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8623
8624 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8625
8626 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8627 (m68hc11_add_reggroups): New function.
8628 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8629 (m68hc11_gdbarch_init): Install the reggroups.
8630 (_initialize_m68hc11_tdep): Initialize them.
8631
8632 2003-02-21 James E Wilson <wilson@tuliptree.org>
8633
8634 * MAINTAINERS: Update my email address.
8635
8636 2003-02-21 David Carlton <carlton@math.stanford.edu>
8637
8638 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8639
8640 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8641
8642 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8643 * symtab.h: Add opaque declarations of struct axs_value and
8644 struct agent_expr.
8645 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8646 (struct location_funcs): New type.
8647 (struct symbol): Add "loc" to aux_value.
8648 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8649 * dwarf2read.c: Include "dwarf2expr.h".
8650 (dwarf2_symbol_mark_computed): New function.
8651 (read_func_scope): Use it.
8652 (var_decode_location): New function.
8653 (new_symbol): Use it.
8654 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8655
8656 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8657 (dwarf2expr_h, dwarf2loc_h): New variables.
8658 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8659 (dwarf2expr.o, dwarf2loc.o): New rules.
8660 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8661 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8662 LOC_COMPUTED_ARG.
8663 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8664 * m2-exp.y (yylex): Likewise.
8665 * printcmd.c (address_info, print_frame_args): Likewise.
8666 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8667 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8668 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8669 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8670 * symtab.c (lookup_block_symbol): Likewise.
8671
8672 2003-02-20 Adam Fedor <fedor@gnu.org>
8673
8674 * symtab.h: Remove objc_specific struct
8675 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8676 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8677 Have language_objc use cplus_specific struct.
8678
8679 2003-02-20 Tom Tromey <tromey@redhat.com>
8680
8681 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8682 TYPE_NAME, when printing a String value. PR java/1075.
8683
8684 2003-02-20 Adam Fedor <fedor@gnu.org>
8685
8686 * objc-lang.h (find_methods): Remove declaration.
8687 * objc-lang.c (find_methods): Make static.
8688
8689 2003-02-20 Christopher Faylor <cgf@redhat.com>
8690
8691 * win32-nat.c (get_image_name): Check return value from
8692 ReadProcessMemory.
8693 (child_xfer_memory): Ditto.
8694
8695 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8696
8697 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8698 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8699 '${exec_prefix}' (in addition to the expansion thereof) as
8700 relocatable.
8701 * configure: Rebuilt.
8702
8703 2003-02-20 David Carlton <carlton@math.stanford.edu>
8704
8705 * symtab.c (search_symbols): Revert the search_symbols part of my
8706 2002-12-23 patch. Add comment.
8707
8708 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8709
8710 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8711 * dbxread.c (elfstab_build_psymtabs): Don't call
8712 install_minimal_symbols.
8713 (stabsect_build_psymtabs): Likewise.
8714 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8715 earlier.
8716 * somread.c (som_symfile_read): Call install_minimal_symbols
8717 and do_cleanups earlier.
8718 * nlmread.c (nlm_symfile_read): Likewise.
8719 * mdebugread.c (elfmdebug_build_psymtabs): Call
8720 install_minimal_symbols and make appropriate cleanups.
8721
8722 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8723
8724 * solib.c (reload_shared_libraries): New function.
8725 (_initialize_solib): Add callbacks for ``set solib-search-path''
8726 and ``set solib-absolute-prefix''.
8727
8728 2003-02-20 David Carlton <carlton@math.stanford.edu>
8729
8730 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8731 expand comment.
8732 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8733 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8734 * ada-typeprint.c (ada_typedef_print): Ditto.
8735 * ax-gdb.c (gen_var_ref): Ditto.
8736 * breakpoint.c (print_one_breakpoint): Ditto.
8737 * buildsym.c (finish_block): Ditto.
8738 * c-valprint.c (c_val_print): Ditto.
8739 * expprint.c (print_subexp): Ditto.
8740 * findvar.c (locate_var_value): Ditto.
8741 * infcmd.c (jump_command): Ditto.
8742 * linespec.c (decode_line_2, decode_compound): Ditto.
8743 * maint.c (maintenance_translate_address): Ditto.
8744 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8745 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8746 Ditto.
8747 * p-valprint.c (pascal_val_print): Ditto.
8748 * stabsread.c (define_symbol): Ditto.
8749 * stack.c (print_frame, frame_info, print_block_frame_locals)
8750 (print_frame_arg_vars, return_command): Ditto.
8751 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8752 * symmisc.c (print_symbol): Ditto.
8753 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8754 (compare_search_syms, print_symbol_info, print_msymbol_info)
8755 (rbreak_command): Ditto.
8756 * tracepoint.c (tracepoints_info): Ditto.
8757 * typeprint.c (typedef_print): Ditto.
8758 * valops.c (value_of_variable, hand_function_call): Ditto.
8759 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8760 * ada-typeprint.c: Update Copyright.
8761 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8762 * tracepoint.c, cli/cli-cmds.c: Ditto.
8763
8764 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8765
8766 * frame.c (generic_unwind_get_saved_register): Make non-static.
8767 * frame.h (generic_unwind_get_saved_register): Declare.
8768 * mips-tdep.c (read_next_frame_reg): Fetch register from
8769 current regcache when frame is NULL.
8770 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8771 that must be NULL.
8772 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8773 instead of frame_register_unwind().
8774
8775 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8776
8777 * remote-sim.c (gdbsim_insert_breakpoint)
8778 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8779 code.
8780
8781 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8782
8783 * remote.c (_initialize_remote): Add commands "set/show remote
8784 hardware-watchpoint-limit" and "set/show remote
8785 hardware-breakpoint-limit".
8786 (remote_hw_watchpoint_limit): Initialize to -1.
8787 (remote_hw_breakpoint_limit): Ditto.
8788 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8789
8790 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8791
8792 * coff-pe-read.c: New file - support reading of minimal symbols from a
8793 portable executable using the export table.
8794 * coff-pe-read.h: New file.
8795 * coffread.c: Include coff-pe-read.h.
8796 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8797 debugging symbols found.
8798 * Makefile.in (SFILES): Add coff-pe-read.o.
8799 (coff_pe_read_h): Define.
8800 (COMMON_OBS): Add coff-pe-read.o.
8801 (coffread.o): Add coff_pe_read_h dependency.
8802 (coff-pe-read.o): New target.
8803
8804 2003-02-19 David Carlton <carlton@math.stanford.edu>
8805
8806 * Makefile.in (SFILES): Add block.c.
8807 (block_h): New.
8808 (COMMON_OBS): Add block.o.
8809 (block.o): New.
8810 (x86-64-tdep.o): Add $(block_h).
8811 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8812 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8813 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8814 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8815 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8816 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8817 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8818 * value.h: Add opaque declaration for struct block.
8819 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8820 * ada-lang.h: Ditto.
8821 * x86-64-tdep.c: #include "block.h"
8822 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8823 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8824 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8825 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8826 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8827 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8828 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8829 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8830 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8831 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8832 * symtab.c (block_function): Ditto.
8833 (contained_in): Ditto.
8834 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8835 block.h. Add opaque declaration for struct block.
8836 * symtab.h: Move block_function and contained_in declarations to
8837 block.h. Add opaque declarations for struct block, struct
8838 blockvector.
8839 (struct block): Move to block.h.
8840 (struct blockvector): Ditto.
8841 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8842 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8843 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8844 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8845 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8846 Ditto.
8847 * block.c: New file.
8848 * block.h: New file.
8849
8850 2003-02-19 Theodore A. Roth <troth@openavr.org>
8851
8852 * avr-tdep.c (avr_extract_return_value): Remove function.
8853 (avr_store_return_value): Remove function.
8854 (avr_extract_struct_value_address): Remove function.
8855 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8856
8857 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8858
8859 * rs6000-tdep.c: Include "gdb_assert.h".
8860 (registers_e500): Add "acc" and "spefscr".
8861 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8862 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8863 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8864 really is "r0".
8865 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8866
8867 2003-02-18 Keith Seitz <keiths@redhat.com>
8868
8869 * Makefile.in: Add gdbtk-interps.c.
8870
8871 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8872
8873 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8874 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8875
8876 2003-02-18 Andrew Cagney <cagney@redhat.com>
8877
8878 * symtab.h (struct objfile): Add opaque declaration.
8879
8880 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8881
8882 From Jim Ingham <jingham@apple.com>:
8883 * dbxread.c (process_one_symbol): Use last_function_start rather
8884 than function_start_offset to find the real beginning of the
8885 current function. The latter is just the text section offset on
8886 some systems, the former is always the real function start.
8887
8888 2003-02-17 Andrew Cagney <cagney@redhat.com>
8889
8890 * configure.in: Revert ${target} != ${host}.
8891
8892 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8893
8894 * configure.in (Makefile): Use the test ${target} != ${host},
8895 instead of the absence of the "nm.h" file, to determine of the
8896 configuration non-native.
8897 * configure: Regenerate.
8898
8899 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8900
8901 From Brian Ford <ford@vss.fsi.com>
8902
8903 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8904 conditionalize tui_active test.
8905 (lookup_cmd_1): Ditto.
8906
8907 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8908
8909 * configure.in: Add check for _etext.
8910 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8911 available.
8912 * config.in, configure: regenerated.
8913
8914 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8915
8916 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8917
8918 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8919
8920 * main.c (tui_version): Delete variable.
8921 (captured_main): When --tui, set interpreter_p to "tui" instead of
8922 enabling tui_version.
8923 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8924 tui_version.
8925 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8926 * cli/cli-cmds.c (disassemble_command): Ditto.
8927 * defs.h (tui_version): Delete declaration.
8928 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8929 (tui-interp.o): Add rules.
8930 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8931
8932 2003-02-14 Christopher Faylor <cgf@redhat.com>
8933
8934 * win32-nat.c (register_loaded_dll): Correctly set address range for
8935 just-loaded dll.
8936
8937 2003-02-12 Jason Molenda (jmolenda@apple.com)
8938
8939 * symmisc.c (print_objfile_statistics): Include information about
8940 the number of psymtabs and symtabs in each object file.
8941
8942 2003-02-13 Keith R Seitz <keiths@redhat.com>
8943
8944 * main.h (struct captured_main_args): Add interpreter_p.
8945 * main.c (captured_main): Initialize interpreter_p from context.
8946 * gdb.c (main): Set interpreter_p argument.
8947 * Makefile.in (gdb.o): Add dependency for interps.h.
8948
8949 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8950
8951 * event-top.c (cli_command_loop): Delete declaration.
8952 (_initialize_event_loop): Delete function setting event_loop_hook.
8953 * event-top.h (cli_command_loop): Declare. Update copyright.
8954 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8955 * interps.c (current_interp_command_loop): When event_loop_p, call
8956 cli_command_loop.
8957
8958 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8959
8960 * interps.h (interp_command_loop_ftype): Change return type to
8961 void.
8962
8963 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8964
8965 * x86-64-tdep.c (x86_64_extract_return_value)
8966 (x86_64_store_return_value): Use regcache instead of regbuf.
8967 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8968 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8969
8970 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8971
8972 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8973 * aclocal.m4: Regenerate.
8974 * configure: Regenerate.
8975
8976 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8977 TCL_LD_SEARCH_FLAGS.
8978
8979 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8980
8981 * dwarf2cfi.c: Reindented.
8982
8983 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8984
8985 * interps.c (clear_interpreter_hooks): Convert function definition
8986 to ISO C.
8987
8988 2003-02-07 David Carlton <carlton@math.stanford.edu>
8989
8990 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8991
8992 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8993
8994 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8995 (struct type): ...to here.
8996 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8997 field.
8998 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8999 (replace_type): Set length on all type variants for a given type.
9000
9001 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9002
9003 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9004 <sys/stat.h>.
9005 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9006
9007 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9008
9009 * Makefile.in (symm-nat.o): Update dependencies.
9010 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9011 (lynx-nat.o, ia64-linux-nat.): Ditto.
9012 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9013 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9014 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9015
9016 * Makefile.in (inflow_h): Define.
9017 (procfs.o, inflow.o, procfs.o): Update dependencies.
9018 * inftarg.c (child_stop): Delete extern declaration of
9019 inferior_process_group. Include "inflow.h".
9020 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9021 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9022 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9023 (our_process_group, inferior_process_group): Extern declarations.
9024
9025 * procfs.c: Include "gdb_assert.h".
9026
9027 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9028 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9029 * jv-typeprint.c (java_type_print_base): Ditto.
9030 * typeprint.c (typedef_print): Eliminate STREQ.
9031 * cli/cli-script.c (define_command, define_command): Ditto.
9032 * main.c (captured_main): Ditto.
9033 * values.c (lookup_internalvar): Ditto.
9034 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9035 within `if' conditional.
9036 * linespec.c (decode_line_2): Ditto.
9037 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9038 (bfd_openw_with_cleanup): Ditto.
9039
9040 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9041
9042 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9043 legacy_extract_return_value and store_return_value to
9044 legacy_return_value.
9045
9046 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9047
9048 * win32-nat.c (get_relocated_section_addrs): New function. Find
9049 section load addresses for symbol handling in relocated DLLs.
9050 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9051
9052 2003-02-05 Fred Fish <fnf@intrinsity.com>
9053
9054 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9055 '=' and '!='.
9056 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9057 with '&' and '=='.
9058 (angel_RDI_info): Ditto.
9059 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9060 with '&' and '!='.
9061 (threads_continue_all_with_signals): Ditto.
9062
9063 2003-02-05 Jim Ingham <jingham@apple.com>
9064 Keith Seitz <keiths@redhat.com>
9065 Elena Zannoni <ezannoni@redhat.com>
9066 Andrew Cagney <ac131313@redhat.com>
9067
9068 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9069 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9070 (SUBDIR_MI_OBS): Add "mi-interp.o".
9071 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9072 (SFILES): Add "interps.c".
9073 (COMMON_OBS): Add "interps.o".
9074 (interps_h, mi_main_h): Define.
9075 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9076 (mi-main.o, main.o, event-top.o): Update dependencies.
9077 * cli/cli-interp.c: New file.
9078 * interps.h, interps.c: New files.
9079 * top.c: (gdb_init): Don't install the default interpreter, handed
9080 by captured_main.
9081 * main.c: Include "interps.h".
9082 (interpreter_p): Note that it should malloc'ed.
9083 (captured_command_loop): Call current_interp_command_loop.
9084 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9085 xfree and xstrdup when updating interpreter_p. Install the
9086 default interpreter. Add hack to stop mi1's copyright notice
9087 being encoded.
9088 * event-top.h (gdb_setup_readline): Declare.
9089 (gdb_disable_readline): Declare.
9090 * event-top.c: Include "interps.h".
9091 (display_gdb_prompt): Call current_interp_display_prompt_p.
9092 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9093 gdb_stdlog, and gdb_stdtarg.
9094 (_initialize_event_loop): Don't call gdb_setup_readline.
9095 * cli-out.c (cli_out_set_stream): New function.
9096 * cli-out.h (cli_out_set_stream): Declare.
9097
9098 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9099
9100 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9101 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9102 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9103 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9104 config/i386/i386v42mp.mt: Removed.
9105
9106 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9107
9108 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9109 GDB_OSABI_SOLARIS.
9110
9111 2003-02-05 Michael Chastain <mec@shout.net>
9112
9113 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9114 2.12.1 and earlier versions.
9115
9116 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9117
9118 Remove orphaned hosts, targets and files.
9119 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9120 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9121 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9122 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9123 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9124 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9125 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9126 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9127 * config/sparc/tm-sp64sim.h: Delete.
9128 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9129 hosts.
9130 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9131 mips*-dec-mach3* targets.
9132
9133 2003-02-04 Michael Chastain <mec@shout.net>
9134
9135 * NEWS: Fix typo: sepcifying -> specifying.
9136
9137 2003-02-04 Michael Chastain <mec@shout.net>
9138
9139 * dwarfread.c: Add documentation on the state of dwarf-1,
9140 looking towards obsoletion.
9141
9142 2003-02-03 Michael Chastain <mec@shout.net>
9143
9144 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9145 gdb/testsuite/gdb.c++/pr-1023.exp.
9146
9147 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9148
9149 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9150 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9151
9152 * utils.c (init_page_info): Delete reference to MPW in comments.
9153 * main.c (captured_main): Delete #ifdef MPW.
9154
9155 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9156
9157 * NEWS: Note that the m32r-*-elf* is obsolete.
9158 * monitor.c (monitor_expect): Obsolete reference to m32r.
9159 * configure.tgt: Mark m32r-*-elf* as obsolete.
9160 * MAINTAINERS: Mark m32k as obsolete.
9161 * m32r-rom.c: Obsolete file.
9162 * config/m32r/m32r.mt: Obsolete file.
9163 * config/m32r/tm-m32r.h: Obsolete file.
9164 * m32r-stub.c: Obsolete file.
9165 * m32r-tdep.c: Obsolete file.
9166
9167 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9168
9169 * NEWS: Mention that the z8k-zilog-none is obsolete.
9170 * MAINTAINERS: Mark z8k as obsolete.
9171 * configure.tgt: Obsolete the z8k-*-coff* target.
9172 * config/z8k/z8k.mt: Obsolete file.
9173 * config/z8k/tm-z8k.h: Obsolete file.
9174 * z8k-tdep.c: Obsolete file.
9175
9176 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9177
9178 * NEWS: Mention that the mn10200-elf is obsolete.
9179 * configure.tgt: Obsolete mn10200-*-* target.
9180 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9181 mention that the mn10200 is obsolete.
9182 * breakpoint.h: Ditto.
9183 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9184 * config/mn10200/mn10200.mt: Obsolete file.
9185 * config/mn10200/tm-mn10200.h: Obsolete file.
9186 * mn10200-tdep.c: Obsolete file.
9187
9188 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9189
9190 * MAINTAINERS: Mark h8500 as obsolete.
9191 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9192 * findvar.c (value_from_register): Ditto.
9193 * h8500-tdep.c: Mark file as obsolete.
9194 * config/h8500/h8500.mt: Ditto.
9195 * config/h8500/tm-h8500.h: Ditto.
9196 * NEWS: Mention that h8500 is obsolete.
9197
9198 2003-02-04 David Carlton <carlton@math.stanford.edu>
9199
9200 * objfiles.c (allocate_objfile): Always set name. Add comment at
9201 start of function.
9202 * jv-lang.c (get_dynamics_objfile): Add comment.
9203
9204 2003-02-04 David Carlton <carlton@math.stanford.edu>
9205
9206 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9207 * printcmd.c (build_address_symbolic): Replace uses of
9208 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9209 SYMBOL_NAME, and asm_demangle.
9210 Update copyright.
9211
9212 2003-02-04 David Carlton <carlton@math.stanford.edu>
9213
9214 * linespec.c (decode_compound): Extract code into
9215 lookup_prefix_sym.
9216 (lookup_prefix_sym): New function.
9217
9218 2003-02-04 David Carlton <carlton@math.stanford.edu>
9219
9220 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9221 FLOAT_COERCION_BADNESS.
9222 * gdbtypes.c (rank_one_type): Replace all uses of
9223 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9224
9225 2003-02-04 Jim Blandy <jimb@redhat.com>
9226
9227 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9228 section, let dwarf_macinfo_section point to it, not
9229 dwarf_loc_section.
9230
9231 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9232
9233 Pointed out by Anton Blanchard <anton@samba.org>.
9234 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9235 (ppc_linux_at_sigtramp_return_path): Use it.
9236
9237 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9238
9239 * defs.h (streq): Add prototype.
9240 * utils.c (streq): New function.
9241
9242 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9243 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9244 * mdebugread.c (new_symbol): Likewise.
9245 * stabsread.c (define_symbol): Likewise.
9246 * coffread.c (process_coff_symbol): Likewise.
9247 * dwarfread.c (new_symbol): Likewise.
9248
9249 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9250 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9251 here.
9252 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9253 SYMBOL_INIT_DEMANGLED_NAME.
9254 * objfiles.c: Include "hashtab.h".
9255 (allocate_objfile): Call htab_set_functions_ex for the
9256 demangled_names_hash.
9257 (free_objfile): Call htab_delete for the demangled_names_hash.
9258 * objfiles.h (struct htab): Add declaration.
9259 (struct objfile): Add demangled_names_hash.
9260 * symfile.c: Include "hashtab.h".
9261 (reread_symbols): Call htab_delete for the demangled_names_hash.
9262 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9263 SYMBOL_NAME in the bcache.
9264 * symtab.c: Include "hashtab.h". Update comments.
9265 (create_demangled_names_hash, symbol_set_names): New functions.
9266 (symbol_find_demangled_name): New function, broken out from
9267 symbol_init_demangled_names.
9268 (symbol_init_demangled_names): Use it.
9269 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9270 (SYMBOL_SET_NAMES): New macro.
9271 (symbol_set_names): Add prototype.
9272
9273 2003-02-03 Jim Blandy <jimb@redhat.com>
9274
9275 Use a single, consistent representation for an empty minimal
9276 symbol table in an objfile.
9277 * objfiles.c (terminate_minimal_symbol_table): New function.
9278 (allocate_objfile): Call it.
9279 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9280 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9281 non-NULL.
9282 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9283 objfile has minimal symbols, compare minimal_symbol_count to zero,
9284 instead of comparing msymbols with NULL.
9285 * objfiles.c (have_minimal_symbols): Same.
9286 * solib-sunos.c (solib_add_common_symbols): Call
9287 terminate_minimal_symbol_table.
9288 * symfile.c (reread_symbols): Same.
9289
9290 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9291
9292 * s390-tdep.c (s390_address_class_type_flags)
9293 (s390_address_class_type_flags_to_name)
9294 (s390_address_class_name_to_type_flags): New functions.
9295 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9296 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9297
9298 2003-02-03 Michael Snyder <msnyder@redhat.com>
9299
9300 * arm-tdep.c: Fix spell-o in comment.
9301
9302 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9303
9304 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9305 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9306 error messages to contain BFD filename.
9307
9308 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9309
9310 Fix PR gdb/742 gdb/743 gdb/877
9311 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9312 (do_mixed_source_and_assembly): Use
9313 make_cleanup_ui_out_tuple_begin_end and
9314 make_cleanup_ui_out_tuple_begin_end.
9315 (do_mixed_source_and_assembly): Ditto.
9316 * thread.c (do_captured_list_thread_ids): Ditto.
9317 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9318 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9319 ui_out_tuple_end): Delete prototypes.
9320 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9321 ui_out_list_end, ui_out_tuple_end): Delete.
9322
9323 From Kevin Buettner <kevinb@redhat.com>:
9324 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9325 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9326 (do_cleanup_table_end): New functions.
9327 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9328 Use cleanups to invoke_ui_out_tuple_end().
9329 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9330 * cli/cli-setshow.c (cmd_show_list): Use
9331 make_cleanup_ui_out_tuple_begin_end.
9332
9333 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9334
9335 * frame.c (frame_unwind_register): New function.
9336 (frame_unwind_unsigned_register): Use.
9337 (frame_unwind_signed_register): Use.
9338 (frame_read_register): New function.
9339 * frame.h (frame_unwind_register): Declare.
9340 (frame_read_register): Declare.
9341
9342 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9343 and frame_unwind_register instead of read_memory, write_register
9344 and deprecated_write_register_bytes.
9345
9346 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9347
9348 * frame.h: Note that namelen can be negative.
9349 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9350 NAME's length.
9351
9352 * NEWS: Mention that the d10v's `regs' command is deprecated.
9353 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9354 (d10v_print_registers_info): New function.
9355 (show_regs): Call d10v_print_registers_info.
9356 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9357
9358 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9359
9360 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9361 lost in the previous patch.
9362
9363 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9364
9365 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9366 * stack.c (print_frame_info_base): Output complete FRAME tuple
9367 for synthesized frames.
9368
9369 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9370
9371 * mips-nat.c (zerobuf): Delete.
9372 (fetch_inferior_registers): Alloc local zerobuf.
9373 (fetch_core_registers): Alloc local zerobuf.
9374 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9375 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9376 * thread-db.c (thread_db_store_registers): Ditto.
9377 * sh-tdep.c (sh_do_register): Ditto.
9378 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9379 * remote-sim.c (gdbsim_store_register): Ditto.
9380 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9381 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9382 * monitor.c (monitor_supply_register): Ditto.
9383 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9384 * mips-nat.c (fetch_inferior_registers): Ditto.
9385 * m68klinux-nat.c (fetch_register): Ditto.
9386 * lynx-nat.c (fetch_inferior_registers): Ditto.
9387 (fetch_inferior_registers): Ditto.
9388 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9389 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9390 (hpux_thread_store_registers): Ditto.
9391 * hppah-nat.c (fetch_register): Ditto.
9392 * hppab-nat.c (fetch_register): Ditto.
9393 * hppa-tdep.c (pa_register_look_aside): Ditto.
9394 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9395 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9396
9397 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9398
9399 * gdbarch.sh: Explictly specify all method levels. When a
9400 variable with an empty level, provide a non-multi-arch default.
9401 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9402 * gdbarch.h: Re-generate.
9403 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9404 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9405
9406 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9407
9408 * defs.h (host_pointer_to_address): Delete declaration.
9409 (address_to_host_pointer): Delete declaration.
9410 * utils.c (host_pointer_to_address): Delete function.
9411 (address_to_host_pointer): Delete function.
9412 * procfs.c (procfs_address_to_host_pointer): New function.
9413 * procfs.c (proc_set_watchpoint): Use.
9414 (procfs_can_use_hw_breakpoint): Update comments.
9415 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9416 (som_solib_add): Use.
9417 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9418 * hppa-tdep.c (unwind_command): Use.
9419
9420 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9421
9422 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9423 strlen d_name.
9424
9425 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9426 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9427 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9428 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9429 (define_symbol): Update.
9430 * symfile.c (generic_load): Remove references to nindy.
9431 * symtab.c: Remove references to nindy.
9432
9433 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9434
9435 * infcmd.c (print_float_info): Delete code conditional on
9436 FLOAT_INFO.
9437 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9438 * config/m68k/nm-apollo68b.h: Ditto.
9439 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9440 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9441 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9442
9443 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9444
9445 * config/i386/tm-i386os9k.h: Removed.
9446
9447 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9448 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9449 they're identical to i[3456]86-*-sysv* now.
9450 * config/i386/i386v32.mh: Removed.
9451 * config/i386/xm-i386v32.h: Removed.
9452 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9453
9454 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9455
9456 * config/i386/i386dgux.mh: Removed.
9457 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9458
9459 * configure.in: Fix typo.
9460 * configure: Regenerated.
9461
9462 2003-01-31 David Carlton <carlton@math.stanford.edu>
9463
9464 * dwarf2read.c (dwarf2_locate_sections): Set
9465 dwarf_ranges_section.
9466
9467 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9468
9469 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9470 * utils.c: Update comments documenting legitimate uses of PTR.
9471
9472 * utils.c: Re-indent.
9473
9474 * config/djgpp/fnchange.lst: Delete nindy files.
9475 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9476 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9477 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9478 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9479 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9480 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9481 * Makefile.in (init.c): Remove nindy references.
9482 (saber_gdb): Delete rule.
9483 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9484 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9485 and a68v-nat.c.
9486 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9487 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9488 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9489 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9490 nindy-share/stop.h.
9491 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9492 * saber.suppress: Delete file.
9493
9494 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9495
9496 * dbxread.c (stabs_data): New static variable.
9497 (fill_symbuf): Support an in-memory buffer for stabs data.
9498 (stabs_seek): New function.
9499 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9500 (read_ofile_symtab): Use stabs_seek.
9501 (elfstab_build_psymtabs): Take an asection* instead of
9502 an offset and size. Relocate the stabs data if necessary.
9503 Save the section* for dbx_psymtab_to_symtab.
9504 * dwarf2read.c: Add section variables for each debug section.
9505 (dwarf2_locate_sections): Fill them in.
9506 (dwarf2_read_section): Take an asection* argument.
9507 Relocate the section contents if necessary.
9508 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9509 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9510 it to dwarf2_read_section.
9511 (dwarf2_build_frame_info): Update callers.
9512 * elfread.c (elf_symfile_read): Update call to
9513 elfstab_build_psymtabs.
9514 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9515 (DBX_STAB_SECTION): New macro.
9516 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9517 * symfile.c (symfile_dummy_outputs): New function.
9518 (symfile_relocate_debug_section): New function.
9519 * symfile.h (symfile_relocate_debug_section): Add prototype.
9520
9521 2003-01-31 Richard Henderson <rth@redhat.com>
9522
9523 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9524 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9525 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9526 * alpha-tdep.c (alpha_register_name): Add "unique".
9527 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9528 (ALPHA_UNIQUE_REGNUM): New.
9529 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9530
9531 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9532
9533 * README: Remove reference to Ericsson 1800 monitor.
9534 * Makefile.in (remote-es.o): Delete rule.
9535 (ALLDEPFILES): Delete remote-es.c.
9536 * remote-es.c: Delete file.
9537 * config/m68k/es1800.mt: Delete file.
9538 * config/djgpp/fnchange.lst: Update.
9539 * configure.tgt: Delete m68*-ericsson-* target.
9540
9541 2003-01-31 Adam Fedor <fedor@gnu.org>
9542
9543 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9544 Remove duplicate/shadowing variable of same name.
9545
9546 2003-01-30 Jim Blandy <jimb@redhat.com>
9547
9548 * symfile.c (find_separate_debug_file): Assert that the objfile's
9549 directory name we compute ends with a slash, and then assume that
9550 that's so everywhere we use it.
9551
9552 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9553
9554 * valops.c (value_assign): Flush frame cache after stores to memory
9555 also.
9556
9557 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9558
9559 * Makefile.in (mon960-rom.o): Delete rule.
9560 * mon960-rom.c: Delete file.
9561
9562 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9563
9564 * d10v-tdep.c: Include "frame-unwind.h".
9565 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9566 list.
9567 (next_addr, uses_frame): Delete.
9568 (struct d10v_unwind_cache): Define.
9569 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9570 Use info instead of next_addr and uses_frame globals.
9571 (d10v_frame_init_saved_regs): Delete function.
9572 (d10v_init_extra_frame_info): Delete function.
9573 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9574 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9575 init_frame_pc or frame_saved_pc.
9576 (d10v_pop_frame): Delete function.
9577 (do_d10v_pop_frame): Delete function.
9578 (d10v_frame_chain): Delete function.
9579 (d10v_frame_chain_valid): Delete function.
9580 (d10v_frame_pc_unwind): New function.
9581 (d10v_frame_id_unwind): New function.
9582 (saved_regs_unwinder): New function.
9583 (d10v_frame_register_unwind): New function.
9584 (d10v_frame_pop): New function.
9585 (d10v_frame_unwind): New variable.
9586 (d10v_frame_p): New function.
9587 (d10v_frame_saved_pc): Delete function.
9588 * Makefile.in (d10v-tdep.o): Update dependencies.
9589
9590 2003-01-30 J. Brobecker <brobecker@gnat.com>
9591
9592 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9593 causing some regressions due to a change in the default value
9594 for this macro.
9595
9596 2003-01-29 Richard Henderson <rth@redhat.com>
9597 Elena Zannoni <ezannoni@redhat.com>
9598 Daniel Jacobowitz <drow@mvista.com>
9599
9600 Fix PR gdb/961.
9601 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9602 variables.
9603 (RANGES_SECTION): New.
9604 (dwarf_ranges_buffer): New variable.
9605 (struct comp_unit_head): Add member "die".
9606 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9607 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9608 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9609 (dwarf2_locate_sections): Likewise.
9610 (dwarf2_build_psymtabs): Read .debug_ranges.
9611 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9612 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9613 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9614 Look for DW_AT_ranges and return the bounding box.
9615
9616 2003-01-29 Brian Ford <ford@vss.fsi.com>
9617
9618 * win32-nat.c (cygwin_pid): Removed as unused.
9619 (child_attach): Try fall back to Cygwin pid.
9620
9621 2003-01-29 Jim Blandy <jimb@redhat.com>
9622
9623 * objfiles.h (struct objfile): Doc fix.
9624
9625 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9626
9627 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9628 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9629 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9630 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9631 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9632 (FRAME_SAVED_PC): Change to a function with predicate.
9633 * gdbarch.h, gdbarch.c: Re-generate.
9634
9635 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9636
9637 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9638
9639 * complaints.c (complain): Delete function.
9640 * complaints.h (struct deprecated_complaint): Delete definition.
9641 (complain): Delete declaration.
9642
9643 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9644
9645 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9646 dummy frames.
9647
9648 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9649
9650 * sentinel-frame.h, sentinel-frame.c: New files.
9651 * Makefile.in (frame.o): Update dependencies.
9652 (SFILES): Add sentinel-frame.c.
9653 (sentinel_frame_h): Define.
9654 (COMMON_OBS): Add sentinel-frame.o.
9655 (sentinel-frame.o): Specify dependencies.
9656 * frame.c: Include "sentinel-frame.h".
9657 (frame_register_unwind): Rewrite assuming that there is always a a
9658 ->next frame.
9659 (frame_register, generic_unwind_get_saved_register): Ditto.
9660 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9661 (create_sentinel_frame, unwind_to_current_frame): New functions.
9662 (get_current_frame): Rewrite using create_sentinel_frame and
9663 unwind_to_current_frame. When possible, always create a frame.
9664 (create_new_frame): Set next to the sentinel frame.
9665 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9666 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9667 ID cache when necessary.
9668 (frame_saved_regs_id_unwind): Use frame_relative_level.
9669 (deprecated_generic_get_saved_register): Use frame_relative_level,
9670 get_frame_saved_regs, get_frame_pc, get_frame_base and
9671 get_next_frame.
9672 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9673 frame_register.
9674
9675 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9676
9677 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9678
9679 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9680
9681 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9682 (maintenance_set_profile_cmd): Use error () instead of warning ().
9683
9684 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9685
9686 * configure.in: Check that -pg works if using --enable-profiling.
9687 Check for monstartup and _mcleanup regardless of --enable-profiling.
9688 * maint.c: Check for monstartup and _mcleanup before using them.
9689 * config.in: Regenerated.
9690 * configure: Regenerated.
9691
9692 2003-01-24 Nick Clifton <nickc@redhat.com>
9693
9694 * Add sh2e support:
9695
9696 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9697
9698 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9699 (sh2e_show_regs): New.
9700 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9701 * config/sh/tm-sh.h: Added sh2e to comments.
9702
9703 2003-01-23 Jim Blandy <jimb@redhat.com>
9704
9705 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9706 symbols found)" message here; we haven't checked for a separate
9707 debug info file yet, so we don't know yet.
9708 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9709 we've looked everywhere. Also, there's no need to print a special
9710 message when we're loading the separate debug info file: the one
9711 symbol_file_add prints is fine.
9712
9713 2003-01-23 Alexander Larsson <alexl@redhat.com>
9714 Jim Blandy <jimb@redhat.com>
9715
9716 Add support for executables whose debug info has been separated
9717 out into a separate file, leaving only a link behind.
9718 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9719 and separate_debug_objfile_backlink.
9720 (put_objfile_before): New declaration.
9721 * symfile.c: #include "filenames.h".
9722 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9723 debug info in a separate file, read that, too. Save the addrs
9724 argument, so we can use it again to read the separated debug info;
9725 syms_from_objfile modifies the table we pass it.
9726 (reread_symbols): After re-reading an objfile, call
9727 reread_separate_symbols to refresh its separate debug info
9728 objfile, if it has one.
9729 (reread_separate_symbols, find_separate_debug_file,
9730 get_debug_link_info, separate_debug_file_exists): New functions.
9731 (debug_file_directory): New global var.
9732 (_initialize_symfile): Initialize debug_file_directory, and
9733 provide the new `set debug-file-directory' command to let the user
9734 change it.
9735 * objfiles.c (free_objfile): If this objfile has its debug info in
9736 a separate objfile, free that one too. If this is itself a
9737 separate debug info objfile, clear our parent's backlink.
9738 (put_objfile_before): New function.
9739 * utils.c (gnu_debuglink_crc32): New function.
9740 * defs.h (gnu_debuglink_crc32): New declaration.
9741 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9742 * configure.in: Handle --with-separate-debug-dir config option.
9743 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9744 * acconfig.h (DEBUGDIR): New macro.
9745 * configure, aclocal.m4, config.in: Regenerated.
9746
9747 2003-01-22 Jim Blandy <jimb@redhat.com>
9748
9749 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9750 like the old symbol_file_add, but taking new arguments: you can
9751 now pass in either a `struct section_addr_info' list to say where
9752 each section is loaded, or a `struct section_offsets' table. Pass
9753 these new arguments through to syms_from_objfile as appropriate.
9754 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9755 with the appropriate quiescent values for the new arguments.
9756
9757 * symfile.c: #include "gdb_assert.h".
9758 (syms_from_objfile): Add the ability to pass in a section offset
9759 table directly, as an alternative to the section_addr_info table.
9760 Document arguments better.
9761 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9762 * symfile.h (syms_from_objfile): Update declaration.
9763 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9764 syms_from_objfile.
9765 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9766
9767 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9768
9769 Original patch by Tom Tromey <tromey@cygnus.com> and
9770 Jason Molenda <jmolenda@apple.com>.
9771 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9772 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9773 * NEWS: Mention profiling.
9774 * configure.in (--enable-gdbtk): Fix typo.
9775 (--enable-profiling): New. Set PROFILE_CFLAGS.
9776 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9777 Fill in function.
9778 (profiling_state): New variable.
9779 (mcleanup_wrapper): New function.
9780 (_initialize_maint): Remove NOTYET, fix call to
9781 add_setshow_boolean_cmd for "maint set profile".
9782 * configure: Regenerated.
9783
9784 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9785
9786 * Makefile.in (install-gdbtk): Install PNG images too.
9787
9788 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9789
9790 * exec.c (text_start): Delete global variable.
9791 (exec_file_attach): Make text_start local to the function.
9792 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9793 * valops.c (hand_function_call): Delete code that handles
9794 BEFORE_TEXT_END and AFTER_TEXT_END.
9795 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9796 of CALL_DUMMY_LOCATION.
9797 * gdbarch.c: Regenerate.
9798 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9799 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9800 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9801 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9802 (text_end): Delete extern declaration.
9803
9804 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9805
9806 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9807 * blockframe.c (backtrace_below_main): Move to "frame.c".
9808 (frame_chain_valid): Delete check for backtrace_below_main.
9809 (_initialize_blockframe): Delete initialization, move ``set
9810 backtrace-below-main'' command to "frame.c".
9811 (do_flush_frames_sfunc): Delete function.
9812 * frame.c: Include "command.h" and "gdbcmd.h".
9813 (frame_type_from_pc): New function.
9814 (create_new_frame): Use frame_type_from_pc.
9815 (legacy_get_prev_frame): New function.
9816 (get_prev_frame): Rewrite. When an old style frame, call
9817 legacy_get_prev_frame. Otherwize, unwind the PC first.
9818 (_initialize_frame): Add ``set backtrace-below-main'' command.
9819 * Makefile.in (frame.o): Update dependencies.
9820
9821 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9822
9823 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9824 DEPRECATED_REGISTERS_INFO.
9825
9826 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9827
9828 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9829 Maintainers'. Update `Various Maintainers'.
9830
9831 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9832
9833 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9834 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9835 Suppress actual parameters when `-'.
9836 * gdbarch.h, gdbarch.c: Regenerate.
9837
9838 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9839
9840 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9841 code handling dummy frames.
9842
9843 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9844
9845 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9846 (struct frame_unwind): Add field pop.
9847 * frame.h (frame_pop): Declare.
9848 * frame.c (frame_saved_regs_pop): New function.
9849 (trad_frame_unwinder): Add frame_saved_regs_pop.
9850 (frame_pop): New function.
9851 * dummy-frame.c (dummy_frame_pop): New function.
9852 (discard_innermost_dummy): New function.
9853 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9854 (dummy_frame_unwind): Add dummy_frame_pop.
9855 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9856 * valops.c (hand_function_call): Ditto.
9857 * stack.c (return_command): Ditto.
9858
9859 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9860
9861 * cris-tdep.c: Fix function declaration indentation.
9862 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9863 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9864 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9865 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9866 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9867 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9868
9869 2003-01-18 Michael Chastain <mec@shout.net>
9870
9871 * README (Unpacking and Installation -- quick overview):
9872 Warn against ".../gdb-5.3/gdb/configure".
9873
9874 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9875
9876 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9877 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9878 (struct frame_unwind): Declare opaque.
9879 (dummy_frame_p): Declare function.
9880 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9881 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9882 * dummy-frame.c: Include "frame-unwind.h".
9883 (dummy_frame_p): New function.
9884 (dummy_frame_unwind): New variable.
9885 * frame.c: Include "frame-unwind.h".
9886 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9887 to use the new unwind field.
9888 (set_unwind_by_pc): Delete function.
9889 (create_new_frame, get_prev_frame): Set unwind field using
9890 frame_unwind_find_by_pc.
9891 (trad_frame_unwind, trad_frame_unwinder): New variables.
9892 * frame.h (trad_frame_unwind): Declare variable.
9893 (frame_id_unwind_ftype): Delete declaration.
9894 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9895 (struct frame_unwind): Declare opaque.
9896 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9897 register_unwind with a single unwind pointer.
9898 * frame-unwind.h, frame-unwind.c: New files.
9899 * Makefile.in (SFILES): Add frame-unwind.c.
9900 (frame_unwind_h): Define.
9901 (COMMON_OBS): Add frame-unwind.o.
9902 (frame-unwind.o): Specify dependencies.
9903 (frame.o, dummy-frame.o): Update dependencies.
9904
9905 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9906
9907 * ada-valprint.c: Eliminate PTR.
9908 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9909 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9910 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9911 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9912 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9913 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9914 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9915
9916 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9917
9918 * main.c (captured_main): Don't use PTR.
9919 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9920 * gdbtypes.c (lookup_primitive_typename): Ditto.
9921 (lookup_struct_elt_type): Ditto.
9922 * f-valprint.c (info_common_command): Ditto.
9923 (list_all_visible_commons): Ditto.
9924 * jv-typeprint.c (java_type_print_base): Ditto.
9925
9926 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9927 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9928 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9929 i386-interix-nat.c and i386-interix-tdep.c. Rename
9930 m68klinux-nat.c and m68klinux-tdep.c. Rename
9931 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9932 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9933 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9934 * main.c (captured_main): Use xfree, not free.
9935
9936 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9937
9938 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9939 ID back using a parameter.
9940 * frame.c (frame_id_unwind): Update call.
9941 (frame_saved_regs_id_unwind): Update.
9942 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9943 * dummy-frame.h (struct frame_id): Add opaque declaration.
9944 (dummy_frame_id_unwind): Update declaration.
9945
9946 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9947
9948 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9949
9950 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9951
9952 * MAINTAINERS (Stephen P. Smith): Updated email address.
9953
9954 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9955
9956 Fix PR gdb/898
9957 * breakpoint.c (until_break_command): Add new argument. Use it to
9958 decide whether to stop only at the current frame or not.
9959 * breakpoint.h (until_break_command): Update prototype.
9960 * infcmd.c (until_command): Add new argument to until_break_command
9961 call.
9962 (advance_command): New function.
9963 (_initialize_infcmd): Update help string for 'until' command.
9964 Add new 'advance' command.
9965
9966 2003-01-14 David Carlton <carlton@math.stanford.edu>
9967
9968 * linespec.c (decode_line_1): Normalize comments.
9969 (set_flags): Ditto.
9970 (locate_first_half): Ditto.
9971 (decode_compound): Ditto.
9972 (symtab_from_filename): Ditto.
9973 (decode_all_digits): Ditto.
9974 (decode_dollar): Ditto.
9975 (find_methods): Ditto.
9976 (find_toplevel_char): Ditto.
9977
9978 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9979
9980 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9981 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9982 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9983 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9984 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9985 * language.c, language.h, m32r-tdep.c: Update copyright.
9986 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9987 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9988 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9989 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9990 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9991 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9992
9993 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9994
9995 * stabsread.h (process_later, resolve_cfront_continuation):
9996 Obsolete.
9997 Update copyright years.
9998 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9999 Update copyright year.
10000 * dbxread.c(struct cont_elem): Obsolete.
10001 (process_later, process_now): Obsolete functions.
10002 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10003 Update copyright year.
10004 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10005 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10006 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10007 (parse_partial_symbols): Obsolete cfront support.
10008 * stabsread.c
10009 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10010 macros.
10011 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10012 read_cfront_baseclasses, read_cfront_member_functions,
10013 resolve_cfront_continuation,read_cfront_static_fields,
10014 copy_cfront_struct_fields): Obsolete functions.
10015 (define_symbol, read_one_struct_field): Obsolete cfront support.
10016 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10017 Update Copyright year.
10018
10019 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10020
10021 * stack.c (print_frame_info, print_stack_frame_base_stub,
10022 print_stack_frame_base, show_and_print_stack_frame_stub,
10023 show_and_print_stack_frame, print_only_stack_frame_stub,
10024 print_only_stack_frame): Delete functions.
10025 (print_stack_frame_stub): Call print_frame_info instead of
10026 print_frame_info_base.
10027 (print_frame_info_base): Rename to print_frame_info.
10028 (backtrace_command_1): Call print_frame_info, instead of
10029 print_frame_info_base.
10030 (current_frame_command): Call print_stack_frame, instead of
10031 print_only_stack_frame.
10032 (frame_command): Call print_stack_frame, instead of
10033 show_and_print_stack_frame.
10034 (up_command): Ditto.
10035 (down_command): Ditto.
10036 * frame.h (print_only_stack_frame): Delete prototype.
10037 * infrun.c (normal_stop): Call print_stack_frame, instead of
10038 show_and_print_stack_frame.
10039 * thread.c (info_threads_command): Call print_stack_frame, instead
10040 of print_only_stack_frame.
10041
10042 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10043
10044 * README (Graphical interface to GDB): Update URL. Point at
10045 gdb/links/.
10046
10047 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10048 version match.
10049
10050 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10053 lines.
10054
10055 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10056
10057 * thread-db.c (attach_thread): Prototype.
10058 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10059 thread information (ti), and valid flags (th_valid, ti_valid).
10060 (attach_thread): Move target_pid_to_str call to after the thread
10061 is added to GDB's list. Initialize the cache.
10062 (thread_get_info_callback, thread_db_map_id2thr)
10063 (thread_db_get_info): New functions.
10064 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10065 (thread_db_store_registers, thread_db_thread_alive)
10066 (thread_db_get_thread_local_address): Use them.
10067 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10068 of calling error() for threads in unknown state.
10069
10070 (clear_lwpid_callback): New function.
10071 (thread_db_resume): Use it to clear the cache.
10072
10073 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10074
10075 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10076 (resume_callback): Remove dead code.
10077
10078 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10079
10080 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10081 predicate.
10082 * gdbarch.h, gdbarch.c: Regenerate.
10083 * stack.c (frame_info): Only initialize the saved registers when
10084 FRAME_INIT_SAVED_REGS_P.
10085 * frame.c (frame_saved_regs_register_unwind): Assert
10086 FRAME_INIT_SAVED_REGS_P.
10087 (deprecated_generic_get_saved_register): Ditto.
10088
10089 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10090
10091 * source.c (openp): Squelch warning about "filename".
10092
10093 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10094
10095 * source.c (openp): If the file does not exist don't necessarily
10096 search the path.
10097
10098 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10099
10100 Fix PR gdb/872.
10101 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10102 (integer_types_same_name_p): New function.
10103 (rank_one_type): Use it.
10104 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10105
10106 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10107
10108 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10109 variables.
10110 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10111 * configure.in: Add --with-sysroot.
10112 * configure: Regenerated.
10113 * main.c (gdb_sysroot): New variable.
10114 (captured_main): Initialize gdb_sysroot.
10115 * defs.h (gdb_sysroot): New extern declaration.
10116 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10117
10118 2003-01-12 Michael Chastain <mec@shout.net>
10119
10120 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10121
10122 2003-01-12 Michael Chastain <mec@shout.net>
10123
10124 * top.c (print_gdb_version): Bump copyright year to 2003.
10125
10126 2003-01-12 David Carlton <carlton@bactrian.org>
10127
10128 * linespec.c (symtab_from_filename): Rename variable 's' to
10129 'file_symtab'.
10130
10131 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10132
10133 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10134 dummy frame.
10135 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10136
10137 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10138
10139 * d10v-tdep.c: Include "gdb_assert.h".
10140 (d10v_store_return_value): Rewrite to match current interface.
10141 (d10v_extract_struct_value_address): Ditto.
10142 (d10v_extract_return_value): Ditto.
10143 (d10v_gdbarch_init): Set store_restore_value,
10144 extract_struct_value_address and extract_return_value.
10145
10146 2003-01-12 J. Brobecker <brobecker@gnat.com>
10147
10148 * hpread.c (set_namestring): New procedure replacing the
10149 SET_NAMESTRING macro.
10150 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10151 by calls to set_namestring.
10152
10153 2003-01-11 J. Brobecker <brobecker@gnat.com>
10154
10155 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10156 a compilation warning.
10157 (hpread_process_one_debug_symbol): Likewise.
10158
10159 2003-01-10 David Carlton <carlton@math.stanford.edu>
10160
10161 * linespec.c (decode_line_1): Rename variable 's' to
10162 'file_symtab'.
10163 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10164 (decode_dollar): Ditto.
10165 (decode_variable): Ditto.
10166 (symbol_found): Ditto.
10167
10168 2003-01-09 Michael Chastain <mec@shout.net>
10169
10170 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10171
10172 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10173
10174 * win32-nat.c (set_process_privilege): New function.
10175 (child_attach): Call set_process_privilege() to enable the
10176 SE_DEBUG_NAME user privilege if available in process token.
10177
10178 2003-01-10 J. Brobecker <brobecker@gnat.com>
10179
10180 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10181 compilation error in the previous revision.
10182
10183 2003-01-09 David Carlton <carlton@math.stanford.edu>
10184
10185 * linespec.c: Update copyright.
10186
10187 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10188
10189 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10190 than inferior_ptid.
10191 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10192
10193 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10194
10195 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10196 Update comments.
10197 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10198 (frame_saved_regs_zalloc): Update.
10199 (frame_saved_regs_register_unwind): Update.
10200 (create_new_frame): Update.
10201 (get_prev_frame): Update.
10202 (frame_extra_info_zalloc): Update.
10203 (deprecated_get_frame_saved_regs): Update.
10204 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10205 * cris-tdep.c: Update comment.
10206
10207 * somsolib.h: Fix function indentation.
10208 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10209 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10210 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10211 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10212 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10213
10214 * infrun.c (follow_fork): Use ISO C definition.
10215 * expprint.c (print_subexp): Use xfree instead of free.
10216 * charset.c: Include "gdb_string.h" instead of <string.h>.
10217 (register_iconv_charsets): Use ISO C definition.
10218 (host_charset, target_charset): Ditto.
10219 * Makefile.in (charset.o): Update dependencies.
10220 (mi-cmd-env.o): Update dependencies.
10221
10222 2003-01-08 Andrew Cagney <cagney@redhat.com>
10223
10224 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10225 get_frame_base.
10226
10227 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10228
10229 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10230 build directories. Save edited gdb output in Mbuild.log. If a
10231 build fails, remove any final GDB executable.
10232
10233 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10234
10235 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10236 replacing hex constants with function names and stripping leading
10237 file name directory prefixes.
10238
10239 2003-01-08 Andrew Cagney <cagney@redhat.com>
10240
10241 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10242 get_frame_base.
10243
10244 2003-01-08 David Carlton <carlton@math.stanford.edu>
10245
10246 * linespec.c (decode_line_1): Move code into decode_variable.
10247 (decode_variable): New function.
10248
10249 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10250
10251 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10252
10253 2003-01-08 Andrew Cagney <cagney@redhat.com>
10254
10255 * cris-tdep.c (cris_frame_init_saved_regs): Use
10256 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10257 saved_regs buffer.
10258 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10259 (sh64_nofp_frame_init_saved_regs): Ditto.
10260 (sh_fp_frame_init_saved_regs): Ditto.
10261 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10262 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10263 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10264 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10265
10266 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10267
10268 * minsyms.c (lookup_minimal_symbol): Update comment.
10269 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10270 (lookup_minimal_symbol_solib_trampoline): Likewise.
10271
10272 2003-01-08 Andrew Cagney <cagney@redhat.com>
10273
10274 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10275 frame_relative_level.
10276
10277 * alpha-tdep.c: Use get_frame_extra_info.
10278 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10279 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10280 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10281 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10282
10283 * alpha-tdep.c: Use get_next_frame.
10284 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10285 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10286 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10287 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10288 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10289 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10290 * xstormy16-tdep.c: Ditto.
10291
10292 2003-01-07 Andrew Cagney <cagney@redhat.com>
10293
10294 * alpha-tdep.c: Use get_frame_base.
10295 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10296 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10297 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10298 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10299 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10300 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10301 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10302 * config/sparc/tm-sparc.h: Ditto.
10303
10304 2003-01-07 Andrew Cagney <cagney@redhat.com>
10305
10306 * frame.c (deprecated_get_frame_context): New function.
10307 (deprecated_set_frame_context): New function.
10308 * frame.h (deprecated_get_frame_context): Declare.
10309 (deprecated_set_frame_context): Declare.
10310 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10311 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10312
10313 2003-01-07 Andrew Cagney <cagney@redhat.com>
10314
10315 * frame.c (deprecated_set_frame_next_hack): New function.
10316 (deprecated_set_frame_prev_hack): New function.
10317 * frame.h (deprecated_set_frame_next_hack): Declare.
10318 (deprecated_set_frame_prev_hack): Declare.
10319 * mcore-tdep.c (analyze_dummy_frame): Use
10320 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10321 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10322
10323 2003-01-07 David Carlton <carlton@math.stanford.edu>
10324
10325 * linespec.c (decode_line_1): Move code into decode_dollar.
10326 (decode_dollar): New function.
10327
10328 2003-01-07 Andrew Cagney <cagney@redhat.com>
10329
10330 * arm-tdep.c (arm_init_extra_frame_info): Use
10331 deprecated_update_frame_base_hack.
10332 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10333 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10334 (fix_frame_pointer): Ditto.
10335 (mn10300_analyze_prologue): Ditto.
10336
10337 2003-01-07 Andrew Cagney <cagney@redhat.com>
10338
10339 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10340 extra_info using frame_extra_info_zalloc.
10341 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10342 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10343 (sh64_init_extra_frame_info): Ditto.
10344 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10345 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10346 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10347 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10348 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10349 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10350 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10351 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10352 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10353 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10354 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10355 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10356
10357 * mn10300-tdep.c (analyze_dummy_frame): Use
10358 deprecated_set_frame_extra_info_hack.
10359 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10360
10361 2003-01-07 J. Brobecker <brobecker@gnat.com>
10362
10363 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10364 class is not scText. These do not define "real" procedures.
10365 (parse_partial_symbols): Likewise.
10366
10367 2003-01-06 Michael Snyder <msnyder@redhat.com>
10368
10369 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10370
10371 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10372
10373 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10374 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10375 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10376 deprecated_frame_xmalloc_with_cleanup.
10377 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10378 deprecated_frame_xmalloc.
10379 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10380 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10381
10382 2003-01-06 Andrew Cagney <cagney@redhat.com>
10383
10384 * x86-64-linux-tdep.c: Include "osabi.h".
10385 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10386
10387 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10388
10389 2003-01-06 Andrew Cagney <cagney@redhat.com>
10390
10391 * MAINTAINERS (Target Instruction Set Architectures): Update
10392 arm-elf. Can be built with -Werror, has been multiarched.
10393
10394 * value.h (unpack_long): Make buffer parameter constant.
10395 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10396 * scm-lang.h (scm_parse): Ditto.
10397 * defs.h (extract_typed_address, extract_address): Ditto.
10398 (extract_long_unsigned_integer): Ditto.
10399 * inferior.h (unsigned_pointer_to_address): Ditto.
10400 (signed_pointer_to_address): Ditto.
10401 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10402 * gdbarch.h, gdbarch.c: Regenerate.
10403 * findvar.c (extract_long_unsigned_integer): Update.
10404 (extract_address): Update.
10405 (extract_typed_address): Update.
10406 (unsigned_pointer_to_address): Update.
10407 * values.c (unpack_long): Update.
10408 (unpack_double): Update.
10409 (unpack_pointer): Update.
10410 (unpack_field_as_long): Update.
10411 * d10v-tdep.c (d10v_pointer_to_address): Update.
10412 * avr-tdep.c (avr_pointer_to_address): Update.
10413 * scm-lang.c (scm_unpack): Update.
10414 * findvar.c (signed_pointer_to_address): Update.
10415
10416 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10417
10418 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10419 since it is in i386-tdep.c.
10420
10421 2003-01-06 J. Brobecker <brobecker@gnat.com>
10422
10423 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10424 failure introduced in the previous change.
10425
10426 2003-01-05 Michael Chastain <mec@shout.net>
10427
10428 * README: Remove references to deleted remote-*.c files:
10429 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10430 remote-nrom.c, remote-os9k.c, remote-udi.c.
10431
10432 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10433
10434 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10435 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10436 i386_get_longjmp_target.
10437
10438 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10439
10440 * arm-tdep.c (prologue_cache): Change to a pointer.
10441 (_initialize_arm_tdep): Allocate prologue_cache.
10442 (check_prologue_cache): Update.
10443 (save_prologue_cache): Update.
10444 (arm_gdbarch_init): Update.
10445
10446 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * stabsread.c (update_method_name_from_physname): Call complaint()
10449 instead of error.
10450
10451 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10452
10453 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10454 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10455 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10456
10457 * blockframe.c: Include "gdbcmd.h" and "command.h".
10458 (backtrace_below_main): New variable.
10459 (file_frame_chain_valid, func_frame_chain_valid)
10460 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10461 (generic_func_frame_chain_valid): Remove functions.
10462 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10463 (_initialize_blockframe): New function.
10464 * Makefile.in (blockframe.o): Update dependencies.
10465 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10466 comment. Call frame_chain_valid ().
10467 * frame.h: Remove old prototypes. Add prototype for
10468 frame_chain_valid and update comments to match.
10469 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10470 Remove old comment.
10471 * gdbarch.h: Regenerated.
10472 * gdbarch.c: Regenerated.
10473
10474 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10475 set_gdbarch_frame_chain_valid.
10476 * avr-tdep.c (avr_gdbarch_init): Likewise.
10477 * cris-tdep.c (cris_gdbarch_init): Likewise.
10478 * frv-tdep.c (frv_gdbarch_init): Likewise.
10479 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10480 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10481 (i386_nw_init_abi): Likewise.
10482 (i386_gdbarch_init): Likewise.
10483 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10485 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10486 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10487 * mips-tdep.c (mips_gdbarch_init): Likewise.
10488 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10489 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10490 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10491 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10492 * s390-tdep.c (s390_gdbarch_init): Likewise.
10493 * sh-tdep.c (sh_gdbarch_init): Likewise.
10494 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10495 * v850-tdep.c (v850_gdbarch_init): Likewise.
10496 * vax-tdep.c (vax_gdbarch_init): Likewise.
10497 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10498
10499 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10500 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10501 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10502 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10503 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10504 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10505 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10506 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10507
10508 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10509
10510 * Makefile.in (acconfig_h): Remove incorrect macro.
10511 (config_h): Define.
10512 (osabi.o): Update dependencies.
10513 * configure.tgt: Set gdb_osabi based on target triplet.
10514 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10515 * configure: Regenerated.
10516 * config.in: Regenerated.
10517 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10518 (GDB_OSABI_DEFAULT): Define if not already defined.
10519 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10520 (set_osabi_string): New variables.
10521 (gdbarch_register_osabi): Add new OS ABI to
10522 gdb_osabi_available_names.
10523 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10524 (set_osabi, show_osabi): New functions.
10525 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10526
10527 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * arch-utils.c (gdbarch_info_init): Set osabi to
10530 GDB_OSABI_UNINITIALIZED.
10531 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10532 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10533 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10534 * gdbarch.c: Regenerated.
10535 * gdbarch.h: Regenerated.
10536 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10537 there's no BFD.
10538 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10539 * osabi.h (enum gdb_osabi): Move to defs.h.
10540 (gdbarch_init_osabi): Update prototype.
10541 * defs.h (enum gdb_osabi): Moved here.
10542 * Makefile.in: Update dependencies.
10543
10544 * alpha-tdep.h: Don't include "osabi.h".
10545 (struct gdbarch_tdep): Remove osabi member.
10546 * alpha-tdep.c: Include "osabi.h".
10547 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10548 iterate over arches. Update call to gdbarch_init_osabi.
10549 (alpha_dump_tdep): Don't dump osabi.
10550 * alpha-linux-tdep.c: Include "osabi.h".
10551 * alpha-osf1-tdep.c: Include "osabi.h".
10552 * alphafbsd-tdep.c: Include "osabi.h".
10553 * alphanbsd-tdep.c: Include "osabi.h".
10554
10555 * arm-tdep.h: Don't include "osabi.h".
10556 (struct gdbarch_tdep): Remove osabi member.
10557 * arm-tdep.c: Include "osabi.h".
10558 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10559 iterate over arches. Update call to gdbarch_init_osabi.
10560 (arm_dump_tdep): Don't dump osabi.
10561 * arm-linux-tdep.c: Include "osabi.h".
10562 * armnbsd-tdep.c: Include "osabi.h".
10563
10564 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10565 Update call to gdbarch_init_osabi.
10566
10567 * i386-tdep.h: Don't include "osabi.h".
10568 (struct gdbarch_tdep): Remove osabi member.
10569 * i386-tdep.c: Include "osabi.h".
10570 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10571 iterate over arches. Update call to gdbarch_init_osabi.
10572 (i386_dump_tdep): Don't dump osabi.
10573 * i386-linux-tdep.c: Include "osabi.h".
10574 * i386-sol2-tdep.c: Include "osabi.h".
10575 * i386bsd-tdep.c: Include "osabi.h".
10576 * i386gnu-tdep.c: Include "osabi.h".
10577 * i386ly-tdep.c: Include "osabi.h".
10578 * i386nbsd-tdep.c: Include "osabi.h".
10579 * i386obsd-tdep.c: Include "osabi.h".
10580
10581 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10582 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10583 check osabi when iterating over arches. Update call to
10584 gdbarch_init_osabi.
10585 (mips_dump_tdep): Don't dump osabi.
10586
10587 * ns32k-tdep.h: Don't include "osabi.h".
10588 (struct gdbarch_tdep): Remove.
10589 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10590 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10591 allocate tdep. Update call to gdbarch_init_osabi.
10592 (ns32k_dump_tdep): Remove.
10593 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10594 * ns32knbsd-tdep.c: Include "osabi.h".
10595
10596 * ppc-tdep.h: Don't include "osabi.h".
10597 (struct gdbarch_tdep): Remove osabi member.
10598 * rs6000-tdep.c: Include "osabi.h".
10599 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10600 osabi when iterating over arches. Update call to
10601 gdbarch_init_osabi.
10602 (rs6000_dump_tdep): Don't dump osabi.
10603 * ppc-linux-tdep.c: Include "osabi.h".
10604 * ppcnbsd-tdep.c: Include "osabi.h".
10605
10606 * sh-tdep.h: Don't include "osabi.h".
10607 (struct gdbarch_tdep): Remove osabi member.
10608 * sh-tdep.c: Include "osabi.h".
10609 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10610 iterate over arches. Update call to gdbarch_init_osabi.
10611 (sh_dump_tdep): Don't dump osabi.
10612 * shnbsd-tdep.c: Include "osabi.h".
10613
10614 * sparc-tdep.c: Include "osabi.h".
10615 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10616 iterate over arches. Update call to gdbarch_init_osabi.
10617 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10618 tdep structure.
10619
10620 * vax-tdep.h: Don't include "osabi.h".
10621 (struct gdbarch_tdep): Remove.
10622 * vax-tdep.c: Include "osabi.h".
10623 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10624 iterate over arches. Don't allocate tdep. Update call
10625 to gdbarch_init_osabi.
10626 (vax_dump_tdep): Remove.
10627 (_initialize_vax_tdep): Update call to gdbarch_register.
10628
10629 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10632 entirely.
10633 (breakpoint_re_set_one): Don't fetch the value for a disabled
10634 watchpoint.
10635
10636 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10639 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10640 (COERCE_FLOAT_TO_DOUBLE): Remove.
10641 * gdbarch.c: Regenerate.
10642 * gdbarch.h: Regenerate.
10643 * Makefile.in: Remove value_h from gdbarch_h.
10644 * valops.c (coerce_float_to_double): New variable.
10645 (default_coerce_float_to_double): Remove.
10646 (standard_coerce_float_to_double): Remove.
10647 (value_arg_coerce): Use coerce_float_to_double.
10648 (_initialize_valops): Add "set coerce-float-to-double".
10649 * value.h (default_coerce_float_to_double): Remove prototype.
10650 (standard_coerce_float_to_double): Remove prototype.
10651
10652 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10653 prototyped.
10654 * mdebugread.c (parse_symbol): Likewise.
10655 * stabsread.c (define_symbol): Mark all functions as prototyped.
10656
10657 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10658 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10659 set_gdbarch_coerce_float_to_double.
10660 * arm-tdep.c (arm_gdbarch_init): Likewise.
10661 * frv-tdep.c (frv_gdbarch_init): Likewise.
10662 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10663 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10664 * mips-tdep.c (mips_gdbarch_init): Likewise.
10665 (mips_coerce_float_to_double): Remove.
10666 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10667 (rs6000_coerce_float_to_double): Remove.
10668 * s390-tdep.c (s390_gdbarch_init): Likewise.
10669 * sh-tdep.c (sh_gdbarch_init): Likewise.
10670 (sh_coerce_float_to_double): Remove.
10671 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10672 (sparc_coerce_float_to_double): Remove.
10673 * v850-tdep.c (v850_gdbarch_init): Likewise.
10674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10675 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10676 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10677 (hppa_coerce_float_to_double): Remove prototype.
10678 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10679
10680 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10681
10682 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10683
10684 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10685
10686 Suggested by Stewart Brown <sb24@avaya.com>:
10687 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10688 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10689 (c_type_print_varspec_suffix): Likewise.
10690
10691 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10692
10693 * configure.in: Don't set and AC_SUBST SUBDIRS.
10694 * configure: Regenerated.
10695
10696 * configure.in: Remove code dealing with shared libraries.
10697 * Makefile.in: Remove HLDFLAGS and HLDENV.
10698 * configure: Regenerated.
10699
10700 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10701
10702 * frame.c (deprecated_frame_xmalloc): New function.
10703 (deprecated_set_frame_saved_regs_hack): New function.
10704 (deprecated_set_frame_extra_info_hack): New function.
10705 * frame.h (deprecated_frame_xmalloc): Declare.
10706 (deprecated_set_frame_saved_regs_hack): Declare.
10707 (deprecated_set_frame_extra_info_hack): Declare.
10708
10709 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10710
10711 * configure.in: Move code that provides the --enable-gdbtk option
10712 right after the code that handles the --enable-tui option, and
10713 polish it somewhat.
10714 * configure: Regenerated.
10715
10716 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10717 AC_CHECK_FUNCS and remove the old check for pread64.
10718 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10719 * acconfig.h (_GNU_SOURCE): Add.
10720 (HAVE_PREAD64): Remove.
10721 * configure, aclocal.m4, config.in: Regenerated.
10722
10723 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10724
10725 * alpha-tdep.c: Use get_frame_saved_regs.
10726 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10727 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10728 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10729 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10730 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10731
10732 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10733
10734 * configure.in: Remove all use of the SUBDIRS variable; add
10735 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10736 code providing the --enable-multi-ice option, and move it right in
10737 front of the code that checks whether gdbserver is supported.
10738 Polish that too.
10739 * configure: Regenerated.
10740 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10741 @SUBDIRS@.
10742
10743 2003-01-03 Andrew Cagney <cagney@redhat.com>
10744
10745 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10746 * avr-tdep.c, cris-tdep.c: Ditto.
10747 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10748 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10749
10750 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10751
10752 * configure.in: Remove --enable-netrom option.
10753 * configure: Regenerated.
10754
10755 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10756
10757 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10758 declaration for `struct re_pattern_buffer' instead.
10759 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10760
10761 2003-01-03 J. Brobecker <brobecker@gnat.com>
10762
10763 * mdebugread.c (parse_symbol): Count until the stEnd matching
10764 the structure name.
10765
10766 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10767
10768 * configure.in: Remove --with-cpu option.
10769 subscripts. Remove evil changequotes here.
10770 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10771 * config.in, configure: Regenerated.
10772
10773 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10774 * configure.in: Cleanup section that sources GDB and BFD configure
10775 subscripts. Remove evil changequotes here.
10776 * config.in, configure: Regenerated.
10777
10778 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10779
10780 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10781 frame accessor methods.
10782 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10783 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10784 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10785 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10786 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10787 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10788 * z8k-tdep.c: Ditto.
10789
10790 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10791
10792 * configure.in: Remove UI_OUT configuration code.
10793 * ada-lang.c: Update assuming UI_OUT is always true.
10794 * Makefile.in (UIOUT_CFLAGS): Remove.
10795 * configure: Regenerated.
10796 * TODO: Remove blurb about elimination of -DUI_OUT.
10797
10798 * configure.in: Move code that provides the --enable-gdbcli,
10799 --enable-gdbmi options right before the code that handles the
10800 --enable-tui option. Polish a bit.
10801 * configure: Regenerated.
10802
10803 * configure.in: Rewrite check for GNU regex and the
10804 --without-included regex option, and move it into the "Checks for
10805 library functions" section. This makes us use the system regex
10806 again by default on systems with version 2 of the GNU C library.
10807 This was apparently broken.
10808 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10809 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10810 * config.in, configure: Regenerated.
10811
10812 * configure.in: Move code that provides the --enable-tui option
10813 before the "Checks for libraries" section. Polish the code
10814 somewhat and set need_curses to yes if we build the TUI. Rewrite
10815 code that looks for a library providing termcap functionality to
10816 match more closely what's done in the Readline library, and move
10817 it into to the "Checks for libraries" section.
10818 * configure: Regenerated.
10819 * Makefile.in (TERMCAP): Remove variable.
10820 * config/i386/go32.mh (TERMCAP): Remove variable.
10821
10822 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10823
10824 * MAINTAINERS: Mention gdb_mbuild.sh.
10825 * gdb_mbuild.sh: Rewrite.
10826
10827 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10828
10829 * configure.in: Fix typo in last change.
10830 * config.in, configure: Regenerated.
10831
10832 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10833
10834 * valarith.c (value_binop): Delete obsolete code and comments.
10835 * configure.host: Ditto.
10836 * buildsym.h (make_blockvector): Ditto.
10837 * buildsym.c (make_blockvector): Ditto.
10838 * defs.h (enum language): Ditto.
10839 (chill_demangle): Ditto.
10840 * elfread.c (elf_symtab_read): Ditto.
10841 * dwarfread.c (CHILL_PRODUCER): Ditto.
10842 (set_cu_language): Ditto.
10843 (handle_producer): Ditto.
10844 * expprint.c (print_subexp): Ditto.
10845 * gdbtypes.c (chill_varying_type): Ditto.
10846 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10847 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10848 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10849 (chill_varying_type): Ditto.
10850 * language.h (_LANG_chill): Ditto.
10851 * language.c (binop_result_type, integral_type): Ditto.
10852 (character_type, string_type, structured_type): Ditto.
10853 (lang_bool_type, binop_type_check): Ditto.
10854 * stabsread.h (os9k_stabs): Ditto.
10855 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10856 (define_symbol, read_type, read_struct_fields): Ditto.
10857 (read_array_type, read_enum_type, read_huge_number): Ditto.
10858 (read_range_type, start_stabs): Ditto.
10859 * symfile.c (init_filename_language_table): Ditto.
10860 (add_psymbol_with_dem_name_to_list): Ditto.
10861 * symtab.c (symbol_init_language_specific): Ditto.
10862 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10863 * symtab.h (struct general_symbol_info): Ditto.
10864 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10865 * typeprint.c (typedef_print): Ditto.
10866 * utils.c (fprintf_symbol_filtered): Ditto.
10867 * valops.c (value_cast, search_struct_field, value_slice): Delete
10868 obsolete code.
10869 (varying_to_slice): Delete function.
10870 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10871 (varying_to_slice): Delete declaration.
10872 * MAINTAINERS: Update.
10873
10874 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10875
10876 * configure.in: Reorganize "Checks for library functions section"
10877 a bit. Remove check for `btowc' and `isascii' functions.
10878 * configure: Regenerated.
10879
10880 * acconfig.h (_MSE_INT_H): Remove.
10881 * configure.in: Create "Checks for header files" section, and move
10882 appropriate tests there. Don't check for objlist.h, wchar.h,
10883 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10884 misdetection fix. Also add "Checks for types", "Checks for
10885 compiler characteristics" and "Checks for library functions"
10886 sections.
10887 * config.in, configure: Regenerated.
10888
10889 * configure.in: Create "Checks for programs" section, and move
10890 appropriate tests there.
10891
10892 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10893
10894 * configure.in: Create "Checks for libraries" section, and move
10895 appropriate tests there. Cleanup check for wctype in libw. Use
10896 AC_SEARCH_LIBS to see whether we need libsocket.
10897 * configure: Regenerated.
10898
10899 For older changes see ChangeLog-2002
10900 \f
10901 Local Variables:
10902 mode: change-log
10903 left-margin: 8
10904 fill-column: 74
10905 version-control: never
10906 End:
This page took 0.258312 seconds and 5 git commands to generate.