2003-08-23 Andreas Jaeger <aj@suse.de>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c7716133
AJ
12003-08-23 Andreas Jaeger <aj@suse.de>
2
3 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4 i387_supply_fxsave.
5
ed504bdf
MK
62003-08-23 Mark Kettenis <kettenis@gnu.org>
7
8 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
9 i387_supply_register.
10 (go32_fetch_registers): Adjust call to i387_supply_fsave.
11 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
12 i387_supply_fsave.
13 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
14 i387_supply_fxsave.
15 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
16 i387_supply_fsave.
17 * i386bsd-nat.c (supply_fpregset): Adjust call to
18 i387_supply_fsave.
19 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
20 call to i387_supply_fxsave. Call i387_supply_fsave instead of
21 supply_fpregset.
22 (store_inferior_registers): Remove extraneous whitespace. Call
23 i387_fill_fsave instead of fill_fpregset.
24 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
25 (supply_fpregset): Likewise.
26 * i386v4-nat.c (supply_fpregset): Adjust call to
27 i387_supply_fsave.
28 * i386-interix-nat.c (supply_fpregset): Adjust call to
29 i387_supply_fsave.
30 * i386-linux-nat.c (supply_fpregset): Adjust call to
31 i387_supply_fsave.
32 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
33 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
34 i387supply_fsave and i387_supply_fxsave.
35 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
36 Incorporate code from `i387_supply_register.
37 (i387_supply_register): Remove.
38 (i387_supply_fxsave): Add `regnum' argument.
39 Update comments.
40 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
41 prototype.
42 (i387_supply_register): remove prototype.
43 Update comments.
44
4be5d520
MC
452003-08-22 Michael Chastain <mec@shout.net>
46
47 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
48 Add lines for files in gdb/testsuite/gdb.cp/* that are
49 still not 8.3 unique.
50
7ed85d26
DJ
512003-08-22 Daniel Jacobowitz <drow@mvista.com>
52
53 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
54 TYPE_VPTR_FIELDNO is valid.
55
eb0d3137
MK
562003-08-19 Mark Kettenis <kettenis@gnu.org>
57
58 * utils.c (set_width_command): Remove prototypes.
59 (set_screen_size): New prototype.
60 (init_page_info): Simplify by fetching the screen size from
61 Readline. Call set_screen_size.
62 (set_screen_size): New function.
63 (set_width): Add missing whitespace in comment.
64 (set_width_command): Call set_screen_size.
65 (set_height_command): New function.
66 (initialize_utils): Fix formatting. Make "set height" command
67 call set_height_command. Remove redundant code that turns off
68 pagination if output isn't a terminal. Remove redundant call to
69 set_width_command.
70
7e6d0ac8
MK
712003-08-22 Mark Kettenis <kettenis@gnu.org>
72
3567a8ea
MK
73 * sparc64-tdep.h (sparc64_regnum): Fix comment.
74 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
75 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
76 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
77 `case' keyword.
78 (sparc64_register_info): Give the reister with number
79 SPARC64_STATE_REGNUM a name.
80 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
81 %asi and %ccr.
82 (sparc64_push_dummy_call): Take BIAS into account when checking
83 stcak alignment.
84 (sparc_software_single_step): Remove assertions that check whether
85 NPC and NNPC were zero.
86 (sparc_supply_rwindow): Make public. Merge functionality with
87 sparc64_supply_rwindow.
88 (sparc_fill_rwindow): Make public. Merge functionality with
89 sparc64_fill_rwindow.
90 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
91 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
92 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
93 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
94 sparc_supply_rwindow instead of sparc64_supply_rwindow.
95
7e6d0ac8
MK
96 * reggroups.c: Add whitespace after declarations of local
97 variables in functions.
98
72e5f484
MC
992003-08-21 Michael Chastain <mec@shout.net>
100
101 * gdbtypes.h: Change array bound type from an int to enum.
102
435ac228
AC
1032003-08-21 Andrew Cagney <cagney@redhat.com>
104
105 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
106 * config/sparc/tm-sparc.h: Ditto.
107 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
108 unconditionally.
109 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
110
0d0e1a63
MK
1112003-07-13 Mark Kettenis <kettenis@gnu.org>
112
113 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
114 (register_objfile_data, set_objfile_data, objfile_data): New
115 prototypes.
116 * objfiles.c (objfile_alloc_data, objfile_free_data): New
117 prototypes.
118 (allocate_objfile): Call objfile_alloc_data.
119 (free_objfile): Call objfile_free_data.
120 (struct objfile_data): New.
121 (struct objfile_data_registration): New.
122 (struct objfile_data_registry): New.
123 (objfile_data_registry): New variable.
124 (register_objfile_data): New function.
125 (objfile_alloc_data, objfile_free_data): New functions.
126 (set_objfile_data, objfile_data): New functions.
127 * dwarf2-frame.c (dwarf2_frame_data): New variable.
128 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
129 (_initialize_dwarf2_frame): New function and prototype.
130
d90cf509
AC
1312003-08-21 Andrew Cagney <cagney@redhat.com>
132
133 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
134 a specific architecture.
135 * arch-utils.h (set_architecture_from_arch_mach): Delete
136 declaration.
137 (target_architecture_hook): Delete declaration.
138 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
139 (default_float_format): Assume GDB_MULTI_ARCH.
140 (default_double_format): Assume GDB_MULTI_ARCH.
141 (set_endian_from_file): Delete function.
142 (arch_ok): Delete function.
143 (set_arch): Delete function.
144 (set_architecture_from_arch_mach): Delete function.
145 (set_architecture_from_file): Delete function.
146 (set_architecture): Assume GDB_MULTI_ARCH.
147 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
148
8b39fe56
MK
1492003-08-21 Mark Kettenis <kettenis@gnu.org>
150
151 Rewrite FreeBSD/sparc64 native configuration.
152 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
153 * sparc64fbsd-nat.c: New file.
154 * sparc64fbsd-tdep.c: New file.
155 * sparc64-tdep.c sparc64-tdep.h: New files.
156 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
157 sparc64fbsd-tdep.o): New dependencies.
158 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
159 and sparc64fbsd-tdep.c.
160 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
161 * config/sparc/fbsd.mh: Remove copyright notice.
162 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
163 sparcbsd-nat.o.
164 * config/sparc/fbsd.mt: Remove copyright notice.
165 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
166 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
167 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
168 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
169 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
170 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
171 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
172 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
173 "sparc/tm-sp64.h".
174 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
175 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
176
a7f19c79
MC
1772003-08-21 Michael Chastain <mec@shout.net>
178
179 * symtab.h: Add doco on the space critical structures and
180 some measurements of space usage.
181
da08ea5b
MS
1822003-08-21 Michael Snyder <msnyder@redhat.com>
183
184 * tracepoint.c (trace_dump_command): Trace break address
185 is subject to DECR_PC_AFTER_BREAK.
186 (set_traceframe_context): Make "trace_line" an int.
187 Fixes suggested by Mark Newman <mark.newman@lmco.com>
188
6df2bf50
MS
1892003-08-20 Michael Snyder <msnyder@redhat.com>
190
191 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
192 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
193 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
194 argument passing.
195 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
196 functions, replace sh_push_dummy_call.
197 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
198
0955bbf0
MC
1992003-08-20 Michael Chastain <mec@shout.net>
200
201 * gdbtypes.h (struct main_type): Rearrange to save space.
202
260a4188
MS
2032003-08-20 Michael Snyder <msnyder@redhat.com>
204
205 * trad-frame.c: Comment typo fix.
206
8baa6f92
KB
2072003-08-20 Michael Snyder <msnyder@redhat.com>
208 Kevin Buettner <kevinb@redhat.com>
209
210 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
211 (frv_frame_init_saved_regs): Add declaration.
212 (frame_extra_info): Add new field ``saved_regs''.
213 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
214 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
215 Update frame related code.
216 (frv_extract_struct_value_address): Adjust formatting.
217 * Makefile.in (frv-tdep.o): Update dependencies.
218 * config/frv/tm-frv.h (target_insert_watchpoint)
219 (target_remove_watchpoint, target_insert_hw_breakpoint)
220 (target_remove_hw_breakpoint): Delete these macros.
221 (remote_insert_watchpoint, remote_remove_watchpoint)
222 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
223 these declarations.
224
87193939
MC
2252003-08-20 Michael Chastain <mec@shout.net>
226
227 * defs.h (ENUM_BITFIELD): New macro.
228 * symtab.h (ENUM_BITFIELD): Use it.
229 (BYTE_BITFIELD): Remove old macro, which was already disabled.
230
062103ba
SA
2312003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
232
233 * MAINTAINERS (write after approval): Add myself.
234
8b148df9
AC
2352003-08-18 Andrew Cagney <cagney@redhat.com>
236
237 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
238 * gdbarch.h, gdbarch.c: Re-generate.
239 * infcall.c (call_function_by_hand): Adjust the SP by
240 frame_red_zone_size before allocating any stack space.
241 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
242 * x86-64-tdep.c (x86_64_frame_align): New function.
243 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
244
245 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
246 Remove code adjusting SP so that it skips over the Red Zone.
247
954a4db8
MK
2482003-08-18 Mark Kettenis <kettenis@gnu.org>
249
250 * NEWS (New native configurations): Mention FreeBSD/amd64.
251
1a241548
AC
2522003-08-18 Andrew Cagney <cagney@redhat.com>
253
254 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
255 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
256 "m68k_frame_p".
257 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
258
f82b2acd
MK
2592003-08-18 Mark Kettenis <kettenis@gnu.org>
260
261 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
262
4056d258
ML
2632003-08-18 Michal Ludvig <mludvig@suse.cz>
264
265 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
266 Define.
267 * i386-linux-nat.c: Include "linux-nat.h".
268 (child_post_startup_inferior): New function.
269
99ab4326
MK
2702003-08-18 Mark Kettenis <kettenis@gnu.org>
271
272 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
273 at the start of a frameless function. This probably fixes PR
274 backtrace/1338.
275
c8d5f0d6
MC
2762003-08-17 Michael Chastain <mec@shout.net>
277
278 * symfile.c (find_sym_fns): Remove special case for apollo target.
279
9016a515
DJ
2802003-08-17 Daniel Jacobowitz <drow@mvista.com>
281
282 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
283 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
284 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
285 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
286 (linux_supports_tracevforkdone): New function.
287 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
288 TRACEVFORKDONE.
289 (child_follow_fork): Handle vfork.
290 (linux_handle_extended_wait): Likewise. Also handle exec.
291 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
292 * NEWS: Mention fork tracing.
293
c538c11c
DJ
2942003-08-17 Daniel Jacobowitz <drow@mvista.com>
295
296 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
297
4de4c07c
DJ
2982003-08-17 Daniel Jacobowitz <drow@mvista.com>
299
300 * Makefile.in (i386-linux-nat.o): Update dependencies.
301 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
302 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
303 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
304 * i386-linux-nat.c: Include "linux-nat.h".
305 (child_post_startup_inferior): New function.
306 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
307 * infptrace.c (kill_inferior): Wrap in #ifdef.
308 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
309 attaching to each LWP.
310 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
311 (init_lin_lwp_ops): Fill in some more operations.
312 * linux-nat.h (linux_enable_event_reporting)
313 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
314 prototypes.
315 * linux-nat.c (linux_enable_event_reporting): New function.
316 (child_post_attach, linux_child_post_startup_inferior)
317 (child_post_startup_inferior, child_follow_fork)
318 (linux_handle_extended_wait, kill_inferior): New functions.
319
7996bcec
AC
3202003-08-16 Andrew Cagney <cagney@redhat.com>
321
322 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
323 * gdbarch.h, gdbarch.c: Re-generate.
324
3d48a7a0
MK
3252003-08-16 Mark Kettenis <kettenis@gnu.org>
326
327 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
328
7989c619
AC
3292003-08-16 Andrew Cagney <cagney@redhat.com>
330
331 * NEWS: Mention that "set prompt-escape-char" was deleted.
332 * top.c (get_prompt_1): Delete function.
333 (gdb_prompt_escape):
334 (init_main): Do not clear "gdb_prompt_escape". Delete "set
335 prompt-escape-char" command.
336 (MAX_PROMPT_SIZE): Delete macro.
337 (get_prompt): Simplify, do not call get_prompt_1.
338
07978cd8
AC
3392003-08-16 Andrew Cagney <cagney@redhat.com>
340
341 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
342 -Werror. -Wformat-nonliteral problems.
343
3ff7cf9e
JB
3442003-08-15 J. Brobecker <brobecker@gnat.com>
345
346 Further multiarching work mostly for hppa64-*-hpux11:
347 * hppa-tdep.h: New file.
348 * hppa-tdep.c: #include hppa-tdep.c.
349 (hppa32_num_regs): Renamed from hppa_num_regs.
350 (hppa64_num_regs): New constant.
351 (hppa64_call_dummy_breakpoint_offset): New constant.
352 (hppa32_call_dummy_length): New constant.
353 (hppa64_call_dummy_length): New constant.
354 (hppa32_stack_align): Make name 32bit explicit.
355 (hppa32_register_virtual_type): Likewise.
356 (hppa32_extract_return_value): Likewise.
357 (hppa32_use_struct_convention): Likewise.
358 (hppa32_store_return_value): Likewise.
359 (hppa64_register_virtual_type): New function.
360 (hppa64_extract_return_value): New function.
361 (hppa64_use_struct_convention): New function.
362 (hppa64_store_return_value): New function.
363 (hppa_frame_locals_address): Remove declaration, function does
364 not exist anymore.
365 (hppa_register_byte): Add support for PA64 ABI.
366 (hppa_gdbarch_init): Add support for PA64 ABI.
367 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
368 Make name 32bit explicit.
369 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
370 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
371 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
372 (hppa64_hpux_frame_base_before_sigtramp): New function.
373 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
374 * config/pa/tm-hppa64.h: Remove macros that are no longer
375 necessary now that the gdbarch vector is properly setup.
376 Transform some macros into function calls. Some minor cleanup.
377 * config/pa/tm-hppah.h: Update function calls in macros
378 following the function renaming in hppa-hpux-tdep.c.
379 * Makefile.in (hppa_tdep_h): New variable.
380 (hppa-tdep.o): Add dependency over hppa_tdep_h.
381
5d05ca6d
MS
3822003-08-14 Michael Snyder <msnyder@redhat.com>
383
384 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
385
37ba2569
JB
3862003-08-13 J. Brobecker <brobecker@gnat.com>
387
388 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
389 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
390 routine.
391
aed7f26a
MS
3922003-08-13 Michael Snyder <msnyder@redhat.com>
393
394 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
395 (frv_saved_pc_after_call): Use deprecated ftype.
396 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
397 (frv_remote_translate_xfer_address): Remove.
398 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
399
752d4ac1
JB
4002003-08-13 J. Brobecker <brobecker@gnat.com>
401
402 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
403 initialization after the common gdbarch initialization, not before.
404
1426ac1d
JB
4052003-08-13 J. Brobecker <brobecker@gnat.com>
406
407 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
408 (ADDR_BITS_REMOVE): Remove, redundant.
409
b6fbdd1d
JB
4102003-08-13 J. Brobecker <brobecker@gnat.com>
411
412 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
413 gdbarch method to clear the 2 low bits of text addresses.
414
44160db3
AC
4152003-08-12 Andrew Cagney <cagney@redhat.com>
416
417 * Makefile.in (dsrec.o): Update dependencies.
418 * dsrec.c: Include "gdb_assert.h".
419 (make_srec): Use snprintf instead of sprintf, use a literal format
420 string.
421
bcf7d3ca
AC
4222003-08-12 Andrew Cagney <cagney@redhat.com>
423
424 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
425 FRAME_OBSTACK_ZALLOC.
426
49ed40de
KB
4272003-08-12 Kevin Buettner <kevinb@redhat.com>
428
429 * i386-tdep.c (i386_gdbarch_init): Enable default support for
430 SSE registers.
431
b246147c
MK
4322003-08-10 Mark Kettenis <kettenis@gnu.org>
433
434 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
435 amd64fbsd_sc_reg_offset): Add extern declarations.
436 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
437 declarations.
438
d95fdc0d
BE
4392003-08-11 Ben Elliston <bje@wasabisystems.com>
440
441 * MAINTAINERS (write after approval): Update my mail address.
442
cf6a0e73
AC
4432003-08-10 Andrew Cagney <cagney@redhat.com>
444
445 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
446
f837910f
MK
4472003-08-10 Mark Kettenis <kettenis@gnu.org>
448
e2dbbd2d
MK
449 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
450 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
451 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
452 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
453 i386bsd_sc_reg_offset): Add extern declarations.
454 * i386obsd-nat.c: Include "i386-tdep.h"
455 (_initialize_i386obsd_nat): Remove extern declarations.
456 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
457 declarations.
458 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
459 declarations.
460
f837910f
MK
461 * i386-tdep.c (i386_register_to_value): Use get_frame_register
462 instead of frame_read_register.
463 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
464 instead of frame_read_register. Use I386_ESP_REGNUM instead of
465 SP_REGNUM.
466 (i386_frame_prev_register): Use frame_unwind_register_unsigned
467 instead of frame_unwind_unsigned_register. Use
468 I386_EFLAGS_REGISTER instead of PS_REGNUM.
469 (i386_get_longjmp_target): Use regcache_read_unsigned_register
470 instead of read_register. Use builtin_type_void_data_ptr instead
471 of builtin_type_void_func_ptr when extracting the address of the
472 jmp_buf.
473 (i386_extract_return_value, i386_store_return_value,
474 i386_pseudo_register_read, i386_pseudo_register_write): Use
475 register_size instead REGISTER_RAW_SIZE.
476
edcf254d
AC
4772003-08-10 Andrew Cagney <cagney@redhat.com>
478
479 * infcall.c (call_function_by_hand): Use xstrprintf instead of
480 sprintf. Make "name" constant.
481
26604a34
MK
4822003-08-10 Mark Kettenis <kettenis@gnu.org>
483
192285c6
MK
484 * i387-tdep.c (i387_register_to_value): Use get_frame_register
485 instead of frame_read_register.
f837910f
MK
486 (i387_print_float_info): Use get_frame_register and
487 get_frame_register_unsigned instead of frame_register_read.
192285c6 488
f0925262
MK
489 * i386fbsd-nat.c: Include "i386-tdep.h".
490 (child_resume): Make `eflags' an ULONGEST. Use
491 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
492 instead of register_read and register_write.
493
a144416f
MK
494 * i386bsd-nat.c (fetch_inferior_registers,
495 store_inferior_registers): Don't use && at the end of a line.
496 (_initialize_i386bsd_nat): Fix typo.
497
fec74868
MK
498 * frame.c (_initialize_frame): Add missing backslash.
499
87232496
MK
500 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
501 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
502 and supply_register instead of manipulating the register buffer
503 directly.
504
c9b9de0b
MK
505 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
506 * config/i386/nm-i386sol2.h
507 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
508
26604a34
MK
509 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
510 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
511 instructions that GCC likes to mingle into the prologue. Fixes
512 gdb/1253 and gdb/1255.
513
25d29d70
AC
5142003-08-09 Andrew Cagney <cagney@redhat.com>
515
516 Fix GDB PR cli/926.
517 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
518 * command.h (add_setshow_uinteger_cmd): Declare.
519 * frame.c (set_backtrace_cmd): New function.
520 (show_backtrace_cmd): New function.
521 * frame.c (_initialize_frame): Replace "set/show
522 backtrace-below-main" with "set/show backtrace past-main". Add
523 command "set/show backtrace limit".
524 (backtrace_past_main): Rename "backtrace_below_main".
525 (backtrace_limit): New variable.
526 (get_prev_frame): Update. Check the backtrace_limit.
527
9ebf4acf
AC
5282003-08-09 Andrew Cagney <cagney@redhat.com>
529
530 * defs.h (xstrprintf): Declare.
531 * utils.c (xstrprintf): New function.
532 * breakpoint.c (insert_breakpoints): Replace sprintf and
533 non-literal format strings, with xstrprintf and cleanups.
534 (delete_breakpoint,breakpoint_re_set): Ditto.
535 (commands_command, insert_breakpoints): Ditto.
536 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
537 (break_at_finish_command_1): Ditto.
538
3771659b
AC
5392003-08-09 Andrew Cagney <cagney@redhat.com>
540
541 * MAINTAINERS (language support): List Adam Fedor as Objective C
542 maintainer.
543
b4263afa
JB
5442003-08-08 J. Brobecker <brobecker@gnat.com>
545
546 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
547 are now multiarched.
548
d84defb1
JB
5492003-08-08 J. Brobecker <brobecker@gnat.com>
550
551 * config/pa/tm-hppa64.h: Remove lots of macros that are no
552 longer necessary now that hppa64 is partially multiarch'ed.
553
f786f615
AC
5542003-08-08 Andrew Cagney <cagney@redhat.com>
555
556 * interps.c (interp_set): Check for a NULL "old_interp".
557
c938e9b0
L
5582003-08-08 H.J. Lu <hongjiu.lu@intel.com>
559
560 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
561 (install-only): Support DESTDIR.
562 (uninstall): Likewise.
563 (install-gdbtk): Likewise.
564
9a146a11
EZ
5652003-08-08 Elena Zannoni <ezannoni@redhat.com>
566
567 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
568 contains something meaningful at all times.
569
570Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 571
62599e99 572 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 573
56296155
BC
574Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
575
62599e99 576 * MAINTAINERS (write after approval): Added self.
56296155 577
9710e734
AC
5782003-08-07 Andrew Cagney <cagney@redhat.com>
579
580 * inferior.h (AT_SYMBOL): Define.
581 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
582 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
583 * mips-tdep.c (mips_call_dummy_address): Delete function.
584 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
585 set call_dummy_address.
586
98b3ab73
AC
5872003-08-07 Andrew Cagney <cagney@redhat.com>
588
589 * language.c (op_error): Delete function.
590 (binop_type_check): Delete function.
591 * language.h (type_op_error, range_op_error): Delete macros.
592 (op_error): Delete declaration.
593
2fcf52f0
AC
5942003-08-07 Andrew Cagney <cagney@redhat.com>
595
596 * interps.h (INTERP_MI2, INTERP_MI3): Define.
597
abd4220e 5982003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 599
abd4220e 600 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 601 (x86_64_push_arguments): Skip the red zone.
abd4220e 602
9dd5f34f
AC
6032003-08-05 Andrew Cagney <cagney@redhat.com>
604
605 * reggroups.c (reggroup_next): Check for the final entry.
606
e5e78edc
AC
6072003-08-04 Andrew Cagney <cagney@redhat.com>
608
ab4e3d93
AC
609 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
610 * cli/cli-script.c (define_command): Call query directly, instead
611 of passing it a buffer.
612 * ocd.c (ocd_error): Pass error a constant format string.
613 * remote-mips.c (mips_error): Use fputs_filtered.
614
1062ca82
AC
615 * solib-svr4.c (_initialize_svr4_solib): Update
616 register_gdbarch_data call.
617 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
618
fcc1c85c
AC
619 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
620 (register_gdbarch_data): Delete "free" parameter. Update
621 comments.
622 * gdbarch.h, gdbarch.c: Re-generate.
623 * reggroups.c (_initialize_reggroup): Update.
624 * gnu-v3-abi.c (init_gnuv3_ops): Update.
625 * frame-base.c (_initialize_frame_base): Update.
626 * frame-unwind.c (_initialize_frame_unwind): Update.
627 * user-regs.c (_initialize_user_regs): Update.
628 * remote.c (_initialize_remote): Update.
629 * regcache.c (_initialize_regcache): Update.
630
116f06ea
AC
631 * regcache.c (xfree_regcache_descr): Delete function.
632 (_initialize_regcache): Update call to register_gdbarch_data.
633 (init_regcache_descr, init_legacy_regcache_descr): Use
634 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
635
e5e78edc
AC
636 * remote.c (free_remote_state): Delete function.
637 (_initialize_remote): Update register_gdbarch_data.
638 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
639 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
640
6c7d17ba
AC
6412003-08-04 Andrew Cagney <cagney@redhat.com>
642
643 * reggroups.c (struct reggroup_el): Define.
644 (struct reggroups): Delete field "nr_group". Replace array
645 "group" with a "first" to "last" linked list.
646 (reggroups_init): Update. Allocate using gdbarch's obstack.
647 (reggroups_free): Delete function.
648 (add_group): Update. Add "el" parameter.
649 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
650 (default_groups): Update.
651 (reggroup_next): Replace reggroups.
652 (reggroups_dump): Update.
653 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
654 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
655 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
656
89b7795b
DJ
6572003-08-04 Daniel Jacobowitz <drow@mvista.com>
658
659 * Makefile.in (tui-interp.o): Update dependencies.
660
306d9ac5
DC
6612003-08-04 David Carlton <carlton@kealia.com>
662
663 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
664 to internal_error call.
665 * source.c (forward_search_command): Add "%s" format argument.
666 (reverse_search_command): Ditto.
667 * top.c (quit_confirm): Ditto.
668 * cli/cli-setshow.c (do_setshow_command): Ditto.
669 * cp-valprint.c (cp_print_class_method): Replace
670 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
671 (cp_print_class_member): Ditto.
672 * event-top.c (command_line_handler): Ditto.
673 * linux-proc.c (linux_info_proc_cmd): Ditto.
674 * p-typeprint.c (pascal_type_print_base): Ditto.
675 * p-valprint.c (pascal_object_print_class_method): Ditto.
676 (pascal_object_print_class_member): Ditto.
677 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
678 * remote.c (remote_cisco_section_offsets): Ditto.
679 * top.c (command_line_input): Ditto.
680 * utils.c (vwarning,error_stream,quit): Ditto.
681 * valprint.c (print_floating,print_binary_chars)
682 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
683
57bfe177
AC
6842003-08-04 Andrew Cagney <cagney@redhat.com>
685
686 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
687
e546b999
AC
6882003-08-02 Andrew Cagney <cagney@redhat.com>
689
690 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
691 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
692 amd64fbsd-nat.c.
693
91092ee5
AC
6942003-08-02 Andrew Cagney <cagney@redhat.com>
695
696 * Makefile.in: Update all dependencies and definitions.
697
889f28e2
AF
6982003-08-02 Adam Fedor <fedor@gnu.org>
699
700 * linespec.c (is_objc_method_format): New function
701 (decode_line_1, locate_first_half): Use it.
702 Fixes PR objc/1298
703
880bc914
AC
7042003-08-01 Andrew Cagney <cagney@redhat.com>
705
706 * NEWS: Mention that m32r is multi-arch.
707 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
708 * configure.tgt: Recognize m32r-*-*.
709 * config/m32r/tm-m32r.h: Delete file.
710 * config/m32r/m32r.mt: New file.
711 * m32r-rom.c (m32r_upload_command): Use hostent only when
712 gethostname succeeds, in order to avoid a compilation
713 warning.
714 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
715 compiler warning.
716
19f59343
MS
7172003-08-01 Michael Snyder <msnyder@redhat.com>
718
719 * sh-tdep.c (sh_frame_align): New gdbarch method.
720 (sh_gdbarch_init): Set up frame_align method.
721
4e7d7511
MS
7222003-07-31 Michael Snyder <msnyder@redhat.com>
723
724 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
725 which is already covered by the new frames infrastructure.
726
63022984
AC
7272003-07-31 Andrew Cagney <cagney@redhat.com>
728
729 * user-regs.c (struct user_reg): Add "next" link.
730 (struct user_regs): Replace "user" with "first" and "last" links.
731 (append_user_reg): Add pre-allocated "reg" parameter.
732 (builtin_user_regs): Provide initial value for "last".
733 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
734 (user_regs_init): Allocate memory from the gdbarch obstack.
735 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
736 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
737 linked list.
738 (usernum_to_user_reg): New function.
739 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
740 (value_of_user_reg): Use usernum_to_user_reg.
741 (user_regs_free): Delete function.
742 (_initialize_user_regs): Update register_gdbarch_data call.
743
7cf6e574
DJ
7442003-07-31 Daniel Jacobowitz <drow@mvista.com>
745
746 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
747
c48a845b
MS
7482003-07-30 Michael Snyder <msnyder@redhat.com>
749
4e7d7511 750 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
751 * infcall.c (call_function_by_hand): Pass struct_addr to
752 value_being_returned.
753 * infcmd.c (print_return_value): Pass zero as struct_addr.
754 * values.c (value_being_returned): If struct_addr is passed,
755 use it instead of trying to recover it from the inferior.
756
f0d8db19
KB
7572003-07-30 Kevin Buettner <kevinb@redhat.com>
758
759 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
760 the prologue analyzer won't need to attempt to extract the pc
761 value from the woefully incomplete dummy frame.
762 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
763 possible. Disable code which modifies the frame.
764
e5c113a1
AC
7652003-07-28 Andrew Cagney <cagney@redhat.com>
766
767 * annotate.c (annotate_breakpoints_headers): Restrict annotation
768 to level 2.
769 (annotate_breakpoints_table, annotate_record): Ditto.
770 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
771 (annotate_field_name_end, annotate_field_value): Ditto.
772 (annotate_field_end, annotate_frame_source_begin): Ditto.
773 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
774 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
775 (annotate_frame_begin, annotate_frame_function_name): Ditto.
776 (annotate_frame_address_end, annotate_frame_address): Ditto.
777 (annotate_frame_args, annotate_frame_end): Ditto.
778 (annotate_frame_where, annotate_arg_begin): Ditto.
779 (annotate_arg_name_end, annotate_arg_value): Ditto.
780 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
781 (annotate_function_call, annotate_signal_name): Ditto.
782 (annotate_signal_string, annotate_signal_name_end): Ditto.
783 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
784 (annotate_value_begin, annotate_value_history_value): Ditto.
785 (annotate_value_history_end, annotate_value_end): Ditto.
786 (annotate_display_begin, annotate_display_number_end): Ditto.
787 (annotate_display_format, annotate_display_expression): Ditto.
788 (annotate_display_expression_end, annotate_display_value): Ditto.
789 (annotate_display_end, annotate_array_section_begin): Ditto.
790 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
791 (annotate_elt, annotate_array_section_end): Ditto.
792
bb1db049
AC
7932003-07-28 Andrew Cagney <cagney@redhat.com>
794
795 * regcache.c (struct regcache_descr): Update comments on
796 nr_raw_registers.
797 (init_legacy_regcache_descr): Don't set nr_raw_registers or
798 sizeof_raw_register_valid_p.
799 (init_regcache_descr): Set nr_raw_registers and
800 sizeof_raw_register_valid_p before calling
801 init_legacy_regcache_descr.
802
20e6603c
AC
8032003-07-28 Andrew Cagney <cagney@redhat.com>
804
805 * mips-tdep.c (print_gp_register_row): Print the GPR's register
806 MOD NUM_REGS.
807
db742940
DJ
8082003-07-28 Daniel Jacobowitz <drow@mvista.com>
809
810 * thread.c (info_threads_command): Use get_selected_frame ().
811 Check that there is at least one non-sentinel frame.
812
ce7f4371
SC
8132003-07-27 Stephane Carrez <stcarrez@nerim.fr>
814
815 * m68hc11-tdep.c (struct frame_extra_info): Remove.
816 (m68hc11_pop_frame): Remove.
817 (m68hc11_frame_saved_pc): Remove.
818 (m68hc11_frame_chain): Remove.
819 (m68hc11_frame_init_saved_regs): Remove.
820 (m68hc11_init_extra_frame_info): Remove.
821 (m68hc11_store_struct_return): Remove.
822 (m68hc11_saved_pc_after_call): Remove.
823
1ea653ae
SC
8242003-07-27 Stephane Carrez <stcarrez@nerim.fr>
825
826 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
827 frame unwind information.
828 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
829 and adapted for frame unwinding.
830 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
831 (m68hc11_unwind_pc): New function.
832 (m68hc11_frame_unwind_cache): New function to analyze frames.
833 (m68hc11_frame_this_id): New function to create new frame struct.
834 (m68hc11_frame_prev_register): New function to unwind a register from
835 the frame.
836 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
837 (m68hc11_frame_p): New function for the above.
838 (m68hc11_frame_base_address): New function to return fp of frame.
839 (m68hc11_frame_args_address): Update for frame.
840 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
841 (m68hc11_unwind_sp): New function.
842 (m68hc11_unwind_dummy_id): New function.
843 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
844 calls.
845
c8a7f6ac
SC
8462003-07-27 Stephane Carrez <stcarrez@nerim.fr>
847
848 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
849 (m68hc11_guess_from_prologue): Advance the pc and frame size only
850 when we are beyond the current pc.
851
3dc990bf
SC
8522003-07-27 Stephane Carrez <stcarrez@nerim.fr>
853
854 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
855 from m68hc11_push_arguments.
856 (m68hc11_push_arguments): Remove.
857 (m68hc11_push_return_address): Remove.
858 (m68hc11_gdbarch_init): Install the above; remove above deprecated
859 handlers; remove deprecated_extra_stack_alignment_needed.
860
222e5d1d
AC
8612003-07-27 Andrew Cagney <cagney@redhat.com>
862
863 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
864 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
865 REAL_PC and not the pointer.
866 * hppa-hpux-tdep.c: Include frame.h
867
a7e9a47e
AC
8682003-07-27 Andrew Cagney <cagney@redhat.com>
869
870 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
871 GDB_MULTI_ACH_PARTIAL.
872
7e3dd49e
AC
8732003-07-27 Andrew Cagney <cagney@redhat.com>
874
875 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
876 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
877 operator at start and not end of line.
878 (decode_prologue): Ditto.
879 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
880 frame_unwind_register_unsigned instead of
881 frame_unwind_unsigned_register.
882 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
883 read_register.
884 (m32r_push_dummy_call): Use register_size instead of
885 REGISTER_RAW_SIZE.
886 (m32r_frame_sniffer): Replace m32r_frame_p.
887 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
888 * m32r-rom.c (report_transfer_performance): Delete extern
889 declaration.
890 (m32r_load, m32r_upload_command): Use print_transfer_performance
891 instead of report_transfer_performance.
892 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
893 / add_show_from_set.
894
0880807f
AC
8952003-07-26 Andrew Cagney <cagney@redhat.com>
896
897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
898 store_return_value and extract_struct_value_address.
899
64ae9269
DJ
9002003-07-26 Daniel Jacobowitz <drow@mvista.com>
901
902 PR c++/1267
903 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
904 NULL, default to the section containing PC.
905
e286caf2
SC
9062003-07-24 Stephane Carrez <stcarrez@nerim.fr>
907
908 * NEWS: Mention "regs" deprecated for m68hc11 too.
909
910 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
911 (m68hc11_print_register): New function to print out one register.
912 (m68hc11_print_registers_info): New function to print registers.
913 (show_regs): Deprecate and use the above.
914 (m68hc11_gdbarch_init): Install the print_registers_info.
915
705b278b
JJ
9162003-07-24 Jeff Johnston <jjohnstn@redhat.com>
917
918 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
919 that we have a SIGTRAP before returning non-zero.
920
63cd4198
EZ
9212003-07-23 Michal Ludvig <mludvig@suse.cz>
922 Elena Zannoni <ezannoni@redhat.com>
923
924 * linespec.c (decode_line_2): Avoid crash if
925 find_function_start_sal() returns empty record.
926
6926787d
AS
9272003-07-23 Andreas Schwab <schwab@suse.de>
928
929 * ia64-tdep.c (ia64_print_insn): New function.
930 (ia64_gdbarch_init): Set print_insn to it.
931 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
932 deprecated_tm_print_insn_info.
933
708cc1b6
MS
9342003-07-22 Michael Snyder <msnyder@redhat.com>
935
936 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
937 handle 8-bit returns (long long).
938 (h8300h_extract_return_value): Ditto.
939 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
940
aebd7893
AC
9412003-07-22 Andrew Cagney <cagney@redhat.com>
942
943 * gdbarch.c Include "gdb_obstack.h".
944 (struct gdbarch): Add an "obstack".
945 (alloc_gdbarch_data): Allocate the gdbarch data using
946 GDBARCH_OBSTACK_CALLOC.
947 (free_gdbarch_data): Delete function.
948 (gdbarch_obstack_zalloc): New function.
949 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
950 Assert that the architecture is not initialized.
951 (gdbarch_alloc): Allocate an obstack, allocate the architecture
952 vector from the obstack.
953 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
954 architecture obstack.
955 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
956 (set_gdbarch_data): Assert that the data is not initialized.
957 (struct gdbarch_data): Delete member "free".
958 (register_gdbarch_data): Do not initialize "free".
959 * gdbarch.h, gdbarch.c: Re-generate.
960
153721e6
AC
9612003-07-22 Andrew Cagney <cagney@redhat.com>
962
963 * configure.in (build_warnings): Add -Wformat-nonliteral.
964 * configure: Re-generate.
965
c193f044 9662003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
967
968 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 969
c3228f12
EZ
9702003-07-22 Elena Zannoni <ezannoni@redhat.com>
971
972 * findvar.c (read_var_value): Remove case for thread local storage
973 variables. It is now entirely handled by the dwarf2 location
974 expression code.
975 * printcmd.c (address_info): Ditto.
976 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
977 enumeration value.
978 (struct symbol): Remove objfile field, which was used by
979 LOC_THREAD_LOCAL_STATIC only.
980 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
981 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
982 usage of objfile pointer.
983 * dwarf2loc.c (locexpr_describe_location): Add case to handle
984 thread local variables.
985 Add include of objfiles.h.
986 * dwarf2expr.c (execute_stack_op): Add comments about thread local
987 storage variables.
988 * Makefile.in (dwarf2loc.o): Update dependencies.
989
aef9bcd2
AC
9902003-07-22 Andrew Cagney <cagney@redhat.com>
991
992 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
993 get_frame_base.
994 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
995 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
996 (struct value): Add opaque declaration.
997 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
998
d95a8903
AC
9992003-07-21 Andrew Cagney <cagney@redhat.com>
1000
1001 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1002 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1003
4db73d49
SC
10042003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1005
1006 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1007 regcache_cooked_read_unsigned instead of read_register.
1008 (m68hc11_saved_pc_after_call): Likewise.
1009 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1010 instead of write_register.
1011 (m68hc11_register_type): New function.
1012 (m68hc11_register_virtual_type): Remove.
1013 (m68hc11_store_return_value): Convert to use the regcache.
1014 (m68hc11_extract_struct_value_address): Likewise.
1015 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1016 m68hc11_register_type; undeprecate store_return_value and
1017 extract_struct_value_address.
1018
ef2b8fcd
SC
10192003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1020
1021 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1022 and translate to use regcache.
1023 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1024
625b0b97
AC
10252003-07-18 Andrew Cagney <cagney@redhat.com>
1026
1027 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1028 * gdbarch.h, gdbarch.c: Re-generate.
1029 * i386-tdep.c (i386_gdbarch_init): Do not set
1030 DWARF2_BUILD_FRAME_INFO.
1031 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1032 unconditionally.
1033 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1034 DWARF2_BUILD_FRAME_INFO.
1035
22b0d388
AC
10362003-07-18 Andrew Cagney <cagney@redhat.com>
1037
1038 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1039 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1040
1ce5d6dd
AC
10412003-07-18 Andrew Cagney <cagney@redhat.com>
1042
1043 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1044 frame_unwind_address_in_block, instead of frame_pc_unwind.
1045 (dwarf2_frame_cache): Ditto.
1046
e6e5e94c
AC
10472003-07-18 Andrew Cagney <cagney@redhat.com>
1048
1049 * user-regs.h (struct gdbarch): Declare opaque.
1050 * ui-out.h (struct ui_file): Declare opaque.
1051 * dwarf2-frame.h (struct frame_info): Declare opaque.
1052
5483d879
KW
10532003-07-18 Kris Warkentin <kewarken@qnx.com>
1054
1055 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1056 #include "...".
1057 (procfs_meminfo): Change strerror to safe_strerror.
1058 (procfs_can_run): Remove K&R badness.
1059
278a7cf7
MS
10602003-07-17 Michael Snyder <msnyder@redhat.com>
1061
1062 * remote-sim.c: Comment typo fix.
1063
606e3b82
AC
10642003-07-17 Andrew Cagney <cagney@redhat.com>
1065
1066 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1067 configure.
1068 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1069 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1070 GDB_MULTI_ARCH_PARTIAL.
1071
c43af07c
EZ
10722003-07-17 Elena Zannoni <ezannoni@redhat.com>
1073
1074 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1075 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1076 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1077
3b85b0f1
TR
10782003-07-16 Theodore A. Roth <troth@openavr.org>
1079
1080 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1081 found.
1082 (avr_frame_unwind_cache): Don't unwind FP for main.
1083 Update a comment.
1084 Save the computed prev_sp.
1085 (avr_saved_regs_unwinder): Remove function.
1086 (avr_frame_prev_register): Use PC unwind logic from
1087 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1088
336d1bba
AC
10892003-07-16 Andrew Cagney <cagney@redhat.com>
1090
1091 * frame-base.h (frame_base_p_ftype): Delete definition.
1092 (frame_base_append_predicate): Delete declaration.
1093 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1094 (frame_unwind_append_predicate): Delete declaration.
1095 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1096 (append_predicate): Delete parameter "p".
1097 (frame_unwind_append_predicate): Delete function.
1098 (frame_unwind_append_sniffer): Update call to append_predicate.
1099 (frame_unwind_free): Delete function.
1100 (_initialize_frame_unwind): Pass NULL as "free" to
1101 register_gdbarch_data.
1102 (frame_unwind_init): Append the dummy_frame_sniffer.
1103 (frame_unwind_find_by_frame): Simplify.
1104 * frame-base.c (struct frame_base_table): Delete field "p".
1105 (append_predicate): Delete parameter "p".
1106 (frame_base_append_predicate): Delete function.
1107 (frame_base_append_sniffer): Update call to append_predicate.
1108 (frame_base_free): Delete function.
1109 (frame_base_find_by_frame): Simplify.
1110 (_initialize_frame_base): Pass NULL as "free" to
1111 register_gdbarch_data.
1112 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1113 (x86_64_sigtramp_frame_sniffer): Replace
1114 "x86_64_sigtramp_frame_p".
1115 (x86_64_init_abi): Set the frame unwind sniffers.
1116 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1117 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1118 (m68k_gdbarch_init): Set the frame unwind sniffers.
1119 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1120 "i386_sigtramp_frame_p".
1121 (i386_frame_sniffer): Replace "i386_frame_p".
1122 (i386_gdbarch_init): Set the frame unwind sniffers.
1123 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1124 (avr_gdbarch_init): Set the frame unwind sniffers.
1125 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1126 "alpha_sigtramp_frame_p"
1127 (alpha_heuristic_frame_sniffer): Replace
1128 "alpha_heuristic_frame_p".
1129 (alpha_gdbarch_init): Set the frame unwind sniffers.
1130 (alpha_dwarf2_init_abi): Ditto.
1131 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1132 "alpha_debug_frame_p".
1133 (alpha_mdebug_frame_base_sniffer): Replace
1134 "alpha_mdebug_frame_base_p".
1135 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1136 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1137 (d10v_gdbarch_init): Set the frame unwind sniffer.
1138 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1139 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1140 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1141 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1142 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1143 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1144
48db5a3c
CV
11452003-07-16 Michael Snyder <msnyder@redhat.com>
1146
1147 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1148 should go thru sh_dsp_register_sim_regno, else the dsp regs
1149 will not get the right values.
1150
11512003-07-16 Corinna Vinschen <vinschen@redhat.com>
1152
1153 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1154 deprecated_store_floating by call to store_typed_floating.
1155 (sh_sh4_register_convert_to_raw): Substitute call to
1156 deprecated_extract_floating by call to extract_typed_floating.
1157
11582003-07-16 Corinna Vinschen <vinschen@redhat.com>
1159
1160 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1161
11622003-07-16 Corinna Vinschen <vinschen@redhat.com>
1163
1164 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1165 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1166 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1167 as possible.
1168 (do_pseudo_register): Remove.
1169 (sh_push_dummy_code): New function.
1170 (sh64_store_struct_return): Rename from sh_store_struct_return.
1171 Only called for sh64 now.
1172 (sh_extract_struct_value_address): Regcache'ify.
1173 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1174 and accomodate new tasks.
1175 (sh64_push_return_address): Rename from sh_push_return_address.
1176 Only called for sh64 now.
1177 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1178 Regcache'ify.
1179 (sh3e_sh4_extract_return_value): Regcache'ify.
1180 (sh_default_store_return_value): Ditto.
1181 (sh3e_sh4_store_return_value): Ditto.
1182 (sh_default_register_byte): Remove.
1183 (sh_sh4_register_byte): Remove.
1184 (sh_default_register_raw_size): Remove.
1185 (sh_sh4_register_raw_size): Remove.
1186 (sh_register_virtual_size): Remove.
1187 (sh_sh3e_register_virtual_type): Remove.
1188 (sh_sh3e_register_type): New function.
1189 (sh_sh4_register_virtual_type): Remove.
1190 (sh_sh4_register_type): New function.
1191 (sh_default_register_virtual_type): Remove.
1192 (sh_default_register_type): New function.
1193 (do_fv_register_info): Add parameters to accomodate call from
1194 sh_print_registers_info.
1195 (do_dr_register_info): Ditto.
1196 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1197 Add parameters to accomodate call from sh_print_registers_info.
1198 (sh_do_fp_register): Ditto.
1199 (sh64_do_pseudo_register): Call do_dr_register_info,
1200 do_fv_register_info and sh_do_fp_register with default parameters.
1201 (sh_do_register): Add parameters to accomodate call from
1202 sh_print_registers_info.
1203 (sh_print_register): Ditto.
1204 (sh_print_registers_info): Rename from sh_do_registers_info.
1205 Add parameters to be used as gdbarch_print_registers_info
1206 implementation. Accomodate removed do_pseudo_register function
1207 pointer.
1208 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1209 function pointer. Call sh_print_register with default parameters.
1210 (sh64_do_registers_info): Call sh_print_registers_info instead of
1211 sh_do_registers_info.
1212 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1213 detection of deprecated vs. non-deprecated functionality.
1214 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1215 function pointer assignments by direct function calls.
1216
e8a89fe2
AC
12172003-07-15 Andrew Cagney <cagney@redhat.com>
1218
1219 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1220 (frame_register_unwind, create_new_frame): Ditto.
1221 (legacy_get_prev_frame, get_frame_type): Ditto.
1222 (get_frame_base_address): Use frame_base_find_by_frame.
1223 (get_frame_locals_address): Use frame_base_find_by_frame.
1224 (get_frame_args_address): Use frame_base_find_by_frame.
1225 * frame-base.h (frame_base_sniffer_ftype): Declare.
1226 (frame_base_append_sniffer): Declare.
1227 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1228 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1229 (frame_base_append_sniffer): New function.
1230 (frame_base_append_predicate): Add a NULL sniffer.
1231 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1232 (struct frame_base_table): Add "sniffer".
1233 (frame_base_free): Free the "sniffer" table.
1234 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1235 (frame_unwind_append_sniffer): Declare.
1236 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1237 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1238 (struct frame_unwind_table): Add "sniffer", delete "middle".
1239 (append_predicate): Add "sniffer" parameter, append the sniffer.
1240 (frame_unwind_init): Update append_predicate call.
1241 (frame_unwind_append_sniffer): New function.
1242 (frame_unwind_append_predicate): Update append_predicate call.
1243 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1244
0714963c
AC
12452003-07-15 Andrew Cagney <cagney@redhat.com>
1246
1247 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1248 before code inhibiting repeated unwind attempts. Add to
1249 commentary on that test's problems.
1250 * blockframe.c (inside_main_func): Look for "main" in the minimal
1251 symbol table.
1252 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1253 identical.
1254
d9170e22
AC
12552003-07-15 Andrew Cagney <cagney@redhat.com>
1256
1257 * complaints.c (struct explanation): Define.
1258 (struct complaints): Change type of "explanation" to "struct
1259 explanation".
1260 (symfile_explanations): Convert to a "struct explanation" table.
1261 (vcomplaint): Update.
1262
eba29c8c
ML
12632003-07-15 Michal Ludvig <mludvig@suse.cz>
1264
1265 * x86-64-linux-nat.c (regmap): Removed.
1266 (supply_gregset, fill_gregset): Call
1267 x86_64_linux_(fill,supply)_gregset functions.
1268 * x86-64-linux-tdep.c (USER_*): New defines.
1269 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1270 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1271 New functions.
1272 (fetch_core_registers): Ditto.
1273 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1274 * x86-64-linux-tdep.h: New file.
1275 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1276 and core-regset.o.
1277 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1278
68cc0bfb
MK
12792003-07-13 Mark Kettenis <kettenis@gnu.org>
1280
88a115f7
MK
1281 * x86-64-tdep.c (x86_64_store_return_value): Use
1282 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1283
68cc0bfb
MK
1284 * configure.host: Add x86_64-*-freebsd*.
1285 * configure.tgt: Add x86_64-*-freebsd*.
1286 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1287 * amd64fbsd-nat.c: New file.
1288 * amd64fbsd-tdep.c: New file.
1289 * config/i386/nm-fbsd64.h: New file.
1290 * config/i386/fbsd64.mh: New file.
1291 * config/i386/fbsd64.mt: New file.
1292
138e7be5
MK
12932003-07-11 Mark Kettenis <kettenis@gnu.org>
1294
1295 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1296 `sc_regs_offset' and `sc_fpregs_offset'.
1297 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1298 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1299 (alpha_sigtramp_register_address): Rewrite to use new members of
1300 `struct gdbarch_tdep'.
1301 (alpha_gdbarch_init): Initialize new members of struct
1302 gdbarch_tdep'.
1303 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1304 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1305 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1306 (alphafbsd_pc_in_sigtramp): Implement.
1307 (alphafbsd_sigtramp_offset): New function.
1308 (alphafbsd_sigcontext_addr): New function.
1309 (alphafbsd_init_abi): Initialize signal trampoline related members
1310 of `struct gdbarch_tdep'.
1311 (_initialize_alphafbsd_tdep): Add prototype.
1312
95303a68
TR
13132003-07-11 Theodore A. Roth <troth@openavr.org>
1314
ba292e4c
TR
1315 * Makefile.in (install-only): Quote sed expression when generating
1316 transformed_name.
95303a68 1317
6896c0c7
RH
13182003-07-11 Richard Henderson <rth@redhat.com>
1319
1320 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1321 * dwarf2-frame.c: Include complaints.h.
1322 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1323 variable initialization; return NULL on error.
1324 (decode_frame_entry): New.
1325
8edd5d01
AC
13262003-07-11 Andrew Cagney <cagney@redhat.com>
1327
c4a09524
AC
1328 * frame.h (frame_address_in_block): Delete declaration.
1329 * blockframe.c (frame_address_in_block): Delete function.
1330 (get_frame_block): Use get_frame_address_in_block.
1331 (block_innermost_frame): Ditto.
1332 * stack.c (print_frame, backtrace_command_1): Ditto.
1333
8edd5d01
AC
1334 * frame.h (get_frame_address_in_block): Declare.
1335 (frame_unwind_address_in_block): Declare.
1336 * frame.c (frame_unwind_address_in_block): New function.
1337 (get_frame_address_in_block): New function.
1338
f7968451
AC
13392003-07-10 Andrew Cagney <cagney@redhat.com>
1340
1341 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1342 pre-default. Note: re-generate has no effect.
1343
ae99b398
AC
13442003-07-10 Andrew Cagney <cagney@redhat.com>
1345
1346 * gdbarch.sh: When a variable, but not a function, compare against
1347 0. Fix problem in previous patch.
1348 * gdbarch.c: Re-generate.
1349
956ac328
AC
13502003-07-10 Andrew Cagney <cagney@redhat.com>
1351
1352 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1353 functions against NULL, not 0.
1354 * gdbarch.c: Re-generate.
1355
287c3240
FF
13562003-07-10 Fred Fish <fnf@ninemoons.com>
1357
1358 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1359 null string instead of a null pointer.
1360 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1361
32f63c4b
MS
13622003-07-09 Michael Snyder <msnyder@redhat.com>
1363
1364 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1365
402ecd56
MK
13662003-07-09 Mark Kettenis <kettenis@gnu.org>
1367
1368 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1369 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1370 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1371 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1372 * x86-64-tdep.c: ... from here.
1373
c481dac7
AS
13742003-07-09 Andreas Schwab <schwab@suse.de>
1375
1376 * m68k-tdep.h (enum struct_return): Define.
1377 (struct gdbarch_tdep): Add struct_return.
1378 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1379 bytes are padded to the right, not to the left. Pass struct value
1380 address in register %a1, not on stack.
1381 (m68k_use_struct_convention): New function.
1382 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1383 struct_return in tdep to pcc_struct_return.
1384 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1385 reg_struct_return.
1386
64176fa3
JB
13872003-07-09 Joel Brobecker <brobecker@gnat.com>
1388
1389 * somread.c (som_symfile_offsets): Fix compilation error.
1390
96a4ee76
AC
13912003-07-09 Andrew Cagney <cagney@redhat.com>
1392
1393 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1394 Add comments about the checks.
1395
1517c6d1
AC
13962003-07-08 Andrew Cagney <cagney@redhat.com>
1397
1398 * Makefile.in: Make dependency section headers consistent.
1399 (config_h): Move to $BUILD headers section.
1400 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1401 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1402 (ada-exp.tab.c): Move to YACC/LEX section.
1403 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1404 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1405
dc5dd1eb
KW
14062003-07-08 Kris Warkentin <kewarken@qnx.com>
1407
1408 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1409 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1410 of strerror with safe_strerror, use ISO C function definitions,
1411 and replace instances of sprintf with snprintf.
dc5dd1eb 1412
612dde91
AC
14132003-07-07 Andrew Cagney <cagney@redhat.com>
1414
1415 * frame.c (get_prev_frame): Enable check for identical frames.
1416 Update comments. Update error messages.
1417
492c11d3
JB
14182003-07-07 Joel Brobecker <brobecker@gnat.com>
1419
1420 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1421
376a5a49
JB
14222003-07-07 Joel Brobecker <brobecker@gnat.com>
1423
1424 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1425 sort_symtab_syms, no longer necessary.
1426
22b4a9ad
JB
14272003-07-07 Joel Brobecker <brobecker@gnat.com>
1428
1429 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1430
5bbcb741
JB
14312003-07-07 Joel Brobecker <brobecker@gnat.com>
1432
1433 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1434 (mips_register_byte): Likewise.
1435
c139e7d9
DJ
14362003-07-07 Daniel Jacobowitz <drow@mvista.com>
1437
1438 * Makefile.in (sparc_tdep_h): New.
1439 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1440 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1441 * sparc-linux-nat.c: Include "sparc-tdep.h".
1442 * sparc-nat.c: Likewise.
1443 * sparc-tdep.c: Likewise.
1444 * sparc64nbsd-nat.c: Likewise.
1445 * sparcnbsd-nat.c: Likewise.
1446 * sparcnbsd-tdep.c: Likewise.
1447 * sparc-tdep.h: New file.
1448 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1449 and sparc_npc_regnum.
1450
fd8f87c5
DJ
14512003-07-07 Daniel Jacobowitz <drow@mvista.com>
1452
1453 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1454 (mips_linux_cannot_store_register): List supported instead of
1455 unsupported registers.
1456
13adf674
DJ
14572003-07-07 Daniel Jacobowitz <drow@mvista.com>
1458
1459 * disasm.c (dump_insns): Separate instructions from addresses.
1460
8de307e0
AS
14612003-07-07 Andreas Schwab <schwab@suse.de>
1462
1463 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1464 dependencies.
1465 * m68k-tdep.c (NUM_FREGS): Delete.
1466 (SIG_PC_FP_OFFSET): Delete.
1467 (TARGET_M68K): Delete.
1468 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1469 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1470 P_MOVEL_SP, P_MOVEML_SP): Define.
1471 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1472 P_TRAP): Delete.
1473 (m68k_register_raw_size): Delete.
1474 (m68k_register_virtual_size): Delete.
1475 (m68k_register_type): Renamed from m68k_register_virtual_type and
1476 add gdbarch argument.
1477 (m68k_store_struct_return): Delete.
1478 (m68k_deprecated_extract_return_value): Delete.
1479 (m68k_deprecated_extract_struct_value_address): Delete.
1480 (m68k_frame_chain): Delete.
1481 (m68k_frame_saved_pc): Delete.
1482 (m68k_fix_call_dummy): Delete.
1483 (m68k_push_dummy_frame): Delete.
1484 (m68k_pop_frame): Delete.
1485 (m68k_extract_return_value): New function.
1486 (m68k_store_return_value): Rewrite using regcache.
1487 (m68k_extract_struct_value_address): Rewrite using regcache.
1488 (m68k_push_dummy_call): New function.
1489 (struct m68k_frame_cache): Define.
1490 (m68k_alloc_frame_cache): New function.
1491 (m68k_analyze_frame_setup): New function.
1492 (m68k_analyze_register_saves): New function.
1493 (m68k_analyze_prologue): New function.
1494 (m68k_skip_prologue): Rewrite using above functions.
1495 (m68k_unwind_pc): New function.
1496 (m68k_frame_cache): New function.
1497 (m68k_frame_this_id): New function.
1498 (m68k_frame_prev_register): New function.
1499 (m68k_frame_unwind): New variable.
1500 (m68k_frame_p): New function.
1501 (m68k_sigtramp_frame_cache): New function.
1502 (m68k_sigtramp_frame_this_id): New function.
1503 (m68k_sigtramp_frame_prev_register): New function.
1504 (m68k_sigtramp_frame_unwind): New variable.
1505 (m68k_sigtramp_frame_p): New function.
1506 (m68k_frame_base_address): New function.
1507 (m68k_frame_base): New function.
1508 (m68k_unwind_dummy_id): New function.
1509 (fill_gregset): Use regcache_collect.
1510 (fill_fpregset): Likewise.
1511 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1512 defined.
1513 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1514 deprecated_init_frame_pc, deprecated_store_struct_return,
1515 deprecated_extract_return_value, deprecated_store_return_value,
1516 deprecated_frame_chain, deprecated_frame_saved_pc,
1517 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1518 deprecated_register_virtual_size,
1519 deprecated_max_register_raw_size,
1520 deprecated_max_register_virtual_size,
1521 deprecated_register_virtual_type, deprecated_register_size,
1522 deprecated_register_byte, deprecated_register_bytes,
1523 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1524 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1525 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1526 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1527 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1528 deprecated_push_dummy_frame, deprecated_pop_frame,
1529 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1530 only if SYSCALL_TRAP is defined. Set extract_return_value,
1531 store_return_value, extract_struct_value_address, register_type,
1532 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1533 predicates.
1534 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1535 M68K_MAX_REGISTER_SIZE): Define.
1536 (struct m68k_sigtramp_info): Define.
1537 (struct gdbarch_tdep): Add get_sigtramp_info.
1538 * m68klinux-nat.c (fetch_register): Use register_size instead of
1539 REGISTER_RAW_SIZE. Don't put assignment in if.
1540 (store_register): Likewise.
1541 (fetch_inferior_registers): Likewise.
1542 (store_inferior_registers): Likewise.
1543 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1544 (m68k_linux_frame_saved_pc): Delete.
1545 (m68k_linux_sigcontext_reg_offset,
1546 m68k_linux_ucontext_reg_offset): Define.
1547 (m68k_linux_get_sigtramp_info): New function.
1548 (m68k_linux_extract_return_value): Rewrite using regcache.
1549 (m68k_linux_store_return_value): Likewise.
1550 (m68k_linux_extract_struct_value_address): Likewise.
1551 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1552 Don't set deprecated_frame_saved_pc,
1553 deprecated_extract_return_value, deprecated_store_return_value,
1554 deprecated_extract_struct_value_address. Set
1555 extract_return_value, store_return_value,
1556 extract_struct_value_address.
1557
eb8bc282
AC
15582003-07-07 Andrew Cagney <cagney@redhat.com>
1559
1560 * expprint.c: Include "user-regs.h" instead of "frame.h".
1561 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1562 frame_map_regnum_to_name.
1563 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1564 (frame_map_name_to_regnum): Simplify, call
1565 user_reg_map_name_to_regnum.
1566 (frame_map_regnum_to_name): Simplify, call
1567 user_reg_map_regnum_to_name.
1568 (frame_register_unwind): Update.
1569 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1570 (_initialize_frame_reg): Call user_reg_add_builtin.
1571 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1572 (value_of_register): Use value_of_user_reg.
1573 * eval.c (evaluate_subexp_standard): Update.
1574 * parse.c (write_dollar_variable): Update.
1575 * d10v-tdep.c (d10v_print_registers_info): Update.
1576 * infcmd.c (registers_info): Update.
1577 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1578 (builtin_regs_h): Delete macro.
1579 (user_regs_h): Define.
1580 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1581 (builtin-regs.o): Delete target.
1582 (user-regs.o): Specify dependencies.
1583 (expprint.o): Update dependencies.
1584 (findvar.o): Update dependencies.
1585 (frame.o): Update dependencies.
1586 (std-regs.o): Update dependencies.
1587
9f476a01
CF
15882003-07-06 Christopher Faylor <cgf@redhat.com>
1589
1590 * win32-nat.c (solib_symbols_add): Use one variable for all section
1591 address stuff. Pass variable rather than address of variable to
1592 safe_symbol_file_add.
1593
a731b831
AS
15942003-07-06 Andreas Schwab <schwab@suse.de>
1595
1596 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1597
9f83329d
JB
15982003-07-04 Joel Brobecker <brobecker@gnat.com>
1599
1600 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1601
27e28cc5
KW
16022003-07-04 Kris Warkentin <kewarken@qnx.com>
1603
1604 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1605
16062003-07-04 Kris Warkentin <kewarken@qnx.com>
1607
1608 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1609 * config/i386/nto.mh: New file.
1610 * config/i386/nm-nto.h: New file.
1611 * configure.host: Add i[3456]86-*-nto*.
1612
100f2e98
JB
16132003-07-03 Joel Brobecker <brobecker@gnat.com>
1614
1615 * remote-vx.c (vx_add_symbols): Fix compilation error.
1616
e23457df
AC
16172003-07-03 Andrew Cagney <cagney@redhat.com>
1618
1619 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1620 * gdbarch.h, gdbarch.c: Re-generate.
1621 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1622 (legacy_register_name): Declare.
1623 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1624 (REGISTER_NAME): Define.
1625 * sparc-tdep.c (legacy_register_name): New function.
1626 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1627 (REGISTER_NAME): Define.
1628 (hppa64_register_name): Declare.
1629 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1630 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1631 (hppa64_register_name): New function.
1632 (hppa_register_name): New function.
1633 * arch-utils.c (legacy_register_name): Delete.
1634 * arch-utils.h (legacy_register_name): Delete.
1635
38caaeec
DJ
16362003-07-03 Daniel Jacobowitz <drow@mvista.com>
1637
1638 * cli/cli-interp.c (cli_interpreter_resume): Update the
1639 cli_uiout's stream to gdb_stdout.
1640
dadd712e
AC
16412003-07-03 Andrew Cagney <cagney@redhat.com>
1642
1643 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1644 predicate.
1645 * gdbarch.h, gdbarch.c: Re-generate.
1646 * regcache.c (init_regcache_descr): Use legacy code when either
1647 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1648
c7f1390e
DJ
16492003-07-02 Daniel Jacobowitz <drow@mvista.com>
1650
1651 * NEWS: Move "set logging" entry into GDB 6.0 section.
1652
4bc8c588
JB
16532003-07-02 Jim Blandy <jimb@redhat.com>
1654
a9dd42f1
JB
1655 * s390-tdep.c (struct frame_extra_info): new member:
1656 'stack_bought_valid'.
1657 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1658 initialize fextra_info->stack_bought.
1659 (s390_frameless_function_invocation): Don't trust the value of
1660 fextra_info_ptr->stack_bought unless
1661 fextra_info->stack_bought_valid is set.
1662
4bc8c588
JB
1663 New S390 prologue analyzer.
1664 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1665 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1666 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1667 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1668 compute_x_addr, s390_on_stack, s390_store,
1669 s390_get_signal_frame_info): New functions.
1670 (S390_NUM_SPILL_SLOTS): New macro.
1671 (s390_get_frame_info): Rewritten.
1672 (is_arg_reg): Deleted.
1673
1674 Break out the decoding of S/390 instructions into separate
1675 functions, to make it more legible, and easier to check
1676 against the spec.
1677 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1678 is_rx, is_rxe): New functions.
1679 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1680 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1681 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1682 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1683 enums for opcode values. (Is this an improvement?)
1684
fd13a04a
AC
16852003-07-02 Andrew Cagney <cagney@redhat.com>
1686
1687 * i386-tdep.c: Revert change committed as part of trad-frame code
1688 below.
1689
3f8091c1
DJ
16902003-07-02 Daniel Jacobowitz <drow@mvista.com>
1691
1692 * breakpoint.c (insert_catchpoint): Make static.
1693
8dd5115e
AS
16942003-07-02 Andreas Schwab <schwab@suse.de>
1695
1696 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1697 former ia64_push_arguments and ia64_push_return_address, and use
1698 regcache functions instead of read/write_register.
1699 (ia64_gdbarch_init): Set push_dummy_call instead of
1700 deprecated_push_arguments and deprecated_push_return_address.
1701
a2229c23
AJ
17022003-07-01 Andreas Jaeger <aj@suse.de>
1703
1704 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1705 before the call.
1706 Set %rax only to number of SSE registers used.
1707
3b3850e8
AC
17082003-07-01 Andrew Cagney <cagney@redhat.com>
1709
1710 * trad-frame.h: Update comments, a -1 .addr is reserved.
1711 (trad_frame_value_p, trad_frame_addr_p): Declare.
1712 (trad_frame_reg_p): Declare.
1713 (trad_frame_set_value): Rename trad_frame_register_value.
1714 (trad_frame_set_unknown): Declare.
1715 * trad-frame.c (trad_frame_realreg_p): New function.
1716 (trad_frame_addr_p, trad_frame_value_p): New function.
1717 (trad_frame_set_unknown): New function.
1718 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1719 (trad_frame_prev_register): Use trad_frame_realreg_p,
1720 trad_frame_addr_p and trad_frame_value_p.
1721 (trad_frame_set_value): Rename trad_frame_register_value.
1722 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1723 and trad_frame_set_value.
a2229c23 1724
4d819d0e
JB
17252003-06-30 Jim Blandy <jimb@redhat.com>
1726
1727 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1728 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1729 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1730 for 16 registers, and then 32 more bytes.
1731 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1732 New macros.
1733 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1734 Move up in the file, since it's now used by is_simple_arg.
1735 (is_simple_arg): Don't assume registers are four bytes long.
1736 Exclude all double arguments. Extended floats are not simple
1737 args.
1738 (is_power_of_two): New function.
1739 (pass_by_copy_ref): Call is_power_of_two, and check that the
1740 length fits in a register, rather than listing all the acceptable
1741 sizes. Extended floats are not passed by reference.
1742 (s390_push_arguments): Don't assume registers are four bytes long.
1743 Reserve an argument register to point to the buffer for structures
1744 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1745 S390_STACK_FRAME_OVERHEAD.
1746
1ad828f1
AS
17472003-06-30 Andreas Schwab <schwab@suse.de>
1748
1749 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1750 format error message.
1751
39b00981
JB
17522003-06-30 Joel Brobecker <brobecker@gnat.com>
1753
1754 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1755
b2a7f303
DC
17562003-06-30 David Carlton <carlton@kealia.com>
1757
1758 Band-aid for PR c++/1245.
1759 * Makefile.in (cp-support.o): Depend on complaints_h.
1760 * cp-support.c: Include complaints.h. Add declaration for
1761 find_last_component.
1762 (cp_find_first_component): Separate code into
1763 cp_find_first_component_aux.
1764 (cp_find_first_component_aux): Call demangled_name_complaint.
1765 (demangled_name_complaint): New.
1766
a257b5bb
AC
17672003-06-30 Andrew Cagney <cagney@redhat.com>
1768
1769 * remote.c (remote_write_bytes): Explicitly compute and then use
1770 the payload size. Update comments to reflect. Fixes problem of
1771 GDB not sending small packets as found by Fred Fish.
1772
0a2cfde4
AC
17732003-06-30 Andrew Cagney <cagney@redhat.com>
1774
1775 * remote.c (remote_async_wait): Fix -Wformat problem.
1776
3fcb8548
AC
17772003-06-29 Andrew Cagney <cagney@redhat.com>
1778
1779 * remote.c (remote_wait): Call error, and not warning, when the
1780 packet is corrupt.
1781 (remote_async_wait): Ditto.
1782
9f9970a3
DJ
17832003-06-29 Daniel Jacobowitz <drow@mvista.com>
1784
1785 * sparc-tdep.c (sparc_y_regnum): Make external again.
1786
83a8ccca
DJ
17872003-06-29 Daniel Jacobowitz <drow@mvista.com>
1788
1789 * cli/cli-logging.c (pop_output_files): Add void to function
1790 definition.
1791
d2cf594a
AC
17922003-06-29 Andrew Cagney <cagney@redhat.com>
1793
1794 * frame.c (frame_register_unwind): Use unsigned char when dumping
1795 the buffer contents.
1796
0fac0b41
DJ
17972003-06-28 Daniel Jacobowitz <drow@mvista.com>
1798
1799 * cli/cli-logging.c: New file.
1800 * cli-out.c (struct ui_out_data): Add original_stream.
1801 (cli_redirect): New function.
1802 (cli_ui_out_impl): Add cli_redirect.
1803 (cli_out_new): Initialize original_stream.
1804 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1805 (uo_redirect, ui_out_redirect): New.
1806 * ui-out.h (struct ui_out_impl): Add redirect member.
1807 (redirect_ftype): New.
1808 (ui_out_redirect): Add prototype.
1809 * Makefile.in: Add rules for cli-logging.c.
1810 * NEWS: Mention "set logging".
1811
88a07d7c
EZ
18122003-06-27 Elena Zannoni <ezannoni@redhat.com>
1813
1814 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1815
4eb58876
AC
18162003-06-27 Andrew Cagney <cagney@redhat.com>
1817
1818 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1819 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1820 * avr-tdep.c (avr_call_dummy_address): Delete function.
1821 (avr_gdbarch_init): Do not set call_dummy_address.
1822
1549f619
EZ
18232003-06-27 Elena Zannoni <ezannoni@redhat.com>
1824
1825 * symfile.c (syms_from_objfile): Move variables to inner block.
1826 Move the checks for the non-mainline case a bit earlier to avoid
1827 doing some useless computations.
1828
3cb3398d
EZ
18292003-06-27 Elena Zannoni <ezannoni@redhat.com>
1830
1831 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1832
3799ccc6
EZ
18332003-06-26 Elena Zannoni <ezannoni@redhat.com>
1834
1835 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1836 sections.
1837
ce1f6491
MC
18382003-06-26 Michael Chastain <mec@shout.net>
1839
1840 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1841 gdb/testsuite/gdb.c++/pr-1210.exp.
1842
d958dfd0
AC
18432003-06-26 Andrew Cagney <cagney@redhat.com>
1844
1845 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1846 altivec_expression.h and altivec_registers.h.
1847
d31431ed
AC
18482003-06-26 Andrew Cagney <cagney@redhat.com>
1849
1850 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1851 info->mach when MIPS16. Patch suggested by Fred Fish.
1852
714b1282
AC
18532003-06-26 Andrew Cagney <cagney@redhat.com>
1854
1855 * utils.c (internal_vproblem): Print the problem to a reason
1856 buffer and then pass to query. Make the msg variable more local.
1857
42efa47a
AC
18582003-06-26 Andrew Cagney <cagney@redhat.com>
1859
1860 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1861 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1862 * gdbarch.h, gdbarch.c: Re-generate.
1863 * frame-base.c (default_frame_args_address): Update. Use
1864 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1865 not available.
1866 (default_frame_locals_address): Ditto for
1867 DEPRECATED_FRAME_LOCALS_ADDRESS.
1868 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1869 (vax_frame_num_args): Update.
1870 (vax_gdbarch_init): Update.
1871 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1872 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1873 * mcore-tdep.c (mcore_gdbarch_init): Update.
1874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1875 * ia64-tdep.c (ia64_gdbarch_init): Update.
1876 * symtab.h (address_class): Update comments.
1877 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1878 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1879 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1880 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1881 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1882 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1883 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1884 * alpha-mdebug-tdep.c: Update.
1885 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1886
8ffd9b1b
AJ
18872003-06-26 Andreas Jaeger <aj@suse.de>
1888
1889 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1890 of SSE registers so that varargs functions work. Rework handling
1891 of passing arguments on the stack.
1892 (x86_64_store_return_value): Return double and float values in SSE
1893 register.
1894
e8ac10a6
MC
18952003-06-24 Michael Chastain <mec@shout.net>
1896
1897 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1898 the "constructor breakpoints ignored" bug.
1899
986af8e6
DC
19002003-06-25 David Carlton <carlton@kealia.com>
1901
1902 * MAINTAINERS: Update e-mail address.
1903
d64558a5
JB
19042003-06-24 Jim Blandy <jimb@redhat.com>
1905
e538d2d7
JB
1906 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1907
02631ec0
JB
1908 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1909 function.
1910 (ppc_linux_init_abi): Register it as the
1911 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1912
e716d87a
JB
1913 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1914 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1915 method.
1916
d64558a5
JB
1917 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1918 (ppc64_standard_linkage_target): Use it.
1919
449a5da4
AC
19202003-06-23 Andrew Cagney <cagney@redhat.com>
1921
1922 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1923 for 0 "int0" and 4 "int32" sized registers.
1924 * gdbtypes.c (builtin_type_int0): Define.
1925 (build_gdbtypes): Initialize builtin_type_int0.
1926 * gdbtypes.h (builtin_type_int0): Declare.
1927
b2a02dda
SC
19282003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1929
1930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1931 as characters are unsigned.
1932
fba3138e
DJ
19332003-06-22 Daniel Jacobowitz <drow@mvista.com>
1934
1935 PR gdb/1179
1936 * dwarfread.c (struct_type): Skip static fields without crashing.
1937
f6c8180b
AC
19382003-06-22 Andrew Cagney <cagney@redhat.com>
1939
1940 GDB 6.0 branch created.
f2c06f52
AC
1941 * README: Update.
1942 * PROBLEMS: Update. Empty.
1943 * NEWS: Update.
f6c8180b 1944
ae822768
DJ
19452003-06-22 Daniel Jacobowitz <drow@mvista.com>
1946
1947 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1948 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1949
261de166
AC
19502003-06-22 Andrew Cagney <cagney@redhat.com>
1951
1952 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1953 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1954 Velikov.
1955
30e94205
DJ
19562003-06-22 Daniel Jacobowitz <drow@mvista.com>
1957
1958 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1959 compilers.
1960
9e14d721
DJ
19612003-06-21 Daniel Jacobowitz <drow@mvista.com>
1962
1963 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1964 argument of val_print.
1965 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1966 to the address argument of baseclass_offset or target_read_memory.
1967 Do add it to the argument of cp_print_value_fields.
1968
a4b8ebc8
AC
19692003-06-21 Andrew Cagney <cagney@redhat.com>
1970
1971 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1972 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1973 instead of 0..NUM_REGS.
1974 (mips_register_reggroup_p): New function.
1975 (mips_pseudo_register_write): New function.
1976 (mips_pseudo_register_read): New function.
1977 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1978 based on the register's type.
1979 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1980 cooked.
1981 (mips_get_saved_register): Simplify. Assert that REGNO is a
1982 pseudo / cooked.
1983 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1984 (mips_register_type): Replace mips_register_virtual_type. Map
1985 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1986 when available.
1987 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1988 that the register is cooked / virtual.
1989 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1990 Only get the extra info when needed.
1991 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1992 (mips32_heuristic_proc_desc): Fetch the cooked register.
1993 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1994 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1995 (mips_print_register): Use gdbarch_register_type, instead of
1996 REGISTER_VIRTUAL_TYPE.
1997 (print_gp_register_row): Use gdbarch_register_type, instead of
1998 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1999 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2000 Print the pseudo / cooked registers.
2001 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2002 Print the pseudo / cooked registers.
2003 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2004 REG_NUM is pseudo / cooked.
2005 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2006 (mips_n32n64_xfer_return_value): Ditto.
2007 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2008 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2009 (mips_register_sim_regno): New function.
2010 (mips_gdbarch_init): Set deprecated_register_byte,
2011 register_group_p, pseudo_register_write, pseudo_register_read,
2012 register_sim_regno, and num_pseudo_regs. Set register_type,
2013 instead of register_virtual_type.
2014 * Makefile.in (mips-tdep.o): Update dependencies.
2015 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2016 REGISTER_VIRTUAL_TYPE.
2017 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2018 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2019 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2020 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2021 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2022
325ed089
DJ
20232003-06-21 Daniel Jacobowitz <drow@mvista.com>
2024
2025 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2026 * cli/cli-cmds.c: Include "gdb_vfork.h".
2027 (shell_escape): Use vfork.
2028
f0e7d0e8
AC
20292003-06-21 Andrew Cagney <cagney@redhat.com>
2030
c57bb9fa
AC
2031 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2032 32 bit floating-point register saves.
2033
6e51443a
AC
2034 * frame.h (deprecated_unwind_get_saved_register): Delete.
2035 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2036 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2037 and deprecated_get_next_frame_hack instead of
2038 deprecated_unwind_get_saved_register.
2039
ed183c7c
AC
2040 * mips-tdep.c (mips_dump_tdep): Do not print
2041 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2042
f0e7d0e8
AC
2043 * frame.c (get_frame_register): New function.
2044 (frame_unwind_register_signed): New function.
2045 (get_frame_register_signed): New function.
2046 (frame_unwind_register_unsigned): New function.
2047 (get_frame_register_unsigned): New function.
2048 * frame.h: Add comments on naming schema.
2049 (get_frame_register, frame_unwind_register_signed): Declare.
2050 (get_frame_register_signed, get_frame_register_signed): Declare.
2051 (frame_unwind_register_unsigned): Declare.
2052 (get_frame_register_unsigned): Declare.
2053
2224d941
TR
20542003-06-20 Theodore A. Roth <troth@openavr.org>
2055
2056 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2057
8619218d
TR
20582003-06-20 Theodore A. Roth <troth@openavr.org>
2059
2060 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2061 (avr_read_sp): Ditto.
2062
0b1b50c0
DJ
20632003-06-20 Daniel Jacobowitz <drow@mvista.com>
2064
2065 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2066 * config/arm/nm-linux.h: Likewise.
2067 * config/arm/tm-linux.h: Likewise.
2068 * config/ia64/nm-linux.h: Likewise.
2069 * config/ia64/tm-ia64.h: Likewise.
2070 * config/s390/tm-linux.h: Likewise.
2071 * config/s390/tm-s390.h: Likewise.
2072 * s390-nat.c: Likewise.
2073 * s390-tdep.c: Likewise.
2074
2075 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2076 * config/ia64/linux.mt: Likewise.
2077 * config/m68k/linux.mh: Likewise.
2078 * config/mips/linux.mt: Likewise.
2079 * config/powerpc/linux.mh: Likewise.
2080 * config/sh/linux.mt: Likewise.
2081
c8c18e65
KW
20822003-06-19 Kris Warkentin <kewarken@qnx.com>
2083
2084 * solib.c (solib_open): Change tests for whether to search
2085 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2086 comments.
2087
dcccef2e
TR
20882003-06-19 Theodore A. Roth <troth@openavr.org>
2089
2090 * avr-tdep.c (avr_frame_address): Delete function.
2091 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2092 set_gdbarch_frame_args_address.
2093
5861a190
AC
20942003-06-19 Andrew Cagney <cagney@redhat.com>
2095
2096 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2097 (REGISTER_CONVERT_FROM_TYPE): Delete.
2098 (mips_register_convert_to_type): Delete declaration.
2099 (mips_register_convert_from_type): Delete declaration.
2100 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2101 kernel/.
2102
0274a8ce
MS
21032003-06-19 Michael Snyder <msnyder@redhat.com>
2104
2105 * linux-nat.h: New file.
2106 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2107 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2108 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2109 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2110 (linux_make_note_section): Iterate over lwps instead of threads.
2111 (linux_do_thread_registers): Use lwp instead of merged pid.
2112 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2113 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2114 Add dependency on linux_nat_h.
2115
adf5f719
TR
21162003-06-19 Theodore A. Roth <troth@openavr.org>
2117
2118 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2119
6766a268
DJ
21202003-06-19 Daniel Jacobowitz <drow@mvista.com>
2121
2122 * varobj.c (get_type, get_target_type): Use check_typedef.
2123
1171114a
DJ
21242003-06-19 Daniel Jacobowitz <drow@mvista.com>
2125
2126 * breakpoint.c (insert_catchpoint): Call internal_error.
2127
adcf68a2
TR
21282003-06-19 Theodore A. Roth <troth@openavr.org>
2129
2130 * avr-tdep.c (avr_push_dummy_code): Delete function.
2131 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2132
ea67f13b
DJ
21332003-06-19 Daniel Jacobowitz <drow@mvista.com>
2134
2135 * arch-utils.c (default_prepare_to_proceed): Remove.
2136 (generic_prepare_to_proceed): Remove.
2137 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2138 (generic_prepare_to_proceed): Remove prototype.
2139 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2140 * gdbarch.c: Regenerate.
2141 * gdbarch.h: Regenerate.
2142 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2143 * hppah-nat.c (hppa_switched_threads): Remove.
2144 * infrun.c (prepare_to_proceed): New static function, copied from
2145 generic_prepare_to_proceed. Remove select_it argument.
2146 (proceed): Call prepare_to_proceed.
2147 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2148 variables.
2149 (ptrace_wait): Don't set the removed variables.
2150 (hppa_switched_threads): Remove.
2151 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2152 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2153 (lin_lwp_prepare_to_proceed): Remove prototype.
2154 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2155 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2156
4add8633
TR
21572003-06-18 Theodore A. Roth <troth@openavr.org>
2158
2159 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2160 trad-frame.h.
2161 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2162 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2163 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2164 (AVR_PROLOGUE_*): Enumerate prologue types.
2165 (struct frame_extra_info): Remove.
2166 (struct avr_unwind_cache): Define.
2167 (avr_write_sp): Delete function.
2168 (avr_read_fp): Ditto.
2169 (avr_init_extra_frame_info): Ditto.
2170 (avr_pop_frame): Ditto.
2171 (avr_frame_saved_pc): Ditto.
2172 (avr_saved_pc_after_call): Ditto.
2173 (avr_push_return_address): Ditto.
2174 (avr_frame_chain): Ditto.
2175 (avr_store_struct_return): Ditto.
2176 (avr_push_arguments): Ditto.
2177 (avr_scan_prologue): Update comments. Changed to set up the info for
2178 cache unwinding. Now returns end of prologue PC.
2179 (avr_skip_prologue): Better handling of functions lacking a prologue
2180 by using avr_scan_prologue.
2181 (avr_scan_arg_moves): New function.
2182 (avr_saved_regs_unwinder): Ditto.
2183 (avr_frame_unwind_cache): Ditto.
2184 (avr_unwind_pc): Ditto.
2185 (avr_frame_this_id): Ditto.
2186 (avr_frame_prev_register): Ditto.
2187 (avr_frame_p): Ditto.
2188 (avr_frame_base_address ): Ditto.
2189 (avr_unwind_dummy_id): Ditto.
2190 (avr_push_dummy_code): Ditto.
2191 (push_stack_item): Ditto.
2192 (pop_stack_item): Ditto.
2193 (avr_push_dummy_call): Ditto.
2194 (struct stack_item): Define.
2195 (avr_frame_unwind): Declare structure.
2196 (avr_frame_base): Ditto.
2197 (avr_gdbarch_init): Remove calls to
2198 set_gdbarch_deprecated_init_frame_pc,
2199 set_gdbarch_deprecated_target_read_fp,
2200 set_gdbarch_deprecated_dummy_write_sp,
2201 set_gdbarch_deprecated_fp_regnum,
2202 set_gdbarch_deprecated_push_arguments,
2203 set_gdbarch_deprecated_push_return_address,
2204 set_gdbarch_deprecated_pop_frame,
2205 set_gdbarch_deprecated_store_struct_return,
2206 set_gdbarch_deprecated_frame_init_saved_regs,
2207 set_gdbarch_deprecated_init_extra_frame_info,
2208 set_gdbarch_deprecated_frame_chain,
2209 set_gdbarch_deprecated_frame_saved_pc,
2210 set_gdbarch_deprecated_saved_pc_after_call.
2211 Add calls to set_gdbarch_push_dummy_call,
2212 set_gdbarch_push_dummy_code,
2213 frame_unwind_append_predicate,
2214 frame_base_set_default,
2215 set_gdbarch_unwind_dummy_id,
2216 set_gdbarch_unwind_pc.
2217 Wrap a long line.
2218
7be04a68
MS
22192003-06-18 Corinna Vinschen <vinschen@redhat.com>
2220
2221 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2222 registers for H8/300S.
2223 (h8300_print_registers_info): Ditto.
8ffd9b1b 2224 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2225
ae087d01
DJ
22262003-06-18 Daniel Jacobowitz <drow@mvista.com>
2227
2228 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2229 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2230 (lin_lwp_wait): Likewise. Update comments.
2231 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2232 (pull_pid_from_list, linux_record_stopped_pid): New.
2233
07d8f827
SC
22342003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2235
2236 * ada-lang.c (scan_discrim_bound): Name first argument.
2237 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2238 declared by ALL_BLOCK_SYMBOLS.
2239
7cb47b14
SC
22402003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2241
2242 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2243 ("regcache.h"): Include it.
2244 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2245
6ad8ae5c
DJ
22462003-06-17 Daniel Jacobowitz <drow@mvista.com>
2247
2248 * NEWS: Mention gdbserver detach change and "disconnect" command.
2249 * infcmd.c (disconnect_command): New function.
2250 (_initialize_infcmd): Add ``disconnect'' command.
2251 * remote.c (remote_async_detach): Delete.
2252 (remote_detach): Merge remote_async_detach.
2253 (remote_disconnect): New.
2254 (init_remote_ops): Set to_disconnect.
2255 (init_remote_cisco_ops): Likewise.
2256 (init_remote_async_ops): Likewise. Use remote_detach.
2257 * target.c (cleanup_target): Default to_disconnect.
2258 (update_current_target): Inherit to_disconnect.
2259 (target_disconnect, debug_to_disconnect): New functions.
2260 (setup_target_debug): Set to_disconnect.
2261 * target.h (struct target_ops): Add to_disconnect.
2262 (target_disconnect): Add prototype.
2263
687595f9
DJ
22642003-06-17 Daniel Jacobowitz <drow@mvista.com>
2265
2266 * breakpoint.c (insert_catchpoint): New function.
2267 (insert_breakpoints): Use catch_exceptions to call
2268 insert_catchpoint. Disable catchpoints if they fail to insert.
2269
29239a8f
DJ
22702003-06-17 Daniel Jacobowitz <drow@mvista.com>
2271
2272 * symfile.c (reread_symbols): Clear sym_private.
2273
2cdf3c63
AC
22742003-06-17 Andrew Cagney <cagney@redhat.com>
2275
2276 * trad-frame.h (struct frame_info): Add opaque declaration.
2277 * remote-fileio.h (struct cmd_list_element): Add opaque
2278 declaration.
2279 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2280 comments.
2281
cf0e1e0d
DJ
22822003-06-17 Daniel Jacobowitz <drow@mvista.com>
2283
2284 * remote.c (remote_prepare_to_store): Replace call to
2285 deprecated_read_register_bytes with multiple regcache_raw_read
2286 calls.
2287
192cdb19
KW
22882003-06-17 Kris Warkentin <kewarken@qnx.com>
2289
2290 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2291 (nto_find_and_open_solib): Likewise.
2292 (nto_init_solib_absolute_prefix): Likewise.
2293 (_initialize_nto_tdep): Fix indentation.
2294
89929b45
KW
22952003-06-17 Kris Warkentin <kewarken@qnx.com>
2296
2297 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2298
46019f27
KW
22992003-06-17 Kris Warkentin <kewarken@qnx.com>
2300
2301 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2302
1a38736e
JB
23032003-06-17 Jim Blandy <jimb@redhat.com>
2304
2305 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2306
3605c34a
TR
23072003-06-16 Theodore A. Roth <troth@openavr.org>
2308
2309 * avr-tdep.c (avr_extract_return_value): New function.
2310 (avr_gdbarch_init): Set extract_return_value method.
2311
870b3035
AC
23122003-06-16 Andrew Cagney <cagney@redhat.com>
2313
2314 * frame.h (deprecated_get_next_frame_hack): Declare.
2315 * frame.c (legacy_saved_regs_prev_register): Only require
2316 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2317 there are always saved regs.
2318 (deprecated_generic_get_saved_register): Do not require
2319 DEPRECATED_FRAME_INIT_SAVED_REGS.
2320 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2321 use frame ID unwind instead.
2322 (deprecated_get_next_frame_hack): New function.
2323
63d47a7d
CV
23242003-06-16 Corinna Vinschen <vinschen@redhat.com>
2325
2326 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2327 (h8300_push_dummy_call): ...this function. Some minor optimization.
2328 (h8300_push_return_address): Remove.
2329 (h8300_gdbarch_init): Remove calls to
2330 set_gdbarch_deprecated_dummy_write_sp,
2331 set_gdbarch_deprecated_push_arguments and
2332 set_gdbarch_deprecated_push_return_address.
2333 Add call to set_gdbarch_push_dummy_call.
2334
4bb1dc5e
CV
23352003-06-16 Corinna Vinschen <vinschen@redhat.com>
2336
2337 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2338 (E_PSEUDO_EXR_REGNUM): Ditto.
2339 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2340 registers into safe registers.
4bb1dc5e
CV
2341 (h8300_skip_prologue): Check for stm instruction to push registers
2342 used for register variables onto stack.
2343 (gdb_print_insn_h8300): Remove.
2344 (h8300_examine_prologue): Add a comment.
2345 (h8300_register_name): Take pseudo registers into account.
2346 (h8300s_register_name): Ditto.
2347 (h8300sx_register_name): Ditto.
2348 (h8300_print_register): Ditto.
2349 (h8300_print_registers_info): Define "nice" printing order.
2350 (h8300_saved_pc_after_call): Take pseudo registers into account.
2351 (h8300_register_type): Ditto. Return type used for remote connection
2352 when requesting real CCR or EXR register, return actual type when
2353 requesting pseudo CCR or EXR.
2354 (h8300_pseudo_register_read): New function.
2355 (h8300_pseudo_register_write): Ditto.
2356 (h8300_dbg_reg_to_regnum): Ditto.
2357 (h8300s_dbg_reg_to_regnum): Ditto.
2358 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2359 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2360 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2361 set_gdbarch_print_insn architecture dependent.
2362 Call set_gdbarch_pseudo_register_read and
2363 set_gdbarch_pseudo_register_write.
2364 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2365
a59fe496
AC
23662003-06-16 Andrew Cagney <cagney@redhat.com>
2367
2368 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2369 * gdbarch.h, gdbarch.c: Re-generate.
2370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2371 * s390-tdep.c (s390_gdbarch_init): Update.
2372 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2373 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2374 * mips-tdep.c (mips_gdbarch_init): Update.
2375 * mcore-tdep.c (mcore_gdbarch_init): Update.
2376 * cris-tdep.c (cris_gdbarch_init): Update.
2377 * infcall.c (call_function_by_hand): Update.
2378 * ia64-tdep.c (ia64_push_arguments): Update comment.
2379 * frame.c (legacy_get_prev_frame): Do not assume
2380 SAVE_DUMMY_FRAME_TOS_P.
2381 * dummy-frame.c (find_dummy_frame): Update comment.
2382
6f4e5a41
AC
23832003-06-16 Andrew Cagney <cagney@redhat.com>
2384
2385 * regcache.c (do_cooked_read): Do not use register_valid_p.
2386
72fab697
TR
23872003-06-15 Theodore A. Roth <troth@openavr.org>
2388
2389 * avr-tdep.c (avr_register_type): Remove a blank line.
2390 (avr_scan_prologue): Correct some comments.
2391
e3d8b004
TR
23922003-06-15 Theodore A. Roth <troth@openavr.org>
2393
2394 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2395 prologue types.
8ffd9b1b 2396 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2397 option.
2398 Add code to scan -mcall-prologues for mega devices.
2399
866b76ea
TR
24002003-06-15 Theodore A. Roth <troth@openavr.org>
2401
2402 * avr-tdep.c (avr_register_byte): Delete function.
2403 (avr_register_raw_size): Delete function.
2404 (avr_register_virtual_size): Delete function.
2405 (avr_register_virtual_type): Delete function.
2406 (avr_register_type): New function.
2407 (avr_address_to_pointer): Remove unused code.
2408 (avr_read_fp): Need to read FP as two separate bytes due to change to
2409 avr_register_type() usage.
2410 (avr_gdbarch_init): Don't set deprecated_register_size.
2411 Don't set deprecated_register_bytes.
2412 Don't set deprecated_register_byte.
2413 Don't set deprecated_register_raw_size.
2414 Don't set deprecated_max_register_raw_size.
2415 Don't set deprecated_register_virtual_size.
2416 Don't set deprecated_max_register_virtual_size.
2417 Don't set deprecated_register_virtual_type.
2418 Set register_type method.
2419
3993f6b1
DJ
24202003-06-15 Daniel Jacobowitz <drow@mvista.com>
2421
2422 * Makefile.in (linux-nat.o): Add rule.
2423 * linux-nat.c: New file.
2424 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2425 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2426 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2427 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2428 * config/arm/linux.mh (NATDEPFILES): Likewise.
2429 * config/i386/linux.mh (NATDEPFILES): Likewise.
2430 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2431 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2432 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2433 * config/mips/linux.mh (NATDEPFILES): Likewise.
2434 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2435 * config/s390/s390.mh (NATDEPFILES): Likewise.
2436 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2437
786a90bb
MK
24382003-06-15 Mark Kettenis <kettenis@gnu.org>
2439
2440 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2441 replace out-of-date comment.
2442
3bd3f01e
AC
24432003-06-15 Andrew Cagney <cagney@redhat.com>
2444
2445 * rdi-share/host.h (Fail): Change to a varargs function.
2446 * remote-rdi.c (Fail): Update.
8ffd9b1b 2447
de5b9bb9
MK
24482003-06-15 Mark Kettenis <kettenis@gnu.org>
2449
2450 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2451 (i386_convert_register_p, i386_register_to_value,
2452 i386_register_from_value): Handle types longer than 8 bytes.
2453
d532c08f
MK
24542003-06-15 Mark Kettenis <kettenis@gnu.org>
2455
2456 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2457 Move floating-point code to new function in i387-tdep.c.
2458 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2459 New functions containing code moved here from i386-tdep.c.
2460 * i387-tdep.h: Add opaque declaration for `struct type'.
2461 (i387_register_to_value, i387_value_to_register): New prototypes.
2462 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2463 (x86_64_init_abi): Set convert_register_p, register_to_value and
2464 value_to_register here.
8ffd9b1b 2465
42c466d7
AC
24662003-06-14 Andrew Cagney <cagney@redhat.com>
2467
2468 * mips-tdep.c (mips_register_to_value): Make static.
2469 (mips_value_to_register): Make static.
2470 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2471 * ia64-tdep.c (ia64_register_raw_size): Make static.
2472 (ia64_register_virtual_size): Make static.
2473 (ia64_register_byte): Make static.
2474 * i387-tdep.c: Include "i387-tdep.h".
2475 (print_387_control_word): Delete function.
2476 (print_387_status_word): Delete function.
2477 (print_387_status_bits): Delete function.
2478 (print_387_control_bits): Delete function.
2479 * Makefile.in (i387-tdep.o): Update dependencies.
2480 * rdi-share/host.h (Fail): Declare.
2481 * remote-rdi.c (Fail): Update to match declaration.
2482
2a9cda49
AC
24832003-06-14 Andrew Cagney <cagney@redhat.com>
2484
2485 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2486 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2487 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2488 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2489 * README: Delete reference to remote-array.
2490 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2491 (remote-array.o): Delete target.
2492 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2493 * remote-array.c: Delete file.
2494
ff2e87ac
AC
24952003-06-14 Andrew Cagney <cagney@redhat.com>
2496 Mark Kettenis <kettenis@gnu.org>
2497
2498 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2499 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2500 parameter with "frame".
2501 * gdbarch.h, gdbarch.c: Re-generate.
2502 * frame.h (put_frame_register): Declare.
2503 * frame.c (put_frame_register): New function.
2504 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2505 (legacy_register_to_value): Rewrite, use "frame" to get the
2506 register value.
2507 (legacy_value_to_register): Rewrite, use "frame" to find the
2508 register's location before storing.
2509 * arch-utils.h (legacy_convert_register_p): Update.
2510 (legacy_register_to_value, legacy_value_to_register): Update.
2511 * findvar.c (value_from_register): Rewrite, eliminate use of
2512 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2513 "frame" to REGISTER_TO_VALUE.
2514 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2515 lval_reg_frame_relative + lval_register branch of the switch. Do
2516 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2517 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2518 I386_EDI_REGNUM): New defines.
2519 (i386_next_regnum, i386_convert_register_p,
2520 i386_register_to_value, i386_value_to_register): New functions.
2521 (i386_register_convertible, i386_register_convert_to_virtual,
2522 i386_convert_to_raw): Remove functions.
2523 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2524 value_to_register instead of register_convertible,
2525 register_convert_to_virtual and register_convert_to_raw.
2526 * mips-tdep.c (mips_convert_register_p): New function.
2527 (mips_value_to_register): Replace mips_register_convert_from_type.
2528 (mips_register_to_value): Replace mips_register_convert_to_type.
2529 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2530 register_to_value.
2531 * alpha-tdep.c (alpha_convert_register_p): Update.
2532 (alpha_value_to_register): Update, store the register.
2533 (alpha_register_to_value): Update, fetch the register.
2534
98be1e77
TR
25352003-06-14 Theodore A. Roth <troth@openavr.org>
2536
2537 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2538 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2539 Don't set deprecated_call_dummy_words.
2540 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2541 Don't set remote_translate_xfer_address.
2542 (avr_io_reg_read_command): Remove commented out debug printf.
2543 Wrap a long line.
2544
57bc6122
TR
25452003-06-14 Theodore A. Roth <troth@openavr.org>
2546
2547 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2548 causes gdb to seg fault.
2549
eb01fc62
DJ
25502003-06-14 Daniel Jacobowitz <drow@mvista.com>
2551
2552 * sparc-nat.c (fetch_inferior_registers): Correct
2553 a reference to "registers".
2554
3b3e6bee
DJ
25552003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2556
2557 * Makefile.in (exc_request_U_h): Define
2558 (exc_request_S_h): Likewise.
2559 (msg_reply_S_h): Likewise.
2560 (msg_U_h): Likewise.
2561 (notify_S_h): Likewise.
2562 (process_reply_S_h): Likewise.
2563 (gnu-nat.o): Depend on gdb_obstack_h
2564 * gnu-nat.c: Include "gdb_obstack.h".
2565
b8de8283
AC
25662003-06-13 Andrew Cagney <cagney@redhat.com>
2567
2568 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2569 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2570
f3be58bc
AC
25712003-06-13 Andrew Cagney <cagney@redhat.com>
2572
2573 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2574 when deprecated REGISTER macros can be deleted.
2575 * gdbarch.h, gdbarch.c: Re-generate.
2576
4c0122c8
JB
25772003-06-13 Jim Blandy <jimb@redhat.com>
2578
2579 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2580 Linux entry point symbols for _dl_debug_state, too.
2581
3e210248
AC
25822003-06-13 Andrew Cagney <cagney@redhat.com>
2583
2584 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2585 available, do not use the FP register, and always save the TOS.
2586 * dummy-frame.c (dummy_frame_this_id): Do not assert
2587 SAVE_DUMMY_FRAME_TOS.
2588 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2589 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2590 (i386_push_dummy_call): Add 8 to the returned SP.
2591 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2592 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2593 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2594 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2595 (x86_64_push_dummy_call): Return "sp + 16".
2596 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2597 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2598 save_dummy_frame_tos.
2599
0b65af49
JB
26002003-06-13 Jim Blandy <jimb@redhat.com>
2601
2602 * frv-tdep.c (frv_use_struct_convention): Delete static
2603 declaration for function deleted in my change of 2003-06-12.
2604
4ea2465e
TR
26052003-06-13 Theodore A. Roth <troth@openavr.org>
2606
2607 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2608 (avr_pointer_to_address): Shift code addrs left 1 bit.
2609 (avr_convert_from_func_ptr_addr): Delete function since operation is
2610 better handled by avr_address_to_pointer and avr_pointer_to_address.
2611 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2612
1581182a
MK
26132003-06-13 Mark Kettenis <kettenis@gnu.org>
2614
2615 From Kelley Cook <kelleycook@wideopenwest.com>:
2616 * configure.host: Accept i[34567]86 variants.
2617 * configure.tgt: Likewise.
2618 * nlm/configure.in: Likewise.
2619 * nlm/configure: Regenerated.
2620
7aa1783e
RE
26212003-06-13 Richard Earnshaw <rearnsha@arm.com>
2622
2623 * arm-tdep.c (solib-svr4.h): Dont' include it.
2624 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2625 * arm-linux-tdep.c: ... here. Make static.
2626 (arm_linux_init_abi): Register it.
2627 (solib-svr4.h): Include it.
2628 * Makefile.in: Update dependencies.
2629 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2630 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2631
0261a0d0
CV
26322003-06-13 Corinna Vinschen <vinschen@redhat.com>
2633
2634 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2635 indicate registers used for return values.
2636 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2637 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2638 members.
2639 (h8300_init_extra_frame_info): Ditto.
2640 (h8300_frame_locals_address): Removed.
2641 (h8300_frame_args_address): Removed.
2642 (h8300_extract_return_value): Use new regcache structure. Only care
2643 for 16 bit CPUs.
2644 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2645 (h8300_store_return_value): Use new regcache structure. Only care
2646 for 16 bit CPUs.
2647 (h8300h_store_return_value): Same function for 32 bit CPUs.
2648 (h8300_store_struct_return): Removed.
2649 (h8300_extract_struct_value_address): Use new regcache structure.
2650 (h8300h_extract_struct_value_address): Removed.
2651 (h8300_push_dummy_code): New function.
2652 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2653 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2654 set_gdbarch_store_return_value architecture dependent.
2655 Call set_gdbarch_push_dummy_code and
2656 set_gdbarch_extract_struct_value_address.
2657 Remove calls to set_gdbarch_frame_args_address,
2658 set_gdbarch_frame_locals_address,
2659 set_gdbarch_deprecated_store_struct_return,
2660 set_gdbarch_deprecated_extract_return_value,
2661 set_gdbarch_deprecated_extract_struct_value_address,
2662 set_gdbarch_deprecated_call_dummy_words and
2663 set_gdbarch_deprecated_sizeof_call_dummy_words.
2664
055c394a
CV
26652003-06-13 Corinna Vinschen <vinschen@redhat.com>
2666
2667 * h8300-tdep.c (h8300_register_byte): Remove.
2668 (h8300h_register_byte): Remove.
2669 (h8300_register_virtual_type): Remove. Substitute by...
2670 (h8300_register_type): New function.
2671 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2672 (h8300h_extract_struct_value_address): Ditto.
2673 (h8300_gdbarch_init): Drop calls to
2674 set_gdbarch_deprecated_register_byte and
2675 set_gdbarch_deprecated_register_virtual_type.
2676 Add call to set_gdbarch_register_type.
2677
9c04cab7
AC
26782003-06-13 Andrew Cagney <cagney@redhat.com>
2679
2680 * gdbarch.sh: Update comments on registers.
2681 (deprecated_register_byte): Rename register_byte.
2682 (deprecated_register_raw_size): Rename register_raw_size.
2683 (deprecated_register_virtual_size): Rename register_virtual_size.
2684 (deprecated_register_virtual_type): Rename register_virtual_type.
2685 * gdbarch.h, gdbarch.c: Re-generate.
2686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2687 * vax-tdep.c (vax_gdbarch_init): Update.
2688 * v850-tdep.c (v850_gdbarch_init): Update.
2689 * sparc-tdep.c (sparc_gdbarch_init): Update.
2690 * sh-tdep.c (sh_gdbarch_init): Update.
2691 * s390-tdep.c (s390_gdbarch_init): Update.
2692 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2693 * ns32k-tdep.c: Update.
2694 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2695 * mips-tdep.c (mips_gdbarch_init): Update.
2696 * mcore-tdep.c (mcore_gdbarch_init): Update.
2697 * m68k-tdep.c (m68k_gdbarch_init): Update.
2698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2699 * ia64-tdep.c (ia64_gdbarch_init): Update.
2700 * hppa-tdep.c (hppa_gdbarch_init): Update.
2701 * h8300-tdep.c (h8300_gdbarch_init): Update.
2702 * frv-tdep.c (frv_gdbarch_init): Update.
2703 * cris-tdep.c (cris_gdbarch_init): Update.
2704 * avr-tdep.c (avr_gdbarch_init): Update.
2705 * alpha-tdep.c (alpha_gdbarch_init): Update.
2706 * arm-tdep.c (arm_gdbarch_init): Update.
2707
b060cbea
AC
27082003-06-13 Andrew Cagney <cagney@redhat.com>
2709
2710 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2711 mips_o32_use_struct_convention with always_use_struct_convention.
2712
0fc9922a
DC
27132003-06-12 David Carlton <carlton@kealia.com>
2714
2715 * cp-namespace.c (cp_set_block_scope): Comment out
2716 processing_has_namespace_info branch.
2717
1fd35568
JB
27182003-06-12 Jim Blandy <jimb@redhat.com>
2719
f470a70a
JB
2720 Recognize and skip 64-bit PowerPC Linux linkage functions.
2721 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2722 insn_pattern, insns_match_pattern, d_field, ds_field): New
2723 functions, macros, and types for working with PPC instructions.
2724 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2725 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2726 ppc64_skip_trampoline_code): New functions, variables, and macros
2727 for recognizing and skipping linkage functions.
2728 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2729 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2730
49ff75ad
JB
2731 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2732 register offsets for both the 32- and 64-bit interfaces.
2733
bd918c83
JB
2734 Actually finish the job started by my change of 2003-05-29.
2735 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2736 other #definition of this.
2737 (ppc_linux_skip_trampoline_code): Remove declaration.
2738 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2739 static.
2740 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2741 method for GDBARCH.
2742
2743 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2744 'long' on ppc64-*-linux*.
2745
f8c59253
JB
2746 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2747 isn't #defined, assume the register doesn't exist: act as if
2748 tdep->ppc_mq_regnum were -1.
2749
8fbb30b1
JB
2750 * configure.host, configure.tgt: Add entries for
2751 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2752 powerpc/linux.mt.
2753 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2754 New files.
2755
1fd35568
JB
2756 * arch-utils.c (always_use_struct_convention): New function.
2757 * arch-utils.h (always_use_struct_convention): New prototype.
2758 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2759 (alpha_gdbarch_init): Register always_use_struct_convention,
2760 instead of alpha_use_struct_convention.
2761 * cris-tdep.c (cris_use_struct_convention): Delete.
2762 (cris_gdbarch_init): Register always_use_struct_convention,
2763 instead of cris_use_struct_convention.
2764 * frv-tdep.c (frv_use_struct_convention): Delete.
2765 (frv_gdbarch_init): Register always_use_struct_convention,
2766 instead of frv_use_struct_convention.
2767 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2768 (h8300_gdbarch_init): Register always_use_struct_convention,
2769 instead of h8300_use_struct_convention.
e3305dd9 2770 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2771 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2772 instead of mips_o32_use_struct_convention.
2773
e14e6e9c
AC
27742003-06-12 Andrew Cagney <cagney@redhat.com>
2775
2776 * wince.c: Include "mips-tdep.h".
2777 * mips-tdep.h (mips_next_pc): Declare.
2778 * mcore-tdep.c: Make more local functions static.
2779 * Makefile.in (wince.o): Update dependencies.
2780
2335f48e
DC
27812003-06-12 David Carlton <carlton@kealia.com>
2782
2783 * symtab.c (lookup_symbol_aux_minsyms): Replace
2784 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2785 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2786 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2787 SYMBOL_NATURAL_NAME.
2788
f70a7d61
AS
27892003-06-12 Andreas Schwab <schwab@suse.de>
2790
2791 * Makefile.in (tuiDisassem.o): Update dependencies.
2792
b6429628
DC
27932003-06-12 David Carlton <carlton@bactrian.org>
2794
2795 * symtab.h: Delete declaration of make_symbol_overload_list.
2796 Add declaration of lookup_partial_symbol.
2797 * symtab.c (remove_params): Move to cp-support.c.
2798 (overload_list_add_symbol, make_symbol_overload_list)
2799 (sym_return_val_size, sym_return_val_index): Ditto.
2800 (lookup_partial_symbol): Make extern.
2801 * cp-support.h: Add declaration of make_symbol_overload_list.
2802 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2803 symtab.h, and block.h.
2804 (remove_params): Move here from symtab.c.
2805 (overload_list_add_symbol, make_symbol_overload_list)
2806 (sym_return_val_size, sym_return_val_index): Ditto.
2807 * valops.c: Include cp-support.h.
2808 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2809 frame_h, and block_h.
2810 (valops.o): Depend on cp_support_h.
2811
084edea5
CV
28122003-06-12 Corinna Vinschen <vinschen@redhat.com>
2813
2814 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2815 substitute by NUM_REGS throughout.
2816 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2817 (h8300s_register_name): New function for H8S registers.
2818 (h8300sx_register_name): Ditto for H8SX registers.
2819 (h8300_print_register): Revise register printing, avoid depending
2820 on 32 bit long.
0261a0d0 2821 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2822 (h8300h_register_byte): New function for any other architecture.
2823 (h8300_register_raw_size): Remove.
2824 (h8300_register_virtual_type): Revise to return actually useful
2825 type.
2826 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2827 (h8300h_extract_struct_value_address): New function for any other
2828 architecture.
2829 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2830 set_gdbarch_register_name, set_gdbarch_register_byte,
2831 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2832 Remove calls to set_gdbarch_deprecated_register_size,
2833 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2834 set_gdbarch_deprecated_max_register_raw_size,
2835 set_gdbarch_register_virtual_size and
2836 set_gdbarch_deprecated_max_register_virtual_size entirely.
2837 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2838 set_gdbarch_long_double_bit.
2839
06194148
JJ
28402003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2841
8ffd9b1b
AJ
2842 * doublest.c (convert_doublest_to_floatformat): When dealing
2843 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2844 processing a full 32 bits of mantissa.
2845
de4f826b
DC
28462003-06-11 David Carlton <carlton@bactrian.org>
2847
2848 * dictionary.h: New.
2849 * dictionary.c: New.
2850 * block.h: Add opaque declaration for struct dictionary.
2851 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2852 'sym' members.
2853 (BLOCK_DICT): New macro.
2854 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2855 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2856 BLOCK_SHOULD_SORT.
2857 (ALL_BLOCK_SYMBOLS): Update definition.
2858 * Makefile.in (SFILES): Add dictionary.c.
2859 (dictionary_h): New.
2860 (COMMON_OBS): Add dictionary.o.
2861 (dictionary.o): New.
2862 (ada-lang.o): Depend on dictionary_h.
2863 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2864 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2865 (mi-cmd-stack.o): Ditto.
2866 (gdbtk-cmds.o): Update dependencies.
2867 (gdbtk-stack.o): Ditto.
2868 * ada-lang.c: Include dictionary.h.
2869 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2870 (fill_in_ada_prototype, debug_print_block): Ditto.
2871 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2872 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2873 'is_sorted'.
2874 * mdebugread.c: Include dictionary.h.
2875 (struct parse_stack): Delete 'maxsyms' member.
2876 (parse_symbol): Update calls to new_block. Delete calls to
2877 shrink_block. Use dictionary methods.
2878 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2879 Update calls to new_symtab. Don't maintain maxsyms data.
2880 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2881 (add_symbol): Just call dict_add_symbol.
2882 (new_symtab): Delete 'maxsyms' argument.
2883 (new_symtab): Update calls to new_block.
2884 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2885 (shrink_block): Delete function.
2886 (fixup_sigtramp): Update call to new_block. Add symbol via
2887 dict_add_symbol.
2888 * jv-lang.c: Include dictionary.h.
2889 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2890 appropriately. Set class_symtab->free_func. Make sure the
2891 blockvector is big enough to hold two blocks.
2892 (add_class_symtab_symbol): Use dictionary methods.
2893 (free_class_block): New function.
2894 (type_from_class): Replace explicit iteration by
2895 ALL_BLOCK_SYMBOLS.
2896 * symtab.h (struct symtab): Replace 'free_ptr' method by
2897 'free_func'.
2898 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2899 sort_symtab_syms.
2900 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2901 sort_symtab_syms.
2902 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2903 Include dictionary.h.
2904 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2905 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2906 sort_symtab_syms.
2907 * objfiles.c: Include dictionary.h.
2908 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2909 * buildsym.c: Include dictionary.h.
2910 (finish_block): Use dictionary methods.
2911 (end_symtab): Set free_func to NULL, not free_ptr.
2912 * tracepoint.c: Include dictionary.h.
2913 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2914 (scope_info): Ditto.
2915 * stack.c: Include dictionary.h.
2916 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2917 (print_block_frame_labels, print_frame_arg_vars)
2918 (print_frame_args): Ditto.
2919 * symmisc.c (free_symtab_block): Use dictionary methods.
2920 (dump_symtab): Ditto.
2921 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2922 Include dictionary.h.
2923 * symfile.h: Delete declarations of sort_block_syms,
2924 sort_symtab_syms.
2925 * symfile.c (sort_block_syms): Delete.
2926 (sort_symtab_syms): Delete.
2927 * symtab.c: Include dictionary.h.
2928 (lookup_block_symbol): Use dictionary iterators.
2929 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2930 (search_symbols, make_symbol_completion_list): Ditto.
2931 (make_symbol_overload_list): Ditto.
2932 * valops.c (value_of_local): Use dict_empty.
2933 Include dictionary.h.
2934
a31f978c
JB
29352003-06-11 J. Brobecker <brobecker@gnat.com>
2936
2937 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2938
526e70c0
DC
29392003-06-11 David Carlton <carlton@bactrian.org>
2940
2941 * block.h (BLOCK_SHOULD_SORT): Delete.
2942 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2943 blocks.
2944 * ada-lang.c (ada_add_block_symbols): Ditto.
2945 * symfile.c (sort_block_syms): Delete.
2946 (sort_symtab_syms): Ditto.
2947 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2948 declarations.
2949 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2950 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2951 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2952 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2953 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2954 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2955 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2956
33c08150
JJ
29572003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2958
8ffd9b1b 2959 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2960 bits to 128.
2961
781a750d
AC
29622003-06-11 Andrew Cagney <cagney@redhat.com>
2963
2964 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2965 REGISTER_CONVERTIBLE.
2966 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2967 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2968 * gdbarch.h, gdbarch.c: Re-generate.
2969 * arch-utils.h (deprecated_register_convertible_not): Rename
2970 generic_register_convertible_not.
2971 * arch-utils.c (deprecated_register_convertible_not): Rename
2972 generic_register_convertible.
2973 (legacy_convert_register_p, legacy_register_to_value): Update.
2974 * sh-tdep.c (sh64_push_arguments): Update.
2975 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2976 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2977 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2978 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2979 * arch-utils.c (legacy_value_to_register): Update.
2980 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2981 (rs6000_register_convert_to_raw): Make parameter "from" const.
2982 * mips-tdep.c (mips_gdbarch_init): Update.
2983 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2984 * infcmd.c (default_print_registers_info): Update.
2985 * ia64-tdep.c (ia64_gdbarch_init): Update.
2986 (ia64_register_convert_to_raw): Make parameter "from" const.
2987 * i386-tdep.c (i386_gdbarch_init): Update.
2988 (i386_register_convert_to_raw): Update.
2989
cd90e54f
AC
29902003-06-11 Andrew Cagney <cagney@redhat.com>
2991
2992 * remote-fileio.c: Include "remote-fileio.h".
2993 * Makefile.in (remote-fileio.o): Update dependencies.
2994 (remote_fileio_h): Fix typo.
2995
a78f21af
AC
29962003-06-11 Andrew Cagney <cagney@redhat.com>
2997
2998 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2999 (xstormy16_save_dummy_frame_tos): Make static.
3000 (_initialize_xstormy16_tdep): Add declaration.
3001 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3002 * v850-tdep.c: Make local functions static.
3003 (_initialize_v850_tdep): Add declaration.
3004 * sparc-tdep.c: Make local functions static.
3005 (_initialize_sparc_tdep): Add declaration.
3006 * sh-tdep.c: Make local functions static.
3007 (_initialize_sh_tdep): Add declaration.
3008 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3009 * s390-tdep.c: Make local functions static.
3010 (_initialize_s390_tdep): Add declaration.
3011 * dbxread.c (find_stab_function_addr): Make static.
3012 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3013 * ocd.c (_initialize_remote_ocd): Add declaration.
3014 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3015 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3016 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3017 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3018 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3019 * remote-array.c (_initialize_array): Add declaration.
3020 (_initialize_remote_monitors): Add declaration.
3021 * remote-mips.c: Make local functions static.
3022 (_initialize_remote_mips): Add declaration.
3023 * mcore-tdep.c: Make all local functions static.
3024 (_initialize_mcore_tdep): Add declaration.
3025 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3026 * abug-rom.c (_initialize_abug_rom): Add declaration.
3027 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3028 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3029 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3030 * remote-est.c (_initialize_est): Add declaration.
3031 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3032 (m68hc11_call_dummy_address): Make static.
3033 * ia64-tdep.c: Make local functions static.
3034 (_initialize_ia64_tdep): Add declaration.
3035 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3036 * monitor.c (monitor_wait_filter): Make static.
3037 (_initialize_remote_monitors): Add declaration.
3038 * remote-hms.c (_initialize_remote_hms): Add declaration.
3039 * remote-e7000.c (fetch_regs_from_dump): Make static.
3040 (expect_n): Make static.
3041 (_initialize_remote_e7000): Add declaration.
3042 * ser-e7kpc.c: Always include "defs.h".
3043 (_initialize_ser_e7000pc): Add declaration.
3044 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3045 * cris-tdep.c: Make all but one function static.
3046 (_initialize_cris_tdep): Add declaration.
3047 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3048 * solib.c (update_solib_list): Make static.
3049 (_initialize_solib): Add declaration.
3050 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3051 (_initialize_avr_tdep): Add declaration.
3052 * remote-rdi.c (voiddummy): Make static.
3053 (_initialize_remote_rdi): Add declaration.
3054 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3055 * remote-rdp.c (send_rdp): Make static.
3056 (_initialize_remote_rdp): Add declaration.
3057 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3058
cbcdb1f5
CV
30592003-06-11 Corinna Vinschen <vinschen@redhat.com>
3060
3061 * remote-fileio.c: Make ari happy.
3062
a191ea8d
JB
30632003-06-10 J. Brobecker <brobecker@gnat.com>
3064
3065 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3066 fetching the trailing bytes of the buffer we are about to write.
3067
0ef75e11
AC
30682003-06-10 Andrew Cagney <cagney@redhat.com>
3069
3070 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3071 * Makefile.in (remote-fileio.o): Update dependencies.
3072 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3073 include <setjmp.h>, or <sys/types.h> conditional on USG.
3074 (remote_fio_jmp_buf): Delete global variable.
3075
449092f6 30762003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3077 Martin M. Hunt <hunt@redhat.com>
449092f6 3078
559fa028
AC
3079 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3080 (SFILES): Add remote-fileio.c.
3081 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3082 dependencies for building remote.o.
449092f6
CV
3083 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3084 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3085 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3086 static storage class.
3087 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3088 'F' packet.
3089 (_initialize_remote): Call initialize_remote_fileio().
3090 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3091 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3092 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3093 (captured_main): Initialize new ui_files.
3094 * ui-file.c: Add read and fgets input functions.
3095 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3096 (null_file_read): New function.
3097 (ui_file_read): New function.
3098 (set_ui_file_read): New function.
3099 (stdio_file_read): New function.
3100 * ui-file.h: New type ui_file_read_ftype.
3101 (set_ui_file_read): Declare.
3102 (ui_file_read): Declare.
3103
248de703
AC
31042003-06-09 Andrew Cagney <cagney@redhat.com>
3105
3106 * frame.h (deprecated_unwind_get_saved_register): Rename
3107 generic_unwind_get_saved_register, update comments.
3108 * mips-tdep.c (mips_get_saved_register): Update.
3109 * frame.c (deprecated_unwind_get_saved_register): Update.
3110
0ed8aa57
AC
31112003-06-09 Andrew Cagney <cagney@redhat.com>
3112
3113 * vax-tdep.c (vax_frame_locals_address): Delete function.
3114 (vax_gdbarch_init): Do not set frame_locals_address.
3115 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3116 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3117 * s390-tdep.c (s390_frame_args_address): Delete function.
3118 (s390_gdbarch_init): Do not set frame_args_address or
3119 frame_locals_address.
3120 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3121 (ns32k_gdbarch_init): Do not set frame_locals_address.
3122 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3123 (hppa_frame_locals_address): Delete function.
3124 (hppa_gdbarch_init): Do not set frame_args_address, or
3125 frame_locals_address.
3126 * arm-tdep.c (arm_frame_args_address): Delete.
3127 (arm_frame_locals_address): Delete.
3128 (arm_gdbarch_init): Do not set frame_args_address, or
3129 frame_locals_address.
3130
983a287a
AC
31312003-06-09 Andrew Cagney <cagney@redhat.com>
3132
3133 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3134 * gdbarch.h, gdbarch.c: Re-generate.
3135 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3136 * arch-utils.c (frame_num_args_unknown): Delete function.
3137 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3138 (frame_info): Use FRAME_NUM_ARGS_P.
3139 * arm-tdep.c (arm_frame_num_args): Delete function.
3140 (arm_gdbarch_init): Do not set frame_num_args.
3141 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3142 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3143 (hppa_gdbarch_init): Do not set frame_num_args.
3144 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3146 frame_num_args to default frame_num_args_unknown.
3147 * v850-tdep.c (v850_gdbarch_init): Ditto.
3148 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3149 * sh-tdep.c (sh_gdbarch_init): Ditto.
3150 * s390-tdep.c (s390_gdbarch_init): Ditto.
3151 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3152 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3153 * mips-tdep.c (mips_gdbarch_init): Ditto.
3154 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3155 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3157 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3158 * i386-tdep.c (i386_gdbarch_init): Ditto.
3159 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3160 * frv-tdep.c (frv_gdbarch_init): Ditto.
3161 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3162 * cris-tdep.c (cris_gdbarch_init): Ditto.
3163 * avr-tdep.c (avr_gdbarch_init): Ditto.
3164 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3165
8d3b0994
AC
31662003-06-09 Andrew Cagney <cagney@redhat.com>
3167
3168 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3169 (print_frame_args): Moved to "stack.c".
3170 * stack.c: Include "gdb_assert.h".
3171 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3172 (print_frame_args): Moved from "printcmd.c".
3173 * frame.h (print_frame_args): Delete declaration.
3174 * Makefile.in (stack.o): Update dependencies.
3175
25e3a86b
AC
31762003-06-08 Andrew Cagney <cagney@redhat.com>
3177
3178 * frame.c (get_prev_frame): Remove reference to
3179 frame_args_address_correct in comments.
3180 * frame-base.c (default_frame_args_address): Delete code
3181 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3182 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3183 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3184 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3185 (vax_frame_args_address_correct): Delete declaration.
3186
a9e5fdc2
AC
31872003-06-08 Andrew Cagney <cagney@redhat.com>
3188
3189 * gdbarch.sh (UNWIND_SP): Add.
3190 * gdbarch.h, gdbarch.c: Re-generate.
3191 * frame.c (frame_sp_unwind): New function.
3192 (get_frame_sp): New function.
3193 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3194 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3195 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3196 value.
3197 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3198 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3199
8983bd83
AC
32002003-06-08 Andrew Cagney <cagney@redhat.com>
3201
7fec2c59
AC
3202 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3203 REMOTE_BREAKPOINT.
3204 * remote.c: Update.
3205 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3206 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3207 * config/m68k/tm-sun3.h: Update.
3208 * config/m68k/tm-m68klynx.h: Update.
3209 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3210
8983bd83
AC
3211 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3212 trad_frame". Update comments.
3213 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3214 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3215 (trad_frame_register_value, trad_frame_prev_register): Update.
3216
b9362cc7
AC
32172003-06-08 Andrew Cagney <cagney@redhat.com>
3218
3219 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3220 from GCC's acinclude.m4.
3221 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3222 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3223 * main.c (error_init): Delete declaration.
3224 * defs.h (error_init): Declare.
3225 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3226 (rs6000_convert_from_func_ptr_addr): Make static.
3227 (_initialize_rs6000_tdep): Add declaration.
3228 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3229 (show_commands, set_verbose, show_history): Delete declaration.
3230 * top.h (set_verbose): Add declaration.
3231 (show_history, set_history, show_commands): Add declaration.
3232 (do_restore_instream_cleanup): Add declaration.
3233 * objc-lang.c (specialcmp): Make static.
3234 (print_object_command): Make static.
3235 (find_objc_msgsend): Make static.
3236 (find_objc_msgcall_submethod_helper): Make static.
3237 (find_objc_msgcall_submethod): Make static.
3238 (_initialize_objc_language): Add declaration.
3239 (find_implementation_from_class): Make static.
3240 (find_implementation): Make static.
3241 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3242 * objc-lang.h (lookup_struct_typedef): Add declaration.
3243 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3244 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3245 (do_restore_user_call_depth): Make static.
3246 (do_restore_instream_cleanup): Delete declaration.
3247 (dont_repeat): Delete declaration.
3248 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3249 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3250 * reggroups.c (_initialize_reggroup): Add declaration.
3251 * cp-support.c (_initialize_cp_support): Add declaration.
3252 * cp-abi.c (_initialize_cp_abi): Add declaration.
3253 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3254 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3255 (_initialize_gnu_v3_abi): Add declaration.
3256 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3257 (_initialize_gnu_v2_abi): Add declaration.
3258 * frame-base.c (_initialize_frame_base): Add declaration.
3259 * doublest.c (floatformat_from_length): Make static.
3260 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3261 * frame.c (create_sentinel_frame): Make static.
3262 (_initialize_frame): Add declaration.
3263 * top.c (do_catch_errors): Make static.
3264 (gdb_rl_operate_and_get_next_completion): Make static.
3265 * typeprint.c: Include "typeprint.h".
3266 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3267 (sentinel_frame_this_id): Make static.
3268 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3269 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3270 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3271 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3272 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3273 * maint.c (maintenance_print_architecture): Make static.
3274 * signals/signals.c (_initialize_signals): Add declaration.
3275 * std-regs.c (_initialize_frame_reg): Add declaration.
3276 * jv-exp.y (push_variable): ISO C definition.
3277 (push_qualified_expression_name): Ditto.
3278 * memattr.c (_initialize_mem): Add declaration.
3279 * remote.c (remote_check_watch_resources): Make static.
3280 (remote_stopped_by_watchpoint): Make static.
3281 (remote_stopped_data_address): Make static.
3282 * d10v-tdep.c (nr_dmap_regs): Make static.
3283 (a0_regnum): Make static.
3284 (d10v_frame_unwind_cache): Make static.
3285 (d10v_frame_p): Make static.
3286 * osabi.c (show_osabi): Make static.
3287 (_initialize_gdb_osabi): Add extern declaration.
3288 * gdbtypes.c (make_qualified_type): Make static.
3289 (safe_parse_type): Make static.
3290 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3291 * macrotab.c (macro_bcache_free): Make static.
3292 * interps.c (interp_set_quiet): Make static.
3293 (interpreter_exec_cmd): Make static.
3294 * stack.h (select_frame_command): New file.
3295 * stack.c: Include "stack.h".
3296 (select_frame_command_wrapper): Delete function.
3297 (select_frame_command): Make global.
3298 * infcall.c: Include "infcall.h".
3299 * linespec.c: Include "linespec.h".
3300 * symfile.c (sections_overlap): Make static.
3301 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3302 * charset.c (_initialize_charset): Add missing prototype.
3303 * regcache.c (init_legacy_regcache_descr): Make static.
3304 (do_regcache_xfree): Make static.
3305 (regcache_xfer_part): Make static.
3306 (_initialize_regcache): Add missing prototype.
3307 * breakpoint.c (parse_breakpoint_sals): Make static.
3308 (breakpoint_sals_to_pc): Make static.
3309 * interps.h (clear_interpreter_hooks): ISO C declaration.
3310 * Makefile.in (stack_h): Define.
3311 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3312 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3313
a0f267c7
AC
33142003-06-08 Andrew Cagney <cagney@redhat.com>
3315
3316 * Makefile.in (d10v-tdep.o): Update dependencies.
3317 (SFILES): Add trad-frame.c.
3318 (trad_frame_h): Define.
3319 (COMMON_OBS): Add trad-frame.o.
3320 (trad-frame.o): Specify dependencies.
3321 * d10v-tdep.c: Include "trad-frame.h".
3322 (saved_regs_unwinder): Delete function.
3323 (d10v_frame_prev_register): Use trad_frame_prev_register.
3324 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3325 trad_frame", delete "regs" and "prev_sp".
3326 (prologue_find_regs): Use trad-frame.
3327 * trad-frame.h, trad-frame.c: New files.
3328
4538b4f4
MK
33292003-06-08 Mark Kettenis <kettenis@gnu.org>
3330
3331 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3332
a0273b2f
AF
33332003-06-07 Adam Fedor <fedor@gnu.org>
3334
3335 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3336 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3337 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3338 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3339 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3340 Use it.
3341
3a6c3343
AC
33422003-06-07 Andrew Cagney <cagney@redhat.com>
3343
3344 * symfile.h: Re-indent, clean up comments.
3345
b46e02f6
AC
33462003-06-07 Andrew Cagney <cagney@redhat.com>
3347
3348 * inferior.h (deprecated_write_sp): Replace
3349 generic_target_write_sp.
3350 * regcache.c (deprecated_write_sp): Replace
3351 generic_target_write_sp.
3352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3353 * vax-tdep.c (vax_gdbarch_init): Update.
3354 * v850-tdep.c (v850_gdbarch_init): Update.
3355 * sparc-tdep.c (sparc_gdbarch_init): Update.
3356 * sh-tdep.c (sh_gdbarch_init): Update.
3357 * s390-tdep.c (s390_gdbarch_init): Update.
3358 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3359 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3360 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3361 * mcore-tdep.c (mcore_gdbarch_init): Update.
3362 * m68k-tdep.c (m68k_gdbarch_init): Update.
3363 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3364 * ia64-tdep.c (ia64_gdbarch_init): Update.
3365 * h8300-tdep.c (h8300_gdbarch_init): Update.
3366 * frv-tdep.c (frv_gdbarch_init): Update.
3367 * cris-tdep.c (cris_gdbarch_init): Update.
3368 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3369
a42e117c
AC
33702003-06-07 Andrew Cagney <cagney@redhat.com>
3371
3372 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3373 Assert that PC_REGNUM is valid.
3374 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3375
bd1ce8ba
AC
33762003-06-07 Andrew Cagney <cagney@redhat.com>
3377
3378 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3379 * gdbarch.h, gdbarch.c: Regenerate.
3380 * mn10300-tdep.c: Include "gdb_assert.h".
3381 (mn10300_read_fp): New function.
3382 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3383 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3384 * ia64-tdep.c: Include "gdb_assert.h".
3385 (ia64_read_fp): New function.
3386 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3387 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3388 * regcache.c (generic_target_read_sp): Delete function.
3389 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3390 * inferior.h (generic_target_read_sp): Delete declaration.
3391 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3392 generic_target_read_sp.
3393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3394 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3395 * sh-tdep.c (sh_gdbarch_init): Ditto.
3396 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3397 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3398
ec5cbaec
AC
33992003-06-07 Andrew Cagney <cagney@redhat.com>
3400
3401 * gdbarch.sh: Comment each field of startup_gdbarch.
3402 * gdbarch.h, gdbarch.c: Re-generate.
3403
cde9ea48
AC
34042003-06-07 Andrew Cagney <cagney@redhat.com>
3405
3406 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3407 * gdbarch.h, gdbarch.c: Re-generate.
3408 * regcache.c: Update comments on read_pc et.al.
3409 (generic_target_read_pc): Delete function.
3410 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3411 * inferior.h (generic_target_read_pc): Delete declaration.
3412 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3413 generic_target_read_pc.
3414 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3415 * sh-tdep.c (sh_gdbarch_init): Ditto.
3416 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3418
9a90a780
AC
34192003-06-07 Andrew Cagney <cagney@redhat.com>
3420
3421 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3422 "index" with "special_local_sect". Use strcmp instead of STREQ.
3423 Append period to coments.
3424
a39a16c4
MM
34252003-06-06 Mark Mitchell <mark@codesourcery.com>
3426
3427 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3428 (elfstab_offset_sections): Likewise.
3429 * gdb-stabs.h (stab_section_info): Likewise.
3430 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3431 * objfiles.c (objfile_relocate): Likewise.
3432 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3433 * remote.c (get_offsets): Likewise.
3434 (remote_cisco_objfile_relocate): Likewise.
3435 * somread.c (som_symfile_offsets): Likewise.
3436 * symfile.c (alloc_section_addr_info): New function.
3437 (build_section_addr_info_from_section_tab): Use it.
3438 (free_section_addr_info): Adjust.
3439 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3440 (syms_from_objfile): Allocate local_addr dynamically.
3441 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3442 dynamically.
3443 (add_symbol_file_command): Allocate sect_opts dynamically.
3444 (reread_symbols): Avoid use of SECT_OFF_MAX.
3445 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3446 (alloc_section_addr_info): Declare it.
3447 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3448 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3449 dynamically.
3450 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3451
20c6c2f8
AC
34522003-06-06 Andrew Cagney <cagney@redhat.com>
3453
3454 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3455 (d10v_frame_unwind_cache): Do not set "return_pc".
3456
884a26c8
MS
34572003-06-06 Michael Snyder <msnyder@redhat.com>
3458
3459 * h8300-tdep.c: Make tidy (long lines).
3460
088ce440
ML
34612003-06-06 Michal Ludvig <mludvig@suse.cz>
3462
8ffd9b1b 3463 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3464 to regcache_collect().
3465
7d773d96
JB
34662003-06-05 J. Brobecker <brobecker@gnat.com>
3467
3468 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3469 pc_in_sigtramp multiarch method.
3470 (hppa_hpux_som_init_abi): Use it.
3471 (hppa_hpux_elf_init_abi): Likewise.
3472 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3473 macro has been multiarched.
3474 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3475 macro here, as hppa64 isn't multiarched yet.
3476
1df6926e
AC
34772003-06-05 Andrew Cagney <cagney@redhat.com>
3478
3479 * Makefile.in (value_h): Add $(frame_h).
3480 * value.h: Include "frame.h".
3481 (struct value): Replace "frame_addr" with "frame_id".
3482 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3483 * values.c (allocate_value): Use VALUE_FRAME_ID.
3484 (value_copy): Use VALUE_FRAME_ID.
3485 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3486 * valops.c (value_assign): Update. Use frame_find_by_id.
3487
6b53acc6
ML
34882003-06-05 Michal Ludvig <mludvig@suse.cz>
3489
3490 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3491 in each pass.
3492
4d9850d3
JJ
34932003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3494
3495 * thread-db.c (check_event): For create/death event breakpoints,
3496 loop through all messages to ensure that we read the message
3497 corresponding to the breakpoint we are at.
3498
8efca6ba
MS
34992003-06-04 Michael Snyder <msnyder@redhat.com>
3500
3501 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3502
0912c7f2
MK
35032003-06-04 Mark Kettenis <kettenis@gnu.org>
3504
3505 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3506 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3507 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3508 when handling .eh_frame sections.
3509
4e370325
JB
35102003-06-04 J. Brobecker <brobecker@gnat.com>
3511
3512 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3513 prepare_to_proceed procedure instead of the hppa-specific one.
3514 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3515
b757528f 35162003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3517
b757528f
JJ
3518 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3519 * config.in: Regenerated.
3520 * configure.in: Add test for syscall function and check for
3521 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3522 * configure: Regenerated.
3523 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3524 <sys/syscall.h>.
3525 (kill_lwp): New function that uses tkill syscall or
3526 uses kill, depending on whether threading model is nptl or not.
3527 All callers of kill() changed to use kill_lwp().
3528 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3529 see if all threads have already exited in the nptl model.
3530 (stop_and_resume_callback): New callback function used by the
3531 lin_lwp_wait thread exit handling code.
3532 (stop_wait_callback): Check for threads already having exited and
3533 delete such threads fromt the lwp list when discovered.
3534 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3535
b757528f
JJ
3536 Roland McGrath <roland@redhat.com>
3537 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3538 nptl libthread_db.
3539
087779b1
RH
35402003-06-03 Richard Henderson <rth@redhat.com>
3541
b21fd293
RH
3542 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3543 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3544 (alpha_sigtramp_frame_prev_register): Likewise.
3545 (alpha_heuristic_frame_prev_register): Likewise.
3546 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3547
8ffd9b1b 3548 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3549 alpha-specific register id names.
3550 (alpha_mdebug_frame_unwind_cache): Likewise.
3551 (alpha_mdebug_frame_prev_register): Likewise.
3552
baa490c4
RH
35532003-06-03 Richard Henderson <rth@redhat.com>
3554
3555 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3556 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3557 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3558 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3559 unwind routines.
3560 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3561 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3562 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3563
3564 * alpha-linux-tdep.c: Remove unnecessary includes.
3565 * Makefile.in (alpha-linux-tdep.o): Update.
3566
35672003-06-03 Richard Henderson <rth@redhat.com>
3568
3569 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3570 (alphabsd_fill_fpreg): Likewise.
3571
f534e522
JB
35722003-06-03 J. Brobecker <brobecker@gnat.com>
3573
3574 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3575 references to struct frame_info fields by calls to the equivalent
3576 accessors. Necessary now that frame_info is opaque.
3577
4035536b
JB
35782003-06-03 J. Brobecker <brobecker@gnat.com>
3579
3580 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3581 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3582 structure, field no longer exists.
3583
0bd79c5c
JB
35842003-06-03 J. Brobecker <brobecker@gnat.com>
3585
3586 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3587 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3588
37bb6d9f
JB
35892003-06-03 J. Brobecker <brobecker@gnat.com>
3590
3591 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3592 references to struct frame_info fields by calls to the equivalent
3593 accessors. Necessary now that frame_info is opaque.
3594
852ee05c
JB
35952003-06-03 J. Brobecker <brobecker@gnat.com>
3596
3597 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3598 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3599 structure, field no longer exists.
3600
7d58c67d
TR
36012003-06-03 Theodore A. Roth <troth@openavr.org>
3602
8ffd9b1b 3603 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3604 accumulation of the size of all registers instead of blindly using
3605 DEPRECATED_REGISTER_BYTES.
3606
0a48e7e8
MS
36072003-06-03 Michael Snyder <msnyder@redhat.com>
3608
3609 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3610 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3611 for h8300sx.
3612
9798ab0d
JB
36132003-06-03 J. Brobecker <brobecker@gnat.com>
3614
3615 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3616 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3617
00b037e2
AC
36182003-06-03 Andrew Cagney <cagney@redhat.com>
3619
3620 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3621 (sparc_convert_to_raw): Delete function.
3622 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3623 register_convert_to_virtual.
3624
043b2f77
JJ
36252003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3626
3627 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3628 layer if not dealing with a statically-linked threaded program.
3629
f43caff8
KW
36302003-06-03 Kris Warkentin <kewarken@qnx.com>
3631
3632 * solib.c (solib_open): Update comment to reflect actual search order.
3633
ae1e7417
AC
36342003-06-03 Andrew Cagney <cagney@redhat.com>
3635
3636 * frame.c (get_frame_memory_signed): New function.
3637 (get_frame_memory, get_frame_memory_unsigned): New function.
3638 (get_frame_arch): New function.
3639 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3640 (get_frame_memory, get_frame_unsigned_memory): Declare.
3641 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3642 get_frame_memory_unsigned and get_frame_arch.
3643 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3644
cb123844
RG
36452003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3646
3647 * MAINTAINERS (write after approval): Add myself.
3648
1bb792e9
JB
36492003-06-03 Jim Blandy <jimb@redhat.com>
3650
3651 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3652 elements of gregset_t are 64 bits each, but access registers
3653 are still 32 bits, so they're packed two per gregset_t
3654 element. Unpack/pack them properly.
3655
aee8d8ba
DC
36562003-06-02 David Carlton <carlton@bactrian.org>
3657
3658 * linespec.c (find_methods): Break out code into
3659 add_matching_methods and add_constructors.
3660 (add_matching_methods): New.
3661 (add_constructors): Ditto.
3662
bf7488d2
AC
36632003-06-02 Andrew Cagney <cagney@redhat.com>
3664
bf7488d2
AC
3665 * sparc-tdep.c (sparc_print_registers): Delete call to
3666 REGISTER_CONVERTIBLE.
3667 (sparc_gdbarch_init): Do not set register_convertible.
3668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3669 * frv-tdep.c (frv_gdbarch_init): Ditto.
3670 * cris-tdep.c (cris_gdbarch_init): Ditto.
3671
adedef68
EZ
36722003-06-02 Elena Zannoni <ezannoni@redhat.com>
3673
8ffd9b1b 3674 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3675 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3676 (syms_from_objfile): Ditto.
3677
650fcc91
AS
36782003-06-03 Andreas Schwab <schwab@suse.de>
3679
3680 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3681 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3682
df4a182b
RH
36832003-06-02 Richard Henderson <rth@redhat.com>
3684
3685 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3686 a member of all_reggroup.
3687
c483c494
RH
36882003-06-02 Richard Henderson <rth@redhat.com>
3689
3690 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3691 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3692 (alpha_lds, alpha_sts): New.
3693 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3694 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3695 restructure and fail for type sizes other than 4 or 8.
3696 (alpha_value_to_register): Similarly.
3697 (alpha_extract_return_value): Use alpha_sts.
3698 (alpha_store_return_value): Use alpha_lds.
3699 (alpha_gdbarch_init): Update hooks.
3700
b38b6be2
RH
37012003-06-02 Richard Henderson <rth@redhat.com>
3702
3703 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3704 regnum identifiers.
3705 (alpha_sigtramp_register_address): Likewise.
3706
98a8e1e5
RH
37072003-06-02 Richard Henderson <rth@redhat.com>
3708
3709 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3710 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3711 * alpha-tdep.h: Declare them.
3712
3713 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3714 Remove zerobuf. Don't error on UNIQUE.
3715 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3716 (ALPHA_REGSET_UNIQUE): Provide default.
3717 (supply_gregset): Use alpha_supply_int_regs.
3718 (fill_gregset): Use alpha_fill_int_regs.
3719 (supply_fpregset): Use alpha_supply_fp_regs.
3720 (fill_fpregset): Use alpha_fill_fp_regs.
3721 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3722 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3723 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3724 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3725 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3726 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3727
67dfac52
RH
37282003-06-02 Richard Henderson <rth@redhat.com>
3729
f75d70cc
RH
3730 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3731
67dfac52
RH
3732 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3733 (alpha_store_return_value): Likewise.
3734
0cf566ec
DC
37352003-06-02 David Carlton <carlton@math.stanford.edu>
3736
3737 * block.c (contained_in): Add 'const' to arguments.
3738 (block_function): Ditto.
3739 * block.h: Update declarations for block_function and
3740 contained_in.
3741
cdef89d0
DC
37422003-06-02 David Carlton <carlton@math.stanford.edu>
3743
3744 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3745 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3746 * p-valprint.c (pascal_val_print): Ditto.
3747 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3748
72667056
RH
37492003-06-02 Richard Henderson <rth@redhat.com>
3750
98a8e1e5
RH
3751 * alpha-tdep.c (alpha_push_dummy_call): Use
3752 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3753
8ffd9b1b 3754 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3755 sign-extension of 32-bit values.
3756 (alpha_store_return_value): Similarly.
0ede8eca 3757
98a8e1e5
RH
3758 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3759 (alpha_extract_return_value): Likewise.
3760 (alpha_store_return_value): Likewise.
7b5e1cb3 3761
98a8e1e5
RH
3762 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3763 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3764
98a8e1e5
RH
3765 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3766 (alpha_extract_struct_value_address): Likewise.
3767 (alpha_store_return_value): Likewise.
3768 (alpha_store_struct_return): Remove.
3769 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3770
98a8e1e5
RH
3771 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3772 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3773 macros where appropriate.
3774 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3775 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3776
98a8e1e5
RH
3777 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3778 for SP, GP; void_func_ptr for PC; non-language-specific types
3779 for all others.
3780 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3781
6dd77b81
RH
37822003-06-02 Richard Henderson <rth@redhat.com>
3783
3784 * top.h (lim_at_start): Declare.
3785 * main.c (captured_main): Set it.
3786 * top.c (lim_at_start): Define.
3787 (command_loop): Use it instead of &environ.
3788 * event-top.c (command_handler): Likewise.
3789
f4dbdb54
JT
37902003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3791
3792 * mipsnbsd-tdep.c: Update copyright years.
3793 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3794
8f285956
RH
37952003-06-01 Richard Henderson <rth@redhat.com>
3796
98a8e1e5
RH
3797 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3798 (alpha-linux-tdep.o): Update dependencies.
3799 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3800 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3801
615967cb
RH
38022003-06-01 Richard Henderson <rth@redhat.com>
3803
98a8e1e5
RH
3804 * alpha-tdep.c (alpha_register_reggroup_p): New.
3805 (alpha_gdbarch_init): Register it.
615967cb 3806
b59661bd
AC
38072003-06-02 Andrew Cagney <cagney@redhat.com>
3808
3809 * dwarfread.c: Eliminate "register"
3810 (decode_die_type): Eliminate assignment within "if".
3811 (struct_type, decode_array_element_type): Ditto.
3812 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3813 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3814 (decode_modified_type, completedieinfo): Ditto.
3815 * block.c: Eliminate "register".
3816 (blockvector_for_pc_sect): Eliminate assignment within "if".
3817 * cp-support.h (struct symbol): Opaque declaration.
3818 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3819
5ef165c2
RH
38202003-06-01 Richard Henderson <rth@redhat.com>
3821
98a8e1e5
RH
3822 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3823 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3824
143985b7
AF
38252003-06-01 Adam Fedor <fedor@gnu.org>
3826
3827 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3828 * gdbarch.[ch]: Regenerate.
3829 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3830 (hppa_gdbarch_init): Set it in the gdbarch vector.
3831 * i386-tdep.c (i386_fetch_pointer_argument): New
3832 (i386_gdbarch_init): Set it into gdbarch.
3833 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3834 (rs6000_gdbarch_init): Set it in gdbarch.
3835 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3836 (sparc_gdbarch_init): Set it in gdbarch.
3837
ae0167b9
AC
38382003-06-01 Andrew Cagney <cagney@redhat.com>
3839
7c0b4a20
AC
3840 * defs.h (extract_address): Delete declaration.
3841 * findvar.c (extract_address): Delete function.
3842 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3843 extract_address with the inline equivalent,
3844 extract_unsigned_integer.
3845 (xstormy16_extract_struct_value_address): Ditto.
3846 (xstormy16_pointer_to_address): Ditto.
3847 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3848 * v850-tdep.c (v850_push_arguments): Ditto.
3849 (v850_extract_return_value): Ditto.
3850 (v850_extract_struct_value_address): Ditto.
3851 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3852 (sparcnbsd_get_longjmp_target_64): Ditto.
3853 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3854 (get_longjmp_target): Ditto.
3855 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3856 (sh64_extract_struct_value_address): Ditto.
3857 (sh_push_arguments): Ditto.
3858 (sh64_push_arguments): Ditto.
3859 * remote-vxsparc.c (vx_read_register): Ditto.
3860 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3861 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3862 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3863 * mipsv4-nat.c (get_longjmp_target): Ditto.
3864 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3865 * mips-nat.c (get_longjmp_target): Ditto.
3866 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3867 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3868 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3869 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3870 * irix5-nat.c (get_longjmp_target): Ditto.
3871 * irix4-nat.c (get_longjmp_target): Ditto.
3872 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3873 (ia64_push_arguments): Ditto.
3874 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3875 * h8300-tdep.c (h8300_push_arguments): Ditto.
3876 (h8300_store_return_value): Ditto.
3877 (h8300_extract_struct_value_address): Ditto.
3878 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3879 (frv_push_arguments): Ditto.
3880 * avr-tdep.c (avr_pointer_to_address): Ditto.
3881 (avr_push_arguments): Ditto.
3882 * arm-tdep.c (arm_push_dummy_call): Ditto.
3883 (arm_get_longjmp_target): Ditto.
3884 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3885 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3886 (alpha_get_longjmp_target): Ditto.
3887
ae0167b9
AC
3888 * solib-irix.c (extract_mips_address): Inline extract_address,
3889 replacing it with extract_signed_integer.
3890 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3891 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3892 (first_link_map_member, open_symbol_file_object): Ditto.
3893 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3894 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3895 (LM_NEXT, LM_NAME): Ditto.
3896
44d88583
RH
38972003-06-01 Richard Henderson <rth@redhat.com>
3898
98a8e1e5
RH
3899 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3900 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3901 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3902 (alpha_cannot_store_register): Likewise.
3903 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3904 * alpha-nat.c (supply_gregset): Likewise.
3905 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3906
310e9b6a
AC
39072003-06-01 Andrew Cagney <cagney@redhat.com>
3908
3909 * infcall.c (call_function_by_hand): Update comment on
3910 DEPRECATED_DUMMY_WRITE_SP.
3911
3912 * mips-tdep.c (mips_gdbarch_init): Do not set
3913 deprecated_dummy_write_sp.
3914 (mips_eabi_push_dummy_call): Set the SP register.
3915 (mips_o64_push_dummy_call): Set the SP register.
3916 (mips_o32_push_dummy_call): Set the SP register.
3917 (mips_n32n64_push_dummy_call): Set the SP register.
3918
5ab84872
RH
39192003-06-01 Richard Henderson <rth@redhat.com>
3920
98a8e1e5
RH
3921 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3922 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3923 (supply_gregset): Likewise.
3924 * alpha-tdep.c (alpha_store_return_value): Likewise.
3925 (alpha_get_longjmp_target): Likewise.
3926 (alpha_register_name): Constify array.
3927 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3928 deprecated_register_size, deprecated_register_bytes,
3929 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3930 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3931 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3932
09cc52fd
RH
39332003-06-01 Richard Henderson <rth@redhat.com>
3934
3935 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3936 from arg_reg_buffer to regcache to avoid double conversion.
3937
c7f16359
MK
39382003-06-01 Mark Kettenis <kettenis@gnu.org>
3939
3940 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3941 SP_REGNUM.
3942 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3943 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3944
7131cb6e
RH
39452003-06-01 Richard Henderson <rth@redhat.com>
3946
98a8e1e5
RH
3947 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3948 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3949
f3e0f90b
RH
39502003-06-01 Richard Henderson <rth@redhat.com>
3951
98a8e1e5
RH
3952 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3953 not overlapping PC_REGNUM.
f3e0f90b 3954
c88e30c0
RH
39552003-06-01 Richard Henderson <rth@redhat.com>
3956
98a8e1e5
RH
3957 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3958 alpha_push_arguments. Don't dump argument register data to
3959 the target stack. Fix float and 128-bit long double semantics.
3960 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3961 (alpha_fix_call_dummy): Remove.
3962 (alpha_call_dummy_words): Remove.
3963 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3964
f1a559ae
RH
39652003-06-01 Richard Henderson <rth@redhat.com>
3966
3967 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3968
5e045346
AC
39692003-06-01 Andrew Cagney <cagney@redhat.com>
3970
95404a3e
AC
3971 * mips-tdep.c (is_mips16_addr): New function.
3972 (make_mips16_addr, unmake_mips16_addr): New functions.
3973 (pc_is_mips16, mips_fetch_instruction): Use.
3974 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3975 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3976 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3977 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3978 TARGET_MIPS.
3979 * config/mips/tm-mips.h: Update copyright.
3980 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3981 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3982 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3983 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3984 (TM_PRINT_INSN_MACH): Delete.
3985 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3986
5e045346
AC
3987 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3988 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3989 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3990 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3991 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3992 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3993 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3994 mips*-*-riscos* and mips*-*-sysv* onto mips.
3995 * config/mips/mips64.mt: New file.
3996 * config/mips/mips.mt: New file.
3997 * config/mips/littlemips.mt: Delete file.
3998 * config/mips/decstation.mt: Delete file.
3999 * config/mips/vr4300el.mt: Delete file.
4000 * config/mips/vr5000el.mt: Delete file.
4001 * config/mips/vr5000.mt: Delete file.
4002 * config/mips/vr4100.mt: Delete file.
4003 * config/mips/vr4xxxel.mt: Delete file.
4004 * config/mips/vr4300.mt: Delete file.
4005 * config/mips/vr4xxx.mt: Delete file.
4006 * config/mips/bigmips.mt: Delete file.
4007 * config/mips/bigmips64.mt: Delete file.
4008 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4009 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4010 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4011 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4012 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4013 "tm-bigmips.h".
4014 * config/mips/tm-irix3.h: Ditto.
4015 * config/mips/tm-mipsv4.h: Ditto.
4016 * config/mips/tm-embed.h: Ditto.
4017 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4018 "tm-bigmips64.h".
4019 * config/mips/tm-vr5000el.h: Delete file.
4020 * config/mips/tm-tx39l.h: Delete file.
4021 * config/mips/tm-vr4300el.h: Delete file.
4022 * config/mips/tm-vr4xxxel.h: Delete file.
4023 * config/mips/tm-vr4300.h: Delete file.
4024 * config/mips/tm-vr4100.h: Delete file.
4025 * config/mips/tm-vr4xxx.h: Delete file.
4026 * config/mips/tm-vr5000.h: Delete file.
4027 * config/mips/tm-embedl64.h: Delete file.
4028 * config/mips/tm-embedl.h: Delete file.
4029 * config/mips/tm-embed64.h: Delete file.
4030 * config/mips/tm-bigmips64.h: Delete file.
4031 * config/mips/tm-bigmips.h: Delete file.
4032
2473a4a9
MK
40332003-06-01 Mark Kettenis <kettenis@gnu.org>
4034
97a5b208
MK
4035 Fix gdb/1216.
4036 * shnbsd-nat.c: Include "sh-tdep.h".
4037
2473a4a9
MK
4038 From Richard Henderson <rth@redhat.com>:
4039 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4040
e0f7ec59
AC
40412003-05-31 Andrew Cagney <cagney@redhat.com>
4042
4043 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4044 forward declaration.
4045 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4046 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4047 (mips_find_saved_regs): Use set_reg_offset.
4048 (mips_frame_init_saved_regs): Delete function.
4049 (mips_pop_frame): Call mips_find_saved_regs instead of
4050 DEPRECATED_FRAME_INIT_SAVED_REGS.
4051
68dcc709
AC
40522003-05-31 Andrew Cagney <cagney@redhat.com>
4053
4054 * mips-tdep.c (mips_gdbarch_init): Do not set
4055 deprecated_max_register_raw_size, register_virtual_size, and
4056 deprecated_max_register_virtual_size.
4057
cfc14b3a
MK
40582003-05-31 Mark Kettenis <kettenis@gnu.org>
4059
6405b0a6
MK
4060 * i386-tdep.c: Include "dwarf2-frame.h".
4061 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4062 * Makefile.in (i386-tdep.o): Update dependencies.
4063
cfc14b3a
MK
4064 * dwarf2-frame.c, dwarf2-frame.h: New files.
4065 * Makefile.in (SFILES): Add dwarf2-frame.c.
4066 (dwarf2_frame_h): Define.
4067 (COMMON_OBS): Add dwarf2-frame.o.
4068 (dwarf2-frame.o): Add dependencies.
4069
6a2751d2
AJ
40702003-05-31 Andreas Jaeger <aj@suse.de>
4071
4072 * x86-64-linux-nat.c: Fix comment.
4073
1c3545ae
MK
40742003-05-31 Mark Kettenis <kettenis@gnu.org>
4075
10f93086
MK
4076 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4077 function signature.
4078
1c3545ae
MK
4079 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4080 have a sigcontext_addr handler.
4081 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4082 sigcontext_addr handler.
4083
e11c53d2
AC
40842003-05-31 Andrew Cagney <cagney@redhat.com>
4085
4086 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4087 (print_fp_register_row): Replace do_fp_register_row.
4088 (mips_print_fp_register): Add "file" and "frame" parameters.
4089 (mips_print_register): Add "file" and "frame" parameters.
4090 (mips_print_registers_info): Replace mips_do_registers_info.
4091 (mips_gdbarch_init): Set print_registers_info instead of
4092 deprecated_do_registers_info.
4093 (mips_read_fp_register_single): Add "frame" parameter.
4094 (mips_read_fp_register_double): Add "frame" parameter.
4095
a3386186
MK
40962003-05-31 Mark Kettenis <kettenis@gnu.org>
4097
70913449
MK
4098 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4099 Fixes a bug where GDB would print the wrong register names for
4100 targets without SSE.
4101
2b5e0749
MK
4102 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4103 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4104 registers.
4105
4106 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4107 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4108 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4109 TDEP->sc_sp_offset.
4110
a3386186
MK
4111 From Michal Ludvig <mludvig@suse.cz>:
4112 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4113 and `sc_num_regs'.
4114 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4115 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4116 I386_ST0_REGNUM): Move here from...
4117 * i386-tdep.c: ... here.
4118 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4119 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4120 registers if possible.
4121 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4122 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4123 Remove variables.
4124 (i386bsd_sc_reg_offset): New variable.
4125 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4126 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4127 TDEP->sc_sp_offset.
4128 (i386fbsd_sc_reg_offset): New variable.
4129 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4130 TDEP->sc_num_regs.
4131 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4132 variables.
4133 (i386fbsd4_sc_reg_offset): New variable.
4134 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4135 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4136 TDEP->sc_sp_offset.
4137 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4138 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4139 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4140 Remove variables.
4141 (i386nbsd_sc_reg_offset): New variable.
4142 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4143 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4144 TDEP->sc_sp_offset.
4145 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4146 Remove variables.
4147 (i386obsd_sc_reg_offset): New variable.
4148 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4149 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4150 TDEP->sc_sp_offset.
4151 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4152 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4153 for frame pointer offset in `struct sigcontext'.
4154
25ab4790
AC
41552003-05-31 Andrew Cagney <cagney@redhat.com>
4156
4157 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4158 architecture methods call_dummy_words, sizeof_call_dummy_words,
4159 push_return_address, store_struct_return, and fix_call_dummy. Set
4160 push_dummy_call instead of deprecated_push_arguments.
4161 (mips_store_struct_return): Delete function.
4162 (mips_fix_call_dummy): Delete function.
4163 (mips_push_return_address): Delete function.
4164 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4165 RA_REGNUM and T9_REGNUM.
4166 (mips_n32n64_push_dummy_call): Ditto for
4167 mips_n32n64_push_arguments.
4168 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4169 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4170
6a65450a
AC
41712003-05-31 Andrew Cagney <cagney@redhat.com>
4172
4173 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4174 "dummy_addr" to "bp_addr".
4175 * infcall.c (call_function_by_hand): Pass "funaddr" to
4176 gdbarch_push_dummy_call.
4177 * gdbarch.h, gdbarch.c: Re-generate.
4178 * i386-tdep.c (i386_push_dummy_call): Update.
4179 * arm-tdep.c (arm_push_dummy_call): Update.
4180 * d10v-tdep.c (d10v_push_dummy_call): Update.
4181
c4f35dd8
MK
41822003-05-31 Mark Kettenis <kettenis@gnu.org>
4183
4184 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4185 variable declarations.
4186 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4187 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4188 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4189 x86_64_init_frame_pc, x86_64_init_frame_pc,
4190 x86_64_function_has_prologue): Remove prototypes.
4191 (X86_64_NUM_GREGS): New define.
4192 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4193 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4194 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4195 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4196 XMM1_REGNUM): Remove defines.
4197 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4198 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4199 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4200 X86_64_XMM1_REGNUM): New defines.
4201 (struct x86_64_register_info): Renamed from `struct
4202 register_info'. Remove `size' member.
4203 (x86_64_register_info_table): Remove variable.
4204 (x86_64_register_info): New variable.
4205 (X86_64_NUM_REGS): New define.
4206 (X86_64_NUM_GREGS): Remove define.
4207 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4208 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4209 Remove variables.
4210 (x86_54_dwarf2_reg_to_regnum): Remove function.
4211 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4212 (x86_64_dwarf_reg_to_regnum): New function.
4213 (x86_64_register_name): Rewrite.
4214 (x86_64_register_raw_size): Remove function.
4215 (x86_64_register_byte_table): Remove variable.
4216 (x86_64_register_byte): Remove function.
4217 (x86_64_register_virtual_type): Remove function.
4218 (x86_64_register_type): New function.
4219 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4220 x86_64_register_convert_to_raw): Remove functions.
4221 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4222 (x86_64_use_struct_convention): Make static. Adjust for renamed
4223 defines.
4224 (x86_64_frame_init_saved_regs): Remove function.
4225 (x86_64_push_arguments): Make static. Change to accept a regcache
4226 as argument.
4227 (x86_64_store_return_value, x86_64_extract_return_value): Make
4228 static. Rewrite based on i386 counterparts.
4229 (x86_64_push_dummy_call): New function.
4230 (X86_64_NUM_SAVED_REGS): New define.
4231 (x86_64_register_number): Remove function.
4232 (x86_64_store_struct_return): Remove function.
4233 (x86_64_frameless_function_invocation,
4234 x86_64_function_has_prologue): Remove functions.
4235 (PROLOG_BUFSIZE): Remove define.
4236 (struct x86_64_frame_cache): New structure.
4237 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4238 x86_64_frame_cache, x86_64_frame_this_id,
4239 x86_64_frame_prev_register, x86_64_frame_p,
4240 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4241 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4242 functions.
4243 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4244 variables.
4245 (x86_64_skip_prologue): Rewrite in terms of
4246 x86_64_analyze_prologue.
4247 (x86_64_frame_base_address): New function.
4248 (x86_64_frame_base): New variable.
4249 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4250 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4251 set deprecated_fp_regnum, deprecated_register_size,
4252 deprecated_register_bytes, register_raw_size, register_byte,
4253 register_virtual_type, register_convertiable,
4254 register_convert_to_virtual, convert_to_raw,
4255 deprecated_get_saved_register, deprecated_target_read_fp,
4256 deprecated_push_arguments, deprecated_push_return_address,
4257 deprecated_pop_frame, deprecated_store_struct_return,
4258 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4259 frameless_function_invocation, deprecated_frame_saved_pc,
4260 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4261 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4262 deprecated_init_frame_pc and virtual_frame_pointer. Call
4263 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4264 and x86_64_frame_p. Call frame_base_set_default to register
4265 x86_64_frame_base.
4266 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4267 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4268 (_initialize_x86_64_tdep): Remove function.
4269 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4270 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4271 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4272 define.
4273 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4274 (x86_64_linux_sigcontext_addr): Rewrite.
4275 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4276 x86_64_linux_frame_saved_pc): Remove functions.
4277 (x86_64_linux_pc_in_sigtramp): Renamed from
4278 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4279 trampoline.
4280 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4281 Remove_functions.
4282 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4283 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4284 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4285 (x86_64_regmap): Rename to regmap.
4286 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4287 x86_64_num_gregs.
4288 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4289 x86_64_regmap.
4290 (x86_64_fxsave_offset): Remove function.
4291 (supply_fpregset): Simply call x86_64_supply_fxsave.
4292 (fill_fpregset): Simply call x86_64_fill_fxsave.
4293 (fetch_inferior_registers, store_inferior_registers): Avoid
4294 asignment in if-statement.
4295 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4296 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4297 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4298 (fetch_core_registers): Remove function.
4299 (linux_elf_core_fns): Remove.
4300 (offsetoff): Don't define.
4301 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4302 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4303 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4304 add core-regset.o.
4305 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4306 protection against multiple includes instead of NM_X86_64_h. Add
4307 various comments. Include "config/nm-linux.h". Don't include
4308 <signal.h>.
4309 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4310 GET_THREAD_SIGNALS): Remove defines.
4311 (x86_64_register_u_addr, kernel_u_size,
4312 lin_thread_get_thread_signals): Remove prototypes.
4313 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4314 [HAVE_LINK_H]: Don't include "solib.h".
4315 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4316 * config/i386/tm-x86-64linux.h: Fix comments.
4317 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4318 x86-64-tdep.o): Update dependencies.
4319
c25083af
AC
43202003-05-30 Andrew Cagney <cagney@redhat.com>
4321
c8f55a7b
AC
4322 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4323 Change parameter type to a "struct regcache *".
4324
c25083af
AC
4325 * gdbarch.sh: Regardless of the multi-arch level, always define
4326 the macro when not already defined.
4327 * gdbarch.h, gdbarch.c: Re-generate.
4328
fbe586ae
RH
43292003-05-30 Richard Henderson <rth@redhat.com>
4330
4331 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4332 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4333 (alpha_mdebug_frame_this_id): Likewise.
4334 (alpha_mdebug_frame_prev_register): Likewise.
4335 (alpha_mdebug_frame_base_address): Likewise.
4336 (alpha_mdebug_frame_locals_address): Likewise.
4337 (alpha_mdebug_frame_args_address): Likewise.
4338 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4339 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4340 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4341 loop increment.
4342 (alpha_heuristic_frame_this_id): Make static.
4343 (alpha_heuristic_frame_prev_register): Likewise.
4344 (alpha_heuristic_frame_base_address): Likewise.
4345 * alpha-tdep.h: Update.
4346
acd5c798
MK
43472003-05-30 Mark Kettenis <kettenis@gnu.org>
4348
4349 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4350 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4351 defenitions.
4352 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4353 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4354 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4355 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4356 I386_ST0_REGNUM): New defines.
4357 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4358 codestream_get): Remove define.
4359 (codestream_next_addr, condestream_addr, condestream_buf,
4360 codestream_off, codestream_cnt): Remove variables.
4361 (codestream_fill, codestream_seek, codestream_read): Remove
4362 functions.
4363 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4364 functionality.
4365 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4366 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4367 i386_frame_saved_pc, i386_saved_pc_after_call,
4368 i386_frame_num_args, i386_frame_init_saved_regs,
4369 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4370 i386_push_arguments): Remove functions.
4371 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4372 functionality. Use i386_analyze_prologue instead of
4373 i386_get_frame_setup.
4374 (I386_NUM_SAVED_REGS): New define.
4375 (struct i386_frame_cache): New structure.
4376 (i386_alloc_frame_cache, i386_analyze_struct_return,
4377 i386_skip_probe, i386_analyze_frame_setup,
4378 i386_analyze_register_saves, i386_analyze_prologue,
4379 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4380 i386_frame_prev_register, i386_sigtramp_frame_cache,
4381 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4382 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4383 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4384 New functions.
4385 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4386 New variables.
4387 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4388 I386_EAX_REGNUM and I386_EDX_REGNUM.
4389 (i386_extract_return_value, i386_store_return_value): Use
4390 I386_ST0_REGNUM where appropriate.
4391 (i386_extract_struct_value_address): Rewrite to use extract_address.
4392 (i386_svr4_pc_in_sigtramp): Add comment.
4393 (i386_svr4_sigcontext_addr): Rewrite.
4394 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4395 TDEP->sc_sp_offset.
4396 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4397 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4398 of new defines. Set push_dummy_call, don't set
4399 deprecated_push_arguments, deprecated_push_return_address,
4400 deprecated_pop_frame. Don't set parm_boundary. Don't set
4401 deprecated_frame_chain, deprecated_frame_saved_pc,
4402 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4403 save_dummy_frame_tos, unwind_pc. Call
4404 frame_unwind_append_predicate and frame_base_set_default. Don't
4405 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4406 Don't set frameless_function_invocation. Don't set
4407 deprecated_register_bytes, deprecated_register_size,
4408 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4409 * i386-linux-tdep.c: Fix formatting in some comments.
4410 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4411 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4412 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4413 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4414 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4415 redundant parentheses.
4416 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4417 (i386_linux_sigcontext_addr): Use it. Rewrite.
4418 (find_minsym_and_objfile): Change name of second argument.
4419 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4420 changed. Use frame_pc_unwind instead of
4421 DEPRECATED_SAVED_PC_AFTER_CALL.
4422 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4423 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4424 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4425 unwinder.
4426 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4427 "dummy-frame.h".
4428 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4429 (_initialize_i386_cygwin_tdep): New prototype.
4430 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4431 deprecated_frame_chain_valid.
4432 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4433 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4434 Rely on the SVR4 defaults.
4435 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4436 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4437
c89b70f1
AC
44382003-05-30 Andrew Cagney <cagney@redhat.com>
4439
4440 * infcall.c (call_function_by_hand): Always call
4441 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4442
85b32d22
RH
44432003-05-30 Richard Henderson <rth@redhat.com>
4444
c89b70f1
AC
4445 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4446 increment.
85b32d22 4447
bfe51b1e
JB
44482003-05-29 Jim Blandy <jimb@redhat.com>
4449
4450 Use gdbarch methods for solib stuff on PowerPC Linux.
4451 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4452 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4453 show through.
4454 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4455 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4456 giving the same effect as the #definitions above.
4457
1abf022c
AF
44582003-05-29 Adam Fedor <fedor@gnu.org>
4459
4460 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4461 (find_implementation_from_class): Replace it with the standard
4462 case i.e. do nothing.
4463
d2427a71
RH
44642003-05-29 Richard Henderson <rth@redhat.com>
4465
4466 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4467 (alpha_linux_sigtramp_offset): Use it. Make static.
4468 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4469 update for new frame model.
4470 * alpha-mdebug-tdep.c: New file.
4471 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4472 (alpha_osf1_init_abi): Install it.
4473 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4474 (linked_proc_desc_table): Remove.
4475 (alpha_frame_past_sigtramp_frame): Remove.
4476 (alpha_dynamic_sigtramp_offset): Remove.
4477 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4478 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4479 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4480 (push_sigtramp_desc): Remove.
4481 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4482 (alpha_cannot_store_register): Likewise.
4483 (alpha_sigcontext_addr): Remove.
4484 (alpha_find_saved_regs): Remove.
4485 (alpha_frame_init_saved_regs): Remove.
4486 (alpha_init_frame_pc_first): Remove.
4487 (read_next_frame_reg): Remove.
4488 (alpha_frame_saved_pc): Remove.
4489 (alpha_saved_pc_after_call): Remove.
4490 (temp_proc_desc, temp_saved_regs): Remove.
4491 (alpha_about_to_return): Remove.
4492 (cached_proc_desc): Remove.
4493 (alpha_frame_chain): Remove.
4494 (alpha_print_extra_frame_info): Remove.
4495 (alpha_init_extra_frame_info): Remove.
4496 (alpha_frame_locals_address): Remove.
4497 (alpha_frame_args_address): Remove.
4498 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4499 (alpha_push_dummy_frame): Remove.
4500 (alpha_pop_frame): Remove.
4501 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4502 (alpha_read_insn): New.
4503 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4504 for different insn encodings.
4505 (alpha_in_lenient_prologue): Remove.
4506 (struct alpha_sigtramp_unwind_cache): New.
4507 (alpha_sigtramp_frame_unwind_cache): New.
4508 (alpha_sigtramp_register_address): New.
4509 (alpha_sigtramp_frame_this_id): New.
4510 (alpha_sigtramp_frame_prev_register): New.
4511 (alpha_sigtramp_frame_unwind): New.
4512 (alpha_sigtramp_frame_p): New.
4513 (struct alpha_heuristic_unwind_cache): New.
4514 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4515 don't count nop insns that occur between functions.
4516 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4517 heuristic_proc_desc, but without the mdebug wrapping.
4518 (alpha_heuristic_frame_this_id): New.
4519 (alpha_heuristic_frame_prev_register): New.
4520 (alpha_heuristic_frame_unwind): New.
4521 (alpha_heuristic_frame_p): New.
4522 (alpha_heuristic_frame_base_address): New.
4523 (alpha_heuristic_frame_base): New.
4524 (alpha_unwind_dummy_id): New.
4525 (alpha_unwind_pc): New.
4526 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4527 frame related deprecated initializations; install replacements.
4528 (alpha_dump_tdep): Remove.
4529 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4530 (alpha_read_insn, alpha_after_prologue,
4531 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4532 alpha_heuristic_frame_prev_register,
4533 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4534 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4535 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4536 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4537
93ec1121
AC
45382003-05-29 Andrew Cagney <cagney@redhat.com>
4539
4540 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4541 dependant on the availability of ASSERT_FUNCTION.
4542 (ASSERT_FUNCTION): Do not define when there is no function name.
4543
98f08d3d
KB
45442003-05-29 Kevin Buettner <kevinb@redhat.com>
4545
4546 From Jimi X <jimix@watson.ibm.com>:
4547 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4548
0897f59b
JB
45492003-05-28 Jim Blandy <jimb@redhat.com>
4550
4551 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4552 argument to ptrace to int; the system headers should give it the
4553 right type, and pointers don't fit in ints on powerpc64-*-*.
4554
14898363
L
45552003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4556
4557 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4558 DW_TAG_catch_block.
4559
a7a48797
EZ
45602003-05-26 Elena Zannoni <ezannoni@redhat.com>
4561
4562 * stabsread.c (dbx_lookup_type): Make static.
4563 (read_type): Ditto.
4564 (add_undefined_type): Ditto.
4565 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4566 not export.
4567
f5479e9c
EZ
45682003-05-26 Elena Zannoni <ezannoni@redhat.com>
4569
4570 * hpread.c (hpread_has_name): Make static.
4571 (hpread_psymtab_to_symtab): Ditto.
4572 (file_exists): Ditto.
4573 (hpread_call_pxdb): Ditto.
4574 (hpread_pxdb_needed): Ditto.
4575 (hpread_quick_traverse): Ditto.
4576 (hpread_get_header): Ditto.
4577 (hpread_get_lntt): Ditto.
4578 (hpread_get_slt): Ditto.
4579 (class_of): Ditto.
4580
eb2e12d7
AS
45812003-05-25 Andreas Schwab <schwab@suse.de>
4582
78bf922a
AS
4583 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4584 stack_align and deprecated_extra_stack_alignment_needed.
4585 (m68k_stack_align): Delete.
4586
eb2e12d7
AS
4587 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4588 (m68k_register_virtual_size): Likewise.
4589 (altos_skip_prologue): Remove obsolete function.
4590 (isi_frame_num_args): Likewise.
4591 (news_frame_num_args): Likewise.
4592 (m68k_fix_call_dummy): Make static.
4593 (m68k_push_dummy_frame): Likewise.
4594 (m68k_pop_frame): Likewise.
4595 (m68k_skip_prologue): Likewise.
4596 (m68k_frame_init_saved_regs): Likewise.
4597 (m68k_saved_pc_after_call): Likewise.
4598 (m68k_get_longjmp_target): Make multi-arch.
4599 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4600 structure. Register m68k_get_longjmp_target if enabled.
4601 * m68k-tdep.h (struct gdbarch_tdep): Define.
4602 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4603
4604 * Makefile.in (config.status): Also depend on configure.tgt
4605 and configure.host.
4606 (m68klinux-tdep.o): Update dependencies.
4607 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4608 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4609 (M68K_LINUX_JB_PC): Define.
4610 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4611 and take additional parameter.
4612 (m68k_linux_sigtramp_saved_pc): Update.
4613 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4614 m68k_linux_pc_in_sigtramp, in_plt_section,
4615 find_solib_trampoline_target.
4616 * config/m68k/tm-linux.h: Don't include any tm headers.
4617 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4618 (JB_ELEMENT_SIZE): Likewise.
4619 (JB_PC): Likewise.
4620 (GET_LONGJMP_TARGET): Likewise.
4621 (IN_SIGTRAMP): Likewise.
4622 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4623
eb2c22dc
MK
46242003-05-25 Mark Kettenis <kettenis@gnu.org>
4625
4626 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4627 (sparc32_push_arguments): Re-implement by calling
4628 sparc32_do_push_arguments.
4629
44b7b84e
MK
46302003-05-25 Mark Kettenis <kettenis@gnu.org>
4631
4632 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4633 SPARC_O1_REGNUM): New defines.
4634 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4635 (sparc32_store_return_value): New function.
4636 (sparc_extract_struct_value_address): Rewrite to operate on a
4637 regcache.
4638 (sparc_gdbarch_init): Don't set
4639 deprecated_extract_struct_value_address. Set
4640 extract_struct_value_address instead. Don't set
4641 deprecated_extract_return_value and deprecated_store_return_value
4642 for 32-bit targets. Set extract_return_value and
4643 store_return_value instead.
4644 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4645 DEPRECTAED_EXTRACT_RETURN_VALUE,
4646 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4647 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4648 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4649 (sparc_store_return_value): Remove prototype.
4650 (sparc32_store_return_value): New prototype.
4651 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4652 Adjust prototypes.
4653
f6ad61e3
MK
46542003-05-24 Mark Kettenis <kettenis@gnu.org>
4655
4656 * sparcnbsd-tdep.c: Include "gdb_string.h".
4657
b276f1bb
AC
46582003-05-23 Andrew Cagney <cagney@redhat.com>
4659
4660 * p-valprint.c (pascal_val_print): Replace extract_address with
4661 the inline equivalent extract_unsigned_integer.
4662 * jv-valprint.c (java_value_print): Ditto.
4663 * ada-valprint.c (ada_val_print_1): Ditto.
4664 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4665
e76c5fcc
TR
46662003-05-23 Theodore A. Roth <troth@openavr.org>
4667
4668 * blockframe.c (frameless_look_for_prologue): Remove unused
4669 after_prologue variable.
4670
2cdd89cb
MK
46712003-05-23 Mark Kettenis <kettenis@gnu.org>
4672
4673 * blockframe.c (get_pc_function_start): Rewrite to avoid
4674 asignments in if-statements.
4675
182d43bc
EZ
46762003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4677
4678 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4679 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4680 files, don't relocate absolute symbols (and do use mst_abs).
4681
e8f3fcdd
AC
46822003-05-23 Andrew Cagney <cagney@redhat.com>
4683
4684 * objc-lang.c: Include "gdb_assert.h".
4685 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4686 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4687 (gdb_check, gdb_check_fatal): Delete functions.
4688 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4689 gdb_assert.
4690 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4691 * Makefile.in (objc-lang.o): Update dependencies.
4692
3c23e6fb
ILT
46932003-05-22 Ian Lance Taylor <ian@airs.com>
4694
4695 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4696 with fprintf_filtered, not fprintf_unfiltered.
4697
af1342ab
AC
46982003-05-22 Andrew Cagney <cagney@redhat.com>
4699
4700 * stack.c (frame_info): Inline extract_address, replacing it with
4701 extract_unsigned_integer.
4702 * findvar.c (unsigned_pointer_to_address): Ditto.
4703 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4704 * dwarf2expr.c (dwarf2_read_address): Ditto.
4705 * frame.c (frame_pc_unwind): Update comment.
4706 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4707
47e242ec
JJ
47082003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4709
4710 * infptrace.c (detach): Call print_sys_errmsg rather than
4711 perror_with_name to issue warning message when errno is non-zero
4712 after calling ptrace detach.
4713
e2ac8128
JB
47142003-05-21 J. Brobecker <brobecker@gnat.com>
4715
4716 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4717 macro definitions from here...
4718 * hppa-tdep.c: ...to there.
4719
92b3541e
KB
47202003-05-20 Kevin Buettner <kevinb@redhat.com>
4721
4722 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4723 register_ptrace_addr(). Fix all callers.
4724
55809acb
AS
47252003-05-21 Andreas Schwab <schwab@suse.de>
4726
4727 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4728 dependencies.
4729 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4730 end.
4731 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4732 (_initialize_m68k_linux_tdep): New function.
4733 (m68k_linux_frame_saved_pc): Make static.
4734 (m68k_linux_extract_return_value): Likewise.
4735 (m68k_linux_store_return_value): Likewise.
4736 (m68k_linux_extract_struct_value_address): Likewise.
4737 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4738 Remove.
4739 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4740 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4741 (DEPRECATED_FRAME_SAVED_PC): Remove.
4742
0fbc10f7
KW
47432003-05-20 Kris Warkentin <kewarken@qnx.com>
4744
4745 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4746 regset numbering rather than our own.
4747
58da2eb2
DC
47482003-05-19 David Carlton <carlton@bactrian.org>
4749
4750 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4751
1fcb5155
DC
47522003-05-19 David Carlton <carlton@bactrian.org>
4753
4754 Partial fix for PR c++/827.
4755 * cp-support.h: Include symtab.h.
4756 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4757 * cp-namespace.c: Update contributors.
4758 (cp_lookup_symbol_nonlocal): New.
4759 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4760 (lookup_symbol_file): Ditto.
4761 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4762 * block.h: Declare block_scope, block_using, block_global_block.
4763 * block.c (block_scope): New.
4764 (block_using, block_global_block): Ditto.
4765 * Makefile.in (cp_support_h): Depend on symtab_h.
4766 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4767
5f9a71c3
DC
47682003-05-19 David Carlton <carlton@bactrian.org>
4769
4770 * language.h (struct language_defn): Add 'la_value_of_this'
4771 and 'la_lookup_symbol_nonlocal' members.
4772 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4773 lookup_symbol_static, lookup_symbol_global,
4774 lookup_symbol_aux_block.
4775 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4776 if we should search fields of this and how to do static/global
4777 lookup.
4778 (lookup_symbol_aux_block): Make extern.
4779 (basic_lookup_symbol_nonlocal): New.
4780 (lookup_symbol_static, lookup_symbol_global): Ditto.
4781 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4782 'la_lookup_symbol_nonlocal' members.
4783 * c-lang.c (c_language_defn, cplus_language_defn)
4784 (asm_language_defn, minimal_language_defn): Ditto.
4785 * jv-lang.c (java_language_defn): Ditto.
4786 * language.c (unknown_language_defn, auto_language_defn)
4787 (local_language_defn): Ditto.
4788 * m2-lang.c (m2_language_defn): Ditto.
4789 * objc-lang.c (objc_language_defn): Ditto.
4790 * scm-lang.c (scm_language_defn): Ditto.
4791 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4792 * p-lang.c (pascal_language_defn): Ditto for both.
4793 * Makefile.in (f-lang.o): Depend on value_h.
4794 (p-lang.o): Ditto.
4795
89a9d1b1
DC
47962003-05-19 David Carlton <carlton@bactrian.org>
4797
4798 * block.h: Declare block_static_block.
4799 * block.c (block_static_block): New.
4800 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4801 lookup_symbol_aux_local, calling block_static_block instead.
4802 (lookup_symbol_aux_local): Delete 'static_block' argument.
4803
eed3f8ab
DC
48042003-05-19 David Carlton <carlton@bactrian.org>
4805
4806 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4807
a09d8bda
ML
48082003-05-19 Michal Ludvig <mludvig@suse.cz>
4809
4810 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4811 register numbers mapping.
4812
69636828
AF
48132003-05-18 Adam Fedor <fedor@gnu.org>
4814
4815 * symtab.c (completion_list_objc_symbol): New function.
4816 (make_symbol_completion_list): Use it to add ObjC symbols
4817 when looking though the list.
4818 (language_search_unquoted_string): New function.
4819 (make_file_symbol_completion_list): Use it.
4820
55baeb84
AS
48212003-05-18 Andreas Schwab <schwab@suse.de>
4822
d0b45d99
AS
4823 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4824 dependencies.
4825 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4826 as m68k_linux_extract_return_value.
4827 (DEPRECATED_STORE_RETURN_VALUE): Define as
4828 m68k_linux_store_return_value.
4829 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4830 m68k_linux_extract_struct_value_address.
4831 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4832 get_next_frame, get_frame_base, get_frame_pc.
4833 (m68k_linux_frame_saved_pc): Use get_frame_base.
4834 (m68k_linux_extract_return_value): New function.
4835 (m68k_linux_store_return_value): New function.
4836 (m68k_linux_extract_struct_value_address): New function.
4837 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4838
55baeb84
AS
4839 * c-exp.y (typebase): Remove duplicate occurence of
4840 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4841 of lookup_signed_typename.
55baeb84 4842
b6b08ebf
MK
48432003-05-18 Mark Kettenis <kettenis@gnu.org>
4844
4845 * dwarf2loc.c (find_location_expression): Change type of second
4846 argument to `size_t *'.
4847 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4848 for size variable.
4849
5ad1c190
DC
48502003-05-18 David Carlton <carlton@bactrian.org>
4851
4852 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4853 'linkage_name'. Add comment.
4854 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4855 'linkage_name'.
4856 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4857 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4858 (lookup_block_symbol): Ditto.
4859
b8b527c5
AC
48602003-05-16 Andrew Cagney <cagney@redhat.com>
4861
4862 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4863 * gdbarch.h, gdbarch.c: Re-generate.
4864 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4865 * TODO (REGISTER_BYTES): Delete reference.
4866 * alpha-tdep.c (alpha_gdbarch_init): Update.
4867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4868 * x86-64-tdep.c (x86_64_init_abi): Update.
4869 * vax-tdep.c (vax_gdbarch_init): Update.
4870 * v850-tdep.c (v850_gdbarch_init): Update.
4871 * sparc-tdep.c (sparc_gdbarch_init): Update.
4872 * sh-tdep.c (sh_gdbarch_init): Update.
4873 * s390-tdep.c (s390_gdbarch_init): Update.
4874 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4875 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4876 (ns32k_gdbarch_init_32382): Update.
4877 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4878 * mcore-tdep.c (mcore_gdbarch_init): Update.
4879 * m68k-tdep.c (m68k_gdbarch_init): Update.
4880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4881 * ia64-tdep.c (ia64_gdbarch_init): Update.
4882 * i386-tdep.c (i386_gdbarch_init): Update.
4883 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4884 * hppa-tdep.c (hppa_gdbarch_init): Update.
4885 * h8300-tdep.c (h8300_gdbarch_init): Update.
4886 * frv-tdep.c (frv_gdbarch_init): Update.
4887 * cris-tdep.c (cris_gdbarch_init): Update.
4888 * avr-tdep.c (avr_gdbarch_init): Update.
4889 * arm-tdep.c (arm_gdbarch_init): Update.
4890 * sparc-tdep.c (sparc_pop_frame): Update.
4891 * rs6000-tdep.c (rs6000_pop_frame): Update.
4892 * remote.c (init_remote_state): Update.
4893 (remote_prepare_to_store): Update.
4894 * remote-vx.c (vx_prepare_to_store): Update.
4895 * remote-sds.c (sds_fetch_registers): Update.
4896 (sds_prepare_to_store): Update.
4897 * remote-array.c: Update.
4898 * regcache.c (init_legacy_regcache_descr): Update.
4899 (init_regcache_descr): Update.
4900 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4901 (mips_o64_extract_return_value): Update.
4902 * irix5-nat.c (fetch_core_registers): Update.
4903 * irix4-nat.c (fetch_core_registers): Update.
4904 * i386-tdep.h: Update.
4905 * hppa-tdep.c (pa_do_registers_info): Update.
4906 (pa_do_strcat_registers_info): Update.
4907 * cris-tdep.c (cris_register_bytes_ok): Update.
4908 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4909 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4910 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4911 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4912 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4913 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4914 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4915 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4916 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4917 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4918 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4919 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4920 (REGISTER_BYTES_OK): Update.
4921 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4922 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4923
ee2842e2
ILT
49242003-05-16 Ian Lance Taylor <ian@airs.com>
4925
4926 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4927 (vax_print_insn, print_insn_arg): Remove static functions.
4928 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4929 print_insn_vax from opcodes library.
4930 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4931
973177d3
AC
49322003-05-15 Andrew Cagney <cagney@redhat.com>
4933
aaab4dba
AC
4934 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4935 * target.h (memory_breakpoint_from_pc): Delete declaration.
4936 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4937 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4938 * monitor.c (monitor_insert_breakpoint): Use
4939 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4940 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4941 * gdbarch.h, gdbarch.c: Re-generate.
4942 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4943 (sparc_gdbarch_init): Set breakpoint_from_pc to
4944 sparc_breakpoint_from_pc.
4945 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4946 (BREAKPOINT_FROM_PC): Define.
4947 (sparc_breakpoint_from_pc): Declare.
4948 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4949 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4950 (BREAKPOINT_FROM_PC): Define.
4951 (BREAKPOINT): Delete macro.
4952 * target.h: Update comment.
4953 * s390-tdep.c (s390_gdbarch_init): Update comments.
4954 * remote.c: Update comments.
4955 * remote-mips.c: Update comments.
4956 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4957 * mem-break.c: Update comment.
4958 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4959 (ia64_memory_insert_breakpoint): Update.
4960 * config/sparc/tm-sparc.h: Update comment.
4961 * config/pa/tm-hppa64.h: Update comment.
4962 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4963 (rs6000_breakpoint_from_pc): Update.
4964 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4965 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4966 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4967 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4968 (mips_breakpoint_from_pc): Update.
4969 (mips_dump_tdep): Update.
4970
e06963ff
AC
4971 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4972 * minsyms.c (lookup_minimal_symbol): Inline
4973 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4974
973177d3
AC
4975 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4976 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4977 * p-lang.c (pascal_printstr): Ditto.
4978 * objc-lang.c (objc_printstr): Ditto.
4979 * m2-lang.c (m2_printstr): Ditto.
4980 * jv-valprint.c (java_print_value_fields): Ditto.
4981 * f-lang.c (f_printstr): Ditto.
4982 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4983 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4984 for repeat_count_threshold.
4985 * Makefile.in (cp-valprint.o): Update dependencies.
4986
5ea2bd7f 49872003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4988
5ea2bd7f
JJ
4989 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4990 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4991 they start with mov r2,r12. Support skipping over indirect stores
4992 of the input registers. Upon hitting a non-nop branch instruction
4993 or predicated instruction, bail out by setting lim_pc to the current
4994 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4995 beyond our calculated value and we have trust_limit set,
4996 use the lim_pc value.
4997
cc8c88f3
AC
49982003-05-15 Andrew Cagney <cagney@redhat.com>
4999
5000 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5001 generic_find_dummy_frame.
5002 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5003 (deprecated_generic_find_dummy_frame): Update.
5004 (deprecated_read_register_dummy): Update.
5005 * frame.c (deprecated_generic_get_saved_register): Update.
5006
909cd28e
TR
50072003-05-15 Theodore A. Roth <troth@openavr.org>
5008
5009 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5010 (avr_gdbarch_init): Set breakpoint_from_pc method.
5011
b923b08d
AC
50122003-05-15 Andrew Cagney <cagney@redhat.com>
5013
5014 * regcache.c (build_regcache): Set deprecated_register_valid
5015 directly.
5016 (deprecated_grub_regcache_for_register_valid): Delete function.
5017 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5018 declaration.
5019
ae2f03ac 50202003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5021
5022 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5023 * symtab.c (lookup_symbol_aux): Delete calls to
5024 lookup_symbol_aux_minsyms.
5025 (lookup_symbol_aux_minsyms): Comment out function and
5026 prototype. Delete lookup by mangled name.
ae2f03ac 5027
18ec9831
KB
50282003-05-14 Kevin Buettner <kevinb@redhat.com>
5029
5030 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5031 correctly indicate an empty stack and ``stack_allocated'' to the
5032 indicate the number of elements initially allocated.
5033 (dwarf_expr_grow_stack): Simplify method for computing new
5034 stack size. Don't loop infinitely if ``stack_len'' is zero.
5035 (execute_stack_op): Move ``ctx->in_reg'' initialization
5036 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5037 be used in conjuction with DW_OP_piece. Revise error message
5038 accordingly.
5039
de18ac1f
TR
50402003-05-14 Theodore A. Roth <troth@openavr.org>
5041
5042 * MAINTAINERS: Update my email address.
5043 * avr-tdep.c: Ditto.
5044
176620f1
EZ
50452003-05-14 Elena Zannoni <ezannoni@redhat.com>
5046
5047 * symtab.h (enum domain_enum): Rename from namespace_enum.
5048 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5049 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5050 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5051 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5052 TYPES_NAMESPACE, METHODS_NAMESPACE.
5053 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5054 (struct symbol, struct partial_symbol): Rename field
5055 'namespace_enum namespace' to 'domain_enum domain'.
5056 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5057 Delete old define kludge for namespace.
5058
5059 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5060 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5061 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5062 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5063 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5064 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5065 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5066 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5067 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5068 occurrences of the above.
5069
b7f31508
ILT
50702003-05-14 Ian Lance Taylor <ian@airs.com>
5071
5072 * Makefile.in (install-only): Use $(SHELL) when running
5073 mkinstalldirs.
5074
2fdbdd39
ILT
50752003-05-13 Ian Lance Taylor <ian@airs.com>
5076
a208d82c
ILT
5077 * MAINTAINERS (write after approval): Add myself.
5078
2fdbdd39
ILT
5079 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5080 second and third arguments.
5081 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5082 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5083
fbd9dcd3
AC
50842003-05-13 Andrew Cagney <cagney@redhat.com>
5085
5086 * defs.h (store_address): Delete declaration.
5087 findvar.c (store_address): Delete function.
5088 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5089 store_unsigned_integer.
5090 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5091 * v850-tdep.c (v850_push_arguments): Ditto.
5092 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5093 * sh-tdep.c (sh64_get_saved_register): Ditto.
5094 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5095 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5096 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5097 (mips_get_saved_register): Ditto.
5098 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5099 (find_func_descr, ia64_push_arguments): Ditto.
5100 * i386-tdep.c (i386_push_arguments): Ditto.
5101 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5102 * frv-tdep.c (frv_push_arguments): Ditto.
5103 * frame.c (legacy_saved_regs_prev_register): Ditto.
5104 (deprecated_generic_get_saved_register): Ditto.
5105 * findvar.c (unsigned_address_to_pointer): Ditto.
5106 * dwarf2read.c (dwarf2_const_value): Ditto.
5107 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5108 * alpha-tdep.c (alpha_push_arguments): Ditto.
5109
6760f9e6
JB
51102003-05-12 J. Brobecker <brobecker@gnat.com>
5111
5112 * NEWS: Mention that the hppa-hpux port has been partially
5113 multiarched (32bit ABIT only, so far).
5114
30e221b4
AC
51152003-05-11 Andrew Cagney <cagney@redhat.com>
5116
5117 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5118 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5119 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5120 sim/testsuite/sim/arm/misaligned2.ms, and
5121 sim/testsuite/sim/arm/misaligned3.ms.
5122 * disasm.h (struct ui_file): Add opaque struct declaration.
5123 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5124 * frame.h (struct ui_file): Ditto.
5125
dea7f9ba
MK
51262003-05-11 Mark Kettenis <kettenis@gnu.org>
5127
5128 * value.h: Pretty print.
5129
01986c48
MK
51302003-05-10 Mark Kettenis <kettenis@gnu.org>
5131
5132 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5133
123a958e
AC
51342003-05-08 Andrew Cagney <cagney@redhat.com>
5135
5136 * regcache.h (max_register_size): Delete declaration.
5137 * regcache.c (max_register_size): Delete function.
5138 (struct regcache_descr): Delete field "max_register_size".
5139 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5140 registers fit in MAX_REGISTER_SIZE.
5141 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5142 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5143 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5144 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5145 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5146 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5147 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5148 * dve3900-rom.c, hppa-tdep.c: Ditto.
5149
eb294659
DC
51502003-05-08 David Carlton <carlton@math.stanford.edu>
5151
5152 * valops.c (push_word): Fix typo.
5153
d9d9c31f
AC
51542003-05-08 Andrew Cagney <cagney@redhat.com>
5155
5156 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5157 * gdbarch.h: Re-generate.
5158 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5159 (legacy_max_register_raw_size): Delete declaration.
5160 * regcache.c (legacy_max_register_raw_size): Delete function.
5161 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5162 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5163 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5164 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5165 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5166 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5167 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5168 * findvar.c, dwarf2cfi.c: Ditto.
5169
22540ece
AC
51702003-05-08 Andrew Cagney <cagney@redhat.com>
5171
5172 * mips-tdep.c (read_signed_register): New function, moved to here
5173 from "regcache.c".
5174 (read_signed_register_pid): Ditto.
5175 * regcache.c (read_signed_register_pid): Delete function, moved to
5176 "mips-tdep.c".
5177 (read_signed_register): Ditto.
5178 * regcache.h (read_signed_register): Delete declaration.
5179 (read_signed_register_pid): Delete declaration.
5180
0c92afe8
AC
51812003-05-08 Andrew Cagney <cagney@redhat.com>
5182
5183 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5184 * gdbarch.h: Re-generate.
5185 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5186 (legacy_max_register_virtual_size): Delete declaration.
5187 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5188 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5189 * tracepoint.c (memrange_sortmerge): Ditto.
5190 * sparc-tdep.c (sparc_print_registers): Ditto.
5191 * regcache.c (legacy_max_register_virtual_size): Delete function.
5192
6037b830
JB
51932002-05-08 J. Brobecker <brobecker@gnat.com>
5194
5195 * fork-child.c (escape_bang_in_quoted_argument): New function.
5196 (fork_inferior): Escape '!' characters in quoted arguments
5197 only when needed.
5198
5d62c8b1
JB
51992003-05-08 J. Brobecker <brobecker@gnat.com>
5200
5201 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5202 the language of the CU is not currently supported by GDB.
5203
20a0e81d
JB
52042003-05-08 J. Brobecker <brobecker@gnat.com>
5205
5206 * defs.h (language): Add language_minimal enum value.
5207 * c-lang.c (minimal_language_defn): New language definition.
5208 (_initialize_c_language): Add the new minimal language to the list
5209 of languages known to GDB.
5210
710ee10a
KB
52112003-05-08 Kevin Buettner <kevinb@redhat.com>
5212
5213 * frame.c (get_frame_type): Don't attempt to lazily initialize
5214 frame's unwinder for legacy frames.
5215
1750fa04
AC
52162003-05-07 Andrew Cagney <cagney@redhat.com>
5217
5218 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5219 and "regcache" parameters.
5220 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5221
ddf9f258 52222003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5223
5224 * dwarf2read.c (dwarf_decode_lines): Only use output of
5225 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5226 the current address.
5227
87767c29
AC
52282003-05-07 Andrew Cagney <cagney@redhat.com>
5229
5230 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5231 code.
5232
5e7b2f39
JB
52332003-05-07 Jim Blandy <jimb@redhat.com>
5234
5235 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5236 'maint info symtabs' and 'maint info psymtabs'.
5237 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5238 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5239 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5240 Declarations updated.
5241 * maint.c (maintenance_list_command): Delete.
5242 (_initialize_maint_cmds): Update calls to add_cmd.
5243 * gdbcmd.h (maintenancelistlist): Delete declaration.
5244 * cli/cli-cmds.c (maintenancelistlist): Delete.
5245 (init_cmd_lists): Don't initialize it.
5246 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5247
f6684c31
AC
52482003-05-07 Andrew Cagney <cagney@redhat.com>
5249
5250 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5251 "regcache".
5252 (d10v_print_registers_info): Update.
5253 (d10v_dmap_register, d10v_imap_register): Delete functions.
5254 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5255 and "imap_register".
5256 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5257 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5258 * arch-utils.c (generic_remote_translate_xfer_address): Add
5259 "regcache" and "gdbarch" parameters.
5260 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5261 parameter. Change class to multi-arch.
5262 * gdbarch.h, gdbarch.c: Re-generate.
5263 * remote.c (remote_xfer_memory): Use
5264 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5265
e4846b08
JJ
52662003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5267
5268 * infrun.c (prev_pc): Move declaration ahead of proceed().
5269 (proceed): Refresh prev_pc value before resuming.
5270 (stop_stepping): Remove code to refresh prev_pc.
5271
6b71b8ac
KW
52722003-05-06 Kris Warkentin <kewarken@qnx.com>
5273
5274 * nto-tdep.c: Removed stray comment.
5275
47979a4b
KW
52762003-05-06 Kris Warkentin <kewarken@qnx.com>
5277
5278 * i386-nto-tdep.c: Fix old K&R function definitions.
5279 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5280 Also change add_show_from_set() call to add_setshow_cmd().
5281 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5282
00905d52
AC
52832003-05-05 Andrew Cagney <cagney@redhat.com>
5284
5285 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5286 (fprint_dummy_frames): New function.
5287 (maintenance_print_dummy_frames): New function.
5288 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5289 * frame.c (fprint_frame_id): Make global.
5290 * frame.h (fprint_frame_id): Declare.
5291 * Makefile.in (dummy-frame.o): Update dependencies.
5292
b1e29e33
AC
52932003-05-05 Andrew Cagney <cagney@redhat.com>
5294
5295 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5296 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5297 SIZEOF_CALL_DUMMY_WORDS.
5298 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5299 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5300 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5301 CALL_DUMMY_BREAKPOINT_OFFSET.
5302 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5303 CALL_DUMMY_START_OFFSET.
5304 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5305 * gdbarch.h, gdbarch.c: Re-generate.
5306 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5307 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5308 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5309 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5310 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5311 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5312 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5313 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5314 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5315 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5316 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5317 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5318 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5319 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5320 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5321
53222003-05-05 Kris Warkentin <kewarken@qnx.com>
5323
5324 * configure.tgt: Add i[3456]86-*-nto*.
5325 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5326 * nto-tdep.c: New file. Neutrino target support routines.
5327 * nto-tdep.h: New file. Neutrino target header.
5328 * config/tm-qnxnto.h: New file.
5329 * config/i386/i386nto.mt: New file.
5330 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5331
0ce3d317
AC
53322003-05-04 Andrew Cagney <cagney@redhat.com>
5333
5334 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5335 (load_infrun_state): Ditto.
5336 (struct thread_info): Drop "prev_func_name" field.
5337 * thread.c (load_infrun_state): Update.
5338 (save_infrun_state): Update.
5339 * infrun.c (prev_func_name): Delete variable.
5340 (init_wait_for_inferior): Do not clear prev_func_name.
5341 (stop_stepping, keep_going, context_switch): Do not swap
5342 prev_func_name.
5343 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5344 instead of PC_IN_SIGTRAMP.
5345
46654a5b
AC
53462003-05-04 Andrew Cagney <cagney@redhat.com>
5347
5348 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5349 REGISTER_BYTE with register_offset_hack.
5350 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5351 that REGISTER_BYTE is consistent with the regcache.
5352 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5353 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5354
14b08c1b
MK
53552003-05-04 Mark Kettenis <kettenis@gnu.org>
5356
04c8243f
MK
5357 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5358 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5359
14b08c1b
MK
5360 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5361
c7a11e01
JB
53622003-05-03 J. Brobecker <brobecker@gnat.com>
5363
5364 From Thierry Schneider <tpschneider1@yahoo.com>
5365 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5366 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5367 (mi-cmd-symbol.o): Add rule.
5368
7043d8dc
AC
53692003-05-03 Andrew Cagney <cagney@redhat.com>
5370
5371 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5372 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5373 * gdbarch.h, gdbarch.c: Re-generate.
5374 * d10v-tdep.c (d10v_push_dummy_code): New function.
5375 (d10v_gdbarch_init): Set push_dummy_code.
5376 * infcall.c (legacy_push_dummy_code): New function.
5377 (generic_push_dummy_code): New function.
5378 (push_dummy_code): New function.
5379 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5380 instead of dummy_addr, to push_dummy_call. Move call to
5381 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5382 switch.
5383 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5384
92bf2b80
AC
53852003-05-03 Andrew Cagney <cagney@redhat.com>
5386
5387 * disasm.h (print_insn): Declare.
5388 * disasm.c (init_gdb_disassemble_info): New function.
5389 (gdb_disassembly): Call init_gdb_disassemble_info.
5390 (gdb_print_insn): New function.
5391 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5392 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5393 * mcore-tdep.c: Include "disasm.h"
5394 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5395 * d10v-tdep.c: Include "disasm.h".
5396 (display_trace): Call gdb_print_insn, instead of print_insn.
5397 (print_insn): Delete function.
5398 * printcmd.c: Include "disasm.h".
5399 (print_insn): Delete function.
5400 (print_formatted): Call gdb_print_insn, instead of print_insn.
5401 * Makefile.in (printcmd.o): Update dependencies.
5402 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5403
27d94c49
AC
54042003-05-02 Andrew Cagney <cagney@redhat.com>
5405
82de1e5b
AC
5406 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5407 PC_REGNUM, re-indent.
5408 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5409 PC_REGNUM isn't set.
5410
27d94c49
AC
5411 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5412 * gdbarch.h, gdbarch.c: Re-generate.
5413 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5414 register_virtual_size, pc_regnum, or register_bytes.
5415 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5416 (d10v_register_type): Use D10V_PC_REGNUM.
5417 (d10v_print_registers_info, d10v_read_pc): Ditto.
5418 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5419 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5420
a9c0dc7f
DC
54212003-05-02 David Carlton <carlton@bactrian.org>
5422
5423 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5424 the name with mstrsave.
5425
e33d66ec
EZ
54262003-05-02 Elena Zannoni <ezannoni@redhat.com>
5427
5428 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5429 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5430 (host_charset_name, target_charset_name): New vars for use by
5431 set/show commands.
5432 (host_charset_enum, target_charset_enum): New enums for set/show
5433 commands.
5434 (set_charset_sfunc, set_host_charset_sfunc,
5435 set_target_charset_sfunc): New functions.
5436 (set_host_charset, set_target_charset): Make static.
5437 (list_charsets, set_host_charset_command,
5438 set_target_charset_command): Delete functions.
5439 (show_charset_command): Rewrite as....
5440 (show_charset): Hook this up with the set/show command mechanism.
5441 (_initialize_charset): Change names of charsets to match the
5442 set/show enums. Use host_charset_name and target_charset_name.
5443 Use set/show mechanism for charset, host-charset, target-charset
5444 commands. Do not make 'show host-charset' and 'show
5445 target-charset' be aliases of 'show charset'.
5446
5447 * charset.h (set_host_charset, set_target_charset): Don't export,
5448 they are not used outside the file.
5449
2b6fd0d8
AC
54502003-05-01 Andrew Cagney <cagney@redhat.com>
5451
5452 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5453 (gdb_disassembly): Make "di" non static, always initialize and
5454 cleanup. Always use dis_asm_read_memory.
5455 (gdb_dis_asm_read_memory): Delete function.
5456
6ae2f580
AC
54572003-05-01 Andrew Cagney <cagney@redhat.com>
5458
5459 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5460 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5461
810ecf9f
AC
54622003-04-30 Andrew Cagney <cagney@redhat.com>
5463
5464 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5465 "tm_print_insn_info".
5466 (TARGET_PRINT_INSN_INFO): Delete macro.
5467 (dis_asm_read_memory): Delete function declaration.
5468 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5469 (tm_print_insn_info): Delete variable definition.
5470 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5471 * gdbarch.h, gdbarch.c: Re-generate.
5472 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5473 "deprecated_tm_print_insn_info".
5474 * mcore-tdep.c (mcore_dump_insn): Ditto.
5475 * mips-tdep.c (mips_gdbarch_init): Ditto.
5476 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5477 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5478 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5479 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5480 instead of TARGET_PRINT_INSN_INFO, add comment.
5481 * s390-tdep.c (s390_get_frame_info): Instead of
5482 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5483 (s390_check_function_end, s390_is_sigreturn): Ditto.
5484 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5485 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5486 * disasm.c: Include "gdbcore.h".
5487 (_initialize_disasm): New function, initialize
5488 "deprecated_tm_print_insn_info".
5489 (deprecated_tm_print_insn_info): New variable.
5490 (dis_asm_read_memory): Moved from "corefile.c", made static.
5491 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5492 * Makefile.in (disasm.o): Update dependencies.
5493
07020390
AC
54942003-04-30 Andrew Cagney <cagney@redhat.com>
5495
5496 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5497
a9fa03de
AF
54982003-04-29 Adam Fedor <fedor@gnu.org>
5499
5500 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5501 * infcall.c (find_function_addr): Make non-static.
5502 * infcall.h (find_function_addr): Declare.
5503 * Makefile.in (eval.o): Update dependencies.
5504
1bae87b9
AF
55052003-04-28 Adam Fedor <fedor@gnu.org>
5506
5507 * symtab.c (symbol_find_demangled_name): Check for and demangle
5508 ObjC symbols.
5509 (symbol_init_demangled_name): Init for language_objc as well.
5510
0ba6dca9
AC
55112003-04-28 Andrew Cagney <cagney@redhat.com>
5512
5513 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5514 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5515 * gdbarch.h, gdbarch.c: Re-generate.
5516 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5517 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5518 * inferior.h (deprecated_read_fp): Rename read_fp.
5519 (generic_target_read_fp): Delete declaration.
5520 * regcache.c (generic_target_read_fp): Delete function.
5521 (deprecated_read_fp): Replace read_fp, use
5522 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5523 * d10v-tdep.c (d10v_read_fp): Delete function.
5524 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5525
5526 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5527 deprecated_target_read_fp to generic_target_read_fp.
5528 * sh-tdep.c (sh_gdbarch_init): Ditto.
5529 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5531 * frv-tdep.c (frv_gdbarch_init): Ditto.
5532
5533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5534 deprecated_fp_regnum.
5535 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5536 * vax-tdep.c (vax_gdbarch_init): Ditto.
5537 * v850-tdep.c (v850_gdbarch_init): Ditto.
5538 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5539 * sh-tdep.c (sh_gdbarch_init): Ditto.
5540 * s390-tdep.c (s390_gdbarch_init): Ditto.
5541 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5542 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5543 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5544 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5546 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5547 * i386-tdep.c (i386_gdbarch_init): Ditto.
5548 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5549 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5550 * frv-tdep.c (frv_gdbarch_init): Ditto.
5551 * cris-tdep.c (cris_gdbarch_init): Ditto.
5552 * avr-tdep.c (avr_gdbarch_init): Ditto.
5553 * arm-tdep.c (arm_gdbarch_init): Ditto.
5554 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5555
5556 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5557 * v850-tdep.c (v850_gdbarch_init): Ditto.
5558 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5559 * sh-tdep.c (sh_gdbarch_init): Ditto.
5560 * s390-tdep.c (s390_gdbarch_init): Ditto.
5561 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5562 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5563 * mips-tdep.c (mips_gdbarch_init): Ditto.
5564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5565 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5566 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5567 * frv-tdep.c (frv_gdbarch_init): Ditto.
5568 * avr-tdep.c (avr_gdbarch_init): Ditto.
5569 * arm-tdep.c (arm_gdbarch_init): Ditto.
5570
5571 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5572 DEPRECATED_FP_REGNUM.
5573 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5574 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5575 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5576 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5577 (sparc32_register_virtual_type): Ditto.
5578 * sh-tdep.c (sh64_frame_chain): Ditto.
5579 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5580 (sh_nofp_frame_init_saved_regs): Ditto.
5581 (sh64_nofp_frame_init_saved_regs): Ditto.
5582 (sh_fp_frame_init_saved_regs): Ditto.
5583 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5584 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5585 * procfs.c (procfs_fetch_registers): Ditto.
5586 (procfs_store_registers): Ditto.
5587 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5588 (store_inferior_registers, fetch_core_registers): Ditto.
5589 (fetch_kcore_registers, clear_regs): Ditto.
5590 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5591 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5592 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5593 * nlm/i386.c (do_status): Ditto.
5594 * mipsv4-nat.c (supply_gregset): Ditto.
5595 * mips-tdep.c: Ditto for comments.
5596 * mips-nat.c (fetch_inferior_registers): Ditto.
5597 (store_inferior_registers, fetch_core_registers): Ditto.
5598 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5599 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5600 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5601 (i386_do_pop_frame, i386_register_type): Ditto.
5602 * hppa-tdep.c (hppa_frame_chain): Ditto.
5603 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5604 (hppa_pop_frame, hppa_read_fp): Ditto.
5605 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5606 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5607 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5608 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5609 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5610 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5611 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5612 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5613 * blockframe.c: Ditto for comments.
5614 * arch-utils.h: Ditto for comments.
5615 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5616 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5617 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5618 * alpha-tdep.h: Ditto for comments.
5619 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5620 (alpha_cannot_store_register): Ditto.
5621 (alpha_push_dummy_frame): Ditto.
5622 * alpha-nat.c (supply_gregset): Ditto.
5623
5624 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5625 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5626 * config/sparc/tm-sparc.h: Update comment.
5627
5628 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5629 deprecated_read_fp instead of TARGET_READ_FP.
5630 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5631 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5632 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5633 deprecated_read_fp instead of read_fp.
5634 * s390-tdep.c (s390_push_arguments): Ditto.
5635 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5636 * frame.h: Ditto in comments.
5637 * frame.c (legacy_get_prev_frame): Ditto.
5638 * dummy-frame.c (dummy_frame_this_id): Ditto.
5639 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5640
d7a27068
AC
56412003-04-28 Andrew Cagney <cagney@redhat.com>
5642
5643 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5644 * gdbarch.h, gdbarch.c: Re-generate.
5645 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5646 * vax-tdep.c (_initialize_vax_tdep): Update.
5647 * v850-tdep.c (_initialize_v850_tdep): Update.
5648 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5649 * s390-tdep.c (_initialize_s390_tdep): Update.
5650 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5651 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5652 * mips-tdep.c (_initialize_mips_tdep): Update.
5653 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5654 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5655 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5656 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5657 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5658 * frv-tdep.c (_initialize_frv_tdep): Update.
5659 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5660 (_initialize_cris_tdep): Update.
5661 * arch-utils.c (legacy_print_insn): Update.
5662 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5663
d2630e69
AF
56642003-04-26 Adam Fedor <fedor@gnu.org>
5665
5666 * linespec.c (decode_objc): New function to decode ObjC calls
5667 (decode_line_1): Check for ObjC calls (using decode_objc)
5668 * Makefile (linespec.o): Update dependencies.
5669
3086aeae
DJ
56702003-04-26 Daniel Jacobowitz <drow@mvista.com>
5671
5672 * breakpoint.h (struct breakpoint_ops): New.
5673 (struct breakpoint): Add ops member.
5674
5675 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5676 (mention): Use new breakpoint ops member.
5677 (set_raw_breakpoint): Initialize ops field to NULL.
5678 (print_exception_catchpoint, print_one_exception_catchpoint)
5679 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5680 (gnu_v3_exception_catchpoint_ops): New.
5681 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5682
1fbec6c3
AF
56832003-04-25 Adam Fedor <fedor@gnu.org>
5684
5685 * Makefile.in (COMMON_OBS): Add objc-lang.o
5686
0ef21242
AC
56872003-04-25 Andrew Cagney <cagney@redhat.com>
5688
5689 * d10v-tdep.c (print_insn): Delete function.
5690 (display_trace): Use TARGET_PRINT_INSN.
5691 (_initialize_d10v_tdep): Do not set tm_print_insn.
5692 (d10v_gdbarch_init): Set print_insn.
5693
f75493ed
AC
56942003-04-25 Andrew Cagney <cagney@redhat.com>
5695
5696 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5697 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5698 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5699 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5700 (nr_dmap_regs, a0_regnum): ... new functions.
5701 (d10v_print_registers_info): Use a0_regnum, use register_size.
5702 (d10v_register_byte): Delete function.
5703 (d10v_register_raw_size): Delete function.
5704 (d10v_register_type): Use a0_regnum.
5705 (d10v_print_registers_info): Use a0_regnum.
5706 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5707 (d10v_gdbarch_init): Do not set register_byte or
5708 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5709 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5710 extract_address.
5711 (trace_command): Use XCALLOC.
5712 (print_insn): Delete reference to tm_print_insn.
5713 (saved_regs_unwinder): Use store_unsigned_integer instead of
5714 store_address.
5715 * frame.h (FRAME_OBSTACK_CALLOC): Define
5716
2202b100
DC
57172003-04-25 David Carlton <carlton@bactrian.org>
5718
5719 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5720
4e45ca2e
AF
57212003-04-24 Adam Fedor <fedor@gnu.org>
5722
5723 * objc-lang.c: Include "valprint.h"
5724 * Makefile.in (objc-lang.o): Update dependencies.
5725
93de3e7f
AF
57262003-04-24 Adam Fedor <fedor@gnu.org>
5727
8ffd9b1b 5728 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5729 architecture dependant compilation and mark as unimplemented
5730 (until they get put in the gdbarch vector).
5731
0f20eeea
DC
57322003-04-23 David Carlton <carlton@bactrian.org>
5733
5734 * cp-support.c (cp_find_first_component): Accept 'operator' in
5735 more locations.
5736
74cfe982
AC
57372003-04-23 Andrew Cagney <cagney@redhat.com>
5738
5739 * infcall.c (call_function_by_hand): Eliminate redundant
5740 indentation. Move "saved_async" and "old_cleanups" to where they
5741 are needed.
8ffd9b1b 5742
52557533
AC
57432003-04-23 Andrew Cagney <cagney@redhat.com>
5744
5745 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5746 and "buffer". Move the "name" code to where it is needed.
5747
158775de
AC
57482003-04-23 Andrew Cagney <cagney@redhat.com>
5749
5750 * infcall.c (call_function_by_hand): Move variables "start_sp",
5751 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5752 code to ON_STACK switch branch.
8ffd9b1b 5753
ebc7896c
AC
57542003-04-23 Andrew Cagney <cagney@redhat.com>
5755
5756 * infcall.c (call_function_by_hand): Make declaration of "i",
5757 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5758 lint.
5759
d727590f
AC
57602003-04-23 Andrew Cagney <cagney@redhat.com>
5761
5762 * infcall.c (call_function_by_hand): Delete variable
5763 "n_method_args". Localize "param_type"'s declaration to the loop
5764 that it is used. Reinstate code assigning to said variable -
5765 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5766 Rationalize code using "param_type".
5767
d585e13a
AC
57682003-04-22 Andrew Cagney <cagney@redhat.com>
5769
5770 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5771 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5772 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5773 to DEPRECATED_PUSH_RETURN_ADDRESS.
5774
051caad9
KB
57752003-04-22 Kevin Buettner <kevinb@redhat.com>
5776
5777 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5778 on the DWARF2 register number prior to fetching a register.
5779
77296879
JB
57802003-04-22 J. Brobecker <brobecker@gnat.com>
5781
5782 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5783 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5784 this macro was always set to 0.
77296879
JB
5785 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5786 considering the fact that this macro was always set to 0.
5787 * hppa-tdep.h (hppa_store_return_value): Likewise.
5788 (hppa_extract_return_value): Likewise.
5789
4252f1df
JB
57902003-04-22 J. Brobecker <brobecker@gnat.com>
5791
5792 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5793 the hppa-pro target only.
5794
14604c6b
JB
57952003-04-21 J. Brobecker <brobecker@gnat.com>
5796
5797 Ongoing multi-arch conversion effort for HP/UX:
5798 * config/pa/tm-hppa.h: Move all macro that are no longer
5799 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5800 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5801
77eb01d1
JB
58022003-04-21 J. Brobecker <brobecker@gnat.com>
5803
5804 * config/pa/tm-hppa.h: Obsolete a section that was only used
5805 for hppa-pro.
5806
61995b3b
JB
58072003-04-21 J. Brobecker <brobecker@gnat.com>
5808
5809 Ongoing multi-arch conversion for HP/UX.
5810 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5811 if already defined (allows hppa64 to stay non-multiarched for now).
5812 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5813
4aa79dcc
AC
58142003-04-21 Andrew Cagney <cagney@redhat.com>
5815
5816 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5817
0f751ff2
AC
58182003-04-21 Andrew Cagney <cagney@redhat.com>
5819
5820 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5821 "i386_num_mmx_regs".
5822
04714b91
AC
58232003-04-21 Andrew Cagney <cagney@redhat.com>
5824
5825 * infcall.c: New file.
5826 * infcall.h: New file.
5827 * valarith.c: Include "infcall.h".
5828 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5829 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5830 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5831 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5832 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5833 (SFILES): Add "infcall.c"
5834 (COMMON_OBS): Add "infcall.o".
5835 (infcall.o): Specify dependencies.
5836 * value.h (call_function_by_hand): Delete declaration.
5837 * inferior.h (run_stack_dummy): Delete declaration.
5838 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5839 (run_stack_dummy): Move to "infcall.c", merged into
5840 call_function_by_hand.
5841 * valops.c (call_function_by_hand): Moved to "infcall.c".
5842 (find_function_addr, value_arg_coerce): Ditto.
5843 (unwindonsignal_p, coerce_float_to_double): Ditto.
5844 (_initialize_valops): Move "set/show coerce-float-to-double", and
5845 "set/show unwindonsignal" commands to "infcall.c".
5846 * v850-tdep.c, target.h: Update comments.
5847 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5848 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5849 (sh64_init_extra_frame_info): Update comments.
5850 * mn10300-tdep.c: Update comments.
5851 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5852 * config/sparc/tm-sparc.h: Update comments.
5853 * breakpoint.h: Update comments.
5854 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5855 * arm-tdep.c: Update comment.
5856
f9d3c2a8
MK
58572003-04-19 Mark Kettenis <kettenis@gnu.org>
5858
c40e1eab
MK
5859 * i386-tdep.c (i386_num_register_names): New variable.
5860 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5861 (MM0_REGNUM): Remove redundant parentheses in define.
5862 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5863 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5864 i386_mxcsr_regnum_p): Remove redundant parentheses.
5865 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5866
94ea66b3
MK
5867 * i386-tdep.c (i386_extract_return_value,
5868 i386_store_return_value): Correct check for availability of
5869 floating-point registers.
5870
54299a1d
MK
5871 * i386-tdep.c (i386_frame_num_args): Remove function.
5872 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5873
c86c27af
MK
5874 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5875 mmx_regnum_to_fp_regnum. Adjust all callers.
5876
f9d3c2a8
MK
5877 * i386-tdep.c (i386_get_longjmp_target): Use
5878 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5879 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5880 extract_address.
5881
94ba74a9
MK
58822003-04-19 Mark Kettenis <kettenis@gnu.org>
5883
5884 * core-regset.c: Update comments to reflect reality. Re-order
5885 includes.
5886 (fetch_core_registers): Use switch instead of if. Remove
5887 redundant prototype.
5888
4074e13c
JB
58892003-04-18 Jim Blandy <jimb@redhat.com>
5890
5891 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5892 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5893
e3ab4aba
RH
58942003-04-17 Richard Henderson <rth@redhat.com>
5895
5896 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5897
627bf7c1
EZ
58982003-04-17 Michael Snyder <msnyder@redhat.com>
5899 Karen Bennet <bennet@redhat.com>
5900
5901 Committed by Elena Zannoni <ezannoni@redhat.com>
5902 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5903
514621a9
EZ
59042003-04-17 Elena Zannoni <ezannoni@redhat.com>
5905
5906 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5907 value if the return type is void.
514621a9 5908
b4acd559
JJ
59092003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5910
5911 * thread-db.c: Reindented.
8ffd9b1b 5912
530b167e 59132003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5914
5915 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5916 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5917 as types.
5918
0a48e7e8
MS
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
8ffd9b1b 5942
ab9fe00e
KB
59432003-04-16 Kevin Buettner <kevinb@redhat.com>
5944
610a3745 5945 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5946 the size of ``long double'' to 16, instead of 8.
5947
e64a344c
MK
59482003-04-16 Mark Kettenis <kettenis@gnu.org>
5949
5950 * i386-linux-nat.c: Add some whitespace to make things more
5951 readable.
5952 (fetch_register, store_register, fetch_inferior_registers,
5953 store_inferior_registers): Get rid of assignment in if-statement.
5954 (store_register): Fix typo in error message.
5955
25d41031
AC
59562003-04-16 Andrew Cagney <cagney@redhat.com>
5957
5958 * utils.c (xmmalloc): Always allocate something, matches
5959 libiberty/xmalloc's semantics.
5960 (xmrealloc, xmcalloc): Ditto.
5961
c50901fd
AC
59622003-04-16 Andrew Cagney <cagney@redhat.com>
5963
5964 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5965 update comments.
5966 (get_frame_type): Initialize unwind and type when needed.
5967 (get_frame_id, frame_register_unwind): Ditto.
5968
f81824a9
AC
59692003-04-16 Andrew Cagney <cagney@redhat.com>
5970
5971 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5972 obsolete.
5973 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5974 * sparcl-stub.c: Obsolete file.
5975 * config/sparc/tm-sparclet.h: Obsolete file.
5976 * sparclet-stub.c: Obsolete file.
5977 * sparclet-rom.c: Obsolete file.
5978 * sparcl-tdep.c: Obsolete file.
5979 * config/sparc/tm-sparclite.h: Obsolete file.
5980 * config/sparc/sparclite.mt: Obsolete file.
5981 * config/sparc/sparclet.mt: Obsolete file.
5982 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5983 sparc86x-*-* obsolete.
5984
9219021c
DC
59852003-04-15 David Carlton <carlton@math.stanford.edu>
5986
5987 * Makefile.in (SFILES): Add cp-namespace.c.
5988 (COMMON_OBS): Add cp-namespace.o.
5989 (block.o): Depend on gdb_obstack_h and cp_support_h.
5990 (buildsym.o): Depend on cp_support_h.
5991 (cp-namespace.o): New.
5992 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5993 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5994 (dwarf2read.o): Depend on cp_support_h.
5995 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5996 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5997 processing_current_namespace.
5998 (read_namespace): Update processing_current_namespace; check for
5999 anonymous namespaces.
6000 (dwarf2_name): New function.
6001 (dwarf2_extension): Ditto.
6002 * cp-support.h: Update copyright, contributors.
6003 Add inclusion guards.
6004 Add opaque declaration for structs obstack, block, symbol.
6005 (struct using_direct): New struct.
6006 Add declarations for cp_find_first_component,
6007 cp_entire_prefix_len, processing_has_namespace_info,
6008 processing_current_namespace, cp_is_anonymous,
6009 cp_add_using_directive, cp_initialize_namespace,
6010 cp_finalize_namespace, cp_set_block_scope,
6011 cp_scan_for_anonymous_namespaces.
6012 * cp-namespace.c: New file.
6013 * cp-support.c: Update copyright.
6014 Include ctype.h, gdb_assert.h, gdbcmd.h.
6015 New variable maint_cplus_cmd_list.
6016 (cp_find_first_component): New function.
6017 (cp_entire_prefix_len, maint_cplus_command)
6018 (first_component_command, _initialize_cp_support): Ditto.
6019 * buildsym.c: Include cp-support.h.
6020 New variable using_list.
6021 (add_symbol_to_list): Check for anonymous namespaces.
6022 (finish_block): Set block's scope.
6023 (start_symtab): Initialize C++ namespace support.
6024 (end_symtab): Finalize C++ namespace support.
6025 * block.h: Add opaque declarations for structs
6026 block_namespace_info, using_direct, and obstack.
6027 Add declarations for block_set_scope and block_set_using.
6028 (struct block): Add 'language_specific' member.
6029 (BLOCK_NAMESPACE): New macro.
6030 * block.c: Include gdb_obstack.h and cp-support.h.
6031 (struct block_namespace_info): New struct.
6032 (block_set_scope): New function.
6033 (block_set_using, block_initialize_namespace): Ditto.
6034
d5a921c9
KB
60352003-04-14 Kevin Buettner <kevinb@redhat.com>
6036
6037 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6038 (locate_base): Return early if there aren't any link map offsets.
6039 (svr4_solib_create_inferior_hook): Warn if shared library support
6040 is unavailable.
6041
d2a52b27
DC
60422003-04-14 David Carlton <carlton@math.stanford.edu>
6043
6044 * symtab.c (symbol_set_names): Add prefix when storing Java names
6045 in hash table. Fix for PR java/1039.
6046
980cae7a
DC
60472003-04-14 David Carlton <carlton@math.stanford.edu>
6048
6049 * symtab.c (symbol_set_names): Rename 'name' arg to
6050 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6051 * symtab.h: Change 'name' argument in declaration of
6052 symbol_set_names to 'linkage_name'.
6053 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6054
e227b13c
AC
60552003-04-14 Andrew Cagney <cagney@redhat.com>
6056
6057 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6058 return the fully sign-extended register value.
6059 (get_frame_pointer): Ditto.
6060 (mips_pop_frame): Initialize "proc_desc" after checking for a
6061 dummy frame.
6062
36712a20
AC
60632003-04-14 Andrew Cagney <cagney@redhat.com>
6064
6065 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6066 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6067 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6068 (mips_push_register): Delete function.
6069 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6070 PUSH_FP_REGNUM.
6071
44ea7b70
JB
60722003-04-14 Jim Blandy <jimb@redhat.com>
6073
6074 * symmisc.c: #include "gdb_regex.h".
6075 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6076 functions.
6077 * maint.c (maintenance_list_command): New function.
6078 (_initialize_maint_cmds): Register the above as commands.
6079 * symtab.h (maintenance_list_symtabs,
6080 maintenance_list_psymtabs): New declarations.
6081 * cli/cli-cmds.c (maintenancelistlist): New variable.
6082 (init_cmd_lists): Initialize it.
6083 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6084 * gdbcmd.h (maintenancelistlist): New declaration.
6085 * Makefile.in (symmisc.o): Update dependencies.
6086
2d0c7962
EZ
60872003-04-14 Elena Zannoni <ezannoni@redhat.com>
6088
6089 * s390-nat.c: Include asm/types.h for addr_t.
6090
1947a811
CV
60912003-04-14 Corinna Vinschen <vinschen@redhat.com>
6092
6093 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6094 actually incoming type.
6095
adb616d7
AC
60962003-04-13 Andrew Cagney <cagney@redhat.com>
6097
6098 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6099 get_next_frame and get_frame_saved_regs.
6100
9b5e151c
AC
61012003-04-13 Andrew Cagney <cagney@redhat.com>
6102
6103 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6104 of gdbarch_num_regs.
6105
ef6e7e13
AC
61062003-04-13 Andrew Cagney <cagney@redhat.com>
6107
6108 * frame.h: Mention what replaced what in "struct frame_info".
6109 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6110 deprecated_update_frame_base_hack and
6111 deprecated_update_frame_pc_hack.
6112 * hppa-tdep.c: Ditto.
6113
61fbb938
DJ
61142003-04-13 Daniel Jacobowitz <drow@mvista.com>
6115
6116 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6117 to read_reg and update its comment. Remove regnum member.
6118 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6119 Don't call read_reg when setting in_reg. Call read_reg to get
6120 the frame base if it's in a register. Return the register number
6121 on the stack instead of in the context. Remove extra arguments
6122 to read_reg.
6123 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6124 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6125 the register number on the expression stack.
6126 (needs_frame_read_reg): Remove extra arguments.
6127
0d53c4c4
DJ
61282003-04-13 Daniel Jacobowitz <drow@mvista.com>
6129
6130 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6131 made non-static.
6132 (execute_stack_op): All callers updated.
6133 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6134 * dwarf2loc.c (find_location_expression): New function.
6135 (dwarf_expr_frame_base): Call it.
6136 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6137 (dwarf2_tracepoint_var_ref): New function, broken out from
6138 locexpr_tracepoint_var_ref.
6139 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6140 Make static.
6141 (loclist_read_variable, loclist_read_needs_frame): New functions.
6142 (loclist_describe_location, loclist_tracepoint_var_ref): New
6143 functions.
6144 (dwarf2_loclist_funcs): New struct location_funcs.
6145 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6146 (struct dwarf2_locexpr_baton): Add comments.
6147 (dwarf2_loclist_funcs): New extern.
6148 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6149 base_address and base_known.
6150 (dwarf_loc_buffer): New variable.
6151 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6152 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6153 (dwarf2_has_info): Initialize dwarf_loc_offset.
6154 (dwarf2_build_psymtabs): Read in .debug_loc.
6155 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6156 DWARF_LOC_SIZE.
6157 (psymtab_to_symtab_1): Likewise. Move base address calculation
6158 here, from...
6159 (dwarf2_get_pc_bounds): ... here. Use the base address from
6160 cu_header.
6161 (dwarf2_symbol_mark_computed): Handle location lists.
6162
6aca59a3
DJ
61632003-04-13 Daniel Jacobowitz <drow@mvista.com>
6164
6165 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6166 if the linkage name demangled successfully.
6167
aca1fcd0
MK
61682003-04-13 Mark Kettenis <kettenis@gnu.org>
6169
97095916
MK
6170 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6171 disassmbly_flavour): Removed.
6172
aca1fcd0
MK
6173 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6174
562a961f
MK
61752003-04-13 Mark Kettenis <kettenis@gnu.org>
6176
6177 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6178
bd013d54
AC
61792003-04-12 Andrew Cagney <cagney@redhat.com>
6180
6181 * frame.h (struct frame_info): Move definition from here ...
6182 * frame.c (struct frame_info): ... to here.
6183
167ef8b1
AC
61842003-04-12 Andrew Cagney <cagney@redhat.com>
6185
6186 * gdbthread.h (save_infrun_state): Delete parameter
6187 "prev_func_start".
6188 (struct thread_info): Delete field "prev_func_start".
6189 (load_infrun_state): Ditto.
6190 * thread.c (load_infrun_state, save_infrun_state): Update.
6191 * infrun.c (prev_func_start): Delete variable.
6192 (context_switch, init_wait_for_inferior): Update.
6193 (stop_stepping, keep_going): Update.
6194
da3331ec
AC
61952003-04-12 Andrew Cagney <cagney@redhat.com>
6196
6197 * gdbarch.sh: Add missing opaque declarations.
6198 * gdbarch.h: Regnerate.
6199 * symtab.h: Add missing opaque declarations.
6200 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6201 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6202 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6203 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6204 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6205 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6206 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6207 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6208 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6209 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6210 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6211 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6212 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6213
18adea3f
AC
62142003-04-11 Andrew Cagney <cagney@redhat.com>
6215
6216 * frame.c (get_frame_id): Return this frame's "id".
6217 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6218 function start.
6219 (legacy_saved_regs_this_id): Replace function body with
6220 internal-error.
6221 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6222 FRAME_OBSTACK_ZALLOC.
6223 (create_new_frame): Mark the frame ID as valid.
6224
2252e863
AO
62252003-04-11 Alexandre Oliva <aoliva@redhat.com>
6226
6227 * Makefile.in (libbfd_h): Added missing setting.
6228 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6229 according to the selected ABI.
6230
a8245ab8
JJ
62312003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6232
6233 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6234
6913c89a
AC
62352003-04-11 Andrew Cagney <cagney@redhat.com>
6236
6237 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6238 SAVED_PC_AFTER_CALL.
6239 * gdbarch.h, gdbarch.c: Regenerate.
6240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6241 * x86-64-tdep.c (x86_64_init_abi): Update.
6242 * vax-tdep.c (vax_gdbarch_init): Update.
6243 * v850-tdep.c (v850_gdbarch_init): Update.
6244 * sparc-tdep.c (sparc_gdbarch_init): Update.
6245 * sh-tdep.c (sh_gdbarch_init): Update.
6246 * s390-tdep.c (s390_gdbarch_init): Update.
6247 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6248 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6249 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6250 * mips-tdep.c (mips_gdbarch_init): Update.
6251 * mcore-tdep.c (mcore_gdbarch_init): Update.
6252 * m68k-tdep.c (m68k_gdbarch_init): Update.
6253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6254 * ia64-tdep.c (ia64_gdbarch_init): Update.
6255 (ia64_saved_pc_after_call): Update declaration.
6256 * i386ly-tdep.c (i386lynx_init_abi): Update.
6257 * i386-tdep.c (i386_gdbarch_init): Update.
6258 * hppa-tdep.c (hppa_gdbarch_init): Update.
6259 * h8300-tdep.c (h8300_gdbarch_init): Update.
6260 * frv-tdep.c (frv_gdbarch_init): Update.
6261 * cris-tdep.c (cris_gdbarch_init): Update.
6262 * avr-tdep.c (avr_gdbarch_init): Update.
6263 * arm-tdep.c (arm_gdbarch_init): Update.
6264 * alpha-tdep.c (alpha_gdbarch_init): Update.
6265 * ns32knbsd-nat.c (frame_num_args): Update.
6266 * ns32k-tdep.c (umax_frame_num_args): Update.
6267 * mips-tdep.c (mips_init_frame_pc_first): Update.
6268 * infrun.c (step_over_function): Update.
6269 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6270 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6271 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6272 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6273 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6274 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6275 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6276 * arch-utils.c (init_frame_pc_default): Update.
6277 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6278 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6279 declaration.
8ffd9b1b 6280
38edeab8
AC
62812003-04-11 Andrew Cagney <cagney@redhat.com>
6282
6283 * i387-tdep.c: Update copyright.
6284 (i387_to_double): Delete function.
6285 (double_to_i387): Delete function.
6286
81f8a206
AC
62872003-04-10 Andrew Cagney <cagney@redhat.com>
6288
6289 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6290 frame's function's address. Simplify.
6291 (d10v_frame_unwind_cache): Check that the frame's function is
6292 non-zero.
6293
6e691f7a
JB
62942003-04-10 Jim Blandy <jimb@redhat.com>
6295
6296 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6297 call to set_gdbarch_deprecated_push_arguments.
6298
7f78e237
AC
62992003-04-10 Andrew Cagney <cagney@redhat.com>
6300
6301 * frame.c (fprint_frame_id): New function.
6302 (fprint_frame_type, fprint_frame): New function.
6303 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6304 (create_sentinel_frame, get_frame_id): Ditto.
6305 (frame_id_p, frame_id_eq): Ditto.
6306 (frame_id_inner, create_new_frame): Ditto.
6307 (legacy_get_prev_frame, get_prev_frame): Ditto.
6308 (deprecated_update_frame_pc_hack): Ditto.
6309 (frame_register_unwind): Ditto.
6310 (deprecated_update_frame_base_hack): Ditto.
6311
f870b49b
CV
63122003-04-10 Corinna Vinschen <vinschen@redhat.com>
6313
6314 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6315 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6316 frame_chain function.
6317 * Makefile.in: Add dependencies due to above change.
6318
7c86889b
CV
63192003-04-10 Corinna Vinschen <vinschen@redhat.com>
6320
6321 * blockframe.c (legacy_frame_chain_valid): Move call to
6322 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6323 inside_entry_file.
6324
d0a55772
AC
63252003-04-09 Andrew Cagney <cagney@redhat.com>
6326
6327 * frame.h (struct frame_id): Replace "pc" and "base" with
6328 "stack_addr" and "code_addr". Update comments.
6329 (frame_id_build): Update parameter names and comment.
6330 (struct frame_info): Replace "id_p" and "id" with "this_id".
6331 * dummy-frame.c (dummy_frame_this_id): Update.
6332 * breakpoint.c (print_one_breakpoint): Update.
6333 * frame.c (get_frame_id): Update.
6334 (get_frame_base, frame_id_build): Update.
6335 (create_sentinel_frame, legacy_get_prev_frame): Update.
6336 (deprecated_update_frame_base_hack): Update.
6337 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6338 (frame_id_inner): Ditto.
6339
ac16bf07
AC
63402003-04-09 Andrew Cagney <cagney@redhat.com>
6341
6342 * defs.h (gdb_print_host_address): Make "addr" parameter a
6343 pointer constant.
6344 * utils.c (gdb_print_host_address): Update.
6345
366cfc9e
KB
63462003-04-09 Kevin Buettner <kevinb@redhat.com>
6347
6348 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6349 register number for R0 is 0.
6350
cd983b5c
JB
63512003-04-09 J. Brobecker <brobecker@gnat.com>
6352
6353 * frame.h (struct gdbarch): Add opaque structure definition
6354 to avoid a compilation warning on LynxOS 4.0.
6355
d1340264
AC
63562003-04-09 Andrew Cagney <cagney@redhat.com>
6357
6358 * frame.h (struct frame_info): Delete field "pc". Replace
6359 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6360 structure.
6361 * frame.c (frame_pc_unwind): Update.
6362 (create_sentinel_frame): Do not set "pc".
6363 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6364 (get_frame_pc): Call frame_pc_unwind.
6365 (deprecated_update_frame_pc_hack): Update.
6366 (create_new_frame): Use "pc" not "->pc".
6367
90a6fffb
AC
63682003-04-09 Andrew Cagney <cagney@redhat.com>
6369
6370 * frame.c (get_frame_id): Eliminate code updating "frame".
6371 (legacy_get_prev_frame): Ditto.
6372 (get_frame_base): Return id.base directly.
6373 (deprecated_update_frame_base_hack): Update "id.base".
6374 * frame.h (struct frame_info): Delete field "frame".
6375
2fbce691
AC
63762003-04-09 Andrew Cagney <cagney@redhat.com>
6377
6378 * NEWS: Mention that the "Sequent family" is obsolete.
6379 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6380 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6381 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6382 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6383 * config/i386/tm-ptx4.h: Obsolete file.
6384 * config/i386/tm-ptx.h: Obsolete file.
6385 * symm-tdep.c: Obsolete file.
6386 * config/i386/symmetry.mt: Obsolete file.
6387 * config/i386/tm-symmetry.h: Obsolete file.
6388 * symm-nat.c: Obsolete file.
6389 * config/i386/nm-symmetry.h: Obsolete file.
6390 * config/i386/xm-symmetry.h: Obsolete file.
6391 * config/i386/symmetry.mh: Obsolete file.
6392 * config/i386/nm-ptx4.h: Obsolete file.
6393 * config/i386/ptx4.mh: Obsolete file.
6394 * config/i386/ptx.mt: Obsolete file.
6395 * config/i386/ptx.mh: Obsolete file.
6396 * config/i386/xm-ptx4.h: Obsolete file.
6397 * config/i386/xm-ptx.h: Obsolete file.
6398
78c43945
AC
63992003-04-09 Andrew Cagney <cagney@redhat.com>
6400
6401 Obsolete mips*-*-mach3*.
6402 * NEWS: Mention that mips*-*-mach3* is obsolete.
6403 * m3-nat.c: Obsolete file.
6404 * config/nm-m3.h: Obsolete file.
6405 * config/mips/tm-mipsm3.h: Obsolete file.
6406 * config/mips/mipsm3.mt: Obsolete file.
6407 * config/mips/mipsm3.mh: Obsolete file.
6408 * config/mips/xm-mipsm3.h: Obsolete file.
6409 * mipsm3-nat.c: Obsolete file.
6410 * configure.host: Obsolete mips-dec-mach3*.
6411 * configure.tgt: Obsolete mips*-*-mach3*.
6412
f1908289
AC
64132003-04-09 Andrew Cagney <cagney@redhat.com>
6414
6415 * doublest.h: Update copyright.
6416 (deprecated_store_floating, deprecated_extract_floating): Rename
6417 store_floating and extract_floating. Update comments.
6418 * doublest.c: Update copyright.
6419 (extract_floating_by_length): Replace extract_floating.
6420 (store_floating_by_length): Replace store_floating.
6421 (deprecated_extract_floating): New function.
6422 (deprecated_store_floating): New function.
6423 (extract_typed_floating): Call extract_floating_by_length.
6424 (store_typed_floating): Call store_floating_by_length.
6425 * x86-64-tdep.c (x86_64_store_return_value): Update.
6426 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6427 (sh64_extract_return_value): Update.
6428 (sh_sh4_register_convert_to_virtual): Update.
6429 (sh_sh64_register_convert_to_virtual): Update.
6430 (sh_sh4_register_convert_to_raw): Update.
6431 (sh_sh64_register_convert_to_raw): Update.
6432 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6433 (rs6000_register_convert_to_raw): Update.
6434 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6435 (ia64_register_convert_to_raw): Update.
6436 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6437 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6438 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6439 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6440 (alpha_register_convert_to_raw): Update.
6441
4443bd83
AC
64422003-04-08 Andrew Cagney <cagney@redhat.com>
6443
6444 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6445 * gdbarch.h, gdbarch.c: Re-generate.
6446 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6447 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6448 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6449 conditionally, use frame_pc_unwind as an alternative. Add
6450 comments.
6451 * arch-utils.c (init_frame_pc_default): Only call
6452 SAVED_PC_AFTER_CALL when available.
6453
c0236d92
EZ
64542003-04-08 Elena Zannoni <ezannoni@redhat.com>
6455
fbe586ae 6456 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6457 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6458 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6459 (start_remote): Ditto.
6460 (handle_inferior_event): Ditto.
6461 (save_inferior_status): Ditto.
6462 (restore_inferior_status): Ditto.
6463 * infcmd.c (attach_command): Ditto.
6464 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6465 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6466 * alpha-tdep.c (heuristic_proc_start): Ditto.
6467 * mips-tdep.c (heuristic_proc_start): Ditto.
6468 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6469 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6470 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6471 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6472 * remote-vx.c (vx_create_inferior): Ditto.
6473
64742003-04-08 Elena Zannoni <ezannoni@redhat.com>
6475
6476 * infrun.c (stop_soon_quietly): Make it an enum, to better
6477 override the default behavior of handle_inferior_event.
6478 (clear_proceed_status): Update uses of stop_soon_quietly to
6479 reflect that it is now an enum.
6480 (start_remote): Ditto.
6481 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6482 is set to handle the new GNU/Linux kernel behavior for
6483 attach/sigstop. Update uses of stop_soon_quietly.
6484 * inferior.h (enum stop_kind): New enum.
6485 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6486 Reset normal handle_inferior_event behavior, afterwards.
6487 * fork-child.c (startup_inferior): Update.
6488 * alpha-tdep.c (heuristic_proc_start): Update.
6489 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6490 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6491 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6492 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6493 * remote-vx.c (vx_create_inferior): Update.
6494 * mips-tdep.c (heuristic_proc_start): Update.
6495
1211bce3
EZ
64962003-04-07 Elena Zannoni <ezannoni@redhat.com>
6497
6498 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6499 be freed more than once, causing wild memory corruptions.
1211bce3 6500 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6501 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6502 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6503 with the "core" target.
1211bce3 6504
f0ef6b29
KB
65052003-04-07 Kevin Buettner <kevinb@redhat.com>
6506
6507 * mips-tdep.c (mips_print_fp_register): New function, created from
6508 do_fp_register_row(). Registers are now (also) printed as hex.
6509 Only one register is printed per row.
6510 (mips_print_register, do_fp_register_row): Print floating point
6511 registers with mips_print_fp_register().
6512
8cf71652
AC
65132003-04-06 Andrew Cagney <cagney@redhat.com>
6514
5e488a7b
AC
6515 * valprint.h (inspect_it): Add extern declaration.
6516 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6517 (selectors_info, classes_info): Ditto.
6518 (find_objc_msgcall): Fix indentation.
6519 (objc_printstr): Delete extern declarations.
6520
8cf71652
AC
6521 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6522
e6ba3bc9
AC
65232003-04-06 Andrew Cagney <cagney@redhat.com>
6524
6525 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6526 Update comment.
6527 * frame.c (legacy_saved_regs_this_id): Update.
6528 (legacy_get_prev_frame): Update.
6529 * xstormy16-tdep.c: Update comment.
6530 * sparc-tdep.c (sparc_frame_chain): Update comment.
6531 * blockframe.c (legacy_frame_chain_valid): Update.
6532
55e1d7e7
AC
65332003-04-06 Andrew Cagney <cagney@redhat.com>
6534
996179ee
AC
6535 * valprint.c (val_print_type_code_int): Delete #ifdef
6536 PRINT_TYPELESS_INTEGER code.
6537
55e1d7e7
AC
6538 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6539 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6540 multi-arch definition.
6541 * gdbarch.h: Re-generate.
6542
43bd9a9e
AC
65432003-04-05 Andrew Cagney <cagney@redhat.com>
6544
6545 Eliminate FRAME_FIND_SAVED_REGS.
6546 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6547 Change FSR parameter to a pointer.
6548 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6549 Assume FSR parameter is a pointer.
6550 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6551 Make fsr a pointer.
6552 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6553 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6554 saved_regs a pointer.
6555 (hppa_frame_saved_pc): Ditto.
6556 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6557 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6558 pointer.
6559 (restore_pc_queue): Make fsr a pointer.
6560 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6561 (hppa_frame_chain): Make saved_regs a pointer, call
6562 hppa_frame_init_saved_regs.
6563 * sparc-tdep.c: Include "gdb_assert.h".
6564 (sparc_frame_find_saved_regs): Replace internal_error with
6565 gdb_assert.
6566 * remote-vxsparc.c (vx_read_register): Delete reference to
6567 FRAME_FIND_SAVED_REGS.
6568 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6569 * gdbarch.h: Regenerate.
6570 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6571 (deprecated_get_frame_saved_regs): Delete declaration.
6572 (struct frame_saved_regs): Delete definition.
6573 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6574 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6575 (hppa_frame_find_saved_regs): Delete declaration.
6576 (FRAME_FIND_SAVED_REGS): Delete macro.
6577 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6578 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6579 FRAME_FIND_SAVED_REGS in comment.
6580
be41e9f4
AC
65812003-04-05 Andrew Cagney <cagney@redhat.com>
6582
6583 * frame.c (frame_func_unwind, get_frame_func): New functions.
6584 * frame.h (get_frame_func, frame_func_unwind): Declare.
6585 (struct frame_info): Add field "prev_func" for caching the
6586 previous frame's function address.
6587 * arm-tdep.c (arm_frameless_function_invocation): Combine
6588 get_pc_function_start and get_frame_pc into get_frame_func.
6589 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6590 (sh64_nofp_frame_init_saved_regs): Ditto.
6591 * s390-tdep.c (s390_function_start): Ditto.
6592 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6593 (rs6000_frameless_function_invocation): Ditto.
6594 (rs6000_frame_saved_pc): Ditto.
6595 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6596 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6597 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6598 (i386_frame_init_saved_regs): Ditto.
6599 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6600 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6601 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6602 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6603 * blockframe.c (frameless_look_for_prologue): Ditto.
6604
a01dd7cc
AC
66052003-04-05 Andrew Cagney <cagney@redhat.com>
6606
6607 * frame.c (legacy_get_prev_frame): Link prev to next at the
6608 function start. Update comments.
6609
5e5592e6
AC
66102003-04-05 Andrew Cagney <cagney@redhat.com>
6611
6612 * frame.c (get_frame_id): Update comment.
6613 (legacy_get_prev_frame): Update comment.
6614 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6615 * gdbarch.h: Regenerate.
6616 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6617 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6618
6fba5002
AC
66192003-04-05 Andrew Cagney <cagney@redhat.com>
6620
6621 * stack.c (print_frame_info): Use get_frame_pc.
6622
7df05f2b
AC
66232003-04-04 Andrew Cagney <cagney@redhat.com>
6624
6625 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6626 the frame's type from the unwinder.
6627 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6628 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6629 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6630 (get_frame_base_address): Use get_frame_type.
6631 (get_frame_locals_address, get_frame_args_address): Ditto.
6632 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6633 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6634 (struct frame_info): Add comment explaining why the frame contains
6635 a "type" field.
6636 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6637 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6638 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6639 NORMAL_FRAME.
6640 * frame-unwind.h: Include "frame.h".
6641 (struct frame_unwind): Add "type" field.
6642 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6643
11889732
AC
66442003-04-04 Andrew Cagney <cagney@redhat.com>
6645
6646 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6647 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6648 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6649 get_frame_base.
6650 (d10v_unwind_dummy_id): Use frame_id_build.
6651 * frame.c (find_frame_sal): Use get_frame_pc.
6652 (create_new_frame): Use deprecated_update_frame_pc_hack and
6653 deprecated_update_frame_base_hack.
6654 (create_sentinel_frame): Add comment about ->pc going away.
6655 (get_prev_frame): Add comment about ->pc going away.
6656 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6657 frame_id_build, deprecated_update_frame_pc_hack and
6658 deprecated_update_frame_base_hack.
6659 (select_frame): Use get_frame_pc.
6660 (legacy_saved_regs_this_id): Use frame_id_build.
6661
50c46a0d
EZ
66622003-04-04 Elena Zannoni <ezannoni@redhat.com>
6663
fbe586ae
RH
6664 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6665 signed integer case.
6666 (classify_argument): Handle enumerations and references.
50c46a0d 6667
50bbdbd9
AC
66682003-04-04 Andrew Cagney <cagney@redhat.com>
6669
6670 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6671 ID to NULL.
6672
36018d2e
AF
66732003-04-01 Adam Fedor <fedor@gnu.org>
6674
6675 * gdb/objc-lang.c (selectors_info): Replace calls to
6676 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6677 SYMBOL_NATURAL_NAME.
6678 (classes_info, find_methods): Likewise.
6679
35cec841
KB
66802003-04-03 Kevin Buettner <kevinb@redhat.com>
6681
6682 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6683 ``mach'' to the value determined by bfd_default_set_arch_mach().
6684
43136899
BR
66852003-04-02 Bob Rossi <bob_rossi@cox.net>
6686
6687 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6688 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6689 (mi-cmd-file.o): Update dependencies.
6690
040b99fd
KB
66912003-04-01 Kevin Buettner <kevinb@redhat.com>
6692
6693 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6694 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6695
9a3d7dfd
AF
66962003-04-01 Adam Fedor <fedor@gnu.org>
6697
6698 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6699 * language.h (struct language_defn): Add la_demangle.
6700 (language_demangle): Declare.
6701 * language.c (language_demangle): New function.
6702 (unk_lang_demangle): Likewise.
6703 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6704 Add ukn_lang_demangle.
9a3d7dfd 6705 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6706 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6707 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6708 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6709 * jv-lang.c (java_demangle): New function
6710 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6711 * objc-lang.c (objc_demangle): Add options argument
6712 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6713 * maint.c (maintenance_demangle): Replace switch with
6714 call to language_demangle.
6715 * utils.c (fprintf_symbol_filtered): Likewise.
6716
5e074003
AC
67172003-04-01 Andrew Cagney <cagney@redhat.com>
6718
6719 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6720 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6721 PRINT_TYPELESS_INTEGER.
6722 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6723 PUSH_RETURN_ADDRESS.
6724
270cb5d6
AC
67252003-04-01 Andrew Cagney <cagney@redhat.com>
6726
6727 * Makefile.in (d10v-tdep.o): Update dependencies.
6728 * d10v-tdep.c: Include "frame-base.h".
6729 (d10v_frame_unwind): Make constant.
6730 (d10v_frame_base_address): New function.
6731 (d10v_frame_base): New variable.
6732 (d10v_gdbarch_init): Set frame_base default.
6733 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6734 comment for base.
6735 (d10v_frame_unwind_cache): Set and use "prev_sp".
6736 (d10v_frame_this_id): Use the previous frame's inner most stack
6737 address and this frame's func address for the frame ID. Use
6738 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6739
6bfb3e36
AC
67402003-04-01 Andrew Cagney <cagney@redhat.com>
6741
6742 * frame.h (get_frame_locals_address, get_frame_args_address):
6743 Refer to the base address, instead of the address of the first
6744 local or parameter.
8ffd9b1b 6745
da62e633
AC
67462003-04-01 Andrew Cagney <cagney@redhat.com>
6747
6748 Add frame debug info addresses:
6749 * frame-base.c: New file.
6750 * frame-base.h: New file.
6751 * frame.h (struct frame_base): Add opaque declaration.
6752 (get_frame_base): Update comment.
6753 (get_frame_base_address): Declare.
6754 (get_frame_locals_address): Declare.
6755 (get_frame_args_address): Declare.
6756 (struct frame_info): Add "base" and "base_cache". Update
6757 comments on the unwinder.
6758 * frame.c: Include "frame-base.h".
6759 (get_frame_locals_address): New function.
6760 (get_frame_base_address): New function.
6761 (get_frame_args_address): New function.
6762 * findvar.c (read_var_value): Use get_frame_locals_address and
6763 get_frame_args_address.
6764 * stack.c (frame_info): Use get_frame_locals_address and
6765 get_frame_args_address.
6766 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6767 moved to "frame-base.c".
6768 * printcmd.c (print_frame_nameless_args): Ditto.
6769 * symtab.h (address_class): Update comments.
6770 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6771 get_frame_base_address.
6772 * dwarf2expr.c (execute_stack_op): Ditto.
6773 * Makefile.in (frame_base_h): Define.
6774 (frame.o): Update dependencies.
6775 (frame-base.o): Add dependencies.
6776 (SFILES): Add frame-base.c.
6777 (COMMON_OBS): Add frame-base.o.
6778
3d30e9c2
AC
67792003-04-01 Andrew Cagney <cagney@redhat.com>
6780
6781 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6782 CALL_DUMMY_LENGTH): Ditto.
6783 * gdbarch.c: Re-generate.
6784 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6785 (CALL_DUMMY_LENGTH): Delete macro.
6786 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6787 * arm-tdep.c (arm_gdbarch_init): Ditto.
6788 * avr-tdep.c (avr_gdbarch_init): Ditto.
6789 * cris-tdep.c (cris_gdbarch_init): Ditto.
6790 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6791 * frv-tdep.c (frv_gdbarch_init): Ditto.
6792 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6793 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6794 * i386-tdep.c (i386_gdbarch_init): Ditto.
6795 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6797 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6798 * mips-tdep.c (mips_gdbarch_init): Ditto.
6799 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6801 * s390-tdep.c (s390_gdbarch_init): Ditto.
6802 * sh-tdep.c (sh_gdbarch_init): Ditto.
6803 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6804 * v850-tdep.c (v850_gdbarch_init): Ditto.
6805 * vax-tdep.c (vax_gdbarch_init): Ditto.
6806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6807
ce0c7262
CV
68082003-04-01 Corinna Vinschen <vinschen@redhat.com>
6809
6810 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6811
73dd234f
AC
68122003-04-01 Andrew Cagney <cagney@redhat.com>
6813
6814 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6815 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6816 * gdbarch.h, gdbarch.c: Re-generate.
6817 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6818 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6819 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6820 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6821 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6822 * infcmd.c (run_stack_dummy): Simplify assuming
6823 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6824 * infrun.c (handle_inferior_event): Ditto.
6825 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6826 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6827 * arm-tdep.c (arm_gdbarch_init): Ditto.
6828 * avr-tdep.c (avr_gdbarch_init): Ditto.
6829 * cris-tdep.c (cris_gdbarch_init): Ditto.
6830 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6831 * frv-tdep.c (frv_gdbarch_init): Ditto.
6832 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6833 * i386-tdep.c (i386_gdbarch_init): Ditto.
6834 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6836 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6837 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6838 * mips-tdep.c (mips_gdbarch_init): Ditto.
6839 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6840 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6841 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6842 * s390-tdep.c (s390_gdbarch_init): Ditto.
6843 * sh-tdep.c (sh_gdbarch_init): Ditto.
6844 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6845 * v850-tdep.c (v850_gdbarch_init): Ditto.
6846 * vax-tdep.c (vax_gdbarch_init): Ditto.
6847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6848
97606a13
DJ
68492003-04-01 Daniel Jacobowitz <drow@mvista.com>
6850
6851 * symfile.c (symfile_relocate_debug_section): Update call to
6852 bfd_simple_get_relocated_section_contents.
6853
e8ab51f7
AC
68542003-03-31 Andrew Cagney <cagney@redhat.com>
6855
6856 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6857 * gdbarch.h, gdbarch.c: Regenerate.
6858 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6859 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6860 available.
6861 * frame.h (generic_fix_call_dummy): Delete declaration.
6862 * dummy-frame.h: Update comment.
6863 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6865 fix_call_dummy.
6866 * sh-tdep.c (sh_gdbarch_init): Ditto.
6867 * s390-tdep.c (s390_gdbarch_init): Ditto.
6868 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6869 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6871 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6872 * i386-tdep.c (i386_gdbarch_init): Ditto.
6873 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6874 * frv-tdep.c (frv_gdbarch_init): Ditto.
6875 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6876 * cris-tdep.c (cris_gdbarch_init): Ditto.
6877 * avr-tdep.c (avr_gdbarch_init): Ditto.
6878 * arm-tdep.c (arm_gdbarch_init): Ditto.
6879
018d1b48
JB
68802003-03-31 J. Brobecker <brobecker@gnat.com>
6881
6882 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6883 (INIT_FRAME_AP): Likewise.
6884 (EXTRA_FRAME_INFO): Likewise.
6885
e9a2674e
AC
68862003-03-31 Andrew Cagney <cagney@redhat.com>
6887
6888 * gdbarch.sh: Include "symfile.h".
6889 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6890 * gdbarch.h, gdbarch.c: Re-generate.
6891 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6893 call_dummy_address, the default is at entry_point_address.
6894 * v850-tdep.c (v850_gdbarch_init): Ditto.
6895 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6896 * sh-tdep.c (sh_gdbarch_init): Ditto.
6897 * s390-tdep.c (s390_gdbarch_init): Ditto.
6898 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6899 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6900 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6901 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6902 * i386-tdep.c (i386_gdbarch_init): Ditto.
6903 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6904 * frv-tdep.c (frv_gdbarch_init): Ditto.
6905 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6906 * cris-tdep.c (cris_gdbarch_init): Ditto.
6907 * arm-tdep.c (arm_gdbarch_init): Ditto.
6908
e8a8712a
AC
69092003-03-31 Andrew Cagney <cagney@redhat.com>
6910
6911 * gdbarch.sh (CALL_DUMMY_P): Delete.
6912 * gdbarch.h, gdbarch.c: Re-generate.
6913 * inferior.h (CALL_DUMMY_P): Delete macro.
6914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6915 * vax-tdep.c (vax_gdbarch_init): Update.
6916 * v850-tdep.c (v850_gdbarch_init): Update.
6917 * sparc-tdep.c (sparc_gdbarch_init): Update.
6918 * sh-tdep.c (sh_gdbarch_init): Update.
6919 * s390-tdep.c (s390_gdbarch_init): Update.
6920 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6921 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6922 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6923 * mips-tdep.c (mips_gdbarch_init): Update.
6924 * mcore-tdep.c (mcore_gdbarch_init): Update.
6925 * m68k-tdep.c (m68k_gdbarch_init): Update.
6926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6927 * ia64-tdep.c (ia64_gdbarch_init): Update.
6928 * i386-tdep.c (i386_gdbarch_init): Update.
6929 * h8300-tdep.c (h8300_gdbarch_init): Update.
6930 * frv-tdep.c (frv_gdbarch_init): Update.
6931 * d10v-tdep.c (d10v_gdbarch_init): Update.
6932 * cris-tdep.c (cris_gdbarch_init): Update.
6933 * breakpoint.c (deprecated_frame_in_dummy): Update.
6934 * avr-tdep.c (avr_gdbarch_init): Update.
6935 * alpha-tdep.c (alpha_gdbarch_init): Update.
6936 * arm-tdep.c (arm_gdbarch_init): Update.
6937 * dummy-frame.c (dummy_frame_this_id): Update comments.
6938 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6939 * frame.c (legacy_get_prev_frame): Ditto.
6940 * valops.c (call_function_by_hand): Delete function.
6941 (hand_function_call): Rename to call_function_by_hand
6942
ed234cf8
AC
69432003-03-30 Andrew Cagney <cagney@redhat.com>
6944
6945 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6946 * value.h (struct value): Update comment.
ed234cf8 6947
06c77151
AC
69482003-03-30 Andrew Cagney <cagney@redhat.com>
6949
6c2b5168
AC
6950 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6951 D10V_FP_REGNUM.
6952 (d10v_gdbarch_init): Do not set fp_regnum.
6953
06c77151
AC
6954 * frame.c (get_frame_base): Force ID initialization.
6955 (get_prev_frame): Move computation of the frame ID from here ...
6956 (get_frame_id): ... to here.
6957 (legacy_get_prev_frame): Mark the frame ID as valid.
6958 * frame.h (struct frame_info): Add field "id_p".
6959
97a1a11c
MK
69602003-03-30 Mark Kettenis <kettenis@gnu.org>
6961
6962 * i386-tdep.c (i386_store_struct_return): Removed.
6963 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6964
6c0e89ed
AC
69652003-03-30 Andrew Cagney <cagney@redhat.com>
6966
6967 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6968 * gdbarch.h, gdbarch.c: Regenerate.
6969 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6971 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6972 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6973 * i386-tdep.c (i386_gdbarch_init): Ditto.
6974 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6975 * cris-tdep.c (cris_gdbarch_init): Ditto.
6976 * vax-tdep.c (vax_gdbarch_init): Ditto.
6977 * s390-tdep.c (s390_gdbarch_init): Ditto.
6978 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6980 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6981 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6982 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6983 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6984 * sparc-tdep.c (sparc_gdbarch_init): Update.
6985 * sh-tdep.c (sh_gdbarch_init): Update.
6986 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6987 * mips-tdep.c (mips_gdbarch_init): Update.
6988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6989 * ia64-tdep.c (ia64_gdbarch_init): Update.
6990 * frv-tdep.c (frv_gdbarch_init): Update.
6991 * avr-tdep.c (avr_gdbarch_init): Update.
6992 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6993 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6994 instead of when push_dummy_call is not available.
8ffd9b1b 6995
f7dd6af2
AC
69962003-03-30 Andrew Cagney <cagney@redhat.com>
6997
6998 * infttrace.c: Include "gdbthread.h".
6999 (parent_attach_all): Fix function signature.
7000 (call_ptrace): Update call.
7001 * Makefile.in (infttrace.o): Update dependencies.
7002
28f617b3
AC
70032003-03-30 Andrew Cagney <cagney@redhat.com>
7004
7005 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7006 PUSH_RETURN_ADDRESS.
7007 * gdbarch.h, gdbarch.c: Regenerate.
7008 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7009 * x86-64-tdep.c (x86_64_init_abi): Update.
7010 * v850-tdep.c (v850_gdbarch_init): Update.
7011 * sparc-tdep.c (sparc_gdbarch_init): Update.
7012 * sh-tdep.c (sh_gdbarch_init): Update.
7013 * s390-tdep.c (s390_gdbarch_init): Update.
7014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7015 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7016 * mips-tdep.c (mips_gdbarch_init): Update.
7017 * mcore-tdep.c (mcore_gdbarch_init): Update.
7018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7019 * ia64-tdep.c (ia64_gdbarch_init): Update.
7020 * i386-tdep.c (i386_gdbarch_init): Update.
7021 * h8300-tdep.c (h8300_gdbarch_init): Update.
7022 * frv-tdep.c (frv_gdbarch_init): Update.
7023 * cris-tdep.c (cris_gdbarch_init): Update.
7024 * avr-tdep.c (avr_gdbarch_init): Update.
7025 * arm-tdep.c (arm_gdbarch_init): Update.
7026 * valops.c (hand_function_call): Update.
7027
4d628cd7
AC
70282003-03-29 Andrew Cagney <cagney@redhat.com>
7029
7030 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7031 sizeof_call_dummy_words.
7032 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7033 define.
7034 * gdbarch.h: Regenerate.
8ffd9b1b 7035
65e82032
AC
70362003-03-29 Andrew Cagney <cagney@redhat.com>
7037
7038 * infttrace.h: New file.
7039 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7040 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7041 (hpread_read_doc_function_type): Detect an initialized type1.
7042 (hpread_quick_traverse): Initialize mod_name_string.
7043 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7044 (som_solib_get_solib_by_pc): Declare.
7045 (so_lib_thread_start_addr): Declare.
7046 (no_shared_libraries): Declare.
7047 * somread.c (init_import_symbols): Make static. Add forward
7048 declaration.
7049 * config/pa/nm-hppah.h: Include "infttrace.h" for
7050 parent_attach_all.
7051 (hppa_insert_hw_watchpoint): Declare.
7052 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7053 * hppah-nat.c: Include "gdb_string.h".
7054 (parent_attach_all): Delete extern declaration, moved to
7055 "infttrace.h".
7056 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7057 int.
7058 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7059 * Makefile.in (infttrace_h): Define.
7060 (hpread.o): Update dependencies.
7061 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7062 * hppa-hpux-tdep.c: Include "gdb_string.h".
7063 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7064 * infrun.c (handle_inferior_event): Always initialize
7065 stepped_after_stopped_by_watchpoint. Add default and remove
7066 fallthrough in switch statement.
7067 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7068 parameter to int.
7069 (hppa_remove_hw_watchpoint): Ditto.
7070
2c3bbe77
AC
70712003-03-29 Andrew Cagney <cagney@redhat.com>
7072
7073 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7074 offset.
7075
2dd604e7
RE
70762003-03-29 Richard Earnshaw <rearnsha@arm.com>
7077
7078 * arm-tdep.c (arm_push_arguments): Delete.
7079 (struct stack_item): New type.
7080 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7081 (arm_store_struct_return): Delte.
7082 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7083 arm_push_arguments or arm_store_struct_return.
7084
e8933a55
AC
70852003-03-28 Andrew Cagney <cagney@redhat.com>
7086
7087 * Makefile.in (d10v-tdep.o): Update dependencies.
7088 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7089 * d10v-tdep.c: Include "remote.h".
7090 (target_resume_hook): Delete extern declaration.
7091 (target_wait_loop_hook): Ditto.
7092 (tdisassemble_command): Eliminate assignment in "if" conditional.
7093 (d10v_ts2_register_sim_regno): Eliminate call to
7094 legacy_register_sim_regno.
7095 (d10v_ts3_register_sim_regno): Ditto.
7096
6949171e
JJ
70972003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7098
7099 * thread.c: Reindented.
7100 * lin-lwp.c: Ditto.
7101 * linux-proc.c: Ditto.
7102
98c7071f
BR
71032003-03-28 Bob Rossi <bob_rossi@cox.net>
7104
fbe586ae 7105 * MAINTAINERS (write after approval): Add myself.
98c7071f 7106
5edc9ca6
TR
71072003-03-27 Theodore A. Roth <troth@openavr.org>
7108
7109 * objc-exp.y: Add missing semi-colons.
7110
378bfd1b
AC
71112003-03-27 Andrew Cagney <cagney@redhat.com>
7112
7113 * regcache.c (write_sp): Delete function and references.
7114 * inferior.h (write_sp): Delete declaration.
7115 * valops.c (hand_function_call): Replace write_sp with
7116 TARGET_WRITE_SP.
7117 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7118 (sparc_pop_frame): Ditto.
8ffd9b1b 7119
56056df7
AC
71202003-03-27 Andrew Cagney <cagney@redhat.com>
7121
7122 * NEWS: Mention removal of support for hppa*-*-bsd* and
7123 hppa*-*-osf* natives, and hppa*-*-pro* target.
7124 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7125 * config/pa/xm-pa.h: Obsolete file.
7126 * config/pa/xm-hppab.h: Obsolete file.
7127 * config/pa/nm-hppab.h: Obsolete file.
7128 * config/pa/tm-hppab.h: Obsolete file.
7129 * config/pa/tm-hppao.h: Obsolete file.
7130 * config/pa/nm-hppao.h: Obsolete file.
7131 * config/pa/tm-pro.h: Obsolete file.
7132 * config/pa/hppaosf.mt: Obsolete file.
7133 * config/pa/hppaosf.mh: Obsolete file.
7134 * config/pa/hppapro.mt: Obsolete file.
7135 * config/pa/hppabsd.mt: Obsolete file.
7136 * config/pa/hppabsd.mh: Obsolete file.
7137 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7138 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7139 hppa*-*-osf*.
7140
5873a88d
AC
71412003-03-27 Andrew Cagney <cagney@redhat.com>
7142
7143 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7144 push_arguments. Don't set push_return_address or write_sp.
7145 (d10v_push_dummy_call): Replace d10v_push_arguments.
7146 (d10v_push_return_address, d10v_write_sp): Delete function,
7147 handled by push_dummy_call.
7148
b81774d8
AC
71492003-03-26 Andrew Cagney <cagney@redhat.com>
7150
7151 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7152 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7153 regcache and dummy_addr parameters.
7154 * gdbarch.h, gdbarch.c: Re-generate.
7155 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7156 available; assume it will handle stack alignment and return
7157 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7158 legacy_push_arguments.
7159 (legacy_push_arguments): Rename default_push_arguments.
7160 * value.h (legacy_push_arguments): Rename default_push_arguments.
7161 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7162 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7163 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7164 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7165 * config/i386/tm-symmetry.h: Update.
7166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7167 * x86-64-tdep.c (x86_64_init_abi): Update.
7168 * v850-tdep.c (v850_gdbarch_init): Update.
7169 * sparc-tdep.c (sparc_gdbarch_init): Update.
7170 * sh-tdep.c (sh_gdbarch_init): Update.
7171 * s390-tdep.c (s390_gdbarch_init): Update.
7172 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7174 * mips-tdep.c (mips_gdbarch_init): Update.
7175 * mcore-tdep.c (mcore_gdbarch_init): Update.
7176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7177 * ia64-tdep.c (ia64_gdbarch_init): Update.
7178 * i386-tdep.c (i386_gdbarch_init): Update.
7179 * hppa-tdep.c (hppa_gdbarch_init): Update.
7180 * h8300-tdep.c (h8300_gdbarch_init): Update.
7181 * frv-tdep.c (frv_gdbarch_init): Update.
7182 * d10v-tdep.c (d10v_gdbarch_init): Update.
7183 * cris-tdep.c (cris_gdbarch_init): Update.
7184 * avr-tdep.c (avr_gdbarch_init): Update.
7185 * arm-tdep.c (arm_gdbarch_init): Update.
7186 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7187 * alpha-tdep.c (alpha_gdbarch_init): Update.
7188
f541410f
DJ
71892003-03-26 Daniel Jacobowitz <drow@mvista.com>
7190
7191 * signals/signals.c (do_target_signal_to_host): Correct realtime
7192 signal range test.
7193
69f567ae
DJ
71942003-03-26 Daniel Jacobowitz <drow@mvista.com>
7195
7196 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7197 (struct sal_chain, map_catch_names): Remove.
7198 (catch_exception_command_1): Don't call
7199 handle_gnu_4_16_catch_command.
7200
d5d14a5a
DJ
72012003-03-26 Daniel Jacobowitz <drow@mvista.com>
7202
7203 From Mark Dettinger <dettinge@de.ibm.com>:
7204 * dwarf2cfi.c (read_2u): Increment pointer by two.
7205
bdd73e22
DJ
72062003-03-26 Daniel Jacobowitz <drow@mvista.com>
7207
7208 * signals/signals.c: Fix typos in last change.
7209
960cb555
DJ
72102003-03-26 Daniel Jacobowitz <drow@mvista.com>
7211
7212 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7213 not already defined. Use __SIGRTMIN if available.
7214 (target_signal_from_host): Remove SIGRTMIN block.
7215 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7216 the signal is within the realtime range.
7217
f636b87d
AF
72182003-03-25 Adam Fedor <fedor@gnu.org>
7219
7220 * Makefile.in (infrun.o): Add $(language_h)
7221 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7222 for language specific trampolines.
7223 * language.h (struct language_defn): Add skip_trampoline.
7224 (skip_language_trampoline): Declare.
7225 * language.c (unk_lang_trampoline, skip_language_trampoline):
7226 New functions.
7227 (unknown_language_defn, auto_language_defn, local_language_defn):
7228 Add ukn_lang_trampoline.
7229 * ada-lang.c (ada_language_defn): Add NULL for language
7230 specific skip_trampoline.
7231 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7232 scm-lang.c: Likewise.
7233 * objc-lang.c (objc_skip_trampoline): New function.
7234 (objc_language_defn): Add objc_skip_trampoline.
7235
28f617b3 72362003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7237
7238 * frame.c (get_prev_frame): Delay validating a frame's ID -
7239 non-NULL, didn't go backwards - until an attempt to unwind it to
7240 the previous frame.
7241
f933a9c5
AC
72422003-03-25 Andrew Cagney <cagney@redhat.com>
7243
7244 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7245 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7246 * gdbarch.h, gdbarch.c: Re-generate.
7247 * config/sparc/tm-sparc.h
7248 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7249 * sparc-tdep.c (sparc_gdbarch_init): Set
7250 deprecated_extra_stack_alignment_needed.
7251 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7253 extra_stack_alignment_needed.
7254 * v850-tdep.c (v850_gdbarch_init): Ditto.
7255 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7256 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7257 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7258 * cris-tdep.c (cris_gdbarch_init): Ditto.
7259 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7261
4183d812
AC
72622003-03-25 Andrew Cagney <cagney@redhat.com>
7263
7264 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7265 STORE_STRUCT_RETURN.
7266 * gdbarch.h, gdbarch.c: Regenerate.
7267 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7268 (d10v_push_arguments): Set the struct return register.
7269 (d10v_gdbarch_init): Update.
7270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7271 * x86-64-tdep.c (x86_64_init_abi): Update.
7272 * vax-tdep.c (vax_gdbarch_init): Update.
7273 * v850-tdep.c (v850_gdbarch_init): Update.
7274 * sparc-tdep.c (sparc_gdbarch_init): Update.
7275 * sh-tdep.c (sh_gdbarch_init): Update.
7276 * s390-tdep.c (s390_gdbarch_init): Update.
7277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7278 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7280 * mips-tdep.c (mips_gdbarch_init): Update.
7281 * mcore-tdep.c (mcore_gdbarch_init): Update.
7282 * m68k-tdep.c (m68k_gdbarch_init): Update.
7283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7284 * ia64-tdep.c (ia64_gdbarch_init): Update.
7285 * i386-tdep.c (i386_gdbarch_init): Update.
7286 * hppa-tdep.c (hppa_gdbarch_init): Update.
7287 * h8300-tdep.c (h8300_gdbarch_init): Update.
7288 * frv-tdep.c (frv_gdbarch_init): Update.
7289 * cris-tdep.c (cris_gdbarch_init): Update.
7290 * avr-tdep.c (avr_gdbarch_init): Update.
7291 * arm-tdep.c (arm_gdbarch_init): Update.
7292 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7293
1bf6d5cc
AC
72942003-03-25 Andrew Cagney <cagney@redhat.com>
7295
7296 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7297 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7298 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7299 * gdbarch.h, gdbarch.c: Regenerate.
7300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7301 call_dummy_stack_adjust_p.
7302 * vax-tdep.c (vax_gdbarch_init): Ditto.
7303 * v850-tdep.c (v850_gdbarch_init): Ditto.
7304 * sh-tdep.c (sh_gdbarch_init): Ditto.
7305 * s390-tdep.c (s390_gdbarch_init): Ditto.
7306 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7307 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7308 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7309 * mips-tdep.c (mips_gdbarch_init): Ditto.
7310 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7311 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7313 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7314 * i386-tdep.c (i386_gdbarch_init): Ditto.
7315 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7316 * frv-tdep.c (frv_gdbarch_init): Ditto.
7317 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7318 * cris-tdep.c (cris_gdbarch_init): Ditto.
7319 * avr-tdep.c (avr_gdbarch_init): Ditto.
7320 * arm-tdep.c (arm_gdbarch_init): Ditto.
7321 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7322 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7323 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7324 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7325 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7326 call_dummy_stack_adjust_p.
7327 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7328 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7329 * sparc-tdep.c (sparc32_push_arguments): Update.
7330 * valops.c (hand_function_call): Update.
7331
71c08af0
CV
73322003-03-25 Corinna Vinschen <vinschen@redhat.com>
7333
7334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7335 set_gdbarch_char_signed.
7336
30757f90
RE
73372003-03-25 Richard Earnshaw <rearnsha@arm.com>
7338
7339 PR cli/548
7340 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7341
03d48a7d
RE
73422003-03-25 Richard Earnshaw <rearnsha@arm.com>
7343
7344 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7345 (_initialize_arm_tdep): Don't set tm_print_insn.
7346
2cf6873c
AF
73472003-03-24 Adam Fedor <fedor@gnu.org>
7348
7349 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7350 * objc-lang.h: Add multiple inclusion protection.
7351 (start_msglist, add_msglist, end_msglist): Additional declarations.
7352
17c0759e
RE
73532003-03-24 Richard Earnshaw <rearnsha@arm.com>
7354
7355 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7356 value was renamed to ARM_FLOAT_SOFT_FPA.
7357
618ce49f
AC
73582003-03-23 Andrew Cagney <cagney@redhat.com>
7359
7360 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7361 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7362 * gdbarch.h, gdbarch.c: Regenerate.
7363 * valops.c (hand_function_call): Update.
7364 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7365 * frame.c (legacy_saved_regs_this_id): Update.
7366 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7367 * dummy-frame.h: Update.
7368 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7369 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7370 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7371 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7372 * config/m68k/tm-sun3.h: Update.
7373 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7375 * x86-64-tdep.c (x86_64_init_abi): Update.
7376 * vax-tdep.c (vax_gdbarch_init): Update.
7377 * v850-tdep.c (v850_gdbarch_init): Update.
7378 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7379 * sh-tdep.c (sh_gdbarch_init): Update.
7380 * s390-tdep.c (s390_gdbarch_init): Update.
7381 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7382 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7383 (frame_get_saved_regs): Update.
7384 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7385 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7386 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7387 * mips-tdep.c (mips_gdbarch_init): Update.
7388 * mcore-tdep.c (mcore_gdbarch_init): Update.
7389 * m68k-tdep.c (m68k_gdbarch_init): Update.
7390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7391 * ia64-tdep.c (ia64_gdbarch_init): Update.
7392 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7393 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7394 (i386_interix_back_one_frame): Update.
7395 * hppa-tdep.c (hppa_gdbarch_init): Update.
7396 (hppa_init_extra_frame_info): Update.
7397 * h8300-tdep.c (h8300_gdbarch_init): Update.
7398 * frv-tdep.c (frv_gdbarch_init): Update.
7399 * cris-tdep.c (cris_gdbarch_init): Update.
7400 * avr-tdep.c (avr_gdbarch_init): Update.
7401 * arm-tdep.c (arm_gdbarch_init): Update.
7402 * alpha-tdep.c (alpha_gdbarch_init): Update.
7403
fd50bc42
RE
74042003-03-22 Richard Earnshaw <rearnsha@arm.com>
7405
7406 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7407 (arm_get_fp_model): Declare.
7408 * arm-tdep.c (fp_model_strings): New string array.
7409 (arm_fp_model, current_fp_model): New variables.
7410 (arm_get_fp_model): New function.
7411 (arm_set_fp): New function.
7412 (set_fp_model_sfunc): New function.
7413 (show_fp_model): New function.
7414 (_initialize_arm_tdep): Add new command to set/show the FPU.
7415 (arm_extract_return_value): Use arm_get_fp_model.
7416 (arm_store_return_value): Likewise.
7417 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7418 to initialize the floating-point data types.
7419 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7420 model is FPA.
7421
26304000
RE
74222003-03-22 Richard Earnshaw <rearnsha@arm.com>
7423
7424 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7425 the current setting of each value.
7426 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7427 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7428 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7429 commands and add new version as subcommands of "set/show arm".
7430
afd7eef0
RE
74312003-03-22 Richard Earnshaw <rearnsha@arm.com>
7432
7433 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7434 (set_arm_command, show_arm_command): New functions.
7435 (_initialize_arm_tdep): Add them.
7436 (num_disassembly_options): Renamed from num_flavor_options.
7437 (valid_disassembly_styles): Renamed from valid_flavors.
7438 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7439 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7440 set_disassembly_flavor_sfunc.
7441 (set_disassembly_style): Renamed from set_disassembly_flavor.
7442 (arm_othernames): Updated.
7443 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7444 command. Add "set/show arm disassembly" commands. Deprecate
7445 "othernames" command.
7446
299a7944
RE
74472003-03-22 Richard Earnshaw <rearnsha@arm.com>
7448
7449 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7450 (arm-tdep.o): Depend on elf_arm_h.
7451
c1dac9e6
RE
74522003-03-22 Richard Earnshaw <rearnsha@arm.com>
7453
7454 * Makefile.in (coff_internal_h): Define.
7455 (arm-tdep.o): Update dependencies.
7456
2702d96c
RE
74572003-03-22 Richard Earnshaw <rearnsha@arm.com>
7458
7459 * arm-tdep.c (prologue_cache): Delete.
7460 (check_prologue_cache, save_prologue_cache): Delete.
7461 (arm_scan_prologue): Don't check or update the prologue_cache.
7462 (arm_gdb_arch_init): Don't initialize it.
7463 (_initialize_arm_tdep): Likewise.
7464
27d5d74b
SC
74652003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7466
7467 * MAINTAINERS (tui): Maintainer of tui code.
7468
1762d96d
CV
74692003-03-21 Corinna Vinschen <vinschen@redhat.com>
7470
7471 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7472 (i386-cygwin-tdep.o): Add dependencies.
7473 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7474 * i386-cygwin-tdep.c: New file.
7475 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7476 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7477
4c2e2391
AC
74782003-03-20 Andrew Cagney <cagney@redhat.com>
7479
f20d38b7
AC
7480 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7481 (handle_inferior_event): Remove code calling
7482 DYNAMIC_TRAMPOLINE_NEXTPC.
7483
0022b738
AC
7484 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7485 already has a full path.
7486
864dbc90
AC
7487 * main.c (gdb_main): Return 1.
7488 (captured_main): Call error to report an invalid interpreter.
7489
4c2e2391
AC
7490 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7491 * alpha-osf1-tdep.c: Include "gdb_string.h".
7492
5ef7553b
JB
74932003-03-19 J. Brobecker <brobecker@gnat.com>
7494
7495 Continuing work to convert the hppa targets to multiarch partial.
7496
7497 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7498 method, now that hppa_push_dummy_frame has a conformant prototype.
7499 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7500 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7501 for the switch to multiarch partial.
7502
7bde8967
KB
75032003-03-19 Kevin Buettner <kevinb@redhat.com>
7504
7505 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7506 when iss is issNull.
7507
b006a9e9
KB
75082003-03-18 Kevin Buettner <kevinb@redhat.com>
7509
7510 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7511 NUM_REGS bounds check.
7512
5e2e9765
KB
75132003-03-18 Kevin Buettner <kevinb@redhat.com>
7514
7515 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7516 * mips-tdep.c (gdb_assert.h): Include.
7517 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7518 (mips_register_name): Handle integer registers explicitly. Add
7519 bounds checking.
7520 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7521 (mips_lsi33k_reg_names): Don't list integer registers; they're
7522 handled by mips_register_name() now.
7523 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7524 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7525 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7526 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7527 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7528
a2867626
AC
75292003-03-18 Andrew Cagney <cagney@redhat.com>
7530
7531 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7532 a void pointer.
7533 * gdbtypes.h (print_scalar_formatted): Update declaration.
7534 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7535
06600e06
JB
75362003-03-18 J. Brobecker <brobecker@gnat.com>
7537
7538 * infrun.c (observer.h): Add #include.
7539 (normal_stop): Add call to observer_notify_normal_stop.
7540 * Makefile.in (infrun.o): Add dependency on observer.h.
7541
7daf4f5b
JB
75422003-03-18 J. Brobecker <brobecker@gnat.com>
7543
7544 Continuing work to convert the hppa targets to multiarch partial.
7545 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7546 parameter. Reformat comment.
7547 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7548 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7549 to match new profile.
7550
3371ccc0
JB
75512003-03-18 J. Brobecker <brobecker@gnat.com>
7552
7553 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7554 appear to be working in any case.
7555
4fbe891e
JB
75562003-03-18 J. Brobecker <brobecker@gnat.com>
7557
7558 * observer.c (observer_test_first_observer): New static variable.
7559 (observer_test_second_observer): Likewise.
7560 (observer_test_third_observer): Likewise.
7561 (observer_test_first_notification_function): New static function.
7562 (observer_test_second_notification_function): Likewise.
7563 (observer_test_third_notification_function): Likewise.
7564
a7ff40e7
JB
75652003-03-17 J. Brobecker <brobecker@gnat.com>
7566
7567 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7568 * somsolib.c (gdb_assert.h): Likewise.
7569 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7570 (somsolib.o): Likewise.
7571
26ca4152
AC
75722003-03-17 Andrew Cagney <cagney@redhat.com>
7573
7574 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7575 BFD. Simplify setting of di.endian.
7576
0a613259
AC
75772003-03-17 Andrew Cagney <cagney@redhat.com>
7578
7579 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7580 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7581
7582 From Elena Zannoni <ezannoni@redhat.com>
7583 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7584 vector and floating-point parameters.
7585 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7586 convention.
7587 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7588
1132738f
FN
75892003-03-17 Fernando Nasser <fnasser@redhat.com>
7590
7591 * MAINTAINERS: Remove my name from several maintainership roles.
7592
6dc42492
AC
75932003-03-17 Andrew Cagney <cagney@redhat.com>
7594
7595 Fix frame off-by-one bug.
7596 * frame-unwind.h (frame_this_id_ftype): Replace
7597 frame_unwind_id_ftype.
7598 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7599 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7600 with "prev_register".
7601 * frame-unwind.c (frame_unwind_find_by_pc): Return
7602 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7603 comment.
7604 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7605 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7606 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7607 (dummy_frame_unwind): Update.
7608 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7609 sentinel_frame_register_unwind.
7610 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7611 (sentinel_frame_unwinder): Update.
7612 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7613 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7614 * frame.c (create_sentinel_frame): Update. Initialize
7615 "prologue_cache" instead of "unwind_cache".
7616 (frame_register_unwind): Call this frame's prev_register with the
7617 next frame and this frame's prologue cache.
7618 (get_prev_frame): Simplify. Always call prev frame's this_id with
7619 this frame and prev frame's prologue cache. Document that this
7620 call is shifted one to the left when compared to the
7621 frame_register_unwind call.
7622 (legacy_saved_regs_prev_register): Replace
7623 frame_saved_regs_register_unwind.
7624 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7625 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7626 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7627 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7628 (d10v_frame_unwind): Update.
7629 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7630 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7631 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7632 "saved_regs" with "this_saved_regs".
7633
efd710d6
AC
76342003-03-16 Andrew Cagney <cagney@redhat.com>
7635
7636 * frame.c (frame_pop): Don't call target_store_registers. Fix
7637 problem reported by Mark Kettenis.
7638
4e259f09
MK
76392003-03-16 Mark Kettenis <kettenis@gnu.org>
7640
7641 * i386-tdep.c (i386_register_type): Renamed from
7642 i386_register_virtual_type. Adjust function signature.
7643 (i386_gdbarch_init): Set register_type instead of
7644 deprecated_max_register_raw_size,
7645 deprecated_max_register_virtual_size and register_virtual_type.
7646
055bb976
AC
76472003-03-14 Andrew Cagney <cagney@redhat.com>
7648
7649 * frame.c (get_prev_frame): When a legacy frame, always call
7650 legacy_get_prev_frame. Simplify unwind code using assumption that
7651 the unwinder is new.
7652 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7653 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7654 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7655
ac2adee5
AC
76562003-03-14 Andrew Cagney <cagney@redhat.com>
7657
7658 * frame.c (get_saved_register): Delete function.
7659 * frame.h (get_saved_register): Delete declaration.
7660 * xstormy16-tdep.c: Update comment.
7661 * regcache.h: Update comments.
7662 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7663 get_saved_register and extract_address, use
7664 frame_read_unsigned_register.
7665 (sparc_frame_saved_pc): Ditto.
7666 (sparc_get_saved_register): Instead of get_saved_register, use
7667 frame_register.
7668 (sparc_pop_frame): Ditto.
7669 * findvar.c: Update comments.
7670 (value_of_register): Call frame_register instead of
7671 get_saved_register.
7672 (value_from_register): Ditto.
7673 * config/sparc/tm-sparc.h: Update comment.
7674 * breakpoint.c: Update comment.
7675
129c1cd6
AC
76762003-03-14 Andrew Cagney <cagney@redhat.com>
7677
7678 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7679 GET_SAVED_REGISTER.
7680 * gdbarch.h, gdbarch.c: Re-generate.
7681 * frame.h: Update comments.
7682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7683 * x86-64-tdep.c (x86_64_init_abi): Update.
7684 * sparc-tdep.c (sparc_gdbarch_init): Update.
7685 * sh-tdep.c (sh_gdbarch_init): Update.
7686 * mips-tdep.c (mips_gdbarch_init): Update.
7687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7688 * cris-tdep.c (cris_gdbarch_init): Update.
7689 * ia64-tdep.c (ia64_gdbarch_init): Update.
7690 * frame.c (frame_register): Update.
7691 (get_saved_register): Update.
7692 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7693
749b82f6
AC
76942003-03-13 Andrew Cagney <cagney@redhat.com>
7695
7696 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7697 * gdbarch.h, gdbarch.c: Regenerate.
7698 * valops.c (hand_function_call): Update comment.
7699 * stack.c (return_command): Update comment.
7700 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7701 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7703 * x86-64-tdep.c (x86_64_init_abi): Update.
7704 * vax-tdep.c (vax_gdbarch_init): Update.
7705 * v850-tdep.c (v850_gdbarch_init): Update.
7706 * sparc-tdep.c (sparc_gdbarch_init): Update.
7707 * sh-tdep.c (sh_gdbarch_init): Update.
7708 * s390-tdep.c (s390_gdbarch_init): Update.
7709 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7710 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7711 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7712 * mips-tdep.c (mips_gdbarch_init): Update.
7713 * mcore-tdep.c (mcore_gdbarch_init): Update.
7714 * m68k-tdep.c (m68k_gdbarch_init): Update.
7715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7716 * ia64-tdep.c (ia64_gdbarch_init): Update.
7717 * i386-tdep.c (i386_gdbarch_init): Update.
7718 * hppa-tdep.c (hppa_gdbarch_init): Update.
7719 * h8300-tdep.c (h8300_gdbarch_init): Update.
7720 * frv-tdep.c (frv_gdbarch_init): Update.
7721 * cris-tdep.c (cris_gdbarch_init): Update.
7722 * avr-tdep.c (avr_gdbarch_init): Update.
7723 * arm-tdep.c (arm_gdbarch_init): Update.
7724 * alpha-tdep.c (alpha_gdbarch_init): Update.
7725
1594fa56
AC
77262003-03-13 Andrew Cagney <cagney@redhat.com>
7727
7728 * frame.c (legacy_frame_p): New function.
7729 (get_prev_frame): Use legacy_frame_p.
7730 * frame.h (legacy_frame_p): Declare.
7731
7717fda3
V
77322003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7733
fbe586ae 7734 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7735 listing corrected.
7736
0c67cbe9
V
77372003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7738
fbe586ae 7739 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7740
03febf99
AC
77412003-03-12 Andrew Cagney <cagney@redhat.com>
7742
7743 * frame.c (get_prev_frame): Rename the frame parameter to
7744 "this_frame".
7745 (get_next_frame, legacy_get_prev_frame): Ditto.
7746
0a1e1ca1
AC
77472003-03-12 Andrew Cagney <cagney@redhat.com>
7748
7749 * frame.c (get_current_frame): Check target_has_registers before
7750 checking target_has_stack.
7751 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7752 instead of deprecated_selected_frame.
7753 * findvar.c (value_of_register): Pass "frame", not
7754 deprecated_selected_frame, to value_of_builtin_reg.
7755
a66a9c23
AC
77562003-03-12 Andrew Cagney <cagney@redhat.com>
7757
7758 * regcache.c (regcache_cooked_write_signed): New function.
7759 (regcache_cooked_write_unsigned): New function.
7760 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7761 (regcache_cooked_read_signed): Fix regnum in range assertion.
7762 * regcache.h (regcache_cooked_write_signed): Declare.
7763 (regcache_cooked_write_unsigned): Declare.
7764
8bedc050
AC
77652003-03-12 Andrew Cagney <cagney@redhat.com>
7766
7767 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7770 * x86-64-tdep.h: Update.
7771 * x86-64-tdep.c (x86_64_init_abi): Update.
7772 * v850-tdep.c (v850_gdbarch_init): Update.
7773 * sparc-tdep.c (sparc_gdbarch_init): Update.
7774 * sh-tdep.c (sh_gdbarch_init): Update.
7775 * s390-tdep.c (s390_gdbarch_init): Update.
7776 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7777 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7778 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7779 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7780 * mips-tdep.c (mips_gdbarch_init): Update.
7781 * mcore-tdep.c (mcore_gdbarch_init): Update.
7782 * m68k-tdep.c (m68k_gdbarch_init): Update.
7783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7784 * ia64-tdep.c (ia64_gdbarch_init): Update.
7785 * i386-tdep.c (i386_gdbarch_init): Update.
7786 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7787 * hppa-tdep.c (hppa_gdbarch_init): Update.
7788 * h8300-tdep.c (h8300_gdbarch_init): Update.
7789 * frv-tdep.c (frv_gdbarch_init): Update.
7790 * cris-tdep.c (cris_gdbarch_init): Update.
7791 * avr-tdep.c (avr_gdbarch_init): Update.
7792 * arm-tdep.c (arm_gdbarch_init): Update.
7793 * alpha-tdep.c (alpha_gdbarch_init): Update.
7794 * sh-tdep.c (sh_init_extra_frame_info): Update.
7795 (sh64_init_extra_frame_info): Update.
7796 * ns32knbsd-nat.c (frame_num_args): Update.
7797 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7798 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7799 (xstormy16_frame_chain_valid): Update.
7800 * vax-tdep.c (vax_saved_pc_after_call): Update.
7801 * v850-tdep.c (v850_frame_chain): Update.
7802 (v850_pop_frame): Update.
7803 (v850_init_extra_frame_info): Update.
7804 * sparc-tdep.c (setup_arbitrary_frame): Update.
7805 * ns32k-tdep.c (umax_frame_num_args): Update.
7806 * s390-tdep.c (s390_pop_frame_regular): Update.
7807 * mn10300-tdep.c (mn10300_frame_chain): Update.
7808 (mn10300_pop_frame_regular): Update.
7809 (mn10300_init_extra_frame_info): Update.
7810 * mips-tdep.c (mips_init_frame_pc_first): Update.
7811 (mips_frame_chain): Update.
7812 (mips_pop_frame): Update.
7813 * mcore-tdep.c (mcore_frame_chain): Update.
7814 (mcore_pop_frame): Update.
7815 (mcore_init_extra_frame_info): Update.
7816 * arch-utils.c (init_frame_pc_default): Update.
7817 * m68k-tdep.c (isi_frame_num_args): Update.
7818 (delta68_frame_num_args): Update.
7819 (news_frame_num_args): Update.
7820 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7821 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7822 (alpha_frame_chain): Update.
7823 (alpha_pop_frame): Update.
7824 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7825 (hppa_init_extra_frame_info): Update.
7826 (hppa_frame_chain): Update.
7827 (hppa_frame_chain_valid): Update.
7828 * cris-tdep.c (cris_init_extra_frame_info): Update.
7829 * avr-tdep.c (avr_init_extra_frame_info): Update.
7830 * arm-tdep.c (arm_frame_chain_valid): Update.
7831 (arm_init_extra_frame_info): Update.
7832 (arm_pop_frame): Update.
7833 * frame.c (frame_pc_unwind): Update.
7834 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7835 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7836 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7837 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7838 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7839 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7840
7a25a7c1
AC
78412003-03-12 Andrew Cagney <cagney@redhat.com>
7842
7843 Eliminate the need for POP_FRAME.
7844 * frame.c (do_frame_unwind_register): New function.
7845 (frame_pop): When no POP_FRAME, pop the frame using register
7846 unwind and a scratch regcache.
7847 (frame_saved_regs_pop): Delete function.
7848 (trad_frame_unwinder): Update.
7849 * d10v-tdep.c (d10v_frame_pop): Delete function.
7850 (d10v_frame_unwind): Update.
7851 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7852 (sentinel_frame_unwinder): Update.
7853 * dummy-frame.c (dummy_frame_pop): Delete function.
7854 (dummy_frame_unwind): Update.
7855 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7856 (struct frame_unwind): Update.
7857
2f38ef89
KB
78582003-03-11 Kevin Buettner <kevinb@redhat.com>
7859
7860 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7861 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7862 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7863 Do range checks on register number obtained from debugging info.
7864 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7865 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7866 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7867 mapping function.
7868 (do_fp_register_row): Fix typo which caused double type to be
7869 used when attempting to unpack a float.
7870
552f4abf
JB
78712003-03-11 J. Brobecker <brobecker@gnat.com>
7872
7873 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7874
e0d2ae16
AC
78752003-03-11 Andrew Cagney <cagney@redhat.com>
7876
7877 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7878 frame. Problem found by Corinna Vinschen.
7879
ddbfdd06
PM
78802003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7881
7882 * doublest.c (floatformat_from_length): Accept also
7883 the real size of 'long double' type.
7884
088b2ddc 78852003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7886
088b2ddc 7887 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7888 * breakpoint.c (bpstat_copy): Copy the command lines as well
7889 as the old value, to match what is freed in bpstat_clear.
7890
f56f77c1
DC
78912003-03-10 David Carlton <carlton@math.stanford.edu>
7892
7893 * minsyms.c (add_minsym_to_hash_table): Replace
7894 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7895 (compare_minimal_symbols, compact_minimal_symbols)
7896 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7897 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7898 of DEPRECATED_SYMBOL_MATCHES_NAME.
7899 (lookup_minimal_symbol_solib_trampoline): Ditto.
7900
5602984a
AC
79012003-03-10 Andrew Cagney <cagney@redhat.com>
7902
7903 * regcache.h (regcache_cooked_read_ftype): Define.
7904 (regcache_save, regcache_restore): Add a cooked_read parameter.
7905 * regcache.c (regcache_save, regcache_restore): Update.
7906 (do_cooked_read): New function.
7907 (regcache_cpy): Pass do_cooked_read to regcache_save and
7908 regcache_restore.
7909
8bedc050
AC
79102003-03-10 Andrew Cagney <cagney@redhat.com>
7911
7912 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7913 * gdbarch.h, gdbarch.c: Re-generate.
7914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7915 * x86-64-tdep.h: Update.
7916 * x86-64-tdep.c (x86_64_init_abi): Update.
7917 * v850-tdep.c (v850_gdbarch_init): Update.
7918 * sparc-tdep.c (sparc_gdbarch_init): Update.
7919 * sh-tdep.c (sh_gdbarch_init): Update.
7920 * s390-tdep.c (s390_gdbarch_init): Update.
7921 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7922 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7923 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7924 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7925 * mips-tdep.c (mips_gdbarch_init): Update.
7926 * mcore-tdep.c (mcore_gdbarch_init): Update.
7927 * m68k-tdep.c (m68k_gdbarch_init): Update.
7928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7929 * ia64-tdep.c (ia64_gdbarch_init): Update.
7930 * i386-tdep.c (i386_gdbarch_init): Update.
7931 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7932 * hppa-tdep.c (hppa_gdbarch_init): Update.
7933 * h8300-tdep.c (h8300_gdbarch_init): Update.
7934 * frv-tdep.c (frv_gdbarch_init): Update.
7935 * cris-tdep.c (cris_gdbarch_init): Update.
7936 * avr-tdep.c (avr_gdbarch_init): Update.
7937 * arm-tdep.c (arm_gdbarch_init): Update.
7938 * alpha-tdep.c (alpha_gdbarch_init): Update.
7939 * sh-tdep.c (sh_init_extra_frame_info): Update.
7940 (sh64_init_extra_frame_info): Update.
7941 * ns32knbsd-nat.c (frame_num_args): Update.
7942 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7943 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7944 (xstormy16_frame_chain_valid): Update.
7945 * vax-tdep.c (vax_saved_pc_after_call): Update.
7946 * v850-tdep.c (v850_frame_chain): Update.
7947 (v850_pop_frame): Update.
7948 (v850_init_extra_frame_info): Update.
7949 * sparc-tdep.c (setup_arbitrary_frame): Update.
7950 * ns32k-tdep.c (umax_frame_num_args): Update.
7951 * s390-tdep.c (s390_pop_frame_regular): Update.
7952 * mn10300-tdep.c (mn10300_frame_chain): Update.
7953 (mn10300_pop_frame_regular): Update.
7954 (mn10300_init_extra_frame_info): Update.
7955 * mips-tdep.c (mips_init_frame_pc_first): Update.
7956 (mips_frame_chain): Update.
7957 (mips_pop_frame): Update.
7958 * mcore-tdep.c (mcore_frame_chain): Update.
7959 (mcore_pop_frame): Update.
7960 (mcore_init_extra_frame_info): Update.
7961 * arch-utils.c (init_frame_pc_default): Update.
7962 * m68k-tdep.c (isi_frame_num_args): Update.
7963 (delta68_frame_num_args): Update.
7964 (news_frame_num_args): Update.
7965 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7966 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7967 (alpha_frame_chain): Update.
7968 (alpha_pop_frame): Update.
7969 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7970 (hppa_init_extra_frame_info): Update.
7971 (hppa_frame_chain): Update.
7972 (hppa_frame_chain_valid): Update.
7973 * cris-tdep.c (cris_init_extra_frame_info): Update.
7974 * avr-tdep.c (avr_init_extra_frame_info): Update.
7975 * arm-tdep.c (arm_frame_chain_valid): Update.
7976 (arm_init_extra_frame_info): Update.
7977 (arm_pop_frame): Update.
7978 * frame.c (frame_pc_unwind): Update.
7979 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7980 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7981 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7982 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7983 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7984 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7985
12cc2063
AC
79862003-03-10 Andrew Cagney <cagney@redhat.com>
7987
7988 * gdbarch.sh (gdbarch_unwind_pc): New method.
7989 * gdbarch.h, gdbarch.c: Regenerate.
7990 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7991 but use read_pc and FRAME_SAVED_PC as fall backs.
7992 (frame_saved_regs_pc_unwind): Delete function.
7993 (trad_frame_unwinder): Update.
7994 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7995 (struct frame_unwind): Update.
7996 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7997 (dummy_frame_unwind): Update.
7998 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7999 (sentinel_frame_unwinder): Update.
8000 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8001 (d10v_frame_unwind): Update.
8002 (d10v_unwind_pc): New function.
8003 (d10v_gdbarch_init): Set unwind_pc.
8004
ef840a37
AC
80052003-03-10 Andrew Cagney <cagney@redhat.com>
8006
a2ce2e56
AC
8007 * gdbarch.h: Re-generate.
8008
ef840a37
AC
8009 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8010 PC.
8011 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8012 the PC register.
8013
08f3424b
MK
80142003-03-08 Mark Kettenis <kettenis@gnu.org>
8015
8016 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8017
1248ede2
AC
80182003-03-08 Andrew Cagney <cagney@redhat.com>
8019
8020 * cli-out.c: Update copyright.
8021 (cli_out_data): Define typedef. Use instead of ui_out_data.
8022
f49bacc8
AC
80232003-03-08 Andrew Cagney <cagney@redhat.com>
8024
8025 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8026 the result.
8027
9b05f993
AC
80282003-03-07 Andrew Cagney <cagney@redhat.com>
8029
8030 * gdbarch.sh: Don't generate two macro definitions when an
8031 undefined macro taking no arguments.
8032 * gdbarch.h: Regenerate.
8ffd9b1b 8033
166f4c7b
ML
80342002-03-07 Michal Ludvig <mludvig@suse.cz>
8035
8036 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8037 (x86_64_unwind_dummy_id): New functions.
8038 (x86_64_init_abi): Register these two new functions.
8039
6d686a84
ML
80402003-03-07 Michal Ludvig <mludvig@suse.cz>
8041
8042 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8043 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8044 separate function.
8045 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8046
6314f104
AC
80472003-03-05 Andrew Cagney <cagney@redhat.com>
8048
8049 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8050 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8051 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8052 to use unwind_dummy_id when a dummy frame.
8053 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8054 predicate.
8055 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8056
ceea5145
AC
80572003-03-05 Andrew Cagney <cagney@redhat.com>
8058
8059 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8060 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8061 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8062 values.
8063
0d843116
AC
80642003-03-05 Andrew Cagney <cagney@redhat.com>
8065
8066 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8067 (struct d10v_unwind_cache): Delete field "frameless". Replace
8068 "next_addr" with "sp_offset". Add "r11_offset".
8069 (d10v_frame_unwind_cache): Update.
8070 (prologue_find_regs): Update. When "mv r11, sp", save the
8071 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8072 RN was saved in r11_offset.
8073
b2579786
AC
80742003-03-05 Andrew Cagney <cagney@redhat.com>
8075
8076 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8077 cached PC value in the next frame.
8078
218e5956
AC
80792003-03-05 Andrew Cagney <cagney@redhat.com>
8080
8081 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8082 "id_unwind_cache" with "id".
8083 (frame_id_unwind): Delete declaration.
8084 * frame.c (frame_id_unwind): Delete function.
8085 (get_prev_frame): Call the frame id unwind method directly. Store
8086 the returned next frame's ID value in NEXT_FRAME. Note that there
8087 is a problem with the wrong unwind ID being called with the wrong
8088 unwind cache.
8089
ed363b1b
DJ
80902003-03-05 Daniel Jacobowitz <drow@mvista.com>
8091
8092 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8093
fe1f4a5e
DJ
80942003-03-05 James Ingham <jingham@apple.com>
8095 Daniel Jacobowitz <drow@mvista.com>
8096
8097 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8098 (auto_cp_abi): New variable.
8099 (current_cp_abi, num_cp_abis): Make static.
8100 (CP_ABI_MAX): Define.
8101 (cp_abis): Turn into an array.
8102 (value_virtual_fn_field): Fix formatting.
8103 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8104 takes a pointer.
8105 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8106 (list_cp_abis, _initialize_cp_abi): New functions.
8107 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8108 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8109 switch_to_cp_abi. Update prototype for register_cp_abi.
8110 * Makefile.in (cp-abi.o): Update dependencies.
8111 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8112 instead of switch_to_cp_abi.
8113 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8114 register_cp_abi.
8115 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8116 register_cp_abi.
8117 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8118
e4adbba9
DJ
81192003-03-05 Daniel Jacobowitz <drow@mvista.com>
8120
8121 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8122 * dwarf2loc.c: Include "regcache.h".
8123 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8124 register_size.
8125 * Makefile.in (dwarf2loc.o): Update dependencies.
8126
91ccbfc1
TR
81272003-03-04 Theodore A. Roth <troth@openavr.org>
8128
8129 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8130 number of io registers reported by remote target is not a multiple of
8131 step.
8132
3d4e8fd2
DC
81332003-03-04 David Carlton <carlton@math.stanford.edu>
8134
8135 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8136 (lookup_symbol_aux_psymtabs): Update call to
8137 lookup_partial_symbol.
8138 (lookup_transparent_type, find_main_psymtab)
8139 (make_symbol_overload_list): Ditto.
8140
ed42d87b
KH
81412003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8142
8143 * MAINTAINERS (Write after approval): Update my email address.
8144
a0ed5532
AC
81452003-03-03 Andrew Cagney <cagney@redhat.com>
8146
8147 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8148 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8149 predicate. Replace MAX_REGISTER_RAW_SIZE.
8150 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8151 MAX_REGISTER_VIRTUAL_SIZE.
8152 * regcache.c (legacy_max_register_raw_size): New function.
8153 (legacy_max_register_virtual_size): New function.
8154 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8155 (MAX_REGISTER_RAW_SIZE): Define.
8156 (legacy_max_register_raw_size): Declare.
8157 (legacy_max_register_virtual_size): Declare.
8158 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8159 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8160 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8161 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8162 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8163 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8164 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8165 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8166 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8168 * vax-tdep.c (vax_gdbarch_init): Update.
8169 * v850-tdep.c (v850_gdbarch_init): Update.
8170 * sparc-tdep.c (sparc_gdbarch_init): Update.
8171 * sh-tdep.c (sh_gdbarch_init): Update.
8172 * s390-tdep.c (s390_gdbarch_init): Update.
8173 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8174 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8176 * mips-tdep.c (mips_gdbarch_init): Update.
8177 * mcore-tdep.c (mcore_gdbarch_init): Update.
8178 * m68k-tdep.c (m68k_gdbarch_init): Update.
8179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8180 * ia64-tdep.c (ia64_gdbarch_init): Update.
8181 * i386-tdep.c (i386_gdbarch_init): Update.
8182 * hppa-tdep.c (hppa_gdbarch_init): Update.
8183 * h8300-tdep.c (h8300_gdbarch_init): Update.
8184 * frv-tdep.c (frv_gdbarch_init): Update.
8185 * cris-tdep.c (cris_gdbarch_init): Update.
8186 * avr-tdep.c (avr_gdbarch_init): Update.
8187 * arm-tdep.c (arm_gdbarch_init): Update.
8188 * alpha-tdep.c (alpha_gdbarch_init): Update.
8189 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8190 max_register_raw_size or max_register_virtual_size.
8191
8e437497
DC
81922003-03-03 David Carlton <carlton@math.stanford.edu>
8193
8194 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8195 SYMBOL_MATCHES_NAME, add comment.
8196 (SYMBOL_MATCHES_NATURAL_NAME): New.
8197 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8198 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8199 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8200 * symtab.c (lookup_partial_symbol): Use
8201 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8202 unhelpful comment.
8203 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8204 SYMBOL_MATCHES_NAME.
8205 Fix for PR c++/33.
8206
25120b0d
DC
82072003-03-03 David Carlton <carlton@math.stanford.edu>
8208
8209 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8210 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8211 by regexp matching against SYMBOL_NATURAL_NAME.
8212
78a11fb4
DC
82132003-03-03 David Carlton <carlton@math.stanford.edu>
8214
8215 * linespec.c (find_method): Extract code into collect_methods.
8216 (collect_methods): New.
8217
645dd519
MK
82182003-03-02 Mark Kettenis <kettenis@gnu.org>
8219
b4700d91
MK
8220 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8221 get_frame_base.
8222
645dd519
MK
8223 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8224 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8225
0aa7e1aa
SC
82262003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8227
8ffd9b1b 8228 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8229 and not regnum when summing the size of all registers up to regnum.
8230
f30ee0bc
AC
82312003-03-01 Andrew Cagney <cagney@redhat.com>
8232
8233 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8234 FRAME_INIT_SAVED_REGS.
8235 * gdbarch.h, gdbarch.c: Regenerate.
8236 * stack.c (frame_info): Update.
8237 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8238 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8239 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8240 * ns32k-tdep.c (ns32k_pop_frame): Update.
8241 * mips-tdep.c (mips_pop_frame): Update.
8242 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8243 * ia64-tdep.c (ia64_frame_chain): Update.
8244 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8245 (ia64_frameless_function_invocation): Update.
8246 (ia64_init_extra_frame_info): Update.
8247 (ia64_pop_frame_regular): Update.
8248 * frame.h (struct frame_info): Update comment.
8249 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8250 * frame.c (frame_saved_regs_register_unwind): Update.
8251 (frame_saved_regs_register_unwind): Update.
8252 (deprecated_generic_get_saved_register): Update.
8253 * cris-tdep.c: Update comment.
8254 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8255 Rename macro.
8256 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8257 * x86-64-tdep.c (x86_64_init_abi): Update.
8258 * vax-tdep.c (vax_gdbarch_init): Update.
8259 * v850-tdep.c (v850_gdbarch_init): Update.
8260 * sparc-tdep.c (sparc_gdbarch_init): Update.
8261 * sh-tdep.c (sh_gdbarch_init): Update.
8262 * s390-tdep.c (s390_gdbarch_init): Update.
8263 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8264 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8265 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8266 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8267 * mips-tdep.c (mips_gdbarch_init): Update.
8268 * mcore-tdep.c (mcore_gdbarch_init): Update.
8269 * m68k-tdep.c (m68k_gdbarch_init): Update.
8270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8271 * ia64-tdep.c (ia64_gdbarch_init): Update.
8272 * i386-tdep.c (i386_gdbarch_init): Update.
8273 * frv-tdep.c (frv_gdbarch_init): Update.
8274 * avr-tdep.c (avr_gdbarch_init): Update.
8275 * arm-tdep.c (arm_gdbarch_init): Update.
8276 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8277
42fa7c0f
AC
82782003-03-01 Andrew Cagney <cagney@redhat.com>
8279
8280 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8281 option enum and switch. When no windows, set the interpreter to
8282 INTERP_CONSOLE.
8ffd9b1b 8283
49c7e338
AC
82842003-03-01 Andrew Cagney <cagney@redhat.com>
8285
8286 * main.c (captured_main): Replace magic option characters with an
8287 enum.
8288
e9582e71
AC
82892003-03-01 Andrew Cagney <cagney@redhat.com>
8290
8291 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8292 INIT_EXTRA_FRAME_INFO.
8293 * gdbarch.h, gdbarch.c: Regenerate.
8294 * arm-tdep.c: Update comments.
8295 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8296 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8297 * frame.h, avr-tdep.c: Ditto.
8298 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8299 (create_new_frame, legacy_get_prev_frame): Ditto.
8300 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8301 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8302 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8303 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8304 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8305 * v850-tdep.c (v850_gdbarch_init): Ditto.
8306 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8307 * sh-tdep.c (sh_gdbarch_init): Ditto.
8308 * s390-tdep.c (s390_gdbarch_init): Ditto.
8309 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8310 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8311 * mips-tdep.c (mips_gdbarch_init): Ditto.
8312 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8314 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8315 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8316 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8317 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8318 * frv-tdep.c (frv_gdbarch_init): Ditto.
8319 * cris-tdep.c (cris_gdbarch_init): Ditto.
8320 * avr-tdep.c (avr_gdbarch_init): Ditto.
8321 * arm-tdep.c (arm_gdbarch_init): Ditto.
8322 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8324
35cac7cf
AC
83252003-03-01 Andrew Cagney <cagney@redhat.com>
8326
8327 * gdbarch.sh (register_type): New function with predicate.
8328 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8329 * gdbarch.h, gdbarch.c: Re-generate.
8330 * arch-utils.c (generic_register_byte): Use generic_register_size.
8331 (generic_register_size): When available, use
8332 gdbarch_register_type.
8333 * regcache.c (init_regcache_descr): When available, initialize the
8334 register type array using gdbarch_register_type. If the
8335 architecture supplies gdbarch_register_type, do not use the legacy
8336 regcache layout.
8337 * d10v-tdep.c (d10v_register_type): Replace
8338 d10v_register_virtual_type.
8339 (d10v_gdbarch_init): Set register_type instead of
8340 register_virtual_type.
8341
7b83296f
AC
83422003-03-01 Andrew Cagney <cagney@redhat.com>
8343
8344 * Makefile.in (ax-gdb.o): Update dependencies.
8345 * ax-gdb.c: Include "regcache.h".
8346 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8347 * findvar.c (value_of_register): Ditto.
8348 * infcmd.c (default_print_registers_info): Ditto.
8349
eadc1c87
MK
83502003-03-01 Mark Kettenis <kettenis@gnu.org>
8351
8352 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8353 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8354
14143612
MK
83552003-03-01 Mark Kettenis <kettenis@gnu.org>
8356
8357 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8358 of STREQ.
8359
a55cc764
DJ
83602003-02-28 Daniel Jacobowitz <drow@mvista.com>
8361
8362 * Makefile.in (dwarf2loc.o): Update dependencies.
8363 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8364 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8365 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8366 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8367 (locexpr_tracepoint_var_ref): New function.
8368 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8369
08a617da
AC
83702003-02-28 Andrew Cagney <cagney@redhat.com>
8371
8372 * regcache.c (register_size): New function.
8373 * regcache.h (register_size): Declare
8374 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8375 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8376
4224873a
DC
83772003-02-28 David Carlton <carlton@math.stanford.edu>
8378
8379 * linespec.c (decode_compound): Extract code into find_method.
8380 (find_method): New.
8381
ccdc5d7f
JB
83822003-02-28 J. Brobecker <brobecker@gnat.com>
8383
8384 * Makefile.in: Add rules to build and link in observer.o.
8385
974e8ced
JB
83862003-02-27 J. Brobecker <brobecker@gnat.com>
8387
8388 * observer.c: Minor comments edits.
8389
7a28f973
JB
83902003-02-27 J. Brobecker <brobecker@gnat.com>
8391
8392 * observer.h, observer.c: New file.
8393
27cddce2
AC
83942003-02-27 Andrew Cagney <cagney@redhat.com>
8395
8396 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8397
b94a41a1
SC
83982003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8399
8400 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8401 (M6812_OP_STS_EXT): Likewise.
8402 (m6811_prologue): Use the above to recognize prologue.
8403 (m6812_prologue): Likewise.
8404
c8be8951
DC
84052003-02-27 David Carlton <carlton@math.stanford.edu>
8406
8407 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8408 SYMBOL_PRINT_NAME.
8409 (compare_psymbols): Ditto.
8410 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8411
d05bb1fc
MS
84122003-02-27 Michael Snyder <msnyder@redhat.com>
8413
4e845cd3
MS
8414 * f-lang.c (build_fortran_types): New function.
8415 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8416 * doublest.c (extract_floating): Fix warning text.
8417
f3824013
AC
84182003-02-27 Andrew Cagney <cagney@redhat.com>
8419
8420 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8421 predicate. Replaces PUSH_DUMMY_FRAME.
8422 * gdbarch.h, gdbarch.c: Regnerate.
8423 * valops.c (hand_function_call): Update. Call
8424 generic_push_dummy_frame directly.
8425 * vax-tdep.c (vax_gdbarch_init): Update.
8426 * sparc-tdep.c (sparc_gdbarch_init): Update.
8427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8428 * m68k-tdep.c (m68k_gdbarch_init): Update.
8429 * hppa-tdep.c (hppa_gdbarch_init): Update.
8430 * alpha-tdep.c (alpha_gdbarch_init): Update.
8431 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8432 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8433 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8435 push_dummy_frame to generic_push_dummy_frame.
8436 * v850-tdep.c (v850_gdbarch_init): Ditto.
8437 * sh-tdep.c (sh_gdbarch_init): Ditto.
8438 * s390-tdep.c (s390_gdbarch_init): Ditto.
8439 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8440 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8441 * mips-tdep.c (mips_gdbarch_init): Ditto.
8442 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8444 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8445 * i386-tdep.c (i386_gdbarch_init): Ditto.
8446 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8447 * frv-tdep.c (frv_gdbarch_init): Ditto.
8448 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8449 * cris-tdep.c (cris_gdbarch_init): Ditto.
8450 * avr-tdep.c (avr_gdbarch_init): Ditto.
8451 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8452
ad188201
KB
84532003-02-26 Kevin Buettner <kevinb@redhat.com>
8454
8455 * mips-tdep.c (show_mips_abi): New function.
8456 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8457 command ``show mips abi''.
8458
6b37567a 84592003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8460
6b37567a 8461 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8462 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8463 more sline entries have been seen for the function.
8464
d3e0a5bf
MC
84652003-02-26 Michael Chastain <mec@shout.net>
8466
8467 * configure: Regenerate with autoconf 000227.
8468
18972eea
MC
84692003-02-26 Michael Chastain <mec@shout.net>
8470
8471 Close PR build/660.
8472 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8473 for old libc5/glibc.
8474 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8475
0bbde931
KW
84762003-02-26 Kris Warkentin <kewarken@qnx.com>
8477
8478 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8479 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8480
27ca5dad
MC
84812003-02-26 Michael Chastain <mec@shout.net>
8482
8483 * configure.in: New variable HAVE_UINTPTR_T.
8484 * configure, config.in: Regenerated.
8485
6f88d630
DJ
84862003-02-26 Daniel Jacobowitz <drow@mvista.com>
8487
8488 Fix PR build/1097.
8489 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8490
b14185ce
AC
84912003-02-25 Andrew Cagney <cagney@redhat.com>
8492
8493 * frame.c (get_prev_frame): Add comment on check for
8494 inside_entry_func. Only check for inside_entry_file when not a
8495 dummy and not a sentinel. Check that the new frame is not inner
8496 to the old frame.
8497
ac2bd0a9
AC
84982003-02-25 Andrew Cagney <cagney@redhat.com>
8499
8500 * frame.c (frame_debug): New variable.
8501 (_initialize_frame): Add "set/show debug frame" command.
8502 (get_prev_frame): When frame_debug, print reason why unwind
8503 failed.
8504
b18a0fd2
MC
85052003-02-25 Michael Chastain <mec@shout.net>
8506
8507 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8508 to avoid uintptr_t definition problems.
8509
22abf04a
DC
85102003-02-25 David Carlton <carlton@math.stanford.edu>
8511
8512 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8513 (SYMBOL_LINKAGE_NAME): Ditto.
8514 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8515 SYMBOL_LINKAGE_NAME.
8516 (struct general_symbol_info): Expand comment.
8517 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8518 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8519 (SYMBOL_MATCHES_REGEXP): Ditto.
8520 * symtab.c (symbol_natural_name): New function.
8521 * objfiles.h: Replace all uses of SYMBOL_NAME by
8522 DEPRECATED_SYMBOL_NAME.
8523 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8524 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8525 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8526 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8527 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8528 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8529 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8530 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8531 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8532 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8533 * ada-exp.y: Ditto.
8534 * ada-exp.y: Update copyright.
8535 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8536 * cp-valprint.c: Ditto.
8537
1a5848f6
JJ
85382003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8539
8540 * infptrace.c (detach): Do not flag error if ptrace detach fails
8541 and errno is set to ESRCH.
8542
7343d46a
AC
85432003-02-24 Andrew Cagney <cagney@redhat.com>
8544
8545 * infptrace.c (udot_info): Change type of udot_off to long. Use
8546 paddr when printing udot_off's value.
8547
49fa1dc2
DC
85482003-02-24 David Carlton <carlton@math.stanford.edu>
8549
8550 * symtab.c (make_symbol_overload_list): Only read in partial
8551 symtabs containing a matching partial symbol.
8552
0fe19209
DC
85532003-02-24 David Carlton <carlton@math.stanford.edu>
8554
8555 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8556 do the comparison, not strcmp.
8557 * symfile.c (compare_psymbols): Ditto.
8558 * defs.h: Declare strcmp_iw_ordered.
8559 * utils.c (strcmp_iw_ordered): New function.
8560
8e3ee7b5
JB
85612003-02-24 Jim Blandy <jimb@redhat.com>
8562
8563 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8564 support, shared libs): Remove my name from here, to better reflect
8565 reality.
8566
7df1a324
KW
85672003-02-24 Kris Warkentin <kewarken@qnx.com>
8568
8569 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8570 (target_ops): Add to_have_continuable_watchpoint.
8571 * target.c (update_current_target): Add INHERIT line for
8572 to_have_continuable_watchpoint.
8573 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8574 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8575 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8576 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8577
d1c76907
EZ
85782003-02-24 Elena Zannoni <ezannoni@redhat.com>
8579
8580 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8581 maintainership.
8582
2610b0bf
KW
85832003-02-24 Kris Warkentin <kewarken@qnx.com>
8584
f46169db
KW
8585 * solib.c (solib_open): Call target defined search function after
8586 failing with solib-search-path.
8587 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8588 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8589
9a3c34fe
KW
85902003-02-24 Kris Warkentin <kewarken@qnx.com>
8591
f46169db 8592 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8593
2417dd25
SC
85942003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8595
8596 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8597
b631436b
SC
85982003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8599
8600 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8601 (m68hc11_add_reggroups): New function.
8602 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8603 (m68hc11_gdbarch_init): Install the reggroups.
8604 (_initialize_m68hc11_tdep): Initialize them.
8605
0aa8c1e4
JW
86062003-02-21 James E Wilson <wilson@tuliptree.org>
8607
8608 * MAINTAINERS: Update my email address.
8609
50ceaba5
DC
86102003-02-21 David Carlton <carlton@math.stanford.edu>
8611
8612 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8613
4c2df51b
DJ
86142003-02-21 Daniel Jacobowitz <drow@mvista.com>
8615
8616 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8617 * symtab.h: Add opaque declarations of struct axs_value and
8618 struct agent_expr.
8619 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8620 (struct location_funcs): New type.
8621 (struct symbol): Add "loc" to aux_value.
8622 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8623 * dwarf2read.c: Include "dwarf2expr.h".
8624 (dwarf2_symbol_mark_computed): New function.
8625 (read_func_scope): Use it.
8626 (var_decode_location): New function.
8627 (new_symbol): Use it.
8628 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8629
8630 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8631 (dwarf2expr_h, dwarf2loc_h): New variables.
8632 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8633 (dwarf2expr.o, dwarf2loc.o): New rules.
8634 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8635 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8636 LOC_COMPUTED_ARG.
8637 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8638 * m2-exp.y (yylex): Likewise.
8639 * printcmd.c (address_info, print_frame_args): Likewise.
8640 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8641 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8642 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8643 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8644 * symtab.c (lookup_block_symbol): Likewise.
8645
5784d15e
AF
86462003-02-20 Adam Fedor <fedor@gnu.org>
8647
8648 * symtab.h: Remove objc_specific struct
8649 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8650 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8651 Have language_objc use cplus_specific struct.
8652
d4cad8db
TT
86532003-02-20 Tom Tromey <tromey@redhat.com>
8654
8655 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8656 TYPE_NAME, when printing a String value. PR java/1075.
8657
2f9a90b4
AF
86582003-02-20 Adam Fedor <fedor@gnu.org>
8659
d38074a8 8660 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8661 * objc-lang.c (find_methods): Make static.
2f9a90b4 8662
6f17862b
CF
86632003-02-20 Christopher Faylor <cgf@redhat.com>
8664
8665 * win32-nat.c (get_image_name): Check return value from
8666 ReadProcessMemory.
8667 (child_xfer_memory): Ditto.
8668
715d1656
AO
86692003-02-20 Alexandre Oliva <aoliva@redhat.com>
8670
8671 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8672 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8673 '${exec_prefix}' (in addition to the expansion thereof) as
8674 relocatable.
8675 * configure: Rebuilt.
8676
b1262a02
DC
86772003-02-20 David Carlton <carlton@math.stanford.edu>
8678
8679 * symtab.c (search_symbols): Revert the search_symbols part of my
8680 2002-12-23 patch. Add comment.
8681
7134143f
DJ
86822002-02-20 Daniel Jacobowitz <drow@mvista.com>
8683
8684 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8685 * dbxread.c (elfstab_build_psymtabs): Don't call
8686 install_minimal_symbols.
8687 (stabsect_build_psymtabs): Likewise.
8688 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8689 earlier.
8690 * somread.c (som_symfile_read): Call install_minimal_symbols
8691 and do_cleanups earlier.
8692 * nlmread.c (nlm_symfile_read): Likewise.
8693 * mdebugread.c (elfmdebug_build_psymtabs): Call
8694 install_minimal_symbols and make appropriate cleanups.
8695
cf466558
KB
86962003-02-20 Kevin Buettner <kevinb@redhat.com>
8697
8698 * solib.c (reload_shared_libraries): New function.
8699 (_initialize_solib): Add callbacks for ``set solib-search-path''
8700 and ``set solib-absolute-prefix''.
8701
de5ad195
DC
87022003-02-20 David Carlton <carlton@math.stanford.edu>
8703
8704 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8705 expand comment.
8706 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8707 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8708 * ada-typeprint.c (ada_typedef_print): Ditto.
8709 * ax-gdb.c (gen_var_ref): Ditto.
8710 * breakpoint.c (print_one_breakpoint): Ditto.
8711 * buildsym.c (finish_block): Ditto.
8712 * c-valprint.c (c_val_print): Ditto.
8713 * expprint.c (print_subexp): Ditto.
8714 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8715 * infcmd.c (jump_command): Ditto.
8716 * linespec.c (decode_line_2, decode_compound): Ditto.
8717 * maint.c (maintenance_translate_address): Ditto.
8718 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8719 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8720 Ditto.
8ffd9b1b
AJ
8721 * p-valprint.c (pascal_val_print): Ditto.
8722 * stabsread.c (define_symbol): Ditto.
de5ad195 8723 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8724 (print_frame_arg_vars, return_command): Ditto.
8725 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8726 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8727 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8728 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8729 (rbreak_command): Ditto.
8730 * tracepoint.c (tracepoints_info): Ditto.
8731 * typeprint.c (typedef_print): Ditto.
8732 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8733 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8734 * ada-typeprint.c: Update Copyright.
8735 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8736 * tracepoint.c, cli/cli-cmds.c: Ditto.
8737
f796e4be
KB
87382003-02-20 Kevin Buettner <kevinb@redhat.com>
8739
8740 * frame.c (generic_unwind_get_saved_register): Make non-static.
8741 * frame.h (generic_unwind_get_saved_register): Declare.
8742 * mips-tdep.c (read_next_frame_reg): Fetch register from
8743 current regcache when frame is NULL.
8744 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8745 that must be NULL.
8746 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8747 instead of frame_register_unwind().
8748
836cc9f4
AC
87492003-02-20 Andrew Cagney <ac131313@redhat.com>
8750
8751 * remote-sim.c (gdbsim_insert_breakpoint)
8752 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8753 code.
8754
501eef12
AC
87552003-02-20 Andrew Cagney <ac131313@redhat.com>
8756
8757 * remote.c (_initialize_remote): Add commands "set/show remote
8758 hardware-watchpoint-limit" and "set/show remote
8759 hardware-breakpoint-limit".
8760 (remote_hw_watchpoint_limit): Initialize to -1.
8761 (remote_hw_breakpoint_limit): Ditto.
8762 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8763
1b6bc7e0
CF
87642003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8765
8766 * coff-pe-read.c: New file - support reading of minimal symbols from a
8767 portable executable using the export table.
8768 * coff-pe-read.h: New file.
8769 * coffread.c: Include coff-pe-read.h.
8770 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8771 debugging symbols found.
8772 * Makefile.in (SFILES): Add coff-pe-read.o.
8773 (coff_pe_read_h): Define.
8774 (COMMON_OBS): Add coff-pe-read.o.
8775 (coffread.o): Add coff_pe_read_h dependency.
8776 (coff-pe-read.o): New target.
8777
fe898f56
DC
87782003-02-19 David Carlton <carlton@math.stanford.edu>
8779
8780 * Makefile.in (SFILES): Add block.c.
8781 (block_h): New.
8782 (COMMON_OBS): Add block.o.
8783 (block.o): New.
8784 (x86-64-tdep.o): Add $(block_h).
8785 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8786 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8787 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8788 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8789 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8790 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8791 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8792 * value.h: Add opaque declaration for struct block.
8793 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8794 * ada-lang.h: Ditto.
8795 * x86-64-tdep.c: #include "block.h"
8796 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8797 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8798 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8799 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8800 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8801 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8802 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8803 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8804 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8805 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8806 * symtab.c (block_function): Ditto.
8807 (contained_in): Ditto.
8808 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8809 block.h. Add opaque declaration for struct block.
8810 * symtab.h: Move block_function and contained_in declarations to
8811 block.h. Add opaque declarations for struct block, struct
8812 blockvector.
8813 (struct block): Move to block.h.
8814 (struct blockvector): Ditto.
8815 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8816 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8817 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8818 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8819 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8820 Ditto.
8821 * block.c: New file.
8822 * block.h: New file.
8823
173345b5
TR
88242003-02-19 Theodore A. Roth <troth@openavr.org>
8825
8826 * avr-tdep.c (avr_extract_return_value): Remove function.
8827 (avr_store_return_value): Remove function.
8828 (avr_extract_struct_value_address): Remove function.
8829 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8830
338ef23d
AC
88312003-02-19 Andrew Cagney <ac131313@redhat.com>
8832
8833 * rs6000-tdep.c: Include "gdb_assert.h".
8834 (registers_e500): Add "acc" and "spefscr".
8835 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8836 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8837 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8838 really is "r0".
8839 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8840
5412f5f3
KS
88412003-02-18 Keith Seitz <keiths@redhat.com>
8842
8843 * Makefile.in: Add gdbtk-interps.c.
8844
881324eb
KB
88452003-02-18 Kevin Buettner <kevinb@redhat.com>
8846
8847 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8848 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8849
6a2f5abf
AC
88502003-02-18 Andrew Cagney <cagney@redhat.com>
8851
8852 * symtab.h (struct objfile): Add opaque declaration.
8853
54c7009d
EZ
88542003-02-18 Elena Zannoni <ezannoni@redhat.com>
8855
8856 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8857 * dbxread.c (process_one_symbol): Use last_function_start rather
8858 than function_start_offset to find the real beginning of the
8859 current function. The latter is just the text section offset on
8860 some systems, the former is always the real function start.
54c7009d 8861
7ee6d7eb
AC
88622003-02-17 Andrew Cagney <cagney@redhat.com>
8863
8864 * configure.in: Revert ${target} != ${host}.
8865
2846da9b
AC
88662003-02-17 Andrew Cagney <ac131313@redhat.com>
8867
8868 * configure.in (Makefile): Use the test ${target} != ${host},
8869 instead of the absence of the "nm.h" file, to determine of the
8870 configuration non-native.
8871 * configure: Regenerate.
8ffd9b1b 8872
3b27aeea
EZ
88732003-02-14 Elena Zannoni <ezannoni@redhat.com>
8874
fbe586ae 8875 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8876
8877 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8878 conditionalize tui_active test.
8879 (lookup_cmd_1): Ditto.
8880
b0b1c2c0
MK
88812003-02-14 Mark Kettenis <kettenis@gnu.org>
8882
8883 * configure.in: Add check for _etext.
8884 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8885 available.
8886 * config.in, configure: regenerated.
8887
8f05cde5
DJ
88882003-02-14 Daniel Jacobowitz <drow@mvista.com>
8889
8890 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8891
021e7609
AC
88922003-02-14 Andrew Cagney <ac131313@redhat.com>
8893
8894 * main.c (tui_version): Delete variable.
8895 (captured_main): When --tui, set interpreter_p to "tui" instead of
8896 enabling tui_version.
8897 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8898 tui_version.
8899 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8900 * cli/cli-cmds.c (disassemble_command): Ditto.
8901 * defs.h (tui_version): Delete declaration.
8902 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8903 (tui-interp.o): Add rules.
8904 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8905
e325dcec
CF
89062003-02-14 Christopher Faylor <cgf@redhat.com>
8907
36ffb041 8908 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8909 just-loaded dll.
8910
c4f90d87
JM
89112003-02-12 Jason Molenda (jmolenda@apple.com)
8912
fbe586ae
RH
8913 * symmisc.c (print_objfile_statistics): Include information about
8914 the number of psymtabs and symtabs in each object file.
c4f90d87 8915
e46e5ccd
KS
89162003-02-13 Keith R Seitz <keiths@redhat.com>
8917
8918 * main.h (struct captured_main_args): Add interpreter_p.
8919 * main.c (captured_main): Initialize interpreter_p from context.
8920 * gdb.c (main): Set interpreter_p argument.
8921 * Makefile.in (gdb.o): Add dependency for interps.h.
8922
fe97fe9c
AC
89232003-02-12 Andrew Cagney <ac131313@redhat.com>
8924
8925 * event-top.c (cli_command_loop): Delete declaration.
8926 (_initialize_event_loop): Delete function setting event_loop_hook.
8927 * event-top.h (cli_command_loop): Declare. Update copyright.
8928 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8929 * interps.c (current_interp_command_loop): When event_loop_p, call
8930 cli_command_loop.
8931
1cdac4ef
AC
89322003-02-12 Andrew Cagney <ac131313@redhat.com>
8933
8934 * interps.h (interp_command_loop_ftype): Change return type to
8935 void.
8936
48037ead
ML
89372003-02-12 Michal Ludvig <mludvig@suse.cz>
8938
8939 * x86-64-tdep.c (x86_64_extract_return_value)
8940 (x86_64_store_return_value): Use regcache instead of regbuf.
8941 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8942 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8943
033afc63
AC
89442003-02-11 Andrew Cagney <ac131313@redhat.com>
8945
8946 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8947 * aclocal.m4: Regenerate.
8948 * configure: Regenerate.
8949
8950 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8951 TCL_LD_SEARCH_FLAGS.
8952
40d02bca
ML
89532003-02-10 Michal Ludvig <mludvig@suse.cz>
8954
8955 * dwarf2cfi.c: Reindented.
8956
11308a41
AC
89572003-02-09 Andrew Cagney <ac131313@redhat.com>
8958
8959 * interps.c (clear_interpreter_hooks): Convert function definition
8960 to ISO C.
8961
e1c1c0f6
DC
89622003-02-07 David Carlton <carlton@math.stanford.edu>
8963
8964 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8965
ab5d3da6
KB
89662003-02-07 Kevin Buettner <kevinb@redhat.com>
8967
8968 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8969 (struct type): ...to here.
8970 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8971 field.
8972 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8973 (replace_type): Set length on all type variants for a given type.
8974
b8a92b82
AC
89752003-02-07 Andrew Cagney <ac131313@redhat.com>
8976
8977 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8978 <sys/stat.h>.
8979 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8980
5cb316ef
AC
89812003-02-06 Andrew Cagney <ac131313@redhat.com>
8982
2555fe1a
AC
8983 * Makefile.in (symm-nat.o): Update dependencies.
8984 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8985 (lynx-nat.o, ia64-linux-nat.): Ditto.
8986 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8987 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8988 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8989
44270758
AC
8990 * Makefile.in (inflow_h): Define.
8991 (procfs.o, inflow.o, procfs.o): Update dependencies.
8992 * inftarg.c (child_stop): Delete extern declaration of
8993 inferior_process_group. Include "inflow.h".
8994 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8995 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8996 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8997 (our_process_group, inferior_process_group): Extern declarations.
8998
df8f7274
AC
8999 * procfs.c: Include "gdb_assert.h".
9000
5cb316ef
AC
9001 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9002 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9003 * jv-typeprint.c (java_type_print_base): Ditto.
9004 * typeprint.c (typedef_print): Eliminate STREQ.
9005 * cli/cli-script.c (define_command, define_command): Ditto.
9006 * main.c (captured_main): Ditto.
9007 * values.c (lookup_internalvar): Ditto.
9008 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9009 within `if' conditional.
9010 * linespec.c (decode_line_2): Ditto.
9011 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9012 (bfd_openw_with_cleanup): Ditto.
9013
2a28ccea
MK
90142003-02-07 Mark Kettenis <kettenis@gnu.org>
9015
9016 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9017 legacy_extract_return_value and store_return_value to
9018 legacy_return_value.
9019
786b8124
CF
90202003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9021
9022 * win32-nat.c (get_relocated_section_addrs): New function. Find
9023 section load addresses for symbol handling in relocated DLLs.
9024 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9025
b871e4ec
FF
90262003-02-05 Fred Fish <fnf@intrinsity.com>
9027
9028 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9029 '=' and '!='.
9030 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9031 with '&' and '=='.
9032 (angel_RDI_info): Ditto.
9033 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9034 with '&' and '!='.
9035 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9036
4389a95a 90372003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9038 Keith Seitz <keiths@redhat.com>
9039 Elena Zannoni <ezannoni@redhat.com>
9040 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9041
9042 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9043 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9044 (SUBDIR_MI_OBS): Add "mi-interp.o".
9045 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9046 (SFILES): Add "interps.c".
9047 (COMMON_OBS): Add "interps.o".
9048 (interps_h, mi_main_h): Define.
9049 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9050 (mi-main.o, main.o, event-top.o): Update dependencies.
9051 * cli/cli-interp.c: New file.
9052 * interps.h, interps.c: New files.
9053 * top.c: (gdb_init): Don't install the default interpreter, handed
9054 by captured_main.
9055 * main.c: Include "interps.h".
9056 (interpreter_p): Note that it should malloc'ed.
9057 (captured_command_loop): Call current_interp_command_loop.
9058 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9059 xfree and xstrdup when updating interpreter_p. Install the
9060 default interpreter. Add hack to stop mi1's copyright notice
9061 being encoded.
9062 * event-top.h (gdb_setup_readline): Declare.
9063 (gdb_disable_readline): Declare.
9064 * event-top.c: Include "interps.h".
9065 (display_gdb_prompt): Call current_interp_display_prompt_p.
9066 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9067 gdb_stdlog, and gdb_stdtarg.
9068 (_initialize_event_loop): Don't call gdb_setup_readline.
9069 * cli-out.c (cli_out_set_stream): New function.
9070 * cli-out.h (cli_out_set_stream): Declare.
9071
ff3b5810
MK
90722003-02-06 Mark Kettenis <kettenis@gnu.org>
9073
9074 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9075 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9076 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9077 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9078 config/i386/i386v42mp.mt: Removed.
9079
5b729aa5
MK
90802003-02-05 Mark Kettenis <kettenis@gnu.org>
9081
9082 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9083 GDB_OSABI_SOLARIS.
9084
8cc15142
MC
90852003-02-05 Michael Chastain <mec@shout.net>
9086
9087 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9088 2.12.1 and earlier versions.
9089
5aa5d4b9
AC
90902003-02-05 Andrew Cagney <ac131313@redhat.com>
9091
9092 Remove orphaned hosts, targets and files.
9093 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9094 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9095 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9096 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9097 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9098 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9099 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9100 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9101 * config/sparc/tm-sp64sim.h: Delete.
9102 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9103 hosts.
9104 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9105 mips*-dec-mach3* targets.
9106
b68767c1
MC
91072003-02-04 Michael Chastain <mec@shout.net>
9108
9109 * NEWS: Fix typo: sepcifying -> specifying.
9110
5ae7ca1d
MC
91112003-02-04 Michael Chastain <mec@shout.net>
9112
9113 * dwarfread.c: Add documentation on the state of dwarf-1,
9114 looking towards obsoletion.
9115
d08a4280
MC
91162003-02-03 Michael Chastain <mec@shout.net>
9117
9118 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9119 gdb/testsuite/gdb.c++/pr-1023.exp.
9120
e9be73e4
AC
91212003-02-04 Andrew Cagney <ac131313@redhat.com>
9122
9123 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9124 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9125
9126 * utils.c (init_page_info): Delete reference to MPW in comments.
9127 * main.c (captured_main): Delete #ifdef MPW.
9128
05d57f6f
AC
91292003-02-04 Andrew Cagney <ac131313@redhat.com>
9130
8ffd9b1b 9131 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9132 * monitor.c (monitor_expect): Obsolete reference to m32r.
9133 * configure.tgt: Mark m32r-*-elf* as obsolete.
9134 * MAINTAINERS: Mark m32k as obsolete.
9135 * m32r-rom.c: Obsolete file.
9136 * config/m32r/m32r.mt: Obsolete file.
9137 * config/m32r/tm-m32r.h: Obsolete file.
9138 * m32r-stub.c: Obsolete file.
9139 * m32r-tdep.c: Obsolete file.
9140
8b0e5691
AC
91412003-02-04 Andrew Cagney <ac131313@redhat.com>
9142
9143 * NEWS: Mention that the z8k-zilog-none is obsolete.
9144 * MAINTAINERS: Mark z8k as obsolete.
9145 * configure.tgt: Obsolete the z8k-*-coff* target.
9146 * config/z8k/z8k.mt: Obsolete file.
9147 * config/z8k/tm-z8k.h: Obsolete file.
9148 * z8k-tdep.c: Obsolete file.
9149
67f16606
AC
91502003-02-04 Andrew Cagney <ac131313@redhat.com>
9151
9152 * NEWS: Mention that the mn10200-elf is obsolete.
9153 * configure.tgt: Obsolete mn10200-*-* target.
9154 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9155 mention that the mn10200 is obsolete.
9156 * breakpoint.h: Ditto.
9157 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9158 * config/mn10200/mn10200.mt: Obsolete file.
9159 * config/mn10200/tm-mn10200.h: Obsolete file.
9160 * mn10200-tdep.c: Obsolete file.
9161
fd2299bd
AC
91622003-02-04 Andrew Cagney <ac131313@redhat.com>
9163
9164 * MAINTAINERS: Mark h8500 as obsolete.
9165 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9166 * findvar.c (value_from_register): Ditto.
9167 * h8500-tdep.c: Mark file as obsolete.
9168 * config/h8500/h8500.mt: Ditto.
9169 * config/h8500/tm-h8500.h: Ditto.
9170 * NEWS: Mention that h8500 is obsolete.
9171
eb9a305d
DC
91722003-02-04 David Carlton <carlton@math.stanford.edu>
9173
9174 * objfiles.c (allocate_objfile): Always set name. Add comment at
9175 start of function.
9176 * jv-lang.c (get_dynamics_objfile): Add comment.
9177
406fc7fb
DC
91782003-02-04 David Carlton <carlton@math.stanford.edu>
9179
9180 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9181 * printcmd.c (build_address_symbolic): Replace uses of
9182 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9183 SYMBOL_NAME, and asm_demangle.
9184 Update copyright.
9185
93d91629
DC
91862003-02-04 David Carlton <carlton@math.stanford.edu>
9187
9188 * linespec.c (decode_compound): Extract code into
9189 lookup_prefix_sym.
9190 (lookup_prefix_sym): New function.
9191
1c5cb38e
DC
91922003-02-04 David Carlton <carlton@math.stanford.edu>
9193
9194 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9195 FLOAT_COERCION_BADNESS.
9196 * gdbtypes.c (rank_one_type): Replace all uses of
9197 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9198
0cf824c9
JB
91992003-02-04 Jim Blandy <jimb@redhat.com>
9200
9201 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9202 section, let dwarf_macinfo_section point to it, not
9203 dwarf_loc_section.
9204
a2d356b0
DJ
92052003-02-04 Daniel Jacobowitz <drow@mvista.com>
9206
9207 Pointed out by Anton Blanchard <anton@samba.org>.
9208 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9209 (ppc_linux_at_sigtramp_return_path): Use it.
9210
2de7ced7
DJ
92112003-02-04 Daniel Jacobowitz <drow@mvista.com>
9212
9213 * defs.h (streq): Add prototype.
9214 * utils.c (streq): New function.
9215
9216 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9217 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9218 * mdebugread.c (new_symbol): Likewise.
9219 * stabsread.c (define_symbol): Likewise.
9220 * coffread.c (process_coff_symbol): Likewise.
9221 * dwarfread.c (new_symbol): Likewise.
9222
9223 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9224 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9225 here.
9226 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9227 SYMBOL_INIT_DEMANGLED_NAME.
9228 * objfiles.c: Include "hashtab.h".
9229 (allocate_objfile): Call htab_set_functions_ex for the
9230 demangled_names_hash.
9231 (free_objfile): Call htab_delete for the demangled_names_hash.
9232 * objfiles.h (struct htab): Add declaration.
9233 (struct objfile): Add demangled_names_hash.
9234 * symfile.c: Include "hashtab.h".
9235 (reread_symbols): Call htab_delete for the demangled_names_hash.
9236 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9237 SYMBOL_NAME in the bcache.
9238 * symtab.c: Include "hashtab.h". Update comments.
9239 (create_demangled_names_hash, symbol_set_names): New functions.
9240 (symbol_find_demangled_name): New function, broken out from
9241 symbol_init_demangled_names.
9242 (symbol_init_demangled_names): Use it.
9243 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9244 (SYMBOL_SET_NAMES): New macro.
9245 (symbol_set_names): Add prototype.
9246
15831452
JB
92472003-02-03 Jim Blandy <jimb@redhat.com>
9248
9249 Use a single, consistent representation for an empty minimal
9250 symbol table in an objfile.
9251 * objfiles.c (terminate_minimal_symbol_table): New function.
9252 (allocate_objfile): Call it.
9253 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9254 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9255 non-NULL.
15831452
JB
9256 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9257 objfile has minimal symbols, compare minimal_symbol_count to zero,
9258 instead of comparing msymbols with NULL.
9259 * objfiles.c (have_minimal_symbols): Same.
9260 * solib-sunos.c (solib_add_common_symbols): Call
9261 terminate_minimal_symbol_table.
9262 * symfile.c (reread_symbols): Same.
8ffd9b1b 9263
ffc65945
KB
92642003-02-03 Kevin Buettner <kevinb@redhat.com>
9265
9266 * s390-tdep.c (s390_address_class_type_flags)
9267 (s390_address_class_type_flags_to_name)
9268 (s390_address_class_name_to_type_flags): New functions.
9269 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9270 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9271
f211c6d4
MS
92722003-02-03 Michael Snyder <msnyder@redhat.com>
9273
9274 * arm-tdep.c: Fix spell-o in comment.
9275
659b0389
ML
92762003-02-03 Michal Ludvig <mludvig@suse.cz>
9277
9278 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9279 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9280 error messages to contain BFD filename.
659b0389 9281
3b31d625
EZ
92822003-02-02 Elena Zannoni <ezannoni@redhat.com>
9283
997b089a 9284 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9285 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9286 (do_mixed_source_and_assembly): Use
9287 make_cleanup_ui_out_tuple_begin_end and
9288 make_cleanup_ui_out_tuple_begin_end.
9289 (do_mixed_source_and_assembly): Ditto.
9290 * thread.c (do_captured_list_thread_ids): Ditto.
9291 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9292 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9293 ui_out_tuple_end): Delete prototypes.
9294 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9295 ui_out_list_end, ui_out_tuple_end): Delete.
9296
9297 From Kevin Buettner <kevinb@redhat.com>:
9298 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9299 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9300 (do_cleanup_table_end): New functions.
9301 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9302 Use cleanups to invoke_ui_out_tuple_end().
9303 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9304 * cli/cli-setshow.c (cmd_show_list): Use
9305 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9306
5b181d62
AC
93072003-02-02 Andrew Cagney <ac131313@redhat.com>
9308
9309 * frame.c (frame_unwind_register): New function.
9310 (frame_unwind_unsigned_register): Use.
9311 (frame_unwind_signed_register): Use.
9312 (frame_read_register): New function.
9313 * frame.h (frame_unwind_register): Declare.
9314 (frame_read_register): Declare.
9315
9316 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9317 and frame_unwind_register instead of read_memory, write_register
9318 and deprecated_write_register_bytes.
9319
5f601589
AC
93202003-02-02 Andrew Cagney <ac131313@redhat.com>
9321
9322 * frame.h: Note that namelen can be negative.
9323 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9324 NAME's length.
9325
9326 * NEWS: Mention that the d10v's `regs' command is deprecated.
9327 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9328 (d10v_print_registers_info): New function.
9329 (show_regs): Call d10v_print_registers_info.
9330 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9331
6a3fe0a4
MK
93322003-02-02 Mark Kettenis <kettenis@gnu.org>
9333
9334 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9335 lost in the previous patch.
9336
075559bc
AC
93372003-02-01 Andrew Cagney <ac131313@redhat.com>
9338
9339 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9340 * stack.c (print_frame_info_base): Output complete FRAME tuple
9341 for synthesized frames.
075559bc 9342
6789195b
AC
93432003-02-02 Andrew Cagney <ac131313@redhat.com>
9344
9345 * mips-nat.c (zerobuf): Delete.
9346 (fetch_inferior_registers): Alloc local zerobuf.
9347 (fetch_core_registers): Alloc local zerobuf.
9348 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9349 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9350 * thread-db.c (thread_db_store_registers): Ditto.
9351 * sh-tdep.c (sh_do_register): Ditto.
9352 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9353 * remote-sim.c (gdbsim_store_register): Ditto.
9354 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9355 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9356 * monitor.c (monitor_supply_register): Ditto.
9357 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9358 * mips-nat.c (fetch_inferior_registers): Ditto.
9359 * m68klinux-nat.c (fetch_register): Ditto.
9360 * lynx-nat.c (fetch_inferior_registers): Ditto.
9361 (fetch_inferior_registers): Ditto.
9362 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9363 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9364 (hpux_thread_store_registers): Ditto.
9365 * hppah-nat.c (fetch_register): Ditto.
9366 * hppab-nat.c (fetch_register): Ditto.
9367 * hppa-tdep.c (pa_register_look_aside): Ditto.
9368 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9369 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9370
e669114a
AC
93712003-02-01 Andrew Cagney <ac131313@redhat.com>
9372
9373 * gdbarch.sh: Explictly specify all method levels. When a
9374 variable with an empty level, provide a non-multi-arch default.
9375 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9376 * gdbarch.h: Re-generate.
9377 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9378 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9379
9a043c1d
AC
93802003-02-01 Andrew Cagney <ac131313@redhat.com>
9381
9382 * defs.h (host_pointer_to_address): Delete declaration.
9383 (address_to_host_pointer): Delete declaration.
9384 * utils.c (host_pointer_to_address): Delete function.
9385 (address_to_host_pointer): Delete function.
9386 * procfs.c (procfs_address_to_host_pointer): New function.
9387 * procfs.c (proc_set_watchpoint): Use.
9388 (procfs_can_use_hw_breakpoint): Update comments.
9389 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9390 (som_solib_add): Use.
9391 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9392 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9393
7ca9f392
AC
93942003-02-01 Andrew Cagney <ac131313@redhat.com>
9395
94bbfd30
AC
9396 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9397 strlen d_name.
9398
7ca9f392
AC
9399 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9400 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9401 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9402 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9403 (define_symbol): Update.
9404 * symfile.c (generic_load): Remove references to nindy.
9405 * symtab.c: Remove references to nindy.
9406
31a85ea2
AC
94072003-02-01 Andrew Cagney <ac131313@redhat.com>
9408
9409 * infcmd.c (print_float_info): Delete code conditional on
9410 FLOAT_INFO.
9411 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9412 * config/m68k/nm-apollo68b.h: Ditto.
9413 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9414 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9415 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9416
f6e85fc8
MK
94172003-02-01 Mark Kettenis <kettenis@gnu.org>
9418
6015b6a0
MK
9419 * config/i386/tm-i386os9k.h: Removed.
9420
f7a30bdf
MK
9421 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9422 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9423 they're identical to i[3456]86-*-sysv* now.
9424 * config/i386/i386v32.mh: Removed.
9425 * config/i386/xm-i386v32.h: Removed.
9426 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9427
28d52111
MK
9428 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9429
4d3f6bce
MK
9430 * config/i386/i386dgux.mh: Removed.
9431 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9432
f6e85fc8
MK
9433 * configure.in: Fix typo.
9434 * configure: Regenerated.
9435
53955967
DC
94362003-01-31 David Carlton <carlton@math.stanford.edu>
9437
9438 * dwarf2read.c (dwarf2_locate_sections): Set
9439 dwarf_ranges_section.
9440
b1364885
AC
94412003-01-31 Andrew Cagney <ac131313@redhat.com>
9442
8dbb1c65
AC
9443 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9444 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9445
8731e58e
AC
9446 * utils.c: Re-indent.
9447
b1364885
AC
9448 * config/djgpp/fnchange.lst: Delete nindy files.
9449 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9450 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9451 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9452 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9453 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9454 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9455 * Makefile.in (init.c): Remove nindy references.
9456 (saber_gdb): Delete rule.
9457 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9458 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9459 and a68v-nat.c.
9460 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9461 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9462 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9463 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9464 nindy-share/stop.h.
9465 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9466 * saber.suppress: Delete file.
9467
086df311
DJ
94682003-01-31 Daniel Jacobowitz <drow@mvista.com>
9469
9470 * dbxread.c (stabs_data): New static variable.
9471 (fill_symbuf): Support an in-memory buffer for stabs data.
9472 (stabs_seek): New function.
9473 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9474 (read_ofile_symtab): Use stabs_seek.
9475 (elfstab_build_psymtabs): Take an asection* instead of
9476 an offset and size. Relocate the stabs data if necessary.
9477 Save the section* for dbx_psymtab_to_symtab.
9478 * dwarf2read.c: Add section variables for each debug section.
9479 (dwarf2_locate_sections): Fill them in.
9480 (dwarf2_read_section): Take an asection* argument.
9481 Relocate the section contents if necessary.
9482 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9483 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9484 it to dwarf2_read_section.
9485 (dwarf2_build_frame_info): Update callers.
9486 * elfread.c (elf_symfile_read): Update call to
9487 elfstab_build_psymtabs.
9488 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9489 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9490 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9491 * symfile.c (symfile_dummy_outputs): New function.
9492 (symfile_relocate_debug_section): New function.
9493 * symfile.h (symfile_relocate_debug_section): Add prototype.
9494
87d1b352
RH
94952003-01-31 Richard Henderson <rth@redhat.com>
9496
9497 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9498 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9499 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9500 * alpha-tdep.c (alpha_register_name): Add "unique".
9501 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9502 (ALPHA_UNIQUE_REGNUM): New.
9503 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9504
c48861fb
AC
95052003-01-31 Andrew Cagney <ac131313@redhat.com>
9506
9507 * README: Remove reference to Ericsson 1800 monitor.
9508 * Makefile.in (remote-es.o): Delete rule.
9509 (ALLDEPFILES): Delete remote-es.c.
9510 * remote-es.c: Delete file.
9511 * config/m68k/es1800.mt: Delete file.
9512 * config/djgpp/fnchange.lst: Update.
9513 * configure.tgt: Delete m68*-ericsson-* target.
9514
d764a824
AF
95152003-01-31 Adam Fedor <fedor@gnu.org>
9516
9517 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9518 Remove duplicate/shadowing variable of same name.
9519
fe36c4f4
JB
95202003-01-30 Jim Blandy <jimb@redhat.com>
9521
9522 * symfile.c (find_separate_debug_file): Assert that the objfile's
9523 directory name we compute ends with a slash, and then assume that
9524 that's so everywhere we use it.
9525
cb741690
DJ
95262003-01-30 Daniel Jacobowitz <drow@mvista.com>
9527
9528 * valops.c (value_assign): Flush frame cache after stores to memory
9529 also.
9530
96ee5227
AC
95312003-01-30 Andrew Cagney <ac131313@redhat.com>
9532
9533 * Makefile.in (mon960-rom.o): Delete rule.
9534 * mon960-rom.c: Delete file.
9535
7f6104a9
AC
95362003-01-30 Andrew Cagney <ac131313@redhat.com>
9537
9538 * d10v-tdep.c: Include "frame-unwind.h".
9539 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9540 list.
9541 (next_addr, uses_frame): Delete.
9542 (struct d10v_unwind_cache): Define.
9543 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9544 Use info instead of next_addr and uses_frame globals.
9545 (d10v_frame_init_saved_regs): Delete function.
9546 (d10v_init_extra_frame_info): Delete function.
9547 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9548 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9549 init_frame_pc or frame_saved_pc.
9550 (d10v_pop_frame): Delete function.
9551 (do_d10v_pop_frame): Delete function.
9552 (d10v_frame_chain): Delete function.
9553 (d10v_frame_chain_valid): Delete function.
9554 (d10v_frame_pc_unwind): New function.
9555 (d10v_frame_id_unwind): New function.
9556 (saved_regs_unwinder): New function.
9557 (d10v_frame_register_unwind): New function.
9558 (d10v_frame_pop): New function.
9559 (d10v_frame_unwind): New variable.
9560 (d10v_frame_p): New function.
9561 (d10v_frame_saved_pc): Delete function.
9562 * Makefile.in (d10v-tdep.o): Update dependencies.
9563
cad2e848
JB
95642003-01-30 J. Brobecker <brobecker@gnat.com>
9565
9566 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9567 causing some regressions due to a change in the default value
9568 for this macro.
9569
af34e669
DJ
95702003-01-29 Richard Henderson <rth@redhat.com>
9571 Elena Zannoni <ezannoni@redhat.com>
9572 Daniel Jacobowitz <drow@mvista.com>
9573
9574 Fix PR gdb/961.
8ffd9b1b 9575 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9576 variables.
9577 (RANGES_SECTION): New.
9578 (dwarf_ranges_buffer): New variable.
9579 (struct comp_unit_head): Add member "die".
9580 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9581 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9582 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9583 (dwarf2_locate_sections): Likewise.
9584 (dwarf2_build_psymtabs): Read .debug_ranges.
9585 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9586 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9587 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9588 Look for DW_AT_ranges and return the bounding box.
9589
baa93fa6
CF
95902003-01-29 Brian Ford <ford@vss.fsi.com>
9591
9592 * win32-nat.c (cygwin_pid): Removed as unused.
9593 (child_attach): Try fall back to Cygwin pid.
9594
c63f977f
JB
95952003-01-29 Jim Blandy <jimb@redhat.com>
9596
9597 * objfiles.h (struct objfile): Doc fix.
9598
d62d1979
AC
95992003-01-29 Andrew Cagney <ac131313@redhat.com>
9600
9601 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9602 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9603 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9604 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9605 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9606 (FRAME_SAVED_PC): Change to a function with predicate.
9607 * gdbarch.h, gdbarch.c: Re-generate.
9608
1ae18a04
AC
96092003-01-28 Andrew Cagney <ac131313@redhat.com>
9610
52287340
AC
9611 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9612
1ae18a04
AC
9613 * complaints.c (complain): Delete function.
9614 * complaints.h (struct deprecated_complaint): Delete definition.
9615 (complain): Delete declaration.
9616
f2c16bd6
KB
96172003-01-28 Kevin Buettner <kevinb@redhat.com>
9618
9619 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9620 dummy frames.
9621
a94dd1fd
AC
96222003-01-27 Andrew Cagney <ac131313@redhat.com>
9623
9624 * sentinel-frame.h, sentinel-frame.c: New files.
9625 * Makefile.in (frame.o): Update dependencies.
9626 (SFILES): Add sentinel-frame.c.
9627 (sentinel_frame_h): Define.
9628 (COMMON_OBS): Add sentinel-frame.o.
9629 (sentinel-frame.o): Specify dependencies.
9630 * frame.c: Include "sentinel-frame.h".
9631 (frame_register_unwind): Rewrite assuming that there is always a a
9632 ->next frame.
9633 (frame_register, generic_unwind_get_saved_register): Ditto.
9634 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9635 (create_sentinel_frame, unwind_to_current_frame): New functions.
9636 (get_current_frame): Rewrite using create_sentinel_frame and
9637 unwind_to_current_frame. When possible, always create a frame.
9638 (create_new_frame): Set next to the sentinel frame.
9639 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9640 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9641 ID cache when necessary.
9642 (frame_saved_regs_id_unwind): Use frame_relative_level.
9643 (deprecated_generic_get_saved_register): Use frame_relative_level,
9644 get_frame_saved_regs, get_frame_pc, get_frame_base and
9645 get_next_frame.
9646 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9647 frame_register.
9648
5378adc4
DJ
96492003-01-27 Daniel Jacobowitz <drow@mvista.com>
9650
9651 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9652
51ee2ddc
DJ
96532003-01-27 Daniel Jacobowitz <drow@mvista.com>
9654
9655 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9656 (maintenance_set_profile_cmd): Use error () instead of warning ().
9657
d9feb4e7
DJ
96582003-01-27 Daniel Jacobowitz <drow@mvista.com>
9659
9660 * configure.in: Check that -pg works if using --enable-profiling.
9661 Check for monstartup and _mcleanup regardless of --enable-profiling.
9662 * maint.c: Check for monstartup and _mcleanup before using them.
9663 * config.in: Regenerated.
9664 * configure: Regenerated.
9665
2d188dd3
NC
96662003-01-24 Nick Clifton <nickc@redhat.com>
9667
9668 * Add sh2e support:
9669
9670 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9671
9672 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9673 (sh2e_show_regs): New.
9674 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9675 * config/sh/tm-sh.h: Added sh2e to comments.
9676
cb3c37b2
JB
96772003-01-23 Jim Blandy <jimb@redhat.com>
9678
9679 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9680 symbols found)" message here; we haven't checked for a separate
9681 debug info file yet, so we don't know yet.
9682 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9683 we've looked everywhere. Also, there's no need to print a special
9684 message when we're loading the separate debug info file: the one
9685 symbol_file_add prints is fine.
9686
5b5d99cf
JB
96872003-01-23 Alexander Larsson <alexl@redhat.com>
9688 Jim Blandy <jimb@redhat.com>
9689
9690 Add support for executables whose debug info has been separated
9691 out into a separate file, leaving only a link behind.
9692 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9693 and separate_debug_objfile_backlink.
9694 (put_objfile_before): New declaration.
9695 * symfile.c: #include "filenames.h".
9696 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9697 debug info in a separate file, read that, too. Save the addrs
9698 argument, so we can use it again to read the separated debug info;
9699 syms_from_objfile modifies the table we pass it.
9700 (reread_symbols): After re-reading an objfile, call
9701 reread_separate_symbols to refresh its separate debug info
9702 objfile, if it has one.
9703 (reread_separate_symbols, find_separate_debug_file,
9704 get_debug_link_info, separate_debug_file_exists): New functions.
9705 (debug_file_directory): New global var.
9706 (_initialize_symfile): Initialize debug_file_directory, and
9707 provide the new `set debug-file-directory' command to let the user
9708 change it.
9709 * objfiles.c (free_objfile): If this objfile has its debug info in
9710 a separate objfile, free that one too. If this is itself a
9711 separate debug info objfile, clear our parent's backlink.
9712 (put_objfile_before): New function.
9713 * utils.c (gnu_debuglink_crc32): New function.
9714 * defs.h (gnu_debuglink_crc32): New declaration.
9715 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9716 * configure.in: Handle --with-separate-debug-dir config option.
9717 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9718 * acconfig.h (DEBUGDIR): New macro.
9719 * configure, aclocal.m4, config.in: Regenerated.
9720
7e8580c1
JB
97212003-01-22 Jim Blandy <jimb@redhat.com>
9722
7904e09f
JB
9723 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9724 like the old symbol_file_add, but taking new arguments: you can
9725 now pass in either a `struct section_addr_info' list to say where
9726 each section is loaded, or a `struct section_offsets' table. Pass
9727 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9728 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9729 with the appropriate quiescent values for the new arguments.
9730
7e8580c1
JB
9731 * symfile.c: #include "gdb_assert.h".
9732 (syms_from_objfile): Add the ability to pass in a section offset
9733 table directly, as an alternative to the section_addr_info table.
9734 Document arguments better.
9735 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9736 * symfile.h (syms_from_objfile): Update declaration.
9737 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9738 syms_from_objfile.
9739 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9740
d28f9cdf
DJ
97412003-01-22 Daniel Jacobowitz <drow@mvista.com>
9742
9743 Original patch by Tom Tromey <tromey@cygnus.com> and
9744 Jason Molenda <jmolenda@apple.com>.
9745 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9746 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9747 * NEWS: Mention profiling.
9748 * configure.in (--enable-gdbtk): Fix typo.
9749 (--enable-profiling): New. Set PROFILE_CFLAGS.
9750 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9751 Fill in function.
9752 (profiling_state): New variable.
9753 (mcleanup_wrapper): New function.
9754 (_initialize_maint): Remove NOTYET, fix call to
9755 add_setshow_boolean_cmd for "maint set profile".
9756 * configure: Regenerated.
9757
df21e465
MH
97582003-01-21 Martin M. Hunt <hunt@redhat.com>
9759
9760 * Makefile.in (install-gdbtk): Install PNG images too.
9761
73c1f219
AC
97622003-01-21 Andrew Cagney <ac131313@redhat.com>
9763
9764 * exec.c (text_start): Delete global variable.
9765 (exec_file_attach): Make text_start local to the function.
9766 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9767 * valops.c (hand_function_call): Delete code that handles
9768 BEFORE_TEXT_END and AFTER_TEXT_END.
9769 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9770 of CALL_DUMMY_LOCATION.
9771 * gdbarch.c: Regenerate.
9772 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9773 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9774 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9775 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9776 (text_end): Delete extern declaration.
9777
eb4f72c5
AC
97782003-01-21 Andrew Cagney <ac131313@redhat.com>
9779
9780 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9781 * blockframe.c (backtrace_below_main): Move to "frame.c".
9782 (frame_chain_valid): Delete check for backtrace_below_main.
9783 (_initialize_blockframe): Delete initialization, move ``set
9784 backtrace-below-main'' command to "frame.c".
9785 (do_flush_frames_sfunc): Delete function.
9786 * frame.c: Include "command.h" and "gdbcmd.h".
9787 (frame_type_from_pc): New function.
9788 (create_new_frame): Use frame_type_from_pc.
9789 (legacy_get_prev_frame): New function.
9790 (get_prev_frame): Rewrite. When an old style frame, call
9791 legacy_get_prev_frame. Otherwize, unwind the PC first.
9792 (_initialize_frame): Add ``set backtrace-below-main'' command.
9793 * Makefile.in (frame.o): Update dependencies.
9794
778ce8cc
AC
97952003-01-19 Andrew Cagney <ac131313@redhat.com>
9796
9797 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9798 DEPRECATED_REGISTERS_INFO.
9799
01c193c8
AC
98002003-01-19 Andrew Cagney <ac131313@redhat.com>
9801
9802 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9803 Maintainers'. Update `Various Maintainers'.
9804
dedc2a2b
AC
98052003-01-19 Andrew Cagney <ac131313@redhat.com>
9806
9807 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9808 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9809 Suppress actual parameters when `-'.
9810 * gdbarch.h, gdbarch.c: Regenerate.
9811
b7261c70
AC
98122003-01-19 Andrew Cagney <ac131313@redhat.com>
9813
9814 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9815 code handling dummy frames.
9816
dbe9fe58
AC
98172003-01-19 Andrew Cagney <ac131313@redhat.com>
9818
9819 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9820 (struct frame_unwind): Add field pop.
9821 * frame.h (frame_pop): Declare.
9822 * frame.c (frame_saved_regs_pop): New function.
9823 (trad_frame_unwinder): Add frame_saved_regs_pop.
9824 (frame_pop): New function.
9825 * dummy-frame.c (dummy_frame_pop): New function.
9826 (discard_innermost_dummy): New function.
9827 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9828 (dummy_frame_unwind): Add dummy_frame_pop.
9829 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9830 * valops.c (hand_function_call): Ditto.
9831 * stack.c (return_command): Ditto.
9832
570b8f7c
AC
98332003-01-18 Andrew Cagney <ac131313@redhat.com>
9834
9835 * cris-tdep.c: Fix function declaration indentation.
9836 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9837 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9838 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9839 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9840 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9841 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9842
98432003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9844
9845 * README (Unpacking and Installation -- quick overview):
9846 Warn against ".../gdb-5.3/gdb/configure".
9847
494cca16
AC
98482003-01-18 Andrew Cagney <ac131313@redhat.com>
9849
9850 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9851 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9852 (struct frame_unwind): Declare opaque.
9853 (dummy_frame_p): Declare function.
9854 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9855 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9856 * dummy-frame.c: Include "frame-unwind.h".
9857 (dummy_frame_p): New function.
9858 (dummy_frame_unwind): New variable.
9859 * frame.c: Include "frame-unwind.h".
9860 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9861 to use the new unwind field.
9862 (set_unwind_by_pc): Delete function.
9863 (create_new_frame, get_prev_frame): Set unwind field using
9864 frame_unwind_find_by_pc.
9865 (trad_frame_unwind, trad_frame_unwinder): New variables.
9866 * frame.h (trad_frame_unwind): Declare variable.
9867 (frame_id_unwind_ftype): Delete declaration.
9868 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9869 (struct frame_unwind): Declare opaque.
9870 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9871 register_unwind with a single unwind pointer.
9872 * frame-unwind.h, frame-unwind.c: New files.
9873 * Makefile.in (SFILES): Add frame-unwind.c.
9874 (frame_unwind_h): Define.
9875 (COMMON_OBS): Add frame-unwind.o.
9876 (frame-unwind.o): Specify dependencies.
9877 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9878
4efb68b1
AC
98792003-01-18 Andrew Cagney <ac131313@redhat.com>
9880
9881 * ada-valprint.c: Eliminate PTR.
9882 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9883 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9884 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9885 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9886 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9887 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9888 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9889
a84d24ee
AC
98902003-01-17 Andrew Cagney <ac131313@redhat.com>
9891
762f08a3
AC
9892 * main.c (captured_main): Don't use PTR.
9893 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9894 * gdbtypes.c (lookup_primitive_typename): Ditto.
9895 (lookup_struct_elt_type): Ditto.
9896 * f-valprint.c (info_common_command): Ditto.
9897 (list_all_visible_commons): Ditto.
9898 * jv-typeprint.c (java_type_print_base): Ditto.
9899
a84d24ee
AC
9900 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9901 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9902 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9903 i386-interix-nat.c and i386-interix-tdep.c. Rename
9904 m68klinux-nat.c and m68klinux-tdep.c. Rename
9905 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9906 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9907 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9908 * main.c (captured_main): Use xfree, not free.
9909
c170fb60
AC
99102003-01-16 Andrew Cagney <ac131313@redhat.com>
9911
9912 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9913 ID back using a parameter.
9914 * frame.c (frame_id_unwind): Update call.
9915 (frame_saved_regs_id_unwind): Update.
9916 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9917 * dummy-frame.h (struct frame_id): Add opaque declaration.
9918 (dummy_frame_id_unwind): Update declaration.
9919
867f3898
AC
99202003-01-15 Andrew Cagney <ac131313@redhat.com>
9921
9922 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9923
40622be8 99242003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9925
40622be8 9926 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9927
ae66c1fc
EZ
99282003-01-14 Elena Zannoni <ezannoni@redhat.com>
9929
997b089a 9930 Fix PR gdb/898
ae66c1fc
EZ
9931 * breakpoint.c (until_break_command): Add new argument. Use it to
9932 decide whether to stop only at the current frame or not.
9933 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9934 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9935 call.
9936 (advance_command): New function.
9937 (_initialize_infcmd): Update help string for 'until' command.
9938 Add new 'advance' command.
9939
a04257e6
DC
99402003-01-14 David Carlton <carlton@math.stanford.edu>
9941
9942 * linespec.c (decode_line_1): Normalize comments.
9943 (set_flags): Ditto.
9944 (locate_first_half): Ditto.
9945 (decode_compound): Ditto.
9946 (symtab_from_filename): Ditto.
9947 (decode_all_digits): Ditto.
9948 (decode_dollar): Ditto.
9949 (find_methods): Ditto.
9950 (find_toplevel_char): Ditto.
9951
1bac305b
AC
99522003-01-13 Andrew Cagney <ac131313@redhat.com>
9953
9954 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9955 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9956 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9957 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9958 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9959 * language.c, language.h, m32r-tdep.c: Update copyright.
9960 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9961 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9962 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9963 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9964 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9965 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9966
25caa7a8
EZ
99672003-01-13 Elena Zannoni <ezannoni@redhat.com>
9968
9969 * stabsread.h (process_later, resolve_cfront_continuation):
9970 Obsolete.
9971 Update copyright years.
9972 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9973 Update copyright year.
9974 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9975 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9976 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9977 Update copyright year.
9978 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9979 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9980 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9981 (parse_partial_symbols): Obsolete cfront support.
9982 * stabsread.c
9983 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9984 macros.
9985 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9986 read_cfront_baseclasses, read_cfront_member_functions,
9987 resolve_cfront_continuation,read_cfront_static_fields,
9988 copy_cfront_struct_fields): Obsolete functions.
9989 (define_symbol, read_one_struct_field): Obsolete cfront support.
9990 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9991 Update Copyright year.
9992
7789c6f5
EZ
99932003-01-13 Elena Zannoni <ezannoni@redhat.com>
9994
9995 * stack.c (print_frame_info, print_stack_frame_base_stub,
9996 print_stack_frame_base, show_and_print_stack_frame_stub,
9997 show_and_print_stack_frame, print_only_stack_frame_stub,
9998 print_only_stack_frame): Delete functions.
9999 (print_stack_frame_stub): Call print_frame_info instead of
10000 print_frame_info_base.
10001 (print_frame_info_base): Rename to print_frame_info.
10002 (backtrace_command_1): Call print_frame_info, instead of
10003 print_frame_info_base.
10004 (current_frame_command): Call print_stack_frame, instead of
10005 print_only_stack_frame.
10006 (frame_command): Call print_stack_frame, instead of
10007 show_and_print_stack_frame.
10008 (up_command): Ditto.
10009 (down_command): Ditto.
10010 * frame.h (print_only_stack_frame): Delete prototype.
10011 * infrun.c (normal_stop): Call print_stack_frame, instead of
10012 show_and_print_stack_frame.
10013 * thread.c (info_threads_command): Call print_stack_frame, instead
10014 of print_only_stack_frame.
10015
3f5a3016
AC
100162003-01-13 Andrew Cagney <ac131313@redhat.com>
10017
d99ba314
AC
10018 * README (Graphical interface to GDB): Update URL. Point at
10019 gdb/links/.
10020
3f5a3016
AC
10021 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10022 version match.
10023
083ae935
DJ
100242003-01-13 Daniel Jacobowitz <drow@mvista.com>
10025
10026 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10027 lines.
10028
5365276c
DJ
100292003-01-13 Daniel Jacobowitz <drow@mvista.com>
10030
10031 * thread-db.c (attach_thread): Prototype.
10032 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10033 thread information (ti), and valid flags (th_valid, ti_valid).
10034 (attach_thread): Move target_pid_to_str call to after the thread
10035 is added to GDB's list. Initialize the cache.
10036 (thread_get_info_callback, thread_db_map_id2thr)
10037 (thread_db_get_info): New functions.
10038 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10039 (thread_db_store_registers, thread_db_thread_alive)
10040 (thread_db_get_thread_local_address): Use them.
10041 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10042 of calling error() for threads in unknown state.
10043
10044 (clear_lwpid_callback): New function.
10045 (thread_db_resume): Use it to clear the cache.
10046
9fc30b6b
DJ
100472003-01-13 Daniel Jacobowitz <drow@mvista.com>
10048
10049 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10050 (resume_callback): Remove dead code.
10051
8f871025
AC
100522003-01-13 Andrew Cagney <ac131313@redhat.com>
10053
10054 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10055 predicate.
10056 * gdbarch.h, gdbarch.c: Regenerate.
10057 * stack.c (frame_info): Only initialize the saved registers when
10058 FRAME_INIT_SAVED_REGS_P.
10059 * frame.c (frame_saved_regs_register_unwind): Assert
10060 FRAME_INIT_SAVED_REGS_P.
10061 (deprecated_generic_get_saved_register): Ditto.
10062
3f565f1e
DJ
100632003-01-13 Daniel Jacobowitz <drow@mvista.com>
10064
10065 * source.c (openp): Squelch warning about "filename".
10066
072b1022
DJ
100672003-01-13 Daniel Jacobowitz <drow@mvista.com>
10068
10069 * source.c (openp): If the file does not exist don't necessarily
10070 search the path.
10071
973ccf8b
DJ
100722003-01-13 Daniel Jacobowitz <drow@mvista.com>
10073
10074 Fix PR gdb/872.
10075 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10076 (integer_types_same_name_p): New function.
10077 (rank_one_type): Use it.
10078 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10079
030292b7
DJ
100802003-01-13 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10083 variables.
10084 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10085 * configure.in: Add --with-sysroot.
10086 * configure: Regenerated.
10087 * main.c (gdb_sysroot): New variable.
10088 (captured_main): Initialize gdb_sysroot.
10089 * defs.h (gdb_sysroot): New extern declaration.
10090 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10091
afb5d334
MC
100922003-01-12 Michael Chastain <mec@shout.net>
10093
10094 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10095
751ceeb4
MC
100962003-01-12 Michael Chastain <mec@shout.net>
10097
10098 * top.c (print_gdb_version): Bump copyright year to 2003.
10099
94cd26f8
DC
101002003-01-12 David Carlton <carlton@bactrian.org>
10101
10102 * linespec.c (symtab_from_filename): Rename variable 's' to
10103 'file_symtab'.
10104
1ce79225
AC
101052003-01-12 Andrew Cagney <ac131313@redhat.com>
10106
10107 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10108 dummy frame.
10109 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10110
fa1fd571
AC
101112003-01-12 Andrew Cagney <ac131313@redhat.com>
10112
10113 * d10v-tdep.c: Include "gdb_assert.h".
10114 (d10v_store_return_value): Rewrite to match current interface.
10115 (d10v_extract_struct_value_address): Ditto.
10116 (d10v_extract_return_value): Ditto.
10117 (d10v_gdbarch_init): Set store_restore_value,
10118 extract_struct_value_address and extract_return_value.
10119
68b8d23e
JB
101202003-01-12 J. Brobecker <brobecker@gnat.com>
10121
10122 * hpread.c (set_namestring): New procedure replacing the
10123 SET_NAMESTRING macro.
10124 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10125 by calls to set_namestring.
10126
101272003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10128
10129 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10130 a compilation warning.
10131 (hpread_process_one_debug_symbol): Likewise.
10132
88d262ca
DC
101332003-01-10 David Carlton <carlton@math.stanford.edu>
10134
10135 * linespec.c (decode_line_1): Rename variable 's' to
10136 'file_symtab'.
10137 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10138 (decode_dollar): Ditto.
10139 (decode_variable): Ditto.
10140 (symbol_found): Ditto.
10141
86669319
MC
101422003-01-09 Michael Chastain <mec@shout.net>
10143
10144 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10145
616a9dc4
CV
101462003-01-07 Corinna Vinschen <vinschen@redhat.com>
10147
10148 * win32-nat.c (set_process_privilege): New function.
10149 (child_attach): Call set_process_privilege() to enable the
10150 SE_DEBUG_NAME user privilege if available in process token.
10151
3269bcfa
JB
101522003-01-10 J. Brobecker <brobecker@gnat.com>
10153
10154 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10155 compilation error in the previous revision.
10156
2b0ee454
DC
101572003-01-09 David Carlton <carlton@math.stanford.edu>
10158
10159 * linespec.c: Update copyright.
10160
b3ba1b44
DJ
101612003-01-09 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10164 than inferior_ptid.
10165 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10166
4ef3f3be
AC
101672003-01-09 Andrew Cagney <ac131313@redhat.com>
10168
479ab5a0
AC
10169 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10170 Update comments.
10171 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10172 (frame_saved_regs_zalloc): Update.
10173 (frame_saved_regs_register_unwind): Update.
10174 (create_new_frame): Update.
10175 (get_prev_frame): Update.
10176 (frame_extra_info_zalloc): Update.
10177 (deprecated_get_frame_saved_regs): Update.
10178 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10179 * cris-tdep.c: Update comment.
10180
bde58177
AC
10181 * somsolib.h: Fix function indentation.
10182 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10183 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10184 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10185 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10186 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10187
4ef3f3be
AC
10188 * infrun.c (follow_fork): Use ISO C definition.
10189 * expprint.c (print_subexp): Use xfree instead of free.
10190 * charset.c: Include "gdb_string.h" instead of <string.h>.
10191 (register_iconv_charsets): Use ISO C definition.
10192 (host_charset, target_charset): Ditto.
10193 * Makefile.in (charset.o): Update dependencies.
10194 (mi-cmd-env.o): Update dependencies.
10195
1c615f7a
AC
101962003-01-08 Andrew Cagney <cagney@redhat.com>
10197
10198 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10199 get_frame_base.
10200
c9a1dc08
AC
102012003-01-08 Andrew Cagney <ac131313@redhat.com>
10202
10203 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10204 build directories. Save edited gdb output in Mbuild.log. If a
10205 build fails, remove any final GDB executable.
10206
dbad9d94
AC
102072003-01-08 Andrew Cagney <ac131313@redhat.com>
10208
10209 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10210 replacing hex constants with function names and stripping leading
10211 file name directory prefixes.
10212
8d357cca
AC
102132003-01-08 Andrew Cagney <cagney@redhat.com>
10214
10215 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10216 get_frame_base.
10217
bca02a8a
DC
102182003-01-08 David Carlton <carlton@math.stanford.edu>
10219
10220 * linespec.c (decode_line_1): Move code into decode_variable.
10221 (decode_variable): New function.
10222
7f8ab3a0
AC
102232003-01-08 Andrew Cagney <ac131313@redhat.com>
10224
10225 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10226
7b5849cc
AC
102272003-01-08 Andrew Cagney <cagney@redhat.com>
10228
10229 * cris-tdep.c (cris_frame_init_saved_regs): Use
10230 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10231 saved_regs buffer.
10232 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10233 (sh64_nofp_frame_init_saved_regs): Ditto.
10234 (sh_fp_frame_init_saved_regs): Ditto.
10235 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10236 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10237 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10238 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10239
72a5efb3
DJ
102402003-01-08 Daniel Jacobowitz <drow@mvista.com>
10241
10242 * minsyms.c (lookup_minimal_symbol): Update comment.
10243 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10244 (lookup_minimal_symbol_solib_trampoline): Likewise.
10245
11c02a10
AC
102462003-01-08 Andrew Cagney <cagney@redhat.com>
10247
aab3ea25
AC
10248 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10249 frame_relative_level.
10250
da50a4b7
AC
10251 * alpha-tdep.c: Use get_frame_extra_info.
10252 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10253 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10254 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10255 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10256
11c02a10
AC
10257 * alpha-tdep.c: Use get_next_frame.
10258 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10259 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10260 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10261 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10262 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10263 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10264 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10265
1e2330ba
AC
102662003-01-07 Andrew Cagney <cagney@redhat.com>
10267
10268 * alpha-tdep.c: Use get_frame_base.
10269 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10270 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10271 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10272 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10273 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10274 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10275 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10276 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10277
2d75187b
AC
102782003-01-07 Andrew Cagney <cagney@redhat.com>
10279
10280 * frame.c (deprecated_get_frame_context): New function.
10281 (deprecated_set_frame_context): New function.
10282 * frame.h (deprecated_get_frame_context): Declare.
10283 (deprecated_set_frame_context): Declare.
10284 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10285 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10286
483d36b2
AC
102872003-01-07 Andrew Cagney <cagney@redhat.com>
10288
10289 * frame.c (deprecated_set_frame_next_hack): New function.
10290 (deprecated_set_frame_prev_hack): New function.
10291 * frame.h (deprecated_set_frame_next_hack): Declare.
10292 (deprecated_set_frame_prev_hack): Declare.
10293 * mcore-tdep.c (analyze_dummy_frame): Use
10294 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10295 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10296
14e91ac5
DC
102972003-01-07 David Carlton <carlton@math.stanford.edu>
10298
10299 * linespec.c (decode_line_1): Move code into decode_dollar.
10300 (decode_dollar): New function.
10301
b0c6b05c
AC
103022003-01-07 Andrew Cagney <cagney@redhat.com>
10303
10304 * arm-tdep.c (arm_init_extra_frame_info): Use
10305 deprecated_update_frame_base_hack.
10306 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10307 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10308 (fix_frame_pointer): Ditto.
10309 (mn10300_analyze_prologue): Ditto.
10310
a00a19e9
AC
103112003-01-07 Andrew Cagney <cagney@redhat.com>
10312
10313 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10314 extra_info using frame_extra_info_zalloc.
10315 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10316 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10317 (sh64_init_extra_frame_info): Ditto.
10318 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10319 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10320 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10321 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10322 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10323 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10324 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10325 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10326 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10327 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10328 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10329 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10330
10331 * mn10300-tdep.c (analyze_dummy_frame): Use
10332 deprecated_set_frame_extra_info_hack.
10333 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10334
1fb4c65b
JB
103352003-01-07 J. Brobecker <brobecker@gnat.com>
10336
10337 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10338 class is not scText. These do not define "real" procedures.
10339 (parse_partial_symbols): Likewise.
10340
9fe7d6bf
MS
103412003-01-06 Michael Snyder <msnyder@redhat.com>
10342
10343 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10344
f6c609c4
AC
103452003-01-06 Andrew Cagney <ac131313@redhat.com>
10346
10347 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10348 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10349 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10350 deprecated_frame_xmalloc_with_cleanup.
10351 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10352 deprecated_frame_xmalloc.
10353 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10354 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10355
d995ff4b
AC
103562003-01-06 Andrew Cagney <cagney@redhat.com>
10357
84dc46cb
AC
10358 * x86-64-linux-tdep.c: Include "osabi.h".
10359 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10360
d995ff4b
AC
10361 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10362
66140c26
AC
103632003-01-06 Andrew Cagney <cagney@redhat.com>
10364
10365 * MAINTAINERS (Target Instruction Set Architectures): Update
10366 arm-elf. Can be built with -Werror, has been multiarched.
10367
10368 * value.h (unpack_long): Make buffer parameter constant.
10369 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10370 * scm-lang.h (scm_parse): Ditto.
10371 * defs.h (extract_typed_address, extract_address): Ditto.
10372 (extract_long_unsigned_integer): Ditto.
10373 * inferior.h (unsigned_pointer_to_address): Ditto.
10374 (signed_pointer_to_address): Ditto.
10375 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10376 * gdbarch.h, gdbarch.c: Regenerate.
10377 * findvar.c (extract_long_unsigned_integer): Update.
10378 (extract_address): Update.
10379 (extract_typed_address): Update.
10380 (unsigned_pointer_to_address): Update.
10381 * values.c (unpack_long): Update.
10382 (unpack_double): Update.
10383 (unpack_pointer): Update.
10384 (unpack_field_as_long): Update.
10385 * d10v-tdep.c (d10v_pointer_to_address): Update.
10386 * avr-tdep.c (avr_pointer_to_address): Update.
10387 * scm-lang.c (scm_unpack): Update.
10388 * findvar.c (signed_pointer_to_address): Update.
10389
b089b3da
ML
103902003-01-06 Michal Ludvig <mludvig@suse.cz>
10391
8ffd9b1b 10392 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10393 since it is in i386-tdep.c.
10394
aff87235
JB
103952003-01-06 J. Brobecker <brobecker@gnat.com>
10396
10397 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10398 failure introduced in the previous change.
10399
34f5e845
MC
104002003-01-05 Michael Chastain <mec@shout.net>
10401
10402 * README: Remove references to deleted remote-*.c files:
10403 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10404 remote-nrom.c, remote-os9k.c, remote-udi.c.
10405
28bcfd30
MK
104062003-01-05 Mark Kettenis <kettenis@gnu.org>
10407
10408 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10409 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10410 i386_get_longjmp_target.
10411
15a5b3ee
AC
104122003-01-05 Andrew Cagney <ac131313@redhat.com>
10413
10414 * arm-tdep.c (prologue_cache): Change to a pointer.
10415 (_initialize_arm_tdep): Allocate prologue_cache.
10416 (check_prologue_cache): Update.
10417 (save_prologue_cache): Update.
10418 (arm_gdbarch_init): Update.
10419
c263362b
DJ
104202003-01-04 Daniel Jacobowitz <drow@mvista.com>
10421
10422 * stabsread.c (update_method_name_from_physname): Call complaint()
10423 instead of error.
10424
51603483
DJ
104252003-01-04 Daniel Jacobowitz <drow@mvista.com>
10426
10427 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10428 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10429 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10430
10431 * blockframe.c: Include "gdbcmd.h" and "command.h".
10432 (backtrace_below_main): New variable.
10433 (file_frame_chain_valid, func_frame_chain_valid)
10434 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10435 (generic_func_frame_chain_valid): Remove functions.
10436 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10437 (_initialize_blockframe): New function.
10438 * Makefile.in (blockframe.o): Update dependencies.
10439 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10440 comment. Call frame_chain_valid ().
10441 * frame.h: Remove old prototypes. Add prototype for
10442 frame_chain_valid and update comments to match.
10443 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10444 Remove old comment.
10445 * gdbarch.h: Regenerated.
10446 * gdbarch.c: Regenerated.
10447
10448 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10449 set_gdbarch_frame_chain_valid.
10450 * avr-tdep.c (avr_gdbarch_init): Likewise.
10451 * cris-tdep.c (cris_gdbarch_init): Likewise.
10452 * frv-tdep.c (frv_gdbarch_init): Likewise.
10453 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10454 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10455 (i386_nw_init_abi): Likewise.
10456 (i386_gdbarch_init): Likewise.
10457 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10459 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10460 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10461 * mips-tdep.c (mips_gdbarch_init): Likewise.
10462 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10463 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10464 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10465 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10466 * s390-tdep.c (s390_gdbarch_init): Likewise.
10467 * sh-tdep.c (sh_gdbarch_init): Likewise.
10468 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10469 * v850-tdep.c (v850_gdbarch_init): Likewise.
10470 * vax-tdep.c (vax_gdbarch_init): Likewise.
10471 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10472
10473 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10474 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10475 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10476 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10477 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10478 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10479 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10480 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10481
b00a8037
DJ
104822002-01-04 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * Makefile.in (acconfig_h): Remove incorrect macro.
10485 (config_h): Define.
10486 (osabi.o): Update dependencies.
10487 * configure.tgt: Set gdb_osabi based on target triplet.
10488 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10489 * configure: Regenerated.
10490 * config.in: Regenerated.
10491 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10492 (GDB_OSABI_DEFAULT): Define if not already defined.
10493 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10494 (set_osabi_string): New variables.
10495 (gdbarch_register_osabi): Add new OS ABI to
10496 gdb_osabi_available_names.
10497 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10498 (set_osabi, show_osabi): New functions.
10499 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10500
4be87837
DJ
105012003-01-04 Daniel Jacobowitz <drow@mvista.com>
10502
10503 * arch-utils.c (gdbarch_info_init): Set osabi to
10504 GDB_OSABI_UNINITIALIZED.
10505 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10506 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10507 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10508 * gdbarch.c: Regenerated.
10509 * gdbarch.h: Regenerated.
10510 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10511 there's no BFD.
10512 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10513 * osabi.h (enum gdb_osabi): Move to defs.h.
10514 (gdbarch_init_osabi): Update prototype.
10515 * defs.h (enum gdb_osabi): Moved here.
10516 * Makefile.in: Update dependencies.
10517
10518 * alpha-tdep.h: Don't include "osabi.h".
10519 (struct gdbarch_tdep): Remove osabi member.
10520 * alpha-tdep.c: Include "osabi.h".
10521 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10522 iterate over arches. Update call to gdbarch_init_osabi.
10523 (alpha_dump_tdep): Don't dump osabi.
10524 * alpha-linux-tdep.c: Include "osabi.h".
10525 * alpha-osf1-tdep.c: Include "osabi.h".
10526 * alphafbsd-tdep.c: Include "osabi.h".
10527 * alphanbsd-tdep.c: Include "osabi.h".
10528
10529 * arm-tdep.h: Don't include "osabi.h".
10530 (struct gdbarch_tdep): Remove osabi member.
10531 * arm-tdep.c: Include "osabi.h".
10532 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10533 iterate over arches. Update call to gdbarch_init_osabi.
10534 (arm_dump_tdep): Don't dump osabi.
10535 * arm-linux-tdep.c: Include "osabi.h".
10536 * armnbsd-tdep.c: Include "osabi.h".
10537
10538 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10539 Update call to gdbarch_init_osabi.
10540
10541 * i386-tdep.h: Don't include "osabi.h".
10542 (struct gdbarch_tdep): Remove osabi member.
10543 * i386-tdep.c: Include "osabi.h".
10544 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10545 iterate over arches. Update call to gdbarch_init_osabi.
10546 (i386_dump_tdep): Don't dump osabi.
10547 * i386-linux-tdep.c: Include "osabi.h".
10548 * i386-sol2-tdep.c: Include "osabi.h".
10549 * i386bsd-tdep.c: Include "osabi.h".
10550 * i386gnu-tdep.c: Include "osabi.h".
10551 * i386ly-tdep.c: Include "osabi.h".
10552 * i386nbsd-tdep.c: Include "osabi.h".
10553 * i386obsd-tdep.c: Include "osabi.h".
10554
10555 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10556 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10557 check osabi when iterating over arches. Update call to
10558 gdbarch_init_osabi.
10559 (mips_dump_tdep): Don't dump osabi.
10560
10561 * ns32k-tdep.h: Don't include "osabi.h".
10562 (struct gdbarch_tdep): Remove.
10563 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10564 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10565 allocate tdep. Update call to gdbarch_init_osabi.
10566 (ns32k_dump_tdep): Remove.
10567 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10568 * ns32knbsd-tdep.c: Include "osabi.h".
10569
10570 * ppc-tdep.h: Don't include "osabi.h".
10571 (struct gdbarch_tdep): Remove osabi member.
10572 * rs6000-tdep.c: Include "osabi.h".
10573 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10574 osabi when iterating over arches. Update call to
10575 gdbarch_init_osabi.
10576 (rs6000_dump_tdep): Don't dump osabi.
10577 * ppc-linux-tdep.c: Include "osabi.h".
10578 * ppcnbsd-tdep.c: Include "osabi.h".
10579
10580 * sh-tdep.h: Don't include "osabi.h".
10581 (struct gdbarch_tdep): Remove osabi member.
10582 * sh-tdep.c: Include "osabi.h".
10583 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10584 iterate over arches. Update call to gdbarch_init_osabi.
10585 (sh_dump_tdep): Don't dump osabi.
10586 * shnbsd-tdep.c: Include "osabi.h".
10587
10588 * sparc-tdep.c: Include "osabi.h".
10589 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10590 iterate over arches. Update call to gdbarch_init_osabi.
10591 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10592 tdep structure.
10593
10594 * vax-tdep.h: Don't include "osabi.h".
10595 (struct gdbarch_tdep): Remove.
10596 * vax-tdep.c: Include "osabi.h".
10597 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10598 iterate over arches. Don't allocate tdep. Update call
10599 to gdbarch_init_osabi.
10600 (vax_dump_tdep): Remove.
10601 (_initialize_vax_tdep): Update call to gdbarch_register.
10602
a881cf8e
DJ
106032003-01-04 Daniel Jacobowitz <drow@mvista.com>
10604
10605 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10606 entirely.
10607 (breakpoint_re_set_one): Don't fetch the value for a disabled
10608 watchpoint.
10609
1e698235
DJ
106102003-01-04 Daniel Jacobowitz <drow@mvista.com>
10611
10612 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10613 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10614 (COERCE_FLOAT_TO_DOUBLE): Remove.
10615 * gdbarch.c: Regenerate.
10616 * gdbarch.h: Regenerate.
10617 * Makefile.in: Remove value_h from gdbarch_h.
10618 * valops.c (coerce_float_to_double): New variable.
10619 (default_coerce_float_to_double): Remove.
10620 (standard_coerce_float_to_double): Remove.
10621 (value_arg_coerce): Use coerce_float_to_double.
10622 (_initialize_valops): Add "set coerce-float-to-double".
10623 * value.h (default_coerce_float_to_double): Remove prototype.
10624 (standard_coerce_float_to_double): Remove prototype.
10625
10626 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10627 prototyped.
10628 * mdebugread.c (parse_symbol): Likewise.
10629 * stabsread.c (define_symbol): Mark all functions as prototyped.
10630
10631 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10632 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10633 set_gdbarch_coerce_float_to_double.
10634 * arm-tdep.c (arm_gdbarch_init): Likewise.
10635 * frv-tdep.c (frv_gdbarch_init): Likewise.
10636 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10637 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10638 * mips-tdep.c (mips_gdbarch_init): Likewise.
10639 (mips_coerce_float_to_double): Remove.
10640 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10641 (rs6000_coerce_float_to_double): Remove.
10642 * s390-tdep.c (s390_gdbarch_init): Likewise.
10643 * sh-tdep.c (sh_gdbarch_init): Likewise.
10644 (sh_coerce_float_to_double): Remove.
10645 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10646 (sparc_coerce_float_to_double): Remove.
10647 * v850-tdep.c (v850_gdbarch_init): Likewise.
10648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10649 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10650 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10651 (hppa_coerce_float_to_double): Remove prototype.
10652 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10653
f436a26a
DJ
106542003-01-04 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10657
248f8055
DJ
106582003-01-04 Daniel Jacobowitz <drow@mvista.com>
10659
10660 Suggested by Stewart Brown <sb24@avaya.com>:
10661 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10662 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10663 (c_type_print_varspec_suffix): Likewise.
10664
72cfdc76
MK
106652003-01-04 Mark Kettenis <kettenis@gnu.org>
10666
bfd260bb
MK
10667 * configure.in: Don't set and AC_SUBST SUBDIRS.
10668 * configure: Regenerated.
10669
72cfdc76
MK
10670 * configure.in: Remove code dealing with shared libraries.
10671 * Makefile.in: Remove HLDFLAGS and HLDENV.
10672 * configure: Regenerated.
10673
c8b8a898
AC
106742003-01-04 Andrew Cagney <ac131313@redhat.com>
10675
10676 * frame.c (deprecated_frame_xmalloc): New function.
10677 (deprecated_set_frame_saved_regs_hack): New function.
10678 (deprecated_set_frame_extra_info_hack): New function.
10679 * frame.h (deprecated_frame_xmalloc): Declare.
10680 (deprecated_set_frame_saved_regs_hack): Declare.
10681 (deprecated_set_frame_extra_info_hack): Declare.
10682
14abd0fb
MK
106832003-01-04 Mark Kettenis <kettenis@gnu.org>
10684
8ee53726
MK
10685 * configure.in: Move code that provides the --enable-gdbtk option
10686 right after the code that handles the --enable-tui option, and
10687 polish it somewhat.
10688 * configure: Regenerated.
10689
14abd0fb
MK
10690 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10691 AC_CHECK_FUNCS and remove the old check for pread64.
10692 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10693 * acconfig.h (_GNU_SOURCE): Add.
10694 (HAVE_PREAD64): Remove.
10695 * configure, aclocal.m4, config.in: Regenerated.
10696
b2fb4676
AC
106972003-01-03 Andrew Cagney <ac131313@redhat.com>
10698
10699 * alpha-tdep.c: Use get_frame_saved_regs.
10700 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10701 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10702 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10703 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10704 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10705
8dcde887
MK
107062003-01-03 Mark Kettenis <kettenis@gnu.org>
10707
10708 * configure.in: Remove all use of the SUBDIRS variable; add
10709 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10710 code providing the --enable-multi-ice option, and move it right in
10711 front of the code that checks whether gdbserver is supported.
10712 Polish that too.
10713 * configure: Regenerated.
10714 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10715 @SUBDIRS@.
10716
8ccd593b
AC
107172003-01-03 Andrew Cagney <cagney@redhat.com>
10718
10719 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10720 * avr-tdep.c, cris-tdep.c: Ditto.
10721 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10722 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10723
91151a06
MK
107242003-01-03 Mark Kettenis <kettenis@gnu.org>
10725
10726 * configure.in: Remove --enable-netrom option.
10727 * configure: Regenerated.
10728
8fe84d01
MK
107292003-01-03 Mark Kettenis <kettenis@gnu.org>
10730
10731 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10732 declaration for `struct re_pattern_buffer' instead.
10733 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10734
f0394be6
JB
107352003-01-03 J. Brobecker <brobecker@gnat.com>
10736
10737 * mdebugread.c (parse_symbol): Count until the stEnd matching
10738 the structure name.
10739
27e9bf90
MK
107402003-01-02 Mark Kettenis <kettenis@gnu.org>
10741
93d331ba
MK
10742 * configure.in: Remove --with-cpu option.
10743 subscripts. Remove evil changequotes here.
10744 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10745 * config.in, configure: Regenerated.
8ffd9b1b 10746
27e9bf90
MK
10747 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10748 * configure.in: Cleanup section that sources GDB and BFD configure
10749 subscripts. Remove evil changequotes here.
10750 * config.in, configure: Regenerated.
10751
50abf9e5
AC
107522003-01-02 Andrew Cagney <ac131313@redhat.com>
10753
10754 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10755 frame accessor methods.
10756 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10757 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10758 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10759 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10760 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10761 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10762 * z8k-tdep.c: Ditto.
8ffd9b1b 10763
287c1a40
MK
107642003-01-02 Mark Kettenis <kettenis@gnu.org>
10765
f5dbc56d
MK
10766 * configure.in: Remove UI_OUT configuration code.
10767 * ada-lang.c: Update assuming UI_OUT is always true.
10768 * Makefile.in (UIOUT_CFLAGS): Remove.
10769 * configure: Regenerated.
10770 * TODO: Remove blurb about elimination of -DUI_OUT.
10771
627af7ea
MK
10772 * configure.in: Move code that provides the --enable-gdbcli,
10773 --enable-gdbmi options right before the code that handles the
10774 --enable-tui option. Polish a bit.
10775 * configure: Regenerated.
10776
06825bd1
MK
10777 * configure.in: Rewrite check for GNU regex and the
10778 --without-included regex option, and move it into the "Checks for
10779 library functions" section. This makes us use the system regex
10780 again by default on systems with version 2 of the GNU C library.
10781 This was apparently broken.
10782 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10783 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10784 * config.in, configure: Regenerated.
10785
287c1a40
MK
10786 * configure.in: Move code that provides the --enable-tui option
10787 before the "Checks for libraries" section. Polish the code
10788 somewhat and set need_curses to yes if we build the TUI. Rewrite
10789 code that looks for a library providing termcap functionality to
10790 match more closely what's done in the Readline library, and move
10791 it into to the "Checks for libraries" section.
10792 * configure: Regenerated.
10793 * Makefile.in (TERMCAP): Remove variable.
10794 * config/i386/go32.mh (TERMCAP): Remove variable.
10795
684e56bf
AC
107962003-01-02 Andrew Cagney <ac131313@redhat.com>
10797
10798 * MAINTAINERS: Mention gdb_mbuild.sh.
10799 * gdb_mbuild.sh: Rewrite.
10800
e1ea1d75
MK
108012003-01-02 Mark Kettenis <kettenis@gnu.org>
10802
10803 * configure.in: Fix typo in last change.
10804 * config.in, configure: Regenerated.
10805
1b831c93
AC
108062003-01-02 Andrew Cagney <ac131313@redhat.com>
10807
10808 * valarith.c (value_binop): Delete obsolete code and comments.
10809 * configure.host: Ditto.
10810 * buildsym.h (make_blockvector): Ditto.
10811 * buildsym.c (make_blockvector): Ditto.
10812 * defs.h (enum language): Ditto.
10813 (chill_demangle): Ditto.
10814 * elfread.c (elf_symtab_read): Ditto.
10815 * dwarfread.c (CHILL_PRODUCER): Ditto.
10816 (set_cu_language): Ditto.
10817 (handle_producer): Ditto.
10818 * expprint.c (print_subexp): Ditto.
10819 * gdbtypes.c (chill_varying_type): Ditto.
10820 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10821 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10822 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10823 (chill_varying_type): Ditto.
10824 * language.h (_LANG_chill): Ditto.
10825 * language.c (binop_result_type, integral_type): Ditto.
10826 (character_type, string_type, structured_type): Ditto.
10827 (lang_bool_type, binop_type_check): Ditto.
10828 * stabsread.h (os9k_stabs): Ditto.
10829 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10830 (define_symbol, read_type, read_struct_fields): Ditto.
10831 (read_array_type, read_enum_type, read_huge_number): Ditto.
10832 (read_range_type, start_stabs): Ditto.
10833 * symfile.c (init_filename_language_table): Ditto.
10834 (add_psymbol_with_dem_name_to_list): Ditto.
10835 * symtab.c (symbol_init_language_specific): Ditto.
10836 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10837 * symtab.h (struct general_symbol_info): Ditto.
10838 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10839 * typeprint.c (typedef_print): Ditto.
10840 * utils.c (fprintf_symbol_filtered): Ditto.
10841 * valops.c (value_cast, search_struct_field, value_slice): Delete
10842 obsolete code.
10843 (varying_to_slice): Delete function.
10844 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10845 (varying_to_slice): Delete declaration.
10846 * MAINTAINERS: Update.
10847
8bb2c122
MK
108482003-01-02 Mark Kettenis <kettenis@gnu.org>
10849
97bf5e38
MK
10850 * configure.in: Reorganize "Checks for library functions section"
10851 a bit. Remove check for `btowc' and `isascii' functions.
10852 * configure: Regenerated.
10853
5ee754fc
MK
10854 * acconfig.h (_MSE_INT_H): Remove.
10855 * configure.in: Create "Checks for header files" section, and move
10856 appropriate tests there. Don't check for objlist.h, wchar.h,
10857 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10858 misdetection fix. Also add "Checks for types", "Checks for
10859 compiler characteristics" and "Checks for library functions"
10860 sections.
10861 * config.in, configure: Regenerated.
10862
8bb2c122
MK
10863 * configure.in: Create "Checks for programs" section, and move
10864 appropriate tests there.
10865
9a156167
MK
108662003-01-01 Mark Kettenis <kettenis@gnu.org>
10867
10868 * configure.in: Create "Checks for libraries" section, and move
10869 appropriate tests there. Cleanup check for wctype in libw. Use
10870 AC_SEARCH_LIBS to see whether we need libsocket.
10871 * configure: Regenerated.
10872
a80e2bcb 10873For older changes see ChangeLog-2002
c906108c
SS
10874\f
10875Local Variables:
10876mode: change-log
10877left-margin: 8
10878fill-column: 74
10879version-control: never
10880End:
This page took 1.135367 seconds and 4 git commands to generate.