* x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4 Update comments.
5 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
6 comments.
7 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
8 x86_64_supply_fxsave.
9 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
10 x86_64_supply_fxsave.
11 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
12 x86_64_supply_fxsave.
13
14 2003-08-23 Andreas Jaeger <aj@suse.de>
15
16 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
17 i387_supply_fxsave.
18
19 2003-08-23 Mark Kettenis <kettenis@gnu.org>
20
21 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
22 i387_supply_register.
23 (go32_fetch_registers): Adjust call to i387_supply_fsave.
24 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
25 i387_supply_fsave.
26 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
27 i387_supply_fxsave.
28 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
29 i387_supply_fsave.
30 * i386bsd-nat.c (supply_fpregset): Adjust call to
31 i387_supply_fsave.
32 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
33 call to i387_supply_fxsave. Call i387_supply_fsave instead of
34 supply_fpregset.
35 (store_inferior_registers): Remove extraneous whitespace. Call
36 i387_fill_fsave instead of fill_fpregset.
37 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
38 (supply_fpregset): Likewise.
39 * i386v4-nat.c (supply_fpregset): Adjust call to
40 i387_supply_fsave.
41 * i386-interix-nat.c (supply_fpregset): Adjust call to
42 i387_supply_fsave.
43 * i386-linux-nat.c (supply_fpregset): Adjust call to
44 i387_supply_fsave.
45 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
46 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
47 i387supply_fsave and i387_supply_fxsave.
48 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
49 Incorporate code from `i387_supply_register.
50 (i387_supply_register): Remove.
51 (i387_supply_fxsave): Add `regnum' argument.
52 Update comments.
53 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
54 prototype.
55 (i387_supply_register): remove prototype.
56 Update comments.
57
58 2003-08-22 Michael Chastain <mec@shout.net>
59
60 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
61 Add lines for files in gdb/testsuite/gdb.cp/* that are
62 still not 8.3 unique.
63
64 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
65
66 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
67 TYPE_VPTR_FIELDNO is valid.
68
69 2003-08-19 Mark Kettenis <kettenis@gnu.org>
70
71 * utils.c (set_width_command): Remove prototypes.
72 (set_screen_size): New prototype.
73 (init_page_info): Simplify by fetching the screen size from
74 Readline. Call set_screen_size.
75 (set_screen_size): New function.
76 (set_width): Add missing whitespace in comment.
77 (set_width_command): Call set_screen_size.
78 (set_height_command): New function.
79 (initialize_utils): Fix formatting. Make "set height" command
80 call set_height_command. Remove redundant code that turns off
81 pagination if output isn't a terminal. Remove redundant call to
82 set_width_command.
83
84 2003-08-22 Mark Kettenis <kettenis@gnu.org>
85
86 * sparc64-tdep.h (sparc64_regnum): Fix comment.
87 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
88 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
89 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
90 `case' keyword.
91 (sparc64_register_info): Give the reister with number
92 SPARC64_STATE_REGNUM a name.
93 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
94 %asi and %ccr.
95 (sparc64_push_dummy_call): Take BIAS into account when checking
96 stcak alignment.
97 (sparc_software_single_step): Remove assertions that check whether
98 NPC and NNPC were zero.
99 (sparc_supply_rwindow): Make public. Merge functionality with
100 sparc64_supply_rwindow.
101 (sparc_fill_rwindow): Make public. Merge functionality with
102 sparc64_fill_rwindow.
103 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
104 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
105 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
106 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
107 sparc_supply_rwindow instead of sparc64_supply_rwindow.
108
109 * reggroups.c: Add whitespace after declarations of local
110 variables in functions.
111
112 2003-08-21 Michael Chastain <mec@shout.net>
113
114 * gdbtypes.h: Change array bound type from an int to enum.
115
116 2003-08-21 Andrew Cagney <cagney@redhat.com>
117
118 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
119 * config/sparc/tm-sparc.h: Ditto.
120 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
121 unconditionally.
122 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
123
124 2003-07-13 Mark Kettenis <kettenis@gnu.org>
125
126 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
127 (register_objfile_data, set_objfile_data, objfile_data): New
128 prototypes.
129 * objfiles.c (objfile_alloc_data, objfile_free_data): New
130 prototypes.
131 (allocate_objfile): Call objfile_alloc_data.
132 (free_objfile): Call objfile_free_data.
133 (struct objfile_data): New.
134 (struct objfile_data_registration): New.
135 (struct objfile_data_registry): New.
136 (objfile_data_registry): New variable.
137 (register_objfile_data): New function.
138 (objfile_alloc_data, objfile_free_data): New functions.
139 (set_objfile_data, objfile_data): New functions.
140 * dwarf2-frame.c (dwarf2_frame_data): New variable.
141 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
142 (_initialize_dwarf2_frame): New function and prototype.
143
144 2003-08-21 Andrew Cagney <cagney@redhat.com>
145
146 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
147 a specific architecture.
148 * arch-utils.h (set_architecture_from_arch_mach): Delete
149 declaration.
150 (target_architecture_hook): Delete declaration.
151 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
152 (default_float_format): Assume GDB_MULTI_ARCH.
153 (default_double_format): Assume GDB_MULTI_ARCH.
154 (set_endian_from_file): Delete function.
155 (arch_ok): Delete function.
156 (set_arch): Delete function.
157 (set_architecture_from_arch_mach): Delete function.
158 (set_architecture_from_file): Delete function.
159 (set_architecture): Assume GDB_MULTI_ARCH.
160 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
161
162 2003-08-21 Mark Kettenis <kettenis@gnu.org>
163
164 Rewrite FreeBSD/sparc64 native configuration.
165 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
166 * sparc64fbsd-nat.c: New file.
167 * sparc64fbsd-tdep.c: New file.
168 * sparc64-tdep.c sparc64-tdep.h: New files.
169 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
170 sparc64fbsd-tdep.o): New dependencies.
171 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
172 and sparc64fbsd-tdep.c.
173 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
174 * config/sparc/fbsd.mh: Remove copyright notice.
175 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
176 sparcbsd-nat.o.
177 * config/sparc/fbsd.mt: Remove copyright notice.
178 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
179 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
180 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
181 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
182 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
183 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
184 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
185 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
186 "sparc/tm-sp64.h".
187 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
188 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
189
190 2003-08-21 Michael Chastain <mec@shout.net>
191
192 * symtab.h: Add doco on the space critical structures and
193 some measurements of space usage.
194
195 2003-08-21 Michael Snyder <msnyder@redhat.com>
196
197 * tracepoint.c (trace_dump_command): Trace break address
198 is subject to DECR_PC_AFTER_BREAK.
199 (set_traceframe_context): Make "trace_line" an int.
200 Fixes suggested by Mark Newman <mark.newman@lmco.com>
201
202 2003-08-20 Michael Snyder <msnyder@redhat.com>
203
204 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
205 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
206 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
207 argument passing.
208 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
209 functions, replace sh_push_dummy_call.
210 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
211
212 2003-08-20 Michael Chastain <mec@shout.net>
213
214 * gdbtypes.h (struct main_type): Rearrange to save space.
215
216 2003-08-20 Michael Snyder <msnyder@redhat.com>
217
218 * trad-frame.c: Comment typo fix.
219
220 2003-08-20 Michael Snyder <msnyder@redhat.com>
221 Kevin Buettner <kevinb@redhat.com>
222
223 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
224 (frv_frame_init_saved_regs): Add declaration.
225 (frame_extra_info): Add new field ``saved_regs''.
226 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
227 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
228 Update frame related code.
229 (frv_extract_struct_value_address): Adjust formatting.
230 * Makefile.in (frv-tdep.o): Update dependencies.
231 * config/frv/tm-frv.h (target_insert_watchpoint)
232 (target_remove_watchpoint, target_insert_hw_breakpoint)
233 (target_remove_hw_breakpoint): Delete these macros.
234 (remote_insert_watchpoint, remote_remove_watchpoint)
235 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
236 these declarations.
237
238 2003-08-20 Michael Chastain <mec@shout.net>
239
240 * defs.h (ENUM_BITFIELD): New macro.
241 * symtab.h (ENUM_BITFIELD): Use it.
242 (BYTE_BITFIELD): Remove old macro, which was already disabled.
243
244 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
245
246 * MAINTAINERS (write after approval): Add myself.
247
248 2003-08-18 Andrew Cagney <cagney@redhat.com>
249
250 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
251 * gdbarch.h, gdbarch.c: Re-generate.
252 * infcall.c (call_function_by_hand): Adjust the SP by
253 frame_red_zone_size before allocating any stack space.
254 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
255 * x86-64-tdep.c (x86_64_frame_align): New function.
256 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
257
258 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
259 Remove code adjusting SP so that it skips over the Red Zone.
260
261 2003-08-18 Mark Kettenis <kettenis@gnu.org>
262
263 * NEWS (New native configurations): Mention FreeBSD/amd64.
264
265 2003-08-18 Andrew Cagney <cagney@redhat.com>
266
267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
268 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
269 "m68k_frame_p".
270 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
271
272 2003-08-18 Mark Kettenis <kettenis@gnu.org>
273
274 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
275
276 2003-08-18 Michal Ludvig <mludvig@suse.cz>
277
278 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
279 Define.
280 * i386-linux-nat.c: Include "linux-nat.h".
281 (child_post_startup_inferior): New function.
282
283 2003-08-18 Mark Kettenis <kettenis@gnu.org>
284
285 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
286 at the start of a frameless function. This probably fixes PR
287 backtrace/1338.
288
289 2003-08-17 Michael Chastain <mec@shout.net>
290
291 * symfile.c (find_sym_fns): Remove special case for apollo target.
292
293 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
294
295 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
296 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
297 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
298 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
299 (linux_supports_tracevforkdone): New function.
300 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
301 TRACEVFORKDONE.
302 (child_follow_fork): Handle vfork.
303 (linux_handle_extended_wait): Likewise. Also handle exec.
304 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
305 * NEWS: Mention fork tracing.
306
307 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
308
309 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
310
311 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
312
313 * Makefile.in (i386-linux-nat.o): Update dependencies.
314 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
315 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
316 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
317 * i386-linux-nat.c: Include "linux-nat.h".
318 (child_post_startup_inferior): New function.
319 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
320 * infptrace.c (kill_inferior): Wrap in #ifdef.
321 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
322 attaching to each LWP.
323 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
324 (init_lin_lwp_ops): Fill in some more operations.
325 * linux-nat.h (linux_enable_event_reporting)
326 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
327 prototypes.
328 * linux-nat.c (linux_enable_event_reporting): New function.
329 (child_post_attach, linux_child_post_startup_inferior)
330 (child_post_startup_inferior, child_follow_fork)
331 (linux_handle_extended_wait, kill_inferior): New functions.
332
333 2003-08-16 Andrew Cagney <cagney@redhat.com>
334
335 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
336 * gdbarch.h, gdbarch.c: Re-generate.
337
338 2003-08-16 Mark Kettenis <kettenis@gnu.org>
339
340 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
341
342 2003-08-16 Andrew Cagney <cagney@redhat.com>
343
344 * NEWS: Mention that "set prompt-escape-char" was deleted.
345 * top.c (get_prompt_1): Delete function.
346 (gdb_prompt_escape):
347 (init_main): Do not clear "gdb_prompt_escape". Delete "set
348 prompt-escape-char" command.
349 (MAX_PROMPT_SIZE): Delete macro.
350 (get_prompt): Simplify, do not call get_prompt_1.
351
352 2003-08-16 Andrew Cagney <cagney@redhat.com>
353
354 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
355 -Werror. -Wformat-nonliteral problems.
356
357 2003-08-15 J. Brobecker <brobecker@gnat.com>
358
359 Further multiarching work mostly for hppa64-*-hpux11:
360 * hppa-tdep.h: New file.
361 * hppa-tdep.c: #include hppa-tdep.c.
362 (hppa32_num_regs): Renamed from hppa_num_regs.
363 (hppa64_num_regs): New constant.
364 (hppa64_call_dummy_breakpoint_offset): New constant.
365 (hppa32_call_dummy_length): New constant.
366 (hppa64_call_dummy_length): New constant.
367 (hppa32_stack_align): Make name 32bit explicit.
368 (hppa32_register_virtual_type): Likewise.
369 (hppa32_extract_return_value): Likewise.
370 (hppa32_use_struct_convention): Likewise.
371 (hppa32_store_return_value): Likewise.
372 (hppa64_register_virtual_type): New function.
373 (hppa64_extract_return_value): New function.
374 (hppa64_use_struct_convention): New function.
375 (hppa64_store_return_value): New function.
376 (hppa_frame_locals_address): Remove declaration, function does
377 not exist anymore.
378 (hppa_register_byte): Add support for PA64 ABI.
379 (hppa_gdbarch_init): Add support for PA64 ABI.
380 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
381 Make name 32bit explicit.
382 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
383 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
384 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
385 (hppa64_hpux_frame_base_before_sigtramp): New function.
386 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
387 * config/pa/tm-hppa64.h: Remove macros that are no longer
388 necessary now that the gdbarch vector is properly setup.
389 Transform some macros into function calls. Some minor cleanup.
390 * config/pa/tm-hppah.h: Update function calls in macros
391 following the function renaming in hppa-hpux-tdep.c.
392 * Makefile.in (hppa_tdep_h): New variable.
393 (hppa-tdep.o): Add dependency over hppa_tdep_h.
394
395 2003-08-14 Michael Snyder <msnyder@redhat.com>
396
397 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
398
399 2003-08-13 J. Brobecker <brobecker@gnat.com>
400
401 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
402 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
403 routine.
404
405 2003-08-13 Michael Snyder <msnyder@redhat.com>
406
407 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
408 (frv_saved_pc_after_call): Use deprecated ftype.
409 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
410 (frv_remote_translate_xfer_address): Remove.
411 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
412
413 2003-08-13 J. Brobecker <brobecker@gnat.com>
414
415 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
416 initialization after the common gdbarch initialization, not before.
417
418 2003-08-13 J. Brobecker <brobecker@gnat.com>
419
420 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
421 (ADDR_BITS_REMOVE): Remove, redundant.
422
423 2003-08-13 J. Brobecker <brobecker@gnat.com>
424
425 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
426 gdbarch method to clear the 2 low bits of text addresses.
427
428 2003-08-12 Andrew Cagney <cagney@redhat.com>
429
430 * Makefile.in (dsrec.o): Update dependencies.
431 * dsrec.c: Include "gdb_assert.h".
432 (make_srec): Use snprintf instead of sprintf, use a literal format
433 string.
434
435 2003-08-12 Andrew Cagney <cagney@redhat.com>
436
437 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
438 FRAME_OBSTACK_ZALLOC.
439
440 2003-08-12 Kevin Buettner <kevinb@redhat.com>
441
442 * i386-tdep.c (i386_gdbarch_init): Enable default support for
443 SSE registers.
444
445 2003-08-10 Mark Kettenis <kettenis@gnu.org>
446
447 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
448 amd64fbsd_sc_reg_offset): Add extern declarations.
449 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
450 declarations.
451
452 2003-08-11 Ben Elliston <bje@wasabisystems.com>
453
454 * MAINTAINERS (write after approval): Update my mail address.
455
456 2003-08-10 Andrew Cagney <cagney@redhat.com>
457
458 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
459
460 2003-08-10 Mark Kettenis <kettenis@gnu.org>
461
462 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
463 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
464 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
465 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
466 i386bsd_sc_reg_offset): Add extern declarations.
467 * i386obsd-nat.c: Include "i386-tdep.h"
468 (_initialize_i386obsd_nat): Remove extern declarations.
469 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
470 declarations.
471 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
472 declarations.
473
474 * i386-tdep.c (i386_register_to_value): Use get_frame_register
475 instead of frame_read_register.
476 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
477 instead of frame_read_register. Use I386_ESP_REGNUM instead of
478 SP_REGNUM.
479 (i386_frame_prev_register): Use frame_unwind_register_unsigned
480 instead of frame_unwind_unsigned_register. Use
481 I386_EFLAGS_REGISTER instead of PS_REGNUM.
482 (i386_get_longjmp_target): Use regcache_read_unsigned_register
483 instead of read_register. Use builtin_type_void_data_ptr instead
484 of builtin_type_void_func_ptr when extracting the address of the
485 jmp_buf.
486 (i386_extract_return_value, i386_store_return_value,
487 i386_pseudo_register_read, i386_pseudo_register_write): Use
488 register_size instead REGISTER_RAW_SIZE.
489
490 2003-08-10 Andrew Cagney <cagney@redhat.com>
491
492 * infcall.c (call_function_by_hand): Use xstrprintf instead of
493 sprintf. Make "name" constant.
494
495 2003-08-10 Mark Kettenis <kettenis@gnu.org>
496
497 * i387-tdep.c (i387_register_to_value): Use get_frame_register
498 instead of frame_read_register.
499 (i387_print_float_info): Use get_frame_register and
500 get_frame_register_unsigned instead of frame_register_read.
501
502 * i386fbsd-nat.c: Include "i386-tdep.h".
503 (child_resume): Make `eflags' an ULONGEST. Use
504 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
505 instead of register_read and register_write.
506
507 * i386bsd-nat.c (fetch_inferior_registers,
508 store_inferior_registers): Don't use && at the end of a line.
509 (_initialize_i386bsd_nat): Fix typo.
510
511 * frame.c (_initialize_frame): Add missing backslash.
512
513 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
514 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
515 and supply_register instead of manipulating the register buffer
516 directly.
517
518 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
519 * config/i386/nm-i386sol2.h
520 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
521
522 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
523 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
524 instructions that GCC likes to mingle into the prologue. Fixes
525 gdb/1253 and gdb/1255.
526
527 2003-08-09 Andrew Cagney <cagney@redhat.com>
528
529 Fix GDB PR cli/926.
530 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
531 * command.h (add_setshow_uinteger_cmd): Declare.
532 * frame.c (set_backtrace_cmd): New function.
533 (show_backtrace_cmd): New function.
534 * frame.c (_initialize_frame): Replace "set/show
535 backtrace-below-main" with "set/show backtrace past-main". Add
536 command "set/show backtrace limit".
537 (backtrace_past_main): Rename "backtrace_below_main".
538 (backtrace_limit): New variable.
539 (get_prev_frame): Update. Check the backtrace_limit.
540
541 2003-08-09 Andrew Cagney <cagney@redhat.com>
542
543 * defs.h (xstrprintf): Declare.
544 * utils.c (xstrprintf): New function.
545 * breakpoint.c (insert_breakpoints): Replace sprintf and
546 non-literal format strings, with xstrprintf and cleanups.
547 (delete_breakpoint,breakpoint_re_set): Ditto.
548 (commands_command, insert_breakpoints): Ditto.
549 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
550 (break_at_finish_command_1): Ditto.
551
552 2003-08-09 Andrew Cagney <cagney@redhat.com>
553
554 * MAINTAINERS (language support): List Adam Fedor as Objective C
555 maintainer.
556
557 2003-08-08 J. Brobecker <brobecker@gnat.com>
558
559 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
560 are now multiarched.
561
562 2003-08-08 J. Brobecker <brobecker@gnat.com>
563
564 * config/pa/tm-hppa64.h: Remove lots of macros that are no
565 longer necessary now that hppa64 is partially multiarch'ed.
566
567 2003-08-08 Andrew Cagney <cagney@redhat.com>
568
569 * interps.c (interp_set): Check for a NULL "old_interp".
570
571 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
572
573 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
574 (install-only): Support DESTDIR.
575 (uninstall): Likewise.
576 (install-gdbtk): Likewise.
577
578 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
579
580 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
581 contains something meaningful at all times.
582
583 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
584
585 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
586
587 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
588
589 * MAINTAINERS (write after approval): Added self.
590
591 2003-08-07 Andrew Cagney <cagney@redhat.com>
592
593 * inferior.h (AT_SYMBOL): Define.
594 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
595 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
596 * mips-tdep.c (mips_call_dummy_address): Delete function.
597 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
598 set call_dummy_address.
599
600 2003-08-07 Andrew Cagney <cagney@redhat.com>
601
602 * language.c (op_error): Delete function.
603 (binop_type_check): Delete function.
604 * language.h (type_op_error, range_op_error): Delete macros.
605 (op_error): Delete declaration.
606
607 2003-08-07 Andrew Cagney <cagney@redhat.com>
608
609 * interps.h (INTERP_MI2, INTERP_MI3): Define.
610
611 2003-08-07 Michal Ludvig <mludvig@suse.cz>
612
613 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
614 (x86_64_push_arguments): Skip the red zone.
615
616 2003-08-05 Andrew Cagney <cagney@redhat.com>
617
618 * reggroups.c (reggroup_next): Check for the final entry.
619
620 2003-08-04 Andrew Cagney <cagney@redhat.com>
621
622 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
623 * cli/cli-script.c (define_command): Call query directly, instead
624 of passing it a buffer.
625 * ocd.c (ocd_error): Pass error a constant format string.
626 * remote-mips.c (mips_error): Use fputs_filtered.
627
628 * solib-svr4.c (_initialize_svr4_solib): Update
629 register_gdbarch_data call.
630 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
631
632 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
633 (register_gdbarch_data): Delete "free" parameter. Update
634 comments.
635 * gdbarch.h, gdbarch.c: Re-generate.
636 * reggroups.c (_initialize_reggroup): Update.
637 * gnu-v3-abi.c (init_gnuv3_ops): Update.
638 * frame-base.c (_initialize_frame_base): Update.
639 * frame-unwind.c (_initialize_frame_unwind): Update.
640 * user-regs.c (_initialize_user_regs): Update.
641 * remote.c (_initialize_remote): Update.
642 * regcache.c (_initialize_regcache): Update.
643
644 * regcache.c (xfree_regcache_descr): Delete function.
645 (_initialize_regcache): Update call to register_gdbarch_data.
646 (init_regcache_descr, init_legacy_regcache_descr): Use
647 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
648
649 * remote.c (free_remote_state): Delete function.
650 (_initialize_remote): Update register_gdbarch_data.
651 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
652 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
653
654 2003-08-04 Andrew Cagney <cagney@redhat.com>
655
656 * reggroups.c (struct reggroup_el): Define.
657 (struct reggroups): Delete field "nr_group". Replace array
658 "group" with a "first" to "last" linked list.
659 (reggroups_init): Update. Allocate using gdbarch's obstack.
660 (reggroups_free): Delete function.
661 (add_group): Update. Add "el" parameter.
662 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
663 (default_groups): Update.
664 (reggroup_next): Replace reggroups.
665 (reggroups_dump): Update.
666 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
667 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
668 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
669
670 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
671
672 * Makefile.in (tui-interp.o): Update dependencies.
673
674 2003-08-04 David Carlton <carlton@kealia.com>
675
676 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
677 to internal_error call.
678 * source.c (forward_search_command): Add "%s" format argument.
679 (reverse_search_command): Ditto.
680 * top.c (quit_confirm): Ditto.
681 * cli/cli-setshow.c (do_setshow_command): Ditto.
682 * cp-valprint.c (cp_print_class_method): Replace
683 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
684 (cp_print_class_member): Ditto.
685 * event-top.c (command_line_handler): Ditto.
686 * linux-proc.c (linux_info_proc_cmd): Ditto.
687 * p-typeprint.c (pascal_type_print_base): Ditto.
688 * p-valprint.c (pascal_object_print_class_method): Ditto.
689 (pascal_object_print_class_member): Ditto.
690 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
691 * remote.c (remote_cisco_section_offsets): Ditto.
692 * top.c (command_line_input): Ditto.
693 * utils.c (vwarning,error_stream,quit): Ditto.
694 * valprint.c (print_floating,print_binary_chars)
695 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
696
697 2003-08-04 Andrew Cagney <cagney@redhat.com>
698
699 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
700
701 2003-08-02 Andrew Cagney <cagney@redhat.com>
702
703 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
704 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
705 amd64fbsd-nat.c.
706
707 2003-08-02 Andrew Cagney <cagney@redhat.com>
708
709 * Makefile.in: Update all dependencies and definitions.
710
711 2003-08-02 Adam Fedor <fedor@gnu.org>
712
713 * linespec.c (is_objc_method_format): New function
714 (decode_line_1, locate_first_half): Use it.
715 Fixes PR objc/1298
716
717 2003-08-01 Andrew Cagney <cagney@redhat.com>
718
719 * NEWS: Mention that m32r is multi-arch.
720 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
721 * configure.tgt: Recognize m32r-*-*.
722 * config/m32r/tm-m32r.h: Delete file.
723 * config/m32r/m32r.mt: New file.
724 * m32r-rom.c (m32r_upload_command): Use hostent only when
725 gethostname succeeds, in order to avoid a compilation
726 warning.
727 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
728 compiler warning.
729
730 2003-08-01 Michael Snyder <msnyder@redhat.com>
731
732 * sh-tdep.c (sh_frame_align): New gdbarch method.
733 (sh_gdbarch_init): Set up frame_align method.
734
735 2003-07-31 Michael Snyder <msnyder@redhat.com>
736
737 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
738 which is already covered by the new frames infrastructure.
739
740 2003-07-31 Andrew Cagney <cagney@redhat.com>
741
742 * user-regs.c (struct user_reg): Add "next" link.
743 (struct user_regs): Replace "user" with "first" and "last" links.
744 (append_user_reg): Add pre-allocated "reg" parameter.
745 (builtin_user_regs): Provide initial value for "last".
746 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
747 (user_regs_init): Allocate memory from the gdbarch obstack.
748 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
749 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
750 linked list.
751 (usernum_to_user_reg): New function.
752 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
753 (value_of_user_reg): Use usernum_to_user_reg.
754 (user_regs_free): Delete function.
755 (_initialize_user_regs): Update register_gdbarch_data call.
756
757 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
758
759 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
760
761 2003-07-30 Michael Snyder <msnyder@redhat.com>
762
763 * value.h (value_being_returned): Add a struct_addr argument.
764 * infcall.c (call_function_by_hand): Pass struct_addr to
765 value_being_returned.
766 * infcmd.c (print_return_value): Pass zero as struct_addr.
767 * values.c (value_being_returned): If struct_addr is passed,
768 use it instead of trying to recover it from the inferior.
769
770 2003-07-30 Kevin Buettner <kevinb@redhat.com>
771
772 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
773 the prologue analyzer won't need to attempt to extract the pc
774 value from the woefully incomplete dummy frame.
775 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
776 possible. Disable code which modifies the frame.
777
778 2003-07-28 Andrew Cagney <cagney@redhat.com>
779
780 * annotate.c (annotate_breakpoints_headers): Restrict annotation
781 to level 2.
782 (annotate_breakpoints_table, annotate_record): Ditto.
783 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
784 (annotate_field_name_end, annotate_field_value): Ditto.
785 (annotate_field_end, annotate_frame_source_begin): Ditto.
786 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
787 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
788 (annotate_frame_begin, annotate_frame_function_name): Ditto.
789 (annotate_frame_address_end, annotate_frame_address): Ditto.
790 (annotate_frame_args, annotate_frame_end): Ditto.
791 (annotate_frame_where, annotate_arg_begin): Ditto.
792 (annotate_arg_name_end, annotate_arg_value): Ditto.
793 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
794 (annotate_function_call, annotate_signal_name): Ditto.
795 (annotate_signal_string, annotate_signal_name_end): Ditto.
796 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
797 (annotate_value_begin, annotate_value_history_value): Ditto.
798 (annotate_value_history_end, annotate_value_end): Ditto.
799 (annotate_display_begin, annotate_display_number_end): Ditto.
800 (annotate_display_format, annotate_display_expression): Ditto.
801 (annotate_display_expression_end, annotate_display_value): Ditto.
802 (annotate_display_end, annotate_array_section_begin): Ditto.
803 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
804 (annotate_elt, annotate_array_section_end): Ditto.
805
806 2003-07-28 Andrew Cagney <cagney@redhat.com>
807
808 * regcache.c (struct regcache_descr): Update comments on
809 nr_raw_registers.
810 (init_legacy_regcache_descr): Don't set nr_raw_registers or
811 sizeof_raw_register_valid_p.
812 (init_regcache_descr): Set nr_raw_registers and
813 sizeof_raw_register_valid_p before calling
814 init_legacy_regcache_descr.
815
816 2003-07-28 Andrew Cagney <cagney@redhat.com>
817
818 * mips-tdep.c (print_gp_register_row): Print the GPR's register
819 MOD NUM_REGS.
820
821 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
822
823 * thread.c (info_threads_command): Use get_selected_frame ().
824 Check that there is at least one non-sentinel frame.
825
826 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
827
828 * m68hc11-tdep.c (struct frame_extra_info): Remove.
829 (m68hc11_pop_frame): Remove.
830 (m68hc11_frame_saved_pc): Remove.
831 (m68hc11_frame_chain): Remove.
832 (m68hc11_frame_init_saved_regs): Remove.
833 (m68hc11_init_extra_frame_info): Remove.
834 (m68hc11_store_struct_return): Remove.
835 (m68hc11_saved_pc_after_call): Remove.
836
837 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
838
839 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
840 frame unwind information.
841 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
842 and adapted for frame unwinding.
843 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
844 (m68hc11_unwind_pc): New function.
845 (m68hc11_frame_unwind_cache): New function to analyze frames.
846 (m68hc11_frame_this_id): New function to create new frame struct.
847 (m68hc11_frame_prev_register): New function to unwind a register from
848 the frame.
849 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
850 (m68hc11_frame_p): New function for the above.
851 (m68hc11_frame_base_address): New function to return fp of frame.
852 (m68hc11_frame_args_address): Update for frame.
853 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
854 (m68hc11_unwind_sp): New function.
855 (m68hc11_unwind_dummy_id): New function.
856 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
857 calls.
858
859 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
860
861 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
862 (m68hc11_guess_from_prologue): Advance the pc and frame size only
863 when we are beyond the current pc.
864
865 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
866
867 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
868 from m68hc11_push_arguments.
869 (m68hc11_push_arguments): Remove.
870 (m68hc11_push_return_address): Remove.
871 (m68hc11_gdbarch_init): Install the above; remove above deprecated
872 handlers; remove deprecated_extra_stack_alignment_needed.
873
874 2003-07-27 Andrew Cagney <cagney@redhat.com>
875
876 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
877 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
878 REAL_PC and not the pointer.
879 * hppa-hpux-tdep.c: Include frame.h
880
881 2003-07-27 Andrew Cagney <cagney@redhat.com>
882
883 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
884 GDB_MULTI_ACH_PARTIAL.
885
886 2003-07-27 Andrew Cagney <cagney@redhat.com>
887
888 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
889 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
890 operator at start and not end of line.
891 (decode_prologue): Ditto.
892 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
893 frame_unwind_register_unsigned instead of
894 frame_unwind_unsigned_register.
895 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
896 read_register.
897 (m32r_push_dummy_call): Use register_size instead of
898 REGISTER_RAW_SIZE.
899 (m32r_frame_sniffer): Replace m32r_frame_p.
900 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
901 * m32r-rom.c (report_transfer_performance): Delete extern
902 declaration.
903 (m32r_load, m32r_upload_command): Use print_transfer_performance
904 instead of report_transfer_performance.
905 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
906 / add_show_from_set.
907
908 2003-07-26 Andrew Cagney <cagney@redhat.com>
909
910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
911 store_return_value and extract_struct_value_address.
912
913 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
914
915 PR c++/1267
916 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
917 NULL, default to the section containing PC.
918
919 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
920
921 * NEWS: Mention "regs" deprecated for m68hc11 too.
922
923 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
924 (m68hc11_print_register): New function to print out one register.
925 (m68hc11_print_registers_info): New function to print registers.
926 (show_regs): Deprecate and use the above.
927 (m68hc11_gdbarch_init): Install the print_registers_info.
928
929 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
930
931 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
932 that we have a SIGTRAP before returning non-zero.
933
934 2003-07-23 Michal Ludvig <mludvig@suse.cz>
935 Elena Zannoni <ezannoni@redhat.com>
936
937 * linespec.c (decode_line_2): Avoid crash if
938 find_function_start_sal() returns empty record.
939
940 2003-07-23 Andreas Schwab <schwab@suse.de>
941
942 * ia64-tdep.c (ia64_print_insn): New function.
943 (ia64_gdbarch_init): Set print_insn to it.
944 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
945 deprecated_tm_print_insn_info.
946
947 2003-07-22 Michael Snyder <msnyder@redhat.com>
948
949 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
950 handle 8-bit returns (long long).
951 (h8300h_extract_return_value): Ditto.
952 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
953
954 2003-07-22 Andrew Cagney <cagney@redhat.com>
955
956 * gdbarch.c Include "gdb_obstack.h".
957 (struct gdbarch): Add an "obstack".
958 (alloc_gdbarch_data): Allocate the gdbarch data using
959 GDBARCH_OBSTACK_CALLOC.
960 (free_gdbarch_data): Delete function.
961 (gdbarch_obstack_zalloc): New function.
962 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
963 Assert that the architecture is not initialized.
964 (gdbarch_alloc): Allocate an obstack, allocate the architecture
965 vector from the obstack.
966 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
967 architecture obstack.
968 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
969 (set_gdbarch_data): Assert that the data is not initialized.
970 (struct gdbarch_data): Delete member "free".
971 (register_gdbarch_data): Do not initialize "free".
972 * gdbarch.h, gdbarch.c: Re-generate.
973
974 2003-07-22 Andrew Cagney <cagney@redhat.com>
975
976 * configure.in (build_warnings): Add -Wformat-nonliteral.
977 * configure: Re-generate.
978
979 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
980
981 * dwarf2loc.c (locexpr_describe_location): Fix typos.
982
983 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
984
985 * findvar.c (read_var_value): Remove case for thread local storage
986 variables. It is now entirely handled by the dwarf2 location
987 expression code.
988 * printcmd.c (address_info): Ditto.
989 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
990 enumeration value.
991 (struct symbol): Remove objfile field, which was used by
992 LOC_THREAD_LOCAL_STATIC only.
993 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
994 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
995 usage of objfile pointer.
996 * dwarf2loc.c (locexpr_describe_location): Add case to handle
997 thread local variables.
998 Add include of objfiles.h.
999 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1000 storage variables.
1001 * Makefile.in (dwarf2loc.o): Update dependencies.
1002
1003 2003-07-22 Andrew Cagney <cagney@redhat.com>
1004
1005 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1006 get_frame_base.
1007 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1008 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1009 (struct value): Add opaque declaration.
1010 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1011
1012 2003-07-21 Andrew Cagney <cagney@redhat.com>
1013
1014 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1015 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1016
1017 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1018
1019 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1020 regcache_cooked_read_unsigned instead of read_register.
1021 (m68hc11_saved_pc_after_call): Likewise.
1022 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1023 instead of write_register.
1024 (m68hc11_register_type): New function.
1025 (m68hc11_register_virtual_type): Remove.
1026 (m68hc11_store_return_value): Convert to use the regcache.
1027 (m68hc11_extract_struct_value_address): Likewise.
1028 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1029 m68hc11_register_type; undeprecate store_return_value and
1030 extract_struct_value_address.
1031
1032 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1033
1034 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1035 and translate to use regcache.
1036 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1037
1038 2003-07-18 Andrew Cagney <cagney@redhat.com>
1039
1040 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1041 * gdbarch.h, gdbarch.c: Re-generate.
1042 * i386-tdep.c (i386_gdbarch_init): Do not set
1043 DWARF2_BUILD_FRAME_INFO.
1044 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1045 unconditionally.
1046 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1047 DWARF2_BUILD_FRAME_INFO.
1048
1049 2003-07-18 Andrew Cagney <cagney@redhat.com>
1050
1051 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1052 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1053
1054 2003-07-18 Andrew Cagney <cagney@redhat.com>
1055
1056 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1057 frame_unwind_address_in_block, instead of frame_pc_unwind.
1058 (dwarf2_frame_cache): Ditto.
1059
1060 2003-07-18 Andrew Cagney <cagney@redhat.com>
1061
1062 * user-regs.h (struct gdbarch): Declare opaque.
1063 * ui-out.h (struct ui_file): Declare opaque.
1064 * dwarf2-frame.h (struct frame_info): Declare opaque.
1065
1066 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1067
1068 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1069 #include "...".
1070 (procfs_meminfo): Change strerror to safe_strerror.
1071 (procfs_can_run): Remove K&R badness.
1072
1073 2003-07-17 Michael Snyder <msnyder@redhat.com>
1074
1075 * remote-sim.c: Comment typo fix.
1076
1077 2003-07-17 Andrew Cagney <cagney@redhat.com>
1078
1079 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1080 configure.
1081 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1082 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1083 GDB_MULTI_ARCH_PARTIAL.
1084
1085 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1086
1087 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1088 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1089 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1090
1091 2003-07-16 Theodore A. Roth <troth@openavr.org>
1092
1093 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1094 found.
1095 (avr_frame_unwind_cache): Don't unwind FP for main.
1096 Update a comment.
1097 Save the computed prev_sp.
1098 (avr_saved_regs_unwinder): Remove function.
1099 (avr_frame_prev_register): Use PC unwind logic from
1100 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1101
1102 2003-07-16 Andrew Cagney <cagney@redhat.com>
1103
1104 * frame-base.h (frame_base_p_ftype): Delete definition.
1105 (frame_base_append_predicate): Delete declaration.
1106 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1107 (frame_unwind_append_predicate): Delete declaration.
1108 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1109 (append_predicate): Delete parameter "p".
1110 (frame_unwind_append_predicate): Delete function.
1111 (frame_unwind_append_sniffer): Update call to append_predicate.
1112 (frame_unwind_free): Delete function.
1113 (_initialize_frame_unwind): Pass NULL as "free" to
1114 register_gdbarch_data.
1115 (frame_unwind_init): Append the dummy_frame_sniffer.
1116 (frame_unwind_find_by_frame): Simplify.
1117 * frame-base.c (struct frame_base_table): Delete field "p".
1118 (append_predicate): Delete parameter "p".
1119 (frame_base_append_predicate): Delete function.
1120 (frame_base_append_sniffer): Update call to append_predicate.
1121 (frame_base_free): Delete function.
1122 (frame_base_find_by_frame): Simplify.
1123 (_initialize_frame_base): Pass NULL as "free" to
1124 register_gdbarch_data.
1125 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1126 (x86_64_sigtramp_frame_sniffer): Replace
1127 "x86_64_sigtramp_frame_p".
1128 (x86_64_init_abi): Set the frame unwind sniffers.
1129 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1130 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1131 (m68k_gdbarch_init): Set the frame unwind sniffers.
1132 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1133 "i386_sigtramp_frame_p".
1134 (i386_frame_sniffer): Replace "i386_frame_p".
1135 (i386_gdbarch_init): Set the frame unwind sniffers.
1136 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1137 (avr_gdbarch_init): Set the frame unwind sniffers.
1138 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1139 "alpha_sigtramp_frame_p"
1140 (alpha_heuristic_frame_sniffer): Replace
1141 "alpha_heuristic_frame_p".
1142 (alpha_gdbarch_init): Set the frame unwind sniffers.
1143 (alpha_dwarf2_init_abi): Ditto.
1144 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1145 "alpha_debug_frame_p".
1146 (alpha_mdebug_frame_base_sniffer): Replace
1147 "alpha_mdebug_frame_base_p".
1148 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1149 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1150 (d10v_gdbarch_init): Set the frame unwind sniffer.
1151 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1152 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1153 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1154 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1155 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1156 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1157
1158 2003-07-16 Michael Snyder <msnyder@redhat.com>
1159
1160 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1161 should go thru sh_dsp_register_sim_regno, else the dsp regs
1162 will not get the right values.
1163
1164 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1165
1166 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1167 deprecated_store_floating by call to store_typed_floating.
1168 (sh_sh4_register_convert_to_raw): Substitute call to
1169 deprecated_extract_floating by call to extract_typed_floating.
1170
1171 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1172
1173 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1174
1175 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1176
1177 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1178 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1179 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1180 as possible.
1181 (do_pseudo_register): Remove.
1182 (sh_push_dummy_code): New function.
1183 (sh64_store_struct_return): Rename from sh_store_struct_return.
1184 Only called for sh64 now.
1185 (sh_extract_struct_value_address): Regcache'ify.
1186 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1187 and accomodate new tasks.
1188 (sh64_push_return_address): Rename from sh_push_return_address.
1189 Only called for sh64 now.
1190 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1191 Regcache'ify.
1192 (sh3e_sh4_extract_return_value): Regcache'ify.
1193 (sh_default_store_return_value): Ditto.
1194 (sh3e_sh4_store_return_value): Ditto.
1195 (sh_default_register_byte): Remove.
1196 (sh_sh4_register_byte): Remove.
1197 (sh_default_register_raw_size): Remove.
1198 (sh_sh4_register_raw_size): Remove.
1199 (sh_register_virtual_size): Remove.
1200 (sh_sh3e_register_virtual_type): Remove.
1201 (sh_sh3e_register_type): New function.
1202 (sh_sh4_register_virtual_type): Remove.
1203 (sh_sh4_register_type): New function.
1204 (sh_default_register_virtual_type): Remove.
1205 (sh_default_register_type): New function.
1206 (do_fv_register_info): Add parameters to accomodate call from
1207 sh_print_registers_info.
1208 (do_dr_register_info): Ditto.
1209 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1210 Add parameters to accomodate call from sh_print_registers_info.
1211 (sh_do_fp_register): Ditto.
1212 (sh64_do_pseudo_register): Call do_dr_register_info,
1213 do_fv_register_info and sh_do_fp_register with default parameters.
1214 (sh_do_register): Add parameters to accomodate call from
1215 sh_print_registers_info.
1216 (sh_print_register): Ditto.
1217 (sh_print_registers_info): Rename from sh_do_registers_info.
1218 Add parameters to be used as gdbarch_print_registers_info
1219 implementation. Accomodate removed do_pseudo_register function
1220 pointer.
1221 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1222 function pointer. Call sh_print_register with default parameters.
1223 (sh64_do_registers_info): Call sh_print_registers_info instead of
1224 sh_do_registers_info.
1225 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1226 detection of deprecated vs. non-deprecated functionality.
1227 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1228 function pointer assignments by direct function calls.
1229
1230 2003-07-15 Andrew Cagney <cagney@redhat.com>
1231
1232 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1233 (frame_register_unwind, create_new_frame): Ditto.
1234 (legacy_get_prev_frame, get_frame_type): Ditto.
1235 (get_frame_base_address): Use frame_base_find_by_frame.
1236 (get_frame_locals_address): Use frame_base_find_by_frame.
1237 (get_frame_args_address): Use frame_base_find_by_frame.
1238 * frame-base.h (frame_base_sniffer_ftype): Declare.
1239 (frame_base_append_sniffer): Declare.
1240 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1241 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1242 (frame_base_append_sniffer): New function.
1243 (frame_base_append_predicate): Add a NULL sniffer.
1244 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1245 (struct frame_base_table): Add "sniffer".
1246 (frame_base_free): Free the "sniffer" table.
1247 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1248 (frame_unwind_append_sniffer): Declare.
1249 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1250 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1251 (struct frame_unwind_table): Add "sniffer", delete "middle".
1252 (append_predicate): Add "sniffer" parameter, append the sniffer.
1253 (frame_unwind_init): Update append_predicate call.
1254 (frame_unwind_append_sniffer): New function.
1255 (frame_unwind_append_predicate): Update append_predicate call.
1256 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1257
1258 2003-07-15 Andrew Cagney <cagney@redhat.com>
1259
1260 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1261 before code inhibiting repeated unwind attempts. Add to
1262 commentary on that test's problems.
1263 * blockframe.c (inside_main_func): Look for "main" in the minimal
1264 symbol table.
1265 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1266 identical.
1267
1268 2003-07-15 Andrew Cagney <cagney@redhat.com>
1269
1270 * complaints.c (struct explanation): Define.
1271 (struct complaints): Change type of "explanation" to "struct
1272 explanation".
1273 (symfile_explanations): Convert to a "struct explanation" table.
1274 (vcomplaint): Update.
1275
1276 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1277
1278 * x86-64-linux-nat.c (regmap): Removed.
1279 (supply_gregset, fill_gregset): Call
1280 x86_64_linux_(fill,supply)_gregset functions.
1281 * x86-64-linux-tdep.c (USER_*): New defines.
1282 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1283 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1284 New functions.
1285 (fetch_core_registers): Ditto.
1286 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1287 * x86-64-linux-tdep.h: New file.
1288 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1289 and core-regset.o.
1290 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1291
1292 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1293
1294 * x86-64-tdep.c (x86_64_store_return_value): Use
1295 regcache_cooked_write_part instead of regcache_cooked_write.
1296
1297 * configure.host: Add x86_64-*-freebsd*.
1298 * configure.tgt: Add x86_64-*-freebsd*.
1299 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1300 * amd64fbsd-nat.c: New file.
1301 * amd64fbsd-tdep.c: New file.
1302 * config/i386/nm-fbsd64.h: New file.
1303 * config/i386/fbsd64.mh: New file.
1304 * config/i386/fbsd64.mt: New file.
1305
1306 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1307
1308 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1309 `sc_regs_offset' and `sc_fpregs_offset'.
1310 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1311 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1312 (alpha_sigtramp_register_address): Rewrite to use new members of
1313 `struct gdbarch_tdep'.
1314 (alpha_gdbarch_init): Initialize new members of struct
1315 gdbarch_tdep'.
1316 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1317 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1318 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1319 (alphafbsd_pc_in_sigtramp): Implement.
1320 (alphafbsd_sigtramp_offset): New function.
1321 (alphafbsd_sigcontext_addr): New function.
1322 (alphafbsd_init_abi): Initialize signal trampoline related members
1323 of `struct gdbarch_tdep'.
1324 (_initialize_alphafbsd_tdep): Add prototype.
1325
1326 2003-07-11 Theodore A. Roth <troth@openavr.org>
1327
1328 * Makefile.in (install-only): Quote sed expression when generating
1329 transformed_name.
1330
1331 2003-07-11 Richard Henderson <rth@redhat.com>
1332
1333 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1334 * dwarf2-frame.c: Include complaints.h.
1335 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1336 variable initialization; return NULL on error.
1337 (decode_frame_entry): New.
1338
1339 2003-07-11 Andrew Cagney <cagney@redhat.com>
1340
1341 * frame.h (frame_address_in_block): Delete declaration.
1342 * blockframe.c (frame_address_in_block): Delete function.
1343 (get_frame_block): Use get_frame_address_in_block.
1344 (block_innermost_frame): Ditto.
1345 * stack.c (print_frame, backtrace_command_1): Ditto.
1346
1347 * frame.h (get_frame_address_in_block): Declare.
1348 (frame_unwind_address_in_block): Declare.
1349 * frame.c (frame_unwind_address_in_block): New function.
1350 (get_frame_address_in_block): New function.
1351
1352 2003-07-10 Andrew Cagney <cagney@redhat.com>
1353
1354 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1355 pre-default. Note: re-generate has no effect.
1356
1357 2003-07-10 Andrew Cagney <cagney@redhat.com>
1358
1359 * gdbarch.sh: When a variable, but not a function, compare against
1360 0. Fix problem in previous patch.
1361 * gdbarch.c: Re-generate.
1362
1363 2003-07-10 Andrew Cagney <cagney@redhat.com>
1364
1365 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1366 functions against NULL, not 0.
1367 * gdbarch.c: Re-generate.
1368
1369 2003-07-10 Fred Fish <fnf@ninemoons.com>
1370
1371 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1372 null string instead of a null pointer.
1373 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1374
1375 2003-07-09 Michael Snyder <msnyder@redhat.com>
1376
1377 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1378
1379 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1380
1381 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1382 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1383 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1384 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1385 * x86-64-tdep.c: ... from here.
1386
1387 2003-07-09 Andreas Schwab <schwab@suse.de>
1388
1389 * m68k-tdep.h (enum struct_return): Define.
1390 (struct gdbarch_tdep): Add struct_return.
1391 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1392 bytes are padded to the right, not to the left. Pass struct value
1393 address in register %a1, not on stack.
1394 (m68k_use_struct_convention): New function.
1395 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1396 struct_return in tdep to pcc_struct_return.
1397 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1398 reg_struct_return.
1399
1400 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1401
1402 * somread.c (som_symfile_offsets): Fix compilation error.
1403
1404 2003-07-09 Andrew Cagney <cagney@redhat.com>
1405
1406 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1407 Add comments about the checks.
1408
1409 2003-07-08 Andrew Cagney <cagney@redhat.com>
1410
1411 * Makefile.in: Make dependency section headers consistent.
1412 (config_h): Move to $BUILD headers section.
1413 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1414 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1415 (ada-exp.tab.c): Move to YACC/LEX section.
1416 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1417 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1418
1419 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1420
1421 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1422 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1423 of strerror with safe_strerror, use ISO C function definitions,
1424 and replace instances of sprintf with snprintf.
1425
1426 2003-07-07 Andrew Cagney <cagney@redhat.com>
1427
1428 * frame.c (get_prev_frame): Enable check for identical frames.
1429 Update comments. Update error messages.
1430
1431 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1432
1433 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1434
1435 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1436
1437 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1438 sort_symtab_syms, no longer necessary.
1439
1440 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1441
1442 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1443
1444 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1445
1446 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1447 (mips_register_byte): Likewise.
1448
1449 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1450
1451 * Makefile.in (sparc_tdep_h): New.
1452 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1453 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1454 * sparc-linux-nat.c: Include "sparc-tdep.h".
1455 * sparc-nat.c: Likewise.
1456 * sparc-tdep.c: Likewise.
1457 * sparc64nbsd-nat.c: Likewise.
1458 * sparcnbsd-nat.c: Likewise.
1459 * sparcnbsd-tdep.c: Likewise.
1460 * sparc-tdep.h: New file.
1461 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1462 and sparc_npc_regnum.
1463
1464 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1465
1466 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1467 (mips_linux_cannot_store_register): List supported instead of
1468 unsupported registers.
1469
1470 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1471
1472 * disasm.c (dump_insns): Separate instructions from addresses.
1473
1474 2003-07-07 Andreas Schwab <schwab@suse.de>
1475
1476 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1477 dependencies.
1478 * m68k-tdep.c (NUM_FREGS): Delete.
1479 (SIG_PC_FP_OFFSET): Delete.
1480 (TARGET_M68K): Delete.
1481 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1482 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1483 P_MOVEL_SP, P_MOVEML_SP): Define.
1484 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1485 P_TRAP): Delete.
1486 (m68k_register_raw_size): Delete.
1487 (m68k_register_virtual_size): Delete.
1488 (m68k_register_type): Renamed from m68k_register_virtual_type and
1489 add gdbarch argument.
1490 (m68k_store_struct_return): Delete.
1491 (m68k_deprecated_extract_return_value): Delete.
1492 (m68k_deprecated_extract_struct_value_address): Delete.
1493 (m68k_frame_chain): Delete.
1494 (m68k_frame_saved_pc): Delete.
1495 (m68k_fix_call_dummy): Delete.
1496 (m68k_push_dummy_frame): Delete.
1497 (m68k_pop_frame): Delete.
1498 (m68k_extract_return_value): New function.
1499 (m68k_store_return_value): Rewrite using regcache.
1500 (m68k_extract_struct_value_address): Rewrite using regcache.
1501 (m68k_push_dummy_call): New function.
1502 (struct m68k_frame_cache): Define.
1503 (m68k_alloc_frame_cache): New function.
1504 (m68k_analyze_frame_setup): New function.
1505 (m68k_analyze_register_saves): New function.
1506 (m68k_analyze_prologue): New function.
1507 (m68k_skip_prologue): Rewrite using above functions.
1508 (m68k_unwind_pc): New function.
1509 (m68k_frame_cache): New function.
1510 (m68k_frame_this_id): New function.
1511 (m68k_frame_prev_register): New function.
1512 (m68k_frame_unwind): New variable.
1513 (m68k_frame_p): New function.
1514 (m68k_sigtramp_frame_cache): New function.
1515 (m68k_sigtramp_frame_this_id): New function.
1516 (m68k_sigtramp_frame_prev_register): New function.
1517 (m68k_sigtramp_frame_unwind): New variable.
1518 (m68k_sigtramp_frame_p): New function.
1519 (m68k_frame_base_address): New function.
1520 (m68k_frame_base): New function.
1521 (m68k_unwind_dummy_id): New function.
1522 (fill_gregset): Use regcache_collect.
1523 (fill_fpregset): Likewise.
1524 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1525 defined.
1526 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1527 deprecated_init_frame_pc, deprecated_store_struct_return,
1528 deprecated_extract_return_value, deprecated_store_return_value,
1529 deprecated_frame_chain, deprecated_frame_saved_pc,
1530 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1531 deprecated_register_virtual_size,
1532 deprecated_max_register_raw_size,
1533 deprecated_max_register_virtual_size,
1534 deprecated_register_virtual_type, deprecated_register_size,
1535 deprecated_register_byte, deprecated_register_bytes,
1536 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1537 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1538 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1539 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1540 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1541 deprecated_push_dummy_frame, deprecated_pop_frame,
1542 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1543 only if SYSCALL_TRAP is defined. Set extract_return_value,
1544 store_return_value, extract_struct_value_address, register_type,
1545 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1546 predicates.
1547 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1548 M68K_MAX_REGISTER_SIZE): Define.
1549 (struct m68k_sigtramp_info): Define.
1550 (struct gdbarch_tdep): Add get_sigtramp_info.
1551 * m68klinux-nat.c (fetch_register): Use register_size instead of
1552 REGISTER_RAW_SIZE. Don't put assignment in if.
1553 (store_register): Likewise.
1554 (fetch_inferior_registers): Likewise.
1555 (store_inferior_registers): Likewise.
1556 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1557 (m68k_linux_frame_saved_pc): Delete.
1558 (m68k_linux_sigcontext_reg_offset,
1559 m68k_linux_ucontext_reg_offset): Define.
1560 (m68k_linux_get_sigtramp_info): New function.
1561 (m68k_linux_extract_return_value): Rewrite using regcache.
1562 (m68k_linux_store_return_value): Likewise.
1563 (m68k_linux_extract_struct_value_address): Likewise.
1564 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1565 Don't set deprecated_frame_saved_pc,
1566 deprecated_extract_return_value, deprecated_store_return_value,
1567 deprecated_extract_struct_value_address. Set
1568 extract_return_value, store_return_value,
1569 extract_struct_value_address.
1570
1571 2003-07-07 Andrew Cagney <cagney@redhat.com>
1572
1573 * expprint.c: Include "user-regs.h" instead of "frame.h".
1574 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1575 frame_map_regnum_to_name.
1576 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1577 (frame_map_name_to_regnum): Simplify, call
1578 user_reg_map_name_to_regnum.
1579 (frame_map_regnum_to_name): Simplify, call
1580 user_reg_map_regnum_to_name.
1581 (frame_register_unwind): Update.
1582 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1583 (_initialize_frame_reg): Call user_reg_add_builtin.
1584 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1585 (value_of_register): Use value_of_user_reg.
1586 * eval.c (evaluate_subexp_standard): Update.
1587 * parse.c (write_dollar_variable): Update.
1588 * d10v-tdep.c (d10v_print_registers_info): Update.
1589 * infcmd.c (registers_info): Update.
1590 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1591 (builtin_regs_h): Delete macro.
1592 (user_regs_h): Define.
1593 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1594 (builtin-regs.o): Delete target.
1595 (user-regs.o): Specify dependencies.
1596 (expprint.o): Update dependencies.
1597 (findvar.o): Update dependencies.
1598 (frame.o): Update dependencies.
1599 (std-regs.o): Update dependencies.
1600
1601 2003-07-06 Christopher Faylor <cgf@redhat.com>
1602
1603 * win32-nat.c (solib_symbols_add): Use one variable for all section
1604 address stuff. Pass variable rather than address of variable to
1605 safe_symbol_file_add.
1606
1607 2003-07-06 Andreas Schwab <schwab@suse.de>
1608
1609 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1610
1611 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1612
1613 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1614
1615 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1616
1617 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1618
1619 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1620
1621 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1622 * config/i386/nto.mh: New file.
1623 * config/i386/nm-nto.h: New file.
1624 * configure.host: Add i[3456]86-*-nto*.
1625
1626 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1627
1628 * remote-vx.c (vx_add_symbols): Fix compilation error.
1629
1630 2003-07-03 Andrew Cagney <cagney@redhat.com>
1631
1632 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1633 * gdbarch.h, gdbarch.c: Re-generate.
1634 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1635 (legacy_register_name): Declare.
1636 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1637 (REGISTER_NAME): Define.
1638 * sparc-tdep.c (legacy_register_name): New function.
1639 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1640 (REGISTER_NAME): Define.
1641 (hppa64_register_name): Declare.
1642 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1643 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1644 (hppa64_register_name): New function.
1645 (hppa_register_name): New function.
1646 * arch-utils.c (legacy_register_name): Delete.
1647 * arch-utils.h (legacy_register_name): Delete.
1648
1649 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1650
1651 * cli/cli-interp.c (cli_interpreter_resume): Update the
1652 cli_uiout's stream to gdb_stdout.
1653
1654 2003-07-03 Andrew Cagney <cagney@redhat.com>
1655
1656 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1657 predicate.
1658 * gdbarch.h, gdbarch.c: Re-generate.
1659 * regcache.c (init_regcache_descr): Use legacy code when either
1660 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1661
1662 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1663
1664 * NEWS: Move "set logging" entry into GDB 6.0 section.
1665
1666 2003-07-02 Jim Blandy <jimb@redhat.com>
1667
1668 * s390-tdep.c (struct frame_extra_info): new member:
1669 'stack_bought_valid'.
1670 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1671 initialize fextra_info->stack_bought.
1672 (s390_frameless_function_invocation): Don't trust the value of
1673 fextra_info_ptr->stack_bought unless
1674 fextra_info->stack_bought_valid is set.
1675
1676 New S390 prologue analyzer.
1677 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1678 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1679 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1680 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1681 compute_x_addr, s390_on_stack, s390_store,
1682 s390_get_signal_frame_info): New functions.
1683 (S390_NUM_SPILL_SLOTS): New macro.
1684 (s390_get_frame_info): Rewritten.
1685 (is_arg_reg): Deleted.
1686
1687 Break out the decoding of S/390 instructions into separate
1688 functions, to make it more legible, and easier to check
1689 against the spec.
1690 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1691 is_rx, is_rxe): New functions.
1692 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1693 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1694 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1695 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1696 enums for opcode values. (Is this an improvement?)
1697
1698 2003-07-02 Andrew Cagney <cagney@redhat.com>
1699
1700 * i386-tdep.c: Revert change committed as part of trad-frame code
1701 below.
1702
1703 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1704
1705 * breakpoint.c (insert_catchpoint): Make static.
1706
1707 2003-07-02 Andreas Schwab <schwab@suse.de>
1708
1709 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1710 former ia64_push_arguments and ia64_push_return_address, and use
1711 regcache functions instead of read/write_register.
1712 (ia64_gdbarch_init): Set push_dummy_call instead of
1713 deprecated_push_arguments and deprecated_push_return_address.
1714
1715 2003-07-01 Andreas Jaeger <aj@suse.de>
1716
1717 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1718 before the call.
1719 Set %rax only to number of SSE registers used.
1720
1721 2003-07-01 Andrew Cagney <cagney@redhat.com>
1722
1723 * trad-frame.h: Update comments, a -1 .addr is reserved.
1724 (trad_frame_value_p, trad_frame_addr_p): Declare.
1725 (trad_frame_reg_p): Declare.
1726 (trad_frame_set_value): Rename trad_frame_register_value.
1727 (trad_frame_set_unknown): Declare.
1728 * trad-frame.c (trad_frame_realreg_p): New function.
1729 (trad_frame_addr_p, trad_frame_value_p): New function.
1730 (trad_frame_set_unknown): New function.
1731 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1732 (trad_frame_prev_register): Use trad_frame_realreg_p,
1733 trad_frame_addr_p and trad_frame_value_p.
1734 (trad_frame_set_value): Rename trad_frame_register_value.
1735 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1736 and trad_frame_set_value.
1737
1738 2003-06-30 Jim Blandy <jimb@redhat.com>
1739
1740 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1741 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1742 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1743 for 16 registers, and then 32 more bytes.
1744 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1745 New macros.
1746 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1747 Move up in the file, since it's now used by is_simple_arg.
1748 (is_simple_arg): Don't assume registers are four bytes long.
1749 Exclude all double arguments. Extended floats are not simple
1750 args.
1751 (is_power_of_two): New function.
1752 (pass_by_copy_ref): Call is_power_of_two, and check that the
1753 length fits in a register, rather than listing all the acceptable
1754 sizes. Extended floats are not passed by reference.
1755 (s390_push_arguments): Don't assume registers are four bytes long.
1756 Reserve an argument register to point to the buffer for structures
1757 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1758 S390_STACK_FRAME_OVERHEAD.
1759
1760 2003-06-30 Andreas Schwab <schwab@suse.de>
1761
1762 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1763 format error message.
1764
1765 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1766
1767 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1768
1769 2003-06-30 David Carlton <carlton@kealia.com>
1770
1771 Band-aid for PR c++/1245.
1772 * Makefile.in (cp-support.o): Depend on complaints_h.
1773 * cp-support.c: Include complaints.h. Add declaration for
1774 find_last_component.
1775 (cp_find_first_component): Separate code into
1776 cp_find_first_component_aux.
1777 (cp_find_first_component_aux): Call demangled_name_complaint.
1778 (demangled_name_complaint): New.
1779
1780 2003-06-30 Andrew Cagney <cagney@redhat.com>
1781
1782 * remote.c (remote_write_bytes): Explicitly compute and then use
1783 the payload size. Update comments to reflect. Fixes problem of
1784 GDB not sending small packets as found by Fred Fish.
1785
1786 2003-06-30 Andrew Cagney <cagney@redhat.com>
1787
1788 * remote.c (remote_async_wait): Fix -Wformat problem.
1789
1790 2003-06-29 Andrew Cagney <cagney@redhat.com>
1791
1792 * remote.c (remote_wait): Call error, and not warning, when the
1793 packet is corrupt.
1794 (remote_async_wait): Ditto.
1795
1796 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1797
1798 * sparc-tdep.c (sparc_y_regnum): Make external again.
1799
1800 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1801
1802 * cli/cli-logging.c (pop_output_files): Add void to function
1803 definition.
1804
1805 2003-06-29 Andrew Cagney <cagney@redhat.com>
1806
1807 * frame.c (frame_register_unwind): Use unsigned char when dumping
1808 the buffer contents.
1809
1810 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1811
1812 * cli/cli-logging.c: New file.
1813 * cli-out.c (struct ui_out_data): Add original_stream.
1814 (cli_redirect): New function.
1815 (cli_ui_out_impl): Add cli_redirect.
1816 (cli_out_new): Initialize original_stream.
1817 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1818 (uo_redirect, ui_out_redirect): New.
1819 * ui-out.h (struct ui_out_impl): Add redirect member.
1820 (redirect_ftype): New.
1821 (ui_out_redirect): Add prototype.
1822 * Makefile.in: Add rules for cli-logging.c.
1823 * NEWS: Mention "set logging".
1824
1825 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1826
1827 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1828
1829 2003-06-27 Andrew Cagney <cagney@redhat.com>
1830
1831 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1832 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1833 * avr-tdep.c (avr_call_dummy_address): Delete function.
1834 (avr_gdbarch_init): Do not set call_dummy_address.
1835
1836 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1837
1838 * symfile.c (syms_from_objfile): Move variables to inner block.
1839 Move the checks for the non-mainline case a bit earlier to avoid
1840 doing some useless computations.
1841
1842 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1843
1844 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1845
1846 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1847
1848 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1849 sections.
1850
1851 2003-06-26 Michael Chastain <mec@shout.net>
1852
1853 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1854 gdb/testsuite/gdb.c++/pr-1210.exp.
1855
1856 2003-06-26 Andrew Cagney <cagney@redhat.com>
1857
1858 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1859 altivec_expression.h and altivec_registers.h.
1860
1861 2003-06-26 Andrew Cagney <cagney@redhat.com>
1862
1863 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1864 info->mach when MIPS16. Patch suggested by Fred Fish.
1865
1866 2003-06-26 Andrew Cagney <cagney@redhat.com>
1867
1868 * utils.c (internal_vproblem): Print the problem to a reason
1869 buffer and then pass to query. Make the msg variable more local.
1870
1871 2003-06-26 Andrew Cagney <cagney@redhat.com>
1872
1873 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1874 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1875 * gdbarch.h, gdbarch.c: Re-generate.
1876 * frame-base.c (default_frame_args_address): Update. Use
1877 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1878 not available.
1879 (default_frame_locals_address): Ditto for
1880 DEPRECATED_FRAME_LOCALS_ADDRESS.
1881 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1882 (vax_frame_num_args): Update.
1883 (vax_gdbarch_init): Update.
1884 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1885 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1886 * mcore-tdep.c (mcore_gdbarch_init): Update.
1887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1888 * ia64-tdep.c (ia64_gdbarch_init): Update.
1889 * symtab.h (address_class): Update comments.
1890 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1891 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1892 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1893 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1894 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1895 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1896 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1897 * alpha-mdebug-tdep.c: Update.
1898 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1899
1900 2003-06-26 Andreas Jaeger <aj@suse.de>
1901
1902 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1903 of SSE registers so that varargs functions work. Rework handling
1904 of passing arguments on the stack.
1905 (x86_64_store_return_value): Return double and float values in SSE
1906 register.
1907
1908 2003-06-24 Michael Chastain <mec@shout.net>
1909
1910 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1911 the "constructor breakpoints ignored" bug.
1912
1913 2003-06-25 David Carlton <carlton@kealia.com>
1914
1915 * MAINTAINERS: Update e-mail address.
1916
1917 2003-06-24 Jim Blandy <jimb@redhat.com>
1918
1919 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1920
1921 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1922 function.
1923 (ppc_linux_init_abi): Register it as the
1924 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1925
1926 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1927 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1928 method.
1929
1930 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1931 (ppc64_standard_linkage_target): Use it.
1932
1933 2003-06-23 Andrew Cagney <cagney@redhat.com>
1934
1935 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1936 for 0 "int0" and 4 "int32" sized registers.
1937 * gdbtypes.c (builtin_type_int0): Define.
1938 (build_gdbtypes): Initialize builtin_type_int0.
1939 * gdbtypes.h (builtin_type_int0): Declare.
1940
1941 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1942
1943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1944 as characters are unsigned.
1945
1946 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1947
1948 PR gdb/1179
1949 * dwarfread.c (struct_type): Skip static fields without crashing.
1950
1951 2003-06-22 Andrew Cagney <cagney@redhat.com>
1952
1953 GDB 6.0 branch created.
1954 * README: Update.
1955 * PROBLEMS: Update. Empty.
1956 * NEWS: Update.
1957
1958 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1959
1960 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1961 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1962
1963 2003-06-22 Andrew Cagney <cagney@redhat.com>
1964
1965 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1966 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1967 Velikov.
1968
1969 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1970
1971 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1972 compilers.
1973
1974 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1975
1976 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1977 argument of val_print.
1978 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1979 to the address argument of baseclass_offset or target_read_memory.
1980 Do add it to the argument of cp_print_value_fields.
1981
1982 2003-06-21 Andrew Cagney <cagney@redhat.com>
1983
1984 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1985 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1986 instead of 0..NUM_REGS.
1987 (mips_register_reggroup_p): New function.
1988 (mips_pseudo_register_write): New function.
1989 (mips_pseudo_register_read): New function.
1990 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1991 based on the register's type.
1992 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1993 cooked.
1994 (mips_get_saved_register): Simplify. Assert that REGNO is a
1995 pseudo / cooked.
1996 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1997 (mips_register_type): Replace mips_register_virtual_type. Map
1998 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1999 when available.
2000 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2001 that the register is cooked / virtual.
2002 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2003 Only get the extra info when needed.
2004 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2005 (mips32_heuristic_proc_desc): Fetch the cooked register.
2006 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2007 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2008 (mips_print_register): Use gdbarch_register_type, instead of
2009 REGISTER_VIRTUAL_TYPE.
2010 (print_gp_register_row): Use gdbarch_register_type, instead of
2011 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2012 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2013 Print the pseudo / cooked registers.
2014 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2015 Print the pseudo / cooked registers.
2016 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2017 REG_NUM is pseudo / cooked.
2018 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2019 (mips_n32n64_xfer_return_value): Ditto.
2020 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2021 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2022 (mips_register_sim_regno): New function.
2023 (mips_gdbarch_init): Set deprecated_register_byte,
2024 register_group_p, pseudo_register_write, pseudo_register_read,
2025 register_sim_regno, and num_pseudo_regs. Set register_type,
2026 instead of register_virtual_type.
2027 * Makefile.in (mips-tdep.o): Update dependencies.
2028 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2029 REGISTER_VIRTUAL_TYPE.
2030 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2031 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2032 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2033 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2034 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2035
2036 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2037
2038 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2039 * cli/cli-cmds.c: Include "gdb_vfork.h".
2040 (shell_escape): Use vfork.
2041
2042 2003-06-21 Andrew Cagney <cagney@redhat.com>
2043
2044 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2045 32 bit floating-point register saves.
2046
2047 * frame.h (deprecated_unwind_get_saved_register): Delete.
2048 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2049 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2050 and deprecated_get_next_frame_hack instead of
2051 deprecated_unwind_get_saved_register.
2052
2053 * mips-tdep.c (mips_dump_tdep): Do not print
2054 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2055
2056 * frame.c (get_frame_register): New function.
2057 (frame_unwind_register_signed): New function.
2058 (get_frame_register_signed): New function.
2059 (frame_unwind_register_unsigned): New function.
2060 (get_frame_register_unsigned): New function.
2061 * frame.h: Add comments on naming schema.
2062 (get_frame_register, frame_unwind_register_signed): Declare.
2063 (get_frame_register_signed, get_frame_register_signed): Declare.
2064 (frame_unwind_register_unsigned): Declare.
2065 (get_frame_register_unsigned): Declare.
2066
2067 2003-06-20 Theodore A. Roth <troth@openavr.org>
2068
2069 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2070
2071 2003-06-20 Theodore A. Roth <troth@openavr.org>
2072
2073 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2074 (avr_read_sp): Ditto.
2075
2076 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2077
2078 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2079 * config/arm/nm-linux.h: Likewise.
2080 * config/arm/tm-linux.h: Likewise.
2081 * config/ia64/nm-linux.h: Likewise.
2082 * config/ia64/tm-ia64.h: Likewise.
2083 * config/s390/tm-linux.h: Likewise.
2084 * config/s390/tm-s390.h: Likewise.
2085 * s390-nat.c: Likewise.
2086 * s390-tdep.c: Likewise.
2087
2088 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2089 * config/ia64/linux.mt: Likewise.
2090 * config/m68k/linux.mh: Likewise.
2091 * config/mips/linux.mt: Likewise.
2092 * config/powerpc/linux.mh: Likewise.
2093 * config/sh/linux.mt: Likewise.
2094
2095 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2096
2097 * solib.c (solib_open): Change tests for whether to search
2098 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2099 comments.
2100
2101 2003-06-19 Theodore A. Roth <troth@openavr.org>
2102
2103 * avr-tdep.c (avr_frame_address): Delete function.
2104 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2105 set_gdbarch_frame_args_address.
2106
2107 2003-06-19 Andrew Cagney <cagney@redhat.com>
2108
2109 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2110 (REGISTER_CONVERT_FROM_TYPE): Delete.
2111 (mips_register_convert_to_type): Delete declaration.
2112 (mips_register_convert_from_type): Delete declaration.
2113 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2114 kernel/.
2115
2116 2003-06-19 Michael Snyder <msnyder@redhat.com>
2117
2118 * linux-nat.h: New file.
2119 * linux-nat.c: Include linux-nat.h.
2120 * lin-lwp.c: Include linux-nat.h.
2121 Move struct lwp_info def to linux-nat.h.
2122 * linux-proc.c: Include linux-nat.h.
2123 (linux_make_note_section): Iterate over lwps instead of threads.
2124 (linux_do_thread_registers): Use lwp instead of merged pid.
2125 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2126 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2127 Add dependency on linux_nat_h.
2128
2129 2003-06-19 Theodore A. Roth <troth@openavr.org>
2130
2131 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2132
2133 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2134
2135 * varobj.c (get_type, get_target_type): Use check_typedef.
2136
2137 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2138
2139 * breakpoint.c (insert_catchpoint): Call internal_error.
2140
2141 2003-06-19 Theodore A. Roth <troth@openavr.org>
2142
2143 * avr-tdep.c (avr_push_dummy_code): Delete function.
2144 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2145
2146 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2147
2148 * arch-utils.c (default_prepare_to_proceed): Remove.
2149 (generic_prepare_to_proceed): Remove.
2150 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2151 (generic_prepare_to_proceed): Remove prototype.
2152 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2153 * gdbarch.c: Regenerate.
2154 * gdbarch.h: Regenerate.
2155 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2156 * hppah-nat.c (hppa_switched_threads): Remove.
2157 * infrun.c (prepare_to_proceed): New static function, copied from
2158 generic_prepare_to_proceed. Remove select_it argument.
2159 (proceed): Call prepare_to_proceed.
2160 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2161 variables.
2162 (ptrace_wait): Don't set the removed variables.
2163 (hppa_switched_threads): Remove.
2164 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2165 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2166 (lin_lwp_prepare_to_proceed): Remove prototype.
2167 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2168 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2169
2170 2003-06-18 Theodore A. Roth <troth@openavr.org>
2171
2172 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2173 trad-frame.h.
2174 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2175 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2176 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2177 (AVR_PROLOGUE_*): Enumerate prologue types.
2178 (struct frame_extra_info): Remove.
2179 (struct avr_unwind_cache): Define.
2180 (avr_write_sp): Delete function.
2181 (avr_read_fp): Ditto.
2182 (avr_init_extra_frame_info): Ditto.
2183 (avr_pop_frame): Ditto.
2184 (avr_frame_saved_pc): Ditto.
2185 (avr_saved_pc_after_call): Ditto.
2186 (avr_push_return_address): Ditto.
2187 (avr_frame_chain): Ditto.
2188 (avr_store_struct_return): Ditto.
2189 (avr_push_arguments): Ditto.
2190 (avr_scan_prologue): Update comments. Changed to set up the info for
2191 cache unwinding. Now returns end of prologue PC.
2192 (avr_skip_prologue): Better handling of functions lacking a prologue
2193 by using avr_scan_prologue.
2194 (avr_scan_arg_moves): New function.
2195 (avr_saved_regs_unwinder): Ditto.
2196 (avr_frame_unwind_cache): Ditto.
2197 (avr_unwind_pc): Ditto.
2198 (avr_frame_this_id): Ditto.
2199 (avr_frame_prev_register): Ditto.
2200 (avr_frame_p): Ditto.
2201 (avr_frame_base_address ): Ditto.
2202 (avr_unwind_dummy_id): Ditto.
2203 (avr_push_dummy_code): Ditto.
2204 (push_stack_item): Ditto.
2205 (pop_stack_item): Ditto.
2206 (avr_push_dummy_call): Ditto.
2207 (struct stack_item): Define.
2208 (avr_frame_unwind): Declare structure.
2209 (avr_frame_base): Ditto.
2210 (avr_gdbarch_init): Remove calls to
2211 set_gdbarch_deprecated_init_frame_pc,
2212 set_gdbarch_deprecated_target_read_fp,
2213 set_gdbarch_deprecated_dummy_write_sp,
2214 set_gdbarch_deprecated_fp_regnum,
2215 set_gdbarch_deprecated_push_arguments,
2216 set_gdbarch_deprecated_push_return_address,
2217 set_gdbarch_deprecated_pop_frame,
2218 set_gdbarch_deprecated_store_struct_return,
2219 set_gdbarch_deprecated_frame_init_saved_regs,
2220 set_gdbarch_deprecated_init_extra_frame_info,
2221 set_gdbarch_deprecated_frame_chain,
2222 set_gdbarch_deprecated_frame_saved_pc,
2223 set_gdbarch_deprecated_saved_pc_after_call.
2224 Add calls to set_gdbarch_push_dummy_call,
2225 set_gdbarch_push_dummy_code,
2226 frame_unwind_append_predicate,
2227 frame_base_set_default,
2228 set_gdbarch_unwind_dummy_id,
2229 set_gdbarch_unwind_pc.
2230 Wrap a long line.
2231
2232 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2233
2234 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2235 registers for H8/300S.
2236 (h8300_print_registers_info): Ditto.
2237 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2238
2239 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2240
2241 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2242 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2243 (lin_lwp_wait): Likewise. Update comments.
2244 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2245 (pull_pid_from_list, linux_record_stopped_pid): New.
2246
2247 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2248
2249 * ada-lang.c (scan_discrim_bound): Name first argument.
2250 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2251 declared by ALL_BLOCK_SYMBOLS.
2252
2253 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2254
2255 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2256 ("regcache.h"): Include it.
2257 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2258
2259 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2260
2261 * NEWS: Mention gdbserver detach change and "disconnect" command.
2262 * infcmd.c (disconnect_command): New function.
2263 (_initialize_infcmd): Add ``disconnect'' command.
2264 * remote.c (remote_async_detach): Delete.
2265 (remote_detach): Merge remote_async_detach.
2266 (remote_disconnect): New.
2267 (init_remote_ops): Set to_disconnect.
2268 (init_remote_cisco_ops): Likewise.
2269 (init_remote_async_ops): Likewise. Use remote_detach.
2270 * target.c (cleanup_target): Default to_disconnect.
2271 (update_current_target): Inherit to_disconnect.
2272 (target_disconnect, debug_to_disconnect): New functions.
2273 (setup_target_debug): Set to_disconnect.
2274 * target.h (struct target_ops): Add to_disconnect.
2275 (target_disconnect): Add prototype.
2276
2277 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2278
2279 * breakpoint.c (insert_catchpoint): New function.
2280 (insert_breakpoints): Use catch_exceptions to call
2281 insert_catchpoint. Disable catchpoints if they fail to insert.
2282
2283 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2284
2285 * symfile.c (reread_symbols): Clear sym_private.
2286
2287 2003-06-17 Andrew Cagney <cagney@redhat.com>
2288
2289 * trad-frame.h (struct frame_info): Add opaque declaration.
2290 * remote-fileio.h (struct cmd_list_element): Add opaque
2291 declaration.
2292 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2293 comments.
2294
2295 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2296
2297 * remote.c (remote_prepare_to_store): Replace call to
2298 deprecated_read_register_bytes with multiple regcache_raw_read
2299 calls.
2300
2301 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2302
2303 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2304 (nto_find_and_open_solib): Likewise.
2305 (nto_init_solib_absolute_prefix): Likewise.
2306 (_initialize_nto_tdep): Fix indentation.
2307
2308 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2309
2310 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2311
2312 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2313
2314 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2315
2316 2003-06-17 Jim Blandy <jimb@redhat.com>
2317
2318 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2319
2320 2003-06-16 Theodore A. Roth <troth@openavr.org>
2321
2322 * avr-tdep.c (avr_extract_return_value): New function.
2323 (avr_gdbarch_init): Set extract_return_value method.
2324
2325 2003-06-16 Andrew Cagney <cagney@redhat.com>
2326
2327 * frame.h (deprecated_get_next_frame_hack): Declare.
2328 * frame.c (legacy_saved_regs_prev_register): Only require
2329 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2330 there are always saved regs.
2331 (deprecated_generic_get_saved_register): Do not require
2332 DEPRECATED_FRAME_INIT_SAVED_REGS.
2333 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2334 use frame ID unwind instead.
2335 (deprecated_get_next_frame_hack): New function.
2336
2337 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2338
2339 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2340 (h8300_push_dummy_call): ...this function. Some minor optimization.
2341 (h8300_push_return_address): Remove.
2342 (h8300_gdbarch_init): Remove calls to
2343 set_gdbarch_deprecated_dummy_write_sp,
2344 set_gdbarch_deprecated_push_arguments and
2345 set_gdbarch_deprecated_push_return_address.
2346 Add call to set_gdbarch_push_dummy_call.
2347
2348 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2349
2350 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2351 (E_PSEUDO_EXR_REGNUM): Ditto.
2352 (h8300_is_argument_spill): Check for instructions moving argument
2353 registers into safe registers.
2354 (h8300_skip_prologue): Check for stm instruction to push registers
2355 used for register variables onto stack.
2356 (gdb_print_insn_h8300): Remove.
2357 (h8300_examine_prologue): Add a comment.
2358 (h8300_register_name): Take pseudo registers into account.
2359 (h8300s_register_name): Ditto.
2360 (h8300sx_register_name): Ditto.
2361 (h8300_print_register): Ditto.
2362 (h8300_print_registers_info): Define "nice" printing order.
2363 (h8300_saved_pc_after_call): Take pseudo registers into account.
2364 (h8300_register_type): Ditto. Return type used for remote connection
2365 when requesting real CCR or EXR register, return actual type when
2366 requesting pseudo CCR or EXR.
2367 (h8300_pseudo_register_read): New function.
2368 (h8300_pseudo_register_write): Ditto.
2369 (h8300_dbg_reg_to_regnum): Ditto.
2370 (h8300s_dbg_reg_to_regnum): Ditto.
2371 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2372 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2373 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2374 set_gdbarch_print_insn architecture dependent.
2375 Call set_gdbarch_pseudo_register_read and
2376 set_gdbarch_pseudo_register_write.
2377 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2378
2379 2003-06-16 Andrew Cagney <cagney@redhat.com>
2380
2381 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2382 * gdbarch.h, gdbarch.c: Re-generate.
2383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2384 * s390-tdep.c (s390_gdbarch_init): Update.
2385 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2386 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2387 * mips-tdep.c (mips_gdbarch_init): Update.
2388 * mcore-tdep.c (mcore_gdbarch_init): Update.
2389 * cris-tdep.c (cris_gdbarch_init): Update.
2390 * infcall.c (call_function_by_hand): Update.
2391 * ia64-tdep.c (ia64_push_arguments): Update comment.
2392 * frame.c (legacy_get_prev_frame): Do not assume
2393 SAVE_DUMMY_FRAME_TOS_P.
2394 * dummy-frame.c (find_dummy_frame): Update comment.
2395
2396 2003-06-16 Andrew Cagney <cagney@redhat.com>
2397
2398 * regcache.c (do_cooked_read): Do not use register_valid_p.
2399
2400 2003-06-15 Theodore A. Roth <troth@openavr.org>
2401
2402 * avr-tdep.c (avr_register_type): Remove a blank line.
2403 (avr_scan_prologue): Correct some comments.
2404
2405 2003-06-15 Theodore A. Roth <troth@openavr.org>
2406
2407 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2408 prologue types.
2409 Properly scan prologues generated by gcc with the -mcall-prologues
2410 option.
2411 Add code to scan -mcall-prologues for mega devices.
2412
2413 2003-06-15 Theodore A. Roth <troth@openavr.org>
2414
2415 * avr-tdep.c (avr_register_byte): Delete function.
2416 (avr_register_raw_size): Delete function.
2417 (avr_register_virtual_size): Delete function.
2418 (avr_register_virtual_type): Delete function.
2419 (avr_register_type): New function.
2420 (avr_address_to_pointer): Remove unused code.
2421 (avr_read_fp): Need to read FP as two separate bytes due to change to
2422 avr_register_type() usage.
2423 (avr_gdbarch_init): Don't set deprecated_register_size.
2424 Don't set deprecated_register_bytes.
2425 Don't set deprecated_register_byte.
2426 Don't set deprecated_register_raw_size.
2427 Don't set deprecated_max_register_raw_size.
2428 Don't set deprecated_register_virtual_size.
2429 Don't set deprecated_max_register_virtual_size.
2430 Don't set deprecated_register_virtual_type.
2431 Set register_type method.
2432
2433 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2434
2435 * Makefile.in (linux-nat.o): Add rule.
2436 * linux-nat.c: New file.
2437 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2438 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2439 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2440 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2441 * config/arm/linux.mh (NATDEPFILES): Likewise.
2442 * config/i386/linux.mh (NATDEPFILES): Likewise.
2443 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2444 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2445 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2446 * config/mips/linux.mh (NATDEPFILES): Likewise.
2447 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2448 * config/s390/s390.mh (NATDEPFILES): Likewise.
2449 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2450
2451 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2452
2453 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2454 replace out-of-date comment.
2455
2456 2003-06-15 Andrew Cagney <cagney@redhat.com>
2457
2458 * rdi-share/host.h (Fail): Change to a varargs function.
2459 * remote-rdi.c (Fail): Update.
2460
2461 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2462
2463 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2464 (i386_convert_register_p, i386_register_to_value,
2465 i386_register_from_value): Handle types longer than 8 bytes.
2466
2467 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2468
2469 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2470 Move floating-point code to new function in i387-tdep.c.
2471 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2472 New functions containing code moved here from i386-tdep.c.
2473 * i387-tdep.h: Add opaque declaration for `struct type'.
2474 (i387_register_to_value, i387_value_to_register): New prototypes.
2475 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2476 (x86_64_init_abi): Set convert_register_p, register_to_value and
2477 value_to_register here.
2478
2479 2003-06-14 Andrew Cagney <cagney@redhat.com>
2480
2481 * mips-tdep.c (mips_register_to_value): Make static.
2482 (mips_value_to_register): Make static.
2483 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2484 * ia64-tdep.c (ia64_register_raw_size): Make static.
2485 (ia64_register_virtual_size): Make static.
2486 (ia64_register_byte): Make static.
2487 * i387-tdep.c: Include "i387-tdep.h".
2488 (print_387_control_word): Delete function.
2489 (print_387_status_word): Delete function.
2490 (print_387_status_bits): Delete function.
2491 (print_387_control_bits): Delete function.
2492 * Makefile.in (i387-tdep.o): Update dependencies.
2493 * rdi-share/host.h (Fail): Declare.
2494 * remote-rdi.c (Fail): Update to match declaration.
2495
2496 2003-06-14 Andrew Cagney <cagney@redhat.com>
2497
2498 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2499 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2500 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2501 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2502 * README: Delete reference to remote-array.
2503 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2504 (remote-array.o): Delete target.
2505 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2506 * remote-array.c: Delete file.
2507
2508 2003-06-14 Andrew Cagney <cagney@redhat.com>
2509 Mark Kettenis <kettenis@gnu.org>
2510
2511 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2512 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2513 parameter with "frame".
2514 * gdbarch.h, gdbarch.c: Re-generate.
2515 * frame.h (put_frame_register): Declare.
2516 * frame.c (put_frame_register): New function.
2517 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2518 (legacy_register_to_value): Rewrite, use "frame" to get the
2519 register value.
2520 (legacy_value_to_register): Rewrite, use "frame" to find the
2521 register's location before storing.
2522 * arch-utils.h (legacy_convert_register_p): Update.
2523 (legacy_register_to_value, legacy_value_to_register): Update.
2524 * findvar.c (value_from_register): Rewrite, eliminate use of
2525 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2526 "frame" to REGISTER_TO_VALUE.
2527 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2528 lval_reg_frame_relative + lval_register branch of the switch. Do
2529 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2530 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2531 I386_EDI_REGNUM): New defines.
2532 (i386_next_regnum, i386_convert_register_p,
2533 i386_register_to_value, i386_value_to_register): New functions.
2534 (i386_register_convertible, i386_register_convert_to_virtual,
2535 i386_convert_to_raw): Remove functions.
2536 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2537 value_to_register instead of register_convertible,
2538 register_convert_to_virtual and register_convert_to_raw.
2539 * mips-tdep.c (mips_convert_register_p): New function.
2540 (mips_value_to_register): Replace mips_register_convert_from_type.
2541 (mips_register_to_value): Replace mips_register_convert_to_type.
2542 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2543 register_to_value.
2544 * alpha-tdep.c (alpha_convert_register_p): Update.
2545 (alpha_value_to_register): Update, store the register.
2546 (alpha_register_to_value): Update, fetch the register.
2547
2548 2003-06-14 Theodore A. Roth <troth@openavr.org>
2549
2550 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2551 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2552 Don't set deprecated_call_dummy_words.
2553 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2554 Don't set remote_translate_xfer_address.
2555 (avr_io_reg_read_command): Remove commented out debug printf.
2556 Wrap a long line.
2557
2558 2003-06-14 Theodore A. Roth <troth@openavr.org>
2559
2560 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2561 causes gdb to seg fault.
2562
2563 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2564
2565 * sparc-nat.c (fetch_inferior_registers): Correct
2566 a reference to "registers".
2567
2568 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2569
2570 * Makefile.in (exc_request_U_h): Define
2571 (exc_request_S_h): Likewise.
2572 (msg_reply_S_h): Likewise.
2573 (msg_U_h): Likewise.
2574 (notify_S_h): Likewise.
2575 (process_reply_S_h): Likewise.
2576 (gnu-nat.o): Depend on gdb_obstack_h
2577 * gnu-nat.c: Include "gdb_obstack.h".
2578
2579 2003-06-13 Andrew Cagney <cagney@redhat.com>
2580
2581 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2582 * gdbarch.h, gdbarch.c: Re-generate.
2583
2584 2003-06-13 Andrew Cagney <cagney@redhat.com>
2585
2586 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2587 when deprecated REGISTER macros can be deleted.
2588 * gdbarch.h, gdbarch.c: Re-generate.
2589
2590 2003-06-13 Jim Blandy <jimb@redhat.com>
2591
2592 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2593 Linux entry point symbols for _dl_debug_state, too.
2594
2595 2003-06-13 Andrew Cagney <cagney@redhat.com>
2596
2597 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2598 available, do not use the FP register, and always save the TOS.
2599 * dummy-frame.c (dummy_frame_this_id): Do not assert
2600 SAVE_DUMMY_FRAME_TOS.
2601 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2602 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2603 (i386_push_dummy_call): Add 8 to the returned SP.
2604 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2605 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2606 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2607 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2608 (x86_64_push_dummy_call): Return "sp + 16".
2609 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2610 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2611 save_dummy_frame_tos.
2612
2613 2003-06-13 Jim Blandy <jimb@redhat.com>
2614
2615 * frv-tdep.c (frv_use_struct_convention): Delete static
2616 declaration for function deleted in my change of 2003-06-12.
2617
2618 2003-06-13 Theodore A. Roth <troth@openavr.org>
2619
2620 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2621 (avr_pointer_to_address): Shift code addrs left 1 bit.
2622 (avr_convert_from_func_ptr_addr): Delete function since operation is
2623 better handled by avr_address_to_pointer and avr_pointer_to_address.
2624 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2625
2626 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2627
2628 From Kelley Cook <kelleycook@wideopenwest.com>:
2629 * configure.host: Accept i[34567]86 variants.
2630 * configure.tgt: Likewise.
2631 * nlm/configure.in: Likewise.
2632 * nlm/configure: Regenerated.
2633
2634 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2635
2636 * arm-tdep.c (solib-svr4.h): Dont' include it.
2637 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2638 * arm-linux-tdep.c: ... here. Make static.
2639 (arm_linux_init_abi): Register it.
2640 (solib-svr4.h): Include it.
2641 * Makefile.in: Update dependencies.
2642 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2643 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2644
2645 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2646
2647 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2648 indicate registers used for return values.
2649 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2650 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2651 members.
2652 (h8300_init_extra_frame_info): Ditto.
2653 (h8300_frame_locals_address): Removed.
2654 (h8300_frame_args_address): Removed.
2655 (h8300_extract_return_value): Use new regcache structure. Only care
2656 for 16 bit CPUs.
2657 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2658 (h8300_store_return_value): Use new regcache structure. Only care
2659 for 16 bit CPUs.
2660 (h8300h_store_return_value): Same function for 32 bit CPUs.
2661 (h8300_store_struct_return): Removed.
2662 (h8300_extract_struct_value_address): Use new regcache structure.
2663 (h8300h_extract_struct_value_address): Removed.
2664 (h8300_push_dummy_code): New function.
2665 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2666 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2667 set_gdbarch_store_return_value architecture dependent.
2668 Call set_gdbarch_push_dummy_code and
2669 set_gdbarch_extract_struct_value_address.
2670 Remove calls to set_gdbarch_frame_args_address,
2671 set_gdbarch_frame_locals_address,
2672 set_gdbarch_deprecated_store_struct_return,
2673 set_gdbarch_deprecated_extract_return_value,
2674 set_gdbarch_deprecated_extract_struct_value_address,
2675 set_gdbarch_deprecated_call_dummy_words and
2676 set_gdbarch_deprecated_sizeof_call_dummy_words.
2677
2678 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2679
2680 * h8300-tdep.c (h8300_register_byte): Remove.
2681 (h8300h_register_byte): Remove.
2682 (h8300_register_virtual_type): Remove. Substitute by...
2683 (h8300_register_type): New function.
2684 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2685 (h8300h_extract_struct_value_address): Ditto.
2686 (h8300_gdbarch_init): Drop calls to
2687 set_gdbarch_deprecated_register_byte and
2688 set_gdbarch_deprecated_register_virtual_type.
2689 Add call to set_gdbarch_register_type.
2690
2691 2003-06-13 Andrew Cagney <cagney@redhat.com>
2692
2693 * gdbarch.sh: Update comments on registers.
2694 (deprecated_register_byte): Rename register_byte.
2695 (deprecated_register_raw_size): Rename register_raw_size.
2696 (deprecated_register_virtual_size): Rename register_virtual_size.
2697 (deprecated_register_virtual_type): Rename register_virtual_type.
2698 * gdbarch.h, gdbarch.c: Re-generate.
2699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2700 * vax-tdep.c (vax_gdbarch_init): Update.
2701 * v850-tdep.c (v850_gdbarch_init): Update.
2702 * sparc-tdep.c (sparc_gdbarch_init): Update.
2703 * sh-tdep.c (sh_gdbarch_init): Update.
2704 * s390-tdep.c (s390_gdbarch_init): Update.
2705 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2706 * ns32k-tdep.c: Update.
2707 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2708 * mips-tdep.c (mips_gdbarch_init): Update.
2709 * mcore-tdep.c (mcore_gdbarch_init): Update.
2710 * m68k-tdep.c (m68k_gdbarch_init): Update.
2711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2712 * ia64-tdep.c (ia64_gdbarch_init): Update.
2713 * hppa-tdep.c (hppa_gdbarch_init): Update.
2714 * h8300-tdep.c (h8300_gdbarch_init): Update.
2715 * frv-tdep.c (frv_gdbarch_init): Update.
2716 * cris-tdep.c (cris_gdbarch_init): Update.
2717 * avr-tdep.c (avr_gdbarch_init): Update.
2718 * alpha-tdep.c (alpha_gdbarch_init): Update.
2719 * arm-tdep.c (arm_gdbarch_init): Update.
2720
2721 2003-06-13 Andrew Cagney <cagney@redhat.com>
2722
2723 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2724 mips_o32_use_struct_convention with always_use_struct_convention.
2725
2726 2003-06-12 David Carlton <carlton@kealia.com>
2727
2728 * cp-namespace.c (cp_set_block_scope): Comment out
2729 processing_has_namespace_info branch.
2730
2731 2003-06-12 Jim Blandy <jimb@redhat.com>
2732
2733 Recognize and skip 64-bit PowerPC Linux linkage functions.
2734 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2735 insn_pattern, insns_match_pattern, d_field, ds_field): New
2736 functions, macros, and types for working with PPC instructions.
2737 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2738 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2739 ppc64_skip_trampoline_code): New functions, variables, and macros
2740 for recognizing and skipping linkage functions.
2741 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2742 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2743
2744 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2745 register offsets for both the 32- and 64-bit interfaces.
2746
2747 Actually finish the job started by my change of 2003-05-29.
2748 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2749 other #definition of this.
2750 (ppc_linux_skip_trampoline_code): Remove declaration.
2751 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2752 static.
2753 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2754 method for GDBARCH.
2755
2756 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2757 'long' on ppc64-*-linux*.
2758
2759 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2760 isn't #defined, assume the register doesn't exist: act as if
2761 tdep->ppc_mq_regnum were -1.
2762
2763 * configure.host, configure.tgt: Add entries for
2764 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2765 powerpc/linux.mt.
2766 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2767 New files.
2768
2769 * arch-utils.c (always_use_struct_convention): New function.
2770 * arch-utils.h (always_use_struct_convention): New prototype.
2771 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2772 (alpha_gdbarch_init): Register always_use_struct_convention,
2773 instead of alpha_use_struct_convention.
2774 * cris-tdep.c (cris_use_struct_convention): Delete.
2775 (cris_gdbarch_init): Register always_use_struct_convention,
2776 instead of cris_use_struct_convention.
2777 * frv-tdep.c (frv_use_struct_convention): Delete.
2778 (frv_gdbarch_init): Register always_use_struct_convention,
2779 instead of frv_use_struct_convention.
2780 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2781 (h8300_gdbarch_init): Register always_use_struct_convention,
2782 instead of h8300_use_struct_convention.
2783 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2784 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2785 instead of mips_o32_use_struct_convention.
2786
2787 2003-06-12 Andrew Cagney <cagney@redhat.com>
2788
2789 * wince.c: Include "mips-tdep.h".
2790 * mips-tdep.h (mips_next_pc): Declare.
2791 * mcore-tdep.c: Make more local functions static.
2792 * Makefile.in (wince.o): Update dependencies.
2793
2794 2003-06-12 David Carlton <carlton@kealia.com>
2795
2796 * symtab.c (lookup_symbol_aux_minsyms): Replace
2797 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2798 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2799 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2800 SYMBOL_NATURAL_NAME.
2801
2802 2003-06-12 Andreas Schwab <schwab@suse.de>
2803
2804 * Makefile.in (tuiDisassem.o): Update dependencies.
2805
2806 2003-06-12 David Carlton <carlton@bactrian.org>
2807
2808 * symtab.h: Delete declaration of make_symbol_overload_list.
2809 Add declaration of lookup_partial_symbol.
2810 * symtab.c (remove_params): Move to cp-support.c.
2811 (overload_list_add_symbol, make_symbol_overload_list)
2812 (sym_return_val_size, sym_return_val_index): Ditto.
2813 (lookup_partial_symbol): Make extern.
2814 * cp-support.h: Add declaration of make_symbol_overload_list.
2815 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2816 symtab.h, and block.h.
2817 (remove_params): Move here from symtab.c.
2818 (overload_list_add_symbol, make_symbol_overload_list)
2819 (sym_return_val_size, sym_return_val_index): Ditto.
2820 * valops.c: Include cp-support.h.
2821 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2822 frame_h, and block_h.
2823 (valops.o): Depend on cp_support_h.
2824
2825 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2826
2827 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2828 substitute by NUM_REGS throughout.
2829 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2830 (h8300s_register_name): New function for H8S registers.
2831 (h8300sx_register_name): Ditto for H8SX registers.
2832 (h8300_print_register): Revise register printing, avoid depending
2833 on 32 bit long.
2834 (h8300_register_byte): Only care for H8/300 registers.
2835 (h8300h_register_byte): New function for any other architecture.
2836 (h8300_register_raw_size): Remove.
2837 (h8300_register_virtual_type): Revise to return actually useful
2838 type.
2839 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2840 (h8300h_extract_struct_value_address): New function for any other
2841 architecture.
2842 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2843 set_gdbarch_register_name, set_gdbarch_register_byte,
2844 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2845 Remove calls to set_gdbarch_deprecated_register_size,
2846 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2847 set_gdbarch_deprecated_max_register_raw_size,
2848 set_gdbarch_register_virtual_size and
2849 set_gdbarch_deprecated_max_register_virtual_size entirely.
2850 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2851 set_gdbarch_long_double_bit.
2852
2853 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2854
2855 * doublest.c (convert_doublest_to_floatformat): When dealing
2856 with the implied integer bit, only alter mant_bits if we are
2857 processing a full 32 bits of mantissa.
2858
2859 2003-06-11 David Carlton <carlton@bactrian.org>
2860
2861 * dictionary.h: New.
2862 * dictionary.c: New.
2863 * block.h: Add opaque declaration for struct dictionary.
2864 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2865 'sym' members.
2866 (BLOCK_DICT): New macro.
2867 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2868 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2869 BLOCK_SHOULD_SORT.
2870 (ALL_BLOCK_SYMBOLS): Update definition.
2871 * Makefile.in (SFILES): Add dictionary.c.
2872 (dictionary_h): New.
2873 (COMMON_OBS): Add dictionary.o.
2874 (dictionary.o): New.
2875 (ada-lang.o): Depend on dictionary_h.
2876 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2877 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2878 (mi-cmd-stack.o): Ditto.
2879 (gdbtk-cmds.o): Update dependencies.
2880 (gdbtk-stack.o): Ditto.
2881 * ada-lang.c: Include dictionary.h.
2882 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2883 (fill_in_ada_prototype, debug_print_block): Ditto.
2884 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2885 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2886 'is_sorted'.
2887 * mdebugread.c: Include dictionary.h.
2888 (struct parse_stack): Delete 'maxsyms' member.
2889 (parse_symbol): Update calls to new_block. Delete calls to
2890 shrink_block. Use dictionary methods.
2891 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2892 Update calls to new_symtab. Don't maintain maxsyms data.
2893 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2894 (add_symbol): Just call dict_add_symbol.
2895 (new_symtab): Delete 'maxsyms' argument.
2896 (new_symtab): Update calls to new_block.
2897 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2898 (shrink_block): Delete function.
2899 (fixup_sigtramp): Update call to new_block. Add symbol via
2900 dict_add_symbol.
2901 * jv-lang.c: Include dictionary.h.
2902 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2903 appropriately. Set class_symtab->free_func. Make sure the
2904 blockvector is big enough to hold two blocks.
2905 (add_class_symtab_symbol): Use dictionary methods.
2906 (free_class_block): New function.
2907 (type_from_class): Replace explicit iteration by
2908 ALL_BLOCK_SYMBOLS.
2909 * symtab.h (struct symtab): Replace 'free_ptr' method by
2910 'free_func'.
2911 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2912 sort_symtab_syms.
2913 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2914 sort_symtab_syms.
2915 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2916 Include dictionary.h.
2917 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2918 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2919 sort_symtab_syms.
2920 * objfiles.c: Include dictionary.h.
2921 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2922 * buildsym.c: Include dictionary.h.
2923 (finish_block): Use dictionary methods.
2924 (end_symtab): Set free_func to NULL, not free_ptr.
2925 * tracepoint.c: Include dictionary.h.
2926 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2927 (scope_info): Ditto.
2928 * stack.c: Include dictionary.h.
2929 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2930 (print_block_frame_labels, print_frame_arg_vars)
2931 (print_frame_args): Ditto.
2932 * symmisc.c (free_symtab_block): Use dictionary methods.
2933 (dump_symtab): Ditto.
2934 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2935 Include dictionary.h.
2936 * symfile.h: Delete declarations of sort_block_syms,
2937 sort_symtab_syms.
2938 * symfile.c (sort_block_syms): Delete.
2939 (sort_symtab_syms): Delete.
2940 * symtab.c: Include dictionary.h.
2941 (lookup_block_symbol): Use dictionary iterators.
2942 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2943 (search_symbols, make_symbol_completion_list): Ditto.
2944 (make_symbol_overload_list): Ditto.
2945 * valops.c (value_of_local): Use dict_empty.
2946 Include dictionary.h.
2947
2948 2003-06-11 J. Brobecker <brobecker@gnat.com>
2949
2950 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2951
2952 2003-06-11 David Carlton <carlton@bactrian.org>
2953
2954 * block.h (BLOCK_SHOULD_SORT): Delete.
2955 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2956 blocks.
2957 * ada-lang.c (ada_add_block_symbols): Ditto.
2958 * symfile.c (sort_block_syms): Delete.
2959 (sort_symtab_syms): Ditto.
2960 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2961 declarations.
2962 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2963 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2964 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2965 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2966 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2967 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2968 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2969
2970 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2971
2972 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2973 bits to 128.
2974
2975 2003-06-11 Andrew Cagney <cagney@redhat.com>
2976
2977 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2978 REGISTER_CONVERTIBLE.
2979 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2980 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2981 * gdbarch.h, gdbarch.c: Re-generate.
2982 * arch-utils.h (deprecated_register_convertible_not): Rename
2983 generic_register_convertible_not.
2984 * arch-utils.c (deprecated_register_convertible_not): Rename
2985 generic_register_convertible.
2986 (legacy_convert_register_p, legacy_register_to_value): Update.
2987 * sh-tdep.c (sh64_push_arguments): Update.
2988 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2989 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2990 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2991 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2992 * arch-utils.c (legacy_value_to_register): Update.
2993 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2994 (rs6000_register_convert_to_raw): Make parameter "from" const.
2995 * mips-tdep.c (mips_gdbarch_init): Update.
2996 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2997 * infcmd.c (default_print_registers_info): Update.
2998 * ia64-tdep.c (ia64_gdbarch_init): Update.
2999 (ia64_register_convert_to_raw): Make parameter "from" const.
3000 * i386-tdep.c (i386_gdbarch_init): Update.
3001 (i386_register_convert_to_raw): Update.
3002
3003 2003-06-11 Andrew Cagney <cagney@redhat.com>
3004
3005 * remote-fileio.c: Include "remote-fileio.h".
3006 * Makefile.in (remote-fileio.o): Update dependencies.
3007 (remote_fileio_h): Fix typo.
3008
3009 2003-06-11 Andrew Cagney <cagney@redhat.com>
3010
3011 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3012 (xstormy16_save_dummy_frame_tos): Make static.
3013 (_initialize_xstormy16_tdep): Add declaration.
3014 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3015 * v850-tdep.c: Make local functions static.
3016 (_initialize_v850_tdep): Add declaration.
3017 * sparc-tdep.c: Make local functions static.
3018 (_initialize_sparc_tdep): Add declaration.
3019 * sh-tdep.c: Make local functions static.
3020 (_initialize_sh_tdep): Add declaration.
3021 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3022 * s390-tdep.c: Make local functions static.
3023 (_initialize_s390_tdep): Add declaration.
3024 * dbxread.c (find_stab_function_addr): Make static.
3025 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3026 * ocd.c (_initialize_remote_ocd): Add declaration.
3027 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3028 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3029 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3030 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3031 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3032 * remote-array.c (_initialize_array): Add declaration.
3033 (_initialize_remote_monitors): Add declaration.
3034 * remote-mips.c: Make local functions static.
3035 (_initialize_remote_mips): Add declaration.
3036 * mcore-tdep.c: Make all local functions static.
3037 (_initialize_mcore_tdep): Add declaration.
3038 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3039 * abug-rom.c (_initialize_abug_rom): Add declaration.
3040 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3041 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3042 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3043 * remote-est.c (_initialize_est): Add declaration.
3044 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3045 (m68hc11_call_dummy_address): Make static.
3046 * ia64-tdep.c: Make local functions static.
3047 (_initialize_ia64_tdep): Add declaration.
3048 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3049 * monitor.c (monitor_wait_filter): Make static.
3050 (_initialize_remote_monitors): Add declaration.
3051 * remote-hms.c (_initialize_remote_hms): Add declaration.
3052 * remote-e7000.c (fetch_regs_from_dump): Make static.
3053 (expect_n): Make static.
3054 (_initialize_remote_e7000): Add declaration.
3055 * ser-e7kpc.c: Always include "defs.h".
3056 (_initialize_ser_e7000pc): Add declaration.
3057 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3058 * cris-tdep.c: Make all but one function static.
3059 (_initialize_cris_tdep): Add declaration.
3060 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3061 * solib.c (update_solib_list): Make static.
3062 (_initialize_solib): Add declaration.
3063 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3064 (_initialize_avr_tdep): Add declaration.
3065 * remote-rdi.c (voiddummy): Make static.
3066 (_initialize_remote_rdi): Add declaration.
3067 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3068 * remote-rdp.c (send_rdp): Make static.
3069 (_initialize_remote_rdp): Add declaration.
3070 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3071
3072 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3073
3074 * remote-fileio.c: Make ari happy.
3075
3076 2003-06-10 J. Brobecker <brobecker@gnat.com>
3077
3078 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3079 fetching the trailing bytes of the buffer we are about to write.
3080
3081 2003-06-10 Andrew Cagney <cagney@redhat.com>
3082
3083 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3084 * Makefile.in (remote-fileio.o): Update dependencies.
3085 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3086 include <setjmp.h>, or <sys/types.h> conditional on USG.
3087 (remote_fio_jmp_buf): Delete global variable.
3088
3089 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3090 Martin M. Hunt <hunt@redhat.com>
3091
3092 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3093 (SFILES): Add remote-fileio.c.
3094 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3095 dependencies for building remote.o.
3096 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3097 * remote-fileio.h: New header file defining remote File-I/O interface.
3098 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3099 static storage class.
3100 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3101 'F' packet.
3102 (_initialize_remote): Call initialize_remote_fileio().
3103 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3104 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3105 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3106 (captured_main): Initialize new ui_files.
3107 * ui-file.c: Add read and fgets input functions.
3108 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3109 (null_file_read): New function.
3110 (ui_file_read): New function.
3111 (set_ui_file_read): New function.
3112 (stdio_file_read): New function.
3113 * ui-file.h: New type ui_file_read_ftype.
3114 (set_ui_file_read): Declare.
3115 (ui_file_read): Declare.
3116
3117 2003-06-09 Andrew Cagney <cagney@redhat.com>
3118
3119 * frame.h (deprecated_unwind_get_saved_register): Rename
3120 generic_unwind_get_saved_register, update comments.
3121 * mips-tdep.c (mips_get_saved_register): Update.
3122 * frame.c (deprecated_unwind_get_saved_register): Update.
3123
3124 2003-06-09 Andrew Cagney <cagney@redhat.com>
3125
3126 * vax-tdep.c (vax_frame_locals_address): Delete function.
3127 (vax_gdbarch_init): Do not set frame_locals_address.
3128 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3129 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3130 * s390-tdep.c (s390_frame_args_address): Delete function.
3131 (s390_gdbarch_init): Do not set frame_args_address or
3132 frame_locals_address.
3133 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3134 (ns32k_gdbarch_init): Do not set frame_locals_address.
3135 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3136 (hppa_frame_locals_address): Delete function.
3137 (hppa_gdbarch_init): Do not set frame_args_address, or
3138 frame_locals_address.
3139 * arm-tdep.c (arm_frame_args_address): Delete.
3140 (arm_frame_locals_address): Delete.
3141 (arm_gdbarch_init): Do not set frame_args_address, or
3142 frame_locals_address.
3143
3144 2003-06-09 Andrew Cagney <cagney@redhat.com>
3145
3146 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3147 * gdbarch.h, gdbarch.c: Re-generate.
3148 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3149 * arch-utils.c (frame_num_args_unknown): Delete function.
3150 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3151 (frame_info): Use FRAME_NUM_ARGS_P.
3152 * arm-tdep.c (arm_frame_num_args): Delete function.
3153 (arm_gdbarch_init): Do not set frame_num_args.
3154 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3155 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3156 (hppa_gdbarch_init): Do not set frame_num_args.
3157 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3159 frame_num_args to default frame_num_args_unknown.
3160 * v850-tdep.c (v850_gdbarch_init): Ditto.
3161 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3162 * sh-tdep.c (sh_gdbarch_init): Ditto.
3163 * s390-tdep.c (s390_gdbarch_init): Ditto.
3164 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3165 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3166 * mips-tdep.c (mips_gdbarch_init): Ditto.
3167 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3168 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3170 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3171 * i386-tdep.c (i386_gdbarch_init): Ditto.
3172 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3173 * frv-tdep.c (frv_gdbarch_init): Ditto.
3174 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3175 * cris-tdep.c (cris_gdbarch_init): Ditto.
3176 * avr-tdep.c (avr_gdbarch_init): Ditto.
3177 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3178
3179 2003-06-09 Andrew Cagney <cagney@redhat.com>
3180
3181 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3182 (print_frame_args): Moved to "stack.c".
3183 * stack.c: Include "gdb_assert.h".
3184 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3185 (print_frame_args): Moved from "printcmd.c".
3186 * frame.h (print_frame_args): Delete declaration.
3187 * Makefile.in (stack.o): Update dependencies.
3188
3189 2003-06-08 Andrew Cagney <cagney@redhat.com>
3190
3191 * frame.c (get_prev_frame): Remove reference to
3192 frame_args_address_correct in comments.
3193 * frame-base.c (default_frame_args_address): Delete code
3194 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3195 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3196 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3197 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3198 (vax_frame_args_address_correct): Delete declaration.
3199
3200 2003-06-08 Andrew Cagney <cagney@redhat.com>
3201
3202 * gdbarch.sh (UNWIND_SP): Add.
3203 * gdbarch.h, gdbarch.c: Re-generate.
3204 * frame.c (frame_sp_unwind): New function.
3205 (get_frame_sp): New function.
3206 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3207 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3208 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3209 value.
3210 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3211 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3212
3213 2003-06-08 Andrew Cagney <cagney@redhat.com>
3214
3215 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3216 REMOTE_BREAKPOINT.
3217 * remote.c: Update.
3218 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3219 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3220 * config/m68k/tm-sun3.h: Update.
3221 * config/m68k/tm-m68klynx.h: Update.
3222 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3223
3224 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3225 trad_frame". Update comments.
3226 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3227 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3228 (trad_frame_register_value, trad_frame_prev_register): Update.
3229
3230 2003-06-08 Andrew Cagney <cagney@redhat.com>
3231
3232 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3233 from GCC's acinclude.m4.
3234 * configure.in: Check for getopt's delcaration.
3235 * aclocal.m4, config.in, configure: Re-generate.
3236 * main.c (error_init): Delete declaration.
3237 * defs.h (error_init): Declare.
3238 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3239 (rs6000_convert_from_func_ptr_addr): Make static.
3240 (_initialize_rs6000_tdep): Add declaration.
3241 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3242 (show_commands, set_verbose, show_history): Delete declaration.
3243 * top.h (set_verbose): Add declaration.
3244 (show_history, set_history, show_commands): Add declaration.
3245 (do_restore_instream_cleanup): Add declaration.
3246 * objc-lang.c (specialcmp): Make static.
3247 (print_object_command): Make static.
3248 (find_objc_msgsend): Make static.
3249 (find_objc_msgcall_submethod_helper): Make static.
3250 (find_objc_msgcall_submethod): Make static.
3251 (_initialize_objc_language): Add declaration.
3252 (find_implementation_from_class): Make static.
3253 (find_implementation): Make static.
3254 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3255 * objc-lang.h (lookup_struct_typedef): Add declaration.
3256 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3257 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3258 (do_restore_user_call_depth): Make static.
3259 (do_restore_instream_cleanup): Delete declaration.
3260 (dont_repeat): Delete declaration.
3261 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3262 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3263 * reggroups.c (_initialize_reggroup): Add declaration.
3264 * cp-support.c (_initialize_cp_support): Add declaration.
3265 * cp-abi.c (_initialize_cp_abi): Add declaration.
3266 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3267 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3268 (_initialize_gnu_v3_abi): Add declaration.
3269 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3270 (_initialize_gnu_v2_abi): Add declaration.
3271 * frame-base.c (_initialize_frame_base): Add declaration.
3272 * doublest.c (floatformat_from_length): Make static.
3273 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3274 * frame.c (create_sentinel_frame): Make static.
3275 (_initialize_frame): Add declaration.
3276 * top.c (do_catch_errors): Make static.
3277 (gdb_rl_operate_and_get_next_completion): Make static.
3278 * typeprint.c: Include "typeprint.h".
3279 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3280 (sentinel_frame_this_id): Make static.
3281 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3282 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3283 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3284 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3285 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3286 * maint.c (maintenance_print_architecture): Make static.
3287 * signals/signals.c (_initialize_signals): Add declaration.
3288 * std-regs.c (_initialize_frame_reg): Add declaration.
3289 * jv-exp.y (push_variable): ISO C definition.
3290 (push_qualified_expression_name): Ditto.
3291 * memattr.c (_initialize_mem): Add declaration.
3292 * remote.c (remote_check_watch_resources): Make static.
3293 (remote_stopped_by_watchpoint): Make static.
3294 (remote_stopped_data_address): Make static.
3295 * d10v-tdep.c (nr_dmap_regs): Make static.
3296 (a0_regnum): Make static.
3297 (d10v_frame_unwind_cache): Make static.
3298 (d10v_frame_p): Make static.
3299 * osabi.c (show_osabi): Make static.
3300 (_initialize_gdb_osabi): Add extern declaration.
3301 * gdbtypes.c (make_qualified_type): Make static.
3302 (safe_parse_type): Make static.
3303 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3304 * macrotab.c (macro_bcache_free): Make static.
3305 * interps.c (interp_set_quiet): Make static.
3306 (interpreter_exec_cmd): Make static.
3307 * stack.h (select_frame_command): New file.
3308 * stack.c: Include "stack.h".
3309 (select_frame_command_wrapper): Delete function.
3310 (select_frame_command): Make global.
3311 * infcall.c: Include "infcall.h".
3312 * linespec.c: Include "linespec.h".
3313 * symfile.c (sections_overlap): Make static.
3314 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3315 * charset.c (_initialize_charset): Add missing prototype.
3316 * regcache.c (init_legacy_regcache_descr): Make static.
3317 (do_regcache_xfree): Make static.
3318 (regcache_xfer_part): Make static.
3319 (_initialize_regcache): Add missing prototype.
3320 * breakpoint.c (parse_breakpoint_sals): Make static.
3321 (breakpoint_sals_to_pc): Make static.
3322 * interps.h (clear_interpreter_hooks): ISO C declaration.
3323 * Makefile.in (stack_h): Define.
3324 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3325 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3326
3327 2003-06-08 Andrew Cagney <cagney@redhat.com>
3328
3329 * Makefile.in (d10v-tdep.o): Update dependencies.
3330 (SFILES): Add trad-frame.c.
3331 (trad_frame_h): Define.
3332 (COMMON_OBS): Add trad-frame.o.
3333 (trad-frame.o): Specify dependencies.
3334 * d10v-tdep.c: Include "trad-frame.h".
3335 (saved_regs_unwinder): Delete function.
3336 (d10v_frame_prev_register): Use trad_frame_prev_register.
3337 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3338 trad_frame", delete "regs" and "prev_sp".
3339 (prologue_find_regs): Use trad-frame.
3340 * trad-frame.h, trad-frame.c: New files.
3341
3342 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3343
3344 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3345
3346 2003-06-07 Adam Fedor <fedor@gnu.org>
3347
3348 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3349 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3350 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3351 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3352 resolve_msgsend_super, resolve_msgsend_super_stret):
3353 Use it.
3354
3355 2003-06-07 Andrew Cagney <cagney@redhat.com>
3356
3357 * symfile.h: Re-indent, clean up comments.
3358
3359 2003-06-07 Andrew Cagney <cagney@redhat.com>
3360
3361 * inferior.h (deprecated_write_sp): Replace
3362 generic_target_write_sp.
3363 * regcache.c (deprecated_write_sp): Replace
3364 generic_target_write_sp.
3365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3366 * vax-tdep.c (vax_gdbarch_init): Update.
3367 * v850-tdep.c (v850_gdbarch_init): Update.
3368 * sparc-tdep.c (sparc_gdbarch_init): Update.
3369 * sh-tdep.c (sh_gdbarch_init): Update.
3370 * s390-tdep.c (s390_gdbarch_init): Update.
3371 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3372 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3373 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3374 * mcore-tdep.c (mcore_gdbarch_init): Update.
3375 * m68k-tdep.c (m68k_gdbarch_init): Update.
3376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3377 * ia64-tdep.c (ia64_gdbarch_init): Update.
3378 * h8300-tdep.c (h8300_gdbarch_init): Update.
3379 * frv-tdep.c (frv_gdbarch_init): Update.
3380 * cris-tdep.c (cris_gdbarch_init): Update.
3381 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3382
3383 2003-06-07 Andrew Cagney <cagney@redhat.com>
3384
3385 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3386 Assert that PC_REGNUM is valid.
3387 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3388
3389 2003-06-07 Andrew Cagney <cagney@redhat.com>
3390
3391 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3392 * gdbarch.h, gdbarch.c: Regenerate.
3393 * mn10300-tdep.c: Include "gdb_assert.h".
3394 (mn10300_read_fp): New function.
3395 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3396 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3397 * ia64-tdep.c: Include "gdb_assert.h".
3398 (ia64_read_fp): New function.
3399 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3400 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3401 * regcache.c (generic_target_read_sp): Delete function.
3402 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3403 * inferior.h (generic_target_read_sp): Delete declaration.
3404 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3405 generic_target_read_sp.
3406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3407 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3408 * sh-tdep.c (sh_gdbarch_init): Ditto.
3409 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3410 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3411
3412 2003-06-07 Andrew Cagney <cagney@redhat.com>
3413
3414 * gdbarch.sh: Comment each field of startup_gdbarch.
3415 * gdbarch.h, gdbarch.c: Re-generate.
3416
3417 2003-06-07 Andrew Cagney <cagney@redhat.com>
3418
3419 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3420 * gdbarch.h, gdbarch.c: Re-generate.
3421 * regcache.c: Update comments on read_pc et.al.
3422 (generic_target_read_pc): Delete function.
3423 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3424 * inferior.h (generic_target_read_pc): Delete declaration.
3425 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3426 generic_target_read_pc.
3427 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3428 * sh-tdep.c (sh_gdbarch_init): Ditto.
3429 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3431
3432 2003-06-07 Andrew Cagney <cagney@redhat.com>
3433
3434 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3435 "index" with "special_local_sect". Use strcmp instead of STREQ.
3436 Append period to coments.
3437
3438 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3439
3440 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3441 (elfstab_offset_sections): Likewise.
3442 * gdb-stabs.h (stab_section_info): Likewise.
3443 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3444 * objfiles.c (objfile_relocate): Likewise.
3445 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3446 * remote.c (get_offsets): Likewise.
3447 (remote_cisco_objfile_relocate): Likewise.
3448 * somread.c (som_symfile_offsets): Likewise.
3449 * symfile.c (alloc_section_addr_info): New function.
3450 (build_section_addr_info_from_section_tab): Use it.
3451 (free_section_addr_info): Adjust.
3452 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3453 (syms_from_objfile): Allocate local_addr dynamically.
3454 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3455 dynamically.
3456 (add_symbol_file_command): Allocate sect_opts dynamically.
3457 (reread_symbols): Avoid use of SECT_OFF_MAX.
3458 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3459 (alloc_section_addr_info): Declare it.
3460 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3461 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3462 dynamically.
3463 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3464
3465 2003-06-06 Andrew Cagney <cagney@redhat.com>
3466
3467 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3468 (d10v_frame_unwind_cache): Do not set "return_pc".
3469
3470 2003-06-06 Michael Snyder <msnyder@redhat.com>
3471
3472 * h8300-tdep.c: Make tidy (long lines).
3473
3474 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3475
3476 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3477 to regcache_collect().
3478
3479 2003-06-05 J. Brobecker <brobecker@gnat.com>
3480
3481 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3482 pc_in_sigtramp multiarch method.
3483 (hppa_hpux_som_init_abi): Use it.
3484 (hppa_hpux_elf_init_abi): Likewise.
3485 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3486 macro has been multiarched.
3487 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3488 macro here, as hppa64 isn't multiarched yet.
3489
3490 2003-06-05 Andrew Cagney <cagney@redhat.com>
3491
3492 * Makefile.in (value_h): Add $(frame_h).
3493 * value.h: Include "frame.h".
3494 (struct value): Replace "frame_addr" with "frame_id".
3495 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3496 * values.c (allocate_value): Use VALUE_FRAME_ID.
3497 (value_copy): Use VALUE_FRAME_ID.
3498 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3499 * valops.c (value_assign): Update. Use frame_find_by_id.
3500
3501 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3502
3503 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3504 in each pass.
3505
3506 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3507
3508 * thread-db.c (check_event): For create/death event breakpoints,
3509 loop through all messages to ensure that we read the message
3510 corresponding to the breakpoint we are at.
3511
3512 2003-06-04 Michael Snyder <msnyder@redhat.com>
3513
3514 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3515
3516 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3517
3518 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3519 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3520 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3521 when handling .eh_frame sections.
3522
3523 2003-06-04 J. Brobecker <brobecker@gnat.com>
3524
3525 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3526 prepare_to_proceed procedure instead of the hppa-specific one.
3527 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3528
3529 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3530
3531 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3532 * config.in: Regenerated.
3533 * configure.in: Add test for syscall function and check for
3534 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3535 * configure: Regenerated.
3536 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3537 <sys/syscall.h>.
3538 (kill_lwp): New function that uses tkill syscall or
3539 uses kill, depending on whether threading model is nptl or not.
3540 All callers of kill() changed to use kill_lwp().
3541 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3542 see if all threads have already exited in the nptl model.
3543 (stop_and_resume_callback): New callback function used by the
3544 lin_lwp_wait thread exit handling code.
3545 (stop_wait_callback): Check for threads already having exited and
3546 delete such threads fromt the lwp list when discovered.
3547 (stop_callback): Don't assert retcode of kill call.
3548
3549 Roland McGrath <roland@redhat.com>
3550 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3551 nptl libthread_db.
3552
3553 2003-06-03 Richard Henderson <rth@redhat.com>
3554
3555 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3556 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3557 (alpha_sigtramp_frame_prev_register): Likewise.
3558 (alpha_heuristic_frame_prev_register): Likewise.
3559 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3560
3561 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3562 alpha-specific register id names.
3563 (alpha_mdebug_frame_unwind_cache): Likewise.
3564 (alpha_mdebug_frame_prev_register): Likewise.
3565
3566 2003-06-03 Richard Henderson <rth@redhat.com>
3567
3568 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3569 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3570 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3571 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3572 unwind routines.
3573 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3574 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3575 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3576
3577 * alpha-linux-tdep.c: Remove unnecessary includes.
3578 * Makefile.in (alpha-linux-tdep.o): Update.
3579
3580 2003-06-03 Richard Henderson <rth@redhat.com>
3581
3582 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3583 (alphabsd_fill_fpreg): Likewise.
3584
3585 2003-06-03 J. Brobecker <brobecker@gnat.com>
3586
3587 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3588 references to struct frame_info fields by calls to the equivalent
3589 accessors. Necessary now that frame_info is opaque.
3590
3591 2003-06-03 J. Brobecker <brobecker@gnat.com>
3592
3593 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3594 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3595 structure, field no longer exists.
3596
3597 2003-06-03 J. Brobecker <brobecker@gnat.com>
3598
3599 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3600 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3601
3602 2003-06-03 J. Brobecker <brobecker@gnat.com>
3603
3604 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3605 references to struct frame_info fields by calls to the equivalent
3606 accessors. Necessary now that frame_info is opaque.
3607
3608 2003-06-03 J. Brobecker <brobecker@gnat.com>
3609
3610 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3611 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3612 structure, field no longer exists.
3613
3614 2003-06-03 Theodore A. Roth <troth@openavr.org>
3615
3616 * remote.c (init_remote_state): Compute sizeof_g_packet by
3617 accumulation of the size of all registers instead of blindly using
3618 DEPRECATED_REGISTER_BYTES.
3619
3620 2003-06-03 Michael Snyder <msnyder@redhat.com>
3621
3622 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3623 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3624 for h8300sx.
3625
3626 2003-06-03 J. Brobecker <brobecker@gnat.com>
3627
3628 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3629 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3630
3631 2003-06-03 Andrew Cagney <cagney@redhat.com>
3632
3633 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3634 (sparc_convert_to_raw): Delete function.
3635 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3636 register_convert_to_virtual.
3637
3638 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3639
3640 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3641 layer if not dealing with a statically-linked threaded program.
3642
3643 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3644
3645 * solib.c (solib_open): Update comment to reflect actual search order.
3646
3647 2003-06-03 Andrew Cagney <cagney@redhat.com>
3648
3649 * frame.c (get_frame_memory_signed): New function.
3650 (get_frame_memory, get_frame_memory_unsigned): New function.
3651 (get_frame_arch): New function.
3652 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3653 (get_frame_memory, get_frame_unsigned_memory): Declare.
3654 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3655 get_frame_memory_unsigned and get_frame_arch.
3656 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3657
3658 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3659
3660 * MAINTAINERS (write after approval): Add myself.
3661
3662 2003-06-03 Jim Blandy <jimb@redhat.com>
3663
3664 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3665 elements of gregset_t are 64 bits each, but access registers
3666 are still 32 bits, so they're packed two per gregset_t
3667 element. Unpack/pack them properly.
3668
3669 2003-06-02 David Carlton <carlton@bactrian.org>
3670
3671 * linespec.c (find_methods): Break out code into
3672 add_matching_methods and add_constructors.
3673 (add_matching_methods): New.
3674 (add_constructors): Ditto.
3675
3676 2003-06-02 Andrew Cagney <cagney@redhat.com>
3677
3678 * sparc-tdep.c (sparc_print_registers): Delete call to
3679 REGISTER_CONVERTIBLE.
3680 (sparc_gdbarch_init): Do not set register_convertible.
3681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3682 * frv-tdep.c (frv_gdbarch_init): Ditto.
3683 * cris-tdep.c (cris_gdbarch_init): Ditto.
3684
3685 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3686
3687 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3688 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3689 (syms_from_objfile): Ditto.
3690
3691 2003-06-03 Andreas Schwab <schwab@suse.de>
3692
3693 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3694 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3695
3696 2003-06-02 Richard Henderson <rth@redhat.com>
3697
3698 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3699 a member of all_reggroup.
3700
3701 2003-06-02 Richard Henderson <rth@redhat.com>
3702
3703 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3704 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3705 (alpha_lds, alpha_sts): New.
3706 (alpha_convert_register_p): Change from _register_convertible.
3707 (alpha_register_to_value): Change from _convert_to_virtual;
3708 restructure and fail for type sizes other than 4 or 8.
3709 (alpha_value_to_register): Similarly.
3710 (alpha_extract_return_value): Use alpha_sts.
3711 (alpha_store_return_value): Use alpha_lds.
3712 (alpha_gdbarch_init): Update hooks.
3713
3714 2003-06-02 Richard Henderson <rth@redhat.com>
3715
3716 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3717 regnum identifiers.
3718 (alpha_sigtramp_register_address): Likewise.
3719
3720 2003-06-02 Richard Henderson <rth@redhat.com>
3721
3722 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3723 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3724 * alpha-tdep.h: Declare them.
3725
3726 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3727 Remove zerobuf. Don't error on UNIQUE.
3728 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3729 (ALPHA_REGSET_UNIQUE): Provide default.
3730 (supply_gregset): Use alpha_supply_int_regs.
3731 (fill_gregset): Use alpha_fill_int_regs.
3732 (supply_fpregset): Use alpha_supply_fp_regs.
3733 (fill_fpregset): Use alpha_fill_fp_regs.
3734 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3735 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3736 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3737 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3738 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3739 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3740
3741 2003-06-02 Richard Henderson <rth@redhat.com>
3742
3743 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3744
3745 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3746 (alpha_store_return_value): Likewise.
3747
3748 2003-06-02 David Carlton <carlton@math.stanford.edu>
3749
3750 * block.c (contained_in): Add 'const' to arguments.
3751 (block_function): Ditto.
3752 * block.h: Update declarations for block_function and
3753 contained_in.
3754
3755 2003-06-02 David Carlton <carlton@math.stanford.edu>
3756
3757 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3758 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3759 * p-valprint.c (pascal_val_print): Ditto.
3760 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3761
3762 2003-06-02 Richard Henderson <rth@redhat.com>
3763
3764 * alpha-tdep.c (alpha_push_dummy_call): Use
3765 builtin_type_ieee_double_little instead of builtin_type_double.
3766
3767 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3768 sign-extension of 32-bit values.
3769 (alpha_store_return_value): Similarly.
3770
3771 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3772 (alpha_extract_return_value): Likewise.
3773 (alpha_store_return_value): Likewise.
3774
3775 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3776 (alpha_store_return_value): Error on IEEE Quad floats.
3777
3778 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3779 (alpha_extract_struct_value_address): Likewise.
3780 (alpha_store_return_value): Likewise.
3781 (alpha_store_struct_return): Remove.
3782 (alpha_gdbarch_init): Update hook registration to match.
3783
3784 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3785 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3786 macros where appropriate.
3787 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3788 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3789
3790 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3791 for SP, GP; void_func_ptr for PC; non-language-specific types
3792 for all others.
3793 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3794
3795 2003-06-02 Richard Henderson <rth@redhat.com>
3796
3797 * top.h (lim_at_start): Declare.
3798 * main.c (captured_main): Set it.
3799 * top.c (lim_at_start): Define.
3800 (command_loop): Use it instead of &environ.
3801 * event-top.c (command_handler): Likewise.
3802
3803 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3804
3805 * mipsnbsd-tdep.c: Update copyright years.
3806 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3807
3808 2003-06-01 Richard Henderson <rth@redhat.com>
3809
3810 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3811 (alpha-linux-tdep.o): Update dependencies.
3812 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3813 * alpha-mdebug-tdep.c: Remove unneeded includes.
3814
3815 2003-06-01 Richard Henderson <rth@redhat.com>
3816
3817 * alpha-tdep.c (alpha_register_reggroup_p): New.
3818 (alpha_gdbarch_init): Register it.
3819
3820 2003-06-02 Andrew Cagney <cagney@redhat.com>
3821
3822 * dwarfread.c: Eliminate "register"
3823 (decode_die_type): Eliminate assignment within "if".
3824 (struct_type, decode_array_element_type): Ditto.
3825 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3826 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3827 (decode_modified_type, completedieinfo): Ditto.
3828 * block.c: Eliminate "register".
3829 (blockvector_for_pc_sect): Eliminate assignment within "if".
3830 * cp-support.h (struct symbol): Opaque declaration.
3831 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3832
3833 2003-06-01 Richard Henderson <rth@redhat.com>
3834
3835 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3836 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3837
3838 2003-06-01 Adam Fedor <fedor@gnu.org>
3839
3840 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3841 * gdbarch.[ch]: Regenerate.
3842 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3843 (hppa_gdbarch_init): Set it in the gdbarch vector.
3844 * i386-tdep.c (i386_fetch_pointer_argument): New
3845 (i386_gdbarch_init): Set it into gdbarch.
3846 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3847 (rs6000_gdbarch_init): Set it in gdbarch.
3848 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3849 (sparc_gdbarch_init): Set it in gdbarch.
3850
3851 2003-06-01 Andrew Cagney <cagney@redhat.com>
3852
3853 * defs.h (extract_address): Delete declaration.
3854 * findvar.c (extract_address): Delete function.
3855 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3856 extract_address with the inline equivalent,
3857 extract_unsigned_integer.
3858 (xstormy16_extract_struct_value_address): Ditto.
3859 (xstormy16_pointer_to_address): Ditto.
3860 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3861 * v850-tdep.c (v850_push_arguments): Ditto.
3862 (v850_extract_return_value): Ditto.
3863 (v850_extract_struct_value_address): Ditto.
3864 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3865 (sparcnbsd_get_longjmp_target_64): Ditto.
3866 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3867 (get_longjmp_target): Ditto.
3868 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3869 (sh64_extract_struct_value_address): Ditto.
3870 (sh_push_arguments): Ditto.
3871 (sh64_push_arguments): Ditto.
3872 * remote-vxsparc.c (vx_read_register): Ditto.
3873 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3874 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3875 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3876 * mipsv4-nat.c (get_longjmp_target): Ditto.
3877 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3878 * mips-nat.c (get_longjmp_target): Ditto.
3879 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3880 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3881 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3882 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3883 * irix5-nat.c (get_longjmp_target): Ditto.
3884 * irix4-nat.c (get_longjmp_target): Ditto.
3885 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3886 (ia64_push_arguments): Ditto.
3887 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3888 * h8300-tdep.c (h8300_push_arguments): Ditto.
3889 (h8300_store_return_value): Ditto.
3890 (h8300_extract_struct_value_address): Ditto.
3891 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3892 (frv_push_arguments): Ditto.
3893 * avr-tdep.c (avr_pointer_to_address): Ditto.
3894 (avr_push_arguments): Ditto.
3895 * arm-tdep.c (arm_push_dummy_call): Ditto.
3896 (arm_get_longjmp_target): Ditto.
3897 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3898 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3899 (alpha_get_longjmp_target): Ditto.
3900
3901 * solib-irix.c (extract_mips_address): Inline extract_address,
3902 replacing it with extract_signed_integer.
3903 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3904 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3905 (first_link_map_member, open_symbol_file_object): Ditto.
3906 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3907 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3908 (LM_NEXT, LM_NAME): Ditto.
3909
3910 2003-06-01 Richard Henderson <rth@redhat.com>
3911
3912 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3913 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3914 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3915 (alpha_cannot_store_register): Likewise.
3916 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3917 * alpha-nat.c (supply_gregset): Likewise.
3918 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3919
3920 2003-06-01 Andrew Cagney <cagney@redhat.com>
3921
3922 * infcall.c (call_function_by_hand): Update comment on
3923 DEPRECATED_DUMMY_WRITE_SP.
3924
3925 * mips-tdep.c (mips_gdbarch_init): Do not set
3926 deprecated_dummy_write_sp.
3927 (mips_eabi_push_dummy_call): Set the SP register.
3928 (mips_o64_push_dummy_call): Set the SP register.
3929 (mips_o32_push_dummy_call): Set the SP register.
3930 (mips_n32n64_push_dummy_call): Set the SP register.
3931
3932 2003-06-01 Richard Henderson <rth@redhat.com>
3933
3934 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3935 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3936 (supply_gregset): Likewise.
3937 * alpha-tdep.c (alpha_store_return_value): Likewise.
3938 (alpha_get_longjmp_target): Likewise.
3939 (alpha_register_name): Constify array.
3940 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3941 deprecated_register_size, deprecated_register_bytes,
3942 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3943 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3944 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3945
3946 2003-06-01 Richard Henderson <rth@redhat.com>
3947
3948 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3949 from arg_reg_buffer to regcache to avoid double conversion.
3950
3951 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3952
3953 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3954 SP_REGNUM.
3955 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3956 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3957
3958 2003-06-01 Richard Henderson <rth@redhat.com>
3959
3960 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3961 (decode_frame_entry): Set it. Skip FDE augmentation.
3962
3963 2003-06-01 Richard Henderson <rth@redhat.com>
3964
3965 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3966 not overlapping PC_REGNUM.
3967
3968 2003-06-01 Richard Henderson <rth@redhat.com>
3969
3970 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3971 alpha_push_arguments. Don't dump argument register data to
3972 the target stack. Fix float and 128-bit long double semantics.
3973 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3974 (alpha_fix_call_dummy): Remove.
3975 (alpha_call_dummy_words): Remove.
3976 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3977
3978 2003-06-01 Richard Henderson <rth@redhat.com>
3979
3980 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3981
3982 2003-06-01 Andrew Cagney <cagney@redhat.com>
3983
3984 * mips-tdep.c (is_mips16_addr): New function.
3985 (make_mips16_addr, unmake_mips16_addr): New functions.
3986 (pc_is_mips16, mips_fetch_instruction): Use.
3987 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3988 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3989 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3990 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3991 TARGET_MIPS.
3992 * config/mips/tm-mips.h: Update copyright.
3993 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3994 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3995 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3996 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3997 (TM_PRINT_INSN_MACH): Delete.
3998 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3999
4000 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4001 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4002 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4003 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4004 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4005 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4006 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4007 mips*-*-riscos* and mips*-*-sysv* onto mips.
4008 * config/mips/mips64.mt: New file.
4009 * config/mips/mips.mt: New file.
4010 * config/mips/littlemips.mt: Delete file.
4011 * config/mips/decstation.mt: Delete file.
4012 * config/mips/vr4300el.mt: Delete file.
4013 * config/mips/vr5000el.mt: Delete file.
4014 * config/mips/vr5000.mt: Delete file.
4015 * config/mips/vr4100.mt: Delete file.
4016 * config/mips/vr4xxxel.mt: Delete file.
4017 * config/mips/vr4300.mt: Delete file.
4018 * config/mips/vr4xxx.mt: Delete file.
4019 * config/mips/bigmips.mt: Delete file.
4020 * config/mips/bigmips64.mt: Delete file.
4021 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4022 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4023 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4024 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4025 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4026 "tm-bigmips.h".
4027 * config/mips/tm-irix3.h: Ditto.
4028 * config/mips/tm-mipsv4.h: Ditto.
4029 * config/mips/tm-embed.h: Ditto.
4030 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4031 "tm-bigmips64.h".
4032 * config/mips/tm-vr5000el.h: Delete file.
4033 * config/mips/tm-tx39l.h: Delete file.
4034 * config/mips/tm-vr4300el.h: Delete file.
4035 * config/mips/tm-vr4xxxel.h: Delete file.
4036 * config/mips/tm-vr4300.h: Delete file.
4037 * config/mips/tm-vr4100.h: Delete file.
4038 * config/mips/tm-vr4xxx.h: Delete file.
4039 * config/mips/tm-vr5000.h: Delete file.
4040 * config/mips/tm-embedl64.h: Delete file.
4041 * config/mips/tm-embedl.h: Delete file.
4042 * config/mips/tm-embed64.h: Delete file.
4043 * config/mips/tm-bigmips64.h: Delete file.
4044 * config/mips/tm-bigmips.h: Delete file.
4045
4046 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4047
4048 Fix gdb/1216.
4049 * shnbsd-nat.c: Include "sh-tdep.h".
4050
4051 From Richard Henderson <rth@redhat.com>:
4052 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4053
4054 2003-05-31 Andrew Cagney <cagney@redhat.com>
4055
4056 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4057 forward declaration.
4058 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4059 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4060 (mips_find_saved_regs): Use set_reg_offset.
4061 (mips_frame_init_saved_regs): Delete function.
4062 (mips_pop_frame): Call mips_find_saved_regs instead of
4063 DEPRECATED_FRAME_INIT_SAVED_REGS.
4064
4065 2003-05-31 Andrew Cagney <cagney@redhat.com>
4066
4067 * mips-tdep.c (mips_gdbarch_init): Do not set
4068 deprecated_max_register_raw_size, register_virtual_size, and
4069 deprecated_max_register_virtual_size.
4070
4071 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4072
4073 * i386-tdep.c: Include "dwarf2-frame.h".
4074 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4075 * Makefile.in (i386-tdep.o): Update dependencies.
4076
4077 * dwarf2-frame.c, dwarf2-frame.h: New files.
4078 * Makefile.in (SFILES): Add dwarf2-frame.c.
4079 (dwarf2_frame_h): Define.
4080 (COMMON_OBS): Add dwarf2-frame.o.
4081 (dwarf2-frame.o): Add dependencies.
4082
4083 2003-05-31 Andreas Jaeger <aj@suse.de>
4084
4085 * x86-64-linux-nat.c: Fix comment.
4086
4087 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4088
4089 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4090 function signature.
4091
4092 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4093 have a sigcontext_addr handler.
4094 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4095 sigcontext_addr handler.
4096
4097 2003-05-31 Andrew Cagney <cagney@redhat.com>
4098
4099 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4100 (print_fp_register_row): Replace do_fp_register_row.
4101 (mips_print_fp_register): Add "file" and "frame" parameters.
4102 (mips_print_register): Add "file" and "frame" parameters.
4103 (mips_print_registers_info): Replace mips_do_registers_info.
4104 (mips_gdbarch_init): Set print_registers_info instead of
4105 deprecated_do_registers_info.
4106 (mips_read_fp_register_single): Add "frame" parameter.
4107 (mips_read_fp_register_double): Add "frame" parameter.
4108
4109 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4110
4111 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4112 Fixes a bug where GDB would print the wrong register names for
4113 targets without SSE.
4114
4115 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4116 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4117 registers.
4118
4119 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4120 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4121 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4122 TDEP->sc_sp_offset.
4123
4124 From Michal Ludvig <mludvig@suse.cz>:
4125 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4126 and `sc_num_regs'.
4127 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4128 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4129 I386_ST0_REGNUM): Move here from...
4130 * i386-tdep.c: ... here.
4131 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4132 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4133 registers if possible.
4134 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4135 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4136 Remove variables.
4137 (i386bsd_sc_reg_offset): New variable.
4138 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4139 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4140 TDEP->sc_sp_offset.
4141 (i386fbsd_sc_reg_offset): New variable.
4142 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4143 TDEP->sc_num_regs.
4144 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4145 variables.
4146 (i386fbsd4_sc_reg_offset): New variable.
4147 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4148 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4149 TDEP->sc_sp_offset.
4150 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4151 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4152 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4153 Remove variables.
4154 (i386nbsd_sc_reg_offset): New variable.
4155 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4156 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4157 TDEP->sc_sp_offset.
4158 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4159 Remove variables.
4160 (i386obsd_sc_reg_offset): New variable.
4161 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4162 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4163 TDEP->sc_sp_offset.
4164 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4165 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4166 for frame pointer offset in `struct sigcontext'.
4167
4168 2003-05-31 Andrew Cagney <cagney@redhat.com>
4169
4170 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4171 architecture methods call_dummy_words, sizeof_call_dummy_words,
4172 push_return_address, store_struct_return, and fix_call_dummy. Set
4173 push_dummy_call instead of deprecated_push_arguments.
4174 (mips_store_struct_return): Delete function.
4175 (mips_fix_call_dummy): Delete function.
4176 (mips_push_return_address): Delete function.
4177 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4178 RA_REGNUM and T9_REGNUM.
4179 (mips_n32n64_push_dummy_call): Ditto for
4180 mips_n32n64_push_arguments.
4181 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4182 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4183
4184 2003-05-31 Andrew Cagney <cagney@redhat.com>
4185
4186 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4187 "dummy_addr" to "bp_addr".
4188 * infcall.c (call_function_by_hand): Pass "funaddr" to
4189 gdbarch_push_dummy_call.
4190 * gdbarch.h, gdbarch.c: Re-generate.
4191 * i386-tdep.c (i386_push_dummy_call): Update.
4192 * arm-tdep.c (arm_push_dummy_call): Update.
4193 * d10v-tdep.c (d10v_push_dummy_call): Update.
4194
4195 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4196
4197 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4198 variable declarations.
4199 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4200 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4201 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4202 x86_64_init_frame_pc, x86_64_init_frame_pc,
4203 x86_64_function_has_prologue): Remove prototypes.
4204 (X86_64_NUM_GREGS): New define.
4205 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4206 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4207 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4208 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4209 XMM1_REGNUM): Remove defines.
4210 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4211 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4212 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4213 X86_64_XMM1_REGNUM): New defines.
4214 (struct x86_64_register_info): Renamed from `struct
4215 register_info'. Remove `size' member.
4216 (x86_64_register_info_table): Remove variable.
4217 (x86_64_register_info): New variable.
4218 (X86_64_NUM_REGS): New define.
4219 (X86_64_NUM_GREGS): Remove define.
4220 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4221 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4222 Remove variables.
4223 (x86_54_dwarf2_reg_to_regnum): Remove function.
4224 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4225 (x86_64_dwarf_reg_to_regnum): New function.
4226 (x86_64_register_name): Rewrite.
4227 (x86_64_register_raw_size): Remove function.
4228 (x86_64_register_byte_table): Remove variable.
4229 (x86_64_register_byte): Remove function.
4230 (x86_64_register_virtual_type): Remove function.
4231 (x86_64_register_type): New function.
4232 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4233 x86_64_register_convert_to_raw): Remove functions.
4234 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4235 (x86_64_use_struct_convention): Make static. Adjust for renamed
4236 defines.
4237 (x86_64_frame_init_saved_regs): Remove function.
4238 (x86_64_push_arguments): Make static. Change to accept a regcache
4239 as argument.
4240 (x86_64_store_return_value, x86_64_extract_return_value): Make
4241 static. Rewrite based on i386 counterparts.
4242 (x86_64_push_dummy_call): New function.
4243 (X86_64_NUM_SAVED_REGS): New define.
4244 (x86_64_register_number): Remove function.
4245 (x86_64_store_struct_return): Remove function.
4246 (x86_64_frameless_function_invocation,
4247 x86_64_function_has_prologue): Remove functions.
4248 (PROLOG_BUFSIZE): Remove define.
4249 (struct x86_64_frame_cache): New structure.
4250 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4251 x86_64_frame_cache, x86_64_frame_this_id,
4252 x86_64_frame_prev_register, x86_64_frame_p,
4253 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4254 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4255 functions.
4256 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4257 variables.
4258 (x86_64_skip_prologue): Rewrite in terms of
4259 x86_64_analyze_prologue.
4260 (x86_64_frame_base_address): New function.
4261 (x86_64_frame_base): New variable.
4262 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4263 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4264 set deprecated_fp_regnum, deprecated_register_size,
4265 deprecated_register_bytes, register_raw_size, register_byte,
4266 register_virtual_type, register_convertiable,
4267 register_convert_to_virtual, convert_to_raw,
4268 deprecated_get_saved_register, deprecated_target_read_fp,
4269 deprecated_push_arguments, deprecated_push_return_address,
4270 deprecated_pop_frame, deprecated_store_struct_return,
4271 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4272 frameless_function_invocation, deprecated_frame_saved_pc,
4273 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4274 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4275 deprecated_init_frame_pc and virtual_frame_pointer. Call
4276 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4277 and x86_64_frame_p. Call frame_base_set_default to register
4278 x86_64_frame_base.
4279 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4280 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4281 (_initialize_x86_64_tdep): Remove function.
4282 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4283 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4284 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4285 define.
4286 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4287 (x86_64_linux_sigcontext_addr): Rewrite.
4288 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4289 x86_64_linux_frame_saved_pc): Remove functions.
4290 (x86_64_linux_pc_in_sigtramp): Renamed from
4291 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4292 trampoline.
4293 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4294 Remove_functions.
4295 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4296 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4297 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4298 (x86_64_regmap): Rename to regmap.
4299 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4300 x86_64_num_gregs.
4301 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4302 x86_64_regmap.
4303 (x86_64_fxsave_offset): Remove function.
4304 (supply_fpregset): Simply call x86_64_supply_fxsave.
4305 (fill_fpregset): Simply call x86_64_fill_fxsave.
4306 (fetch_inferior_registers, store_inferior_registers): Avoid
4307 asignment in if-statement.
4308 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4309 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4310 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4311 (fetch_core_registers): Remove function.
4312 (linux_elf_core_fns): Remove.
4313 (offsetoff): Don't define.
4314 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4315 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4316 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4317 add core-regset.o.
4318 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4319 protection against multiple includes instead of NM_X86_64_h. Add
4320 various comments. Include "config/nm-linux.h". Don't include
4321 <signal.h>.
4322 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4323 GET_THREAD_SIGNALS): Remove defines.
4324 (x86_64_register_u_addr, kernel_u_size,
4325 lin_thread_get_thread_signals): Remove prototypes.
4326 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4327 [HAVE_LINK_H]: Don't include "solib.h".
4328 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4329 * config/i386/tm-x86-64linux.h: Fix comments.
4330 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4331 x86-64-tdep.o): Update dependencies.
4332
4333 2003-05-30 Andrew Cagney <cagney@redhat.com>
4334
4335 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4336 Change parameter type to a "struct regcache *".
4337
4338 * gdbarch.sh: Regardless of the multi-arch level, always define
4339 the macro when not already defined.
4340 * gdbarch.h, gdbarch.c: Re-generate.
4341
4342 2003-05-30 Richard Henderson <rth@redhat.com>
4343
4344 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4345 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4346 (alpha_mdebug_frame_this_id): Likewise.
4347 (alpha_mdebug_frame_prev_register): Likewise.
4348 (alpha_mdebug_frame_base_address): Likewise.
4349 (alpha_mdebug_frame_locals_address): Likewise.
4350 (alpha_mdebug_frame_args_address): Likewise.
4351 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4352 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4353 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4354 loop increment.
4355 (alpha_heuristic_frame_this_id): Make static.
4356 (alpha_heuristic_frame_prev_register): Likewise.
4357 (alpha_heuristic_frame_base_address): Likewise.
4358 * alpha-tdep.h: Update.
4359
4360 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4361
4362 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4363 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4364 defenitions.
4365 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4366 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4367 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4368 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4369 I386_ST0_REGNUM): New defines.
4370 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4371 codestream_get): Remove define.
4372 (codestream_next_addr, condestream_addr, condestream_buf,
4373 codestream_off, codestream_cnt): Remove variables.
4374 (codestream_fill, codestream_seek, codestream_read): Remove
4375 functions.
4376 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4377 functionality.
4378 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4379 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4380 i386_frame_saved_pc, i386_saved_pc_after_call,
4381 i386_frame_num_args, i386_frame_init_saved_regs,
4382 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4383 i386_push_arguments): Remove functions.
4384 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4385 functionality. Use i386_analyze_prologue instead of
4386 i386_get_frame_setup.
4387 (I386_NUM_SAVED_REGS): New define.
4388 (struct i386_frame_cache): New structure.
4389 (i386_alloc_frame_cache, i386_analyze_struct_return,
4390 i386_skip_probe, i386_analyze_frame_setup,
4391 i386_analyze_register_saves, i386_analyze_prologue,
4392 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4393 i386_frame_prev_register, i386_sigtramp_frame_cache,
4394 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4395 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4396 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4397 New functions.
4398 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4399 New variables.
4400 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4401 I386_EAX_REGNUM and I386_EDX_REGNUM.
4402 (i386_extract_return_value, i386_store_return_value): Use
4403 I386_ST0_REGNUM where appropriate.
4404 (i386_extract_struct_value_address): Rewrite to use extract_address.
4405 (i386_svr4_pc_in_sigtramp): Add comment.
4406 (i386_svr4_sigcontext_addr): Rewrite.
4407 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4408 TDEP->sc_sp_offset.
4409 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4410 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4411 of new defines. Set push_dummy_call, don't set
4412 deprecated_push_arguments, deprecated_push_return_address,
4413 deprecated_pop_frame. Don't set parm_boundary. Don't set
4414 deprecated_frame_chain, deprecated_frame_saved_pc,
4415 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4416 save_dummy_frame_tos, unwind_pc. Call
4417 frame_unwind_append_predicate and frame_base_set_default. Don't
4418 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4419 Don't set frameless_function_invocation. Don't set
4420 deprecated_register_bytes, deprecated_register_size,
4421 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4422 * i386-linux-tdep.c: Fix formatting in some comments.
4423 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4424 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4425 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4426 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4427 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4428 redundant parentheses.
4429 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4430 (i386_linux_sigcontext_addr): Use it. Rewrite.
4431 (find_minsym_and_objfile): Change name of second argument.
4432 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4433 changed. Use frame_pc_unwind instead of
4434 DEPRECATED_SAVED_PC_AFTER_CALL.
4435 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4436 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4437 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4438 unwinder.
4439 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4440 "dummy-frame.h".
4441 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4442 (_initialize_i386_cygwin_tdep): New prototype.
4443 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4444 deprecated_frame_chain_valid.
4445 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4446 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4447 Rely on the SVR4 defaults.
4448 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4449 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4450
4451 2003-05-30 Andrew Cagney <cagney@redhat.com>
4452
4453 * infcall.c (call_function_by_hand): Always call
4454 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4455
4456 2003-05-30 Richard Henderson <rth@redhat.com>
4457
4458 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4459 increment.
4460
4461 2003-05-29 Jim Blandy <jimb@redhat.com>
4462
4463 Use gdbarch methods for solib stuff on PowerPC Linux.
4464 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4465 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4466 show through.
4467 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4468 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4469 giving the same effect as the #definitions above.
4470
4471 2003-05-29 Adam Fedor <fedor@gnu.org>
4472
4473 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4474 (find_implementation_from_class): Replace it with the standard
4475 case i.e. do nothing.
4476
4477 2003-05-29 Richard Henderson <rth@redhat.com>
4478
4479 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4480 (alpha_linux_sigtramp_offset): Use it. Make static.
4481 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4482 update for new frame model.
4483 * alpha-mdebug-tdep.c: New file.
4484 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4485 (alpha_osf1_init_abi): Install it.
4486 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4487 (linked_proc_desc_table): Remove.
4488 (alpha_frame_past_sigtramp_frame): Remove.
4489 (alpha_dynamic_sigtramp_offset): Remove.
4490 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4491 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4492 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4493 (push_sigtramp_desc): Remove.
4494 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4495 (alpha_cannot_store_register): Likewise.
4496 (alpha_sigcontext_addr): Remove.
4497 (alpha_find_saved_regs): Remove.
4498 (alpha_frame_init_saved_regs): Remove.
4499 (alpha_init_frame_pc_first): Remove.
4500 (read_next_frame_reg): Remove.
4501 (alpha_frame_saved_pc): Remove.
4502 (alpha_saved_pc_after_call): Remove.
4503 (temp_proc_desc, temp_saved_regs): Remove.
4504 (alpha_about_to_return): Remove.
4505 (cached_proc_desc): Remove.
4506 (alpha_frame_chain): Remove.
4507 (alpha_print_extra_frame_info): Remove.
4508 (alpha_init_extra_frame_info): Remove.
4509 (alpha_frame_locals_address): Remove.
4510 (alpha_frame_args_address): Remove.
4511 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4512 (alpha_push_dummy_frame): Remove.
4513 (alpha_pop_frame): Remove.
4514 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4515 (alpha_read_insn): New.
4516 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4517 for different insn encodings.
4518 (alpha_in_lenient_prologue): Remove.
4519 (struct alpha_sigtramp_unwind_cache): New.
4520 (alpha_sigtramp_frame_unwind_cache): New.
4521 (alpha_sigtramp_register_address): New.
4522 (alpha_sigtramp_frame_this_id): New.
4523 (alpha_sigtramp_frame_prev_register): New.
4524 (alpha_sigtramp_frame_unwind): New.
4525 (alpha_sigtramp_frame_p): New.
4526 (struct alpha_heuristic_unwind_cache): New.
4527 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4528 don't count nop insns that occur between functions.
4529 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4530 heuristic_proc_desc, but without the mdebug wrapping.
4531 (alpha_heuristic_frame_this_id): New.
4532 (alpha_heuristic_frame_prev_register): New.
4533 (alpha_heuristic_frame_unwind): New.
4534 (alpha_heuristic_frame_p): New.
4535 (alpha_heuristic_frame_base_address): New.
4536 (alpha_heuristic_frame_base): New.
4537 (alpha_unwind_dummy_id): New.
4538 (alpha_unwind_pc): New.
4539 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4540 frame related deprecated initializations; install replacements.
4541 (alpha_dump_tdep): Remove.
4542 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4543 (alpha_read_insn, alpha_after_prologue,
4544 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4545 alpha_heuristic_frame_prev_register,
4546 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4547 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4548 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4549 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4550
4551 2003-05-29 Andrew Cagney <cagney@redhat.com>
4552
4553 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4554 dependant on the availability of ASSERT_FUNCTION.
4555 (ASSERT_FUNCTION): Do not define when there is no function name.
4556
4557 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4558
4559 From Jimi X <jimix@watson.ibm.com>:
4560 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4561
4562 2003-05-28 Jim Blandy <jimb@redhat.com>
4563
4564 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4565 argument to ptrace to int; the system headers should give it the
4566 right type, and pointers don't fit in ints on powerpc64-*-*.
4567
4568 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4569
4570 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4571 DW_TAG_catch_block.
4572
4573 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4574
4575 * stabsread.c (dbx_lookup_type): Make static.
4576 (read_type): Ditto.
4577 (add_undefined_type): Ditto.
4578 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4579 not export.
4580
4581 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4582
4583 * hpread.c (hpread_has_name): Make static.
4584 (hpread_psymtab_to_symtab): Ditto.
4585 (file_exists): Ditto.
4586 (hpread_call_pxdb): Ditto.
4587 (hpread_pxdb_needed): Ditto.
4588 (hpread_quick_traverse): Ditto.
4589 (hpread_get_header): Ditto.
4590 (hpread_get_lntt): Ditto.
4591 (hpread_get_slt): Ditto.
4592 (class_of): Ditto.
4593
4594 2003-05-25 Andreas Schwab <schwab@suse.de>
4595
4596 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4597 stack_align and deprecated_extra_stack_alignment_needed.
4598 (m68k_stack_align): Delete.
4599
4600 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4601 (m68k_register_virtual_size): Likewise.
4602 (altos_skip_prologue): Remove obsolete function.
4603 (isi_frame_num_args): Likewise.
4604 (news_frame_num_args): Likewise.
4605 (m68k_fix_call_dummy): Make static.
4606 (m68k_push_dummy_frame): Likewise.
4607 (m68k_pop_frame): Likewise.
4608 (m68k_skip_prologue): Likewise.
4609 (m68k_frame_init_saved_regs): Likewise.
4610 (m68k_saved_pc_after_call): Likewise.
4611 (m68k_get_longjmp_target): Make multi-arch.
4612 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4613 structure. Register m68k_get_longjmp_target if enabled.
4614 * m68k-tdep.h (struct gdbarch_tdep): Define.
4615 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4616
4617 * Makefile.in (config.status): Also depend on configure.tgt
4618 and configure.host.
4619 (m68klinux-tdep.o): Update dependencies.
4620 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4621 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4622 (M68K_LINUX_JB_PC): Define.
4623 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4624 and take additional parameter.
4625 (m68k_linux_sigtramp_saved_pc): Update.
4626 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4627 m68k_linux_pc_in_sigtramp, in_plt_section,
4628 find_solib_trampoline_target.
4629 * config/m68k/tm-linux.h: Don't include any tm headers.
4630 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4631 (JB_ELEMENT_SIZE): Likewise.
4632 (JB_PC): Likewise.
4633 (GET_LONGJMP_TARGET): Likewise.
4634 (IN_SIGTRAMP): Likewise.
4635 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4636
4637 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4638
4639 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4640 (sparc32_push_arguments): Re-implement by calling
4641 sparc32_do_push_arguments.
4642
4643 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4644
4645 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4646 SPARC_O1_REGNUM): New defines.
4647 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4648 (sparc32_store_return_value): New function.
4649 (sparc_extract_struct_value_address): Rewrite to operate on a
4650 regcache.
4651 (sparc_gdbarch_init): Don't set
4652 deprecated_extract_struct_value_address. Set
4653 extract_struct_value_address instead. Don't set
4654 deprecated_extract_return_value and deprecated_store_return_value
4655 for 32-bit targets. Set extract_return_value and
4656 store_return_value instead.
4657 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4658 DEPRECTAED_EXTRACT_RETURN_VALUE,
4659 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4660 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4661 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4662 (sparc_store_return_value): Remove prototype.
4663 (sparc32_store_return_value): New prototype.
4664 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4665 Adjust prototypes.
4666
4667 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4668
4669 * sparcnbsd-tdep.c: Include "gdb_string.h".
4670
4671 2003-05-23 Andrew Cagney <cagney@redhat.com>
4672
4673 * p-valprint.c (pascal_val_print): Replace extract_address with
4674 the inline equivalent extract_unsigned_integer.
4675 * jv-valprint.c (java_value_print): Ditto.
4676 * ada-valprint.c (ada_val_print_1): Ditto.
4677 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4678
4679 2003-05-23 Theodore A. Roth <troth@openavr.org>
4680
4681 * blockframe.c (frameless_look_for_prologue): Remove unused
4682 after_prologue variable.
4683
4684 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4685
4686 * blockframe.c (get_pc_function_start): Rewrite to avoid
4687 asignments in if-statements.
4688
4689 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4690
4691 Committed by Elena Zannoni <ezannoni@redhat.com>.
4692 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4693 files, don't relocate absolute symbols (and do use mst_abs).
4694
4695 2003-05-23 Andrew Cagney <cagney@redhat.com>
4696
4697 * objc-lang.c: Include "gdb_assert.h".
4698 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4699 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4700 (gdb_check, gdb_check_fatal): Delete functions.
4701 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4702 gdb_assert.
4703 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4704 * Makefile.in (objc-lang.o): Update dependencies.
4705
4706 2003-05-22 Ian Lance Taylor <ian@airs.com>
4707
4708 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4709 with fprintf_filtered, not fprintf_unfiltered.
4710
4711 2003-05-22 Andrew Cagney <cagney@redhat.com>
4712
4713 * stack.c (frame_info): Inline extract_address, replacing it with
4714 extract_unsigned_integer.
4715 * findvar.c (unsigned_pointer_to_address): Ditto.
4716 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4717 * dwarf2expr.c (dwarf2_read_address): Ditto.
4718 * frame.c (frame_pc_unwind): Update comment.
4719 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4720
4721 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4722
4723 * infptrace.c (detach): Call print_sys_errmsg rather than
4724 perror_with_name to issue warning message when errno is non-zero
4725 after calling ptrace detach.
4726
4727 2003-05-21 J. Brobecker <brobecker@gnat.com>
4728
4729 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4730 macro definitions from here...
4731 * hppa-tdep.c: ...to there.
4732
4733 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4734
4735 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4736 register_ptrace_addr(). Fix all callers.
4737
4738 2003-05-21 Andreas Schwab <schwab@suse.de>
4739
4740 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4741 dependencies.
4742 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4743 end.
4744 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4745 (_initialize_m68k_linux_tdep): New function.
4746 (m68k_linux_frame_saved_pc): Make static.
4747 (m68k_linux_extract_return_value): Likewise.
4748 (m68k_linux_store_return_value): Likewise.
4749 (m68k_linux_extract_struct_value_address): Likewise.
4750 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4751 Remove.
4752 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4753 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4754 (DEPRECATED_FRAME_SAVED_PC): Remove.
4755
4756 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4757
4758 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4759 regset numbering rather than our own.
4760
4761 2003-05-19 David Carlton <carlton@bactrian.org>
4762
4763 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4764
4765 2003-05-19 David Carlton <carlton@bactrian.org>
4766
4767 Partial fix for PR c++/827.
4768 * cp-support.h: Include symtab.h.
4769 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4770 * cp-namespace.c: Update contributors.
4771 (cp_lookup_symbol_nonlocal): New.
4772 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4773 (lookup_symbol_file): Ditto.
4774 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4775 * block.h: Declare block_scope, block_using, block_global_block.
4776 * block.c (block_scope): New.
4777 (block_using, block_global_block): Ditto.
4778 * Makefile.in (cp_support_h): Depend on symtab_h.
4779 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4780
4781 2003-05-19 David Carlton <carlton@bactrian.org>
4782
4783 * language.h (struct language_defn): Add 'la_value_of_this'
4784 and 'la_lookup_symbol_nonlocal' members.
4785 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4786 lookup_symbol_static, lookup_symbol_global,
4787 lookup_symbol_aux_block.
4788 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4789 if we should search fields of this and how to do static/global
4790 lookup.
4791 (lookup_symbol_aux_block): Make extern.
4792 (basic_lookup_symbol_nonlocal): New.
4793 (lookup_symbol_static, lookup_symbol_global): Ditto.
4794 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4795 'la_lookup_symbol_nonlocal' members.
4796 * c-lang.c (c_language_defn, cplus_language_defn)
4797 (asm_language_defn, minimal_language_defn): Ditto.
4798 * jv-lang.c (java_language_defn): Ditto.
4799 * language.c (unknown_language_defn, auto_language_defn)
4800 (local_language_defn): Ditto.
4801 * m2-lang.c (m2_language_defn): Ditto.
4802 * objc-lang.c (objc_language_defn): Ditto.
4803 * scm-lang.c (scm_language_defn): Ditto.
4804 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4805 * p-lang.c (pascal_language_defn): Ditto for both.
4806 * Makefile.in (f-lang.o): Depend on value_h.
4807 (p-lang.o): Ditto.
4808
4809 2003-05-19 David Carlton <carlton@bactrian.org>
4810
4811 * block.h: Declare block_static_block.
4812 * block.c (block_static_block): New.
4813 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4814 lookup_symbol_aux_local, calling block_static_block instead.
4815 (lookup_symbol_aux_local): Delete 'static_block' argument.
4816
4817 2003-05-19 David Carlton <carlton@bactrian.org>
4818
4819 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4820
4821 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4822
4823 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4824 register numbers mapping.
4825
4826 2003-05-18 Adam Fedor <fedor@gnu.org>
4827
4828 * symtab.c (completion_list_objc_symbol): New function.
4829 (make_symbol_completion_list): Use it to add ObjC symbols
4830 when looking though the list.
4831 (language_search_unquoted_string): New function.
4832 (make_file_symbol_completion_list): Use it.
4833
4834 2003-05-18 Andreas Schwab <schwab@suse.de>
4835
4836 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4837 dependencies.
4838 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4839 as m68k_linux_extract_return_value.
4840 (DEPRECATED_STORE_RETURN_VALUE): Define as
4841 m68k_linux_store_return_value.
4842 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4843 m68k_linux_extract_struct_value_address.
4844 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4845 get_next_frame, get_frame_base, get_frame_pc.
4846 (m68k_linux_frame_saved_pc): Use get_frame_base.
4847 (m68k_linux_extract_return_value): New function.
4848 (m68k_linux_store_return_value): New function.
4849 (m68k_linux_extract_struct_value_address): New function.
4850 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4851
4852 * c-exp.y (typebase): Remove duplicate occurence of
4853 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4854 of lookup_signed_typename.
4855
4856 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4857
4858 * dwarf2loc.c (find_location_expression): Change type of second
4859 argument to `size_t *'.
4860 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4861 for size variable.
4862
4863 2003-05-18 David Carlton <carlton@bactrian.org>
4864
4865 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4866 'linkage_name'. Add comment.
4867 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4868 'linkage_name'.
4869 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4870 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4871 (lookup_block_symbol): Ditto.
4872
4873 2003-05-16 Andrew Cagney <cagney@redhat.com>
4874
4875 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4876 * gdbarch.h, gdbarch.c: Re-generate.
4877 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4878 * TODO (REGISTER_BYTES): Delete reference.
4879 * alpha-tdep.c (alpha_gdbarch_init): Update.
4880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4881 * x86-64-tdep.c (x86_64_init_abi): Update.
4882 * vax-tdep.c (vax_gdbarch_init): Update.
4883 * v850-tdep.c (v850_gdbarch_init): Update.
4884 * sparc-tdep.c (sparc_gdbarch_init): Update.
4885 * sh-tdep.c (sh_gdbarch_init): Update.
4886 * s390-tdep.c (s390_gdbarch_init): Update.
4887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4888 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4889 (ns32k_gdbarch_init_32382): Update.
4890 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4891 * mcore-tdep.c (mcore_gdbarch_init): Update.
4892 * m68k-tdep.c (m68k_gdbarch_init): Update.
4893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4894 * ia64-tdep.c (ia64_gdbarch_init): Update.
4895 * i386-tdep.c (i386_gdbarch_init): Update.
4896 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4897 * hppa-tdep.c (hppa_gdbarch_init): Update.
4898 * h8300-tdep.c (h8300_gdbarch_init): Update.
4899 * frv-tdep.c (frv_gdbarch_init): Update.
4900 * cris-tdep.c (cris_gdbarch_init): Update.
4901 * avr-tdep.c (avr_gdbarch_init): Update.
4902 * arm-tdep.c (arm_gdbarch_init): Update.
4903 * sparc-tdep.c (sparc_pop_frame): Update.
4904 * rs6000-tdep.c (rs6000_pop_frame): Update.
4905 * remote.c (init_remote_state): Update.
4906 (remote_prepare_to_store): Update.
4907 * remote-vx.c (vx_prepare_to_store): Update.
4908 * remote-sds.c (sds_fetch_registers): Update.
4909 (sds_prepare_to_store): Update.
4910 * remote-array.c: Update.
4911 * regcache.c (init_legacy_regcache_descr): Update.
4912 (init_regcache_descr): Update.
4913 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4914 (mips_o64_extract_return_value): Update.
4915 * irix5-nat.c (fetch_core_registers): Update.
4916 * irix4-nat.c (fetch_core_registers): Update.
4917 * i386-tdep.h: Update.
4918 * hppa-tdep.c (pa_do_registers_info): Update.
4919 (pa_do_strcat_registers_info): Update.
4920 * cris-tdep.c (cris_register_bytes_ok): Update.
4921 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4922 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4923 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4924 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4925 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4926 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4927 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4928 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4929 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4930 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4931 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4932 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4933 (REGISTER_BYTES_OK): Update.
4934 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4935 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4936
4937 2003-05-16 Ian Lance Taylor <ian@airs.com>
4938
4939 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4940 (vax_print_insn, print_insn_arg): Remove static functions.
4941 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4942 print_insn_vax from opcodes library.
4943 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4944
4945 2003-05-15 Andrew Cagney <cagney@redhat.com>
4946
4947 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4948 * target.h (memory_breakpoint_from_pc): Delete declaration.
4949 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4950 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4951 * monitor.c (monitor_insert_breakpoint): Use
4952 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4953 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4954 * gdbarch.h, gdbarch.c: Re-generate.
4955 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4956 (sparc_gdbarch_init): Set breakpoint_from_pc to
4957 sparc_breakpoint_from_pc.
4958 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4959 (BREAKPOINT_FROM_PC): Define.
4960 (sparc_breakpoint_from_pc): Declare.
4961 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4962 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4963 (BREAKPOINT_FROM_PC): Define.
4964 (BREAKPOINT): Delete macro.
4965 * target.h: Update comment.
4966 * s390-tdep.c (s390_gdbarch_init): Update comments.
4967 * remote.c: Update comments.
4968 * remote-mips.c: Update comments.
4969 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4970 * mem-break.c: Update comment.
4971 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4972 (ia64_memory_insert_breakpoint): Update.
4973 * config/sparc/tm-sparc.h: Update comment.
4974 * config/pa/tm-hppa64.h: Update comment.
4975 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4976 (rs6000_breakpoint_from_pc): Update.
4977 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4978 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4979 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4980 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4981 (mips_breakpoint_from_pc): Update.
4982 (mips_dump_tdep): Update.
4983
4984 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4985 * minsyms.c (lookup_minimal_symbol): Inline
4986 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4987
4988 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4989 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4990 * p-lang.c (pascal_printstr): Ditto.
4991 * objc-lang.c (objc_printstr): Ditto.
4992 * m2-lang.c (m2_printstr): Ditto.
4993 * jv-valprint.c (java_print_value_fields): Ditto.
4994 * f-lang.c (f_printstr): Ditto.
4995 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4996 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4997 for repeat_count_threshold.
4998 * Makefile.in (cp-valprint.o): Update dependencies.
4999
5000 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5001
5002 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5003 (examine_prologue): Support looking through leaf functions, knowing
5004 they start with mov r2,r12. Support skipping over indirect stores
5005 of the input registers. Upon hitting a non-nop branch instruction
5006 or predicated instruction, bail out by setting lim_pc to the current
5007 pc value in the loop. At the end, if the lim_pc value is still
5008 beyond our calculated value and we have trust_limit set,
5009 use the lim_pc value.
5010
5011 2003-05-15 Andrew Cagney <cagney@redhat.com>
5012
5013 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5014 generic_find_dummy_frame.
5015 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5016 (deprecated_generic_find_dummy_frame): Update.
5017 (deprecated_read_register_dummy): Update.
5018 * frame.c (deprecated_generic_get_saved_register): Update.
5019
5020 2003-05-15 Theodore A. Roth <troth@openavr.org>
5021
5022 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5023 (avr_gdbarch_init): Set breakpoint_from_pc method.
5024
5025 2003-05-15 Andrew Cagney <cagney@redhat.com>
5026
5027 * regcache.c (build_regcache): Set deprecated_register_valid
5028 directly.
5029 (deprecated_grub_regcache_for_register_valid): Delete function.
5030 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5031 declaration.
5032
5033 2003-05-15 David Carlton <carlton@bactrian.org>
5034
5035 Committed by Elena Zannoni <ezannoni@redhat.com>
5036 * symtab.c (lookup_symbol_aux): Delete calls to
5037 lookup_symbol_aux_minsyms.
5038 (lookup_symbol_aux_minsyms): Comment out function and
5039 prototype. Delete lookup by mangled name.
5040
5041 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5042
5043 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5044 correctly indicate an empty stack and ``stack_allocated'' to the
5045 indicate the number of elements initially allocated.
5046 (dwarf_expr_grow_stack): Simplify method for computing new
5047 stack size. Don't loop infinitely if ``stack_len'' is zero.
5048 (execute_stack_op): Move ``ctx->in_reg'' initialization
5049 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5050 be used in conjuction with DW_OP_piece. Revise error message
5051 accordingly.
5052
5053 2003-05-14 Theodore A. Roth <troth@openavr.org>
5054
5055 * MAINTAINERS: Update my email address.
5056 * avr-tdep.c: Ditto.
5057
5058 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5059
5060 * symtab.h (enum domain_enum): Rename from namespace_enum.
5061 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5062 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5063 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5064 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5065 TYPES_NAMESPACE, METHODS_NAMESPACE.
5066 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5067 (struct symbol, struct partial_symbol): Rename field
5068 'namespace_enum namespace' to 'domain_enum domain'.
5069 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5070 Delete old define kludge for namespace.
5071
5072 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5073 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5074 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5075 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5076 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5077 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5078 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5079 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5080 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5081 occurrences of the above.
5082
5083 2003-05-14 Ian Lance Taylor <ian@airs.com>
5084
5085 * Makefile.in (install-only): Use $(SHELL) when running
5086 mkinstalldirs.
5087
5088 2003-05-13 Ian Lance Taylor <ian@airs.com>
5089
5090 * MAINTAINERS (write after approval): Add myself.
5091
5092 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5093 second and third arguments.
5094 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5095 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5096
5097 2003-05-13 Andrew Cagney <cagney@redhat.com>
5098
5099 * defs.h (store_address): Delete declaration.
5100 findvar.c (store_address): Delete function.
5101 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5102 store_unsigned_integer.
5103 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5104 * v850-tdep.c (v850_push_arguments): Ditto.
5105 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5106 * sh-tdep.c (sh64_get_saved_register): Ditto.
5107 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5108 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5109 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5110 (mips_get_saved_register): Ditto.
5111 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5112 (find_func_descr, ia64_push_arguments): Ditto.
5113 * i386-tdep.c (i386_push_arguments): Ditto.
5114 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5115 * frv-tdep.c (frv_push_arguments): Ditto.
5116 * frame.c (legacy_saved_regs_prev_register): Ditto.
5117 (deprecated_generic_get_saved_register): Ditto.
5118 * findvar.c (unsigned_address_to_pointer): Ditto.
5119 * dwarf2read.c (dwarf2_const_value): Ditto.
5120 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5121 * alpha-tdep.c (alpha_push_arguments): Ditto.
5122
5123 2003-05-12 J. Brobecker <brobecker@gnat.com>
5124
5125 * NEWS: Mention that the hppa-hpux port has been partially
5126 multiarched (32bit ABIT only, so far).
5127
5128 2003-05-11 Andrew Cagney <cagney@redhat.com>
5129
5130 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5131 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5132 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5133 sim/testsuite/sim/arm/misaligned2.ms, and
5134 sim/testsuite/sim/arm/misaligned3.ms.
5135 * disasm.h (struct ui_file): Add opaque struct declaration.
5136 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5137 * frame.h (struct ui_file): Ditto.
5138
5139 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5140
5141 * value.h: Pretty print.
5142
5143 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5144
5145 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5146
5147 2003-05-08 Andrew Cagney <cagney@redhat.com>
5148
5149 * regcache.h (max_register_size): Delete declaration.
5150 * regcache.c (max_register_size): Delete function.
5151 (struct regcache_descr): Delete field "max_register_size".
5152 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5153 registers fit in MAX_REGISTER_SIZE.
5154 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5155 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5156 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5157 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5158 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5159 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5160 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5161 * dve3900-rom.c, hppa-tdep.c: Ditto.
5162
5163 2003-05-08 David Carlton <carlton@math.stanford.edu>
5164
5165 * valops.c (push_word): Fix typo.
5166
5167 2003-05-08 Andrew Cagney <cagney@redhat.com>
5168
5169 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5170 * gdbarch.h: Re-generate.
5171 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5172 (legacy_max_register_raw_size): Delete declaration.
5173 * regcache.c (legacy_max_register_raw_size): Delete function.
5174 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5175 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5176 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5177 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5178 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5179 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5180 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5181 * findvar.c, dwarf2cfi.c: Ditto.
5182
5183 2003-05-08 Andrew Cagney <cagney@redhat.com>
5184
5185 * mips-tdep.c (read_signed_register): New function, moved to here
5186 from "regcache.c".
5187 (read_signed_register_pid): Ditto.
5188 * regcache.c (read_signed_register_pid): Delete function, moved to
5189 "mips-tdep.c".
5190 (read_signed_register): Ditto.
5191 * regcache.h (read_signed_register): Delete declaration.
5192 (read_signed_register_pid): Delete declaration.
5193
5194 2003-05-08 Andrew Cagney <cagney@redhat.com>
5195
5196 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5197 * gdbarch.h: Re-generate.
5198 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5199 (legacy_max_register_virtual_size): Delete declaration.
5200 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5201 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5202 * tracepoint.c (memrange_sortmerge): Ditto.
5203 * sparc-tdep.c (sparc_print_registers): Ditto.
5204 * regcache.c (legacy_max_register_virtual_size): Delete function.
5205
5206 2002-05-08 J. Brobecker <brobecker@gnat.com>
5207
5208 * fork-child.c (escape_bang_in_quoted_argument): New function.
5209 (fork_inferior): Escape '!' characters in quoted arguments
5210 only when needed.
5211
5212 2003-05-08 J. Brobecker <brobecker@gnat.com>
5213
5214 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5215 the language of the CU is not currently supported by GDB.
5216
5217 2003-05-08 J. Brobecker <brobecker@gnat.com>
5218
5219 * defs.h (language): Add language_minimal enum value.
5220 * c-lang.c (minimal_language_defn): New language definition.
5221 (_initialize_c_language): Add the new minimal language to the list
5222 of languages known to GDB.
5223
5224 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5225
5226 * frame.c (get_frame_type): Don't attempt to lazily initialize
5227 frame's unwinder for legacy frames.
5228
5229 2003-05-07 Andrew Cagney <cagney@redhat.com>
5230
5231 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5232 and "regcache" parameters.
5233 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5234
5235 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5236
5237 * dwarf2read.c (dwarf_decode_lines): Only use output of
5238 check_cu_functions() when calling record_line(). Do not update
5239 the current address.
5240
5241 2003-05-07 Andrew Cagney <cagney@redhat.com>
5242
5243 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5244 code.
5245
5246 2003-05-07 Jim Blandy <jimb@redhat.com>
5247
5248 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5249 'maint info symtabs' and 'maint info psymtabs'.
5250 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5251 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5252 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5253 Declarations updated.
5254 * maint.c (maintenance_list_command): Delete.
5255 (_initialize_maint_cmds): Update calls to add_cmd.
5256 * gdbcmd.h (maintenancelistlist): Delete declaration.
5257 * cli/cli-cmds.c (maintenancelistlist): Delete.
5258 (init_cmd_lists): Don't initialize it.
5259 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5260
5261 2003-05-07 Andrew Cagney <cagney@redhat.com>
5262
5263 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5264 "regcache".
5265 (d10v_print_registers_info): Update.
5266 (d10v_dmap_register, d10v_imap_register): Delete functions.
5267 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5268 and "imap_register".
5269 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5270 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5271 * arch-utils.c (generic_remote_translate_xfer_address): Add
5272 "regcache" and "gdbarch" parameters.
5273 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5274 parameter. Change class to multi-arch.
5275 * gdbarch.h, gdbarch.c: Re-generate.
5276 * remote.c (remote_xfer_memory): Use
5277 gdbarch_remote_translate_xfer_address.
5278
5279 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5280
5281 * infrun.c (prev_pc): Move declaration ahead of proceed().
5282 (proceed): Refresh prev_pc value before resuming.
5283 (stop_stepping): Remove code to refresh prev_pc.
5284
5285 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5286
5287 * nto-tdep.c: Removed stray comment.
5288
5289 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5290
5291 * i386-nto-tdep.c: Fix old K&R function definitions.
5292 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5293 Also change add_show_from_set() call to add_setshow_cmd().
5294 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5295
5296 2003-05-05 Andrew Cagney <cagney@redhat.com>
5297
5298 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5299 (fprint_dummy_frames): New function.
5300 (maintenance_print_dummy_frames): New function.
5301 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5302 * frame.c (fprint_frame_id): Make global.
5303 * frame.h (fprint_frame_id): Declare.
5304 * Makefile.in (dummy-frame.o): Update dependencies.
5305
5306 2003-05-05 Andrew Cagney <cagney@redhat.com>
5307
5308 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5309 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5310 SIZEOF_CALL_DUMMY_WORDS.
5311 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5312 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5313 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5314 CALL_DUMMY_BREAKPOINT_OFFSET.
5315 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5316 CALL_DUMMY_START_OFFSET.
5317 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5318 * gdbarch.h, gdbarch.c: Re-generate.
5319 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5320 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5321 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5322 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5323 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5324 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5325 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5326 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5327 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5328 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5329 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5330 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5331 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5332 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5333 * config/sparc/tm-sparc.h: Update.
5334
5335 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5336
5337 * configure.tgt: Add i[3456]86-*-nto*.
5338 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5339 * nto-tdep.c: New file. Neutrino target support routines.
5340 * nto-tdep.h: New file. Neutrino target header.
5341 * config/tm-qnxnto.h: New file.
5342 * config/i386/i386nto.mt: New file.
5343 * config/i386/tm-i386nto.h: New file.
5344
5345 2003-05-04 Andrew Cagney <cagney@redhat.com>
5346
5347 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5348 (load_infrun_state): Ditto.
5349 (struct thread_info): Drop "prev_func_name" field.
5350 * thread.c (load_infrun_state): Update.
5351 (save_infrun_state): Update.
5352 * infrun.c (prev_func_name): Delete variable.
5353 (init_wait_for_inferior): Do not clear prev_func_name.
5354 (stop_stepping, keep_going, context_switch): Do not swap
5355 prev_func_name.
5356 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5357 instead of PC_IN_SIGTRAMP.
5358
5359 2003-05-04 Andrew Cagney <cagney@redhat.com>
5360
5361 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5362 REGISTER_BYTE with register_offset_hack.
5363 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5364 that REGISTER_BYTE is consistent with the regcache.
5365 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5366 * gdbarch.h, gdbarch.c: Regenerate.
5367
5368 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5369
5370 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5371 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5372
5373 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5374
5375 2003-05-03 J. Brobecker <brobecker@gnat.com>
5376
5377 From Thierry Schneider <tpschneider1@yahoo.com>
5378 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5379 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5380 (mi-cmd-symbol.o): Add rule.
5381
5382 2003-05-03 Andrew Cagney <cagney@redhat.com>
5383
5384 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5385 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5386 * gdbarch.h, gdbarch.c: Re-generate.
5387 * d10v-tdep.c (d10v_push_dummy_code): New function.
5388 (d10v_gdbarch_init): Set push_dummy_code.
5389 * infcall.c (legacy_push_dummy_code): New function.
5390 (generic_push_dummy_code): New function.
5391 (push_dummy_code): New function.
5392 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5393 instead of dummy_addr, to push_dummy_call. Move call to
5394 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5395 switch.
5396 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5397
5398 2003-05-03 Andrew Cagney <cagney@redhat.com>
5399
5400 * disasm.h (print_insn): Declare.
5401 * disasm.c (init_gdb_disassemble_info): New function.
5402 (gdb_disassembly): Call init_gdb_disassemble_info.
5403 (gdb_print_insn): New function.
5404 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5405 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5406 * mcore-tdep.c: Include "disasm.h"
5407 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5408 * d10v-tdep.c: Include "disasm.h".
5409 (display_trace): Call gdb_print_insn, instead of print_insn.
5410 (print_insn): Delete function.
5411 * printcmd.c: Include "disasm.h".
5412 (print_insn): Delete function.
5413 (print_formatted): Call gdb_print_insn, instead of print_insn.
5414 * Makefile.in (printcmd.o): Update dependencies.
5415 (mcore-tdep.o, d10v-tdep.o): Ditto.
5416
5417 2003-05-02 Andrew Cagney <cagney@redhat.com>
5418
5419 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5420 PC_REGNUM, re-indent.
5421 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5422 PC_REGNUM isn't set.
5423
5424 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5425 * gdbarch.h, gdbarch.c: Re-generate.
5426 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5427 register_virtual_size, pc_regnum, or register_bytes.
5428 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5429 (d10v_register_type): Use D10V_PC_REGNUM.
5430 (d10v_print_registers_info, d10v_read_pc): Ditto.
5431 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5432 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5433
5434 2003-05-02 David Carlton <carlton@bactrian.org>
5435
5436 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5437 the name with mstrsave.
5438
5439 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5440
5441 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5442 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5443 (host_charset_name, target_charset_name): New vars for use by
5444 set/show commands.
5445 (host_charset_enum, target_charset_enum): New enums for set/show
5446 commands.
5447 (set_charset_sfunc, set_host_charset_sfunc,
5448 set_target_charset_sfunc): New functions.
5449 (set_host_charset, set_target_charset): Make static.
5450 (list_charsets, set_host_charset_command,
5451 set_target_charset_command): Delete functions.
5452 (show_charset_command): Rewrite as....
5453 (show_charset): Hook this up with the set/show command mechanism.
5454 (_initialize_charset): Change names of charsets to match the
5455 set/show enums. Use host_charset_name and target_charset_name.
5456 Use set/show mechanism for charset, host-charset, target-charset
5457 commands. Do not make 'show host-charset' and 'show
5458 target-charset' be aliases of 'show charset'.
5459
5460 * charset.h (set_host_charset, set_target_charset): Don't export,
5461 they are not used outside the file.
5462
5463 2003-05-01 Andrew Cagney <cagney@redhat.com>
5464
5465 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5466 (gdb_disassembly): Make "di" non static, always initialize and
5467 cleanup. Always use dis_asm_read_memory.
5468 (gdb_dis_asm_read_memory): Delete function.
5469
5470 2003-05-01 Andrew Cagney <cagney@redhat.com>
5471
5472 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5473 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5474
5475 2003-04-30 Andrew Cagney <cagney@redhat.com>
5476
5477 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5478 "tm_print_insn_info".
5479 (TARGET_PRINT_INSN_INFO): Delete macro.
5480 (dis_asm_read_memory): Delete function declaration.
5481 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5482 (tm_print_insn_info): Delete variable definition.
5483 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5484 * gdbarch.h, gdbarch.c: Re-generate.
5485 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5486 "deprecated_tm_print_insn_info".
5487 * mcore-tdep.c (mcore_dump_insn): Ditto.
5488 * mips-tdep.c (mips_gdbarch_init): Ditto.
5489 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5490 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5491 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5492 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5493 instead of TARGET_PRINT_INSN_INFO, add comment.
5494 * s390-tdep.c (s390_get_frame_info): Instead of
5495 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5496 (s390_check_function_end, s390_is_sigreturn): Ditto.
5497 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5498 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5499 * disasm.c: Include "gdbcore.h".
5500 (_initialize_disasm): New function, initialize
5501 "deprecated_tm_print_insn_info".
5502 (deprecated_tm_print_insn_info): New variable.
5503 (dis_asm_read_memory): Moved from "corefile.c", made static.
5504 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5505 * Makefile.in (disasm.o): Update dependencies.
5506
5507 2003-04-30 Andrew Cagney <cagney@redhat.com>
5508
5509 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5510
5511 2003-04-29 Adam Fedor <fedor@gnu.org>
5512
5513 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5514 * infcall.c (find_function_addr): Make non-static.
5515 * infcall.h (find_function_addr): Declare.
5516 * Makefile.in (eval.o): Update dependencies.
5517
5518 2003-04-28 Adam Fedor <fedor@gnu.org>
5519
5520 * symtab.c (symbol_find_demangled_name): Check for and demangle
5521 ObjC symbols.
5522 (symbol_init_demangled_name): Init for language_objc as well.
5523
5524 2003-04-28 Andrew Cagney <cagney@redhat.com>
5525
5526 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5527 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5528 * gdbarch.h, gdbarch.c: Re-generate.
5529 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5530 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5531 * inferior.h (deprecated_read_fp): Rename read_fp.
5532 (generic_target_read_fp): Delete declaration.
5533 * regcache.c (generic_target_read_fp): Delete function.
5534 (deprecated_read_fp): Replace read_fp, use
5535 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5536 * d10v-tdep.c (d10v_read_fp): Delete function.
5537 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5538
5539 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5540 deprecated_target_read_fp to generic_target_read_fp.
5541 * sh-tdep.c (sh_gdbarch_init): Ditto.
5542 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5544 * frv-tdep.c (frv_gdbarch_init): Ditto.
5545
5546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5547 deprecated_fp_regnum.
5548 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5549 * vax-tdep.c (vax_gdbarch_init): Ditto.
5550 * v850-tdep.c (v850_gdbarch_init): Ditto.
5551 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5552 * sh-tdep.c (sh_gdbarch_init): Ditto.
5553 * s390-tdep.c (s390_gdbarch_init): Ditto.
5554 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5555 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5557 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5559 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5560 * i386-tdep.c (i386_gdbarch_init): Ditto.
5561 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5562 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5563 * frv-tdep.c (frv_gdbarch_init): Ditto.
5564 * cris-tdep.c (cris_gdbarch_init): Ditto.
5565 * avr-tdep.c (avr_gdbarch_init): Ditto.
5566 * arm-tdep.c (arm_gdbarch_init): Ditto.
5567 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5568
5569 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5570 * v850-tdep.c (v850_gdbarch_init): Ditto.
5571 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5572 * sh-tdep.c (sh_gdbarch_init): Ditto.
5573 * s390-tdep.c (s390_gdbarch_init): Ditto.
5574 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5575 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5576 * mips-tdep.c (mips_gdbarch_init): Ditto.
5577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5578 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5579 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5580 * frv-tdep.c (frv_gdbarch_init): Ditto.
5581 * avr-tdep.c (avr_gdbarch_init): Ditto.
5582 * arm-tdep.c (arm_gdbarch_init): Ditto.
5583
5584 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5585 DEPRECATED_FP_REGNUM.
5586 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5587 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5588 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5589 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5590 (sparc32_register_virtual_type): Ditto.
5591 * sh-tdep.c (sh64_frame_chain): Ditto.
5592 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5593 (sh_nofp_frame_init_saved_regs): Ditto.
5594 (sh64_nofp_frame_init_saved_regs): Ditto.
5595 (sh_fp_frame_init_saved_regs): Ditto.
5596 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5597 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5598 * procfs.c (procfs_fetch_registers): Ditto.
5599 (procfs_store_registers): Ditto.
5600 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5601 (store_inferior_registers, fetch_core_registers): Ditto.
5602 (fetch_kcore_registers, clear_regs): Ditto.
5603 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5604 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5605 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5606 * nlm/i386.c (do_status): Ditto.
5607 * mipsv4-nat.c (supply_gregset): Ditto.
5608 * mips-tdep.c: Ditto for comments.
5609 * mips-nat.c (fetch_inferior_registers): Ditto.
5610 (store_inferior_registers, fetch_core_registers): Ditto.
5611 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5612 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5613 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5614 (i386_do_pop_frame, i386_register_type): Ditto.
5615 * hppa-tdep.c (hppa_frame_chain): Ditto.
5616 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5617 (hppa_pop_frame, hppa_read_fp): Ditto.
5618 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5619 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5620 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5621 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5622 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5623 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5624 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5625 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5626 * blockframe.c: Ditto for comments.
5627 * arch-utils.h: Ditto for comments.
5628 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5629 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5630 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5631 * alpha-tdep.h: Ditto for comments.
5632 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5633 (alpha_cannot_store_register): Ditto.
5634 (alpha_push_dummy_frame): Ditto.
5635 * alpha-nat.c (supply_gregset): Ditto.
5636
5637 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5638 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5639 * config/sparc/tm-sparc.h: Update comment.
5640
5641 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5642 deprecated_read_fp instead of TARGET_READ_FP.
5643 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5644 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5645 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5646 deprecated_read_fp instead of read_fp.
5647 * s390-tdep.c (s390_push_arguments): Ditto.
5648 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5649 * frame.h: Ditto in comments.
5650 * frame.c (legacy_get_prev_frame): Ditto.
5651 * dummy-frame.c (dummy_frame_this_id): Ditto.
5652 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5653
5654 2003-04-28 Andrew Cagney <cagney@redhat.com>
5655
5656 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5657 * gdbarch.h, gdbarch.c: Re-generate.
5658 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5659 * vax-tdep.c (_initialize_vax_tdep): Update.
5660 * v850-tdep.c (_initialize_v850_tdep): Update.
5661 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5662 * s390-tdep.c (_initialize_s390_tdep): Update.
5663 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5664 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5665 * mips-tdep.c (_initialize_mips_tdep): Update.
5666 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5667 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5668 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5669 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5670 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5671 * frv-tdep.c (_initialize_frv_tdep): Update.
5672 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5673 (_initialize_cris_tdep): Update.
5674 * arch-utils.c (legacy_print_insn): Update.
5675 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5676
5677 2003-04-26 Adam Fedor <fedor@gnu.org>
5678
5679 * linespec.c (decode_objc): New function to decode ObjC calls
5680 (decode_line_1): Check for ObjC calls (using decode_objc)
5681 * Makefile (linespec.o): Update dependencies.
5682
5683 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5684
5685 * breakpoint.h (struct breakpoint_ops): New.
5686 (struct breakpoint): Add ops member.
5687
5688 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5689 (mention): Use new breakpoint ops member.
5690 (set_raw_breakpoint): Initialize ops field to NULL.
5691 (print_exception_catchpoint, print_one_exception_catchpoint)
5692 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5693 (gnu_v3_exception_catchpoint_ops): New.
5694 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5695
5696 2003-04-25 Adam Fedor <fedor@gnu.org>
5697
5698 * Makefile.in (COMMON_OBS): Add objc-lang.o
5699
5700 2003-04-25 Andrew Cagney <cagney@redhat.com>
5701
5702 * d10v-tdep.c (print_insn): Delete function.
5703 (display_trace): Use TARGET_PRINT_INSN.
5704 (_initialize_d10v_tdep): Do not set tm_print_insn.
5705 (d10v_gdbarch_init): Set print_insn.
5706
5707 2003-04-25 Andrew Cagney <cagney@redhat.com>
5708
5709 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5710 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5711 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5712 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5713 (nr_dmap_regs, a0_regnum): ... new functions.
5714 (d10v_print_registers_info): Use a0_regnum, use register_size.
5715 (d10v_register_byte): Delete function.
5716 (d10v_register_raw_size): Delete function.
5717 (d10v_register_type): Use a0_regnum.
5718 (d10v_print_registers_info): Use a0_regnum.
5719 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5720 (d10v_gdbarch_init): Do not set register_byte or
5721 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5722 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5723 extract_address.
5724 (trace_command): Use XCALLOC.
5725 (print_insn): Delete reference to tm_print_insn.
5726 (saved_regs_unwinder): Use store_unsigned_integer instead of
5727 store_address.
5728 * frame.h (FRAME_OBSTACK_CALLOC): Define
5729
5730 2003-04-25 David Carlton <carlton@bactrian.org>
5731
5732 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5733
5734 2003-04-24 Adam Fedor <fedor@gnu.org>
5735
5736 * objc-lang.c: Include "valprint.h"
5737 * Makefile.in (objc-lang.o): Update dependencies.
5738
5739 2003-04-24 Adam Fedor <fedor@gnu.org>
5740
5741 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5742 architecture dependant compilation and mark as unimplemented
5743 (until they get put in the gdbarch vector).
5744
5745 2003-04-23 David Carlton <carlton@bactrian.org>
5746
5747 * cp-support.c (cp_find_first_component): Accept 'operator' in
5748 more locations.
5749
5750 2003-04-23 Andrew Cagney <cagney@redhat.com>
5751
5752 * infcall.c (call_function_by_hand): Eliminate redundant
5753 indentation. Move "saved_async" and "old_cleanups" to where they
5754 are needed.
5755
5756 2003-04-23 Andrew Cagney <cagney@redhat.com>
5757
5758 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5759 and "buffer". Move the "name" code to where it is needed.
5760
5761 2003-04-23 Andrew Cagney <cagney@redhat.com>
5762
5763 * infcall.c (call_function_by_hand): Move variables "start_sp",
5764 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5765 code to ON_STACK switch branch.
5766
5767 2003-04-23 Andrew Cagney <cagney@redhat.com>
5768
5769 * infcall.c (call_function_by_hand): Make declaration of "i",
5770 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5771 lint.
5772
5773 2003-04-23 Andrew Cagney <cagney@redhat.com>
5774
5775 * infcall.c (call_function_by_hand): Delete variable
5776 "n_method_args". Localize "param_type"'s declaration to the loop
5777 that it is used. Reinstate code assigning to said variable -
5778 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5779 Rationalize code using "param_type".
5780
5781 2003-04-22 Andrew Cagney <cagney@redhat.com>
5782
5783 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5784 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5785 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5786 to DEPRECATED_PUSH_RETURN_ADDRESS.
5787
5788 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5789
5790 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5791 on the DWARF2 register number prior to fetching a register.
5792
5793 2003-04-22 J. Brobecker <brobecker@gnat.com>
5794
5795 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5796 Update all the tests using SOFT_FLOAT considering the fact that
5797 this macro was always set to 0.
5798 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5799 considering the fact that this macro was always set to 0.
5800 * hppa-tdep.h (hppa_store_return_value): Likewise.
5801 (hppa_extract_return_value): Likewise.
5802
5803 2003-04-22 J. Brobecker <brobecker@gnat.com>
5804
5805 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5806 the hppa-pro target only.
5807
5808 2003-04-21 J. Brobecker <brobecker@gnat.com>
5809
5810 Ongoing multi-arch conversion effort for HP/UX:
5811 * config/pa/tm-hppa.h: Move all macro that are no longer
5812 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5813 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5814
5815 2003-04-21 J. Brobecker <brobecker@gnat.com>
5816
5817 * config/pa/tm-hppa.h: Obsolete a section that was only used
5818 for hppa-pro.
5819
5820 2003-04-21 J. Brobecker <brobecker@gnat.com>
5821
5822 Ongoing multi-arch conversion for HP/UX.
5823 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5824 if already defined (allows hppa64 to stay non-multiarched for now).
5825 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5826
5827 2003-04-21 Andrew Cagney <cagney@redhat.com>
5828
5829 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5830
5831 2003-04-21 Andrew Cagney <cagney@redhat.com>
5832
5833 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5834 "i386_num_mmx_regs".
5835
5836 2003-04-21 Andrew Cagney <cagney@redhat.com>
5837
5838 * infcall.c: New file.
5839 * infcall.h: New file.
5840 * valarith.c: Include "infcall.h".
5841 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5842 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5843 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5844 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5845 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5846 (SFILES): Add "infcall.c"
5847 (COMMON_OBS): Add "infcall.o".
5848 (infcall.o): Specify dependencies.
5849 * value.h (call_function_by_hand): Delete declaration.
5850 * inferior.h (run_stack_dummy): Delete declaration.
5851 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5852 (run_stack_dummy): Move to "infcall.c", merged into
5853 call_function_by_hand.
5854 * valops.c (call_function_by_hand): Moved to "infcall.c".
5855 (find_function_addr, value_arg_coerce): Ditto.
5856 (unwindonsignal_p, coerce_float_to_double): Ditto.
5857 (_initialize_valops): Move "set/show coerce-float-to-double", and
5858 "set/show unwindonsignal" commands to "infcall.c".
5859 * v850-tdep.c, target.h: Update comments.
5860 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5861 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5862 (sh64_init_extra_frame_info): Update comments.
5863 * mn10300-tdep.c: Update comments.
5864 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5865 * config/sparc/tm-sparc.h: Update comments.
5866 * breakpoint.h: Update comments.
5867 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5868 * arm-tdep.c: Update comment.
5869
5870 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5871
5872 * i386-tdep.c (i386_num_register_names): New variable.
5873 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5874 (MM0_REGNUM): Remove redundant parentheses in define.
5875 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5876 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5877 i386_mxcsr_regnum_p): Remove redundant parentheses.
5878 (i386_register_name): Use i386_num_register_names.
5879
5880 * i386-tdep.c (i386_extract_return_value,
5881 i386_store_return_value): Correct check for availability of
5882 floating-point registers.
5883
5884 * i386-tdep.c (i386_frame_num_args): Remove function.
5885 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5886
5887 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5888 mmx_regnum_to_fp_regnum. Adjust all callers.
5889
5890 * i386-tdep.c (i386_get_longjmp_target): Use
5891 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5892 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5893 extract_address.
5894
5895 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5896
5897 * core-regset.c: Update comments to reflect reality. Re-order
5898 includes.
5899 (fetch_core_registers): Use switch instead of if. Remove
5900 redundant prototype.
5901
5902 2003-04-18 Jim Blandy <jimb@redhat.com>
5903
5904 * s390-tdep.c (s390_frame_align): New function.
5905 (s390_gdbarch_init): Register it with the gdbarch object.
5906
5907 2003-04-17 Richard Henderson <rth@redhat.com>
5908
5909 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5910
5911 2003-04-17 Michael Snyder <msnyder@redhat.com>
5912 Karen Bennet <bennet@redhat.com>
5913
5914 Committed by Elena Zannoni <ezannoni@redhat.com>
5915 * gdb_gcore.sh: New script to create a core dump of a process.
5916
5917 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5918
5919 * values.c (value_being_returned): Don't fetch the return
5920 value if the return type is void.
5921
5922 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5923
5924 * thread-db.c: Reindented.
5925
5926 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5927
5928 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5929 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5930 as types.
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5957
5958 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5959 the size of ``long double'' to 16, instead of 8.
5960
5961 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5962
5963 * i386-linux-nat.c: Add some whitespace to make things more
5964 readable.
5965 (fetch_register, store_register, fetch_inferior_registers,
5966 store_inferior_registers): Get rid of assignment in if-statement.
5967 (store_register): Fix typo in error message.
5968
5969 2003-04-16 Andrew Cagney <cagney@redhat.com>
5970
5971 * utils.c (xmmalloc): Always allocate something, matches
5972 libiberty/xmalloc's semantics.
5973 (xmrealloc, xmcalloc): Ditto.
5974
5975 2003-04-16 Andrew Cagney <cagney@redhat.com>
5976
5977 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5978 update comments.
5979 (get_frame_type): Initialize unwind and type when needed.
5980 (get_frame_id, frame_register_unwind): Ditto.
5981
5982 2003-04-16 Andrew Cagney <cagney@redhat.com>
5983
5984 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5985 obsolete.
5986 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5987 * sparcl-stub.c: Obsolete file.
5988 * config/sparc/tm-sparclet.h: Obsolete file.
5989 * sparclet-stub.c: Obsolete file.
5990 * sparclet-rom.c: Obsolete file.
5991 * sparcl-tdep.c: Obsolete file.
5992 * config/sparc/tm-sparclite.h: Obsolete file.
5993 * config/sparc/sparclite.mt: Obsolete file.
5994 * config/sparc/sparclet.mt: Obsolete file.
5995 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5996 sparc86x-*-* obsolete.
5997
5998 2003-04-15 David Carlton <carlton@math.stanford.edu>
5999
6000 * Makefile.in (SFILES): Add cp-namespace.c.
6001 (COMMON_OBS): Add cp-namespace.o.
6002 (block.o): Depend on gdb_obstack_h and cp_support_h.
6003 (buildsym.o): Depend on cp_support_h.
6004 (cp-namespace.o): New.
6005 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6006 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6007 (dwarf2read.o): Depend on cp_support_h.
6008 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6009 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6010 processing_current_namespace.
6011 (read_namespace): Update processing_current_namespace; check for
6012 anonymous namespaces.
6013 (dwarf2_name): New function.
6014 (dwarf2_extension): Ditto.
6015 * cp-support.h: Update copyright, contributors.
6016 Add inclusion guards.
6017 Add opaque declaration for structs obstack, block, symbol.
6018 (struct using_direct): New struct.
6019 Add declarations for cp_find_first_component,
6020 cp_entire_prefix_len, processing_has_namespace_info,
6021 processing_current_namespace, cp_is_anonymous,
6022 cp_add_using_directive, cp_initialize_namespace,
6023 cp_finalize_namespace, cp_set_block_scope,
6024 cp_scan_for_anonymous_namespaces.
6025 * cp-namespace.c: New file.
6026 * cp-support.c: Update copyright.
6027 Include ctype.h, gdb_assert.h, gdbcmd.h.
6028 New variable maint_cplus_cmd_list.
6029 (cp_find_first_component): New function.
6030 (cp_entire_prefix_len, maint_cplus_command)
6031 (first_component_command, _initialize_cp_support): Ditto.
6032 * buildsym.c: Include cp-support.h.
6033 New variable using_list.
6034 (add_symbol_to_list): Check for anonymous namespaces.
6035 (finish_block): Set block's scope.
6036 (start_symtab): Initialize C++ namespace support.
6037 (end_symtab): Finalize C++ namespace support.
6038 * block.h: Add opaque declarations for structs
6039 block_namespace_info, using_direct, and obstack.
6040 Add declarations for block_set_scope and block_set_using.
6041 (struct block): Add 'language_specific' member.
6042 (BLOCK_NAMESPACE): New macro.
6043 * block.c: Include gdb_obstack.h and cp-support.h.
6044 (struct block_namespace_info): New struct.
6045 (block_set_scope): New function.
6046 (block_set_using, block_initialize_namespace): Ditto.
6047
6048 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6049
6050 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6051 (locate_base): Return early if there aren't any link map offsets.
6052 (svr4_solib_create_inferior_hook): Warn if shared library support
6053 is unavailable.
6054
6055 2003-04-14 David Carlton <carlton@math.stanford.edu>
6056
6057 * symtab.c (symbol_set_names): Add prefix when storing Java names
6058 in hash table. Fix for PR java/1039.
6059
6060 2003-04-14 David Carlton <carlton@math.stanford.edu>
6061
6062 * symtab.c (symbol_set_names): Rename 'name' arg to
6063 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6064 * symtab.h: Change 'name' argument in declaration of
6065 symbol_set_names to 'linkage_name'.
6066 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6067
6068 2003-04-14 Andrew Cagney <cagney@redhat.com>
6069
6070 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6071 return the fully sign-extended register value.
6072 (get_frame_pointer): Ditto.
6073 (mips_pop_frame): Initialize "proc_desc" after checking for a
6074 dummy frame.
6075
6076 2003-04-14 Andrew Cagney <cagney@redhat.com>
6077
6078 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6079 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6080 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6081 (mips_push_register): Delete function.
6082 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6083 PUSH_FP_REGNUM.
6084
6085 2003-04-14 Jim Blandy <jimb@redhat.com>
6086
6087 * symmisc.c: #include "gdb_regex.h".
6088 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6089 functions.
6090 * maint.c (maintenance_list_command): New function.
6091 (_initialize_maint_cmds): Register the above as commands.
6092 * symtab.h (maintenance_list_symtabs,
6093 maintenance_list_psymtabs): New declarations.
6094 * cli/cli-cmds.c (maintenancelistlist): New variable.
6095 (init_cmd_lists): Initialize it.
6096 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6097 * gdbcmd.h (maintenancelistlist): New declaration.
6098 * Makefile.in (symmisc.o): Update dependencies.
6099
6100 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6101
6102 * s390-nat.c: Include asm/types.h for addr_t.
6103
6104 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6105
6106 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6107 actually incoming type.
6108
6109 2003-04-13 Andrew Cagney <cagney@redhat.com>
6110
6111 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6112 get_next_frame and get_frame_saved_regs.
6113
6114 2003-04-13 Andrew Cagney <cagney@redhat.com>
6115
6116 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6117 of gdbarch_num_regs.
6118
6119 2003-04-13 Andrew Cagney <cagney@redhat.com>
6120
6121 * frame.h: Mention what replaced what in "struct frame_info".
6122 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6123 deprecated_update_frame_base_hack and
6124 deprecated_update_frame_pc_hack.
6125 * hppa-tdep.c: Ditto.
6126
6127 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6128
6129 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6130 to read_reg and update its comment. Remove regnum member.
6131 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6132 Don't call read_reg when setting in_reg. Call read_reg to get
6133 the frame base if it's in a register. Return the register number
6134 on the stack instead of in the context. Remove extra arguments
6135 to read_reg.
6136 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6137 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6138 the register number on the expression stack.
6139 (needs_frame_read_reg): Remove extra arguments.
6140
6141 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6142
6143 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6144 made non-static.
6145 (execute_stack_op): All callers updated.
6146 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6147 * dwarf2loc.c (find_location_expression): New function.
6148 (dwarf_expr_frame_base): Call it.
6149 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6150 (dwarf2_tracepoint_var_ref): New function, broken out from
6151 locexpr_tracepoint_var_ref.
6152 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6153 Make static.
6154 (loclist_read_variable, loclist_read_needs_frame): New functions.
6155 (loclist_describe_location, loclist_tracepoint_var_ref): New
6156 functions.
6157 (dwarf2_loclist_funcs): New struct location_funcs.
6158 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6159 (struct dwarf2_locexpr_baton): Add comments.
6160 (dwarf2_loclist_funcs): New extern.
6161 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6162 base_address and base_known.
6163 (dwarf_loc_buffer): New variable.
6164 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6165 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6166 (dwarf2_has_info): Initialize dwarf_loc_offset.
6167 (dwarf2_build_psymtabs): Read in .debug_loc.
6168 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6169 DWARF_LOC_SIZE.
6170 (psymtab_to_symtab_1): Likewise. Move base address calculation
6171 here, from...
6172 (dwarf2_get_pc_bounds): ... here. Use the base address from
6173 cu_header.
6174 (dwarf2_symbol_mark_computed): Handle location lists.
6175
6176 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6177
6178 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6179 if the linkage name demangled successfully.
6180
6181 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6182
6183 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6184 disassmbly_flavour): Removed.
6185
6186 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6187
6188 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6189
6190 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6191
6192 2003-04-12 Andrew Cagney <cagney@redhat.com>
6193
6194 * frame.h (struct frame_info): Move definition from here ...
6195 * frame.c (struct frame_info): ... to here.
6196
6197 2003-04-12 Andrew Cagney <cagney@redhat.com>
6198
6199 * gdbthread.h (save_infrun_state): Delete parameter
6200 "prev_func_start".
6201 (struct thread_info): Delete field "prev_func_start".
6202 (load_infrun_state): Ditto.
6203 * thread.c (load_infrun_state, save_infrun_state): Update.
6204 * infrun.c (prev_func_start): Delete variable.
6205 (context_switch, init_wait_for_inferior): Update.
6206 (stop_stepping, keep_going): Update.
6207
6208 2003-04-12 Andrew Cagney <cagney@redhat.com>
6209
6210 * gdbarch.sh: Add missing opaque declarations.
6211 * gdbarch.h: Regnerate.
6212 * symtab.h: Add missing opaque declarations.
6213 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6214 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6215 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6216 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6217 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6218 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6219 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6220 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6221 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6222 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6223 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6224 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6225 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6226
6227 2003-04-11 Andrew Cagney <cagney@redhat.com>
6228
6229 * frame.c (get_frame_id): Return this frame's "id".
6230 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6231 function start.
6232 (legacy_saved_regs_this_id): Replace function body with
6233 internal-error.
6234 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6235 FRAME_OBSTACK_ZALLOC.
6236 (create_new_frame): Mark the frame ID as valid.
6237
6238 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6239
6240 * Makefile.in (libbfd_h): Added missing setting.
6241 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6242 according to the selected ABI.
6243
6244 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6245
6246 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6247
6248 2003-04-11 Andrew Cagney <cagney@redhat.com>
6249
6250 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6251 SAVED_PC_AFTER_CALL.
6252 * gdbarch.h, gdbarch.c: Regenerate.
6253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6254 * x86-64-tdep.c (x86_64_init_abi): Update.
6255 * vax-tdep.c (vax_gdbarch_init): Update.
6256 * v850-tdep.c (v850_gdbarch_init): Update.
6257 * sparc-tdep.c (sparc_gdbarch_init): Update.
6258 * sh-tdep.c (sh_gdbarch_init): Update.
6259 * s390-tdep.c (s390_gdbarch_init): Update.
6260 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6261 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6262 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6263 * mips-tdep.c (mips_gdbarch_init): Update.
6264 * mcore-tdep.c (mcore_gdbarch_init): Update.
6265 * m68k-tdep.c (m68k_gdbarch_init): Update.
6266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6267 * ia64-tdep.c (ia64_gdbarch_init): Update.
6268 (ia64_saved_pc_after_call): Update declaration.
6269 * i386ly-tdep.c (i386lynx_init_abi): Update.
6270 * i386-tdep.c (i386_gdbarch_init): Update.
6271 * hppa-tdep.c (hppa_gdbarch_init): Update.
6272 * h8300-tdep.c (h8300_gdbarch_init): Update.
6273 * frv-tdep.c (frv_gdbarch_init): Update.
6274 * cris-tdep.c (cris_gdbarch_init): Update.
6275 * avr-tdep.c (avr_gdbarch_init): Update.
6276 * arm-tdep.c (arm_gdbarch_init): Update.
6277 * alpha-tdep.c (alpha_gdbarch_init): Update.
6278 * ns32knbsd-nat.c (frame_num_args): Update.
6279 * ns32k-tdep.c (umax_frame_num_args): Update.
6280 * mips-tdep.c (mips_init_frame_pc_first): Update.
6281 * infrun.c (step_over_function): Update.
6282 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6283 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6284 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6285 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6286 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6287 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6288 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6289 * arch-utils.c (init_frame_pc_default): Update.
6290 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6291 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6292 declaration.
6293
6294 2003-04-11 Andrew Cagney <cagney@redhat.com>
6295
6296 * i387-tdep.c: Update copyright.
6297 (i387_to_double): Delete function.
6298 (double_to_i387): Delete function.
6299
6300 2003-04-10 Andrew Cagney <cagney@redhat.com>
6301
6302 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6303 frame's function's address. Simplify.
6304 (d10v_frame_unwind_cache): Check that the frame's function is
6305 non-zero.
6306
6307 2003-04-10 Jim Blandy <jimb@redhat.com>
6308
6309 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6310 call to set_gdbarch_deprecated_push_arguments.
6311
6312 2003-04-10 Andrew Cagney <cagney@redhat.com>
6313
6314 * frame.c (fprint_frame_id): New function.
6315 (fprint_frame_type, fprint_frame): New function.
6316 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6317 (create_sentinel_frame, get_frame_id): Ditto.
6318 (frame_id_p, frame_id_eq): Ditto.
6319 (frame_id_inner, create_new_frame): Ditto.
6320 (legacy_get_prev_frame, get_prev_frame): Ditto.
6321 (deprecated_update_frame_pc_hack): Ditto.
6322 (frame_register_unwind): Ditto.
6323 (deprecated_update_frame_base_hack): Ditto.
6324
6325 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6326
6327 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6328 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6329 frame_chain function.
6330 * Makefile.in: Add dependencies due to above change.
6331
6332 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6333
6334 * blockframe.c (legacy_frame_chain_valid): Move call to
6335 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6336 inside_entry_file.
6337
6338 2003-04-09 Andrew Cagney <cagney@redhat.com>
6339
6340 * frame.h (struct frame_id): Replace "pc" and "base" with
6341 "stack_addr" and "code_addr". Update comments.
6342 (frame_id_build): Update parameter names and comment.
6343 (struct frame_info): Replace "id_p" and "id" with "this_id".
6344 * dummy-frame.c (dummy_frame_this_id): Update.
6345 * breakpoint.c (print_one_breakpoint): Update.
6346 * frame.c (get_frame_id): Update.
6347 (get_frame_base, frame_id_build): Update.
6348 (create_sentinel_frame, legacy_get_prev_frame): Update.
6349 (deprecated_update_frame_base_hack): Update.
6350 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6351 (frame_id_inner): Ditto.
6352
6353 2003-04-09 Andrew Cagney <cagney@redhat.com>
6354
6355 * defs.h (gdb_print_host_address): Make "addr" parameter a
6356 pointer constant.
6357 * utils.c (gdb_print_host_address): Update.
6358
6359 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6360
6361 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6362 register number for R0 is 0.
6363
6364 2003-04-09 J. Brobecker <brobecker@gnat.com>
6365
6366 * frame.h (struct gdbarch): Add opaque structure definition
6367 to avoid a compilation warning on LynxOS 4.0.
6368
6369 2003-04-09 Andrew Cagney <cagney@redhat.com>
6370
6371 * frame.h (struct frame_info): Delete field "pc". Replace
6372 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6373 structure.
6374 * frame.c (frame_pc_unwind): Update.
6375 (create_sentinel_frame): Do not set "pc".
6376 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6377 (get_frame_pc): Call frame_pc_unwind.
6378 (deprecated_update_frame_pc_hack): Update.
6379 (create_new_frame): Use "pc" not "->pc".
6380
6381 2003-04-09 Andrew Cagney <cagney@redhat.com>
6382
6383 * frame.c (get_frame_id): Eliminate code updating "frame".
6384 (legacy_get_prev_frame): Ditto.
6385 (get_frame_base): Return id.base directly.
6386 (deprecated_update_frame_base_hack): Update "id.base".
6387 * frame.h (struct frame_info): Delete field "frame".
6388
6389 2003-04-09 Andrew Cagney <cagney@redhat.com>
6390
6391 * NEWS: Mention that the "Sequent family" is obsolete.
6392 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6393 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6394 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6395 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6396 * config/i386/tm-ptx4.h: Obsolete file.
6397 * config/i386/tm-ptx.h: Obsolete file.
6398 * symm-tdep.c: Obsolete file.
6399 * config/i386/symmetry.mt: Obsolete file.
6400 * config/i386/tm-symmetry.h: Obsolete file.
6401 * symm-nat.c: Obsolete file.
6402 * config/i386/nm-symmetry.h: Obsolete file.
6403 * config/i386/xm-symmetry.h: Obsolete file.
6404 * config/i386/symmetry.mh: Obsolete file.
6405 * config/i386/nm-ptx4.h: Obsolete file.
6406 * config/i386/ptx4.mh: Obsolete file.
6407 * config/i386/ptx.mt: Obsolete file.
6408 * config/i386/ptx.mh: Obsolete file.
6409 * config/i386/xm-ptx4.h: Obsolete file.
6410 * config/i386/xm-ptx.h: Obsolete file.
6411
6412 2003-04-09 Andrew Cagney <cagney@redhat.com>
6413
6414 Obsolete mips*-*-mach3*.
6415 * NEWS: Mention that mips*-*-mach3* is obsolete.
6416 * m3-nat.c: Obsolete file.
6417 * config/nm-m3.h: Obsolete file.
6418 * config/mips/tm-mipsm3.h: Obsolete file.
6419 * config/mips/mipsm3.mt: Obsolete file.
6420 * config/mips/mipsm3.mh: Obsolete file.
6421 * config/mips/xm-mipsm3.h: Obsolete file.
6422 * mipsm3-nat.c: Obsolete file.
6423 * configure.host: Obsolete mips-dec-mach3*.
6424 * configure.tgt: Obsolete mips*-*-mach3*.
6425
6426 2003-04-09 Andrew Cagney <cagney@redhat.com>
6427
6428 * doublest.h: Update copyright.
6429 (deprecated_store_floating, deprecated_extract_floating): Rename
6430 store_floating and extract_floating. Update comments.
6431 * doublest.c: Update copyright.
6432 (extract_floating_by_length): Replace extract_floating.
6433 (store_floating_by_length): Replace store_floating.
6434 (deprecated_extract_floating): New function.
6435 (deprecated_store_floating): New function.
6436 (extract_typed_floating): Call extract_floating_by_length.
6437 (store_typed_floating): Call store_floating_by_length.
6438 * x86-64-tdep.c (x86_64_store_return_value): Update.
6439 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6440 (sh64_extract_return_value): Update.
6441 (sh_sh4_register_convert_to_virtual): Update.
6442 (sh_sh64_register_convert_to_virtual): Update.
6443 (sh_sh4_register_convert_to_raw): Update.
6444 (sh_sh64_register_convert_to_raw): Update.
6445 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6446 (rs6000_register_convert_to_raw): Update.
6447 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6448 (ia64_register_convert_to_raw): Update.
6449 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6450 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6451 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6452 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6453 (alpha_register_convert_to_raw): Update.
6454
6455 2003-04-08 Andrew Cagney <cagney@redhat.com>
6456
6457 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6458 * gdbarch.h, gdbarch.c: Re-generate.
6459 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6460 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6461 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6462 conditionally, use frame_pc_unwind as an alternative. Add
6463 comments.
6464 * arch-utils.c (init_frame_pc_default): Only call
6465 SAVED_PC_AFTER_CALL when available.
6466
6467 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6468
6469 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6470 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6471 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6472 (start_remote): Ditto.
6473 (handle_inferior_event): Ditto.
6474 (save_inferior_status): Ditto.
6475 (restore_inferior_status): Ditto.
6476 * infcmd.c (attach_command): Ditto.
6477 * fork-child.c (startup_inferior): Ditto.
6478 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6479 * alpha-tdep.c (heuristic_proc_start): Ditto.
6480 * mips-tdep.c (heuristic_proc_start): Ditto.
6481 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6482 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6483 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6484 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6485 * remote-vx.c (vx_create_inferior): Ditto.
6486
6487 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6488
6489 * infrun.c (stop_soon_quietly): Make it an enum, to better
6490 override the default behavior of handle_inferior_event.
6491 (clear_proceed_status): Update uses of stop_soon_quietly to
6492 reflect that it is now an enum.
6493 (start_remote): Ditto.
6494 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6495 is set to handle the new GNU/Linux kernel behavior for
6496 attach/sigstop. Update uses of stop_soon_quietly.
6497 * inferior.h (enum stop_kind): New enum.
6498 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6499 Reset normal handle_inferior_event behavior, afterwards.
6500 * fork-child.c (startup_inferior): Update.
6501 * alpha-tdep.c (heuristic_proc_start): Update.
6502 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6503 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6504 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6505 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6506 * remote-vx.c (vx_create_inferior): Update.
6507 * mips-tdep.c (heuristic_proc_start): Update.
6508
6509 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6510
6511 * disasm.c (dump_insns): Move variables inside loop, or they will
6512 be freed more than once, causing wild memory corruptions.
6513 (gdb_disassembly): Look for the substring "-thread",
6514 instead of "-threads" in the target name, to make sure to find
6515 the 'multi-thread' target. Also, make sure we do the right thing
6516 with the "core" target.
6517
6518 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6519
6520 * mips-tdep.c (mips_print_fp_register): New function, created from
6521 do_fp_register_row(). Registers are now (also) printed as hex.
6522 Only one register is printed per row.
6523 (mips_print_register, do_fp_register_row): Print floating point
6524 registers with mips_print_fp_register().
6525
6526 2003-04-06 Andrew Cagney <cagney@redhat.com>
6527
6528 * valprint.h (inspect_it): Add extern declaration.
6529 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6530 (selectors_info, classes_info): Ditto.
6531 (find_objc_msgcall): Fix indentation.
6532 (objc_printstr): Delete extern declarations.
6533
6534 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6535
6536 2003-04-06 Andrew Cagney <cagney@redhat.com>
6537
6538 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6539 Update comment.
6540 * frame.c (legacy_saved_regs_this_id): Update.
6541 (legacy_get_prev_frame): Update.
6542 * xstormy16-tdep.c: Update comment.
6543 * sparc-tdep.c (sparc_frame_chain): Update comment.
6544 * blockframe.c (legacy_frame_chain_valid): Update.
6545
6546 2003-04-06 Andrew Cagney <cagney@redhat.com>
6547
6548 * valprint.c (val_print_type_code_int): Delete #ifdef
6549 PRINT_TYPELESS_INTEGER code.
6550
6551 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6552 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6553 multi-arch definition.
6554 * gdbarch.h: Re-generate.
6555
6556 2003-04-05 Andrew Cagney <cagney@redhat.com>
6557
6558 Eliminate FRAME_FIND_SAVED_REGS.
6559 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6560 Change FSR parameter to a pointer.
6561 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6562 Assume FSR parameter is a pointer.
6563 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6564 Make fsr a pointer.
6565 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6566 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6567 saved_regs a pointer.
6568 (hppa_frame_saved_pc): Ditto.
6569 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6570 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6571 pointer.
6572 (restore_pc_queue): Make fsr a pointer.
6573 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6574 (hppa_frame_chain): Make saved_regs a pointer, call
6575 hppa_frame_init_saved_regs.
6576 * sparc-tdep.c: Include "gdb_assert.h".
6577 (sparc_frame_find_saved_regs): Replace internal_error with
6578 gdb_assert.
6579 * remote-vxsparc.c (vx_read_register): Delete reference to
6580 FRAME_FIND_SAVED_REGS.
6581 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6582 * gdbarch.h: Regenerate.
6583 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6584 (deprecated_get_frame_saved_regs): Delete declaration.
6585 (struct frame_saved_regs): Delete definition.
6586 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6587 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6588 (hppa_frame_find_saved_regs): Delete declaration.
6589 (FRAME_FIND_SAVED_REGS): Delete macro.
6590 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6591 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6592 FRAME_FIND_SAVED_REGS in comment.
6593
6594 2003-04-05 Andrew Cagney <cagney@redhat.com>
6595
6596 * frame.c (frame_func_unwind, get_frame_func): New functions.
6597 * frame.h (get_frame_func, frame_func_unwind): Declare.
6598 (struct frame_info): Add field "prev_func" for caching the
6599 previous frame's function address.
6600 * arm-tdep.c (arm_frameless_function_invocation): Combine
6601 get_pc_function_start and get_frame_pc into get_frame_func.
6602 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6603 (sh64_nofp_frame_init_saved_regs): Ditto.
6604 * s390-tdep.c (s390_function_start): Ditto.
6605 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6606 (rs6000_frameless_function_invocation): Ditto.
6607 (rs6000_frame_saved_pc): Ditto.
6608 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6609 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6610 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6611 (i386_frame_init_saved_regs): Ditto.
6612 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6613 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6614 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6615 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6616 * blockframe.c (frameless_look_for_prologue): Ditto.
6617
6618 2003-04-05 Andrew Cagney <cagney@redhat.com>
6619
6620 * frame.c (legacy_get_prev_frame): Link prev to next at the
6621 function start. Update comments.
6622
6623 2003-04-05 Andrew Cagney <cagney@redhat.com>
6624
6625 * frame.c (get_frame_id): Update comment.
6626 (legacy_get_prev_frame): Update comment.
6627 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6628 * gdbarch.h: Regenerate.
6629 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6630 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6631
6632 2003-04-05 Andrew Cagney <cagney@redhat.com>
6633
6634 * stack.c (print_frame_info): Use get_frame_pc.
6635
6636 2003-04-04 Andrew Cagney <cagney@redhat.com>
6637
6638 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6639 the frame's type from the unwinder.
6640 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6641 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6642 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6643 (get_frame_base_address): Use get_frame_type.
6644 (get_frame_locals_address, get_frame_args_address): Ditto.
6645 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6646 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6647 (struct frame_info): Add comment explaining why the frame contains
6648 a "type" field.
6649 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6650 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6651 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6652 NORMAL_FRAME.
6653 * frame-unwind.h: Include "frame.h".
6654 (struct frame_unwind): Add "type" field.
6655 * Makefile.in (frame_unwind_h): Add $(frame_h).
6656
6657 2003-04-04 Andrew Cagney <cagney@redhat.com>
6658
6659 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6660 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6661 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6662 get_frame_base.
6663 (d10v_unwind_dummy_id): Use frame_id_build.
6664 * frame.c (find_frame_sal): Use get_frame_pc.
6665 (create_new_frame): Use deprecated_update_frame_pc_hack and
6666 deprecated_update_frame_base_hack.
6667 (create_sentinel_frame): Add comment about ->pc going away.
6668 (get_prev_frame): Add comment about ->pc going away.
6669 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6670 frame_id_build, deprecated_update_frame_pc_hack and
6671 deprecated_update_frame_base_hack.
6672 (select_frame): Use get_frame_pc.
6673 (legacy_saved_regs_this_id): Use frame_id_build.
6674
6675 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6676
6677 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6678 signed integer case.
6679 (classify_argument): Handle enumerations and references.
6680
6681 2003-04-04 Andrew Cagney <cagney@redhat.com>
6682
6683 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6684 ID to NULL.
6685
6686 2003-04-01 Adam Fedor <fedor@gnu.org>
6687
6688 * gdb/objc-lang.c (selectors_info): Replace calls to
6689 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6690 SYMBOL_NATURAL_NAME.
6691 (classes_info, find_methods): Likewise.
6692
6693 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6694
6695 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6696 ``mach'' to the value determined by bfd_default_set_arch_mach().
6697
6698 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6699
6700 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6701 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6702 (mi-cmd-file.o): Update dependencies.
6703
6704 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6705
6706 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6707 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6708
6709 2003-04-01 Adam Fedor <fedor@gnu.org>
6710
6711 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6712 * language.h (struct language_defn): Add la_demangle.
6713 (language_demangle): Declare.
6714 * language.c (language_demangle): New function.
6715 (unk_lang_demangle): Likewise.
6716 (unknown_language_defn, auto_language_defn, local_language_defn):
6717 Add ukn_lang_demangle.
6718 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6719 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6720 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6721 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6722 * jv-lang.c (java_demangle): New function
6723 (java_language_defn): Use it for la_demangle element.
6724 * objc-lang.c (objc_demangle): Add options argument
6725 (objc_language_defn): Use objc_demangle for la_demangle element.
6726 * maint.c (maintenance_demangle): Replace switch with
6727 call to language_demangle.
6728 * utils.c (fprintf_symbol_filtered): Likewise.
6729
6730 2003-04-01 Andrew Cagney <cagney@redhat.com>
6731
6732 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6733 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6734 PRINT_TYPELESS_INTEGER.
6735 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6736 PUSH_RETURN_ADDRESS.
6737
6738 2003-04-01 Andrew Cagney <cagney@redhat.com>
6739
6740 * Makefile.in (d10v-tdep.o): Update dependencies.
6741 * d10v-tdep.c: Include "frame-base.h".
6742 (d10v_frame_unwind): Make constant.
6743 (d10v_frame_base_address): New function.
6744 (d10v_frame_base): New variable.
6745 (d10v_gdbarch_init): Set frame_base default.
6746 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6747 comment for base.
6748 (d10v_frame_unwind_cache): Set and use "prev_sp".
6749 (d10v_frame_this_id): Use the previous frame's inner most stack
6750 address and this frame's func address for the frame ID. Use
6751 frame_id_build. Don't analyze beyond the current instruction.
6752
6753 2003-04-01 Andrew Cagney <cagney@redhat.com>
6754
6755 * frame.h (get_frame_locals_address, get_frame_args_address):
6756 Refer to the base address, instead of the address of the first
6757 local or parameter.
6758
6759 2003-04-01 Andrew Cagney <cagney@redhat.com>
6760
6761 Add frame debug info addresses:
6762 * frame-base.c: New file.
6763 * frame-base.h: New file.
6764 * frame.h (struct frame_base): Add opaque declaration.
6765 (get_frame_base): Update comment.
6766 (get_frame_base_address): Declare.
6767 (get_frame_locals_address): Declare.
6768 (get_frame_args_address): Declare.
6769 (struct frame_info): Add "base" and "base_cache". Update
6770 comments on the unwinder.
6771 * frame.c: Include "frame-base.h".
6772 (get_frame_locals_address): New function.
6773 (get_frame_base_address): New function.
6774 (get_frame_args_address): New function.
6775 * findvar.c (read_var_value): Use get_frame_locals_address and
6776 get_frame_args_address.
6777 * stack.c (frame_info): Use get_frame_locals_address and
6778 get_frame_args_address.
6779 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6780 moved to "frame-base.c".
6781 * printcmd.c (print_frame_nameless_args): Ditto.
6782 * symtab.h (address_class): Update comments.
6783 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6784 get_frame_base_address.
6785 * dwarf2expr.c (execute_stack_op): Ditto.
6786 * Makefile.in (frame_base_h): Define.
6787 (frame.o): Update dependencies.
6788 (frame-base.o): Add dependencies.
6789 (SFILES): Add frame-base.c.
6790 (COMMON_OBS): Add frame-base.o.
6791
6792 2003-04-01 Andrew Cagney <cagney@redhat.com>
6793
6794 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6795 CALL_DUMMY_LENGTH): Ditto.
6796 * gdbarch.c: Re-generate.
6797 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6798 (CALL_DUMMY_LENGTH): Delete macro.
6799 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6800 * arm-tdep.c (arm_gdbarch_init): Ditto.
6801 * avr-tdep.c (avr_gdbarch_init): Ditto.
6802 * cris-tdep.c (cris_gdbarch_init): Ditto.
6803 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6804 * frv-tdep.c (frv_gdbarch_init): Ditto.
6805 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6806 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6807 * i386-tdep.c (i386_gdbarch_init): Ditto.
6808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6810 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6811 * mips-tdep.c (mips_gdbarch_init): Ditto.
6812 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6813 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6814 * s390-tdep.c (s390_gdbarch_init): Ditto.
6815 * sh-tdep.c (sh_gdbarch_init): Ditto.
6816 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6817 * v850-tdep.c (v850_gdbarch_init): Ditto.
6818 * vax-tdep.c (vax_gdbarch_init): Ditto.
6819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6820
6821 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6822
6823 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6824
6825 2003-04-01 Andrew Cagney <cagney@redhat.com>
6826
6827 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6828 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6829 * gdbarch.h, gdbarch.c: Re-generate.
6830 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6831 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6832 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6833 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6834 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6835 * infcmd.c (run_stack_dummy): Simplify assuming
6836 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6837 * infrun.c (handle_inferior_event): Ditto.
6838 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6839 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6840 * arm-tdep.c (arm_gdbarch_init): Ditto.
6841 * avr-tdep.c (avr_gdbarch_init): Ditto.
6842 * cris-tdep.c (cris_gdbarch_init): Ditto.
6843 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6844 * frv-tdep.c (frv_gdbarch_init): Ditto.
6845 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6846 * i386-tdep.c (i386_gdbarch_init): Ditto.
6847 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6849 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6850 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6851 * mips-tdep.c (mips_gdbarch_init): Ditto.
6852 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6853 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6855 * s390-tdep.c (s390_gdbarch_init): Ditto.
6856 * sh-tdep.c (sh_gdbarch_init): Ditto.
6857 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6858 * v850-tdep.c (v850_gdbarch_init): Ditto.
6859 * vax-tdep.c (vax_gdbarch_init): Ditto.
6860 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6861
6862 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6863
6864 * symfile.c (symfile_relocate_debug_section): Update call to
6865 bfd_simple_get_relocated_section_contents.
6866
6867 2003-03-31 Andrew Cagney <cagney@redhat.com>
6868
6869 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6870 * gdbarch.h, gdbarch.c: Regenerate.
6871 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6872 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6873 available.
6874 * frame.h (generic_fix_call_dummy): Delete declaration.
6875 * dummy-frame.h: Update comment.
6876 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6878 fix_call_dummy.
6879 * sh-tdep.c (sh_gdbarch_init): Ditto.
6880 * s390-tdep.c (s390_gdbarch_init): Ditto.
6881 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6882 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6884 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6885 * i386-tdep.c (i386_gdbarch_init): Ditto.
6886 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6887 * frv-tdep.c (frv_gdbarch_init): Ditto.
6888 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6889 * cris-tdep.c (cris_gdbarch_init): Ditto.
6890 * avr-tdep.c (avr_gdbarch_init): Ditto.
6891 * arm-tdep.c (arm_gdbarch_init): Ditto.
6892
6893 2003-03-31 J. Brobecker <brobecker@gnat.com>
6894
6895 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6896 (INIT_FRAME_AP): Likewise.
6897 (EXTRA_FRAME_INFO): Likewise.
6898
6899 2003-03-31 Andrew Cagney <cagney@redhat.com>
6900
6901 * gdbarch.sh: Include "symfile.h".
6902 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6903 * gdbarch.h, gdbarch.c: Re-generate.
6904 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6905 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6906 call_dummy_address, the default is at entry_point_address.
6907 * v850-tdep.c (v850_gdbarch_init): Ditto.
6908 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6909 * sh-tdep.c (sh_gdbarch_init): Ditto.
6910 * s390-tdep.c (s390_gdbarch_init): Ditto.
6911 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6912 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6913 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6914 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6915 * i386-tdep.c (i386_gdbarch_init): Ditto.
6916 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6917 * frv-tdep.c (frv_gdbarch_init): Ditto.
6918 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6919 * cris-tdep.c (cris_gdbarch_init): Ditto.
6920 * arm-tdep.c (arm_gdbarch_init): Ditto.
6921
6922 2003-03-31 Andrew Cagney <cagney@redhat.com>
6923
6924 * gdbarch.sh (CALL_DUMMY_P): Delete.
6925 * gdbarch.h, gdbarch.c: Re-generate.
6926 * inferior.h (CALL_DUMMY_P): Delete macro.
6927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6928 * vax-tdep.c (vax_gdbarch_init): Update.
6929 * v850-tdep.c (v850_gdbarch_init): Update.
6930 * sparc-tdep.c (sparc_gdbarch_init): Update.
6931 * sh-tdep.c (sh_gdbarch_init): Update.
6932 * s390-tdep.c (s390_gdbarch_init): Update.
6933 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6934 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6935 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6936 * mips-tdep.c (mips_gdbarch_init): Update.
6937 * mcore-tdep.c (mcore_gdbarch_init): Update.
6938 * m68k-tdep.c (m68k_gdbarch_init): Update.
6939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6940 * ia64-tdep.c (ia64_gdbarch_init): Update.
6941 * i386-tdep.c (i386_gdbarch_init): Update.
6942 * h8300-tdep.c (h8300_gdbarch_init): Update.
6943 * frv-tdep.c (frv_gdbarch_init): Update.
6944 * d10v-tdep.c (d10v_gdbarch_init): Update.
6945 * cris-tdep.c (cris_gdbarch_init): Update.
6946 * breakpoint.c (deprecated_frame_in_dummy): Update.
6947 * avr-tdep.c (avr_gdbarch_init): Update.
6948 * alpha-tdep.c (alpha_gdbarch_init): Update.
6949 * arm-tdep.c (arm_gdbarch_init): Update.
6950 * dummy-frame.c (dummy_frame_this_id): Update comments.
6951 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6952 * frame.c (legacy_get_prev_frame): Ditto.
6953 * valops.c (call_function_by_hand): Delete function.
6954 (hand_function_call): Rename to call_function_by_hand
6955
6956 2003-03-30 Andrew Cagney <cagney@redhat.com>
6957
6958 2002-11-10 Klee Dienes <kdienes@apple.com>
6959 * value.h (struct value): Update comment.
6960
6961 2003-03-30 Andrew Cagney <cagney@redhat.com>
6962
6963 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6964 D10V_FP_REGNUM.
6965 (d10v_gdbarch_init): Do not set fp_regnum.
6966
6967 * frame.c (get_frame_base): Force ID initialization.
6968 (get_prev_frame): Move computation of the frame ID from here ...
6969 (get_frame_id): ... to here.
6970 (legacy_get_prev_frame): Mark the frame ID as valid.
6971 * frame.h (struct frame_info): Add field "id_p".
6972
6973 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6974
6975 * i386-tdep.c (i386_store_struct_return): Removed.
6976 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6977
6978 2003-03-30 Andrew Cagney <cagney@redhat.com>
6979
6980 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6981 * gdbarch.h, gdbarch.c: Regenerate.
6982 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6983 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6985 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6986 * i386-tdep.c (i386_gdbarch_init): Ditto.
6987 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6988 * cris-tdep.c (cris_gdbarch_init): Ditto.
6989 * vax-tdep.c (vax_gdbarch_init): Ditto.
6990 * s390-tdep.c (s390_gdbarch_init): Ditto.
6991 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6992 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6993 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6994 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6995 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6996 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6997 * sparc-tdep.c (sparc_gdbarch_init): Update.
6998 * sh-tdep.c (sh_gdbarch_init): Update.
6999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7000 * mips-tdep.c (mips_gdbarch_init): Update.
7001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7002 * ia64-tdep.c (ia64_gdbarch_init): Update.
7003 * frv-tdep.c (frv_gdbarch_init): Update.
7004 * avr-tdep.c (avr_gdbarch_init): Update.
7005 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7006 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7007 instead of when push_dummy_call is not available.
7008
7009 2003-03-30 Andrew Cagney <cagney@redhat.com>
7010
7011 * infttrace.c: Include "gdbthread.h".
7012 (parent_attach_all): Fix function signature.
7013 (call_ptrace): Update call.
7014 * Makefile.in (infttrace.o): Update dependencies.
7015
7016 2003-03-30 Andrew Cagney <cagney@redhat.com>
7017
7018 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7019 PUSH_RETURN_ADDRESS.
7020 * gdbarch.h, gdbarch.c: Regenerate.
7021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7022 * x86-64-tdep.c (x86_64_init_abi): Update.
7023 * v850-tdep.c (v850_gdbarch_init): Update.
7024 * sparc-tdep.c (sparc_gdbarch_init): Update.
7025 * sh-tdep.c (sh_gdbarch_init): Update.
7026 * s390-tdep.c (s390_gdbarch_init): Update.
7027 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7028 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7029 * mips-tdep.c (mips_gdbarch_init): Update.
7030 * mcore-tdep.c (mcore_gdbarch_init): Update.
7031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7032 * ia64-tdep.c (ia64_gdbarch_init): Update.
7033 * i386-tdep.c (i386_gdbarch_init): Update.
7034 * h8300-tdep.c (h8300_gdbarch_init): Update.
7035 * frv-tdep.c (frv_gdbarch_init): Update.
7036 * cris-tdep.c (cris_gdbarch_init): Update.
7037 * avr-tdep.c (avr_gdbarch_init): Update.
7038 * arm-tdep.c (arm_gdbarch_init): Update.
7039 * valops.c (hand_function_call): Update.
7040
7041 2003-03-29 Andrew Cagney <cagney@redhat.com>
7042
7043 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7044 sizeof_call_dummy_words.
7045 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7046 define.
7047 * gdbarch.h: Regenerate.
7048
7049 2003-03-29 Andrew Cagney <cagney@redhat.com>
7050
7051 * infttrace.h: New file.
7052 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7053 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7054 (hpread_read_doc_function_type): Detect an initialized type1.
7055 (hpread_quick_traverse): Initialize mod_name_string.
7056 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7057 (som_solib_get_solib_by_pc): Declare.
7058 (so_lib_thread_start_addr): Declare.
7059 (no_shared_libraries): Declare.
7060 * somread.c (init_import_symbols): Make static. Add forward
7061 declaration.
7062 * config/pa/nm-hppah.h: Include "infttrace.h" for
7063 parent_attach_all.
7064 (hppa_insert_hw_watchpoint): Declare.
7065 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7066 * hppah-nat.c: Include "gdb_string.h".
7067 (parent_attach_all): Delete extern declaration, moved to
7068 "infttrace.h".
7069 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7070 int.
7071 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7072 * Makefile.in (infttrace_h): Define.
7073 (hpread.o): Update dependencies.
7074 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7075 * hppa-hpux-tdep.c: Include "gdb_string.h".
7076 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7077 * infrun.c (handle_inferior_event): Always initialize
7078 stepped_after_stopped_by_watchpoint. Add default and remove
7079 fallthrough in switch statement.
7080 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7081 parameter to int.
7082 (hppa_remove_hw_watchpoint): Ditto.
7083
7084 2003-03-29 Andrew Cagney <cagney@redhat.com>
7085
7086 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7087 offset.
7088
7089 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7090
7091 * arm-tdep.c (arm_push_arguments): Delete.
7092 (struct stack_item): New type.
7093 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7094 (arm_store_struct_return): Delte.
7095 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7096 arm_push_arguments or arm_store_struct_return.
7097
7098 2003-03-28 Andrew Cagney <cagney@redhat.com>
7099
7100 * Makefile.in (d10v-tdep.o): Update dependencies.
7101 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7102 * d10v-tdep.c: Include "remote.h".
7103 (target_resume_hook): Delete extern declaration.
7104 (target_wait_loop_hook): Ditto.
7105 (tdisassemble_command): Eliminate assignment in "if" conditional.
7106 (d10v_ts2_register_sim_regno): Eliminate call to
7107 legacy_register_sim_regno.
7108 (d10v_ts3_register_sim_regno): Ditto.
7109
7110 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7111
7112 * thread.c: Reindented.
7113 * lin-lwp.c: Ditto.
7114 * linux-proc.c: Ditto.
7115
7116 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7117
7118 * MAINTAINERS (write after approval): Add myself.
7119
7120 2003-03-27 Theodore A. Roth <troth@openavr.org>
7121
7122 * objc-exp.y: Add missing semi-colons.
7123
7124 2003-03-27 Andrew Cagney <cagney@redhat.com>
7125
7126 * regcache.c (write_sp): Delete function and references.
7127 * inferior.h (write_sp): Delete declaration.
7128 * valops.c (hand_function_call): Replace write_sp with
7129 TARGET_WRITE_SP.
7130 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7131 (sparc_pop_frame): Ditto.
7132
7133 2003-03-27 Andrew Cagney <cagney@redhat.com>
7134
7135 * NEWS: Mention removal of support for hppa*-*-bsd* and
7136 hppa*-*-osf* natives, and hppa*-*-pro* target.
7137 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7138 * config/pa/xm-pa.h: Obsolete file.
7139 * config/pa/xm-hppab.h: Obsolete file.
7140 * config/pa/nm-hppab.h: Obsolete file.
7141 * config/pa/tm-hppab.h: Obsolete file.
7142 * config/pa/tm-hppao.h: Obsolete file.
7143 * config/pa/nm-hppao.h: Obsolete file.
7144 * config/pa/tm-pro.h: Obsolete file.
7145 * config/pa/hppaosf.mt: Obsolete file.
7146 * config/pa/hppaosf.mh: Obsolete file.
7147 * config/pa/hppapro.mt: Obsolete file.
7148 * config/pa/hppabsd.mt: Obsolete file.
7149 * config/pa/hppabsd.mh: Obsolete file.
7150 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7151 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7152 hppa*-*-osf*.
7153
7154 2003-03-27 Andrew Cagney <cagney@redhat.com>
7155
7156 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7157 push_arguments. Don't set push_return_address or write_sp.
7158 (d10v_push_dummy_call): Replace d10v_push_arguments.
7159 (d10v_push_return_address, d10v_write_sp): Delete function,
7160 handled by push_dummy_call.
7161
7162 2003-03-26 Andrew Cagney <cagney@redhat.com>
7163
7164 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7165 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7166 regcache and dummy_addr parameters.
7167 * gdbarch.h, gdbarch.c: Re-generate.
7168 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7169 available; assume it will handle stack alignment and return
7170 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7171 legacy_push_arguments.
7172 (legacy_push_arguments): Rename default_push_arguments.
7173 * value.h (legacy_push_arguments): Rename default_push_arguments.
7174 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7175 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7176 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7177 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7178 * config/i386/tm-symmetry.h: Update.
7179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7180 * x86-64-tdep.c (x86_64_init_abi): Update.
7181 * v850-tdep.c (v850_gdbarch_init): Update.
7182 * sparc-tdep.c (sparc_gdbarch_init): Update.
7183 * sh-tdep.c (sh_gdbarch_init): Update.
7184 * s390-tdep.c (s390_gdbarch_init): Update.
7185 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7187 * mips-tdep.c (mips_gdbarch_init): Update.
7188 * mcore-tdep.c (mcore_gdbarch_init): Update.
7189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7190 * ia64-tdep.c (ia64_gdbarch_init): Update.
7191 * i386-tdep.c (i386_gdbarch_init): Update.
7192 * hppa-tdep.c (hppa_gdbarch_init): Update.
7193 * h8300-tdep.c (h8300_gdbarch_init): Update.
7194 * frv-tdep.c (frv_gdbarch_init): Update.
7195 * d10v-tdep.c (d10v_gdbarch_init): Update.
7196 * cris-tdep.c (cris_gdbarch_init): Update.
7197 * avr-tdep.c (avr_gdbarch_init): Update.
7198 * arm-tdep.c (arm_gdbarch_init): Update.
7199 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7200 * alpha-tdep.c (alpha_gdbarch_init): Update.
7201
7202 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7203
7204 * signals/signals.c (do_target_signal_to_host): Correct realtime
7205 signal range test.
7206
7207 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7208
7209 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7210 (struct sal_chain, map_catch_names): Remove.
7211 (catch_exception_command_1): Don't call
7212 handle_gnu_4_16_catch_command.
7213
7214 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7215
7216 From Mark Dettinger <dettinge@de.ibm.com>:
7217 * dwarf2cfi.c (read_2u): Increment pointer by two.
7218
7219 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7220
7221 * signals/signals.c: Fix typos in last change.
7222
7223 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7224
7225 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7226 not already defined. Use __SIGRTMIN if available.
7227 (target_signal_from_host): Remove SIGRTMIN block.
7228 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7229 the signal is within the realtime range.
7230
7231 2003-03-25 Adam Fedor <fedor@gnu.org>
7232
7233 * Makefile.in (infrun.o): Add $(language_h)
7234 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7235 for language specific trampolines.
7236 * language.h (struct language_defn): Add skip_trampoline.
7237 (skip_language_trampoline): Declare.
7238 * language.c (unk_lang_trampoline, skip_language_trampoline):
7239 New functions.
7240 (unknown_language_defn, auto_language_defn, local_language_defn):
7241 Add ukn_lang_trampoline.
7242 * ada-lang.c (ada_language_defn): Add NULL for language
7243 specific skip_trampoline.
7244 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7245 scm-lang.c: Likewise.
7246 * objc-lang.c (objc_skip_trampoline): New function.
7247 (objc_language_defn): Add objc_skip_trampoline.
7248
7249 2003-03-25 Andrew Cagney <cagney@redhat.com>
7250
7251 * frame.c (get_prev_frame): Delay validating a frame's ID -
7252 non-NULL, didn't go backwards - until an attempt to unwind it to
7253 the previous frame.
7254
7255 2003-03-25 Andrew Cagney <cagney@redhat.com>
7256
7257 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7258 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7259 * gdbarch.h, gdbarch.c: Re-generate.
7260 * config/sparc/tm-sparc.h
7261 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7262 * sparc-tdep.c (sparc_gdbarch_init): Set
7263 deprecated_extra_stack_alignment_needed.
7264 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7266 extra_stack_alignment_needed.
7267 * v850-tdep.c (v850_gdbarch_init): Ditto.
7268 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7269 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7270 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7271 * cris-tdep.c (cris_gdbarch_init): Ditto.
7272 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7274
7275 2003-03-25 Andrew Cagney <cagney@redhat.com>
7276
7277 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7278 STORE_STRUCT_RETURN.
7279 * gdbarch.h, gdbarch.c: Regenerate.
7280 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7281 (d10v_push_arguments): Set the struct return register.
7282 (d10v_gdbarch_init): Update.
7283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7284 * x86-64-tdep.c (x86_64_init_abi): Update.
7285 * vax-tdep.c (vax_gdbarch_init): Update.
7286 * v850-tdep.c (v850_gdbarch_init): Update.
7287 * sparc-tdep.c (sparc_gdbarch_init): Update.
7288 * sh-tdep.c (sh_gdbarch_init): Update.
7289 * s390-tdep.c (s390_gdbarch_init): Update.
7290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7291 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7293 * mips-tdep.c (mips_gdbarch_init): Update.
7294 * mcore-tdep.c (mcore_gdbarch_init): Update.
7295 * m68k-tdep.c (m68k_gdbarch_init): Update.
7296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7297 * ia64-tdep.c (ia64_gdbarch_init): Update.
7298 * i386-tdep.c (i386_gdbarch_init): Update.
7299 * hppa-tdep.c (hppa_gdbarch_init): Update.
7300 * h8300-tdep.c (h8300_gdbarch_init): Update.
7301 * frv-tdep.c (frv_gdbarch_init): Update.
7302 * cris-tdep.c (cris_gdbarch_init): Update.
7303 * avr-tdep.c (avr_gdbarch_init): Update.
7304 * arm-tdep.c (arm_gdbarch_init): Update.
7305 * alpha-tdep.c (alpha_gdbarch_init): Update.
7306
7307 2003-03-25 Andrew Cagney <cagney@redhat.com>
7308
7309 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7310 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7311 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7312 * gdbarch.h, gdbarch.c: Regenerate.
7313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7314 call_dummy_stack_adjust_p.
7315 * vax-tdep.c (vax_gdbarch_init): Ditto.
7316 * v850-tdep.c (v850_gdbarch_init): Ditto.
7317 * sh-tdep.c (sh_gdbarch_init): Ditto.
7318 * s390-tdep.c (s390_gdbarch_init): Ditto.
7319 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7320 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7322 * mips-tdep.c (mips_gdbarch_init): Ditto.
7323 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7324 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7326 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7327 * i386-tdep.c (i386_gdbarch_init): Ditto.
7328 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7329 * frv-tdep.c (frv_gdbarch_init): Ditto.
7330 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7331 * cris-tdep.c (cris_gdbarch_init): Ditto.
7332 * avr-tdep.c (avr_gdbarch_init): Ditto.
7333 * arm-tdep.c (arm_gdbarch_init): Ditto.
7334 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7335 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7336 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7337 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7338 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7339 call_dummy_stack_adjust_p.
7340 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7341 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7342 * sparc-tdep.c (sparc32_push_arguments): Update.
7343 * valops.c (hand_function_call): Update.
7344
7345 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7346
7347 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7348 set_gdbarch_char_signed.
7349
7350 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7351
7352 PR cli/548
7353 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7354
7355 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7356
7357 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7358 (_initialize_arm_tdep): Don't set tm_print_insn.
7359
7360 2003-03-24 Adam Fedor <fedor@gnu.org>
7361
7362 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7363 * objc-lang.h: Add multiple inclusion protection.
7364 (start_msglist, add_msglist, end_msglist): Additional declarations.
7365
7366 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7367
7368 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7369 value was renamed to ARM_FLOAT_SOFT_FPA.
7370
7371 2003-03-23 Andrew Cagney <cagney@redhat.com>
7372
7373 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7374 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7375 * gdbarch.h, gdbarch.c: Regenerate.
7376 * valops.c (hand_function_call): Update.
7377 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7378 * frame.c (legacy_saved_regs_this_id): Update.
7379 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7380 * dummy-frame.h: Update.
7381 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7382 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7383 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7384 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7385 * config/m68k/tm-sun3.h: Update.
7386 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7388 * x86-64-tdep.c (x86_64_init_abi): Update.
7389 * vax-tdep.c (vax_gdbarch_init): Update.
7390 * v850-tdep.c (v850_gdbarch_init): Update.
7391 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7392 * sh-tdep.c (sh_gdbarch_init): Update.
7393 * s390-tdep.c (s390_gdbarch_init): Update.
7394 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7395 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7396 (frame_get_saved_regs): Update.
7397 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7398 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7399 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7400 * mips-tdep.c (mips_gdbarch_init): Update.
7401 * mcore-tdep.c (mcore_gdbarch_init): Update.
7402 * m68k-tdep.c (m68k_gdbarch_init): Update.
7403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7404 * ia64-tdep.c (ia64_gdbarch_init): Update.
7405 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7406 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7407 (i386_interix_back_one_frame): Update.
7408 * hppa-tdep.c (hppa_gdbarch_init): Update.
7409 (hppa_init_extra_frame_info): Update.
7410 * h8300-tdep.c (h8300_gdbarch_init): Update.
7411 * frv-tdep.c (frv_gdbarch_init): Update.
7412 * cris-tdep.c (cris_gdbarch_init): Update.
7413 * avr-tdep.c (avr_gdbarch_init): Update.
7414 * arm-tdep.c (arm_gdbarch_init): Update.
7415 * alpha-tdep.c (alpha_gdbarch_init): Update.
7416
7417 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7418
7419 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7420 (arm_get_fp_model): Declare.
7421 * arm-tdep.c (fp_model_strings): New string array.
7422 (arm_fp_model, current_fp_model): New variables.
7423 (arm_get_fp_model): New function.
7424 (arm_set_fp): New function.
7425 (set_fp_model_sfunc): New function.
7426 (show_fp_model): New function.
7427 (_initialize_arm_tdep): Add new command to set/show the FPU.
7428 (arm_extract_return_value): Use arm_get_fp_model.
7429 (arm_store_return_value): Likewise.
7430 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7431 to initialize the floating-point data types.
7432 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7433 model is FPA.
7434
7435 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7436
7437 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7438 the current setting of each value.
7439 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7440 new_set and new_show. Use add_setshow_cmd_full and
7441 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7442 commands and add new version as subcommands of "set/show arm".
7443
7444 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7445
7446 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7447 (set_arm_command, show_arm_command): New functions.
7448 (_initialize_arm_tdep): Add them.
7449 (num_disassembly_options): Renamed from num_flavor_options.
7450 (valid_disassembly_styles): Renamed from valid_flavors.
7451 (disassembly_style): Renamed from disassembly_flavor.
7452 (set_disassembly_style_sfunc): Renamed from
7453 set_disassembly_flavor_sfunc.
7454 (set_disassembly_style): Renamed from set_disassembly_flavor.
7455 (arm_othernames): Updated.
7456 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7457 command. Add "set/show arm disassembly" commands. Deprecate
7458 "othernames" command.
7459
7460 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7461
7462 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7463 (arm-tdep.o): Depend on elf_arm_h.
7464
7465 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7466
7467 * Makefile.in (coff_internal_h): Define.
7468 (arm-tdep.o): Update dependencies.
7469
7470 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7471
7472 * arm-tdep.c (prologue_cache): Delete.
7473 (check_prologue_cache, save_prologue_cache): Delete.
7474 (arm_scan_prologue): Don't check or update the prologue_cache.
7475 (arm_gdb_arch_init): Don't initialize it.
7476 (_initialize_arm_tdep): Likewise.
7477
7478 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7479
7480 * MAINTAINERS (tui): Maintainer of tui code.
7481
7482 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7483
7484 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7485 (i386-cygwin-tdep.o): Add dependencies.
7486 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7487 * i386-cygwin-tdep.c: New file.
7488 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7489 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7490
7491 2003-03-20 Andrew Cagney <cagney@redhat.com>
7492
7493 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7494 (handle_inferior_event): Remove code calling
7495 DYNAMIC_TRAMPOLINE_NEXTPC.
7496
7497 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7498 already has a full path.
7499
7500 * main.c (gdb_main): Return 1.
7501 (captured_main): Call error to report an invalid interpreter.
7502
7503 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7504 * alpha-osf1-tdep.c: Include "gdb_string.h".
7505
7506 2003-03-19 J. Brobecker <brobecker@gnat.com>
7507
7508 Continuing work to convert the hppa targets to multiarch partial.
7509
7510 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7511 method, now that hppa_push_dummy_frame has a conformant prototype.
7512 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7513 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7514 for the switch to multiarch partial.
7515
7516 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7517
7518 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7519 when iss is issNull.
7520
7521 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7522
7523 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7524 NUM_REGS bounds check.
7525
7526 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7527
7528 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7529 * mips-tdep.c (gdb_assert.h): Include.
7530 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7531 (mips_register_name): Handle integer registers explicitly. Add
7532 bounds checking.
7533 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7534 (mips_lsi33k_reg_names): Don't list integer registers; they're
7535 handled by mips_register_name() now.
7536 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7537 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7538 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7539 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7540 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7541
7542 2003-03-18 Andrew Cagney <cagney@redhat.com>
7543
7544 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7545 a void pointer.
7546 * gdbtypes.h (print_scalar_formatted): Update declaration.
7547 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7548
7549 2003-03-18 J. Brobecker <brobecker@gnat.com>
7550
7551 * infrun.c (observer.h): Add #include.
7552 (normal_stop): Add call to observer_notify_normal_stop.
7553 * Makefile.in (infrun.o): Add dependency on observer.h.
7554
7555 2003-03-18 J. Brobecker <brobecker@gnat.com>
7556
7557 Continuing work to convert the hppa targets to multiarch partial.
7558 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7559 parameter. Reformat comment.
7560 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7561 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7562 to match new profile.
7563
7564 2003-03-18 J. Brobecker <brobecker@gnat.com>
7565
7566 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7567 appear to be working in any case.
7568
7569 2003-03-18 J. Brobecker <brobecker@gnat.com>
7570
7571 * observer.c (observer_test_first_observer): New static variable.
7572 (observer_test_second_observer): Likewise.
7573 (observer_test_third_observer): Likewise.
7574 (observer_test_first_notification_function): New static function.
7575 (observer_test_second_notification_function): Likewise.
7576 (observer_test_third_notification_function): Likewise.
7577
7578 2003-03-17 J. Brobecker <brobecker@gnat.com>
7579
7580 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7581 * somsolib.c (gdb_assert.h): Likewise.
7582 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7583 (somsolib.o): Likewise.
7584
7585 2003-03-17 Andrew Cagney <cagney@redhat.com>
7586
7587 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7588 BFD. Simplify setting of di.endian.
7589
7590 2003-03-17 Andrew Cagney <cagney@redhat.com>
7591
7592 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7593 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7594
7595 From Elena Zannoni <ezannoni@redhat.com>
7596 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7597 vector and floating-point parameters.
7598 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7599 convention.
7600 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7601
7602 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7603
7604 * MAINTAINERS: Remove my name from several maintainership roles.
7605
7606 2003-03-17 Andrew Cagney <cagney@redhat.com>
7607
7608 Fix frame off-by-one bug.
7609 * frame-unwind.h (frame_this_id_ftype): Replace
7610 frame_unwind_id_ftype.
7611 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7612 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7613 with "prev_register".
7614 * frame-unwind.c (frame_unwind_find_by_pc): Return
7615 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7616 comment.
7617 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7618 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7619 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7620 (dummy_frame_unwind): Update.
7621 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7622 sentinel_frame_register_unwind.
7623 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7624 (sentinel_frame_unwinder): Update.
7625 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7626 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7627 * frame.c (create_sentinel_frame): Update. Initialize
7628 "prologue_cache" instead of "unwind_cache".
7629 (frame_register_unwind): Call this frame's prev_register with the
7630 next frame and this frame's prologue cache.
7631 (get_prev_frame): Simplify. Always call prev frame's this_id with
7632 this frame and prev frame's prologue cache. Document that this
7633 call is shifted one to the left when compared to the
7634 frame_register_unwind call.
7635 (legacy_saved_regs_prev_register): Replace
7636 frame_saved_regs_register_unwind.
7637 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7638 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7639 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7640 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7641 (d10v_frame_unwind): Update.
7642 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7643 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7644 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7645 "saved_regs" with "this_saved_regs".
7646
7647 2003-03-16 Andrew Cagney <cagney@redhat.com>
7648
7649 * frame.c (frame_pop): Don't call target_store_registers. Fix
7650 problem reported by Mark Kettenis.
7651
7652 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7653
7654 * i386-tdep.c (i386_register_type): Renamed from
7655 i386_register_virtual_type. Adjust function signature.
7656 (i386_gdbarch_init): Set register_type instead of
7657 deprecated_max_register_raw_size,
7658 deprecated_max_register_virtual_size and register_virtual_type.
7659
7660 2003-03-14 Andrew Cagney <cagney@redhat.com>
7661
7662 * frame.c (get_prev_frame): When a legacy frame, always call
7663 legacy_get_prev_frame. Simplify unwind code using assumption that
7664 the unwinder is new.
7665 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7666 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7667 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7668
7669 2003-03-14 Andrew Cagney <cagney@redhat.com>
7670
7671 * frame.c (get_saved_register): Delete function.
7672 * frame.h (get_saved_register): Delete declaration.
7673 * xstormy16-tdep.c: Update comment.
7674 * regcache.h: Update comments.
7675 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7676 get_saved_register and extract_address, use
7677 frame_read_unsigned_register.
7678 (sparc_frame_saved_pc): Ditto.
7679 (sparc_get_saved_register): Instead of get_saved_register, use
7680 frame_register.
7681 (sparc_pop_frame): Ditto.
7682 * findvar.c: Update comments.
7683 (value_of_register): Call frame_register instead of
7684 get_saved_register.
7685 (value_from_register): Ditto.
7686 * config/sparc/tm-sparc.h: Update comment.
7687 * breakpoint.c: Update comment.
7688
7689 2003-03-14 Andrew Cagney <cagney@redhat.com>
7690
7691 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7692 GET_SAVED_REGISTER.
7693 * gdbarch.h, gdbarch.c: Re-generate.
7694 * frame.h: Update comments.
7695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7696 * x86-64-tdep.c (x86_64_init_abi): Update.
7697 * sparc-tdep.c (sparc_gdbarch_init): Update.
7698 * sh-tdep.c (sh_gdbarch_init): Update.
7699 * mips-tdep.c (mips_gdbarch_init): Update.
7700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7701 * cris-tdep.c (cris_gdbarch_init): Update.
7702 * ia64-tdep.c (ia64_gdbarch_init): Update.
7703 * frame.c (frame_register): Update.
7704 (get_saved_register): Update.
7705 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7706
7707 2003-03-13 Andrew Cagney <cagney@redhat.com>
7708
7709 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7710 * gdbarch.h, gdbarch.c: Regenerate.
7711 * valops.c (hand_function_call): Update comment.
7712 * stack.c (return_command): Update comment.
7713 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7714 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7716 * x86-64-tdep.c (x86_64_init_abi): Update.
7717 * vax-tdep.c (vax_gdbarch_init): Update.
7718 * v850-tdep.c (v850_gdbarch_init): Update.
7719 * sparc-tdep.c (sparc_gdbarch_init): Update.
7720 * sh-tdep.c (sh_gdbarch_init): Update.
7721 * s390-tdep.c (s390_gdbarch_init): Update.
7722 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7724 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7725 * mips-tdep.c (mips_gdbarch_init): Update.
7726 * mcore-tdep.c (mcore_gdbarch_init): Update.
7727 * m68k-tdep.c (m68k_gdbarch_init): Update.
7728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7729 * ia64-tdep.c (ia64_gdbarch_init): Update.
7730 * i386-tdep.c (i386_gdbarch_init): Update.
7731 * hppa-tdep.c (hppa_gdbarch_init): Update.
7732 * h8300-tdep.c (h8300_gdbarch_init): Update.
7733 * frv-tdep.c (frv_gdbarch_init): Update.
7734 * cris-tdep.c (cris_gdbarch_init): Update.
7735 * avr-tdep.c (avr_gdbarch_init): Update.
7736 * arm-tdep.c (arm_gdbarch_init): Update.
7737 * alpha-tdep.c (alpha_gdbarch_init): Update.
7738
7739 2003-03-13 Andrew Cagney <cagney@redhat.com>
7740
7741 * frame.c (legacy_frame_p): New function.
7742 (get_prev_frame): Use legacy_frame_p.
7743 * frame.h (legacy_frame_p): Declare.
7744
7745 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7746
7747 * MAINTAINERS (write after approval): Alphabetically
7748 listing corrected.
7749
7750 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7751
7752 * MAINTAINERS (write after approval): Add myself.
7753
7754 2003-03-12 Andrew Cagney <cagney@redhat.com>
7755
7756 * frame.c (get_prev_frame): Rename the frame parameter to
7757 "this_frame".
7758 (get_next_frame, legacy_get_prev_frame): Ditto.
7759
7760 2003-03-12 Andrew Cagney <cagney@redhat.com>
7761
7762 * frame.c (get_current_frame): Check target_has_registers before
7763 checking target_has_stack.
7764 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7765 instead of deprecated_selected_frame.
7766 * findvar.c (value_of_register): Pass "frame", not
7767 deprecated_selected_frame, to value_of_builtin_reg.
7768
7769 2003-03-12 Andrew Cagney <cagney@redhat.com>
7770
7771 * regcache.c (regcache_cooked_write_signed): New function.
7772 (regcache_cooked_write_unsigned): New function.
7773 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7774 (regcache_cooked_read_signed): Fix regnum in range assertion.
7775 * regcache.h (regcache_cooked_write_signed): Declare.
7776 (regcache_cooked_write_unsigned): Declare.
7777
7778 2003-03-12 Andrew Cagney <cagney@redhat.com>
7779
7780 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7781 * gdbarch.h, gdbarch.c: Re-generate.
7782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7783 * x86-64-tdep.h: Update.
7784 * x86-64-tdep.c (x86_64_init_abi): Update.
7785 * v850-tdep.c (v850_gdbarch_init): Update.
7786 * sparc-tdep.c (sparc_gdbarch_init): Update.
7787 * sh-tdep.c (sh_gdbarch_init): Update.
7788 * s390-tdep.c (s390_gdbarch_init): Update.
7789 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7790 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7791 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7792 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7793 * mips-tdep.c (mips_gdbarch_init): Update.
7794 * mcore-tdep.c (mcore_gdbarch_init): Update.
7795 * m68k-tdep.c (m68k_gdbarch_init): Update.
7796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7797 * ia64-tdep.c (ia64_gdbarch_init): Update.
7798 * i386-tdep.c (i386_gdbarch_init): Update.
7799 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7800 * hppa-tdep.c (hppa_gdbarch_init): Update.
7801 * h8300-tdep.c (h8300_gdbarch_init): Update.
7802 * frv-tdep.c (frv_gdbarch_init): Update.
7803 * cris-tdep.c (cris_gdbarch_init): Update.
7804 * avr-tdep.c (avr_gdbarch_init): Update.
7805 * arm-tdep.c (arm_gdbarch_init): Update.
7806 * alpha-tdep.c (alpha_gdbarch_init): Update.
7807 * sh-tdep.c (sh_init_extra_frame_info): Update.
7808 (sh64_init_extra_frame_info): Update.
7809 * ns32knbsd-nat.c (frame_num_args): Update.
7810 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7811 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7812 (xstormy16_frame_chain_valid): Update.
7813 * vax-tdep.c (vax_saved_pc_after_call): Update.
7814 * v850-tdep.c (v850_frame_chain): Update.
7815 (v850_pop_frame): Update.
7816 (v850_init_extra_frame_info): Update.
7817 * sparc-tdep.c (setup_arbitrary_frame): Update.
7818 * ns32k-tdep.c (umax_frame_num_args): Update.
7819 * s390-tdep.c (s390_pop_frame_regular): Update.
7820 * mn10300-tdep.c (mn10300_frame_chain): Update.
7821 (mn10300_pop_frame_regular): Update.
7822 (mn10300_init_extra_frame_info): Update.
7823 * mips-tdep.c (mips_init_frame_pc_first): Update.
7824 (mips_frame_chain): Update.
7825 (mips_pop_frame): Update.
7826 * mcore-tdep.c (mcore_frame_chain): Update.
7827 (mcore_pop_frame): Update.
7828 (mcore_init_extra_frame_info): Update.
7829 * arch-utils.c (init_frame_pc_default): Update.
7830 * m68k-tdep.c (isi_frame_num_args): Update.
7831 (delta68_frame_num_args): Update.
7832 (news_frame_num_args): Update.
7833 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7834 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7835 (alpha_frame_chain): Update.
7836 (alpha_pop_frame): Update.
7837 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7838 (hppa_init_extra_frame_info): Update.
7839 (hppa_frame_chain): Update.
7840 (hppa_frame_chain_valid): Update.
7841 * cris-tdep.c (cris_init_extra_frame_info): Update.
7842 * avr-tdep.c (avr_init_extra_frame_info): Update.
7843 * arm-tdep.c (arm_frame_chain_valid): Update.
7844 (arm_init_extra_frame_info): Update.
7845 (arm_pop_frame): Update.
7846 * frame.c (frame_pc_unwind): Update.
7847 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7848 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7849 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7850 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7851 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7852 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7853
7854 2003-03-12 Andrew Cagney <cagney@redhat.com>
7855
7856 Eliminate the need for POP_FRAME.
7857 * frame.c (do_frame_unwind_register): New function.
7858 (frame_pop): When no POP_FRAME, pop the frame using register
7859 unwind and a scratch regcache.
7860 (frame_saved_regs_pop): Delete function.
7861 (trad_frame_unwinder): Update.
7862 * d10v-tdep.c (d10v_frame_pop): Delete function.
7863 (d10v_frame_unwind): Update.
7864 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7865 (sentinel_frame_unwinder): Update.
7866 * dummy-frame.c (dummy_frame_pop): Delete function.
7867 (dummy_frame_unwind): Update.
7868 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7869 (struct frame_unwind): Update.
7870
7871 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7872
7873 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7874 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7875 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7876 Do range checks on register number obtained from debugging info.
7877 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7878 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7879 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7880 mapping function.
7881 (do_fp_register_row): Fix typo which caused double type to be
7882 used when attempting to unpack a float.
7883
7884 2003-03-11 J. Brobecker <brobecker@gnat.com>
7885
7886 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7887
7888 2003-03-11 Andrew Cagney <cagney@redhat.com>
7889
7890 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7891 frame. Problem found by Corinna Vinschen.
7892
7893 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7894
7895 * doublest.c (floatformat_from_length): Accept also
7896 the real size of 'long double' type.
7897
7898 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7899
7900 From Klee Dienes <kdienes@apple.com>:
7901 * breakpoint.c (bpstat_copy): Copy the command lines as well
7902 as the old value, to match what is freed in bpstat_clear.
7903
7904 2003-03-10 David Carlton <carlton@math.stanford.edu>
7905
7906 * minsyms.c (add_minsym_to_hash_table): Replace
7907 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7908 (compare_minimal_symbols, compact_minimal_symbols)
7909 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7910 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7911 of DEPRECATED_SYMBOL_MATCHES_NAME.
7912 (lookup_minimal_symbol_solib_trampoline): Ditto.
7913
7914 2003-03-10 Andrew Cagney <cagney@redhat.com>
7915
7916 * regcache.h (regcache_cooked_read_ftype): Define.
7917 (regcache_save, regcache_restore): Add a cooked_read parameter.
7918 * regcache.c (regcache_save, regcache_restore): Update.
7919 (do_cooked_read): New function.
7920 (regcache_cpy): Pass do_cooked_read to regcache_save and
7921 regcache_restore.
7922
7923 2003-03-10 Andrew Cagney <cagney@redhat.com>
7924
7925 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7926 * gdbarch.h, gdbarch.c: Re-generate.
7927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7928 * x86-64-tdep.h: Update.
7929 * x86-64-tdep.c (x86_64_init_abi): Update.
7930 * v850-tdep.c (v850_gdbarch_init): Update.
7931 * sparc-tdep.c (sparc_gdbarch_init): Update.
7932 * sh-tdep.c (sh_gdbarch_init): Update.
7933 * s390-tdep.c (s390_gdbarch_init): Update.
7934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7935 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7936 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7937 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7938 * mips-tdep.c (mips_gdbarch_init): Update.
7939 * mcore-tdep.c (mcore_gdbarch_init): Update.
7940 * m68k-tdep.c (m68k_gdbarch_init): Update.
7941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7942 * ia64-tdep.c (ia64_gdbarch_init): Update.
7943 * i386-tdep.c (i386_gdbarch_init): Update.
7944 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7945 * hppa-tdep.c (hppa_gdbarch_init): Update.
7946 * h8300-tdep.c (h8300_gdbarch_init): Update.
7947 * frv-tdep.c (frv_gdbarch_init): Update.
7948 * cris-tdep.c (cris_gdbarch_init): Update.
7949 * avr-tdep.c (avr_gdbarch_init): Update.
7950 * arm-tdep.c (arm_gdbarch_init): Update.
7951 * alpha-tdep.c (alpha_gdbarch_init): Update.
7952 * sh-tdep.c (sh_init_extra_frame_info): Update.
7953 (sh64_init_extra_frame_info): Update.
7954 * ns32knbsd-nat.c (frame_num_args): Update.
7955 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7956 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7957 (xstormy16_frame_chain_valid): Update.
7958 * vax-tdep.c (vax_saved_pc_after_call): Update.
7959 * v850-tdep.c (v850_frame_chain): Update.
7960 (v850_pop_frame): Update.
7961 (v850_init_extra_frame_info): Update.
7962 * sparc-tdep.c (setup_arbitrary_frame): Update.
7963 * ns32k-tdep.c (umax_frame_num_args): Update.
7964 * s390-tdep.c (s390_pop_frame_regular): Update.
7965 * mn10300-tdep.c (mn10300_frame_chain): Update.
7966 (mn10300_pop_frame_regular): Update.
7967 (mn10300_init_extra_frame_info): Update.
7968 * mips-tdep.c (mips_init_frame_pc_first): Update.
7969 (mips_frame_chain): Update.
7970 (mips_pop_frame): Update.
7971 * mcore-tdep.c (mcore_frame_chain): Update.
7972 (mcore_pop_frame): Update.
7973 (mcore_init_extra_frame_info): Update.
7974 * arch-utils.c (init_frame_pc_default): Update.
7975 * m68k-tdep.c (isi_frame_num_args): Update.
7976 (delta68_frame_num_args): Update.
7977 (news_frame_num_args): Update.
7978 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7979 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7980 (alpha_frame_chain): Update.
7981 (alpha_pop_frame): Update.
7982 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7983 (hppa_init_extra_frame_info): Update.
7984 (hppa_frame_chain): Update.
7985 (hppa_frame_chain_valid): Update.
7986 * cris-tdep.c (cris_init_extra_frame_info): Update.
7987 * avr-tdep.c (avr_init_extra_frame_info): Update.
7988 * arm-tdep.c (arm_frame_chain_valid): Update.
7989 (arm_init_extra_frame_info): Update.
7990 (arm_pop_frame): Update.
7991 * frame.c (frame_pc_unwind): Update.
7992 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7993 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7994 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7995 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7996 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7997 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7998
7999 2003-03-10 Andrew Cagney <cagney@redhat.com>
8000
8001 * gdbarch.sh (gdbarch_unwind_pc): New method.
8002 * gdbarch.h, gdbarch.c: Regenerate.
8003 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8004 but use read_pc and FRAME_SAVED_PC as fall backs.
8005 (frame_saved_regs_pc_unwind): Delete function.
8006 (trad_frame_unwinder): Update.
8007 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8008 (struct frame_unwind): Update.
8009 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8010 (dummy_frame_unwind): Update.
8011 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8012 (sentinel_frame_unwinder): Update.
8013 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8014 (d10v_frame_unwind): Update.
8015 (d10v_unwind_pc): New function.
8016 (d10v_gdbarch_init): Set unwind_pc.
8017
8018 2003-03-10 Andrew Cagney <cagney@redhat.com>
8019
8020 * gdbarch.h: Re-generate.
8021
8022 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8023 PC.
8024 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8025 the PC register.
8026
8027 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8028
8029 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8030
8031 2003-03-08 Andrew Cagney <cagney@redhat.com>
8032
8033 * cli-out.c: Update copyright.
8034 (cli_out_data): Define typedef. Use instead of ui_out_data.
8035
8036 2003-03-08 Andrew Cagney <cagney@redhat.com>
8037
8038 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8039 the result.
8040
8041 2003-03-07 Andrew Cagney <cagney@redhat.com>
8042
8043 * gdbarch.sh: Don't generate two macro definitions when an
8044 undefined macro taking no arguments.
8045 * gdbarch.h: Regenerate.
8046
8047 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8048
8049 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8050 (x86_64_unwind_dummy_id): New functions.
8051 (x86_64_init_abi): Register these two new functions.
8052
8053 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8054
8055 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8056 (x86_64_skip_prologue): Move prologue detection to
8057 separate function.
8058 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8059
8060 2003-03-05 Andrew Cagney <cagney@redhat.com>
8061
8062 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8063 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8064 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8065 to use unwind_dummy_id when a dummy frame.
8066 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8067 predicate.
8068 * gdbarch.h, gdbarch.c: Regneerate.
8069
8070 2003-03-05 Andrew Cagney <cagney@redhat.com>
8071
8072 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8073 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8074 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8075 values.
8076
8077 2003-03-05 Andrew Cagney <cagney@redhat.com>
8078
8079 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8080 (struct d10v_unwind_cache): Delete field "frameless". Replace
8081 "next_addr" with "sp_offset". Add "r11_offset".
8082 (d10v_frame_unwind_cache): Update.
8083 (prologue_find_regs): Update. When "mv r11, sp", save the
8084 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8085 RN was saved in r11_offset.
8086
8087 2003-03-05 Andrew Cagney <cagney@redhat.com>
8088
8089 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8090 cached PC value in the next frame.
8091
8092 2003-03-05 Andrew Cagney <cagney@redhat.com>
8093
8094 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8095 "id_unwind_cache" with "id".
8096 (frame_id_unwind): Delete declaration.
8097 * frame.c (frame_id_unwind): Delete function.
8098 (get_prev_frame): Call the frame id unwind method directly. Store
8099 the returned next frame's ID value in NEXT_FRAME. Note that there
8100 is a problem with the wrong unwind ID being called with the wrong
8101 unwind cache.
8102
8103 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8104
8105 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8106
8107 2003-03-05 James Ingham <jingham@apple.com>
8108 Daniel Jacobowitz <drow@mvista.com>
8109
8110 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8111 (auto_cp_abi): New variable.
8112 (current_cp_abi, num_cp_abis): Make static.
8113 (CP_ABI_MAX): Define.
8114 (cp_abis): Turn into an array.
8115 (value_virtual_fn_field): Fix formatting.
8116 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8117 takes a pointer.
8118 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8119 (list_cp_abis, _initialize_cp_abi): New functions.
8120 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8121 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8122 switch_to_cp_abi. Update prototype for register_cp_abi.
8123 * Makefile.in (cp-abi.o): Update dependencies.
8124 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8125 instead of switch_to_cp_abi.
8126 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8127 register_cp_abi.
8128 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8129 register_cp_abi.
8130 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8131
8132 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8133
8134 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8135 * dwarf2loc.c: Include "regcache.h".
8136 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8137 register_size.
8138 * Makefile.in (dwarf2loc.o): Update dependencies.
8139
8140 2003-03-04 Theodore A. Roth <troth@openavr.org>
8141
8142 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8143 number of io registers reported by remote target is not a multiple of
8144 step.
8145
8146 2003-03-04 David Carlton <carlton@math.stanford.edu>
8147
8148 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8149 (lookup_symbol_aux_psymtabs): Update call to
8150 lookup_partial_symbol.
8151 (lookup_transparent_type, find_main_psymtab)
8152 (make_symbol_overload_list): Ditto.
8153
8154 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8155
8156 * MAINTAINERS (Write after approval): Update my email address.
8157
8158 2003-03-03 Andrew Cagney <cagney@redhat.com>
8159
8160 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8161 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8162 predicate. Replace MAX_REGISTER_RAW_SIZE.
8163 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8164 MAX_REGISTER_VIRTUAL_SIZE.
8165 * regcache.c (legacy_max_register_raw_size): New function.
8166 (legacy_max_register_virtual_size): New function.
8167 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8168 (MAX_REGISTER_RAW_SIZE): Define.
8169 (legacy_max_register_raw_size): Declare.
8170 (legacy_max_register_virtual_size): Declare.
8171 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8172 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8173 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8174 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8175 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8176 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8177 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8178 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8179 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8181 * vax-tdep.c (vax_gdbarch_init): Update.
8182 * v850-tdep.c (v850_gdbarch_init): Update.
8183 * sparc-tdep.c (sparc_gdbarch_init): Update.
8184 * sh-tdep.c (sh_gdbarch_init): Update.
8185 * s390-tdep.c (s390_gdbarch_init): Update.
8186 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8187 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8188 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8189 * mips-tdep.c (mips_gdbarch_init): Update.
8190 * mcore-tdep.c (mcore_gdbarch_init): Update.
8191 * m68k-tdep.c (m68k_gdbarch_init): Update.
8192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8193 * ia64-tdep.c (ia64_gdbarch_init): Update.
8194 * i386-tdep.c (i386_gdbarch_init): Update.
8195 * hppa-tdep.c (hppa_gdbarch_init): Update.
8196 * h8300-tdep.c (h8300_gdbarch_init): Update.
8197 * frv-tdep.c (frv_gdbarch_init): Update.
8198 * cris-tdep.c (cris_gdbarch_init): Update.
8199 * avr-tdep.c (avr_gdbarch_init): Update.
8200 * arm-tdep.c (arm_gdbarch_init): Update.
8201 * alpha-tdep.c (alpha_gdbarch_init): Update.
8202 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8203 max_register_raw_size or max_register_virtual_size.
8204
8205 2003-03-03 David Carlton <carlton@math.stanford.edu>
8206
8207 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8208 SYMBOL_MATCHES_NAME, add comment.
8209 (SYMBOL_MATCHES_NATURAL_NAME): New.
8210 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8211 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8212 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8213 * symtab.c (lookup_partial_symbol): Use
8214 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8215 unhelpful comment.
8216 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8217 SYMBOL_MATCHES_NAME.
8218 Fix for PR c++/33.
8219
8220 2003-03-03 David Carlton <carlton@math.stanford.edu>
8221
8222 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8223 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8224 by regexp matching against SYMBOL_NATURAL_NAME.
8225
8226 2003-03-03 David Carlton <carlton@math.stanford.edu>
8227
8228 * linespec.c (find_method): Extract code into collect_methods.
8229 (collect_methods): New.
8230
8231 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8232
8233 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8234 get_frame_base.
8235
8236 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8237 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8238
8239 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8240
8241 * arch-utils.c (generic_register_byte): Fix to use the loop index
8242 and not regnum when summing the size of all registers up to regnum.
8243
8244 2003-03-01 Andrew Cagney <cagney@redhat.com>
8245
8246 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8247 FRAME_INIT_SAVED_REGS.
8248 * gdbarch.h, gdbarch.c: Regenerate.
8249 * stack.c (frame_info): Update.
8250 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8251 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8252 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8253 * ns32k-tdep.c (ns32k_pop_frame): Update.
8254 * mips-tdep.c (mips_pop_frame): Update.
8255 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8256 * ia64-tdep.c (ia64_frame_chain): Update.
8257 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8258 (ia64_frameless_function_invocation): Update.
8259 (ia64_init_extra_frame_info): Update.
8260 (ia64_pop_frame_regular): Update.
8261 * frame.h (struct frame_info): Update comment.
8262 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8263 * frame.c (frame_saved_regs_register_unwind): Update.
8264 (frame_saved_regs_register_unwind): Update.
8265 (deprecated_generic_get_saved_register): Update.
8266 * cris-tdep.c: Update comment.
8267 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8268 Rename macro.
8269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8270 * x86-64-tdep.c (x86_64_init_abi): Update.
8271 * vax-tdep.c (vax_gdbarch_init): Update.
8272 * v850-tdep.c (v850_gdbarch_init): Update.
8273 * sparc-tdep.c (sparc_gdbarch_init): Update.
8274 * sh-tdep.c (sh_gdbarch_init): Update.
8275 * s390-tdep.c (s390_gdbarch_init): Update.
8276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8277 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8278 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8280 * mips-tdep.c (mips_gdbarch_init): Update.
8281 * mcore-tdep.c (mcore_gdbarch_init): Update.
8282 * m68k-tdep.c (m68k_gdbarch_init): Update.
8283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8284 * ia64-tdep.c (ia64_gdbarch_init): Update.
8285 * i386-tdep.c (i386_gdbarch_init): Update.
8286 * frv-tdep.c (frv_gdbarch_init): Update.
8287 * avr-tdep.c (avr_gdbarch_init): Update.
8288 * arm-tdep.c (arm_gdbarch_init): Update.
8289 * alpha-tdep.c (alpha_gdbarch_init): Update.
8290
8291 2003-03-01 Andrew Cagney <cagney@redhat.com>
8292
8293 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8294 option enum and switch. When no windows, set the interpreter to
8295 INTERP_CONSOLE.
8296
8297 2003-03-01 Andrew Cagney <cagney@redhat.com>
8298
8299 * main.c (captured_main): Replace magic option characters with an
8300 enum.
8301
8302 2003-03-01 Andrew Cagney <cagney@redhat.com>
8303
8304 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8305 INIT_EXTRA_FRAME_INFO.
8306 * gdbarch.h, gdbarch.c: Regenerate.
8307 * arm-tdep.c: Update comments.
8308 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8309 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8310 * frame.h, avr-tdep.c: Ditto.
8311 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8312 (create_new_frame, legacy_get_prev_frame): Ditto.
8313 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8314 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8316 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8317 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8318 * v850-tdep.c (v850_gdbarch_init): Ditto.
8319 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8320 * sh-tdep.c (sh_gdbarch_init): Ditto.
8321 * s390-tdep.c (s390_gdbarch_init): Ditto.
8322 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8323 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8324 * mips-tdep.c (mips_gdbarch_init): Ditto.
8325 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8327 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8328 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8329 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8330 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8331 * frv-tdep.c (frv_gdbarch_init): Ditto.
8332 * cris-tdep.c (cris_gdbarch_init): Ditto.
8333 * avr-tdep.c (avr_gdbarch_init): Ditto.
8334 * arm-tdep.c (arm_gdbarch_init): Ditto.
8335 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8337
8338 2003-03-01 Andrew Cagney <cagney@redhat.com>
8339
8340 * gdbarch.sh (register_type): New function with predicate.
8341 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8342 * gdbarch.h, gdbarch.c: Re-generate.
8343 * arch-utils.c (generic_register_byte): Use generic_register_size.
8344 (generic_register_size): When available, use
8345 gdbarch_register_type.
8346 * regcache.c (init_regcache_descr): When available, initialize the
8347 register type array using gdbarch_register_type. If the
8348 architecture supplies gdbarch_register_type, do not use the legacy
8349 regcache layout.
8350 * d10v-tdep.c (d10v_register_type): Replace
8351 d10v_register_virtual_type.
8352 (d10v_gdbarch_init): Set register_type instead of
8353 register_virtual_type.
8354
8355 2003-03-01 Andrew Cagney <cagney@redhat.com>
8356
8357 * Makefile.in (ax-gdb.o): Update dependencies.
8358 * ax-gdb.c: Include "regcache.h".
8359 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8360 * findvar.c (value_of_register): Ditto.
8361 * infcmd.c (default_print_registers_info): Ditto.
8362
8363 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8364
8365 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8366 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8367
8368 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8369
8370 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8371 of STREQ.
8372
8373 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8374
8375 * Makefile.in (dwarf2loc.o): Update dependencies.
8376 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8377 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8378 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8379 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8380 (locexpr_tracepoint_var_ref): New function.
8381 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8382
8383 2003-02-28 Andrew Cagney <cagney@redhat.com>
8384
8385 * regcache.c (register_size): New function.
8386 * regcache.h (register_size): Declare
8387 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8388 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8389
8390 2003-02-28 David Carlton <carlton@math.stanford.edu>
8391
8392 * linespec.c (decode_compound): Extract code into find_method.
8393 (find_method): New.
8394
8395 2003-02-28 J. Brobecker <brobecker@gnat.com>
8396
8397 * Makefile.in: Add rules to build and link in observer.o.
8398
8399 2003-02-27 J. Brobecker <brobecker@gnat.com>
8400
8401 * observer.c: Minor comments edits.
8402
8403 2003-02-27 J. Brobecker <brobecker@gnat.com>
8404
8405 * observer.h, observer.c: New file.
8406
8407 2003-02-27 Andrew Cagney <cagney@redhat.com>
8408
8409 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8410
8411 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8412
8413 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8414 (M6812_OP_STS_EXT): Likewise.
8415 (m6811_prologue): Use the above to recognize prologue.
8416 (m6812_prologue): Likewise.
8417
8418 2003-02-27 David Carlton <carlton@math.stanford.edu>
8419
8420 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8421 SYMBOL_PRINT_NAME.
8422 (compare_psymbols): Ditto.
8423 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8424
8425 2003-02-27 Michael Snyder <msnyder@redhat.com>
8426
8427 * f-lang.c (build_fortran_types): New function.
8428 (_initialize_f_language): Gdbarch-register built-in fortran types.
8429 * doublest.c (extract_floating): Fix warning text.
8430
8431 2003-02-27 Andrew Cagney <cagney@redhat.com>
8432
8433 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8434 predicate. Replaces PUSH_DUMMY_FRAME.
8435 * gdbarch.h, gdbarch.c: Regnerate.
8436 * valops.c (hand_function_call): Update. Call
8437 generic_push_dummy_frame directly.
8438 * vax-tdep.c (vax_gdbarch_init): Update.
8439 * sparc-tdep.c (sparc_gdbarch_init): Update.
8440 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8441 * m68k-tdep.c (m68k_gdbarch_init): Update.
8442 * hppa-tdep.c (hppa_gdbarch_init): Update.
8443 * alpha-tdep.c (alpha_gdbarch_init): Update.
8444 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8445 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8446 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8448 push_dummy_frame to generic_push_dummy_frame.
8449 * v850-tdep.c (v850_gdbarch_init): Ditto.
8450 * sh-tdep.c (sh_gdbarch_init): Ditto.
8451 * s390-tdep.c (s390_gdbarch_init): Ditto.
8452 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8453 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8454 * mips-tdep.c (mips_gdbarch_init): Ditto.
8455 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8457 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8458 * i386-tdep.c (i386_gdbarch_init): Ditto.
8459 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8460 * frv-tdep.c (frv_gdbarch_init): Ditto.
8461 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8462 * cris-tdep.c (cris_gdbarch_init): Ditto.
8463 * avr-tdep.c (avr_gdbarch_init): Ditto.
8464 * arm-tdep.c (arm_gdbarch_init): Ditto.
8465
8466 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8467
8468 * mips-tdep.c (show_mips_abi): New function.
8469 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8470 command ``show mips abi''.
8471
8472 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8473
8474 From Elena Zannoni <ezannoni@redhat.com>
8475 * dbxread.c (process_one_symbol): Only record line 0 if one or
8476 more sline entries have been seen for the function.
8477
8478 2003-02-26 Michael Chastain <mec@shout.net>
8479
8480 * configure: Regenerate with autoconf 000227.
8481
8482 2003-02-26 Michael Chastain <mec@shout.net>
8483
8484 Close PR build/660.
8485 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8486 for old libc5/glibc.
8487 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8488
8489 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8490
8491 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8492 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8493
8494 2003-02-26 Michael Chastain <mec@shout.net>
8495
8496 * configure.in: New variable HAVE_UINTPTR_T.
8497 * configure, config.in: Regenerated.
8498
8499 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8500
8501 Fix PR build/1097.
8502 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8503
8504 2003-02-25 Andrew Cagney <cagney@redhat.com>
8505
8506 * frame.c (get_prev_frame): Add comment on check for
8507 inside_entry_func. Only check for inside_entry_file when not a
8508 dummy and not a sentinel. Check that the new frame is not inner
8509 to the old frame.
8510
8511 2003-02-25 Andrew Cagney <cagney@redhat.com>
8512
8513 * frame.c (frame_debug): New variable.
8514 (_initialize_frame): Add "set/show debug frame" command.
8515 (get_prev_frame): When frame_debug, print reason why unwind
8516 failed.
8517
8518 2003-02-25 Michael Chastain <mec@shout.net>
8519
8520 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8521 to avoid uintptr_t definition problems.
8522
8523 2003-02-25 David Carlton <carlton@math.stanford.edu>
8524
8525 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8526 (SYMBOL_LINKAGE_NAME): Ditto.
8527 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8528 SYMBOL_LINKAGE_NAME.
8529 (struct general_symbol_info): Expand comment.
8530 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8531 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8532 (SYMBOL_MATCHES_REGEXP): Ditto.
8533 * symtab.c (symbol_natural_name): New function.
8534 * objfiles.h: Replace all uses of SYMBOL_NAME by
8535 DEPRECATED_SYMBOL_NAME.
8536 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8537 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8538 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8539 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8540 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8541 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8542 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8543 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8544 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8545 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8546 * ada-exp.y: Ditto.
8547 * ada-exp.y: Update copyright.
8548 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8549 * cp-valprint.c: Ditto.
8550
8551 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8552
8553 * infptrace.c (detach): Do not flag error if ptrace detach fails
8554 and errno is set to ESRCH.
8555
8556 2003-02-24 Andrew Cagney <cagney@redhat.com>
8557
8558 * infptrace.c (udot_info): Change type of udot_off to long. Use
8559 paddr when printing udot_off's value.
8560
8561 2003-02-24 David Carlton <carlton@math.stanford.edu>
8562
8563 * symtab.c (make_symbol_overload_list): Only read in partial
8564 symtabs containing a matching partial symbol.
8565
8566 2003-02-24 David Carlton <carlton@math.stanford.edu>
8567
8568 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8569 do the comparison, not strcmp.
8570 * symfile.c (compare_psymbols): Ditto.
8571 * defs.h: Declare strcmp_iw_ordered.
8572 * utils.c (strcmp_iw_ordered): New function.
8573
8574 2003-02-24 Jim Blandy <jimb@redhat.com>
8575
8576 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8577 support, shared libs): Remove my name from here, to better reflect
8578 reality.
8579
8580 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8581
8582 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8583 (target_ops): Add to_have_continuable_watchpoint.
8584 * target.c (update_current_target): Add INHERIT line for
8585 to_have_continuable_watchpoint.
8586 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8587 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8588 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8589 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8590
8591 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8592
8593 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8594 maintainership.
8595
8596 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8597
8598 * solib.c (solib_open): Call target defined search function after
8599 failing with solib-search-path.
8600 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8601 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8602
8603 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8604
8605 * MAINTAINERS: Add myself to Write After section.
8606
8607 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8608
8609 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8610
8611 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8612
8613 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8614 (m68hc11_add_reggroups): New function.
8615 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8616 (m68hc11_gdbarch_init): Install the reggroups.
8617 (_initialize_m68hc11_tdep): Initialize them.
8618
8619 2003-02-21 James E Wilson <wilson@tuliptree.org>
8620
8621 * MAINTAINERS: Update my email address.
8622
8623 2003-02-21 David Carlton <carlton@math.stanford.edu>
8624
8625 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8626
8627 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8628
8629 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8630 * symtab.h: Add opaque declarations of struct axs_value and
8631 struct agent_expr.
8632 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8633 (struct location_funcs): New type.
8634 (struct symbol): Add "loc" to aux_value.
8635 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8636 * dwarf2read.c: Include "dwarf2expr.h".
8637 (dwarf2_symbol_mark_computed): New function.
8638 (read_func_scope): Use it.
8639 (var_decode_location): New function.
8640 (new_symbol): Use it.
8641 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8642
8643 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8644 (dwarf2expr_h, dwarf2loc_h): New variables.
8645 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8646 (dwarf2expr.o, dwarf2loc.o): New rules.
8647 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8648 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8649 LOC_COMPUTED_ARG.
8650 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8651 * m2-exp.y (yylex): Likewise.
8652 * printcmd.c (address_info, print_frame_args): Likewise.
8653 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8654 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8655 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8656 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8657 * symtab.c (lookup_block_symbol): Likewise.
8658
8659 2003-02-20 Adam Fedor <fedor@gnu.org>
8660
8661 * symtab.h: Remove objc_specific struct
8662 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8663 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8664 Have language_objc use cplus_specific struct.
8665
8666 2003-02-20 Tom Tromey <tromey@redhat.com>
8667
8668 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8669 TYPE_NAME, when printing a String value. PR java/1075.
8670
8671 2003-02-20 Adam Fedor <fedor@gnu.org>
8672
8673 * objc-lang.h (find_methods): Remove declaration.
8674 * objc-lang.c (find_methods): Make static.
8675
8676 2003-02-20 Christopher Faylor <cgf@redhat.com>
8677
8678 * win32-nat.c (get_image_name): Check return value from
8679 ReadProcessMemory.
8680 (child_xfer_memory): Ditto.
8681
8682 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8683
8684 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8685 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8686 '${exec_prefix}' (in addition to the expansion thereof) as
8687 relocatable.
8688 * configure: Rebuilt.
8689
8690 2003-02-20 David Carlton <carlton@math.stanford.edu>
8691
8692 * symtab.c (search_symbols): Revert the search_symbols part of my
8693 2002-12-23 patch. Add comment.
8694
8695 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8698 * dbxread.c (elfstab_build_psymtabs): Don't call
8699 install_minimal_symbols.
8700 (stabsect_build_psymtabs): Likewise.
8701 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8702 earlier.
8703 * somread.c (som_symfile_read): Call install_minimal_symbols
8704 and do_cleanups earlier.
8705 * nlmread.c (nlm_symfile_read): Likewise.
8706 * mdebugread.c (elfmdebug_build_psymtabs): Call
8707 install_minimal_symbols and make appropriate cleanups.
8708
8709 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8710
8711 * solib.c (reload_shared_libraries): New function.
8712 (_initialize_solib): Add callbacks for ``set solib-search-path''
8713 and ``set solib-absolute-prefix''.
8714
8715 2003-02-20 David Carlton <carlton@math.stanford.edu>
8716
8717 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8718 expand comment.
8719 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8720 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8721 * ada-typeprint.c (ada_typedef_print): Ditto.
8722 * ax-gdb.c (gen_var_ref): Ditto.
8723 * breakpoint.c (print_one_breakpoint): Ditto.
8724 * buildsym.c (finish_block): Ditto.
8725 * c-valprint.c (c_val_print): Ditto.
8726 * expprint.c (print_subexp): Ditto.
8727 * findvar.c (locate_var_value): Ditto.
8728 * infcmd.c (jump_command): Ditto.
8729 * linespec.c (decode_line_2, decode_compound): Ditto.
8730 * maint.c (maintenance_translate_address): Ditto.
8731 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8732 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8733 Ditto.
8734 * p-valprint.c (pascal_val_print): Ditto.
8735 * stabsread.c (define_symbol): Ditto.
8736 * stack.c (print_frame, frame_info, print_block_frame_locals)
8737 (print_frame_arg_vars, return_command): Ditto.
8738 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8739 * symmisc.c (print_symbol): Ditto.
8740 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8741 (compare_search_syms, print_symbol_info, print_msymbol_info)
8742 (rbreak_command): Ditto.
8743 * tracepoint.c (tracepoints_info): Ditto.
8744 * typeprint.c (typedef_print): Ditto.
8745 * valops.c (value_of_variable, hand_function_call): Ditto.
8746 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8747 * ada-typeprint.c: Update Copyright.
8748 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8749 * tracepoint.c, cli/cli-cmds.c: Ditto.
8750
8751 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8752
8753 * frame.c (generic_unwind_get_saved_register): Make non-static.
8754 * frame.h (generic_unwind_get_saved_register): Declare.
8755 * mips-tdep.c (read_next_frame_reg): Fetch register from
8756 current regcache when frame is NULL.
8757 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8758 that must be NULL.
8759 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8760 instead of frame_register_unwind().
8761
8762 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8763
8764 * remote-sim.c (gdbsim_insert_breakpoint)
8765 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8766 code.
8767
8768 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8769
8770 * remote.c (_initialize_remote): Add commands "set/show remote
8771 hardware-watchpoint-limit" and "set/show remote
8772 hardware-breakpoint-limit".
8773 (remote_hw_watchpoint_limit): Initialize to -1.
8774 (remote_hw_breakpoint_limit): Ditto.
8775 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8776
8777 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8778
8779 * coff-pe-read.c: New file - support reading of minimal symbols from a
8780 portable executable using the export table.
8781 * coff-pe-read.h: New file.
8782 * coffread.c: Include coff-pe-read.h.
8783 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8784 debugging symbols found.
8785 * Makefile.in (SFILES): Add coff-pe-read.o.
8786 (coff_pe_read_h): Define.
8787 (COMMON_OBS): Add coff-pe-read.o.
8788 (coffread.o): Add coff_pe_read_h dependency.
8789 (coff-pe-read.o): New target.
8790
8791 2003-02-19 David Carlton <carlton@math.stanford.edu>
8792
8793 * Makefile.in (SFILES): Add block.c.
8794 (block_h): New.
8795 (COMMON_OBS): Add block.o.
8796 (block.o): New.
8797 (x86-64-tdep.o): Add $(block_h).
8798 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8799 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8800 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8801 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8802 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8803 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8804 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8805 * value.h: Add opaque declaration for struct block.
8806 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8807 * ada-lang.h: Ditto.
8808 * x86-64-tdep.c: #include "block.h"
8809 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8810 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8811 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8812 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8813 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8814 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8815 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8816 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8817 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8818 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8819 * symtab.c (block_function): Ditto.
8820 (contained_in): Ditto.
8821 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8822 block.h. Add opaque declaration for struct block.
8823 * symtab.h: Move block_function and contained_in declarations to
8824 block.h. Add opaque declarations for struct block, struct
8825 blockvector.
8826 (struct block): Move to block.h.
8827 (struct blockvector): Ditto.
8828 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8829 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8830 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8831 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8832 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8833 Ditto.
8834 * block.c: New file.
8835 * block.h: New file.
8836
8837 2003-02-19 Theodore A. Roth <troth@openavr.org>
8838
8839 * avr-tdep.c (avr_extract_return_value): Remove function.
8840 (avr_store_return_value): Remove function.
8841 (avr_extract_struct_value_address): Remove function.
8842 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8843
8844 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8845
8846 * rs6000-tdep.c: Include "gdb_assert.h".
8847 (registers_e500): Add "acc" and "spefscr".
8848 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8849 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8850 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8851 really is "r0".
8852 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8853
8854 2003-02-18 Keith Seitz <keiths@redhat.com>
8855
8856 * Makefile.in: Add gdbtk-interps.c.
8857
8858 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8859
8860 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8861 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8862
8863 2003-02-18 Andrew Cagney <cagney@redhat.com>
8864
8865 * symtab.h (struct objfile): Add opaque declaration.
8866
8867 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8868
8869 From Jim Ingham <jingham@apple.com>:
8870 * dbxread.c (process_one_symbol): Use last_function_start rather
8871 than function_start_offset to find the real beginning of the
8872 current function. The latter is just the text section offset on
8873 some systems, the former is always the real function start.
8874
8875 2003-02-17 Andrew Cagney <cagney@redhat.com>
8876
8877 * configure.in: Revert ${target} != ${host}.
8878
8879 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8880
8881 * configure.in (Makefile): Use the test ${target} != ${host},
8882 instead of the absence of the "nm.h" file, to determine of the
8883 configuration non-native.
8884 * configure: Regenerate.
8885
8886 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8887
8888 From Brian Ford <ford@vss.fsi.com>
8889
8890 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8891 conditionalize tui_active test.
8892 (lookup_cmd_1): Ditto.
8893
8894 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8895
8896 * configure.in: Add check for _etext.
8897 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8898 available.
8899 * config.in, configure: regenerated.
8900
8901 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8902
8903 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8904
8905 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8906
8907 * main.c (tui_version): Delete variable.
8908 (captured_main): When --tui, set interpreter_p to "tui" instead of
8909 enabling tui_version.
8910 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8911 tui_version.
8912 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8913 * cli/cli-cmds.c (disassemble_command): Ditto.
8914 * defs.h (tui_version): Delete declaration.
8915 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8916 (tui-interp.o): Add rules.
8917 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8918
8919 2003-02-14 Christopher Faylor <cgf@redhat.com>
8920
8921 * win32-nat.c (register_loaded_dll): Correctly set address range for
8922 just-loaded dll.
8923
8924 2003-02-12 Jason Molenda (jmolenda@apple.com)
8925
8926 * symmisc.c (print_objfile_statistics): Include information about
8927 the number of psymtabs and symtabs in each object file.
8928
8929 2003-02-13 Keith R Seitz <keiths@redhat.com>
8930
8931 * main.h (struct captured_main_args): Add interpreter_p.
8932 * main.c (captured_main): Initialize interpreter_p from context.
8933 * gdb.c (main): Set interpreter_p argument.
8934 * Makefile.in (gdb.o): Add dependency for interps.h.
8935
8936 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8937
8938 * event-top.c (cli_command_loop): Delete declaration.
8939 (_initialize_event_loop): Delete function setting event_loop_hook.
8940 * event-top.h (cli_command_loop): Declare. Update copyright.
8941 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8942 * interps.c (current_interp_command_loop): When event_loop_p, call
8943 cli_command_loop.
8944
8945 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8946
8947 * interps.h (interp_command_loop_ftype): Change return type to
8948 void.
8949
8950 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8951
8952 * x86-64-tdep.c (x86_64_extract_return_value)
8953 (x86_64_store_return_value): Use regcache instead of regbuf.
8954 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8955 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8956
8957 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8958
8959 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8960 * aclocal.m4: Regenerate.
8961 * configure: Regenerate.
8962
8963 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8964 TCL_LD_SEARCH_FLAGS.
8965
8966 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8967
8968 * dwarf2cfi.c: Reindented.
8969
8970 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8971
8972 * interps.c (clear_interpreter_hooks): Convert function definition
8973 to ISO C.
8974
8975 2003-02-07 David Carlton <carlton@math.stanford.edu>
8976
8977 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8978
8979 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8980
8981 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8982 (struct type): ...to here.
8983 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8984 field.
8985 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8986 (replace_type): Set length on all type variants for a given type.
8987
8988 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8989
8990 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8991 <sys/stat.h>.
8992 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8993
8994 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8995
8996 * Makefile.in (symm-nat.o): Update dependencies.
8997 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8998 (lynx-nat.o, ia64-linux-nat.): Ditto.
8999 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9000 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9001 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9002
9003 * Makefile.in (inflow_h): Define.
9004 (procfs.o, inflow.o, procfs.o): Update dependencies.
9005 * inftarg.c (child_stop): Delete extern declaration of
9006 inferior_process_group. Include "inflow.h".
9007 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9008 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9009 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9010 (our_process_group, inferior_process_group): Extern declarations.
9011
9012 * procfs.c: Include "gdb_assert.h".
9013
9014 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9015 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9016 * jv-typeprint.c (java_type_print_base): Ditto.
9017 * typeprint.c (typedef_print): Eliminate STREQ.
9018 * cli/cli-script.c (define_command, define_command): Ditto.
9019 * main.c (captured_main): Ditto.
9020 * values.c (lookup_internalvar): Ditto.
9021 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9022 within `if' conditional.
9023 * linespec.c (decode_line_2): Ditto.
9024 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9025 (bfd_openw_with_cleanup): Ditto.
9026
9027 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9028
9029 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9030 legacy_extract_return_value and store_return_value to
9031 legacy_return_value.
9032
9033 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9034
9035 * win32-nat.c (get_relocated_section_addrs): New function. Find
9036 section load addresses for symbol handling in relocated DLLs.
9037 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9038
9039 2003-02-05 Fred Fish <fnf@intrinsity.com>
9040
9041 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9042 '=' and '!='.
9043 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9044 with '&' and '=='.
9045 (angel_RDI_info): Ditto.
9046 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9047 with '&' and '!='.
9048 (threads_continue_all_with_signals): Ditto.
9049
9050 2003-02-05 Jim Ingham <jingham@apple.com>
9051 Keith Seitz <keiths@redhat.com>
9052 Elena Zannoni <ezannoni@redhat.com>
9053 Andrew Cagney <ac131313@redhat.com>
9054
9055 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9056 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9057 (SUBDIR_MI_OBS): Add "mi-interp.o".
9058 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9059 (SFILES): Add "interps.c".
9060 (COMMON_OBS): Add "interps.o".
9061 (interps_h, mi_main_h): Define.
9062 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9063 (mi-main.o, main.o, event-top.o): Update dependencies.
9064 * cli/cli-interp.c: New file.
9065 * interps.h, interps.c: New files.
9066 * top.c: (gdb_init): Don't install the default interpreter, handed
9067 by captured_main.
9068 * main.c: Include "interps.h".
9069 (interpreter_p): Note that it should malloc'ed.
9070 (captured_command_loop): Call current_interp_command_loop.
9071 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9072 xfree and xstrdup when updating interpreter_p. Install the
9073 default interpreter. Add hack to stop mi1's copyright notice
9074 being encoded.
9075 * event-top.h (gdb_setup_readline): Declare.
9076 (gdb_disable_readline): Declare.
9077 * event-top.c: Include "interps.h".
9078 (display_gdb_prompt): Call current_interp_display_prompt_p.
9079 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9080 gdb_stdlog, and gdb_stdtarg.
9081 (_initialize_event_loop): Don't call gdb_setup_readline.
9082 * cli-out.c (cli_out_set_stream): New function.
9083 * cli-out.h (cli_out_set_stream): Declare.
9084
9085 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9086
9087 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9088 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9089 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9090 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9091 config/i386/i386v42mp.mt: Removed.
9092
9093 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9094
9095 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9096 GDB_OSABI_SOLARIS.
9097
9098 2003-02-05 Michael Chastain <mec@shout.net>
9099
9100 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9101 2.12.1 and earlier versions.
9102
9103 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9104
9105 Remove orphaned hosts, targets and files.
9106 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9107 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9108 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9109 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9110 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9111 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9112 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9113 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9114 * config/sparc/tm-sp64sim.h: Delete.
9115 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9116 hosts.
9117 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9118 mips*-dec-mach3* targets.
9119
9120 2003-02-04 Michael Chastain <mec@shout.net>
9121
9122 * NEWS: Fix typo: sepcifying -> specifying.
9123
9124 2003-02-04 Michael Chastain <mec@shout.net>
9125
9126 * dwarfread.c: Add documentation on the state of dwarf-1,
9127 looking towards obsoletion.
9128
9129 2003-02-03 Michael Chastain <mec@shout.net>
9130
9131 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9132 gdb/testsuite/gdb.c++/pr-1023.exp.
9133
9134 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9135
9136 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9137 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9138
9139 * utils.c (init_page_info): Delete reference to MPW in comments.
9140 * main.c (captured_main): Delete #ifdef MPW.
9141
9142 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9143
9144 * NEWS: Note that the m32r-*-elf* is obsolete.
9145 * monitor.c (monitor_expect): Obsolete reference to m32r.
9146 * configure.tgt: Mark m32r-*-elf* as obsolete.
9147 * MAINTAINERS: Mark m32k as obsolete.
9148 * m32r-rom.c: Obsolete file.
9149 * config/m32r/m32r.mt: Obsolete file.
9150 * config/m32r/tm-m32r.h: Obsolete file.
9151 * m32r-stub.c: Obsolete file.
9152 * m32r-tdep.c: Obsolete file.
9153
9154 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9155
9156 * NEWS: Mention that the z8k-zilog-none is obsolete.
9157 * MAINTAINERS: Mark z8k as obsolete.
9158 * configure.tgt: Obsolete the z8k-*-coff* target.
9159 * config/z8k/z8k.mt: Obsolete file.
9160 * config/z8k/tm-z8k.h: Obsolete file.
9161 * z8k-tdep.c: Obsolete file.
9162
9163 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9164
9165 * NEWS: Mention that the mn10200-elf is obsolete.
9166 * configure.tgt: Obsolete mn10200-*-* target.
9167 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9168 mention that the mn10200 is obsolete.
9169 * breakpoint.h: Ditto.
9170 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9171 * config/mn10200/mn10200.mt: Obsolete file.
9172 * config/mn10200/tm-mn10200.h: Obsolete file.
9173 * mn10200-tdep.c: Obsolete file.
9174
9175 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9176
9177 * MAINTAINERS: Mark h8500 as obsolete.
9178 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9179 * findvar.c (value_from_register): Ditto.
9180 * h8500-tdep.c: Mark file as obsolete.
9181 * config/h8500/h8500.mt: Ditto.
9182 * config/h8500/tm-h8500.h: Ditto.
9183 * NEWS: Mention that h8500 is obsolete.
9184
9185 2003-02-04 David Carlton <carlton@math.stanford.edu>
9186
9187 * objfiles.c (allocate_objfile): Always set name. Add comment at
9188 start of function.
9189 * jv-lang.c (get_dynamics_objfile): Add comment.
9190
9191 2003-02-04 David Carlton <carlton@math.stanford.edu>
9192
9193 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9194 * printcmd.c (build_address_symbolic): Replace uses of
9195 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9196 SYMBOL_NAME, and asm_demangle.
9197 Update copyright.
9198
9199 2003-02-04 David Carlton <carlton@math.stanford.edu>
9200
9201 * linespec.c (decode_compound): Extract code into
9202 lookup_prefix_sym.
9203 (lookup_prefix_sym): New function.
9204
9205 2003-02-04 David Carlton <carlton@math.stanford.edu>
9206
9207 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9208 FLOAT_COERCION_BADNESS.
9209 * gdbtypes.c (rank_one_type): Replace all uses of
9210 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9211
9212 2003-02-04 Jim Blandy <jimb@redhat.com>
9213
9214 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9215 section, let dwarf_macinfo_section point to it, not
9216 dwarf_loc_section.
9217
9218 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9219
9220 Pointed out by Anton Blanchard <anton@samba.org>.
9221 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9222 (ppc_linux_at_sigtramp_return_path): Use it.
9223
9224 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9225
9226 * defs.h (streq): Add prototype.
9227 * utils.c (streq): New function.
9228
9229 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9230 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9231 * mdebugread.c (new_symbol): Likewise.
9232 * stabsread.c (define_symbol): Likewise.
9233 * coffread.c (process_coff_symbol): Likewise.
9234 * dwarfread.c (new_symbol): Likewise.
9235
9236 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9237 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9238 here.
9239 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9240 SYMBOL_INIT_DEMANGLED_NAME.
9241 * objfiles.c: Include "hashtab.h".
9242 (allocate_objfile): Call htab_set_functions_ex for the
9243 demangled_names_hash.
9244 (free_objfile): Call htab_delete for the demangled_names_hash.
9245 * objfiles.h (struct htab): Add declaration.
9246 (struct objfile): Add demangled_names_hash.
9247 * symfile.c: Include "hashtab.h".
9248 (reread_symbols): Call htab_delete for the demangled_names_hash.
9249 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9250 SYMBOL_NAME in the bcache.
9251 * symtab.c: Include "hashtab.h". Update comments.
9252 (create_demangled_names_hash, symbol_set_names): New functions.
9253 (symbol_find_demangled_name): New function, broken out from
9254 symbol_init_demangled_names.
9255 (symbol_init_demangled_names): Use it.
9256 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9257 (SYMBOL_SET_NAMES): New macro.
9258 (symbol_set_names): Add prototype.
9259
9260 2003-02-03 Jim Blandy <jimb@redhat.com>
9261
9262 Use a single, consistent representation for an empty minimal
9263 symbol table in an objfile.
9264 * objfiles.c (terminate_minimal_symbol_table): New function.
9265 (allocate_objfile): Call it.
9266 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9267 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9268 non-NULL.
9269 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9270 objfile has minimal symbols, compare minimal_symbol_count to zero,
9271 instead of comparing msymbols with NULL.
9272 * objfiles.c (have_minimal_symbols): Same.
9273 * solib-sunos.c (solib_add_common_symbols): Call
9274 terminate_minimal_symbol_table.
9275 * symfile.c (reread_symbols): Same.
9276
9277 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9278
9279 * s390-tdep.c (s390_address_class_type_flags)
9280 (s390_address_class_type_flags_to_name)
9281 (s390_address_class_name_to_type_flags): New functions.
9282 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9283 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9284
9285 2003-02-03 Michael Snyder <msnyder@redhat.com>
9286
9287 * arm-tdep.c: Fix spell-o in comment.
9288
9289 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9290
9291 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9292 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9293 error messages to contain BFD filename.
9294
9295 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9296
9297 Fix PR gdb/742 gdb/743 gdb/877
9298 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9299 (do_mixed_source_and_assembly): Use
9300 make_cleanup_ui_out_tuple_begin_end and
9301 make_cleanup_ui_out_tuple_begin_end.
9302 (do_mixed_source_and_assembly): Ditto.
9303 * thread.c (do_captured_list_thread_ids): Ditto.
9304 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9305 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9306 ui_out_tuple_end): Delete prototypes.
9307 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9308 ui_out_list_end, ui_out_tuple_end): Delete.
9309
9310 From Kevin Buettner <kevinb@redhat.com>:
9311 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9312 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9313 (do_cleanup_table_end): New functions.
9314 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9315 Use cleanups to invoke_ui_out_tuple_end().
9316 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9317 * cli/cli-setshow.c (cmd_show_list): Use
9318 make_cleanup_ui_out_tuple_begin_end.
9319
9320 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9321
9322 * frame.c (frame_unwind_register): New function.
9323 (frame_unwind_unsigned_register): Use.
9324 (frame_unwind_signed_register): Use.
9325 (frame_read_register): New function.
9326 * frame.h (frame_unwind_register): Declare.
9327 (frame_read_register): Declare.
9328
9329 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9330 and frame_unwind_register instead of read_memory, write_register
9331 and deprecated_write_register_bytes.
9332
9333 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9334
9335 * frame.h: Note that namelen can be negative.
9336 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9337 NAME's length.
9338
9339 * NEWS: Mention that the d10v's `regs' command is deprecated.
9340 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9341 (d10v_print_registers_info): New function.
9342 (show_regs): Call d10v_print_registers_info.
9343 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9344
9345 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9346
9347 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9348 lost in the previous patch.
9349
9350 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9351
9352 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9353 * stack.c (print_frame_info_base): Output complete FRAME tuple
9354 for synthesized frames.
9355
9356 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9357
9358 * mips-nat.c (zerobuf): Delete.
9359 (fetch_inferior_registers): Alloc local zerobuf.
9360 (fetch_core_registers): Alloc local zerobuf.
9361 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9362 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9363 * thread-db.c (thread_db_store_registers): Ditto.
9364 * sh-tdep.c (sh_do_register): Ditto.
9365 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9366 * remote-sim.c (gdbsim_store_register): Ditto.
9367 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9368 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9369 * monitor.c (monitor_supply_register): Ditto.
9370 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9371 * mips-nat.c (fetch_inferior_registers): Ditto.
9372 * m68klinux-nat.c (fetch_register): Ditto.
9373 * lynx-nat.c (fetch_inferior_registers): Ditto.
9374 (fetch_inferior_registers): Ditto.
9375 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9376 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9377 (hpux_thread_store_registers): Ditto.
9378 * hppah-nat.c (fetch_register): Ditto.
9379 * hppab-nat.c (fetch_register): Ditto.
9380 * hppa-tdep.c (pa_register_look_aside): Ditto.
9381 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9382 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9383
9384 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9385
9386 * gdbarch.sh: Explictly specify all method levels. When a
9387 variable with an empty level, provide a non-multi-arch default.
9388 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9389 * gdbarch.h: Re-generate.
9390 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9391 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9392
9393 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9394
9395 * defs.h (host_pointer_to_address): Delete declaration.
9396 (address_to_host_pointer): Delete declaration.
9397 * utils.c (host_pointer_to_address): Delete function.
9398 (address_to_host_pointer): Delete function.
9399 * procfs.c (procfs_address_to_host_pointer): New function.
9400 * procfs.c (proc_set_watchpoint): Use.
9401 (procfs_can_use_hw_breakpoint): Update comments.
9402 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9403 (som_solib_add): Use.
9404 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9405 * hppa-tdep.c (unwind_command): Use.
9406
9407 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9408
9409 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9410 strlen d_name.
9411
9412 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9413 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9414 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9415 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9416 (define_symbol): Update.
9417 * symfile.c (generic_load): Remove references to nindy.
9418 * symtab.c: Remove references to nindy.
9419
9420 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9421
9422 * infcmd.c (print_float_info): Delete code conditional on
9423 FLOAT_INFO.
9424 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9425 * config/m68k/nm-apollo68b.h: Ditto.
9426 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9427 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9428 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9429
9430 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9431
9432 * config/i386/tm-i386os9k.h: Removed.
9433
9434 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9435 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9436 they're identical to i[3456]86-*-sysv* now.
9437 * config/i386/i386v32.mh: Removed.
9438 * config/i386/xm-i386v32.h: Removed.
9439 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9440
9441 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9442
9443 * config/i386/i386dgux.mh: Removed.
9444 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9445
9446 * configure.in: Fix typo.
9447 * configure: Regenerated.
9448
9449 2003-01-31 David Carlton <carlton@math.stanford.edu>
9450
9451 * dwarf2read.c (dwarf2_locate_sections): Set
9452 dwarf_ranges_section.
9453
9454 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9455
9456 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9457 * utils.c: Update comments documenting legitimate uses of PTR.
9458
9459 * utils.c: Re-indent.
9460
9461 * config/djgpp/fnchange.lst: Delete nindy files.
9462 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9463 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9464 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9465 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9466 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9467 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9468 * Makefile.in (init.c): Remove nindy references.
9469 (saber_gdb): Delete rule.
9470 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9471 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9472 and a68v-nat.c.
9473 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9474 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9475 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9476 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9477 nindy-share/stop.h.
9478 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9479 * saber.suppress: Delete file.
9480
9481 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9482
9483 * dbxread.c (stabs_data): New static variable.
9484 (fill_symbuf): Support an in-memory buffer for stabs data.
9485 (stabs_seek): New function.
9486 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9487 (read_ofile_symtab): Use stabs_seek.
9488 (elfstab_build_psymtabs): Take an asection* instead of
9489 an offset and size. Relocate the stabs data if necessary.
9490 Save the section* for dbx_psymtab_to_symtab.
9491 * dwarf2read.c: Add section variables for each debug section.
9492 (dwarf2_locate_sections): Fill them in.
9493 (dwarf2_read_section): Take an asection* argument.
9494 Relocate the section contents if necessary.
9495 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9496 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9497 it to dwarf2_read_section.
9498 (dwarf2_build_frame_info): Update callers.
9499 * elfread.c (elf_symfile_read): Update call to
9500 elfstab_build_psymtabs.
9501 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9502 (DBX_STAB_SECTION): New macro.
9503 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9504 * symfile.c (symfile_dummy_outputs): New function.
9505 (symfile_relocate_debug_section): New function.
9506 * symfile.h (symfile_relocate_debug_section): Add prototype.
9507
9508 2003-01-31 Richard Henderson <rth@redhat.com>
9509
9510 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9511 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9512 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9513 * alpha-tdep.c (alpha_register_name): Add "unique".
9514 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9515 (ALPHA_UNIQUE_REGNUM): New.
9516 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9517
9518 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9519
9520 * README: Remove reference to Ericsson 1800 monitor.
9521 * Makefile.in (remote-es.o): Delete rule.
9522 (ALLDEPFILES): Delete remote-es.c.
9523 * remote-es.c: Delete file.
9524 * config/m68k/es1800.mt: Delete file.
9525 * config/djgpp/fnchange.lst: Update.
9526 * configure.tgt: Delete m68*-ericsson-* target.
9527
9528 2003-01-31 Adam Fedor <fedor@gnu.org>
9529
9530 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9531 Remove duplicate/shadowing variable of same name.
9532
9533 2003-01-30 Jim Blandy <jimb@redhat.com>
9534
9535 * symfile.c (find_separate_debug_file): Assert that the objfile's
9536 directory name we compute ends with a slash, and then assume that
9537 that's so everywhere we use it.
9538
9539 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9540
9541 * valops.c (value_assign): Flush frame cache after stores to memory
9542 also.
9543
9544 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9545
9546 * Makefile.in (mon960-rom.o): Delete rule.
9547 * mon960-rom.c: Delete file.
9548
9549 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9550
9551 * d10v-tdep.c: Include "frame-unwind.h".
9552 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9553 list.
9554 (next_addr, uses_frame): Delete.
9555 (struct d10v_unwind_cache): Define.
9556 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9557 Use info instead of next_addr and uses_frame globals.
9558 (d10v_frame_init_saved_regs): Delete function.
9559 (d10v_init_extra_frame_info): Delete function.
9560 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9561 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9562 init_frame_pc or frame_saved_pc.
9563 (d10v_pop_frame): Delete function.
9564 (do_d10v_pop_frame): Delete function.
9565 (d10v_frame_chain): Delete function.
9566 (d10v_frame_chain_valid): Delete function.
9567 (d10v_frame_pc_unwind): New function.
9568 (d10v_frame_id_unwind): New function.
9569 (saved_regs_unwinder): New function.
9570 (d10v_frame_register_unwind): New function.
9571 (d10v_frame_pop): New function.
9572 (d10v_frame_unwind): New variable.
9573 (d10v_frame_p): New function.
9574 (d10v_frame_saved_pc): Delete function.
9575 * Makefile.in (d10v-tdep.o): Update dependencies.
9576
9577 2003-01-30 J. Brobecker <brobecker@gnat.com>
9578
9579 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9580 causing some regressions due to a change in the default value
9581 for this macro.
9582
9583 2003-01-29 Richard Henderson <rth@redhat.com>
9584 Elena Zannoni <ezannoni@redhat.com>
9585 Daniel Jacobowitz <drow@mvista.com>
9586
9587 Fix PR gdb/961.
9588 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9589 variables.
9590 (RANGES_SECTION): New.
9591 (dwarf_ranges_buffer): New variable.
9592 (struct comp_unit_head): Add member "die".
9593 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9594 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9595 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9596 (dwarf2_locate_sections): Likewise.
9597 (dwarf2_build_psymtabs): Read .debug_ranges.
9598 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9599 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9600 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9601 Look for DW_AT_ranges and return the bounding box.
9602
9603 2003-01-29 Brian Ford <ford@vss.fsi.com>
9604
9605 * win32-nat.c (cygwin_pid): Removed as unused.
9606 (child_attach): Try fall back to Cygwin pid.
9607
9608 2003-01-29 Jim Blandy <jimb@redhat.com>
9609
9610 * objfiles.h (struct objfile): Doc fix.
9611
9612 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9613
9614 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9615 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9616 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9617 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9618 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9619 (FRAME_SAVED_PC): Change to a function with predicate.
9620 * gdbarch.h, gdbarch.c: Re-generate.
9621
9622 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9623
9624 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9625
9626 * complaints.c (complain): Delete function.
9627 * complaints.h (struct deprecated_complaint): Delete definition.
9628 (complain): Delete declaration.
9629
9630 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9631
9632 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9633 dummy frames.
9634
9635 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9636
9637 * sentinel-frame.h, sentinel-frame.c: New files.
9638 * Makefile.in (frame.o): Update dependencies.
9639 (SFILES): Add sentinel-frame.c.
9640 (sentinel_frame_h): Define.
9641 (COMMON_OBS): Add sentinel-frame.o.
9642 (sentinel-frame.o): Specify dependencies.
9643 * frame.c: Include "sentinel-frame.h".
9644 (frame_register_unwind): Rewrite assuming that there is always a a
9645 ->next frame.
9646 (frame_register, generic_unwind_get_saved_register): Ditto.
9647 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9648 (create_sentinel_frame, unwind_to_current_frame): New functions.
9649 (get_current_frame): Rewrite using create_sentinel_frame and
9650 unwind_to_current_frame. When possible, always create a frame.
9651 (create_new_frame): Set next to the sentinel frame.
9652 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9653 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9654 ID cache when necessary.
9655 (frame_saved_regs_id_unwind): Use frame_relative_level.
9656 (deprecated_generic_get_saved_register): Use frame_relative_level,
9657 get_frame_saved_regs, get_frame_pc, get_frame_base and
9658 get_next_frame.
9659 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9660 frame_register.
9661
9662 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9663
9664 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9665
9666 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9667
9668 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9669 (maintenance_set_profile_cmd): Use error () instead of warning ().
9670
9671 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9672
9673 * configure.in: Check that -pg works if using --enable-profiling.
9674 Check for monstartup and _mcleanup regardless of --enable-profiling.
9675 * maint.c: Check for monstartup and _mcleanup before using them.
9676 * config.in: Regenerated.
9677 * configure: Regenerated.
9678
9679 2003-01-24 Nick Clifton <nickc@redhat.com>
9680
9681 * Add sh2e support:
9682
9683 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9684
9685 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9686 (sh2e_show_regs): New.
9687 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9688 * config/sh/tm-sh.h: Added sh2e to comments.
9689
9690 2003-01-23 Jim Blandy <jimb@redhat.com>
9691
9692 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9693 symbols found)" message here; we haven't checked for a separate
9694 debug info file yet, so we don't know yet.
9695 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9696 we've looked everywhere. Also, there's no need to print a special
9697 message when we're loading the separate debug info file: the one
9698 symbol_file_add prints is fine.
9699
9700 2003-01-23 Alexander Larsson <alexl@redhat.com>
9701 Jim Blandy <jimb@redhat.com>
9702
9703 Add support for executables whose debug info has been separated
9704 out into a separate file, leaving only a link behind.
9705 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9706 and separate_debug_objfile_backlink.
9707 (put_objfile_before): New declaration.
9708 * symfile.c: #include "filenames.h".
9709 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9710 debug info in a separate file, read that, too. Save the addrs
9711 argument, so we can use it again to read the separated debug info;
9712 syms_from_objfile modifies the table we pass it.
9713 (reread_symbols): After re-reading an objfile, call
9714 reread_separate_symbols to refresh its separate debug info
9715 objfile, if it has one.
9716 (reread_separate_symbols, find_separate_debug_file,
9717 get_debug_link_info, separate_debug_file_exists): New functions.
9718 (debug_file_directory): New global var.
9719 (_initialize_symfile): Initialize debug_file_directory, and
9720 provide the new `set debug-file-directory' command to let the user
9721 change it.
9722 * objfiles.c (free_objfile): If this objfile has its debug info in
9723 a separate objfile, free that one too. If this is itself a
9724 separate debug info objfile, clear our parent's backlink.
9725 (put_objfile_before): New function.
9726 * utils.c (gnu_debuglink_crc32): New function.
9727 * defs.h (gnu_debuglink_crc32): New declaration.
9728 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9729 * configure.in: Handle --with-separate-debug-dir config option.
9730 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9731 * acconfig.h (DEBUGDIR): New macro.
9732 * configure, aclocal.m4, config.in: Regenerated.
9733
9734 2003-01-22 Jim Blandy <jimb@redhat.com>
9735
9736 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9737 like the old symbol_file_add, but taking new arguments: you can
9738 now pass in either a `struct section_addr_info' list to say where
9739 each section is loaded, or a `struct section_offsets' table. Pass
9740 these new arguments through to syms_from_objfile as appropriate.
9741 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9742 with the appropriate quiescent values for the new arguments.
9743
9744 * symfile.c: #include "gdb_assert.h".
9745 (syms_from_objfile): Add the ability to pass in a section offset
9746 table directly, as an alternative to the section_addr_info table.
9747 Document arguments better.
9748 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9749 * symfile.h (syms_from_objfile): Update declaration.
9750 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9751 syms_from_objfile.
9752 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9753
9754 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9755
9756 Original patch by Tom Tromey <tromey@cygnus.com> and
9757 Jason Molenda <jmolenda@apple.com>.
9758 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9759 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9760 * NEWS: Mention profiling.
9761 * configure.in (--enable-gdbtk): Fix typo.
9762 (--enable-profiling): New. Set PROFILE_CFLAGS.
9763 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9764 Fill in function.
9765 (profiling_state): New variable.
9766 (mcleanup_wrapper): New function.
9767 (_initialize_maint): Remove NOTYET, fix call to
9768 add_setshow_boolean_cmd for "maint set profile".
9769 * configure: Regenerated.
9770
9771 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9772
9773 * Makefile.in (install-gdbtk): Install PNG images too.
9774
9775 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9776
9777 * exec.c (text_start): Delete global variable.
9778 (exec_file_attach): Make text_start local to the function.
9779 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9780 * valops.c (hand_function_call): Delete code that handles
9781 BEFORE_TEXT_END and AFTER_TEXT_END.
9782 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9783 of CALL_DUMMY_LOCATION.
9784 * gdbarch.c: Regenerate.
9785 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9786 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9787 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9788 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9789 (text_end): Delete extern declaration.
9790
9791 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9792
9793 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9794 * blockframe.c (backtrace_below_main): Move to "frame.c".
9795 (frame_chain_valid): Delete check for backtrace_below_main.
9796 (_initialize_blockframe): Delete initialization, move ``set
9797 backtrace-below-main'' command to "frame.c".
9798 (do_flush_frames_sfunc): Delete function.
9799 * frame.c: Include "command.h" and "gdbcmd.h".
9800 (frame_type_from_pc): New function.
9801 (create_new_frame): Use frame_type_from_pc.
9802 (legacy_get_prev_frame): New function.
9803 (get_prev_frame): Rewrite. When an old style frame, call
9804 legacy_get_prev_frame. Otherwize, unwind the PC first.
9805 (_initialize_frame): Add ``set backtrace-below-main'' command.
9806 * Makefile.in (frame.o): Update dependencies.
9807
9808 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9809
9810 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9811 DEPRECATED_REGISTERS_INFO.
9812
9813 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9814
9815 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9816 Maintainers'. Update `Various Maintainers'.
9817
9818 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9819
9820 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9821 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9822 Suppress actual parameters when `-'.
9823 * gdbarch.h, gdbarch.c: Regenerate.
9824
9825 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9826
9827 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9828 code handling dummy frames.
9829
9830 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9831
9832 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9833 (struct frame_unwind): Add field pop.
9834 * frame.h (frame_pop): Declare.
9835 * frame.c (frame_saved_regs_pop): New function.
9836 (trad_frame_unwinder): Add frame_saved_regs_pop.
9837 (frame_pop): New function.
9838 * dummy-frame.c (dummy_frame_pop): New function.
9839 (discard_innermost_dummy): New function.
9840 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9841 (dummy_frame_unwind): Add dummy_frame_pop.
9842 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9843 * valops.c (hand_function_call): Ditto.
9844 * stack.c (return_command): Ditto.
9845
9846 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9847
9848 * cris-tdep.c: Fix function declaration indentation.
9849 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9850 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9851 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9852 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9853 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9854 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9855
9856 2003-01-18 Michael Chastain <mec@shout.net>
9857
9858 * README (Unpacking and Installation -- quick overview):
9859 Warn against ".../gdb-5.3/gdb/configure".
9860
9861 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9862
9863 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9864 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9865 (struct frame_unwind): Declare opaque.
9866 (dummy_frame_p): Declare function.
9867 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9868 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9869 * dummy-frame.c: Include "frame-unwind.h".
9870 (dummy_frame_p): New function.
9871 (dummy_frame_unwind): New variable.
9872 * frame.c: Include "frame-unwind.h".
9873 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9874 to use the new unwind field.
9875 (set_unwind_by_pc): Delete function.
9876 (create_new_frame, get_prev_frame): Set unwind field using
9877 frame_unwind_find_by_pc.
9878 (trad_frame_unwind, trad_frame_unwinder): New variables.
9879 * frame.h (trad_frame_unwind): Declare variable.
9880 (frame_id_unwind_ftype): Delete declaration.
9881 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9882 (struct frame_unwind): Declare opaque.
9883 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9884 register_unwind with a single unwind pointer.
9885 * frame-unwind.h, frame-unwind.c: New files.
9886 * Makefile.in (SFILES): Add frame-unwind.c.
9887 (frame_unwind_h): Define.
9888 (COMMON_OBS): Add frame-unwind.o.
9889 (frame-unwind.o): Specify dependencies.
9890 (frame.o, dummy-frame.o): Update dependencies.
9891
9892 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9893
9894 * ada-valprint.c: Eliminate PTR.
9895 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9896 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9897 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9898 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9899 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9900 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9901 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9902
9903 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9904
9905 * main.c (captured_main): Don't use PTR.
9906 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9907 * gdbtypes.c (lookup_primitive_typename): Ditto.
9908 (lookup_struct_elt_type): Ditto.
9909 * f-valprint.c (info_common_command): Ditto.
9910 (list_all_visible_commons): Ditto.
9911 * jv-typeprint.c (java_type_print_base): Ditto.
9912
9913 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9914 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9915 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9916 i386-interix-nat.c and i386-interix-tdep.c. Rename
9917 m68klinux-nat.c and m68klinux-tdep.c. Rename
9918 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9919 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9920 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9921 * main.c (captured_main): Use xfree, not free.
9922
9923 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9924
9925 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9926 ID back using a parameter.
9927 * frame.c (frame_id_unwind): Update call.
9928 (frame_saved_regs_id_unwind): Update.
9929 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9930 * dummy-frame.h (struct frame_id): Add opaque declaration.
9931 (dummy_frame_id_unwind): Update declaration.
9932
9933 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9934
9935 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9936
9937 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9938
9939 * MAINTAINERS (Stephen P. Smith): Updated email address.
9940
9941 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9942
9943 Fix PR gdb/898
9944 * breakpoint.c (until_break_command): Add new argument. Use it to
9945 decide whether to stop only at the current frame or not.
9946 * breakpoint.h (until_break_command): Update prototype.
9947 * infcmd.c (until_command): Add new argument to until_break_command
9948 call.
9949 (advance_command): New function.
9950 (_initialize_infcmd): Update help string for 'until' command.
9951 Add new 'advance' command.
9952
9953 2003-01-14 David Carlton <carlton@math.stanford.edu>
9954
9955 * linespec.c (decode_line_1): Normalize comments.
9956 (set_flags): Ditto.
9957 (locate_first_half): Ditto.
9958 (decode_compound): Ditto.
9959 (symtab_from_filename): Ditto.
9960 (decode_all_digits): Ditto.
9961 (decode_dollar): Ditto.
9962 (find_methods): Ditto.
9963 (find_toplevel_char): Ditto.
9964
9965 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9966
9967 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9968 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9969 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9970 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9971 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9972 * language.c, language.h, m32r-tdep.c: Update copyright.
9973 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9974 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9975 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9976 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9977 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9978 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9979
9980 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9981
9982 * stabsread.h (process_later, resolve_cfront_continuation):
9983 Obsolete.
9984 Update copyright years.
9985 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9986 Update copyright year.
9987 * dbxread.c(struct cont_elem): Obsolete.
9988 (process_later, process_now): Obsolete functions.
9989 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9990 Update copyright year.
9991 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9992 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9993 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9994 (parse_partial_symbols): Obsolete cfront support.
9995 * stabsread.c
9996 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9997 macros.
9998 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9999 read_cfront_baseclasses, read_cfront_member_functions,
10000 resolve_cfront_continuation,read_cfront_static_fields,
10001 copy_cfront_struct_fields): Obsolete functions.
10002 (define_symbol, read_one_struct_field): Obsolete cfront support.
10003 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10004 Update Copyright year.
10005
10006 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10007
10008 * stack.c (print_frame_info, print_stack_frame_base_stub,
10009 print_stack_frame_base, show_and_print_stack_frame_stub,
10010 show_and_print_stack_frame, print_only_stack_frame_stub,
10011 print_only_stack_frame): Delete functions.
10012 (print_stack_frame_stub): Call print_frame_info instead of
10013 print_frame_info_base.
10014 (print_frame_info_base): Rename to print_frame_info.
10015 (backtrace_command_1): Call print_frame_info, instead of
10016 print_frame_info_base.
10017 (current_frame_command): Call print_stack_frame, instead of
10018 print_only_stack_frame.
10019 (frame_command): Call print_stack_frame, instead of
10020 show_and_print_stack_frame.
10021 (up_command): Ditto.
10022 (down_command): Ditto.
10023 * frame.h (print_only_stack_frame): Delete prototype.
10024 * infrun.c (normal_stop): Call print_stack_frame, instead of
10025 show_and_print_stack_frame.
10026 * thread.c (info_threads_command): Call print_stack_frame, instead
10027 of print_only_stack_frame.
10028
10029 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10030
10031 * README (Graphical interface to GDB): Update URL. Point at
10032 gdb/links/.
10033
10034 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10035 version match.
10036
10037 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10038
10039 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10040 lines.
10041
10042 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10043
10044 * thread-db.c (attach_thread): Prototype.
10045 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10046 thread information (ti), and valid flags (th_valid, ti_valid).
10047 (attach_thread): Move target_pid_to_str call to after the thread
10048 is added to GDB's list. Initialize the cache.
10049 (thread_get_info_callback, thread_db_map_id2thr)
10050 (thread_db_get_info): New functions.
10051 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10052 (thread_db_store_registers, thread_db_thread_alive)
10053 (thread_db_get_thread_local_address): Use them.
10054 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10055 of calling error() for threads in unknown state.
10056
10057 (clear_lwpid_callback): New function.
10058 (thread_db_resume): Use it to clear the cache.
10059
10060 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10061
10062 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10063 (resume_callback): Remove dead code.
10064
10065 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10066
10067 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10068 predicate.
10069 * gdbarch.h, gdbarch.c: Regenerate.
10070 * stack.c (frame_info): Only initialize the saved registers when
10071 FRAME_INIT_SAVED_REGS_P.
10072 * frame.c (frame_saved_regs_register_unwind): Assert
10073 FRAME_INIT_SAVED_REGS_P.
10074 (deprecated_generic_get_saved_register): Ditto.
10075
10076 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10077
10078 * source.c (openp): Squelch warning about "filename".
10079
10080 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * source.c (openp): If the file does not exist don't necessarily
10083 search the path.
10084
10085 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10086
10087 Fix PR gdb/872.
10088 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10089 (integer_types_same_name_p): New function.
10090 (rank_one_type): Use it.
10091 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10092
10093 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10094
10095 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10096 variables.
10097 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10098 * configure.in: Add --with-sysroot.
10099 * configure: Regenerated.
10100 * main.c (gdb_sysroot): New variable.
10101 (captured_main): Initialize gdb_sysroot.
10102 * defs.h (gdb_sysroot): New extern declaration.
10103 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10104
10105 2003-01-12 Michael Chastain <mec@shout.net>
10106
10107 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10108
10109 2003-01-12 Michael Chastain <mec@shout.net>
10110
10111 * top.c (print_gdb_version): Bump copyright year to 2003.
10112
10113 2003-01-12 David Carlton <carlton@bactrian.org>
10114
10115 * linespec.c (symtab_from_filename): Rename variable 's' to
10116 'file_symtab'.
10117
10118 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10119
10120 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10121 dummy frame.
10122 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10123
10124 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10125
10126 * d10v-tdep.c: Include "gdb_assert.h".
10127 (d10v_store_return_value): Rewrite to match current interface.
10128 (d10v_extract_struct_value_address): Ditto.
10129 (d10v_extract_return_value): Ditto.
10130 (d10v_gdbarch_init): Set store_restore_value,
10131 extract_struct_value_address and extract_return_value.
10132
10133 2003-01-12 J. Brobecker <brobecker@gnat.com>
10134
10135 * hpread.c (set_namestring): New procedure replacing the
10136 SET_NAMESTRING macro.
10137 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10138 by calls to set_namestring.
10139
10140 2003-01-11 J. Brobecker <brobecker@gnat.com>
10141
10142 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10143 a compilation warning.
10144 (hpread_process_one_debug_symbol): Likewise.
10145
10146 2003-01-10 David Carlton <carlton@math.stanford.edu>
10147
10148 * linespec.c (decode_line_1): Rename variable 's' to
10149 'file_symtab'.
10150 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10151 (decode_dollar): Ditto.
10152 (decode_variable): Ditto.
10153 (symbol_found): Ditto.
10154
10155 2003-01-09 Michael Chastain <mec@shout.net>
10156
10157 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10158
10159 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10160
10161 * win32-nat.c (set_process_privilege): New function.
10162 (child_attach): Call set_process_privilege() to enable the
10163 SE_DEBUG_NAME user privilege if available in process token.
10164
10165 2003-01-10 J. Brobecker <brobecker@gnat.com>
10166
10167 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10168 compilation error in the previous revision.
10169
10170 2003-01-09 David Carlton <carlton@math.stanford.edu>
10171
10172 * linespec.c: Update copyright.
10173
10174 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10175
10176 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10177 than inferior_ptid.
10178 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10179
10180 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10181
10182 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10183 Update comments.
10184 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10185 (frame_saved_regs_zalloc): Update.
10186 (frame_saved_regs_register_unwind): Update.
10187 (create_new_frame): Update.
10188 (get_prev_frame): Update.
10189 (frame_extra_info_zalloc): Update.
10190 (deprecated_get_frame_saved_regs): Update.
10191 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10192 * cris-tdep.c: Update comment.
10193
10194 * somsolib.h: Fix function indentation.
10195 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10196 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10197 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10198 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10199 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10200
10201 * infrun.c (follow_fork): Use ISO C definition.
10202 * expprint.c (print_subexp): Use xfree instead of free.
10203 * charset.c: Include "gdb_string.h" instead of <string.h>.
10204 (register_iconv_charsets): Use ISO C definition.
10205 (host_charset, target_charset): Ditto.
10206 * Makefile.in (charset.o): Update dependencies.
10207 (mi-cmd-env.o): Update dependencies.
10208
10209 2003-01-08 Andrew Cagney <cagney@redhat.com>
10210
10211 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10212 get_frame_base.
10213
10214 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10215
10216 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10217 build directories. Save edited gdb output in Mbuild.log. If a
10218 build fails, remove any final GDB executable.
10219
10220 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10221
10222 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10223 replacing hex constants with function names and stripping leading
10224 file name directory prefixes.
10225
10226 2003-01-08 Andrew Cagney <cagney@redhat.com>
10227
10228 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10229 get_frame_base.
10230
10231 2003-01-08 David Carlton <carlton@math.stanford.edu>
10232
10233 * linespec.c (decode_line_1): Move code into decode_variable.
10234 (decode_variable): New function.
10235
10236 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10237
10238 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10239
10240 2003-01-08 Andrew Cagney <cagney@redhat.com>
10241
10242 * cris-tdep.c (cris_frame_init_saved_regs): Use
10243 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10244 saved_regs buffer.
10245 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10246 (sh64_nofp_frame_init_saved_regs): Ditto.
10247 (sh_fp_frame_init_saved_regs): Ditto.
10248 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10249 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10250 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10251 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10252
10253 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10254
10255 * minsyms.c (lookup_minimal_symbol): Update comment.
10256 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10257 (lookup_minimal_symbol_solib_trampoline): Likewise.
10258
10259 2003-01-08 Andrew Cagney <cagney@redhat.com>
10260
10261 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10262 frame_relative_level.
10263
10264 * alpha-tdep.c: Use get_frame_extra_info.
10265 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10266 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10267 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10268 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10269
10270 * alpha-tdep.c: Use get_next_frame.
10271 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10272 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10273 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10274 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10275 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10276 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10277 * xstormy16-tdep.c: Ditto.
10278
10279 2003-01-07 Andrew Cagney <cagney@redhat.com>
10280
10281 * alpha-tdep.c: Use get_frame_base.
10282 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10283 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10284 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10285 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10286 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10287 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10288 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10289 * config/sparc/tm-sparc.h: Ditto.
10290
10291 2003-01-07 Andrew Cagney <cagney@redhat.com>
10292
10293 * frame.c (deprecated_get_frame_context): New function.
10294 (deprecated_set_frame_context): New function.
10295 * frame.h (deprecated_get_frame_context): Declare.
10296 (deprecated_set_frame_context): Declare.
10297 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10298 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10299
10300 2003-01-07 Andrew Cagney <cagney@redhat.com>
10301
10302 * frame.c (deprecated_set_frame_next_hack): New function.
10303 (deprecated_set_frame_prev_hack): New function.
10304 * frame.h (deprecated_set_frame_next_hack): Declare.
10305 (deprecated_set_frame_prev_hack): Declare.
10306 * mcore-tdep.c (analyze_dummy_frame): Use
10307 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10308 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10309
10310 2003-01-07 David Carlton <carlton@math.stanford.edu>
10311
10312 * linespec.c (decode_line_1): Move code into decode_dollar.
10313 (decode_dollar): New function.
10314
10315 2003-01-07 Andrew Cagney <cagney@redhat.com>
10316
10317 * arm-tdep.c (arm_init_extra_frame_info): Use
10318 deprecated_update_frame_base_hack.
10319 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10320 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10321 (fix_frame_pointer): Ditto.
10322 (mn10300_analyze_prologue): Ditto.
10323
10324 2003-01-07 Andrew Cagney <cagney@redhat.com>
10325
10326 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10327 extra_info using frame_extra_info_zalloc.
10328 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10329 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10330 (sh64_init_extra_frame_info): Ditto.
10331 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10332 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10333 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10334 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10335 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10336 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10337 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10338 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10339 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10340 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10341 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10342 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10343
10344 * mn10300-tdep.c (analyze_dummy_frame): Use
10345 deprecated_set_frame_extra_info_hack.
10346 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10347
10348 2003-01-07 J. Brobecker <brobecker@gnat.com>
10349
10350 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10351 class is not scText. These do not define "real" procedures.
10352 (parse_partial_symbols): Likewise.
10353
10354 2003-01-06 Michael Snyder <msnyder@redhat.com>
10355
10356 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10357
10358 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10359
10360 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10361 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10362 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10363 deprecated_frame_xmalloc_with_cleanup.
10364 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10365 deprecated_frame_xmalloc.
10366 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10367 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10368
10369 2003-01-06 Andrew Cagney <cagney@redhat.com>
10370
10371 * x86-64-linux-tdep.c: Include "osabi.h".
10372 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10373
10374 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10375
10376 2003-01-06 Andrew Cagney <cagney@redhat.com>
10377
10378 * MAINTAINERS (Target Instruction Set Architectures): Update
10379 arm-elf. Can be built with -Werror, has been multiarched.
10380
10381 * value.h (unpack_long): Make buffer parameter constant.
10382 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10383 * scm-lang.h (scm_parse): Ditto.
10384 * defs.h (extract_typed_address, extract_address): Ditto.
10385 (extract_long_unsigned_integer): Ditto.
10386 * inferior.h (unsigned_pointer_to_address): Ditto.
10387 (signed_pointer_to_address): Ditto.
10388 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10389 * gdbarch.h, gdbarch.c: Regenerate.
10390 * findvar.c (extract_long_unsigned_integer): Update.
10391 (extract_address): Update.
10392 (extract_typed_address): Update.
10393 (unsigned_pointer_to_address): Update.
10394 * values.c (unpack_long): Update.
10395 (unpack_double): Update.
10396 (unpack_pointer): Update.
10397 (unpack_field_as_long): Update.
10398 * d10v-tdep.c (d10v_pointer_to_address): Update.
10399 * avr-tdep.c (avr_pointer_to_address): Update.
10400 * scm-lang.c (scm_unpack): Update.
10401 * findvar.c (signed_pointer_to_address): Update.
10402
10403 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10404
10405 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10406 since it is in i386-tdep.c.
10407
10408 2003-01-06 J. Brobecker <brobecker@gnat.com>
10409
10410 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10411 failure introduced in the previous change.
10412
10413 2003-01-05 Michael Chastain <mec@shout.net>
10414
10415 * README: Remove references to deleted remote-*.c files:
10416 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10417 remote-nrom.c, remote-os9k.c, remote-udi.c.
10418
10419 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10420
10421 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10422 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10423 i386_get_longjmp_target.
10424
10425 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10426
10427 * arm-tdep.c (prologue_cache): Change to a pointer.
10428 (_initialize_arm_tdep): Allocate prologue_cache.
10429 (check_prologue_cache): Update.
10430 (save_prologue_cache): Update.
10431 (arm_gdbarch_init): Update.
10432
10433 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10434
10435 * stabsread.c (update_method_name_from_physname): Call complaint()
10436 instead of error.
10437
10438 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10441 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10442 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10443
10444 * blockframe.c: Include "gdbcmd.h" and "command.h".
10445 (backtrace_below_main): New variable.
10446 (file_frame_chain_valid, func_frame_chain_valid)
10447 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10448 (generic_func_frame_chain_valid): Remove functions.
10449 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10450 (_initialize_blockframe): New function.
10451 * Makefile.in (blockframe.o): Update dependencies.
10452 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10453 comment. Call frame_chain_valid ().
10454 * frame.h: Remove old prototypes. Add prototype for
10455 frame_chain_valid and update comments to match.
10456 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10457 Remove old comment.
10458 * gdbarch.h: Regenerated.
10459 * gdbarch.c: Regenerated.
10460
10461 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10462 set_gdbarch_frame_chain_valid.
10463 * avr-tdep.c (avr_gdbarch_init): Likewise.
10464 * cris-tdep.c (cris_gdbarch_init): Likewise.
10465 * frv-tdep.c (frv_gdbarch_init): Likewise.
10466 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10467 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10468 (i386_nw_init_abi): Likewise.
10469 (i386_gdbarch_init): Likewise.
10470 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10472 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10473 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10474 * mips-tdep.c (mips_gdbarch_init): Likewise.
10475 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10476 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10477 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10478 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10479 * s390-tdep.c (s390_gdbarch_init): Likewise.
10480 * sh-tdep.c (sh_gdbarch_init): Likewise.
10481 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10482 * v850-tdep.c (v850_gdbarch_init): Likewise.
10483 * vax-tdep.c (vax_gdbarch_init): Likewise.
10484 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10485
10486 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10487 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10488 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10489 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10490 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10491 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10492 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10493 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10494
10495 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * Makefile.in (acconfig_h): Remove incorrect macro.
10498 (config_h): Define.
10499 (osabi.o): Update dependencies.
10500 * configure.tgt: Set gdb_osabi based on target triplet.
10501 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10502 * configure: Regenerated.
10503 * config.in: Regenerated.
10504 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10505 (GDB_OSABI_DEFAULT): Define if not already defined.
10506 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10507 (set_osabi_string): New variables.
10508 (gdbarch_register_osabi): Add new OS ABI to
10509 gdb_osabi_available_names.
10510 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10511 (set_osabi, show_osabi): New functions.
10512 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10513
10514 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10515
10516 * arch-utils.c (gdbarch_info_init): Set osabi to
10517 GDB_OSABI_UNINITIALIZED.
10518 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10519 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10520 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10521 * gdbarch.c: Regenerated.
10522 * gdbarch.h: Regenerated.
10523 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10524 there's no BFD.
10525 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10526 * osabi.h (enum gdb_osabi): Move to defs.h.
10527 (gdbarch_init_osabi): Update prototype.
10528 * defs.h (enum gdb_osabi): Moved here.
10529 * Makefile.in: Update dependencies.
10530
10531 * alpha-tdep.h: Don't include "osabi.h".
10532 (struct gdbarch_tdep): Remove osabi member.
10533 * alpha-tdep.c: Include "osabi.h".
10534 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10535 iterate over arches. Update call to gdbarch_init_osabi.
10536 (alpha_dump_tdep): Don't dump osabi.
10537 * alpha-linux-tdep.c: Include "osabi.h".
10538 * alpha-osf1-tdep.c: Include "osabi.h".
10539 * alphafbsd-tdep.c: Include "osabi.h".
10540 * alphanbsd-tdep.c: Include "osabi.h".
10541
10542 * arm-tdep.h: Don't include "osabi.h".
10543 (struct gdbarch_tdep): Remove osabi member.
10544 * arm-tdep.c: Include "osabi.h".
10545 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10546 iterate over arches. Update call to gdbarch_init_osabi.
10547 (arm_dump_tdep): Don't dump osabi.
10548 * arm-linux-tdep.c: Include "osabi.h".
10549 * armnbsd-tdep.c: Include "osabi.h".
10550
10551 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10552 Update call to gdbarch_init_osabi.
10553
10554 * i386-tdep.h: Don't include "osabi.h".
10555 (struct gdbarch_tdep): Remove osabi member.
10556 * i386-tdep.c: Include "osabi.h".
10557 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10558 iterate over arches. Update call to gdbarch_init_osabi.
10559 (i386_dump_tdep): Don't dump osabi.
10560 * i386-linux-tdep.c: Include "osabi.h".
10561 * i386-sol2-tdep.c: Include "osabi.h".
10562 * i386bsd-tdep.c: Include "osabi.h".
10563 * i386gnu-tdep.c: Include "osabi.h".
10564 * i386ly-tdep.c: Include "osabi.h".
10565 * i386nbsd-tdep.c: Include "osabi.h".
10566 * i386obsd-tdep.c: Include "osabi.h".
10567
10568 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10569 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10570 check osabi when iterating over arches. Update call to
10571 gdbarch_init_osabi.
10572 (mips_dump_tdep): Don't dump osabi.
10573
10574 * ns32k-tdep.h: Don't include "osabi.h".
10575 (struct gdbarch_tdep): Remove.
10576 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10577 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10578 allocate tdep. Update call to gdbarch_init_osabi.
10579 (ns32k_dump_tdep): Remove.
10580 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10581 * ns32knbsd-tdep.c: Include "osabi.h".
10582
10583 * ppc-tdep.h: Don't include "osabi.h".
10584 (struct gdbarch_tdep): Remove osabi member.
10585 * rs6000-tdep.c: Include "osabi.h".
10586 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10587 osabi when iterating over arches. Update call to
10588 gdbarch_init_osabi.
10589 (rs6000_dump_tdep): Don't dump osabi.
10590 * ppc-linux-tdep.c: Include "osabi.h".
10591 * ppcnbsd-tdep.c: Include "osabi.h".
10592
10593 * sh-tdep.h: Don't include "osabi.h".
10594 (struct gdbarch_tdep): Remove osabi member.
10595 * sh-tdep.c: Include "osabi.h".
10596 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10597 iterate over arches. Update call to gdbarch_init_osabi.
10598 (sh_dump_tdep): Don't dump osabi.
10599 * shnbsd-tdep.c: Include "osabi.h".
10600
10601 * sparc-tdep.c: Include "osabi.h".
10602 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10603 iterate over arches. Update call to gdbarch_init_osabi.
10604 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10605 tdep structure.
10606
10607 * vax-tdep.h: Don't include "osabi.h".
10608 (struct gdbarch_tdep): Remove.
10609 * vax-tdep.c: Include "osabi.h".
10610 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10611 iterate over arches. Don't allocate tdep. Update call
10612 to gdbarch_init_osabi.
10613 (vax_dump_tdep): Remove.
10614 (_initialize_vax_tdep): Update call to gdbarch_register.
10615
10616 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10617
10618 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10619 entirely.
10620 (breakpoint_re_set_one): Don't fetch the value for a disabled
10621 watchpoint.
10622
10623 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10624
10625 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10626 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10627 (COERCE_FLOAT_TO_DOUBLE): Remove.
10628 * gdbarch.c: Regenerate.
10629 * gdbarch.h: Regenerate.
10630 * Makefile.in: Remove value_h from gdbarch_h.
10631 * valops.c (coerce_float_to_double): New variable.
10632 (default_coerce_float_to_double): Remove.
10633 (standard_coerce_float_to_double): Remove.
10634 (value_arg_coerce): Use coerce_float_to_double.
10635 (_initialize_valops): Add "set coerce-float-to-double".
10636 * value.h (default_coerce_float_to_double): Remove prototype.
10637 (standard_coerce_float_to_double): Remove prototype.
10638
10639 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10640 prototyped.
10641 * mdebugread.c (parse_symbol): Likewise.
10642 * stabsread.c (define_symbol): Mark all functions as prototyped.
10643
10644 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10645 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10646 set_gdbarch_coerce_float_to_double.
10647 * arm-tdep.c (arm_gdbarch_init): Likewise.
10648 * frv-tdep.c (frv_gdbarch_init): Likewise.
10649 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10650 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10651 * mips-tdep.c (mips_gdbarch_init): Likewise.
10652 (mips_coerce_float_to_double): Remove.
10653 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10654 (rs6000_coerce_float_to_double): Remove.
10655 * s390-tdep.c (s390_gdbarch_init): Likewise.
10656 * sh-tdep.c (sh_gdbarch_init): Likewise.
10657 (sh_coerce_float_to_double): Remove.
10658 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10659 (sparc_coerce_float_to_double): Remove.
10660 * v850-tdep.c (v850_gdbarch_init): Likewise.
10661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10662 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10663 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10664 (hppa_coerce_float_to_double): Remove prototype.
10665 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10666
10667 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10668
10669 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10670
10671 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10672
10673 Suggested by Stewart Brown <sb24@avaya.com>:
10674 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10675 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10676 (c_type_print_varspec_suffix): Likewise.
10677
10678 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10679
10680 * configure.in: Don't set and AC_SUBST SUBDIRS.
10681 * configure: Regenerated.
10682
10683 * configure.in: Remove code dealing with shared libraries.
10684 * Makefile.in: Remove HLDFLAGS and HLDENV.
10685 * configure: Regenerated.
10686
10687 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10688
10689 * frame.c (deprecated_frame_xmalloc): New function.
10690 (deprecated_set_frame_saved_regs_hack): New function.
10691 (deprecated_set_frame_extra_info_hack): New function.
10692 * frame.h (deprecated_frame_xmalloc): Declare.
10693 (deprecated_set_frame_saved_regs_hack): Declare.
10694 (deprecated_set_frame_extra_info_hack): Declare.
10695
10696 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10697
10698 * configure.in: Move code that provides the --enable-gdbtk option
10699 right after the code that handles the --enable-tui option, and
10700 polish it somewhat.
10701 * configure: Regenerated.
10702
10703 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10704 AC_CHECK_FUNCS and remove the old check for pread64.
10705 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10706 * acconfig.h (_GNU_SOURCE): Add.
10707 (HAVE_PREAD64): Remove.
10708 * configure, aclocal.m4, config.in: Regenerated.
10709
10710 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10711
10712 * alpha-tdep.c: Use get_frame_saved_regs.
10713 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10714 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10715 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10716 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10717 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10718
10719 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10720
10721 * configure.in: Remove all use of the SUBDIRS variable; add
10722 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10723 code providing the --enable-multi-ice option, and move it right in
10724 front of the code that checks whether gdbserver is supported.
10725 Polish that too.
10726 * configure: Regenerated.
10727 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10728 @SUBDIRS@.
10729
10730 2003-01-03 Andrew Cagney <cagney@redhat.com>
10731
10732 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10733 * avr-tdep.c, cris-tdep.c: Ditto.
10734 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10735 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10736
10737 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10738
10739 * configure.in: Remove --enable-netrom option.
10740 * configure: Regenerated.
10741
10742 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10743
10744 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10745 declaration for `struct re_pattern_buffer' instead.
10746 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10747
10748 2003-01-03 J. Brobecker <brobecker@gnat.com>
10749
10750 * mdebugread.c (parse_symbol): Count until the stEnd matching
10751 the structure name.
10752
10753 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10754
10755 * configure.in: Remove --with-cpu option.
10756 subscripts. Remove evil changequotes here.
10757 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10758 * config.in, configure: Regenerated.
10759
10760 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10761 * configure.in: Cleanup section that sources GDB and BFD configure
10762 subscripts. Remove evil changequotes here.
10763 * config.in, configure: Regenerated.
10764
10765 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10766
10767 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10768 frame accessor methods.
10769 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10770 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10771 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10772 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10773 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10774 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10775 * z8k-tdep.c: Ditto.
10776
10777 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10778
10779 * configure.in: Remove UI_OUT configuration code.
10780 * ada-lang.c: Update assuming UI_OUT is always true.
10781 * Makefile.in (UIOUT_CFLAGS): Remove.
10782 * configure: Regenerated.
10783 * TODO: Remove blurb about elimination of -DUI_OUT.
10784
10785 * configure.in: Move code that provides the --enable-gdbcli,
10786 --enable-gdbmi options right before the code that handles the
10787 --enable-tui option. Polish a bit.
10788 * configure: Regenerated.
10789
10790 * configure.in: Rewrite check for GNU regex and the
10791 --without-included regex option, and move it into the "Checks for
10792 library functions" section. This makes us use the system regex
10793 again by default on systems with version 2 of the GNU C library.
10794 This was apparently broken.
10795 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10796 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10797 * config.in, configure: Regenerated.
10798
10799 * configure.in: Move code that provides the --enable-tui option
10800 before the "Checks for libraries" section. Polish the code
10801 somewhat and set need_curses to yes if we build the TUI. Rewrite
10802 code that looks for a library providing termcap functionality to
10803 match more closely what's done in the Readline library, and move
10804 it into to the "Checks for libraries" section.
10805 * configure: Regenerated.
10806 * Makefile.in (TERMCAP): Remove variable.
10807 * config/i386/go32.mh (TERMCAP): Remove variable.
10808
10809 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10810
10811 * MAINTAINERS: Mention gdb_mbuild.sh.
10812 * gdb_mbuild.sh: Rewrite.
10813
10814 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10815
10816 * configure.in: Fix typo in last change.
10817 * config.in, configure: Regenerated.
10818
10819 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10820
10821 * valarith.c (value_binop): Delete obsolete code and comments.
10822 * configure.host: Ditto.
10823 * buildsym.h (make_blockvector): Ditto.
10824 * buildsym.c (make_blockvector): Ditto.
10825 * defs.h (enum language): Ditto.
10826 (chill_demangle): Ditto.
10827 * elfread.c (elf_symtab_read): Ditto.
10828 * dwarfread.c (CHILL_PRODUCER): Ditto.
10829 (set_cu_language): Ditto.
10830 (handle_producer): Ditto.
10831 * expprint.c (print_subexp): Ditto.
10832 * gdbtypes.c (chill_varying_type): Ditto.
10833 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10834 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10835 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10836 (chill_varying_type): Ditto.
10837 * language.h (_LANG_chill): Ditto.
10838 * language.c (binop_result_type, integral_type): Ditto.
10839 (character_type, string_type, structured_type): Ditto.
10840 (lang_bool_type, binop_type_check): Ditto.
10841 * stabsread.h (os9k_stabs): Ditto.
10842 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10843 (define_symbol, read_type, read_struct_fields): Ditto.
10844 (read_array_type, read_enum_type, read_huge_number): Ditto.
10845 (read_range_type, start_stabs): Ditto.
10846 * symfile.c (init_filename_language_table): Ditto.
10847 (add_psymbol_with_dem_name_to_list): Ditto.
10848 * symtab.c (symbol_init_language_specific): Ditto.
10849 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10850 * symtab.h (struct general_symbol_info): Ditto.
10851 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10852 * typeprint.c (typedef_print): Ditto.
10853 * utils.c (fprintf_symbol_filtered): Ditto.
10854 * valops.c (value_cast, search_struct_field, value_slice): Delete
10855 obsolete code.
10856 (varying_to_slice): Delete function.
10857 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10858 (varying_to_slice): Delete declaration.
10859 * MAINTAINERS: Update.
10860
10861 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10862
10863 * configure.in: Reorganize "Checks for library functions section"
10864 a bit. Remove check for `btowc' and `isascii' functions.
10865 * configure: Regenerated.
10866
10867 * acconfig.h (_MSE_INT_H): Remove.
10868 * configure.in: Create "Checks for header files" section, and move
10869 appropriate tests there. Don't check for objlist.h, wchar.h,
10870 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10871 misdetection fix. Also add "Checks for types", "Checks for
10872 compiler characteristics" and "Checks for library functions"
10873 sections.
10874 * config.in, configure: Regenerated.
10875
10876 * configure.in: Create "Checks for programs" section, and move
10877 appropriate tests there.
10878
10879 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10880
10881 * configure.in: Create "Checks for libraries" section, and move
10882 appropriate tests there. Cleanup check for wctype in libw. Use
10883 AC_SEARCH_LIBS to see whether we need libsocket.
10884 * configure: Regenerated.
10885
10886 For older changes see ChangeLog-2002
10887 \f
10888 Local Variables:
10889 mode: change-log
10890 left-margin: 8
10891 fill-column: 74
10892 version-control: never
10893 End:
This page took 0.284463 seconds and 5 git commands to generate.