]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2003-08-21 Andrew Cagney <cagney@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
435ac228
AC
12003-08-21 Andrew Cagney <cagney@redhat.com>
2
3 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4 * config/sparc/tm-sparc.h: Ditto.
5 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
6 unconditionally.
7 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
8
0d0e1a63
MK
92003-07-13 Mark Kettenis <kettenis@gnu.org>
10
11 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
12 (register_objfile_data, set_objfile_data, objfile_data): New
13 prototypes.
14 * objfiles.c (objfile_alloc_data, objfile_free_data): New
15 prototypes.
16 (allocate_objfile): Call objfile_alloc_data.
17 (free_objfile): Call objfile_free_data.
18 (struct objfile_data): New.
19 (struct objfile_data_registration): New.
20 (struct objfile_data_registry): New.
21 (objfile_data_registry): New variable.
22 (register_objfile_data): New function.
23 (objfile_alloc_data, objfile_free_data): New functions.
24 (set_objfile_data, objfile_data): New functions.
25 * dwarf2-frame.c (dwarf2_frame_data): New variable.
26 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
27 (_initialize_dwarf2_frame): New function and prototype.
28
d90cf509
AC
292003-08-21 Andrew Cagney <cagney@redhat.com>
30
31 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
32 a specific architecture.
33 * arch-utils.h (set_architecture_from_arch_mach): Delete
34 declaration.
35 (target_architecture_hook): Delete declaration.
36 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
37 (default_float_format): Assume GDB_MULTI_ARCH.
38 (default_double_format): Assume GDB_MULTI_ARCH.
39 (set_endian_from_file): Delete function.
40 (arch_ok): Delete function.
41 (set_arch): Delete function.
42 (set_architecture_from_arch_mach): Delete function.
43 (set_architecture_from_file): Delete function.
44 (set_architecture): Assume GDB_MULTI_ARCH.
45 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
46
8b39fe56
MK
472003-08-21 Mark Kettenis <kettenis@gnu.org>
48
49 Rewrite FreeBSD/sparc64 native configuration.
50 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
51 * sparc64fbsd-nat.c: New file.
52 * sparc64fbsd-tdep.c: New file.
53 * sparc64-tdep.c sparc64-tdep.h: New files.
54 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
55 sparc64fbsd-tdep.o): New dependencies.
56 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
57 and sparc64fbsd-tdep.c.
58 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
59 * config/sparc/fbsd.mh: Remove copyright notice.
60 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
61 sparcbsd-nat.o.
62 * config/sparc/fbsd.mt: Remove copyright notice.
63 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
64 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
65 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
66 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
67 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
68 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
69 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
70 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
71 "sparc/tm-sp64.h".
72 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
73 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
74
a7f19c79
MC
752003-08-21 Michael Chastain <mec@shout.net>
76
77 * symtab.h: Add doco on the space critical structures and
78 some measurements of space usage.
79
da08ea5b
MS
802003-08-21 Michael Snyder <msnyder@redhat.com>
81
82 * tracepoint.c (trace_dump_command): Trace break address
83 is subject to DECR_PC_AFTER_BREAK.
84 (set_traceframe_context): Make "trace_line" an int.
85 Fixes suggested by Mark Newman <mark.newman@lmco.com>
86
6df2bf50
MS
872003-08-20 Michael Snyder <msnyder@redhat.com>
88
89 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
90 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
91 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
92 argument passing.
93 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
94 functions, replace sh_push_dummy_call.
95 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
96
0955bbf0
MC
972003-08-20 Michael Chastain <mec@shout.net>
98
99 * gdbtypes.h (struct main_type): Rearrange to save space.
100
260a4188
MS
1012003-08-20 Michael Snyder <msnyder@redhat.com>
102
103 * trad-frame.c: Comment typo fix.
104
8baa6f92
KB
1052003-08-20 Michael Snyder <msnyder@redhat.com>
106 Kevin Buettner <kevinb@redhat.com>
107
108 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
109 (frv_frame_init_saved_regs): Add declaration.
110 (frame_extra_info): Add new field ``saved_regs''.
111 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
112 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
113 Update frame related code.
114 (frv_extract_struct_value_address): Adjust formatting.
115 * Makefile.in (frv-tdep.o): Update dependencies.
116 * config/frv/tm-frv.h (target_insert_watchpoint)
117 (target_remove_watchpoint, target_insert_hw_breakpoint)
118 (target_remove_hw_breakpoint): Delete these macros.
119 (remote_insert_watchpoint, remote_remove_watchpoint)
120 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
121 these declarations.
122
87193939
MC
1232003-08-20 Michael Chastain <mec@shout.net>
124
125 * defs.h (ENUM_BITFIELD): New macro.
126 * symtab.h (ENUM_BITFIELD): Use it.
127 (BYTE_BITFIELD): Remove old macro, which was already disabled.
128
062103ba
SA
1292003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
130
131 * MAINTAINERS (write after approval): Add myself.
132
8b148df9
AC
1332003-08-18 Andrew Cagney <cagney@redhat.com>
134
135 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
136 * gdbarch.h, gdbarch.c: Re-generate.
137 * infcall.c (call_function_by_hand): Adjust the SP by
138 frame_red_zone_size before allocating any stack space.
139 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
140 * x86-64-tdep.c (x86_64_frame_align): New function.
141 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
142
143 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
144 Remove code adjusting SP so that it skips over the Red Zone.
145
954a4db8
MK
1462003-08-18 Mark Kettenis <kettenis@gnu.org>
147
148 * NEWS (New native configurations): Mention FreeBSD/amd64.
149
1a241548
AC
1502003-08-18 Andrew Cagney <cagney@redhat.com>
151
152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
153 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
154 "m68k_frame_p".
155 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
156
f82b2acd
MK
1572003-08-18 Mark Kettenis <kettenis@gnu.org>
158
159 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
160
4056d258
ML
1612003-08-18 Michal Ludvig <mludvig@suse.cz>
162
163 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
164 Define.
165 * i386-linux-nat.c: Include "linux-nat.h".
166 (child_post_startup_inferior): New function.
167
99ab4326
MK
1682003-08-18 Mark Kettenis <kettenis@gnu.org>
169
170 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
171 at the start of a frameless function. This probably fixes PR
172 backtrace/1338.
173
c8d5f0d6
MC
1742003-08-17 Michael Chastain <mec@shout.net>
175
176 * symfile.c (find_sym_fns): Remove special case for apollo target.
177
9016a515
DJ
1782003-08-17 Daniel Jacobowitz <drow@mvista.com>
179
180 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
181 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
182 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
183 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
184 (linux_supports_tracevforkdone): New function.
185 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
186 TRACEVFORKDONE.
187 (child_follow_fork): Handle vfork.
188 (linux_handle_extended_wait): Likewise. Also handle exec.
189 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
190 * NEWS: Mention fork tracing.
191
c538c11c
DJ
1922003-08-17 Daniel Jacobowitz <drow@mvista.com>
193
194 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
195
4de4c07c
DJ
1962003-08-17 Daniel Jacobowitz <drow@mvista.com>
197
198 * Makefile.in (i386-linux-nat.o): Update dependencies.
199 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
200 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
201 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
202 * i386-linux-nat.c: Include "linux-nat.h".
203 (child_post_startup_inferior): New function.
204 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
205 * infptrace.c (kill_inferior): Wrap in #ifdef.
206 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
207 attaching to each LWP.
208 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
209 (init_lin_lwp_ops): Fill in some more operations.
210 * linux-nat.h (linux_enable_event_reporting)
211 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
212 prototypes.
213 * linux-nat.c (linux_enable_event_reporting): New function.
214 (child_post_attach, linux_child_post_startup_inferior)
215 (child_post_startup_inferior, child_follow_fork)
216 (linux_handle_extended_wait, kill_inferior): New functions.
217
7996bcec
AC
2182003-08-16 Andrew Cagney <cagney@redhat.com>
219
220 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
221 * gdbarch.h, gdbarch.c: Re-generate.
222
3d48a7a0
MK
2232003-08-16 Mark Kettenis <kettenis@gnu.org>
224
225 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
226
7989c619
AC
2272003-08-16 Andrew Cagney <cagney@redhat.com>
228
229 * NEWS: Mention that "set prompt-escape-char" was deleted.
230 * top.c (get_prompt_1): Delete function.
231 (gdb_prompt_escape):
232 (init_main): Do not clear "gdb_prompt_escape". Delete "set
233 prompt-escape-char" command.
234 (MAX_PROMPT_SIZE): Delete macro.
235 (get_prompt): Simplify, do not call get_prompt_1.
236
07978cd8
AC
2372003-08-16 Andrew Cagney <cagney@redhat.com>
238
239 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
240 -Werror. -Wformat-nonliteral problems.
241
3ff7cf9e
JB
2422003-08-15 J. Brobecker <brobecker@gnat.com>
243
244 Further multiarching work mostly for hppa64-*-hpux11:
245 * hppa-tdep.h: New file.
246 * hppa-tdep.c: #include hppa-tdep.c.
247 (hppa32_num_regs): Renamed from hppa_num_regs.
248 (hppa64_num_regs): New constant.
249 (hppa64_call_dummy_breakpoint_offset): New constant.
250 (hppa32_call_dummy_length): New constant.
251 (hppa64_call_dummy_length): New constant.
252 (hppa32_stack_align): Make name 32bit explicit.
253 (hppa32_register_virtual_type): Likewise.
254 (hppa32_extract_return_value): Likewise.
255 (hppa32_use_struct_convention): Likewise.
256 (hppa32_store_return_value): Likewise.
257 (hppa64_register_virtual_type): New function.
258 (hppa64_extract_return_value): New function.
259 (hppa64_use_struct_convention): New function.
260 (hppa64_store_return_value): New function.
261 (hppa_frame_locals_address): Remove declaration, function does
262 not exist anymore.
263 (hppa_register_byte): Add support for PA64 ABI.
264 (hppa_gdbarch_init): Add support for PA64 ABI.
265 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
266 Make name 32bit explicit.
267 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
268 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
269 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
270 (hppa64_hpux_frame_base_before_sigtramp): New function.
271 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
272 * config/pa/tm-hppa64.h: Remove macros that are no longer
273 necessary now that the gdbarch vector is properly setup.
274 Transform some macros into function calls. Some minor cleanup.
275 * config/pa/tm-hppah.h: Update function calls in macros
276 following the function renaming in hppa-hpux-tdep.c.
277 * Makefile.in (hppa_tdep_h): New variable.
278 (hppa-tdep.o): Add dependency over hppa_tdep_h.
279
5d05ca6d
MS
2802003-08-14 Michael Snyder <msnyder@redhat.com>
281
282 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
283
37ba2569
JB
2842003-08-13 J. Brobecker <brobecker@gnat.com>
285
286 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
287 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
288 routine.
289
aed7f26a
MS
2902003-08-13 Michael Snyder <msnyder@redhat.com>
291
292 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
293 (frv_saved_pc_after_call): Use deprecated ftype.
294 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
295 (frv_remote_translate_xfer_address): Remove.
296 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
297
752d4ac1
JB
2982003-08-13 J. Brobecker <brobecker@gnat.com>
299
300 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
301 initialization after the common gdbarch initialization, not before.
302
1426ac1d
JB
3032003-08-13 J. Brobecker <brobecker@gnat.com>
304
305 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
306 (ADDR_BITS_REMOVE): Remove, redundant.
307
b6fbdd1d
JB
3082003-08-13 J. Brobecker <brobecker@gnat.com>
309
310 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
311 gdbarch method to clear the 2 low bits of text addresses.
312
44160db3
AC
3132003-08-12 Andrew Cagney <cagney@redhat.com>
314
315 * Makefile.in (dsrec.o): Update dependencies.
316 * dsrec.c: Include "gdb_assert.h".
317 (make_srec): Use snprintf instead of sprintf, use a literal format
318 string.
319
bcf7d3ca
AC
3202003-08-12 Andrew Cagney <cagney@redhat.com>
321
322 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
323 FRAME_OBSTACK_ZALLOC.
324
49ed40de
KB
3252003-08-12 Kevin Buettner <kevinb@redhat.com>
326
327 * i386-tdep.c (i386_gdbarch_init): Enable default support for
328 SSE registers.
329
b246147c
MK
3302003-08-10 Mark Kettenis <kettenis@gnu.org>
331
332 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
333 amd64fbsd_sc_reg_offset): Add extern declarations.
334 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
335 declarations.
336
d95fdc0d
BE
3372003-08-11 Ben Elliston <bje@wasabisystems.com>
338
339 * MAINTAINERS (write after approval): Update my mail address.
340
cf6a0e73
AC
3412003-08-10 Andrew Cagney <cagney@redhat.com>
342
343 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
344
f837910f
MK
3452003-08-10 Mark Kettenis <kettenis@gnu.org>
346
e2dbbd2d
MK
347 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
348 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
349 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
350 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
351 i386bsd_sc_reg_offset): Add extern declarations.
352 * i386obsd-nat.c: Include "i386-tdep.h"
353 (_initialize_i386obsd_nat): Remove extern declarations.
354 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
355 declarations.
356 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
357 declarations.
358
f837910f
MK
359 * i386-tdep.c (i386_register_to_value): Use get_frame_register
360 instead of frame_read_register.
361 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
362 instead of frame_read_register. Use I386_ESP_REGNUM instead of
363 SP_REGNUM.
364 (i386_frame_prev_register): Use frame_unwind_register_unsigned
365 instead of frame_unwind_unsigned_register. Use
366 I386_EFLAGS_REGISTER instead of PS_REGNUM.
367 (i386_get_longjmp_target): Use regcache_read_unsigned_register
368 instead of read_register. Use builtin_type_void_data_ptr instead
369 of builtin_type_void_func_ptr when extracting the address of the
370 jmp_buf.
371 (i386_extract_return_value, i386_store_return_value,
372 i386_pseudo_register_read, i386_pseudo_register_write): Use
373 register_size instead REGISTER_RAW_SIZE.
374
edcf254d
AC
3752003-08-10 Andrew Cagney <cagney@redhat.com>
376
377 * infcall.c (call_function_by_hand): Use xstrprintf instead of
378 sprintf. Make "name" constant.
379
26604a34
MK
3802003-08-10 Mark Kettenis <kettenis@gnu.org>
381
192285c6
MK
382 * i387-tdep.c (i387_register_to_value): Use get_frame_register
383 instead of frame_read_register.
f837910f
MK
384 (i387_print_float_info): Use get_frame_register and
385 get_frame_register_unsigned instead of frame_register_read.
192285c6 386
f0925262
MK
387 * i386fbsd-nat.c: Include "i386-tdep.h".
388 (child_resume): Make `eflags' an ULONGEST. Use
389 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
390 instead of register_read and register_write.
391
a144416f
MK
392 * i386bsd-nat.c (fetch_inferior_registers,
393 store_inferior_registers): Don't use && at the end of a line.
394 (_initialize_i386bsd_nat): Fix typo.
395
fec74868
MK
396 * frame.c (_initialize_frame): Add missing backslash.
397
87232496
MK
398 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
399 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
400 and supply_register instead of manipulating the register buffer
401 directly.
402
c9b9de0b
MK
403 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
404 * config/i386/nm-i386sol2.h
405 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
406
26604a34
MK
407 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
408 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
409 instructions that GCC likes to mingle into the prologue. Fixes
410 gdb/1253 and gdb/1255.
411
25d29d70
AC
4122003-08-09 Andrew Cagney <cagney@redhat.com>
413
414 Fix GDB PR cli/926.
415 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
416 * command.h (add_setshow_uinteger_cmd): Declare.
417 * frame.c (set_backtrace_cmd): New function.
418 (show_backtrace_cmd): New function.
419 * frame.c (_initialize_frame): Replace "set/show
420 backtrace-below-main" with "set/show backtrace past-main". Add
421 command "set/show backtrace limit".
422 (backtrace_past_main): Rename "backtrace_below_main".
423 (backtrace_limit): New variable.
424 (get_prev_frame): Update. Check the backtrace_limit.
425
9ebf4acf
AC
4262003-08-09 Andrew Cagney <cagney@redhat.com>
427
428 * defs.h (xstrprintf): Declare.
429 * utils.c (xstrprintf): New function.
430 * breakpoint.c (insert_breakpoints): Replace sprintf and
431 non-literal format strings, with xstrprintf and cleanups.
432 (delete_breakpoint,breakpoint_re_set): Ditto.
433 (commands_command, insert_breakpoints): Ditto.
434 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
435 (break_at_finish_command_1): Ditto.
436
3771659b
AC
4372003-08-09 Andrew Cagney <cagney@redhat.com>
438
439 * MAINTAINERS (language support): List Adam Fedor as Objective C
440 maintainer.
441
b4263afa
JB
4422003-08-08 J. Brobecker <brobecker@gnat.com>
443
444 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
445 are now multiarched.
446
d84defb1
JB
4472003-08-08 J. Brobecker <brobecker@gnat.com>
448
449 * config/pa/tm-hppa64.h: Remove lots of macros that are no
450 longer necessary now that hppa64 is partially multiarch'ed.
451
f786f615
AC
4522003-08-08 Andrew Cagney <cagney@redhat.com>
453
454 * interps.c (interp_set): Check for a NULL "old_interp".
455
c938e9b0
L
4562003-08-08 H.J. Lu <hongjiu.lu@intel.com>
457
458 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
459 (install-only): Support DESTDIR.
460 (uninstall): Likewise.
461 (install-gdbtk): Likewise.
462
9a146a11
EZ
4632003-08-08 Elena Zannoni <ezannoni@redhat.com>
464
465 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
466 contains something meaningful at all times.
467
468Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 469
62599e99 470 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 471
56296155
BC
472Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
473
62599e99 474 * MAINTAINERS (write after approval): Added self.
56296155 475
9710e734
AC
4762003-08-07 Andrew Cagney <cagney@redhat.com>
477
478 * inferior.h (AT_SYMBOL): Define.
479 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
480 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
481 * mips-tdep.c (mips_call_dummy_address): Delete function.
482 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
483 set call_dummy_address.
484
98b3ab73
AC
4852003-08-07 Andrew Cagney <cagney@redhat.com>
486
487 * language.c (op_error): Delete function.
488 (binop_type_check): Delete function.
489 * language.h (type_op_error, range_op_error): Delete macros.
490 (op_error): Delete declaration.
491
2fcf52f0
AC
4922003-08-07 Andrew Cagney <cagney@redhat.com>
493
494 * interps.h (INTERP_MI2, INTERP_MI3): Define.
495
abd4220e 4962003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 497
abd4220e 498 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 499 (x86_64_push_arguments): Skip the red zone.
abd4220e 500
9dd5f34f
AC
5012003-08-05 Andrew Cagney <cagney@redhat.com>
502
503 * reggroups.c (reggroup_next): Check for the final entry.
504
e5e78edc
AC
5052003-08-04 Andrew Cagney <cagney@redhat.com>
506
ab4e3d93
AC
507 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
508 * cli/cli-script.c (define_command): Call query directly, instead
509 of passing it a buffer.
510 * ocd.c (ocd_error): Pass error a constant format string.
511 * remote-mips.c (mips_error): Use fputs_filtered.
512
1062ca82
AC
513 * solib-svr4.c (_initialize_svr4_solib): Update
514 register_gdbarch_data call.
515 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
516
fcc1c85c
AC
517 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
518 (register_gdbarch_data): Delete "free" parameter. Update
519 comments.
520 * gdbarch.h, gdbarch.c: Re-generate.
521 * reggroups.c (_initialize_reggroup): Update.
522 * gnu-v3-abi.c (init_gnuv3_ops): Update.
523 * frame-base.c (_initialize_frame_base): Update.
524 * frame-unwind.c (_initialize_frame_unwind): Update.
525 * user-regs.c (_initialize_user_regs): Update.
526 * remote.c (_initialize_remote): Update.
527 * regcache.c (_initialize_regcache): Update.
528
116f06ea
AC
529 * regcache.c (xfree_regcache_descr): Delete function.
530 (_initialize_regcache): Update call to register_gdbarch_data.
531 (init_regcache_descr, init_legacy_regcache_descr): Use
532 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
533
e5e78edc
AC
534 * remote.c (free_remote_state): Delete function.
535 (_initialize_remote): Update register_gdbarch_data.
536 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
537 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
538
6c7d17ba
AC
5392003-08-04 Andrew Cagney <cagney@redhat.com>
540
541 * reggroups.c (struct reggroup_el): Define.
542 (struct reggroups): Delete field "nr_group". Replace array
543 "group" with a "first" to "last" linked list.
544 (reggroups_init): Update. Allocate using gdbarch's obstack.
545 (reggroups_free): Delete function.
546 (add_group): Update. Add "el" parameter.
547 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
548 (default_groups): Update.
549 (reggroup_next): Replace reggroups.
550 (reggroups_dump): Update.
551 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
552 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
553 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
554
89b7795b
DJ
5552003-08-04 Daniel Jacobowitz <drow@mvista.com>
556
557 * Makefile.in (tui-interp.o): Update dependencies.
558
306d9ac5
DC
5592003-08-04 David Carlton <carlton@kealia.com>
560
561 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
562 to internal_error call.
563 * source.c (forward_search_command): Add "%s" format argument.
564 (reverse_search_command): Ditto.
565 * top.c (quit_confirm): Ditto.
566 * cli/cli-setshow.c (do_setshow_command): Ditto.
567 * cp-valprint.c (cp_print_class_method): Replace
568 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
569 (cp_print_class_member): Ditto.
570 * event-top.c (command_line_handler): Ditto.
571 * linux-proc.c (linux_info_proc_cmd): Ditto.
572 * p-typeprint.c (pascal_type_print_base): Ditto.
573 * p-valprint.c (pascal_object_print_class_method): Ditto.
574 (pascal_object_print_class_member): Ditto.
575 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
576 * remote.c (remote_cisco_section_offsets): Ditto.
577 * top.c (command_line_input): Ditto.
578 * utils.c (vwarning,error_stream,quit): Ditto.
579 * valprint.c (print_floating,print_binary_chars)
580 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
581
57bfe177
AC
5822003-08-04 Andrew Cagney <cagney@redhat.com>
583
584 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
585
e546b999
AC
5862003-08-02 Andrew Cagney <cagney@redhat.com>
587
588 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
589 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
590 amd64fbsd-nat.c.
591
91092ee5
AC
5922003-08-02 Andrew Cagney <cagney@redhat.com>
593
594 * Makefile.in: Update all dependencies and definitions.
595
889f28e2
AF
5962003-08-02 Adam Fedor <fedor@gnu.org>
597
598 * linespec.c (is_objc_method_format): New function
599 (decode_line_1, locate_first_half): Use it.
600 Fixes PR objc/1298
601
880bc914
AC
6022003-08-01 Andrew Cagney <cagney@redhat.com>
603
604 * NEWS: Mention that m32r is multi-arch.
605 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
606 * configure.tgt: Recognize m32r-*-*.
607 * config/m32r/tm-m32r.h: Delete file.
608 * config/m32r/m32r.mt: New file.
609 * m32r-rom.c (m32r_upload_command): Use hostent only when
610 gethostname succeeds, in order to avoid a compilation
611 warning.
612 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
613 compiler warning.
614
19f59343
MS
6152003-08-01 Michael Snyder <msnyder@redhat.com>
616
617 * sh-tdep.c (sh_frame_align): New gdbarch method.
618 (sh_gdbarch_init): Set up frame_align method.
619
4e7d7511
MS
6202003-07-31 Michael Snyder <msnyder@redhat.com>
621
622 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
623 which is already covered by the new frames infrastructure.
624
63022984
AC
6252003-07-31 Andrew Cagney <cagney@redhat.com>
626
627 * user-regs.c (struct user_reg): Add "next" link.
628 (struct user_regs): Replace "user" with "first" and "last" links.
629 (append_user_reg): Add pre-allocated "reg" parameter.
630 (builtin_user_regs): Provide initial value for "last".
631 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
632 (user_regs_init): Allocate memory from the gdbarch obstack.
633 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
634 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
635 linked list.
636 (usernum_to_user_reg): New function.
637 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
638 (value_of_user_reg): Use usernum_to_user_reg.
639 (user_regs_free): Delete function.
640 (_initialize_user_regs): Update register_gdbarch_data call.
641
7cf6e574
DJ
6422003-07-31 Daniel Jacobowitz <drow@mvista.com>
643
644 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
645
c48a845b
MS
6462003-07-30 Michael Snyder <msnyder@redhat.com>
647
4e7d7511 648 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
649 * infcall.c (call_function_by_hand): Pass struct_addr to
650 value_being_returned.
651 * infcmd.c (print_return_value): Pass zero as struct_addr.
652 * values.c (value_being_returned): If struct_addr is passed,
653 use it instead of trying to recover it from the inferior.
654
f0d8db19
KB
6552003-07-30 Kevin Buettner <kevinb@redhat.com>
656
657 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
658 the prologue analyzer won't need to attempt to extract the pc
659 value from the woefully incomplete dummy frame.
660 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
661 possible. Disable code which modifies the frame.
662
e5c113a1
AC
6632003-07-28 Andrew Cagney <cagney@redhat.com>
664
665 * annotate.c (annotate_breakpoints_headers): Restrict annotation
666 to level 2.
667 (annotate_breakpoints_table, annotate_record): Ditto.
668 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
669 (annotate_field_name_end, annotate_field_value): Ditto.
670 (annotate_field_end, annotate_frame_source_begin): Ditto.
671 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
672 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
673 (annotate_frame_begin, annotate_frame_function_name): Ditto.
674 (annotate_frame_address_end, annotate_frame_address): Ditto.
675 (annotate_frame_args, annotate_frame_end): Ditto.
676 (annotate_frame_where, annotate_arg_begin): Ditto.
677 (annotate_arg_name_end, annotate_arg_value): Ditto.
678 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
679 (annotate_function_call, annotate_signal_name): Ditto.
680 (annotate_signal_string, annotate_signal_name_end): Ditto.
681 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
682 (annotate_value_begin, annotate_value_history_value): Ditto.
683 (annotate_value_history_end, annotate_value_end): Ditto.
684 (annotate_display_begin, annotate_display_number_end): Ditto.
685 (annotate_display_format, annotate_display_expression): Ditto.
686 (annotate_display_expression_end, annotate_display_value): Ditto.
687 (annotate_display_end, annotate_array_section_begin): Ditto.
688 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
689 (annotate_elt, annotate_array_section_end): Ditto.
690
bb1db049
AC
6912003-07-28 Andrew Cagney <cagney@redhat.com>
692
693 * regcache.c (struct regcache_descr): Update comments on
694 nr_raw_registers.
695 (init_legacy_regcache_descr): Don't set nr_raw_registers or
696 sizeof_raw_register_valid_p.
697 (init_regcache_descr): Set nr_raw_registers and
698 sizeof_raw_register_valid_p before calling
699 init_legacy_regcache_descr.
700
20e6603c
AC
7012003-07-28 Andrew Cagney <cagney@redhat.com>
702
703 * mips-tdep.c (print_gp_register_row): Print the GPR's register
704 MOD NUM_REGS.
705
db742940
DJ
7062003-07-28 Daniel Jacobowitz <drow@mvista.com>
707
708 * thread.c (info_threads_command): Use get_selected_frame ().
709 Check that there is at least one non-sentinel frame.
710
ce7f4371
SC
7112003-07-27 Stephane Carrez <stcarrez@nerim.fr>
712
713 * m68hc11-tdep.c (struct frame_extra_info): Remove.
714 (m68hc11_pop_frame): Remove.
715 (m68hc11_frame_saved_pc): Remove.
716 (m68hc11_frame_chain): Remove.
717 (m68hc11_frame_init_saved_regs): Remove.
718 (m68hc11_init_extra_frame_info): Remove.
719 (m68hc11_store_struct_return): Remove.
720 (m68hc11_saved_pc_after_call): Remove.
721
1ea653ae
SC
7222003-07-27 Stephane Carrez <stcarrez@nerim.fr>
723
724 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
725 frame unwind information.
726 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
727 and adapted for frame unwinding.
728 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
729 (m68hc11_unwind_pc): New function.
730 (m68hc11_frame_unwind_cache): New function to analyze frames.
731 (m68hc11_frame_this_id): New function to create new frame struct.
732 (m68hc11_frame_prev_register): New function to unwind a register from
733 the frame.
734 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
735 (m68hc11_frame_p): New function for the above.
736 (m68hc11_frame_base_address): New function to return fp of frame.
737 (m68hc11_frame_args_address): Update for frame.
738 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
739 (m68hc11_unwind_sp): New function.
740 (m68hc11_unwind_dummy_id): New function.
741 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
742 calls.
743
c8a7f6ac
SC
7442003-07-27 Stephane Carrez <stcarrez@nerim.fr>
745
746 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
747 (m68hc11_guess_from_prologue): Advance the pc and frame size only
748 when we are beyond the current pc.
749
3dc990bf
SC
7502003-07-27 Stephane Carrez <stcarrez@nerim.fr>
751
752 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
753 from m68hc11_push_arguments.
754 (m68hc11_push_arguments): Remove.
755 (m68hc11_push_return_address): Remove.
756 (m68hc11_gdbarch_init): Install the above; remove above deprecated
757 handlers; remove deprecated_extra_stack_alignment_needed.
758
222e5d1d
AC
7592003-07-27 Andrew Cagney <cagney@redhat.com>
760
761 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
762 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
763 REAL_PC and not the pointer.
764 * hppa-hpux-tdep.c: Include frame.h
765
a7e9a47e
AC
7662003-07-27 Andrew Cagney <cagney@redhat.com>
767
768 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
769 GDB_MULTI_ACH_PARTIAL.
770
7e3dd49e
AC
7712003-07-27 Andrew Cagney <cagney@redhat.com>
772
773 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
774 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
775 operator at start and not end of line.
776 (decode_prologue): Ditto.
777 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
778 frame_unwind_register_unsigned instead of
779 frame_unwind_unsigned_register.
780 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
781 read_register.
782 (m32r_push_dummy_call): Use register_size instead of
783 REGISTER_RAW_SIZE.
784 (m32r_frame_sniffer): Replace m32r_frame_p.
785 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
786 * m32r-rom.c (report_transfer_performance): Delete extern
787 declaration.
788 (m32r_load, m32r_upload_command): Use print_transfer_performance
789 instead of report_transfer_performance.
790 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
791 / add_show_from_set.
792
0880807f
AC
7932003-07-26 Andrew Cagney <cagney@redhat.com>
794
795 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
796 store_return_value and extract_struct_value_address.
797
64ae9269
DJ
7982003-07-26 Daniel Jacobowitz <drow@mvista.com>
799
800 PR c++/1267
801 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
802 NULL, default to the section containing PC.
803
e286caf2
SC
8042003-07-24 Stephane Carrez <stcarrez@nerim.fr>
805
806 * NEWS: Mention "regs" deprecated for m68hc11 too.
807
808 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
809 (m68hc11_print_register): New function to print out one register.
810 (m68hc11_print_registers_info): New function to print registers.
811 (show_regs): Deprecate and use the above.
812 (m68hc11_gdbarch_init): Install the print_registers_info.
813
705b278b
JJ
8142003-07-24 Jeff Johnston <jjohnstn@redhat.com>
815
816 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
817 that we have a SIGTRAP before returning non-zero.
818
63cd4198
EZ
8192003-07-23 Michal Ludvig <mludvig@suse.cz>
820 Elena Zannoni <ezannoni@redhat.com>
821
822 * linespec.c (decode_line_2): Avoid crash if
823 find_function_start_sal() returns empty record.
824
6926787d
AS
8252003-07-23 Andreas Schwab <schwab@suse.de>
826
827 * ia64-tdep.c (ia64_print_insn): New function.
828 (ia64_gdbarch_init): Set print_insn to it.
829 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
830 deprecated_tm_print_insn_info.
831
708cc1b6
MS
8322003-07-22 Michael Snyder <msnyder@redhat.com>
833
834 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
835 handle 8-bit returns (long long).
836 (h8300h_extract_return_value): Ditto.
837 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
838
aebd7893
AC
8392003-07-22 Andrew Cagney <cagney@redhat.com>
840
841 * gdbarch.c Include "gdb_obstack.h".
842 (struct gdbarch): Add an "obstack".
843 (alloc_gdbarch_data): Allocate the gdbarch data using
844 GDBARCH_OBSTACK_CALLOC.
845 (free_gdbarch_data): Delete function.
846 (gdbarch_obstack_zalloc): New function.
847 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
848 Assert that the architecture is not initialized.
849 (gdbarch_alloc): Allocate an obstack, allocate the architecture
850 vector from the obstack.
851 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
852 architecture obstack.
853 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
854 (set_gdbarch_data): Assert that the data is not initialized.
855 (struct gdbarch_data): Delete member "free".
856 (register_gdbarch_data): Do not initialize "free".
857 * gdbarch.h, gdbarch.c: Re-generate.
858
153721e6
AC
8592003-07-22 Andrew Cagney <cagney@redhat.com>
860
861 * configure.in (build_warnings): Add -Wformat-nonliteral.
862 * configure: Re-generate.
863
c193f044 8642003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
865
866 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 867
c3228f12
EZ
8682003-07-22 Elena Zannoni <ezannoni@redhat.com>
869
870 * findvar.c (read_var_value): Remove case for thread local storage
871 variables. It is now entirely handled by the dwarf2 location
872 expression code.
873 * printcmd.c (address_info): Ditto.
874 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
875 enumeration value.
876 (struct symbol): Remove objfile field, which was used by
877 LOC_THREAD_LOCAL_STATIC only.
878 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
879 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
880 usage of objfile pointer.
881 * dwarf2loc.c (locexpr_describe_location): Add case to handle
882 thread local variables.
883 Add include of objfiles.h.
884 * dwarf2expr.c (execute_stack_op): Add comments about thread local
885 storage variables.
886 * Makefile.in (dwarf2loc.o): Update dependencies.
887
aef9bcd2
AC
8882003-07-22 Andrew Cagney <cagney@redhat.com>
889
890 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
891 get_frame_base.
892 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
893 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
894 (struct value): Add opaque declaration.
895 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
896
d95a8903
AC
8972003-07-21 Andrew Cagney <cagney@redhat.com>
898
899 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
900 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
901
4db73d49
SC
9022003-07-20 Stephane Carrez <stcarrez@nerim.fr>
903
904 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
905 regcache_cooked_read_unsigned instead of read_register.
906 (m68hc11_saved_pc_after_call): Likewise.
907 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
908 instead of write_register.
909 (m68hc11_register_type): New function.
910 (m68hc11_register_virtual_type): Remove.
911 (m68hc11_store_return_value): Convert to use the regcache.
912 (m68hc11_extract_struct_value_address): Likewise.
913 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
914 m68hc11_register_type; undeprecate store_return_value and
915 extract_struct_value_address.
916
ef2b8fcd
SC
9172003-07-20 Stephane Carrez <stcarrez@nerim.fr>
918
919 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
920 and translate to use regcache.
921 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
922
625b0b97
AC
9232003-07-18 Andrew Cagney <cagney@redhat.com>
924
925 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
926 * gdbarch.h, gdbarch.c: Re-generate.
927 * i386-tdep.c (i386_gdbarch_init): Do not set
928 DWARF2_BUILD_FRAME_INFO.
929 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
930 unconditionally.
931 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
932 DWARF2_BUILD_FRAME_INFO.
933
22b0d388
AC
9342003-07-18 Andrew Cagney <cagney@redhat.com>
935
936 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
937 * disasm.c (gdb_disassemble_info): Initilize di.arch.
938
1ce5d6dd
AC
9392003-07-18 Andrew Cagney <cagney@redhat.com>
940
941 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
942 frame_unwind_address_in_block, instead of frame_pc_unwind.
943 (dwarf2_frame_cache): Ditto.
944
e6e5e94c
AC
9452003-07-18 Andrew Cagney <cagney@redhat.com>
946
947 * user-regs.h (struct gdbarch): Declare opaque.
948 * ui-out.h (struct ui_file): Declare opaque.
949 * dwarf2-frame.h (struct frame_info): Declare opaque.
950
5483d879
KW
9512003-07-18 Kris Warkentin <kewarken@qnx.com>
952
953 * nto-procfs.c: Clean ARI hits. Change #include <..> to
954 #include "...".
955 (procfs_meminfo): Change strerror to safe_strerror.
956 (procfs_can_run): Remove K&R badness.
957
278a7cf7
MS
9582003-07-17 Michael Snyder <msnyder@redhat.com>
959
960 * remote-sim.c: Comment typo fix.
961
606e3b82
AC
9622003-07-17 Andrew Cagney <cagney@redhat.com>
963
964 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
965 configure.
966 * sparc-tdep.c (sparc_intreg_size): Make non-static.
967 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
968 GDB_MULTI_ARCH_PARTIAL.
969
c43af07c
EZ
9702003-07-17 Elena Zannoni <ezannoni@redhat.com>
971
972 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
973 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
974 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
975
3b85b0f1
TR
9762003-07-16 Theodore A. Roth <troth@openavr.org>
977
978 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
979 found.
980 (avr_frame_unwind_cache): Don't unwind FP for main.
981 Update a comment.
982 Save the computed prev_sp.
983 (avr_saved_regs_unwinder): Remove function.
984 (avr_frame_prev_register): Use PC unwind logic from
985 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
986
336d1bba
AC
9872003-07-16 Andrew Cagney <cagney@redhat.com>
988
989 * frame-base.h (frame_base_p_ftype): Delete definition.
990 (frame_base_append_predicate): Delete declaration.
991 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
992 (frame_unwind_append_predicate): Delete declaration.
993 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
994 (append_predicate): Delete parameter "p".
995 (frame_unwind_append_predicate): Delete function.
996 (frame_unwind_append_sniffer): Update call to append_predicate.
997 (frame_unwind_free): Delete function.
998 (_initialize_frame_unwind): Pass NULL as "free" to
999 register_gdbarch_data.
1000 (frame_unwind_init): Append the dummy_frame_sniffer.
1001 (frame_unwind_find_by_frame): Simplify.
1002 * frame-base.c (struct frame_base_table): Delete field "p".
1003 (append_predicate): Delete parameter "p".
1004 (frame_base_append_predicate): Delete function.
1005 (frame_base_append_sniffer): Update call to append_predicate.
1006 (frame_base_free): Delete function.
1007 (frame_base_find_by_frame): Simplify.
1008 (_initialize_frame_base): Pass NULL as "free" to
1009 register_gdbarch_data.
1010 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1011 (x86_64_sigtramp_frame_sniffer): Replace
1012 "x86_64_sigtramp_frame_p".
1013 (x86_64_init_abi): Set the frame unwind sniffers.
1014 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1015 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1016 (m68k_gdbarch_init): Set the frame unwind sniffers.
1017 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1018 "i386_sigtramp_frame_p".
1019 (i386_frame_sniffer): Replace "i386_frame_p".
1020 (i386_gdbarch_init): Set the frame unwind sniffers.
1021 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1022 (avr_gdbarch_init): Set the frame unwind sniffers.
1023 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1024 "alpha_sigtramp_frame_p"
1025 (alpha_heuristic_frame_sniffer): Replace
1026 "alpha_heuristic_frame_p".
1027 (alpha_gdbarch_init): Set the frame unwind sniffers.
1028 (alpha_dwarf2_init_abi): Ditto.
1029 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1030 "alpha_debug_frame_p".
1031 (alpha_mdebug_frame_base_sniffer): Replace
1032 "alpha_mdebug_frame_base_p".
1033 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1034 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1035 (d10v_gdbarch_init): Set the frame unwind sniffer.
1036 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1037 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1038 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1039 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1040 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1041 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1042
48db5a3c
CV
10432003-07-16 Michael Snyder <msnyder@redhat.com>
1044
1045 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1046 should go thru sh_dsp_register_sim_regno, else the dsp regs
1047 will not get the right values.
1048
10492003-07-16 Corinna Vinschen <vinschen@redhat.com>
1050
1051 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1052 deprecated_store_floating by call to store_typed_floating.
1053 (sh_sh4_register_convert_to_raw): Substitute call to
1054 deprecated_extract_floating by call to extract_typed_floating.
1055
10562003-07-16 Corinna Vinschen <vinschen@redhat.com>
1057
1058 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1059
10602003-07-16 Corinna Vinschen <vinschen@redhat.com>
1061
1062 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1063 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1064 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1065 as possible.
1066 (do_pseudo_register): Remove.
1067 (sh_push_dummy_code): New function.
1068 (sh64_store_struct_return): Rename from sh_store_struct_return.
1069 Only called for sh64 now.
1070 (sh_extract_struct_value_address): Regcache'ify.
1071 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1072 and accomodate new tasks.
1073 (sh64_push_return_address): Rename from sh_push_return_address.
1074 Only called for sh64 now.
1075 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1076 Regcache'ify.
1077 (sh3e_sh4_extract_return_value): Regcache'ify.
1078 (sh_default_store_return_value): Ditto.
1079 (sh3e_sh4_store_return_value): Ditto.
1080 (sh_default_register_byte): Remove.
1081 (sh_sh4_register_byte): Remove.
1082 (sh_default_register_raw_size): Remove.
1083 (sh_sh4_register_raw_size): Remove.
1084 (sh_register_virtual_size): Remove.
1085 (sh_sh3e_register_virtual_type): Remove.
1086 (sh_sh3e_register_type): New function.
1087 (sh_sh4_register_virtual_type): Remove.
1088 (sh_sh4_register_type): New function.
1089 (sh_default_register_virtual_type): Remove.
1090 (sh_default_register_type): New function.
1091 (do_fv_register_info): Add parameters to accomodate call from
1092 sh_print_registers_info.
1093 (do_dr_register_info): Ditto.
1094 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1095 Add parameters to accomodate call from sh_print_registers_info.
1096 (sh_do_fp_register): Ditto.
1097 (sh64_do_pseudo_register): Call do_dr_register_info,
1098 do_fv_register_info and sh_do_fp_register with default parameters.
1099 (sh_do_register): Add parameters to accomodate call from
1100 sh_print_registers_info.
1101 (sh_print_register): Ditto.
1102 (sh_print_registers_info): Rename from sh_do_registers_info.
1103 Add parameters to be used as gdbarch_print_registers_info
1104 implementation. Accomodate removed do_pseudo_register function
1105 pointer.
1106 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1107 function pointer. Call sh_print_register with default parameters.
1108 (sh64_do_registers_info): Call sh_print_registers_info instead of
1109 sh_do_registers_info.
1110 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1111 detection of deprecated vs. non-deprecated functionality.
1112 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1113 function pointer assignments by direct function calls.
1114
e8a89fe2
AC
11152003-07-15 Andrew Cagney <cagney@redhat.com>
1116
1117 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1118 (frame_register_unwind, create_new_frame): Ditto.
1119 (legacy_get_prev_frame, get_frame_type): Ditto.
1120 (get_frame_base_address): Use frame_base_find_by_frame.
1121 (get_frame_locals_address): Use frame_base_find_by_frame.
1122 (get_frame_args_address): Use frame_base_find_by_frame.
1123 * frame-base.h (frame_base_sniffer_ftype): Declare.
1124 (frame_base_append_sniffer): Declare.
1125 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1126 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1127 (frame_base_append_sniffer): New function.
1128 (frame_base_append_predicate): Add a NULL sniffer.
1129 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1130 (struct frame_base_table): Add "sniffer".
1131 (frame_base_free): Free the "sniffer" table.
1132 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1133 (frame_unwind_append_sniffer): Declare.
1134 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1135 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1136 (struct frame_unwind_table): Add "sniffer", delete "middle".
1137 (append_predicate): Add "sniffer" parameter, append the sniffer.
1138 (frame_unwind_init): Update append_predicate call.
1139 (frame_unwind_append_sniffer): New function.
1140 (frame_unwind_append_predicate): Update append_predicate call.
1141 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1142
0714963c
AC
11432003-07-15 Andrew Cagney <cagney@redhat.com>
1144
1145 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1146 before code inhibiting repeated unwind attempts. Add to
1147 commentary on that test's problems.
1148 * blockframe.c (inside_main_func): Look for "main" in the minimal
1149 symbol table.
1150 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1151 identical.
1152
d9170e22
AC
11532003-07-15 Andrew Cagney <cagney@redhat.com>
1154
1155 * complaints.c (struct explanation): Define.
1156 (struct complaints): Change type of "explanation" to "struct
1157 explanation".
1158 (symfile_explanations): Convert to a "struct explanation" table.
1159 (vcomplaint): Update.
1160
eba29c8c
ML
11612003-07-15 Michal Ludvig <mludvig@suse.cz>
1162
1163 * x86-64-linux-nat.c (regmap): Removed.
1164 (supply_gregset, fill_gregset): Call
1165 x86_64_linux_(fill,supply)_gregset functions.
1166 * x86-64-linux-tdep.c (USER_*): New defines.
1167 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1168 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1169 New functions.
1170 (fetch_core_registers): Ditto.
1171 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1172 * x86-64-linux-tdep.h: New file.
1173 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1174 and core-regset.o.
1175 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1176
68cc0bfb
MK
11772003-07-13 Mark Kettenis <kettenis@gnu.org>
1178
88a115f7
MK
1179 * x86-64-tdep.c (x86_64_store_return_value): Use
1180 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1181
68cc0bfb
MK
1182 * configure.host: Add x86_64-*-freebsd*.
1183 * configure.tgt: Add x86_64-*-freebsd*.
1184 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1185 * amd64fbsd-nat.c: New file.
1186 * amd64fbsd-tdep.c: New file.
1187 * config/i386/nm-fbsd64.h: New file.
1188 * config/i386/fbsd64.mh: New file.
1189 * config/i386/fbsd64.mt: New file.
1190
138e7be5
MK
11912003-07-11 Mark Kettenis <kettenis@gnu.org>
1192
1193 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1194 `sc_regs_offset' and `sc_fpregs_offset'.
1195 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1196 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1197 (alpha_sigtramp_register_address): Rewrite to use new members of
1198 `struct gdbarch_tdep'.
1199 (alpha_gdbarch_init): Initialize new members of struct
1200 gdbarch_tdep'.
1201 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1202 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1203 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1204 (alphafbsd_pc_in_sigtramp): Implement.
1205 (alphafbsd_sigtramp_offset): New function.
1206 (alphafbsd_sigcontext_addr): New function.
1207 (alphafbsd_init_abi): Initialize signal trampoline related members
1208 of `struct gdbarch_tdep'.
1209 (_initialize_alphafbsd_tdep): Add prototype.
1210
95303a68
TR
12112003-07-11 Theodore A. Roth <troth@openavr.org>
1212
ba292e4c
TR
1213 * Makefile.in (install-only): Quote sed expression when generating
1214 transformed_name.
95303a68 1215
6896c0c7
RH
12162003-07-11 Richard Henderson <rth@redhat.com>
1217
1218 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1219 * dwarf2-frame.c: Include complaints.h.
1220 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1221 variable initialization; return NULL on error.
1222 (decode_frame_entry): New.
1223
8edd5d01
AC
12242003-07-11 Andrew Cagney <cagney@redhat.com>
1225
c4a09524
AC
1226 * frame.h (frame_address_in_block): Delete declaration.
1227 * blockframe.c (frame_address_in_block): Delete function.
1228 (get_frame_block): Use get_frame_address_in_block.
1229 (block_innermost_frame): Ditto.
1230 * stack.c (print_frame, backtrace_command_1): Ditto.
1231
8edd5d01
AC
1232 * frame.h (get_frame_address_in_block): Declare.
1233 (frame_unwind_address_in_block): Declare.
1234 * frame.c (frame_unwind_address_in_block): New function.
1235 (get_frame_address_in_block): New function.
1236
f7968451
AC
12372003-07-10 Andrew Cagney <cagney@redhat.com>
1238
1239 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1240 pre-default. Note: re-generate has no effect.
1241
ae99b398
AC
12422003-07-10 Andrew Cagney <cagney@redhat.com>
1243
1244 * gdbarch.sh: When a variable, but not a function, compare against
1245 0. Fix problem in previous patch.
1246 * gdbarch.c: Re-generate.
1247
956ac328
AC
12482003-07-10 Andrew Cagney <cagney@redhat.com>
1249
1250 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1251 functions against NULL, not 0.
1252 * gdbarch.c: Re-generate.
1253
287c3240
FF
12542003-07-10 Fred Fish <fnf@ninemoons.com>
1255
1256 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1257 null string instead of a null pointer.
1258 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1259
32f63c4b
MS
12602003-07-09 Michael Snyder <msnyder@redhat.com>
1261
1262 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1263
402ecd56
MK
12642003-07-09 Mark Kettenis <kettenis@gnu.org>
1265
1266 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1267 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1268 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1269 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1270 * x86-64-tdep.c: ... from here.
1271
c481dac7
AS
12722003-07-09 Andreas Schwab <schwab@suse.de>
1273
1274 * m68k-tdep.h (enum struct_return): Define.
1275 (struct gdbarch_tdep): Add struct_return.
1276 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1277 bytes are padded to the right, not to the left. Pass struct value
1278 address in register %a1, not on stack.
1279 (m68k_use_struct_convention): New function.
1280 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1281 struct_return in tdep to pcc_struct_return.
1282 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1283 reg_struct_return.
1284
64176fa3
JB
12852003-07-09 Joel Brobecker <brobecker@gnat.com>
1286
1287 * somread.c (som_symfile_offsets): Fix compilation error.
1288
96a4ee76
AC
12892003-07-09 Andrew Cagney <cagney@redhat.com>
1290
1291 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1292 Add comments about the checks.
1293
1517c6d1
AC
12942003-07-08 Andrew Cagney <cagney@redhat.com>
1295
1296 * Makefile.in: Make dependency section headers consistent.
1297 (config_h): Move to $BUILD headers section.
1298 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1299 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1300 (ada-exp.tab.c): Move to YACC/LEX section.
1301 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1302 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1303
dc5dd1eb
KW
13042003-07-08 Kris Warkentin <kewarken@qnx.com>
1305
1306 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1307 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1308 of strerror with safe_strerror, use ISO C function definitions,
1309 and replace instances of sprintf with snprintf.
dc5dd1eb 1310
612dde91
AC
13112003-07-07 Andrew Cagney <cagney@redhat.com>
1312
1313 * frame.c (get_prev_frame): Enable check for identical frames.
1314 Update comments. Update error messages.
1315
492c11d3
JB
13162003-07-07 Joel Brobecker <brobecker@gnat.com>
1317
1318 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1319
376a5a49
JB
13202003-07-07 Joel Brobecker <brobecker@gnat.com>
1321
1322 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1323 sort_symtab_syms, no longer necessary.
1324
22b4a9ad
JB
13252003-07-07 Joel Brobecker <brobecker@gnat.com>
1326
1327 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1328
5bbcb741
JB
13292003-07-07 Joel Brobecker <brobecker@gnat.com>
1330
1331 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1332 (mips_register_byte): Likewise.
1333
c139e7d9
DJ
13342003-07-07 Daniel Jacobowitz <drow@mvista.com>
1335
1336 * Makefile.in (sparc_tdep_h): New.
1337 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1338 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1339 * sparc-linux-nat.c: Include "sparc-tdep.h".
1340 * sparc-nat.c: Likewise.
1341 * sparc-tdep.c: Likewise.
1342 * sparc64nbsd-nat.c: Likewise.
1343 * sparcnbsd-nat.c: Likewise.
1344 * sparcnbsd-tdep.c: Likewise.
1345 * sparc-tdep.h: New file.
1346 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1347 and sparc_npc_regnum.
1348
fd8f87c5
DJ
13492003-07-07 Daniel Jacobowitz <drow@mvista.com>
1350
1351 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1352 (mips_linux_cannot_store_register): List supported instead of
1353 unsupported registers.
1354
13adf674
DJ
13552003-07-07 Daniel Jacobowitz <drow@mvista.com>
1356
1357 * disasm.c (dump_insns): Separate instructions from addresses.
1358
8de307e0
AS
13592003-07-07 Andreas Schwab <schwab@suse.de>
1360
1361 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1362 dependencies.
1363 * m68k-tdep.c (NUM_FREGS): Delete.
1364 (SIG_PC_FP_OFFSET): Delete.
1365 (TARGET_M68K): Delete.
1366 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1367 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1368 P_MOVEL_SP, P_MOVEML_SP): Define.
1369 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1370 P_TRAP): Delete.
1371 (m68k_register_raw_size): Delete.
1372 (m68k_register_virtual_size): Delete.
1373 (m68k_register_type): Renamed from m68k_register_virtual_type and
1374 add gdbarch argument.
1375 (m68k_store_struct_return): Delete.
1376 (m68k_deprecated_extract_return_value): Delete.
1377 (m68k_deprecated_extract_struct_value_address): Delete.
1378 (m68k_frame_chain): Delete.
1379 (m68k_frame_saved_pc): Delete.
1380 (m68k_fix_call_dummy): Delete.
1381 (m68k_push_dummy_frame): Delete.
1382 (m68k_pop_frame): Delete.
1383 (m68k_extract_return_value): New function.
1384 (m68k_store_return_value): Rewrite using regcache.
1385 (m68k_extract_struct_value_address): Rewrite using regcache.
1386 (m68k_push_dummy_call): New function.
1387 (struct m68k_frame_cache): Define.
1388 (m68k_alloc_frame_cache): New function.
1389 (m68k_analyze_frame_setup): New function.
1390 (m68k_analyze_register_saves): New function.
1391 (m68k_analyze_prologue): New function.
1392 (m68k_skip_prologue): Rewrite using above functions.
1393 (m68k_unwind_pc): New function.
1394 (m68k_frame_cache): New function.
1395 (m68k_frame_this_id): New function.
1396 (m68k_frame_prev_register): New function.
1397 (m68k_frame_unwind): New variable.
1398 (m68k_frame_p): New function.
1399 (m68k_sigtramp_frame_cache): New function.
1400 (m68k_sigtramp_frame_this_id): New function.
1401 (m68k_sigtramp_frame_prev_register): New function.
1402 (m68k_sigtramp_frame_unwind): New variable.
1403 (m68k_sigtramp_frame_p): New function.
1404 (m68k_frame_base_address): New function.
1405 (m68k_frame_base): New function.
1406 (m68k_unwind_dummy_id): New function.
1407 (fill_gregset): Use regcache_collect.
1408 (fill_fpregset): Likewise.
1409 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1410 defined.
1411 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1412 deprecated_init_frame_pc, deprecated_store_struct_return,
1413 deprecated_extract_return_value, deprecated_store_return_value,
1414 deprecated_frame_chain, deprecated_frame_saved_pc,
1415 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1416 deprecated_register_virtual_size,
1417 deprecated_max_register_raw_size,
1418 deprecated_max_register_virtual_size,
1419 deprecated_register_virtual_type, deprecated_register_size,
1420 deprecated_register_byte, deprecated_register_bytes,
1421 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1422 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1423 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1424 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1425 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1426 deprecated_push_dummy_frame, deprecated_pop_frame,
1427 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1428 only if SYSCALL_TRAP is defined. Set extract_return_value,
1429 store_return_value, extract_struct_value_address, register_type,
1430 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1431 predicates.
1432 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1433 M68K_MAX_REGISTER_SIZE): Define.
1434 (struct m68k_sigtramp_info): Define.
1435 (struct gdbarch_tdep): Add get_sigtramp_info.
1436 * m68klinux-nat.c (fetch_register): Use register_size instead of
1437 REGISTER_RAW_SIZE. Don't put assignment in if.
1438 (store_register): Likewise.
1439 (fetch_inferior_registers): Likewise.
1440 (store_inferior_registers): Likewise.
1441 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1442 (m68k_linux_frame_saved_pc): Delete.
1443 (m68k_linux_sigcontext_reg_offset,
1444 m68k_linux_ucontext_reg_offset): Define.
1445 (m68k_linux_get_sigtramp_info): New function.
1446 (m68k_linux_extract_return_value): Rewrite using regcache.
1447 (m68k_linux_store_return_value): Likewise.
1448 (m68k_linux_extract_struct_value_address): Likewise.
1449 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1450 Don't set deprecated_frame_saved_pc,
1451 deprecated_extract_return_value, deprecated_store_return_value,
1452 deprecated_extract_struct_value_address. Set
1453 extract_return_value, store_return_value,
1454 extract_struct_value_address.
1455
eb8bc282
AC
14562003-07-07 Andrew Cagney <cagney@redhat.com>
1457
1458 * expprint.c: Include "user-regs.h" instead of "frame.h".
1459 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1460 frame_map_regnum_to_name.
1461 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1462 (frame_map_name_to_regnum): Simplify, call
1463 user_reg_map_name_to_regnum.
1464 (frame_map_regnum_to_name): Simplify, call
1465 user_reg_map_regnum_to_name.
1466 (frame_register_unwind): Update.
1467 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1468 (_initialize_frame_reg): Call user_reg_add_builtin.
1469 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1470 (value_of_register): Use value_of_user_reg.
1471 * eval.c (evaluate_subexp_standard): Update.
1472 * parse.c (write_dollar_variable): Update.
1473 * d10v-tdep.c (d10v_print_registers_info): Update.
1474 * infcmd.c (registers_info): Update.
1475 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1476 (builtin_regs_h): Delete macro.
1477 (user_regs_h): Define.
1478 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1479 (builtin-regs.o): Delete target.
1480 (user-regs.o): Specify dependencies.
1481 (expprint.o): Update dependencies.
1482 (findvar.o): Update dependencies.
1483 (frame.o): Update dependencies.
1484 (std-regs.o): Update dependencies.
1485
9f476a01
CF
14862003-07-06 Christopher Faylor <cgf@redhat.com>
1487
1488 * win32-nat.c (solib_symbols_add): Use one variable for all section
1489 address stuff. Pass variable rather than address of variable to
1490 safe_symbol_file_add.
1491
a731b831
AS
14922003-07-06 Andreas Schwab <schwab@suse.de>
1493
1494 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1495
9f83329d
JB
14962003-07-04 Joel Brobecker <brobecker@gnat.com>
1497
1498 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1499
27e28cc5
KW
15002003-07-04 Kris Warkentin <kewarken@qnx.com>
1501
1502 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1503
15042003-07-04 Kris Warkentin <kewarken@qnx.com>
1505
1506 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1507 * config/i386/nto.mh: New file.
1508 * config/i386/nm-nto.h: New file.
1509 * configure.host: Add i[3456]86-*-nto*.
1510
100f2e98
JB
15112003-07-03 Joel Brobecker <brobecker@gnat.com>
1512
1513 * remote-vx.c (vx_add_symbols): Fix compilation error.
1514
e23457df
AC
15152003-07-03 Andrew Cagney <cagney@redhat.com>
1516
1517 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1518 * gdbarch.h, gdbarch.c: Re-generate.
1519 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1520 (legacy_register_name): Declare.
1521 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1522 (REGISTER_NAME): Define.
1523 * sparc-tdep.c (legacy_register_name): New function.
1524 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1525 (REGISTER_NAME): Define.
1526 (hppa64_register_name): Declare.
1527 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1528 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1529 (hppa64_register_name): New function.
1530 (hppa_register_name): New function.
1531 * arch-utils.c (legacy_register_name): Delete.
1532 * arch-utils.h (legacy_register_name): Delete.
1533
38caaeec
DJ
15342003-07-03 Daniel Jacobowitz <drow@mvista.com>
1535
1536 * cli/cli-interp.c (cli_interpreter_resume): Update the
1537 cli_uiout's stream to gdb_stdout.
1538
dadd712e
AC
15392003-07-03 Andrew Cagney <cagney@redhat.com>
1540
1541 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1542 predicate.
1543 * gdbarch.h, gdbarch.c: Re-generate.
1544 * regcache.c (init_regcache_descr): Use legacy code when either
1545 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1546
c7f1390e
DJ
15472003-07-02 Daniel Jacobowitz <drow@mvista.com>
1548
1549 * NEWS: Move "set logging" entry into GDB 6.0 section.
1550
4bc8c588
JB
15512003-07-02 Jim Blandy <jimb@redhat.com>
1552
a9dd42f1
JB
1553 * s390-tdep.c (struct frame_extra_info): new member:
1554 'stack_bought_valid'.
1555 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1556 initialize fextra_info->stack_bought.
1557 (s390_frameless_function_invocation): Don't trust the value of
1558 fextra_info_ptr->stack_bought unless
1559 fextra_info->stack_bought_valid is set.
1560
4bc8c588
JB
1561 New S390 prologue analyzer.
1562 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1563 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1564 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1565 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1566 compute_x_addr, s390_on_stack, s390_store,
1567 s390_get_signal_frame_info): New functions.
1568 (S390_NUM_SPILL_SLOTS): New macro.
1569 (s390_get_frame_info): Rewritten.
1570 (is_arg_reg): Deleted.
1571
1572 Break out the decoding of S/390 instructions into separate
1573 functions, to make it more legible, and easier to check
1574 against the spec.
1575 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1576 is_rx, is_rxe): New functions.
1577 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1578 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1579 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1580 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1581 enums for opcode values. (Is this an improvement?)
1582
fd13a04a
AC
15832003-07-02 Andrew Cagney <cagney@redhat.com>
1584
1585 * i386-tdep.c: Revert change committed as part of trad-frame code
1586 below.
1587
3f8091c1
DJ
15882003-07-02 Daniel Jacobowitz <drow@mvista.com>
1589
1590 * breakpoint.c (insert_catchpoint): Make static.
1591
8dd5115e
AS
15922003-07-02 Andreas Schwab <schwab@suse.de>
1593
1594 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1595 former ia64_push_arguments and ia64_push_return_address, and use
1596 regcache functions instead of read/write_register.
1597 (ia64_gdbarch_init): Set push_dummy_call instead of
1598 deprecated_push_arguments and deprecated_push_return_address.
1599
a2229c23
AJ
16002003-07-01 Andreas Jaeger <aj@suse.de>
1601
1602 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1603 before the call.
1604 Set %rax only to number of SSE registers used.
1605
3b3850e8
AC
16062003-07-01 Andrew Cagney <cagney@redhat.com>
1607
1608 * trad-frame.h: Update comments, a -1 .addr is reserved.
1609 (trad_frame_value_p, trad_frame_addr_p): Declare.
1610 (trad_frame_reg_p): Declare.
1611 (trad_frame_set_value): Rename trad_frame_register_value.
1612 (trad_frame_set_unknown): Declare.
1613 * trad-frame.c (trad_frame_realreg_p): New function.
1614 (trad_frame_addr_p, trad_frame_value_p): New function.
1615 (trad_frame_set_unknown): New function.
1616 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1617 (trad_frame_prev_register): Use trad_frame_realreg_p,
1618 trad_frame_addr_p and trad_frame_value_p.
1619 (trad_frame_set_value): Rename trad_frame_register_value.
1620 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1621 and trad_frame_set_value.
a2229c23 1622
4d819d0e
JB
16232003-06-30 Jim Blandy <jimb@redhat.com>
1624
1625 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1626 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1627 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1628 for 16 registers, and then 32 more bytes.
1629 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1630 New macros.
1631 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1632 Move up in the file, since it's now used by is_simple_arg.
1633 (is_simple_arg): Don't assume registers are four bytes long.
1634 Exclude all double arguments. Extended floats are not simple
1635 args.
1636 (is_power_of_two): New function.
1637 (pass_by_copy_ref): Call is_power_of_two, and check that the
1638 length fits in a register, rather than listing all the acceptable
1639 sizes. Extended floats are not passed by reference.
1640 (s390_push_arguments): Don't assume registers are four bytes long.
1641 Reserve an argument register to point to the buffer for structures
1642 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1643 S390_STACK_FRAME_OVERHEAD.
1644
1ad828f1
AS
16452003-06-30 Andreas Schwab <schwab@suse.de>
1646
1647 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1648 format error message.
1649
39b00981
JB
16502003-06-30 Joel Brobecker <brobecker@gnat.com>
1651
1652 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1653
b2a7f303
DC
16542003-06-30 David Carlton <carlton@kealia.com>
1655
1656 Band-aid for PR c++/1245.
1657 * Makefile.in (cp-support.o): Depend on complaints_h.
1658 * cp-support.c: Include complaints.h. Add declaration for
1659 find_last_component.
1660 (cp_find_first_component): Separate code into
1661 cp_find_first_component_aux.
1662 (cp_find_first_component_aux): Call demangled_name_complaint.
1663 (demangled_name_complaint): New.
1664
a257b5bb
AC
16652003-06-30 Andrew Cagney <cagney@redhat.com>
1666
1667 * remote.c (remote_write_bytes): Explicitly compute and then use
1668 the payload size. Update comments to reflect. Fixes problem of
1669 GDB not sending small packets as found by Fred Fish.
1670
0a2cfde4
AC
16712003-06-30 Andrew Cagney <cagney@redhat.com>
1672
1673 * remote.c (remote_async_wait): Fix -Wformat problem.
1674
3fcb8548
AC
16752003-06-29 Andrew Cagney <cagney@redhat.com>
1676
1677 * remote.c (remote_wait): Call error, and not warning, when the
1678 packet is corrupt.
1679 (remote_async_wait): Ditto.
1680
9f9970a3
DJ
16812003-06-29 Daniel Jacobowitz <drow@mvista.com>
1682
1683 * sparc-tdep.c (sparc_y_regnum): Make external again.
1684
83a8ccca
DJ
16852003-06-29 Daniel Jacobowitz <drow@mvista.com>
1686
1687 * cli/cli-logging.c (pop_output_files): Add void to function
1688 definition.
1689
d2cf594a
AC
16902003-06-29 Andrew Cagney <cagney@redhat.com>
1691
1692 * frame.c (frame_register_unwind): Use unsigned char when dumping
1693 the buffer contents.
1694
0fac0b41
DJ
16952003-06-28 Daniel Jacobowitz <drow@mvista.com>
1696
1697 * cli/cli-logging.c: New file.
1698 * cli-out.c (struct ui_out_data): Add original_stream.
1699 (cli_redirect): New function.
1700 (cli_ui_out_impl): Add cli_redirect.
1701 (cli_out_new): Initialize original_stream.
1702 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1703 (uo_redirect, ui_out_redirect): New.
1704 * ui-out.h (struct ui_out_impl): Add redirect member.
1705 (redirect_ftype): New.
1706 (ui_out_redirect): Add prototype.
1707 * Makefile.in: Add rules for cli-logging.c.
1708 * NEWS: Mention "set logging".
1709
88a07d7c
EZ
17102003-06-27 Elena Zannoni <ezannoni@redhat.com>
1711
1712 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1713
4eb58876
AC
17142003-06-27 Andrew Cagney <cagney@redhat.com>
1715
1716 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1717 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1718 * avr-tdep.c (avr_call_dummy_address): Delete function.
1719 (avr_gdbarch_init): Do not set call_dummy_address.
1720
1549f619
EZ
17212003-06-27 Elena Zannoni <ezannoni@redhat.com>
1722
1723 * symfile.c (syms_from_objfile): Move variables to inner block.
1724 Move the checks for the non-mainline case a bit earlier to avoid
1725 doing some useless computations.
1726
3cb3398d
EZ
17272003-06-27 Elena Zannoni <ezannoni@redhat.com>
1728
1729 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1730
3799ccc6
EZ
17312003-06-26 Elena Zannoni <ezannoni@redhat.com>
1732
1733 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1734 sections.
1735
ce1f6491
MC
17362003-06-26 Michael Chastain <mec@shout.net>
1737
1738 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1739 gdb/testsuite/gdb.c++/pr-1210.exp.
1740
d958dfd0
AC
17412003-06-26 Andrew Cagney <cagney@redhat.com>
1742
1743 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1744 altivec_expression.h and altivec_registers.h.
1745
d31431ed
AC
17462003-06-26 Andrew Cagney <cagney@redhat.com>
1747
1748 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1749 info->mach when MIPS16. Patch suggested by Fred Fish.
1750
714b1282
AC
17512003-06-26 Andrew Cagney <cagney@redhat.com>
1752
1753 * utils.c (internal_vproblem): Print the problem to a reason
1754 buffer and then pass to query. Make the msg variable more local.
1755
42efa47a
AC
17562003-06-26 Andrew Cagney <cagney@redhat.com>
1757
1758 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1759 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1760 * gdbarch.h, gdbarch.c: Re-generate.
1761 * frame-base.c (default_frame_args_address): Update. Use
1762 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1763 not available.
1764 (default_frame_locals_address): Ditto for
1765 DEPRECATED_FRAME_LOCALS_ADDRESS.
1766 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1767 (vax_frame_num_args): Update.
1768 (vax_gdbarch_init): Update.
1769 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1770 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1771 * mcore-tdep.c (mcore_gdbarch_init): Update.
1772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1773 * ia64-tdep.c (ia64_gdbarch_init): Update.
1774 * symtab.h (address_class): Update comments.
1775 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1776 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1777 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1778 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1779 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1780 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1781 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1782 * alpha-mdebug-tdep.c: Update.
1783 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1784
8ffd9b1b
AJ
17852003-06-26 Andreas Jaeger <aj@suse.de>
1786
1787 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1788 of SSE registers so that varargs functions work. Rework handling
1789 of passing arguments on the stack.
1790 (x86_64_store_return_value): Return double and float values in SSE
1791 register.
1792
e8ac10a6
MC
17932003-06-24 Michael Chastain <mec@shout.net>
1794
1795 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1796 the "constructor breakpoints ignored" bug.
1797
986af8e6
DC
17982003-06-25 David Carlton <carlton@kealia.com>
1799
1800 * MAINTAINERS: Update e-mail address.
1801
d64558a5
JB
18022003-06-24 Jim Blandy <jimb@redhat.com>
1803
e538d2d7
JB
1804 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1805
02631ec0
JB
1806 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1807 function.
1808 (ppc_linux_init_abi): Register it as the
1809 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1810
e716d87a
JB
1811 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1812 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1813 method.
1814
d64558a5
JB
1815 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1816 (ppc64_standard_linkage_target): Use it.
1817
449a5da4
AC
18182003-06-23 Andrew Cagney <cagney@redhat.com>
1819
1820 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1821 for 0 "int0" and 4 "int32" sized registers.
1822 * gdbtypes.c (builtin_type_int0): Define.
1823 (build_gdbtypes): Initialize builtin_type_int0.
1824 * gdbtypes.h (builtin_type_int0): Declare.
1825
b2a02dda
SC
18262003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1827
1828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1829 as characters are unsigned.
1830
fba3138e
DJ
18312003-06-22 Daniel Jacobowitz <drow@mvista.com>
1832
1833 PR gdb/1179
1834 * dwarfread.c (struct_type): Skip static fields without crashing.
1835
f6c8180b
AC
18362003-06-22 Andrew Cagney <cagney@redhat.com>
1837
1838 GDB 6.0 branch created.
f2c06f52
AC
1839 * README: Update.
1840 * PROBLEMS: Update. Empty.
1841 * NEWS: Update.
f6c8180b 1842
ae822768
DJ
18432003-06-22 Daniel Jacobowitz <drow@mvista.com>
1844
1845 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1846 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1847
261de166
AC
18482003-06-22 Andrew Cagney <cagney@redhat.com>
1849
1850 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1851 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1852 Velikov.
1853
30e94205
DJ
18542003-06-22 Daniel Jacobowitz <drow@mvista.com>
1855
1856 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1857 compilers.
1858
9e14d721
DJ
18592003-06-21 Daniel Jacobowitz <drow@mvista.com>
1860
1861 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1862 argument of val_print.
1863 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1864 to the address argument of baseclass_offset or target_read_memory.
1865 Do add it to the argument of cp_print_value_fields.
1866
a4b8ebc8
AC
18672003-06-21 Andrew Cagney <cagney@redhat.com>
1868
1869 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1870 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1871 instead of 0..NUM_REGS.
1872 (mips_register_reggroup_p): New function.
1873 (mips_pseudo_register_write): New function.
1874 (mips_pseudo_register_read): New function.
1875 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1876 based on the register's type.
1877 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1878 cooked.
1879 (mips_get_saved_register): Simplify. Assert that REGNO is a
1880 pseudo / cooked.
1881 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1882 (mips_register_type): Replace mips_register_virtual_type. Map
1883 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1884 when available.
1885 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1886 that the register is cooked / virtual.
1887 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1888 Only get the extra info when needed.
1889 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1890 (mips32_heuristic_proc_desc): Fetch the cooked register.
1891 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1892 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1893 (mips_print_register): Use gdbarch_register_type, instead of
1894 REGISTER_VIRTUAL_TYPE.
1895 (print_gp_register_row): Use gdbarch_register_type, instead of
1896 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1897 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1898 Print the pseudo / cooked registers.
1899 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1900 Print the pseudo / cooked registers.
1901 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1902 REG_NUM is pseudo / cooked.
1903 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1904 (mips_n32n64_xfer_return_value): Ditto.
1905 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1906 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1907 (mips_register_sim_regno): New function.
1908 (mips_gdbarch_init): Set deprecated_register_byte,
1909 register_group_p, pseudo_register_write, pseudo_register_read,
1910 register_sim_regno, and num_pseudo_regs. Set register_type,
1911 instead of register_virtual_type.
1912 * Makefile.in (mips-tdep.o): Update dependencies.
1913 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1914 REGISTER_VIRTUAL_TYPE.
1915 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1916 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1917 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1918 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1919 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1920
325ed089
DJ
19212003-06-21 Daniel Jacobowitz <drow@mvista.com>
1922
1923 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1924 * cli/cli-cmds.c: Include "gdb_vfork.h".
1925 (shell_escape): Use vfork.
1926
f0e7d0e8
AC
19272003-06-21 Andrew Cagney <cagney@redhat.com>
1928
c57bb9fa
AC
1929 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1930 32 bit floating-point register saves.
1931
6e51443a
AC
1932 * frame.h (deprecated_unwind_get_saved_register): Delete.
1933 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1934 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1935 and deprecated_get_next_frame_hack instead of
1936 deprecated_unwind_get_saved_register.
1937
ed183c7c
AC
1938 * mips-tdep.c (mips_dump_tdep): Do not print
1939 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1940
f0e7d0e8
AC
1941 * frame.c (get_frame_register): New function.
1942 (frame_unwind_register_signed): New function.
1943 (get_frame_register_signed): New function.
1944 (frame_unwind_register_unsigned): New function.
1945 (get_frame_register_unsigned): New function.
1946 * frame.h: Add comments on naming schema.
1947 (get_frame_register, frame_unwind_register_signed): Declare.
1948 (get_frame_register_signed, get_frame_register_signed): Declare.
1949 (frame_unwind_register_unsigned): Declare.
1950 (get_frame_register_unsigned): Declare.
1951
2224d941
TR
19522003-06-20 Theodore A. Roth <troth@openavr.org>
1953
1954 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1955
8619218d
TR
19562003-06-20 Theodore A. Roth <troth@openavr.org>
1957
1958 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1959 (avr_read_sp): Ditto.
1960
0b1b50c0
DJ
19612003-06-20 Daniel Jacobowitz <drow@mvista.com>
1962
1963 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1964 * config/arm/nm-linux.h: Likewise.
1965 * config/arm/tm-linux.h: Likewise.
1966 * config/ia64/nm-linux.h: Likewise.
1967 * config/ia64/tm-ia64.h: Likewise.
1968 * config/s390/tm-linux.h: Likewise.
1969 * config/s390/tm-s390.h: Likewise.
1970 * s390-nat.c: Likewise.
1971 * s390-tdep.c: Likewise.
1972
1973 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1974 * config/ia64/linux.mt: Likewise.
1975 * config/m68k/linux.mh: Likewise.
1976 * config/mips/linux.mt: Likewise.
1977 * config/powerpc/linux.mh: Likewise.
1978 * config/sh/linux.mt: Likewise.
1979
c8c18e65
KW
19802003-06-19 Kris Warkentin <kewarken@qnx.com>
1981
1982 * solib.c (solib_open): Change tests for whether to search
1983 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1984 comments.
1985
dcccef2e
TR
19862003-06-19 Theodore A. Roth <troth@openavr.org>
1987
1988 * avr-tdep.c (avr_frame_address): Delete function.
1989 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1990 set_gdbarch_frame_args_address.
1991
5861a190
AC
19922003-06-19 Andrew Cagney <cagney@redhat.com>
1993
1994 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1995 (REGISTER_CONVERT_FROM_TYPE): Delete.
1996 (mips_register_convert_to_type): Delete declaration.
1997 (mips_register_convert_from_type): Delete declaration.
1998 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1999 kernel/.
2000
0274a8ce
MS
20012003-06-19 Michael Snyder <msnyder@redhat.com>
2002
2003 * linux-nat.h: New file.
2004 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2005 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2006 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2007 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2008 (linux_make_note_section): Iterate over lwps instead of threads.
2009 (linux_do_thread_registers): Use lwp instead of merged pid.
2010 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2011 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2012 Add dependency on linux_nat_h.
2013
adf5f719
TR
20142003-06-19 Theodore A. Roth <troth@openavr.org>
2015
2016 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2017
6766a268
DJ
20182003-06-19 Daniel Jacobowitz <drow@mvista.com>
2019
2020 * varobj.c (get_type, get_target_type): Use check_typedef.
2021
1171114a
DJ
20222003-06-19 Daniel Jacobowitz <drow@mvista.com>
2023
2024 * breakpoint.c (insert_catchpoint): Call internal_error.
2025
adcf68a2
TR
20262003-06-19 Theodore A. Roth <troth@openavr.org>
2027
2028 * avr-tdep.c (avr_push_dummy_code): Delete function.
2029 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2030
ea67f13b
DJ
20312003-06-19 Daniel Jacobowitz <drow@mvista.com>
2032
2033 * arch-utils.c (default_prepare_to_proceed): Remove.
2034 (generic_prepare_to_proceed): Remove.
2035 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2036 (generic_prepare_to_proceed): Remove prototype.
2037 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2038 * gdbarch.c: Regenerate.
2039 * gdbarch.h: Regenerate.
2040 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2041 * hppah-nat.c (hppa_switched_threads): Remove.
2042 * infrun.c (prepare_to_proceed): New static function, copied from
2043 generic_prepare_to_proceed. Remove select_it argument.
2044 (proceed): Call prepare_to_proceed.
2045 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2046 variables.
2047 (ptrace_wait): Don't set the removed variables.
2048 (hppa_switched_threads): Remove.
2049 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2050 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2051 (lin_lwp_prepare_to_proceed): Remove prototype.
2052 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2053 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2054
4add8633
TR
20552003-06-18 Theodore A. Roth <troth@openavr.org>
2056
2057 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2058 trad-frame.h.
2059 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2060 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2061 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2062 (AVR_PROLOGUE_*): Enumerate prologue types.
2063 (struct frame_extra_info): Remove.
2064 (struct avr_unwind_cache): Define.
2065 (avr_write_sp): Delete function.
2066 (avr_read_fp): Ditto.
2067 (avr_init_extra_frame_info): Ditto.
2068 (avr_pop_frame): Ditto.
2069 (avr_frame_saved_pc): Ditto.
2070 (avr_saved_pc_after_call): Ditto.
2071 (avr_push_return_address): Ditto.
2072 (avr_frame_chain): Ditto.
2073 (avr_store_struct_return): Ditto.
2074 (avr_push_arguments): Ditto.
2075 (avr_scan_prologue): Update comments. Changed to set up the info for
2076 cache unwinding. Now returns end of prologue PC.
2077 (avr_skip_prologue): Better handling of functions lacking a prologue
2078 by using avr_scan_prologue.
2079 (avr_scan_arg_moves): New function.
2080 (avr_saved_regs_unwinder): Ditto.
2081 (avr_frame_unwind_cache): Ditto.
2082 (avr_unwind_pc): Ditto.
2083 (avr_frame_this_id): Ditto.
2084 (avr_frame_prev_register): Ditto.
2085 (avr_frame_p): Ditto.
2086 (avr_frame_base_address ): Ditto.
2087 (avr_unwind_dummy_id): Ditto.
2088 (avr_push_dummy_code): Ditto.
2089 (push_stack_item): Ditto.
2090 (pop_stack_item): Ditto.
2091 (avr_push_dummy_call): Ditto.
2092 (struct stack_item): Define.
2093 (avr_frame_unwind): Declare structure.
2094 (avr_frame_base): Ditto.
2095 (avr_gdbarch_init): Remove calls to
2096 set_gdbarch_deprecated_init_frame_pc,
2097 set_gdbarch_deprecated_target_read_fp,
2098 set_gdbarch_deprecated_dummy_write_sp,
2099 set_gdbarch_deprecated_fp_regnum,
2100 set_gdbarch_deprecated_push_arguments,
2101 set_gdbarch_deprecated_push_return_address,
2102 set_gdbarch_deprecated_pop_frame,
2103 set_gdbarch_deprecated_store_struct_return,
2104 set_gdbarch_deprecated_frame_init_saved_regs,
2105 set_gdbarch_deprecated_init_extra_frame_info,
2106 set_gdbarch_deprecated_frame_chain,
2107 set_gdbarch_deprecated_frame_saved_pc,
2108 set_gdbarch_deprecated_saved_pc_after_call.
2109 Add calls to set_gdbarch_push_dummy_call,
2110 set_gdbarch_push_dummy_code,
2111 frame_unwind_append_predicate,
2112 frame_base_set_default,
2113 set_gdbarch_unwind_dummy_id,
2114 set_gdbarch_unwind_pc.
2115 Wrap a long line.
2116
7be04a68
MS
21172003-06-18 Corinna Vinschen <vinschen@redhat.com>
2118
2119 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2120 registers for H8/300S.
2121 (h8300_print_registers_info): Ditto.
8ffd9b1b 2122 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2123
ae087d01
DJ
21242003-06-18 Daniel Jacobowitz <drow@mvista.com>
2125
2126 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2127 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2128 (lin_lwp_wait): Likewise. Update comments.
2129 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2130 (pull_pid_from_list, linux_record_stopped_pid): New.
2131
07d8f827
SC
21322003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2133
2134 * ada-lang.c (scan_discrim_bound): Name first argument.
2135 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2136 declared by ALL_BLOCK_SYMBOLS.
2137
7cb47b14
SC
21382003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2139
2140 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2141 ("regcache.h"): Include it.
2142 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2143
6ad8ae5c
DJ
21442003-06-17 Daniel Jacobowitz <drow@mvista.com>
2145
2146 * NEWS: Mention gdbserver detach change and "disconnect" command.
2147 * infcmd.c (disconnect_command): New function.
2148 (_initialize_infcmd): Add ``disconnect'' command.
2149 * remote.c (remote_async_detach): Delete.
2150 (remote_detach): Merge remote_async_detach.
2151 (remote_disconnect): New.
2152 (init_remote_ops): Set to_disconnect.
2153 (init_remote_cisco_ops): Likewise.
2154 (init_remote_async_ops): Likewise. Use remote_detach.
2155 * target.c (cleanup_target): Default to_disconnect.
2156 (update_current_target): Inherit to_disconnect.
2157 (target_disconnect, debug_to_disconnect): New functions.
2158 (setup_target_debug): Set to_disconnect.
2159 * target.h (struct target_ops): Add to_disconnect.
2160 (target_disconnect): Add prototype.
2161
687595f9
DJ
21622003-06-17 Daniel Jacobowitz <drow@mvista.com>
2163
2164 * breakpoint.c (insert_catchpoint): New function.
2165 (insert_breakpoints): Use catch_exceptions to call
2166 insert_catchpoint. Disable catchpoints if they fail to insert.
2167
29239a8f
DJ
21682003-06-17 Daniel Jacobowitz <drow@mvista.com>
2169
2170 * symfile.c (reread_symbols): Clear sym_private.
2171
2cdf3c63
AC
21722003-06-17 Andrew Cagney <cagney@redhat.com>
2173
2174 * trad-frame.h (struct frame_info): Add opaque declaration.
2175 * remote-fileio.h (struct cmd_list_element): Add opaque
2176 declaration.
2177 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2178 comments.
2179
cf0e1e0d
DJ
21802003-06-17 Daniel Jacobowitz <drow@mvista.com>
2181
2182 * remote.c (remote_prepare_to_store): Replace call to
2183 deprecated_read_register_bytes with multiple regcache_raw_read
2184 calls.
2185
192cdb19
KW
21862003-06-17 Kris Warkentin <kewarken@qnx.com>
2187
2188 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2189 (nto_find_and_open_solib): Likewise.
2190 (nto_init_solib_absolute_prefix): Likewise.
2191 (_initialize_nto_tdep): Fix indentation.
2192
89929b45
KW
21932003-06-17 Kris Warkentin <kewarken@qnx.com>
2194
2195 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2196
46019f27
KW
21972003-06-17 Kris Warkentin <kewarken@qnx.com>
2198
2199 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2200
1a38736e
JB
22012003-06-17 Jim Blandy <jimb@redhat.com>
2202
2203 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2204
3605c34a
TR
22052003-06-16 Theodore A. Roth <troth@openavr.org>
2206
2207 * avr-tdep.c (avr_extract_return_value): New function.
2208 (avr_gdbarch_init): Set extract_return_value method.
2209
870b3035
AC
22102003-06-16 Andrew Cagney <cagney@redhat.com>
2211
2212 * frame.h (deprecated_get_next_frame_hack): Declare.
2213 * frame.c (legacy_saved_regs_prev_register): Only require
2214 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2215 there are always saved regs.
2216 (deprecated_generic_get_saved_register): Do not require
2217 DEPRECATED_FRAME_INIT_SAVED_REGS.
2218 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2219 use frame ID unwind instead.
2220 (deprecated_get_next_frame_hack): New function.
2221
63d47a7d
CV
22222003-06-16 Corinna Vinschen <vinschen@redhat.com>
2223
2224 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2225 (h8300_push_dummy_call): ...this function. Some minor optimization.
2226 (h8300_push_return_address): Remove.
2227 (h8300_gdbarch_init): Remove calls to
2228 set_gdbarch_deprecated_dummy_write_sp,
2229 set_gdbarch_deprecated_push_arguments and
2230 set_gdbarch_deprecated_push_return_address.
2231 Add call to set_gdbarch_push_dummy_call.
2232
4bb1dc5e
CV
22332003-06-16 Corinna Vinschen <vinschen@redhat.com>
2234
2235 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2236 (E_PSEUDO_EXR_REGNUM): Ditto.
2237 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2238 registers into safe registers.
4bb1dc5e
CV
2239 (h8300_skip_prologue): Check for stm instruction to push registers
2240 used for register variables onto stack.
2241 (gdb_print_insn_h8300): Remove.
2242 (h8300_examine_prologue): Add a comment.
2243 (h8300_register_name): Take pseudo registers into account.
2244 (h8300s_register_name): Ditto.
2245 (h8300sx_register_name): Ditto.
2246 (h8300_print_register): Ditto.
2247 (h8300_print_registers_info): Define "nice" printing order.
2248 (h8300_saved_pc_after_call): Take pseudo registers into account.
2249 (h8300_register_type): Ditto. Return type used for remote connection
2250 when requesting real CCR or EXR register, return actual type when
2251 requesting pseudo CCR or EXR.
2252 (h8300_pseudo_register_read): New function.
2253 (h8300_pseudo_register_write): Ditto.
2254 (h8300_dbg_reg_to_regnum): Ditto.
2255 (h8300s_dbg_reg_to_regnum): Ditto.
2256 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2257 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2258 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2259 set_gdbarch_print_insn architecture dependent.
2260 Call set_gdbarch_pseudo_register_read and
2261 set_gdbarch_pseudo_register_write.
2262 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2263
a59fe496
AC
22642003-06-16 Andrew Cagney <cagney@redhat.com>
2265
2266 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2267 * gdbarch.h, gdbarch.c: Re-generate.
2268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2269 * s390-tdep.c (s390_gdbarch_init): Update.
2270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2271 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2272 * mips-tdep.c (mips_gdbarch_init): Update.
2273 * mcore-tdep.c (mcore_gdbarch_init): Update.
2274 * cris-tdep.c (cris_gdbarch_init): Update.
2275 * infcall.c (call_function_by_hand): Update.
2276 * ia64-tdep.c (ia64_push_arguments): Update comment.
2277 * frame.c (legacy_get_prev_frame): Do not assume
2278 SAVE_DUMMY_FRAME_TOS_P.
2279 * dummy-frame.c (find_dummy_frame): Update comment.
2280
6f4e5a41
AC
22812003-06-16 Andrew Cagney <cagney@redhat.com>
2282
2283 * regcache.c (do_cooked_read): Do not use register_valid_p.
2284
72fab697
TR
22852003-06-15 Theodore A. Roth <troth@openavr.org>
2286
2287 * avr-tdep.c (avr_register_type): Remove a blank line.
2288 (avr_scan_prologue): Correct some comments.
2289
e3d8b004
TR
22902003-06-15 Theodore A. Roth <troth@openavr.org>
2291
2292 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2293 prologue types.
8ffd9b1b 2294 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2295 option.
2296 Add code to scan -mcall-prologues for mega devices.
2297
866b76ea
TR
22982003-06-15 Theodore A. Roth <troth@openavr.org>
2299
2300 * avr-tdep.c (avr_register_byte): Delete function.
2301 (avr_register_raw_size): Delete function.
2302 (avr_register_virtual_size): Delete function.
2303 (avr_register_virtual_type): Delete function.
2304 (avr_register_type): New function.
2305 (avr_address_to_pointer): Remove unused code.
2306 (avr_read_fp): Need to read FP as two separate bytes due to change to
2307 avr_register_type() usage.
2308 (avr_gdbarch_init): Don't set deprecated_register_size.
2309 Don't set deprecated_register_bytes.
2310 Don't set deprecated_register_byte.
2311 Don't set deprecated_register_raw_size.
2312 Don't set deprecated_max_register_raw_size.
2313 Don't set deprecated_register_virtual_size.
2314 Don't set deprecated_max_register_virtual_size.
2315 Don't set deprecated_register_virtual_type.
2316 Set register_type method.
2317
3993f6b1
DJ
23182003-06-15 Daniel Jacobowitz <drow@mvista.com>
2319
2320 * Makefile.in (linux-nat.o): Add rule.
2321 * linux-nat.c: New file.
2322 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2323 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2324 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2325 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2326 * config/arm/linux.mh (NATDEPFILES): Likewise.
2327 * config/i386/linux.mh (NATDEPFILES): Likewise.
2328 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2329 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2330 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2331 * config/mips/linux.mh (NATDEPFILES): Likewise.
2332 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2333 * config/s390/s390.mh (NATDEPFILES): Likewise.
2334 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2335
786a90bb
MK
23362003-06-15 Mark Kettenis <kettenis@gnu.org>
2337
2338 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2339 replace out-of-date comment.
2340
3bd3f01e
AC
23412003-06-15 Andrew Cagney <cagney@redhat.com>
2342
2343 * rdi-share/host.h (Fail): Change to a varargs function.
2344 * remote-rdi.c (Fail): Update.
8ffd9b1b 2345
de5b9bb9
MK
23462003-06-15 Mark Kettenis <kettenis@gnu.org>
2347
2348 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2349 (i386_convert_register_p, i386_register_to_value,
2350 i386_register_from_value): Handle types longer than 8 bytes.
2351
d532c08f
MK
23522003-06-15 Mark Kettenis <kettenis@gnu.org>
2353
2354 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2355 Move floating-point code to new function in i387-tdep.c.
2356 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2357 New functions containing code moved here from i386-tdep.c.
2358 * i387-tdep.h: Add opaque declaration for `struct type'.
2359 (i387_register_to_value, i387_value_to_register): New prototypes.
2360 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2361 (x86_64_init_abi): Set convert_register_p, register_to_value and
2362 value_to_register here.
8ffd9b1b 2363
42c466d7
AC
23642003-06-14 Andrew Cagney <cagney@redhat.com>
2365
2366 * mips-tdep.c (mips_register_to_value): Make static.
2367 (mips_value_to_register): Make static.
2368 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2369 * ia64-tdep.c (ia64_register_raw_size): Make static.
2370 (ia64_register_virtual_size): Make static.
2371 (ia64_register_byte): Make static.
2372 * i387-tdep.c: Include "i387-tdep.h".
2373 (print_387_control_word): Delete function.
2374 (print_387_status_word): Delete function.
2375 (print_387_status_bits): Delete function.
2376 (print_387_control_bits): Delete function.
2377 * Makefile.in (i387-tdep.o): Update dependencies.
2378 * rdi-share/host.h (Fail): Declare.
2379 * remote-rdi.c (Fail): Update to match declaration.
2380
2a9cda49
AC
23812003-06-14 Andrew Cagney <cagney@redhat.com>
2382
2383 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2384 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2385 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2386 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2387 * README: Delete reference to remote-array.
2388 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2389 (remote-array.o): Delete target.
2390 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2391 * remote-array.c: Delete file.
2392
ff2e87ac
AC
23932003-06-14 Andrew Cagney <cagney@redhat.com>
2394 Mark Kettenis <kettenis@gnu.org>
2395
2396 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2397 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2398 parameter with "frame".
2399 * gdbarch.h, gdbarch.c: Re-generate.
2400 * frame.h (put_frame_register): Declare.
2401 * frame.c (put_frame_register): New function.
2402 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2403 (legacy_register_to_value): Rewrite, use "frame" to get the
2404 register value.
2405 (legacy_value_to_register): Rewrite, use "frame" to find the
2406 register's location before storing.
2407 * arch-utils.h (legacy_convert_register_p): Update.
2408 (legacy_register_to_value, legacy_value_to_register): Update.
2409 * findvar.c (value_from_register): Rewrite, eliminate use of
2410 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2411 "frame" to REGISTER_TO_VALUE.
2412 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2413 lval_reg_frame_relative + lval_register branch of the switch. Do
2414 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2415 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2416 I386_EDI_REGNUM): New defines.
2417 (i386_next_regnum, i386_convert_register_p,
2418 i386_register_to_value, i386_value_to_register): New functions.
2419 (i386_register_convertible, i386_register_convert_to_virtual,
2420 i386_convert_to_raw): Remove functions.
2421 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2422 value_to_register instead of register_convertible,
2423 register_convert_to_virtual and register_convert_to_raw.
2424 * mips-tdep.c (mips_convert_register_p): New function.
2425 (mips_value_to_register): Replace mips_register_convert_from_type.
2426 (mips_register_to_value): Replace mips_register_convert_to_type.
2427 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2428 register_to_value.
2429 * alpha-tdep.c (alpha_convert_register_p): Update.
2430 (alpha_value_to_register): Update, store the register.
2431 (alpha_register_to_value): Update, fetch the register.
2432
98be1e77
TR
24332003-06-14 Theodore A. Roth <troth@openavr.org>
2434
2435 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2436 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2437 Don't set deprecated_call_dummy_words.
2438 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2439 Don't set remote_translate_xfer_address.
2440 (avr_io_reg_read_command): Remove commented out debug printf.
2441 Wrap a long line.
2442
57bc6122
TR
24432003-06-14 Theodore A. Roth <troth@openavr.org>
2444
2445 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2446 causes gdb to seg fault.
2447
eb01fc62
DJ
24482003-06-14 Daniel Jacobowitz <drow@mvista.com>
2449
2450 * sparc-nat.c (fetch_inferior_registers): Correct
2451 a reference to "registers".
2452
3b3e6bee
DJ
24532003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2454
2455 * Makefile.in (exc_request_U_h): Define
2456 (exc_request_S_h): Likewise.
2457 (msg_reply_S_h): Likewise.
2458 (msg_U_h): Likewise.
2459 (notify_S_h): Likewise.
2460 (process_reply_S_h): Likewise.
2461 (gnu-nat.o): Depend on gdb_obstack_h
2462 * gnu-nat.c: Include "gdb_obstack.h".
2463
b8de8283
AC
24642003-06-13 Andrew Cagney <cagney@redhat.com>
2465
2466 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2467 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2468
f3be58bc
AC
24692003-06-13 Andrew Cagney <cagney@redhat.com>
2470
2471 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2472 when deprecated REGISTER macros can be deleted.
2473 * gdbarch.h, gdbarch.c: Re-generate.
2474
4c0122c8
JB
24752003-06-13 Jim Blandy <jimb@redhat.com>
2476
2477 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2478 Linux entry point symbols for _dl_debug_state, too.
2479
3e210248
AC
24802003-06-13 Andrew Cagney <cagney@redhat.com>
2481
2482 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2483 available, do not use the FP register, and always save the TOS.
2484 * dummy-frame.c (dummy_frame_this_id): Do not assert
2485 SAVE_DUMMY_FRAME_TOS.
2486 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2487 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2488 (i386_push_dummy_call): Add 8 to the returned SP.
2489 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2490 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2491 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2492 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2493 (x86_64_push_dummy_call): Return "sp + 16".
2494 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2495 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2496 save_dummy_frame_tos.
2497
0b65af49
JB
24982003-06-13 Jim Blandy <jimb@redhat.com>
2499
2500 * frv-tdep.c (frv_use_struct_convention): Delete static
2501 declaration for function deleted in my change of 2003-06-12.
2502
4ea2465e
TR
25032003-06-13 Theodore A. Roth <troth@openavr.org>
2504
2505 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2506 (avr_pointer_to_address): Shift code addrs left 1 bit.
2507 (avr_convert_from_func_ptr_addr): Delete function since operation is
2508 better handled by avr_address_to_pointer and avr_pointer_to_address.
2509 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2510
1581182a
MK
25112003-06-13 Mark Kettenis <kettenis@gnu.org>
2512
2513 From Kelley Cook <kelleycook@wideopenwest.com>:
2514 * configure.host: Accept i[34567]86 variants.
2515 * configure.tgt: Likewise.
2516 * nlm/configure.in: Likewise.
2517 * nlm/configure: Regenerated.
2518
7aa1783e
RE
25192003-06-13 Richard Earnshaw <rearnsha@arm.com>
2520
2521 * arm-tdep.c (solib-svr4.h): Dont' include it.
2522 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2523 * arm-linux-tdep.c: ... here. Make static.
2524 (arm_linux_init_abi): Register it.
2525 (solib-svr4.h): Include it.
2526 * Makefile.in: Update dependencies.
2527 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2528 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2529
0261a0d0
CV
25302003-06-13 Corinna Vinschen <vinschen@redhat.com>
2531
2532 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2533 indicate registers used for return values.
2534 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2535 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2536 members.
2537 (h8300_init_extra_frame_info): Ditto.
2538 (h8300_frame_locals_address): Removed.
2539 (h8300_frame_args_address): Removed.
2540 (h8300_extract_return_value): Use new regcache structure. Only care
2541 for 16 bit CPUs.
2542 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2543 (h8300_store_return_value): Use new regcache structure. Only care
2544 for 16 bit CPUs.
2545 (h8300h_store_return_value): Same function for 32 bit CPUs.
2546 (h8300_store_struct_return): Removed.
2547 (h8300_extract_struct_value_address): Use new regcache structure.
2548 (h8300h_extract_struct_value_address): Removed.
2549 (h8300_push_dummy_code): New function.
2550 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2551 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2552 set_gdbarch_store_return_value architecture dependent.
2553 Call set_gdbarch_push_dummy_code and
2554 set_gdbarch_extract_struct_value_address.
2555 Remove calls to set_gdbarch_frame_args_address,
2556 set_gdbarch_frame_locals_address,
2557 set_gdbarch_deprecated_store_struct_return,
2558 set_gdbarch_deprecated_extract_return_value,
2559 set_gdbarch_deprecated_extract_struct_value_address,
2560 set_gdbarch_deprecated_call_dummy_words and
2561 set_gdbarch_deprecated_sizeof_call_dummy_words.
2562
055c394a
CV
25632003-06-13 Corinna Vinschen <vinschen@redhat.com>
2564
2565 * h8300-tdep.c (h8300_register_byte): Remove.
2566 (h8300h_register_byte): Remove.
2567 (h8300_register_virtual_type): Remove. Substitute by...
2568 (h8300_register_type): New function.
2569 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2570 (h8300h_extract_struct_value_address): Ditto.
2571 (h8300_gdbarch_init): Drop calls to
2572 set_gdbarch_deprecated_register_byte and
2573 set_gdbarch_deprecated_register_virtual_type.
2574 Add call to set_gdbarch_register_type.
2575
9c04cab7
AC
25762003-06-13 Andrew Cagney <cagney@redhat.com>
2577
2578 * gdbarch.sh: Update comments on registers.
2579 (deprecated_register_byte): Rename register_byte.
2580 (deprecated_register_raw_size): Rename register_raw_size.
2581 (deprecated_register_virtual_size): Rename register_virtual_size.
2582 (deprecated_register_virtual_type): Rename register_virtual_type.
2583 * gdbarch.h, gdbarch.c: Re-generate.
2584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2585 * vax-tdep.c (vax_gdbarch_init): Update.
2586 * v850-tdep.c (v850_gdbarch_init): Update.
2587 * sparc-tdep.c (sparc_gdbarch_init): Update.
2588 * sh-tdep.c (sh_gdbarch_init): Update.
2589 * s390-tdep.c (s390_gdbarch_init): Update.
2590 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2591 * ns32k-tdep.c: Update.
2592 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2593 * mips-tdep.c (mips_gdbarch_init): Update.
2594 * mcore-tdep.c (mcore_gdbarch_init): Update.
2595 * m68k-tdep.c (m68k_gdbarch_init): Update.
2596 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2597 * ia64-tdep.c (ia64_gdbarch_init): Update.
2598 * hppa-tdep.c (hppa_gdbarch_init): Update.
2599 * h8300-tdep.c (h8300_gdbarch_init): Update.
2600 * frv-tdep.c (frv_gdbarch_init): Update.
2601 * cris-tdep.c (cris_gdbarch_init): Update.
2602 * avr-tdep.c (avr_gdbarch_init): Update.
2603 * alpha-tdep.c (alpha_gdbarch_init): Update.
2604 * arm-tdep.c (arm_gdbarch_init): Update.
2605
b060cbea
AC
26062003-06-13 Andrew Cagney <cagney@redhat.com>
2607
2608 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2609 mips_o32_use_struct_convention with always_use_struct_convention.
2610
0fc9922a
DC
26112003-06-12 David Carlton <carlton@kealia.com>
2612
2613 * cp-namespace.c (cp_set_block_scope): Comment out
2614 processing_has_namespace_info branch.
2615
1fd35568
JB
26162003-06-12 Jim Blandy <jimb@redhat.com>
2617
f470a70a
JB
2618 Recognize and skip 64-bit PowerPC Linux linkage functions.
2619 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2620 insn_pattern, insns_match_pattern, d_field, ds_field): New
2621 functions, macros, and types for working with PPC instructions.
2622 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2623 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2624 ppc64_skip_trampoline_code): New functions, variables, and macros
2625 for recognizing and skipping linkage functions.
2626 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2627 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2628
49ff75ad
JB
2629 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2630 register offsets for both the 32- and 64-bit interfaces.
2631
bd918c83
JB
2632 Actually finish the job started by my change of 2003-05-29.
2633 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2634 other #definition of this.
2635 (ppc_linux_skip_trampoline_code): Remove declaration.
2636 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2637 static.
2638 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2639 method for GDBARCH.
2640
2641 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2642 'long' on ppc64-*-linux*.
2643
f8c59253
JB
2644 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2645 isn't #defined, assume the register doesn't exist: act as if
2646 tdep->ppc_mq_regnum were -1.
2647
8fbb30b1
JB
2648 * configure.host, configure.tgt: Add entries for
2649 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2650 powerpc/linux.mt.
2651 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2652 New files.
2653
1fd35568
JB
2654 * arch-utils.c (always_use_struct_convention): New function.
2655 * arch-utils.h (always_use_struct_convention): New prototype.
2656 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2657 (alpha_gdbarch_init): Register always_use_struct_convention,
2658 instead of alpha_use_struct_convention.
2659 * cris-tdep.c (cris_use_struct_convention): Delete.
2660 (cris_gdbarch_init): Register always_use_struct_convention,
2661 instead of cris_use_struct_convention.
2662 * frv-tdep.c (frv_use_struct_convention): Delete.
2663 (frv_gdbarch_init): Register always_use_struct_convention,
2664 instead of frv_use_struct_convention.
2665 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2666 (h8300_gdbarch_init): Register always_use_struct_convention,
2667 instead of h8300_use_struct_convention.
e3305dd9 2668 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2669 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2670 instead of mips_o32_use_struct_convention.
2671
e14e6e9c
AC
26722003-06-12 Andrew Cagney <cagney@redhat.com>
2673
2674 * wince.c: Include "mips-tdep.h".
2675 * mips-tdep.h (mips_next_pc): Declare.
2676 * mcore-tdep.c: Make more local functions static.
2677 * Makefile.in (wince.o): Update dependencies.
2678
2335f48e
DC
26792003-06-12 David Carlton <carlton@kealia.com>
2680
2681 * symtab.c (lookup_symbol_aux_minsyms): Replace
2682 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2683 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2684 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2685 SYMBOL_NATURAL_NAME.
2686
f70a7d61
AS
26872003-06-12 Andreas Schwab <schwab@suse.de>
2688
2689 * Makefile.in (tuiDisassem.o): Update dependencies.
2690
b6429628
DC
26912003-06-12 David Carlton <carlton@bactrian.org>
2692
2693 * symtab.h: Delete declaration of make_symbol_overload_list.
2694 Add declaration of lookup_partial_symbol.
2695 * symtab.c (remove_params): Move to cp-support.c.
2696 (overload_list_add_symbol, make_symbol_overload_list)
2697 (sym_return_val_size, sym_return_val_index): Ditto.
2698 (lookup_partial_symbol): Make extern.
2699 * cp-support.h: Add declaration of make_symbol_overload_list.
2700 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2701 symtab.h, and block.h.
2702 (remove_params): Move here from symtab.c.
2703 (overload_list_add_symbol, make_symbol_overload_list)
2704 (sym_return_val_size, sym_return_val_index): Ditto.
2705 * valops.c: Include cp-support.h.
2706 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2707 frame_h, and block_h.
2708 (valops.o): Depend on cp_support_h.
2709
084edea5
CV
27102003-06-12 Corinna Vinschen <vinschen@redhat.com>
2711
2712 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2713 substitute by NUM_REGS throughout.
2714 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2715 (h8300s_register_name): New function for H8S registers.
2716 (h8300sx_register_name): Ditto for H8SX registers.
2717 (h8300_print_register): Revise register printing, avoid depending
2718 on 32 bit long.
0261a0d0 2719 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2720 (h8300h_register_byte): New function for any other architecture.
2721 (h8300_register_raw_size): Remove.
2722 (h8300_register_virtual_type): Revise to return actually useful
2723 type.
2724 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2725 (h8300h_extract_struct_value_address): New function for any other
2726 architecture.
2727 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2728 set_gdbarch_register_name, set_gdbarch_register_byte,
2729 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2730 Remove calls to set_gdbarch_deprecated_register_size,
2731 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2732 set_gdbarch_deprecated_max_register_raw_size,
2733 set_gdbarch_register_virtual_size and
2734 set_gdbarch_deprecated_max_register_virtual_size entirely.
2735 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2736 set_gdbarch_long_double_bit.
2737
06194148
JJ
27382003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2739
8ffd9b1b
AJ
2740 * doublest.c (convert_doublest_to_floatformat): When dealing
2741 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2742 processing a full 32 bits of mantissa.
2743
de4f826b
DC
27442003-06-11 David Carlton <carlton@bactrian.org>
2745
2746 * dictionary.h: New.
2747 * dictionary.c: New.
2748 * block.h: Add opaque declaration for struct dictionary.
2749 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2750 'sym' members.
2751 (BLOCK_DICT): New macro.
2752 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2753 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2754 BLOCK_SHOULD_SORT.
2755 (ALL_BLOCK_SYMBOLS): Update definition.
2756 * Makefile.in (SFILES): Add dictionary.c.
2757 (dictionary_h): New.
2758 (COMMON_OBS): Add dictionary.o.
2759 (dictionary.o): New.
2760 (ada-lang.o): Depend on dictionary_h.
2761 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2762 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2763 (mi-cmd-stack.o): Ditto.
2764 (gdbtk-cmds.o): Update dependencies.
2765 (gdbtk-stack.o): Ditto.
2766 * ada-lang.c: Include dictionary.h.
2767 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2768 (fill_in_ada_prototype, debug_print_block): Ditto.
2769 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2770 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2771 'is_sorted'.
2772 * mdebugread.c: Include dictionary.h.
2773 (struct parse_stack): Delete 'maxsyms' member.
2774 (parse_symbol): Update calls to new_block. Delete calls to
2775 shrink_block. Use dictionary methods.
2776 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2777 Update calls to new_symtab. Don't maintain maxsyms data.
2778 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2779 (add_symbol): Just call dict_add_symbol.
2780 (new_symtab): Delete 'maxsyms' argument.
2781 (new_symtab): Update calls to new_block.
2782 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2783 (shrink_block): Delete function.
2784 (fixup_sigtramp): Update call to new_block. Add symbol via
2785 dict_add_symbol.
2786 * jv-lang.c: Include dictionary.h.
2787 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2788 appropriately. Set class_symtab->free_func. Make sure the
2789 blockvector is big enough to hold two blocks.
2790 (add_class_symtab_symbol): Use dictionary methods.
2791 (free_class_block): New function.
2792 (type_from_class): Replace explicit iteration by
2793 ALL_BLOCK_SYMBOLS.
2794 * symtab.h (struct symtab): Replace 'free_ptr' method by
2795 'free_func'.
2796 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2797 sort_symtab_syms.
2798 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2799 sort_symtab_syms.
2800 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2801 Include dictionary.h.
2802 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2803 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2804 sort_symtab_syms.
2805 * objfiles.c: Include dictionary.h.
2806 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2807 * buildsym.c: Include dictionary.h.
2808 (finish_block): Use dictionary methods.
2809 (end_symtab): Set free_func to NULL, not free_ptr.
2810 * tracepoint.c: Include dictionary.h.
2811 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2812 (scope_info): Ditto.
2813 * stack.c: Include dictionary.h.
2814 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2815 (print_block_frame_labels, print_frame_arg_vars)
2816 (print_frame_args): Ditto.
2817 * symmisc.c (free_symtab_block): Use dictionary methods.
2818 (dump_symtab): Ditto.
2819 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2820 Include dictionary.h.
2821 * symfile.h: Delete declarations of sort_block_syms,
2822 sort_symtab_syms.
2823 * symfile.c (sort_block_syms): Delete.
2824 (sort_symtab_syms): Delete.
2825 * symtab.c: Include dictionary.h.
2826 (lookup_block_symbol): Use dictionary iterators.
2827 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2828 (search_symbols, make_symbol_completion_list): Ditto.
2829 (make_symbol_overload_list): Ditto.
2830 * valops.c (value_of_local): Use dict_empty.
2831 Include dictionary.h.
2832
a31f978c
JB
28332003-06-11 J. Brobecker <brobecker@gnat.com>
2834
2835 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2836
526e70c0
DC
28372003-06-11 David Carlton <carlton@bactrian.org>
2838
2839 * block.h (BLOCK_SHOULD_SORT): Delete.
2840 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2841 blocks.
2842 * ada-lang.c (ada_add_block_symbols): Ditto.
2843 * symfile.c (sort_block_syms): Delete.
2844 (sort_symtab_syms): Ditto.
2845 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2846 declarations.
2847 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2848 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2849 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2850 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2851 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2852 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2853 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2854
33c08150
JJ
28552003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2856
8ffd9b1b 2857 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2858 bits to 128.
2859
781a750d
AC
28602003-06-11 Andrew Cagney <cagney@redhat.com>
2861
2862 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2863 REGISTER_CONVERTIBLE.
2864 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2865 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2866 * gdbarch.h, gdbarch.c: Re-generate.
2867 * arch-utils.h (deprecated_register_convertible_not): Rename
2868 generic_register_convertible_not.
2869 * arch-utils.c (deprecated_register_convertible_not): Rename
2870 generic_register_convertible.
2871 (legacy_convert_register_p, legacy_register_to_value): Update.
2872 * sh-tdep.c (sh64_push_arguments): Update.
2873 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2874 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2875 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2876 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2877 * arch-utils.c (legacy_value_to_register): Update.
2878 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2879 (rs6000_register_convert_to_raw): Make parameter "from" const.
2880 * mips-tdep.c (mips_gdbarch_init): Update.
2881 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2882 * infcmd.c (default_print_registers_info): Update.
2883 * ia64-tdep.c (ia64_gdbarch_init): Update.
2884 (ia64_register_convert_to_raw): Make parameter "from" const.
2885 * i386-tdep.c (i386_gdbarch_init): Update.
2886 (i386_register_convert_to_raw): Update.
2887
cd90e54f
AC
28882003-06-11 Andrew Cagney <cagney@redhat.com>
2889
2890 * remote-fileio.c: Include "remote-fileio.h".
2891 * Makefile.in (remote-fileio.o): Update dependencies.
2892 (remote_fileio_h): Fix typo.
2893
a78f21af
AC
28942003-06-11 Andrew Cagney <cagney@redhat.com>
2895
2896 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2897 (xstormy16_save_dummy_frame_tos): Make static.
2898 (_initialize_xstormy16_tdep): Add declaration.
2899 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2900 * v850-tdep.c: Make local functions static.
2901 (_initialize_v850_tdep): Add declaration.
2902 * sparc-tdep.c: Make local functions static.
2903 (_initialize_sparc_tdep): Add declaration.
2904 * sh-tdep.c: Make local functions static.
2905 (_initialize_sh_tdep): Add declaration.
2906 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2907 * s390-tdep.c: Make local functions static.
2908 (_initialize_s390_tdep): Add declaration.
2909 * dbxread.c (find_stab_function_addr): Make static.
2910 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2911 * ocd.c (_initialize_remote_ocd): Add declaration.
2912 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2913 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2914 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2915 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2916 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2917 * remote-array.c (_initialize_array): Add declaration.
2918 (_initialize_remote_monitors): Add declaration.
2919 * remote-mips.c: Make local functions static.
2920 (_initialize_remote_mips): Add declaration.
2921 * mcore-tdep.c: Make all local functions static.
2922 (_initialize_mcore_tdep): Add declaration.
2923 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2924 * abug-rom.c (_initialize_abug_rom): Add declaration.
2925 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2926 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2927 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2928 * remote-est.c (_initialize_est): Add declaration.
2929 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2930 (m68hc11_call_dummy_address): Make static.
2931 * ia64-tdep.c: Make local functions static.
2932 (_initialize_ia64_tdep): Add declaration.
2933 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2934 * monitor.c (monitor_wait_filter): Make static.
2935 (_initialize_remote_monitors): Add declaration.
2936 * remote-hms.c (_initialize_remote_hms): Add declaration.
2937 * remote-e7000.c (fetch_regs_from_dump): Make static.
2938 (expect_n): Make static.
2939 (_initialize_remote_e7000): Add declaration.
2940 * ser-e7kpc.c: Always include "defs.h".
2941 (_initialize_ser_e7000pc): Add declaration.
2942 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2943 * cris-tdep.c: Make all but one function static.
2944 (_initialize_cris_tdep): Add declaration.
2945 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2946 * solib.c (update_solib_list): Make static.
2947 (_initialize_solib): Add declaration.
2948 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2949 (_initialize_avr_tdep): Add declaration.
2950 * remote-rdi.c (voiddummy): Make static.
2951 (_initialize_remote_rdi): Add declaration.
2952 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2953 * remote-rdp.c (send_rdp): Make static.
2954 (_initialize_remote_rdp): Add declaration.
2955 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2956
cbcdb1f5
CV
29572003-06-11 Corinna Vinschen <vinschen@redhat.com>
2958
2959 * remote-fileio.c: Make ari happy.
2960
a191ea8d
JB
29612003-06-10 J. Brobecker <brobecker@gnat.com>
2962
2963 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2964 fetching the trailing bytes of the buffer we are about to write.
2965
0ef75e11
AC
29662003-06-10 Andrew Cagney <cagney@redhat.com>
2967
2968 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2969 * Makefile.in (remote-fileio.o): Update dependencies.
2970 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2971 include <setjmp.h>, or <sys/types.h> conditional on USG.
2972 (remote_fio_jmp_buf): Delete global variable.
2973
449092f6 29742003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 2975 Martin M. Hunt <hunt@redhat.com>
449092f6 2976
559fa028
AC
2977 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2978 (SFILES): Add remote-fileio.c.
2979 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2980 dependencies for building remote.o.
449092f6
CV
2981 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2982 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 2983 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
2984 static storage class.
2985 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2986 'F' packet.
2987 (_initialize_remote): Call initialize_remote_fileio().
2988 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
2989 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2990 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2991 (captured_main): Initialize new ui_files.
2992 * ui-file.c: Add read and fgets input functions.
2993 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2994 (null_file_read): New function.
2995 (ui_file_read): New function.
2996 (set_ui_file_read): New function.
2997 (stdio_file_read): New function.
2998 * ui-file.h: New type ui_file_read_ftype.
2999 (set_ui_file_read): Declare.
3000 (ui_file_read): Declare.
3001
248de703
AC
30022003-06-09 Andrew Cagney <cagney@redhat.com>
3003
3004 * frame.h (deprecated_unwind_get_saved_register): Rename
3005 generic_unwind_get_saved_register, update comments.
3006 * mips-tdep.c (mips_get_saved_register): Update.
3007 * frame.c (deprecated_unwind_get_saved_register): Update.
3008
0ed8aa57
AC
30092003-06-09 Andrew Cagney <cagney@redhat.com>
3010
3011 * vax-tdep.c (vax_frame_locals_address): Delete function.
3012 (vax_gdbarch_init): Do not set frame_locals_address.
3013 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3014 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3015 * s390-tdep.c (s390_frame_args_address): Delete function.
3016 (s390_gdbarch_init): Do not set frame_args_address or
3017 frame_locals_address.
3018 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3019 (ns32k_gdbarch_init): Do not set frame_locals_address.
3020 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3021 (hppa_frame_locals_address): Delete function.
3022 (hppa_gdbarch_init): Do not set frame_args_address, or
3023 frame_locals_address.
3024 * arm-tdep.c (arm_frame_args_address): Delete.
3025 (arm_frame_locals_address): Delete.
3026 (arm_gdbarch_init): Do not set frame_args_address, or
3027 frame_locals_address.
3028
983a287a
AC
30292003-06-09 Andrew Cagney <cagney@redhat.com>
3030
3031 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3032 * gdbarch.h, gdbarch.c: Re-generate.
3033 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3034 * arch-utils.c (frame_num_args_unknown): Delete function.
3035 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3036 (frame_info): Use FRAME_NUM_ARGS_P.
3037 * arm-tdep.c (arm_frame_num_args): Delete function.
3038 (arm_gdbarch_init): Do not set frame_num_args.
3039 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3040 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3041 (hppa_gdbarch_init): Do not set frame_num_args.
3042 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3043 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3044 frame_num_args to default frame_num_args_unknown.
3045 * v850-tdep.c (v850_gdbarch_init): Ditto.
3046 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3047 * sh-tdep.c (sh_gdbarch_init): Ditto.
3048 * s390-tdep.c (s390_gdbarch_init): Ditto.
3049 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3050 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3051 * mips-tdep.c (mips_gdbarch_init): Ditto.
3052 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3053 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3055 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3056 * i386-tdep.c (i386_gdbarch_init): Ditto.
3057 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3058 * frv-tdep.c (frv_gdbarch_init): Ditto.
3059 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3060 * cris-tdep.c (cris_gdbarch_init): Ditto.
3061 * avr-tdep.c (avr_gdbarch_init): Ditto.
3062 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3063
8d3b0994
AC
30642003-06-09 Andrew Cagney <cagney@redhat.com>
3065
3066 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3067 (print_frame_args): Moved to "stack.c".
3068 * stack.c: Include "gdb_assert.h".
3069 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3070 (print_frame_args): Moved from "printcmd.c".
3071 * frame.h (print_frame_args): Delete declaration.
3072 * Makefile.in (stack.o): Update dependencies.
3073
25e3a86b
AC
30742003-06-08 Andrew Cagney <cagney@redhat.com>
3075
3076 * frame.c (get_prev_frame): Remove reference to
3077 frame_args_address_correct in comments.
3078 * frame-base.c (default_frame_args_address): Delete code
3079 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3080 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3081 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3082 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3083 (vax_frame_args_address_correct): Delete declaration.
3084
a9e5fdc2
AC
30852003-06-08 Andrew Cagney <cagney@redhat.com>
3086
3087 * gdbarch.sh (UNWIND_SP): Add.
3088 * gdbarch.h, gdbarch.c: Re-generate.
3089 * frame.c (frame_sp_unwind): New function.
3090 (get_frame_sp): New function.
3091 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3092 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3093 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3094 value.
3095 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3096 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3097
8983bd83
AC
30982003-06-08 Andrew Cagney <cagney@redhat.com>
3099
7fec2c59
AC
3100 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3101 REMOTE_BREAKPOINT.
3102 * remote.c: Update.
3103 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3104 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3105 * config/m68k/tm-sun3.h: Update.
3106 * config/m68k/tm-m68klynx.h: Update.
3107 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3108
8983bd83
AC
3109 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3110 trad_frame". Update comments.
3111 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3112 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3113 (trad_frame_register_value, trad_frame_prev_register): Update.
3114
b9362cc7
AC
31152003-06-08 Andrew Cagney <cagney@redhat.com>
3116
3117 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3118 from GCC's acinclude.m4.
3119 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3120 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3121 * main.c (error_init): Delete declaration.
3122 * defs.h (error_init): Declare.
3123 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3124 (rs6000_convert_from_func_ptr_addr): Make static.
3125 (_initialize_rs6000_tdep): Add declaration.
3126 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3127 (show_commands, set_verbose, show_history): Delete declaration.
3128 * top.h (set_verbose): Add declaration.
3129 (show_history, set_history, show_commands): Add declaration.
3130 (do_restore_instream_cleanup): Add declaration.
3131 * objc-lang.c (specialcmp): Make static.
3132 (print_object_command): Make static.
3133 (find_objc_msgsend): Make static.
3134 (find_objc_msgcall_submethod_helper): Make static.
3135 (find_objc_msgcall_submethod): Make static.
3136 (_initialize_objc_language): Add declaration.
3137 (find_implementation_from_class): Make static.
3138 (find_implementation): Make static.
3139 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3140 * objc-lang.h (lookup_struct_typedef): Add declaration.
3141 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3142 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3143 (do_restore_user_call_depth): Make static.
3144 (do_restore_instream_cleanup): Delete declaration.
3145 (dont_repeat): Delete declaration.
3146 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3147 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3148 * reggroups.c (_initialize_reggroup): Add declaration.
3149 * cp-support.c (_initialize_cp_support): Add declaration.
3150 * cp-abi.c (_initialize_cp_abi): Add declaration.
3151 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3152 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3153 (_initialize_gnu_v3_abi): Add declaration.
3154 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3155 (_initialize_gnu_v2_abi): Add declaration.
3156 * frame-base.c (_initialize_frame_base): Add declaration.
3157 * doublest.c (floatformat_from_length): Make static.
3158 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3159 * frame.c (create_sentinel_frame): Make static.
3160 (_initialize_frame): Add declaration.
3161 * top.c (do_catch_errors): Make static.
3162 (gdb_rl_operate_and_get_next_completion): Make static.
3163 * typeprint.c: Include "typeprint.h".
3164 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3165 (sentinel_frame_this_id): Make static.
3166 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3167 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3168 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3169 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3170 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3171 * maint.c (maintenance_print_architecture): Make static.
3172 * signals/signals.c (_initialize_signals): Add declaration.
3173 * std-regs.c (_initialize_frame_reg): Add declaration.
3174 * jv-exp.y (push_variable): ISO C definition.
3175 (push_qualified_expression_name): Ditto.
3176 * memattr.c (_initialize_mem): Add declaration.
3177 * remote.c (remote_check_watch_resources): Make static.
3178 (remote_stopped_by_watchpoint): Make static.
3179 (remote_stopped_data_address): Make static.
3180 * d10v-tdep.c (nr_dmap_regs): Make static.
3181 (a0_regnum): Make static.
3182 (d10v_frame_unwind_cache): Make static.
3183 (d10v_frame_p): Make static.
3184 * osabi.c (show_osabi): Make static.
3185 (_initialize_gdb_osabi): Add extern declaration.
3186 * gdbtypes.c (make_qualified_type): Make static.
3187 (safe_parse_type): Make static.
3188 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3189 * macrotab.c (macro_bcache_free): Make static.
3190 * interps.c (interp_set_quiet): Make static.
3191 (interpreter_exec_cmd): Make static.
3192 * stack.h (select_frame_command): New file.
3193 * stack.c: Include "stack.h".
3194 (select_frame_command_wrapper): Delete function.
3195 (select_frame_command): Make global.
3196 * infcall.c: Include "infcall.h".
3197 * linespec.c: Include "linespec.h".
3198 * symfile.c (sections_overlap): Make static.
3199 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3200 * charset.c (_initialize_charset): Add missing prototype.
3201 * regcache.c (init_legacy_regcache_descr): Make static.
3202 (do_regcache_xfree): Make static.
3203 (regcache_xfer_part): Make static.
3204 (_initialize_regcache): Add missing prototype.
3205 * breakpoint.c (parse_breakpoint_sals): Make static.
3206 (breakpoint_sals_to_pc): Make static.
3207 * interps.h (clear_interpreter_hooks): ISO C declaration.
3208 * Makefile.in (stack_h): Define.
3209 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3210 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3211
a0f267c7
AC
32122003-06-08 Andrew Cagney <cagney@redhat.com>
3213
3214 * Makefile.in (d10v-tdep.o): Update dependencies.
3215 (SFILES): Add trad-frame.c.
3216 (trad_frame_h): Define.
3217 (COMMON_OBS): Add trad-frame.o.
3218 (trad-frame.o): Specify dependencies.
3219 * d10v-tdep.c: Include "trad-frame.h".
3220 (saved_regs_unwinder): Delete function.
3221 (d10v_frame_prev_register): Use trad_frame_prev_register.
3222 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3223 trad_frame", delete "regs" and "prev_sp".
3224 (prologue_find_regs): Use trad-frame.
3225 * trad-frame.h, trad-frame.c: New files.
3226
4538b4f4
MK
32272003-06-08 Mark Kettenis <kettenis@gnu.org>
3228
3229 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3230
a0273b2f
AF
32312003-06-07 Adam Fedor <fedor@gnu.org>
3232
3233 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3234 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3235 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3236 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3237 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3238 Use it.
3239
3a6c3343
AC
32402003-06-07 Andrew Cagney <cagney@redhat.com>
3241
3242 * symfile.h: Re-indent, clean up comments.
3243
b46e02f6
AC
32442003-06-07 Andrew Cagney <cagney@redhat.com>
3245
3246 * inferior.h (deprecated_write_sp): Replace
3247 generic_target_write_sp.
3248 * regcache.c (deprecated_write_sp): Replace
3249 generic_target_write_sp.
3250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3251 * vax-tdep.c (vax_gdbarch_init): Update.
3252 * v850-tdep.c (v850_gdbarch_init): Update.
3253 * sparc-tdep.c (sparc_gdbarch_init): Update.
3254 * sh-tdep.c (sh_gdbarch_init): Update.
3255 * s390-tdep.c (s390_gdbarch_init): Update.
3256 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3257 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3258 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3259 * mcore-tdep.c (mcore_gdbarch_init): Update.
3260 * m68k-tdep.c (m68k_gdbarch_init): Update.
3261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3262 * ia64-tdep.c (ia64_gdbarch_init): Update.
3263 * h8300-tdep.c (h8300_gdbarch_init): Update.
3264 * frv-tdep.c (frv_gdbarch_init): Update.
3265 * cris-tdep.c (cris_gdbarch_init): Update.
3266 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3267
a42e117c
AC
32682003-06-07 Andrew Cagney <cagney@redhat.com>
3269
3270 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3271 Assert that PC_REGNUM is valid.
3272 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3273
bd1ce8ba
AC
32742003-06-07 Andrew Cagney <cagney@redhat.com>
3275
3276 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3277 * gdbarch.h, gdbarch.c: Regenerate.
3278 * mn10300-tdep.c: Include "gdb_assert.h".
3279 (mn10300_read_fp): New function.
3280 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3281 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3282 * ia64-tdep.c: Include "gdb_assert.h".
3283 (ia64_read_fp): New function.
3284 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3285 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3286 * regcache.c (generic_target_read_sp): Delete function.
3287 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3288 * inferior.h (generic_target_read_sp): Delete declaration.
3289 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3290 generic_target_read_sp.
3291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3292 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3293 * sh-tdep.c (sh_gdbarch_init): Ditto.
3294 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3295 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3296
ec5cbaec
AC
32972003-06-07 Andrew Cagney <cagney@redhat.com>
3298
3299 * gdbarch.sh: Comment each field of startup_gdbarch.
3300 * gdbarch.h, gdbarch.c: Re-generate.
3301
cde9ea48
AC
33022003-06-07 Andrew Cagney <cagney@redhat.com>
3303
3304 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3305 * gdbarch.h, gdbarch.c: Re-generate.
3306 * regcache.c: Update comments on read_pc et.al.
3307 (generic_target_read_pc): Delete function.
3308 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3309 * inferior.h (generic_target_read_pc): Delete declaration.
3310 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3311 generic_target_read_pc.
3312 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3313 * sh-tdep.c (sh_gdbarch_init): Ditto.
3314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3316
9a90a780
AC
33172003-06-07 Andrew Cagney <cagney@redhat.com>
3318
3319 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3320 "index" with "special_local_sect". Use strcmp instead of STREQ.
3321 Append period to coments.
3322
a39a16c4
MM
33232003-06-06 Mark Mitchell <mark@codesourcery.com>
3324
3325 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3326 (elfstab_offset_sections): Likewise.
3327 * gdb-stabs.h (stab_section_info): Likewise.
3328 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3329 * objfiles.c (objfile_relocate): Likewise.
3330 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3331 * remote.c (get_offsets): Likewise.
3332 (remote_cisco_objfile_relocate): Likewise.
3333 * somread.c (som_symfile_offsets): Likewise.
3334 * symfile.c (alloc_section_addr_info): New function.
3335 (build_section_addr_info_from_section_tab): Use it.
3336 (free_section_addr_info): Adjust.
3337 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3338 (syms_from_objfile): Allocate local_addr dynamically.
3339 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3340 dynamically.
3341 (add_symbol_file_command): Allocate sect_opts dynamically.
3342 (reread_symbols): Avoid use of SECT_OFF_MAX.
3343 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3344 (alloc_section_addr_info): Declare it.
3345 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3346 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3347 dynamically.
3348 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3349
20c6c2f8
AC
33502003-06-06 Andrew Cagney <cagney@redhat.com>
3351
3352 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3353 (d10v_frame_unwind_cache): Do not set "return_pc".
3354
884a26c8
MS
33552003-06-06 Michael Snyder <msnyder@redhat.com>
3356
3357 * h8300-tdep.c: Make tidy (long lines).
3358
088ce440
ML
33592003-06-06 Michal Ludvig <mludvig@suse.cz>
3360
8ffd9b1b 3361 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3362 to regcache_collect().
3363
7d773d96
JB
33642003-06-05 J. Brobecker <brobecker@gnat.com>
3365
3366 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3367 pc_in_sigtramp multiarch method.
3368 (hppa_hpux_som_init_abi): Use it.
3369 (hppa_hpux_elf_init_abi): Likewise.
3370 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3371 macro has been multiarched.
3372 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3373 macro here, as hppa64 isn't multiarched yet.
3374
1df6926e
AC
33752003-06-05 Andrew Cagney <cagney@redhat.com>
3376
3377 * Makefile.in (value_h): Add $(frame_h).
3378 * value.h: Include "frame.h".
3379 (struct value): Replace "frame_addr" with "frame_id".
3380 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3381 * values.c (allocate_value): Use VALUE_FRAME_ID.
3382 (value_copy): Use VALUE_FRAME_ID.
3383 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3384 * valops.c (value_assign): Update. Use frame_find_by_id.
3385
6b53acc6
ML
33862003-06-05 Michal Ludvig <mludvig@suse.cz>
3387
3388 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3389 in each pass.
3390
4d9850d3
JJ
33912003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3392
3393 * thread-db.c (check_event): For create/death event breakpoints,
3394 loop through all messages to ensure that we read the message
3395 corresponding to the breakpoint we are at.
3396
8efca6ba
MS
33972003-06-04 Michael Snyder <msnyder@redhat.com>
3398
3399 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3400
0912c7f2
MK
34012003-06-04 Mark Kettenis <kettenis@gnu.org>
3402
3403 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3404 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3405 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3406 when handling .eh_frame sections.
3407
4e370325
JB
34082003-06-04 J. Brobecker <brobecker@gnat.com>
3409
3410 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3411 prepare_to_proceed procedure instead of the hppa-specific one.
3412 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3413
b757528f 34142003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3415
b757528f
JJ
3416 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3417 * config.in: Regenerated.
3418 * configure.in: Add test for syscall function and check for
3419 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3420 * configure: Regenerated.
3421 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3422 <sys/syscall.h>.
3423 (kill_lwp): New function that uses tkill syscall or
3424 uses kill, depending on whether threading model is nptl or not.
3425 All callers of kill() changed to use kill_lwp().
3426 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3427 see if all threads have already exited in the nptl model.
3428 (stop_and_resume_callback): New callback function used by the
3429 lin_lwp_wait thread exit handling code.
3430 (stop_wait_callback): Check for threads already having exited and
3431 delete such threads fromt the lwp list when discovered.
3432 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3433
b757528f
JJ
3434 Roland McGrath <roland@redhat.com>
3435 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3436 nptl libthread_db.
3437
087779b1
RH
34382003-06-03 Richard Henderson <rth@redhat.com>
3439
b21fd293
RH
3440 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3441 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3442 (alpha_sigtramp_frame_prev_register): Likewise.
3443 (alpha_heuristic_frame_prev_register): Likewise.
3444 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3445
8ffd9b1b 3446 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3447 alpha-specific register id names.
3448 (alpha_mdebug_frame_unwind_cache): Likewise.
3449 (alpha_mdebug_frame_prev_register): Likewise.
3450
baa490c4
RH
34512003-06-03 Richard Henderson <rth@redhat.com>
3452
3453 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3454 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3455 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3456 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3457 unwind routines.
3458 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3459 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3460 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3461
3462 * alpha-linux-tdep.c: Remove unnecessary includes.
3463 * Makefile.in (alpha-linux-tdep.o): Update.
3464
34652003-06-03 Richard Henderson <rth@redhat.com>
3466
3467 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3468 (alphabsd_fill_fpreg): Likewise.
3469
f534e522
JB
34702003-06-03 J. Brobecker <brobecker@gnat.com>
3471
3472 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3473 references to struct frame_info fields by calls to the equivalent
3474 accessors. Necessary now that frame_info is opaque.
3475
4035536b
JB
34762003-06-03 J. Brobecker <brobecker@gnat.com>
3477
3478 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3479 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3480 structure, field no longer exists.
3481
0bd79c5c
JB
34822003-06-03 J. Brobecker <brobecker@gnat.com>
3483
3484 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3485 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3486
37bb6d9f
JB
34872003-06-03 J. Brobecker <brobecker@gnat.com>
3488
3489 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3490 references to struct frame_info fields by calls to the equivalent
3491 accessors. Necessary now that frame_info is opaque.
3492
852ee05c
JB
34932003-06-03 J. Brobecker <brobecker@gnat.com>
3494
3495 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3496 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3497 structure, field no longer exists.
3498
7d58c67d
TR
34992003-06-03 Theodore A. Roth <troth@openavr.org>
3500
8ffd9b1b 3501 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3502 accumulation of the size of all registers instead of blindly using
3503 DEPRECATED_REGISTER_BYTES.
3504
0a48e7e8
MS
35052003-06-03 Michael Snyder <msnyder@redhat.com>
3506
3507 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3508 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3509 for h8300sx.
3510
9798ab0d
JB
35112003-06-03 J. Brobecker <brobecker@gnat.com>
3512
3513 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3514 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3515
00b037e2
AC
35162003-06-03 Andrew Cagney <cagney@redhat.com>
3517
3518 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3519 (sparc_convert_to_raw): Delete function.
3520 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3521 register_convert_to_virtual.
3522
043b2f77
JJ
35232003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3524
3525 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3526 layer if not dealing with a statically-linked threaded program.
3527
f43caff8
KW
35282003-06-03 Kris Warkentin <kewarken@qnx.com>
3529
3530 * solib.c (solib_open): Update comment to reflect actual search order.
3531
ae1e7417
AC
35322003-06-03 Andrew Cagney <cagney@redhat.com>
3533
3534 * frame.c (get_frame_memory_signed): New function.
3535 (get_frame_memory, get_frame_memory_unsigned): New function.
3536 (get_frame_arch): New function.
3537 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3538 (get_frame_memory, get_frame_unsigned_memory): Declare.
3539 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3540 get_frame_memory_unsigned and get_frame_arch.
3541 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3542
cb123844
RG
35432003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3544
3545 * MAINTAINERS (write after approval): Add myself.
3546
1bb792e9
JB
35472003-06-03 Jim Blandy <jimb@redhat.com>
3548
3549 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3550 elements of gregset_t are 64 bits each, but access registers
3551 are still 32 bits, so they're packed two per gregset_t
3552 element. Unpack/pack them properly.
3553
aee8d8ba
DC
35542003-06-02 David Carlton <carlton@bactrian.org>
3555
3556 * linespec.c (find_methods): Break out code into
3557 add_matching_methods and add_constructors.
3558 (add_matching_methods): New.
3559 (add_constructors): Ditto.
3560
bf7488d2
AC
35612003-06-02 Andrew Cagney <cagney@redhat.com>
3562
bf7488d2
AC
3563 * sparc-tdep.c (sparc_print_registers): Delete call to
3564 REGISTER_CONVERTIBLE.
3565 (sparc_gdbarch_init): Do not set register_convertible.
3566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3567 * frv-tdep.c (frv_gdbarch_init): Ditto.
3568 * cris-tdep.c (cris_gdbarch_init): Ditto.
3569
adedef68
EZ
35702003-06-02 Elena Zannoni <ezannoni@redhat.com>
3571
8ffd9b1b 3572 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3573 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3574 (syms_from_objfile): Ditto.
3575
650fcc91
AS
35762003-06-03 Andreas Schwab <schwab@suse.de>
3577
3578 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3579 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3580
df4a182b
RH
35812003-06-02 Richard Henderson <rth@redhat.com>
3582
3583 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3584 a member of all_reggroup.
3585
c483c494
RH
35862003-06-02 Richard Henderson <rth@redhat.com>
3587
3588 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3589 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3590 (alpha_lds, alpha_sts): New.
3591 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3592 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3593 restructure and fail for type sizes other than 4 or 8.
3594 (alpha_value_to_register): Similarly.
3595 (alpha_extract_return_value): Use alpha_sts.
3596 (alpha_store_return_value): Use alpha_lds.
3597 (alpha_gdbarch_init): Update hooks.
3598
b38b6be2
RH
35992003-06-02 Richard Henderson <rth@redhat.com>
3600
3601 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3602 regnum identifiers.
3603 (alpha_sigtramp_register_address): Likewise.
3604
98a8e1e5
RH
36052003-06-02 Richard Henderson <rth@redhat.com>
3606
3607 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3608 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3609 * alpha-tdep.h: Declare them.
3610
3611 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3612 Remove zerobuf. Don't error on UNIQUE.
3613 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3614 (ALPHA_REGSET_UNIQUE): Provide default.
3615 (supply_gregset): Use alpha_supply_int_regs.
3616 (fill_gregset): Use alpha_fill_int_regs.
3617 (supply_fpregset): Use alpha_supply_fp_regs.
3618 (fill_fpregset): Use alpha_fill_fp_regs.
3619 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3620 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3621 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3622 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3623 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3624 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3625
67dfac52
RH
36262003-06-02 Richard Henderson <rth@redhat.com>
3627
f75d70cc
RH
3628 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3629
67dfac52
RH
3630 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3631 (alpha_store_return_value): Likewise.
3632
0cf566ec
DC
36332003-06-02 David Carlton <carlton@math.stanford.edu>
3634
3635 * block.c (contained_in): Add 'const' to arguments.
3636 (block_function): Ditto.
3637 * block.h: Update declarations for block_function and
3638 contained_in.
3639
cdef89d0
DC
36402003-06-02 David Carlton <carlton@math.stanford.edu>
3641
3642 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3643 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3644 * p-valprint.c (pascal_val_print): Ditto.
3645 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3646
72667056
RH
36472003-06-02 Richard Henderson <rth@redhat.com>
3648
98a8e1e5
RH
3649 * alpha-tdep.c (alpha_push_dummy_call): Use
3650 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3651
8ffd9b1b 3652 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3653 sign-extension of 32-bit values.
3654 (alpha_store_return_value): Similarly.
0ede8eca 3655
98a8e1e5
RH
3656 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3657 (alpha_extract_return_value): Likewise.
3658 (alpha_store_return_value): Likewise.
7b5e1cb3 3659
98a8e1e5
RH
3660 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3661 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3662
98a8e1e5
RH
3663 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3664 (alpha_extract_struct_value_address): Likewise.
3665 (alpha_store_return_value): Likewise.
3666 (alpha_store_struct_return): Remove.
3667 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3668
98a8e1e5
RH
3669 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3670 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3671 macros where appropriate.
3672 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3673 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3674
98a8e1e5
RH
3675 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3676 for SP, GP; void_func_ptr for PC; non-language-specific types
3677 for all others.
3678 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3679
6dd77b81
RH
36802003-06-02 Richard Henderson <rth@redhat.com>
3681
3682 * top.h (lim_at_start): Declare.
3683 * main.c (captured_main): Set it.
3684 * top.c (lim_at_start): Define.
3685 (command_loop): Use it instead of &environ.
3686 * event-top.c (command_handler): Likewise.
3687
f4dbdb54
JT
36882003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3689
3690 * mipsnbsd-tdep.c: Update copyright years.
3691 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3692
8f285956
RH
36932003-06-01 Richard Henderson <rth@redhat.com>
3694
98a8e1e5
RH
3695 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3696 (alpha-linux-tdep.o): Update dependencies.
3697 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3698 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3699
615967cb
RH
37002003-06-01 Richard Henderson <rth@redhat.com>
3701
98a8e1e5
RH
3702 * alpha-tdep.c (alpha_register_reggroup_p): New.
3703 (alpha_gdbarch_init): Register it.
615967cb 3704
b59661bd
AC
37052003-06-02 Andrew Cagney <cagney@redhat.com>
3706
3707 * dwarfread.c: Eliminate "register"
3708 (decode_die_type): Eliminate assignment within "if".
3709 (struct_type, decode_array_element_type): Ditto.
3710 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3711 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3712 (decode_modified_type, completedieinfo): Ditto.
3713 * block.c: Eliminate "register".
3714 (blockvector_for_pc_sect): Eliminate assignment within "if".
3715 * cp-support.h (struct symbol): Opaque declaration.
3716 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3717
5ef165c2
RH
37182003-06-01 Richard Henderson <rth@redhat.com>
3719
98a8e1e5
RH
3720 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3721 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3722
143985b7
AF
37232003-06-01 Adam Fedor <fedor@gnu.org>
3724
3725 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3726 * gdbarch.[ch]: Regenerate.
3727 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3728 (hppa_gdbarch_init): Set it in the gdbarch vector.
3729 * i386-tdep.c (i386_fetch_pointer_argument): New
3730 (i386_gdbarch_init): Set it into gdbarch.
3731 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3732 (rs6000_gdbarch_init): Set it in gdbarch.
3733 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3734 (sparc_gdbarch_init): Set it in gdbarch.
3735
ae0167b9
AC
37362003-06-01 Andrew Cagney <cagney@redhat.com>
3737
7c0b4a20
AC
3738 * defs.h (extract_address): Delete declaration.
3739 * findvar.c (extract_address): Delete function.
3740 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3741 extract_address with the inline equivalent,
3742 extract_unsigned_integer.
3743 (xstormy16_extract_struct_value_address): Ditto.
3744 (xstormy16_pointer_to_address): Ditto.
3745 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3746 * v850-tdep.c (v850_push_arguments): Ditto.
3747 (v850_extract_return_value): Ditto.
3748 (v850_extract_struct_value_address): Ditto.
3749 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3750 (sparcnbsd_get_longjmp_target_64): Ditto.
3751 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3752 (get_longjmp_target): Ditto.
3753 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3754 (sh64_extract_struct_value_address): Ditto.
3755 (sh_push_arguments): Ditto.
3756 (sh64_push_arguments): Ditto.
3757 * remote-vxsparc.c (vx_read_register): Ditto.
3758 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3759 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3760 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3761 * mipsv4-nat.c (get_longjmp_target): Ditto.
3762 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3763 * mips-nat.c (get_longjmp_target): Ditto.
3764 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3765 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3766 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3767 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3768 * irix5-nat.c (get_longjmp_target): Ditto.
3769 * irix4-nat.c (get_longjmp_target): Ditto.
3770 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3771 (ia64_push_arguments): Ditto.
3772 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3773 * h8300-tdep.c (h8300_push_arguments): Ditto.
3774 (h8300_store_return_value): Ditto.
3775 (h8300_extract_struct_value_address): Ditto.
3776 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3777 (frv_push_arguments): Ditto.
3778 * avr-tdep.c (avr_pointer_to_address): Ditto.
3779 (avr_push_arguments): Ditto.
3780 * arm-tdep.c (arm_push_dummy_call): Ditto.
3781 (arm_get_longjmp_target): Ditto.
3782 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3783 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3784 (alpha_get_longjmp_target): Ditto.
3785
ae0167b9
AC
3786 * solib-irix.c (extract_mips_address): Inline extract_address,
3787 replacing it with extract_signed_integer.
3788 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3789 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3790 (first_link_map_member, open_symbol_file_object): Ditto.
3791 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3792 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3793 (LM_NEXT, LM_NAME): Ditto.
3794
44d88583
RH
37952003-06-01 Richard Henderson <rth@redhat.com>
3796
98a8e1e5
RH
3797 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3798 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3799 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3800 (alpha_cannot_store_register): Likewise.
3801 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3802 * alpha-nat.c (supply_gregset): Likewise.
3803 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3804
310e9b6a
AC
38052003-06-01 Andrew Cagney <cagney@redhat.com>
3806
3807 * infcall.c (call_function_by_hand): Update comment on
3808 DEPRECATED_DUMMY_WRITE_SP.
3809
3810 * mips-tdep.c (mips_gdbarch_init): Do not set
3811 deprecated_dummy_write_sp.
3812 (mips_eabi_push_dummy_call): Set the SP register.
3813 (mips_o64_push_dummy_call): Set the SP register.
3814 (mips_o32_push_dummy_call): Set the SP register.
3815 (mips_n32n64_push_dummy_call): Set the SP register.
3816
5ab84872
RH
38172003-06-01 Richard Henderson <rth@redhat.com>
3818
98a8e1e5
RH
3819 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3820 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3821 (supply_gregset): Likewise.
3822 * alpha-tdep.c (alpha_store_return_value): Likewise.
3823 (alpha_get_longjmp_target): Likewise.
3824 (alpha_register_name): Constify array.
3825 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3826 deprecated_register_size, deprecated_register_bytes,
3827 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3828 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3829 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3830
09cc52fd
RH
38312003-06-01 Richard Henderson <rth@redhat.com>
3832
3833 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3834 from arg_reg_buffer to regcache to avoid double conversion.
3835
c7f16359
MK
38362003-06-01 Mark Kettenis <kettenis@gnu.org>
3837
3838 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3839 SP_REGNUM.
3840 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3841 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3842
7131cb6e
RH
38432003-06-01 Richard Henderson <rth@redhat.com>
3844
98a8e1e5
RH
3845 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3846 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3847
f3e0f90b
RH
38482003-06-01 Richard Henderson <rth@redhat.com>
3849
98a8e1e5
RH
3850 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3851 not overlapping PC_REGNUM.
f3e0f90b 3852
c88e30c0
RH
38532003-06-01 Richard Henderson <rth@redhat.com>
3854
98a8e1e5
RH
3855 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3856 alpha_push_arguments. Don't dump argument register data to
3857 the target stack. Fix float and 128-bit long double semantics.
3858 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3859 (alpha_fix_call_dummy): Remove.
3860 (alpha_call_dummy_words): Remove.
3861 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3862
f1a559ae
RH
38632003-06-01 Richard Henderson <rth@redhat.com>
3864
3865 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3866
5e045346
AC
38672003-06-01 Andrew Cagney <cagney@redhat.com>
3868
95404a3e
AC
3869 * mips-tdep.c (is_mips16_addr): New function.
3870 (make_mips16_addr, unmake_mips16_addr): New functions.
3871 (pc_is_mips16, mips_fetch_instruction): Use.
3872 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3873 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3874 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3875 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3876 TARGET_MIPS.
3877 * config/mips/tm-mips.h: Update copyright.
3878 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3879 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3880 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3881 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3882 (TM_PRINT_INSN_MACH): Delete.
3883 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3884
5e045346
AC
3885 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3886 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3887 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3888 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3889 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3890 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3891 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3892 mips*-*-riscos* and mips*-*-sysv* onto mips.
3893 * config/mips/mips64.mt: New file.
3894 * config/mips/mips.mt: New file.
3895 * config/mips/littlemips.mt: Delete file.
3896 * config/mips/decstation.mt: Delete file.
3897 * config/mips/vr4300el.mt: Delete file.
3898 * config/mips/vr5000el.mt: Delete file.
3899 * config/mips/vr5000.mt: Delete file.
3900 * config/mips/vr4100.mt: Delete file.
3901 * config/mips/vr4xxxel.mt: Delete file.
3902 * config/mips/vr4300.mt: Delete file.
3903 * config/mips/vr4xxx.mt: Delete file.
3904 * config/mips/bigmips.mt: Delete file.
3905 * config/mips/bigmips64.mt: Delete file.
3906 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3907 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3908 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3909 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3910 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3911 "tm-bigmips.h".
3912 * config/mips/tm-irix3.h: Ditto.
3913 * config/mips/tm-mipsv4.h: Ditto.
3914 * config/mips/tm-embed.h: Ditto.
3915 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3916 "tm-bigmips64.h".
3917 * config/mips/tm-vr5000el.h: Delete file.
3918 * config/mips/tm-tx39l.h: Delete file.
3919 * config/mips/tm-vr4300el.h: Delete file.
3920 * config/mips/tm-vr4xxxel.h: Delete file.
3921 * config/mips/tm-vr4300.h: Delete file.
3922 * config/mips/tm-vr4100.h: Delete file.
3923 * config/mips/tm-vr4xxx.h: Delete file.
3924 * config/mips/tm-vr5000.h: Delete file.
3925 * config/mips/tm-embedl64.h: Delete file.
3926 * config/mips/tm-embedl.h: Delete file.
3927 * config/mips/tm-embed64.h: Delete file.
3928 * config/mips/tm-bigmips64.h: Delete file.
3929 * config/mips/tm-bigmips.h: Delete file.
3930
2473a4a9
MK
39312003-06-01 Mark Kettenis <kettenis@gnu.org>
3932
97a5b208
MK
3933 Fix gdb/1216.
3934 * shnbsd-nat.c: Include "sh-tdep.h".
3935
2473a4a9
MK
3936 From Richard Henderson <rth@redhat.com>:
3937 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3938
e0f7ec59
AC
39392003-05-31 Andrew Cagney <cagney@redhat.com>
3940
3941 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3942 forward declaration.
3943 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3944 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3945 (mips_find_saved_regs): Use set_reg_offset.
3946 (mips_frame_init_saved_regs): Delete function.
3947 (mips_pop_frame): Call mips_find_saved_regs instead of
3948 DEPRECATED_FRAME_INIT_SAVED_REGS.
3949
68dcc709
AC
39502003-05-31 Andrew Cagney <cagney@redhat.com>
3951
3952 * mips-tdep.c (mips_gdbarch_init): Do not set
3953 deprecated_max_register_raw_size, register_virtual_size, and
3954 deprecated_max_register_virtual_size.
3955
cfc14b3a
MK
39562003-05-31 Mark Kettenis <kettenis@gnu.org>
3957
6405b0a6
MK
3958 * i386-tdep.c: Include "dwarf2-frame.h".
3959 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3960 * Makefile.in (i386-tdep.o): Update dependencies.
3961
cfc14b3a
MK
3962 * dwarf2-frame.c, dwarf2-frame.h: New files.
3963 * Makefile.in (SFILES): Add dwarf2-frame.c.
3964 (dwarf2_frame_h): Define.
3965 (COMMON_OBS): Add dwarf2-frame.o.
3966 (dwarf2-frame.o): Add dependencies.
3967
6a2751d2
AJ
39682003-05-31 Andreas Jaeger <aj@suse.de>
3969
3970 * x86-64-linux-nat.c: Fix comment.
3971
1c3545ae
MK
39722003-05-31 Mark Kettenis <kettenis@gnu.org>
3973
10f93086
MK
3974 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3975 function signature.
3976
1c3545ae
MK
3977 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3978 have a sigcontext_addr handler.
3979 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3980 sigcontext_addr handler.
3981
e11c53d2
AC
39822003-05-31 Andrew Cagney <cagney@redhat.com>
3983
3984 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3985 (print_fp_register_row): Replace do_fp_register_row.
3986 (mips_print_fp_register): Add "file" and "frame" parameters.
3987 (mips_print_register): Add "file" and "frame" parameters.
3988 (mips_print_registers_info): Replace mips_do_registers_info.
3989 (mips_gdbarch_init): Set print_registers_info instead of
3990 deprecated_do_registers_info.
3991 (mips_read_fp_register_single): Add "frame" parameter.
3992 (mips_read_fp_register_double): Add "frame" parameter.
3993
a3386186
MK
39942003-05-31 Mark Kettenis <kettenis@gnu.org>
3995
70913449
MK
3996 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3997 Fixes a bug where GDB would print the wrong register names for
3998 targets without SSE.
3999
2b5e0749
MK
4000 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4001 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4002 registers.
4003
4004 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4005 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4006 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4007 TDEP->sc_sp_offset.
4008
a3386186
MK
4009 From Michal Ludvig <mludvig@suse.cz>:
4010 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4011 and `sc_num_regs'.
4012 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4013 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4014 I386_ST0_REGNUM): Move here from...
4015 * i386-tdep.c: ... here.
4016 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4017 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4018 registers if possible.
4019 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4020 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4021 Remove variables.
4022 (i386bsd_sc_reg_offset): New variable.
4023 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4024 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4025 TDEP->sc_sp_offset.
4026 (i386fbsd_sc_reg_offset): New variable.
4027 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4028 TDEP->sc_num_regs.
4029 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4030 variables.
4031 (i386fbsd4_sc_reg_offset): New variable.
4032 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4033 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4034 TDEP->sc_sp_offset.
4035 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4036 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4037 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4038 Remove variables.
4039 (i386nbsd_sc_reg_offset): New variable.
4040 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4041 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4042 TDEP->sc_sp_offset.
4043 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4044 Remove variables.
4045 (i386obsd_sc_reg_offset): New variable.
4046 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4047 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4048 TDEP->sc_sp_offset.
4049 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4050 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4051 for frame pointer offset in `struct sigcontext'.
4052
25ab4790
AC
40532003-05-31 Andrew Cagney <cagney@redhat.com>
4054
4055 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4056 architecture methods call_dummy_words, sizeof_call_dummy_words,
4057 push_return_address, store_struct_return, and fix_call_dummy. Set
4058 push_dummy_call instead of deprecated_push_arguments.
4059 (mips_store_struct_return): Delete function.
4060 (mips_fix_call_dummy): Delete function.
4061 (mips_push_return_address): Delete function.
4062 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4063 RA_REGNUM and T9_REGNUM.
4064 (mips_n32n64_push_dummy_call): Ditto for
4065 mips_n32n64_push_arguments.
4066 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4067 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4068
6a65450a
AC
40692003-05-31 Andrew Cagney <cagney@redhat.com>
4070
4071 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4072 "dummy_addr" to "bp_addr".
4073 * infcall.c (call_function_by_hand): Pass "funaddr" to
4074 gdbarch_push_dummy_call.
4075 * gdbarch.h, gdbarch.c: Re-generate.
4076 * i386-tdep.c (i386_push_dummy_call): Update.
4077 * arm-tdep.c (arm_push_dummy_call): Update.
4078 * d10v-tdep.c (d10v_push_dummy_call): Update.
4079
c4f35dd8
MK
40802003-05-31 Mark Kettenis <kettenis@gnu.org>
4081
4082 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4083 variable declarations.
4084 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4085 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4086 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4087 x86_64_init_frame_pc, x86_64_init_frame_pc,
4088 x86_64_function_has_prologue): Remove prototypes.
4089 (X86_64_NUM_GREGS): New define.
4090 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4091 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4092 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4093 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4094 XMM1_REGNUM): Remove defines.
4095 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4096 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4097 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4098 X86_64_XMM1_REGNUM): New defines.
4099 (struct x86_64_register_info): Renamed from `struct
4100 register_info'. Remove `size' member.
4101 (x86_64_register_info_table): Remove variable.
4102 (x86_64_register_info): New variable.
4103 (X86_64_NUM_REGS): New define.
4104 (X86_64_NUM_GREGS): Remove define.
4105 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4106 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4107 Remove variables.
4108 (x86_54_dwarf2_reg_to_regnum): Remove function.
4109 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4110 (x86_64_dwarf_reg_to_regnum): New function.
4111 (x86_64_register_name): Rewrite.
4112 (x86_64_register_raw_size): Remove function.
4113 (x86_64_register_byte_table): Remove variable.
4114 (x86_64_register_byte): Remove function.
4115 (x86_64_register_virtual_type): Remove function.
4116 (x86_64_register_type): New function.
4117 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4118 x86_64_register_convert_to_raw): Remove functions.
4119 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4120 (x86_64_use_struct_convention): Make static. Adjust for renamed
4121 defines.
4122 (x86_64_frame_init_saved_regs): Remove function.
4123 (x86_64_push_arguments): Make static. Change to accept a regcache
4124 as argument.
4125 (x86_64_store_return_value, x86_64_extract_return_value): Make
4126 static. Rewrite based on i386 counterparts.
4127 (x86_64_push_dummy_call): New function.
4128 (X86_64_NUM_SAVED_REGS): New define.
4129 (x86_64_register_number): Remove function.
4130 (x86_64_store_struct_return): Remove function.
4131 (x86_64_frameless_function_invocation,
4132 x86_64_function_has_prologue): Remove functions.
4133 (PROLOG_BUFSIZE): Remove define.
4134 (struct x86_64_frame_cache): New structure.
4135 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4136 x86_64_frame_cache, x86_64_frame_this_id,
4137 x86_64_frame_prev_register, x86_64_frame_p,
4138 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4139 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4140 functions.
4141 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4142 variables.
4143 (x86_64_skip_prologue): Rewrite in terms of
4144 x86_64_analyze_prologue.
4145 (x86_64_frame_base_address): New function.
4146 (x86_64_frame_base): New variable.
4147 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4148 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4149 set deprecated_fp_regnum, deprecated_register_size,
4150 deprecated_register_bytes, register_raw_size, register_byte,
4151 register_virtual_type, register_convertiable,
4152 register_convert_to_virtual, convert_to_raw,
4153 deprecated_get_saved_register, deprecated_target_read_fp,
4154 deprecated_push_arguments, deprecated_push_return_address,
4155 deprecated_pop_frame, deprecated_store_struct_return,
4156 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4157 frameless_function_invocation, deprecated_frame_saved_pc,
4158 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4159 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4160 deprecated_init_frame_pc and virtual_frame_pointer. Call
4161 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4162 and x86_64_frame_p. Call frame_base_set_default to register
4163 x86_64_frame_base.
4164 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4165 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4166 (_initialize_x86_64_tdep): Remove function.
4167 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4168 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4169 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4170 define.
4171 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4172 (x86_64_linux_sigcontext_addr): Rewrite.
4173 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4174 x86_64_linux_frame_saved_pc): Remove functions.
4175 (x86_64_linux_pc_in_sigtramp): Renamed from
4176 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4177 trampoline.
4178 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4179 Remove_functions.
4180 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4181 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4182 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4183 (x86_64_regmap): Rename to regmap.
4184 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4185 x86_64_num_gregs.
4186 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4187 x86_64_regmap.
4188 (x86_64_fxsave_offset): Remove function.
4189 (supply_fpregset): Simply call x86_64_supply_fxsave.
4190 (fill_fpregset): Simply call x86_64_fill_fxsave.
4191 (fetch_inferior_registers, store_inferior_registers): Avoid
4192 asignment in if-statement.
4193 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4194 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4195 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4196 (fetch_core_registers): Remove function.
4197 (linux_elf_core_fns): Remove.
4198 (offsetoff): Don't define.
4199 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4200 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4201 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4202 add core-regset.o.
4203 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4204 protection against multiple includes instead of NM_X86_64_h. Add
4205 various comments. Include "config/nm-linux.h". Don't include
4206 <signal.h>.
4207 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4208 GET_THREAD_SIGNALS): Remove defines.
4209 (x86_64_register_u_addr, kernel_u_size,
4210 lin_thread_get_thread_signals): Remove prototypes.
4211 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4212 [HAVE_LINK_H]: Don't include "solib.h".
4213 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4214 * config/i386/tm-x86-64linux.h: Fix comments.
4215 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4216 x86-64-tdep.o): Update dependencies.
4217
c25083af
AC
42182003-05-30 Andrew Cagney <cagney@redhat.com>
4219
c8f55a7b
AC
4220 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4221 Change parameter type to a "struct regcache *".
4222
c25083af
AC
4223 * gdbarch.sh: Regardless of the multi-arch level, always define
4224 the macro when not already defined.
4225 * gdbarch.h, gdbarch.c: Re-generate.
4226
fbe586ae
RH
42272003-05-30 Richard Henderson <rth@redhat.com>
4228
4229 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4230 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4231 (alpha_mdebug_frame_this_id): Likewise.
4232 (alpha_mdebug_frame_prev_register): Likewise.
4233 (alpha_mdebug_frame_base_address): Likewise.
4234 (alpha_mdebug_frame_locals_address): Likewise.
4235 (alpha_mdebug_frame_args_address): Likewise.
4236 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4237 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4238 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4239 loop increment.
4240 (alpha_heuristic_frame_this_id): Make static.
4241 (alpha_heuristic_frame_prev_register): Likewise.
4242 (alpha_heuristic_frame_base_address): Likewise.
4243 * alpha-tdep.h: Update.
4244
acd5c798
MK
42452003-05-30 Mark Kettenis <kettenis@gnu.org>
4246
4247 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4248 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4249 defenitions.
4250 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4251 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4252 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4253 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4254 I386_ST0_REGNUM): New defines.
4255 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4256 codestream_get): Remove define.
4257 (codestream_next_addr, condestream_addr, condestream_buf,
4258 codestream_off, codestream_cnt): Remove variables.
4259 (codestream_fill, codestream_seek, codestream_read): Remove
4260 functions.
4261 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4262 functionality.
4263 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4264 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4265 i386_frame_saved_pc, i386_saved_pc_after_call,
4266 i386_frame_num_args, i386_frame_init_saved_regs,
4267 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4268 i386_push_arguments): Remove functions.
4269 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4270 functionality. Use i386_analyze_prologue instead of
4271 i386_get_frame_setup.
4272 (I386_NUM_SAVED_REGS): New define.
4273 (struct i386_frame_cache): New structure.
4274 (i386_alloc_frame_cache, i386_analyze_struct_return,
4275 i386_skip_probe, i386_analyze_frame_setup,
4276 i386_analyze_register_saves, i386_analyze_prologue,
4277 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4278 i386_frame_prev_register, i386_sigtramp_frame_cache,
4279 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4280 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4281 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4282 New functions.
4283 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4284 New variables.
4285 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4286 I386_EAX_REGNUM and I386_EDX_REGNUM.
4287 (i386_extract_return_value, i386_store_return_value): Use
4288 I386_ST0_REGNUM where appropriate.
4289 (i386_extract_struct_value_address): Rewrite to use extract_address.
4290 (i386_svr4_pc_in_sigtramp): Add comment.
4291 (i386_svr4_sigcontext_addr): Rewrite.
4292 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4293 TDEP->sc_sp_offset.
4294 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4295 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4296 of new defines. Set push_dummy_call, don't set
4297 deprecated_push_arguments, deprecated_push_return_address,
4298 deprecated_pop_frame. Don't set parm_boundary. Don't set
4299 deprecated_frame_chain, deprecated_frame_saved_pc,
4300 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4301 save_dummy_frame_tos, unwind_pc. Call
4302 frame_unwind_append_predicate and frame_base_set_default. Don't
4303 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4304 Don't set frameless_function_invocation. Don't set
4305 deprecated_register_bytes, deprecated_register_size,
4306 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4307 * i386-linux-tdep.c: Fix formatting in some comments.
4308 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4309 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4310 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4311 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4312 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4313 redundant parentheses.
4314 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4315 (i386_linux_sigcontext_addr): Use it. Rewrite.
4316 (find_minsym_and_objfile): Change name of second argument.
4317 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4318 changed. Use frame_pc_unwind instead of
4319 DEPRECATED_SAVED_PC_AFTER_CALL.
4320 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4321 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4322 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4323 unwinder.
4324 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4325 "dummy-frame.h".
4326 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4327 (_initialize_i386_cygwin_tdep): New prototype.
4328 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4329 deprecated_frame_chain_valid.
4330 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4331 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4332 Rely on the SVR4 defaults.
4333 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4334 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4335
c89b70f1
AC
43362003-05-30 Andrew Cagney <cagney@redhat.com>
4337
4338 * infcall.c (call_function_by_hand): Always call
4339 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4340
85b32d22
RH
43412003-05-30 Richard Henderson <rth@redhat.com>
4342
c89b70f1
AC
4343 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4344 increment.
85b32d22 4345
bfe51b1e
JB
43462003-05-29 Jim Blandy <jimb@redhat.com>
4347
4348 Use gdbarch methods for solib stuff on PowerPC Linux.
4349 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4350 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4351 show through.
4352 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4353 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4354 giving the same effect as the #definitions above.
4355
1abf022c
AF
43562003-05-29 Adam Fedor <fedor@gnu.org>
4357
4358 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4359 (find_implementation_from_class): Replace it with the standard
4360 case i.e. do nothing.
4361
d2427a71
RH
43622003-05-29 Richard Henderson <rth@redhat.com>
4363
4364 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4365 (alpha_linux_sigtramp_offset): Use it. Make static.
4366 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4367 update for new frame model.
4368 * alpha-mdebug-tdep.c: New file.
4369 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4370 (alpha_osf1_init_abi): Install it.
4371 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4372 (linked_proc_desc_table): Remove.
4373 (alpha_frame_past_sigtramp_frame): Remove.
4374 (alpha_dynamic_sigtramp_offset): Remove.
4375 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4376 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4377 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4378 (push_sigtramp_desc): Remove.
4379 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4380 (alpha_cannot_store_register): Likewise.
4381 (alpha_sigcontext_addr): Remove.
4382 (alpha_find_saved_regs): Remove.
4383 (alpha_frame_init_saved_regs): Remove.
4384 (alpha_init_frame_pc_first): Remove.
4385 (read_next_frame_reg): Remove.
4386 (alpha_frame_saved_pc): Remove.
4387 (alpha_saved_pc_after_call): Remove.
4388 (temp_proc_desc, temp_saved_regs): Remove.
4389 (alpha_about_to_return): Remove.
4390 (cached_proc_desc): Remove.
4391 (alpha_frame_chain): Remove.
4392 (alpha_print_extra_frame_info): Remove.
4393 (alpha_init_extra_frame_info): Remove.
4394 (alpha_frame_locals_address): Remove.
4395 (alpha_frame_args_address): Remove.
4396 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4397 (alpha_push_dummy_frame): Remove.
4398 (alpha_pop_frame): Remove.
4399 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4400 (alpha_read_insn): New.
4401 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4402 for different insn encodings.
4403 (alpha_in_lenient_prologue): Remove.
4404 (struct alpha_sigtramp_unwind_cache): New.
4405 (alpha_sigtramp_frame_unwind_cache): New.
4406 (alpha_sigtramp_register_address): New.
4407 (alpha_sigtramp_frame_this_id): New.
4408 (alpha_sigtramp_frame_prev_register): New.
4409 (alpha_sigtramp_frame_unwind): New.
4410 (alpha_sigtramp_frame_p): New.
4411 (struct alpha_heuristic_unwind_cache): New.
4412 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4413 don't count nop insns that occur between functions.
4414 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4415 heuristic_proc_desc, but without the mdebug wrapping.
4416 (alpha_heuristic_frame_this_id): New.
4417 (alpha_heuristic_frame_prev_register): New.
4418 (alpha_heuristic_frame_unwind): New.
4419 (alpha_heuristic_frame_p): New.
4420 (alpha_heuristic_frame_base_address): New.
4421 (alpha_heuristic_frame_base): New.
4422 (alpha_unwind_dummy_id): New.
4423 (alpha_unwind_pc): New.
4424 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4425 frame related deprecated initializations; install replacements.
4426 (alpha_dump_tdep): Remove.
4427 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4428 (alpha_read_insn, alpha_after_prologue,
4429 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4430 alpha_heuristic_frame_prev_register,
4431 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4432 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4433 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4434 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4435
93ec1121
AC
44362003-05-29 Andrew Cagney <cagney@redhat.com>
4437
4438 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4439 dependant on the availability of ASSERT_FUNCTION.
4440 (ASSERT_FUNCTION): Do not define when there is no function name.
4441
98f08d3d
KB
44422003-05-29 Kevin Buettner <kevinb@redhat.com>
4443
4444 From Jimi X <jimix@watson.ibm.com>:
4445 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4446
0897f59b
JB
44472003-05-28 Jim Blandy <jimb@redhat.com>
4448
4449 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4450 argument to ptrace to int; the system headers should give it the
4451 right type, and pointers don't fit in ints on powerpc64-*-*.
4452
14898363
L
44532003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4454
4455 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4456 DW_TAG_catch_block.
4457
a7a48797
EZ
44582003-05-26 Elena Zannoni <ezannoni@redhat.com>
4459
4460 * stabsread.c (dbx_lookup_type): Make static.
4461 (read_type): Ditto.
4462 (add_undefined_type): Ditto.
4463 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4464 not export.
4465
f5479e9c
EZ
44662003-05-26 Elena Zannoni <ezannoni@redhat.com>
4467
4468 * hpread.c (hpread_has_name): Make static.
4469 (hpread_psymtab_to_symtab): Ditto.
4470 (file_exists): Ditto.
4471 (hpread_call_pxdb): Ditto.
4472 (hpread_pxdb_needed): Ditto.
4473 (hpread_quick_traverse): Ditto.
4474 (hpread_get_header): Ditto.
4475 (hpread_get_lntt): Ditto.
4476 (hpread_get_slt): Ditto.
4477 (class_of): Ditto.
4478
eb2e12d7
AS
44792003-05-25 Andreas Schwab <schwab@suse.de>
4480
78bf922a
AS
4481 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4482 stack_align and deprecated_extra_stack_alignment_needed.
4483 (m68k_stack_align): Delete.
4484
eb2e12d7
AS
4485 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4486 (m68k_register_virtual_size): Likewise.
4487 (altos_skip_prologue): Remove obsolete function.
4488 (isi_frame_num_args): Likewise.
4489 (news_frame_num_args): Likewise.
4490 (m68k_fix_call_dummy): Make static.
4491 (m68k_push_dummy_frame): Likewise.
4492 (m68k_pop_frame): Likewise.
4493 (m68k_skip_prologue): Likewise.
4494 (m68k_frame_init_saved_regs): Likewise.
4495 (m68k_saved_pc_after_call): Likewise.
4496 (m68k_get_longjmp_target): Make multi-arch.
4497 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4498 structure. Register m68k_get_longjmp_target if enabled.
4499 * m68k-tdep.h (struct gdbarch_tdep): Define.
4500 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4501
4502 * Makefile.in (config.status): Also depend on configure.tgt
4503 and configure.host.
4504 (m68klinux-tdep.o): Update dependencies.
4505 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4506 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4507 (M68K_LINUX_JB_PC): Define.
4508 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4509 and take additional parameter.
4510 (m68k_linux_sigtramp_saved_pc): Update.
4511 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4512 m68k_linux_pc_in_sigtramp, in_plt_section,
4513 find_solib_trampoline_target.
4514 * config/m68k/tm-linux.h: Don't include any tm headers.
4515 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4516 (JB_ELEMENT_SIZE): Likewise.
4517 (JB_PC): Likewise.
4518 (GET_LONGJMP_TARGET): Likewise.
4519 (IN_SIGTRAMP): Likewise.
4520 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4521
eb2c22dc
MK
45222003-05-25 Mark Kettenis <kettenis@gnu.org>
4523
4524 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4525 (sparc32_push_arguments): Re-implement by calling
4526 sparc32_do_push_arguments.
4527
44b7b84e
MK
45282003-05-25 Mark Kettenis <kettenis@gnu.org>
4529
4530 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4531 SPARC_O1_REGNUM): New defines.
4532 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4533 (sparc32_store_return_value): New function.
4534 (sparc_extract_struct_value_address): Rewrite to operate on a
4535 regcache.
4536 (sparc_gdbarch_init): Don't set
4537 deprecated_extract_struct_value_address. Set
4538 extract_struct_value_address instead. Don't set
4539 deprecated_extract_return_value and deprecated_store_return_value
4540 for 32-bit targets. Set extract_return_value and
4541 store_return_value instead.
4542 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4543 DEPRECTAED_EXTRACT_RETURN_VALUE,
4544 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4545 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4546 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4547 (sparc_store_return_value): Remove prototype.
4548 (sparc32_store_return_value): New prototype.
4549 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4550 Adjust prototypes.
4551
f6ad61e3
MK
45522003-05-24 Mark Kettenis <kettenis@gnu.org>
4553
4554 * sparcnbsd-tdep.c: Include "gdb_string.h".
4555
b276f1bb
AC
45562003-05-23 Andrew Cagney <cagney@redhat.com>
4557
4558 * p-valprint.c (pascal_val_print): Replace extract_address with
4559 the inline equivalent extract_unsigned_integer.
4560 * jv-valprint.c (java_value_print): Ditto.
4561 * ada-valprint.c (ada_val_print_1): Ditto.
4562 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4563
e76c5fcc
TR
45642003-05-23 Theodore A. Roth <troth@openavr.org>
4565
4566 * blockframe.c (frameless_look_for_prologue): Remove unused
4567 after_prologue variable.
4568
2cdd89cb
MK
45692003-05-23 Mark Kettenis <kettenis@gnu.org>
4570
4571 * blockframe.c (get_pc_function_start): Rewrite to avoid
4572 asignments in if-statements.
4573
182d43bc
EZ
45742003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4575
4576 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4577 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4578 files, don't relocate absolute symbols (and do use mst_abs).
4579
e8f3fcdd
AC
45802003-05-23 Andrew Cagney <cagney@redhat.com>
4581
4582 * objc-lang.c: Include "gdb_assert.h".
4583 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4584 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4585 (gdb_check, gdb_check_fatal): Delete functions.
4586 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4587 gdb_assert.
4588 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4589 * Makefile.in (objc-lang.o): Update dependencies.
4590
3c23e6fb
ILT
45912003-05-22 Ian Lance Taylor <ian@airs.com>
4592
4593 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4594 with fprintf_filtered, not fprintf_unfiltered.
4595
af1342ab
AC
45962003-05-22 Andrew Cagney <cagney@redhat.com>
4597
4598 * stack.c (frame_info): Inline extract_address, replacing it with
4599 extract_unsigned_integer.
4600 * findvar.c (unsigned_pointer_to_address): Ditto.
4601 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4602 * dwarf2expr.c (dwarf2_read_address): Ditto.
4603 * frame.c (frame_pc_unwind): Update comment.
4604 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4605
47e242ec
JJ
46062003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4607
4608 * infptrace.c (detach): Call print_sys_errmsg rather than
4609 perror_with_name to issue warning message when errno is non-zero
4610 after calling ptrace detach.
4611
e2ac8128
JB
46122003-05-21 J. Brobecker <brobecker@gnat.com>
4613
4614 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4615 macro definitions from here...
4616 * hppa-tdep.c: ...to there.
4617
92b3541e
KB
46182003-05-20 Kevin Buettner <kevinb@redhat.com>
4619
4620 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4621 register_ptrace_addr(). Fix all callers.
4622
55809acb
AS
46232003-05-21 Andreas Schwab <schwab@suse.de>
4624
4625 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4626 dependencies.
4627 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4628 end.
4629 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4630 (_initialize_m68k_linux_tdep): New function.
4631 (m68k_linux_frame_saved_pc): Make static.
4632 (m68k_linux_extract_return_value): Likewise.
4633 (m68k_linux_store_return_value): Likewise.
4634 (m68k_linux_extract_struct_value_address): Likewise.
4635 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4636 Remove.
4637 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4638 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4639 (DEPRECATED_FRAME_SAVED_PC): Remove.
4640
0fbc10f7
KW
46412003-05-20 Kris Warkentin <kewarken@qnx.com>
4642
4643 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4644 regset numbering rather than our own.
4645
58da2eb2
DC
46462003-05-19 David Carlton <carlton@bactrian.org>
4647
4648 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4649
1fcb5155
DC
46502003-05-19 David Carlton <carlton@bactrian.org>
4651
4652 Partial fix for PR c++/827.
4653 * cp-support.h: Include symtab.h.
4654 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4655 * cp-namespace.c: Update contributors.
4656 (cp_lookup_symbol_nonlocal): New.
4657 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4658 (lookup_symbol_file): Ditto.
4659 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4660 * block.h: Declare block_scope, block_using, block_global_block.
4661 * block.c (block_scope): New.
4662 (block_using, block_global_block): Ditto.
4663 * Makefile.in (cp_support_h): Depend on symtab_h.
4664 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4665
5f9a71c3
DC
46662003-05-19 David Carlton <carlton@bactrian.org>
4667
4668 * language.h (struct language_defn): Add 'la_value_of_this'
4669 and 'la_lookup_symbol_nonlocal' members.
4670 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4671 lookup_symbol_static, lookup_symbol_global,
4672 lookup_symbol_aux_block.
4673 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4674 if we should search fields of this and how to do static/global
4675 lookup.
4676 (lookup_symbol_aux_block): Make extern.
4677 (basic_lookup_symbol_nonlocal): New.
4678 (lookup_symbol_static, lookup_symbol_global): Ditto.
4679 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4680 'la_lookup_symbol_nonlocal' members.
4681 * c-lang.c (c_language_defn, cplus_language_defn)
4682 (asm_language_defn, minimal_language_defn): Ditto.
4683 * jv-lang.c (java_language_defn): Ditto.
4684 * language.c (unknown_language_defn, auto_language_defn)
4685 (local_language_defn): Ditto.
4686 * m2-lang.c (m2_language_defn): Ditto.
4687 * objc-lang.c (objc_language_defn): Ditto.
4688 * scm-lang.c (scm_language_defn): Ditto.
4689 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4690 * p-lang.c (pascal_language_defn): Ditto for both.
4691 * Makefile.in (f-lang.o): Depend on value_h.
4692 (p-lang.o): Ditto.
4693
89a9d1b1
DC
46942003-05-19 David Carlton <carlton@bactrian.org>
4695
4696 * block.h: Declare block_static_block.
4697 * block.c (block_static_block): New.
4698 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4699 lookup_symbol_aux_local, calling block_static_block instead.
4700 (lookup_symbol_aux_local): Delete 'static_block' argument.
4701
eed3f8ab
DC
47022003-05-19 David Carlton <carlton@bactrian.org>
4703
4704 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4705
a09d8bda
ML
47062003-05-19 Michal Ludvig <mludvig@suse.cz>
4707
4708 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4709 register numbers mapping.
4710
69636828
AF
47112003-05-18 Adam Fedor <fedor@gnu.org>
4712
4713 * symtab.c (completion_list_objc_symbol): New function.
4714 (make_symbol_completion_list): Use it to add ObjC symbols
4715 when looking though the list.
4716 (language_search_unquoted_string): New function.
4717 (make_file_symbol_completion_list): Use it.
4718
55baeb84
AS
47192003-05-18 Andreas Schwab <schwab@suse.de>
4720
d0b45d99
AS
4721 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4722 dependencies.
4723 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4724 as m68k_linux_extract_return_value.
4725 (DEPRECATED_STORE_RETURN_VALUE): Define as
4726 m68k_linux_store_return_value.
4727 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4728 m68k_linux_extract_struct_value_address.
4729 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4730 get_next_frame, get_frame_base, get_frame_pc.
4731 (m68k_linux_frame_saved_pc): Use get_frame_base.
4732 (m68k_linux_extract_return_value): New function.
4733 (m68k_linux_store_return_value): New function.
4734 (m68k_linux_extract_struct_value_address): New function.
4735 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4736
55baeb84
AS
4737 * c-exp.y (typebase): Remove duplicate occurence of
4738 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4739 of lookup_signed_typename.
55baeb84 4740
b6b08ebf
MK
47412003-05-18 Mark Kettenis <kettenis@gnu.org>
4742
4743 * dwarf2loc.c (find_location_expression): Change type of second
4744 argument to `size_t *'.
4745 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4746 for size variable.
4747
5ad1c190
DC
47482003-05-18 David Carlton <carlton@bactrian.org>
4749
4750 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4751 'linkage_name'. Add comment.
4752 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4753 'linkage_name'.
4754 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4755 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4756 (lookup_block_symbol): Ditto.
4757
b8b527c5
AC
47582003-05-16 Andrew Cagney <cagney@redhat.com>
4759
4760 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4761 * gdbarch.h, gdbarch.c: Re-generate.
4762 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4763 * TODO (REGISTER_BYTES): Delete reference.
4764 * alpha-tdep.c (alpha_gdbarch_init): Update.
4765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4766 * x86-64-tdep.c (x86_64_init_abi): Update.
4767 * vax-tdep.c (vax_gdbarch_init): Update.
4768 * v850-tdep.c (v850_gdbarch_init): Update.
4769 * sparc-tdep.c (sparc_gdbarch_init): Update.
4770 * sh-tdep.c (sh_gdbarch_init): Update.
4771 * s390-tdep.c (s390_gdbarch_init): Update.
4772 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4773 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4774 (ns32k_gdbarch_init_32382): Update.
4775 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4776 * mcore-tdep.c (mcore_gdbarch_init): Update.
4777 * m68k-tdep.c (m68k_gdbarch_init): Update.
4778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4779 * ia64-tdep.c (ia64_gdbarch_init): Update.
4780 * i386-tdep.c (i386_gdbarch_init): Update.
4781 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4782 * hppa-tdep.c (hppa_gdbarch_init): Update.
4783 * h8300-tdep.c (h8300_gdbarch_init): Update.
4784 * frv-tdep.c (frv_gdbarch_init): Update.
4785 * cris-tdep.c (cris_gdbarch_init): Update.
4786 * avr-tdep.c (avr_gdbarch_init): Update.
4787 * arm-tdep.c (arm_gdbarch_init): Update.
4788 * sparc-tdep.c (sparc_pop_frame): Update.
4789 * rs6000-tdep.c (rs6000_pop_frame): Update.
4790 * remote.c (init_remote_state): Update.
4791 (remote_prepare_to_store): Update.
4792 * remote-vx.c (vx_prepare_to_store): Update.
4793 * remote-sds.c (sds_fetch_registers): Update.
4794 (sds_prepare_to_store): Update.
4795 * remote-array.c: Update.
4796 * regcache.c (init_legacy_regcache_descr): Update.
4797 (init_regcache_descr): Update.
4798 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4799 (mips_o64_extract_return_value): Update.
4800 * irix5-nat.c (fetch_core_registers): Update.
4801 * irix4-nat.c (fetch_core_registers): Update.
4802 * i386-tdep.h: Update.
4803 * hppa-tdep.c (pa_do_registers_info): Update.
4804 (pa_do_strcat_registers_info): Update.
4805 * cris-tdep.c (cris_register_bytes_ok): Update.
4806 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4807 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4808 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4809 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4810 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4811 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4812 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4813 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4814 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4815 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4816 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4817 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4818 (REGISTER_BYTES_OK): Update.
4819 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4820 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4821
ee2842e2
ILT
48222003-05-16 Ian Lance Taylor <ian@airs.com>
4823
4824 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4825 (vax_print_insn, print_insn_arg): Remove static functions.
4826 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4827 print_insn_vax from opcodes library.
4828 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4829
973177d3
AC
48302003-05-15 Andrew Cagney <cagney@redhat.com>
4831
aaab4dba
AC
4832 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4833 * target.h (memory_breakpoint_from_pc): Delete declaration.
4834 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4835 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4836 * monitor.c (monitor_insert_breakpoint): Use
4837 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4838 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4839 * gdbarch.h, gdbarch.c: Re-generate.
4840 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4841 (sparc_gdbarch_init): Set breakpoint_from_pc to
4842 sparc_breakpoint_from_pc.
4843 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4844 (BREAKPOINT_FROM_PC): Define.
4845 (sparc_breakpoint_from_pc): Declare.
4846 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4847 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4848 (BREAKPOINT_FROM_PC): Define.
4849 (BREAKPOINT): Delete macro.
4850 * target.h: Update comment.
4851 * s390-tdep.c (s390_gdbarch_init): Update comments.
4852 * remote.c: Update comments.
4853 * remote-mips.c: Update comments.
4854 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4855 * mem-break.c: Update comment.
4856 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4857 (ia64_memory_insert_breakpoint): Update.
4858 * config/sparc/tm-sparc.h: Update comment.
4859 * config/pa/tm-hppa64.h: Update comment.
4860 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4861 (rs6000_breakpoint_from_pc): Update.
4862 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4863 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4864 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4865 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4866 (mips_breakpoint_from_pc): Update.
4867 (mips_dump_tdep): Update.
4868
e06963ff
AC
4869 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4870 * minsyms.c (lookup_minimal_symbol): Inline
4871 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4872
973177d3
AC
4873 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4874 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4875 * p-lang.c (pascal_printstr): Ditto.
4876 * objc-lang.c (objc_printstr): Ditto.
4877 * m2-lang.c (m2_printstr): Ditto.
4878 * jv-valprint.c (java_print_value_fields): Ditto.
4879 * f-lang.c (f_printstr): Ditto.
4880 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4881 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4882 for repeat_count_threshold.
4883 * Makefile.in (cp-valprint.o): Update dependencies.
4884
5ea2bd7f 48852003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4886
5ea2bd7f
JJ
4887 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4888 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4889 they start with mov r2,r12. Support skipping over indirect stores
4890 of the input registers. Upon hitting a non-nop branch instruction
4891 or predicated instruction, bail out by setting lim_pc to the current
4892 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4893 beyond our calculated value and we have trust_limit set,
4894 use the lim_pc value.
4895
cc8c88f3
AC
48962003-05-15 Andrew Cagney <cagney@redhat.com>
4897
4898 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4899 generic_find_dummy_frame.
4900 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4901 (deprecated_generic_find_dummy_frame): Update.
4902 (deprecated_read_register_dummy): Update.
4903 * frame.c (deprecated_generic_get_saved_register): Update.
4904
909cd28e
TR
49052003-05-15 Theodore A. Roth <troth@openavr.org>
4906
4907 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4908 (avr_gdbarch_init): Set breakpoint_from_pc method.
4909
b923b08d
AC
49102003-05-15 Andrew Cagney <cagney@redhat.com>
4911
4912 * regcache.c (build_regcache): Set deprecated_register_valid
4913 directly.
4914 (deprecated_grub_regcache_for_register_valid): Delete function.
4915 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4916 declaration.
4917
ae2f03ac 49182003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
4919
4920 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
4921 * symtab.c (lookup_symbol_aux): Delete calls to
4922 lookup_symbol_aux_minsyms.
4923 (lookup_symbol_aux_minsyms): Comment out function and
4924 prototype. Delete lookup by mangled name.
ae2f03ac 4925
18ec9831
KB
49262003-05-14 Kevin Buettner <kevinb@redhat.com>
4927
4928 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4929 correctly indicate an empty stack and ``stack_allocated'' to the
4930 indicate the number of elements initially allocated.
4931 (dwarf_expr_grow_stack): Simplify method for computing new
4932 stack size. Don't loop infinitely if ``stack_len'' is zero.
4933 (execute_stack_op): Move ``ctx->in_reg'' initialization
4934 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4935 be used in conjuction with DW_OP_piece. Revise error message
4936 accordingly.
4937
de18ac1f
TR
49382003-05-14 Theodore A. Roth <troth@openavr.org>
4939
4940 * MAINTAINERS: Update my email address.
4941 * avr-tdep.c: Ditto.
4942
176620f1
EZ
49432003-05-14 Elena Zannoni <ezannoni@redhat.com>
4944
4945 * symtab.h (enum domain_enum): Rename from namespace_enum.
4946 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4947 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4948 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4949 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4950 TYPES_NAMESPACE, METHODS_NAMESPACE.
4951 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4952 (struct symbol, struct partial_symbol): Rename field
4953 'namespace_enum namespace' to 'domain_enum domain'.
4954 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4955 Delete old define kludge for namespace.
4956
4957 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4958 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4959 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4960 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4961 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4962 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4963 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4964 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4965 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4966 occurrences of the above.
4967
b7f31508
ILT
49682003-05-14 Ian Lance Taylor <ian@airs.com>
4969
4970 * Makefile.in (install-only): Use $(SHELL) when running
4971 mkinstalldirs.
4972
2fdbdd39
ILT
49732003-05-13 Ian Lance Taylor <ian@airs.com>
4974
a208d82c
ILT
4975 * MAINTAINERS (write after approval): Add myself.
4976
2fdbdd39
ILT
4977 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4978 second and third arguments.
4979 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4980 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4981
fbd9dcd3
AC
49822003-05-13 Andrew Cagney <cagney@redhat.com>
4983
4984 * defs.h (store_address): Delete declaration.
4985 findvar.c (store_address): Delete function.
4986 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4987 store_unsigned_integer.
4988 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4989 * v850-tdep.c (v850_push_arguments): Ditto.
4990 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4991 * sh-tdep.c (sh64_get_saved_register): Ditto.
4992 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4993 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4994 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4995 (mips_get_saved_register): Ditto.
4996 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4997 (find_func_descr, ia64_push_arguments): Ditto.
4998 * i386-tdep.c (i386_push_arguments): Ditto.
4999 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5000 * frv-tdep.c (frv_push_arguments): Ditto.
5001 * frame.c (legacy_saved_regs_prev_register): Ditto.
5002 (deprecated_generic_get_saved_register): Ditto.
5003 * findvar.c (unsigned_address_to_pointer): Ditto.
5004 * dwarf2read.c (dwarf2_const_value): Ditto.
5005 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5006 * alpha-tdep.c (alpha_push_arguments): Ditto.
5007
6760f9e6
JB
50082003-05-12 J. Brobecker <brobecker@gnat.com>
5009
5010 * NEWS: Mention that the hppa-hpux port has been partially
5011 multiarched (32bit ABIT only, so far).
5012
30e221b4
AC
50132003-05-11 Andrew Cagney <cagney@redhat.com>
5014
5015 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5016 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5017 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5018 sim/testsuite/sim/arm/misaligned2.ms, and
5019 sim/testsuite/sim/arm/misaligned3.ms.
5020 * disasm.h (struct ui_file): Add opaque struct declaration.
5021 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5022 * frame.h (struct ui_file): Ditto.
5023
dea7f9ba
MK
50242003-05-11 Mark Kettenis <kettenis@gnu.org>
5025
5026 * value.h: Pretty print.
5027
01986c48
MK
50282003-05-10 Mark Kettenis <kettenis@gnu.org>
5029
5030 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5031
123a958e
AC
50322003-05-08 Andrew Cagney <cagney@redhat.com>
5033
5034 * regcache.h (max_register_size): Delete declaration.
5035 * regcache.c (max_register_size): Delete function.
5036 (struct regcache_descr): Delete field "max_register_size".
5037 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5038 registers fit in MAX_REGISTER_SIZE.
5039 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5040 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5041 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5042 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5043 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5044 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5045 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5046 * dve3900-rom.c, hppa-tdep.c: Ditto.
5047
eb294659
DC
50482003-05-08 David Carlton <carlton@math.stanford.edu>
5049
5050 * valops.c (push_word): Fix typo.
5051
d9d9c31f
AC
50522003-05-08 Andrew Cagney <cagney@redhat.com>
5053
5054 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5055 * gdbarch.h: Re-generate.
5056 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5057 (legacy_max_register_raw_size): Delete declaration.
5058 * regcache.c (legacy_max_register_raw_size): Delete function.
5059 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5060 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5061 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5062 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5063 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5064 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5065 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5066 * findvar.c, dwarf2cfi.c: Ditto.
5067
22540ece
AC
50682003-05-08 Andrew Cagney <cagney@redhat.com>
5069
5070 * mips-tdep.c (read_signed_register): New function, moved to here
5071 from "regcache.c".
5072 (read_signed_register_pid): Ditto.
5073 * regcache.c (read_signed_register_pid): Delete function, moved to
5074 "mips-tdep.c".
5075 (read_signed_register): Ditto.
5076 * regcache.h (read_signed_register): Delete declaration.
5077 (read_signed_register_pid): Delete declaration.
5078
0c92afe8
AC
50792003-05-08 Andrew Cagney <cagney@redhat.com>
5080
5081 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5082 * gdbarch.h: Re-generate.
5083 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5084 (legacy_max_register_virtual_size): Delete declaration.
5085 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5086 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5087 * tracepoint.c (memrange_sortmerge): Ditto.
5088 * sparc-tdep.c (sparc_print_registers): Ditto.
5089 * regcache.c (legacy_max_register_virtual_size): Delete function.
5090
6037b830
JB
50912002-05-08 J. Brobecker <brobecker@gnat.com>
5092
5093 * fork-child.c (escape_bang_in_quoted_argument): New function.
5094 (fork_inferior): Escape '!' characters in quoted arguments
5095 only when needed.
5096
5d62c8b1
JB
50972003-05-08 J. Brobecker <brobecker@gnat.com>
5098
5099 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5100 the language of the CU is not currently supported by GDB.
5101
20a0e81d
JB
51022003-05-08 J. Brobecker <brobecker@gnat.com>
5103
5104 * defs.h (language): Add language_minimal enum value.
5105 * c-lang.c (minimal_language_defn): New language definition.
5106 (_initialize_c_language): Add the new minimal language to the list
5107 of languages known to GDB.
5108
710ee10a
KB
51092003-05-08 Kevin Buettner <kevinb@redhat.com>
5110
5111 * frame.c (get_frame_type): Don't attempt to lazily initialize
5112 frame's unwinder for legacy frames.
5113
1750fa04
AC
51142003-05-07 Andrew Cagney <cagney@redhat.com>
5115
5116 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5117 and "regcache" parameters.
5118 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5119
ddf9f258 51202003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5121
5122 * dwarf2read.c (dwarf_decode_lines): Only use output of
5123 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5124 the current address.
5125
87767c29
AC
51262003-05-07 Andrew Cagney <cagney@redhat.com>
5127
5128 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5129 code.
5130
5e7b2f39
JB
51312003-05-07 Jim Blandy <jimb@redhat.com>
5132
5133 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5134 'maint info symtabs' and 'maint info psymtabs'.
5135 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5136 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5137 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5138 Declarations updated.
5139 * maint.c (maintenance_list_command): Delete.
5140 (_initialize_maint_cmds): Update calls to add_cmd.
5141 * gdbcmd.h (maintenancelistlist): Delete declaration.
5142 * cli/cli-cmds.c (maintenancelistlist): Delete.
5143 (init_cmd_lists): Don't initialize it.
5144 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5145
f6684c31
AC
51462003-05-07 Andrew Cagney <cagney@redhat.com>
5147
5148 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5149 "regcache".
5150 (d10v_print_registers_info): Update.
5151 (d10v_dmap_register, d10v_imap_register): Delete functions.
5152 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5153 and "imap_register".
5154 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5155 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5156 * arch-utils.c (generic_remote_translate_xfer_address): Add
5157 "regcache" and "gdbarch" parameters.
5158 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5159 parameter. Change class to multi-arch.
5160 * gdbarch.h, gdbarch.c: Re-generate.
5161 * remote.c (remote_xfer_memory): Use
5162 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5163
e4846b08
JJ
51642003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5165
5166 * infrun.c (prev_pc): Move declaration ahead of proceed().
5167 (proceed): Refresh prev_pc value before resuming.
5168 (stop_stepping): Remove code to refresh prev_pc.
5169
6b71b8ac
KW
51702003-05-06 Kris Warkentin <kewarken@qnx.com>
5171
5172 * nto-tdep.c: Removed stray comment.
5173
47979a4b
KW
51742003-05-06 Kris Warkentin <kewarken@qnx.com>
5175
5176 * i386-nto-tdep.c: Fix old K&R function definitions.
5177 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5178 Also change add_show_from_set() call to add_setshow_cmd().
5179 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5180
00905d52
AC
51812003-05-05 Andrew Cagney <cagney@redhat.com>
5182
5183 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5184 (fprint_dummy_frames): New function.
5185 (maintenance_print_dummy_frames): New function.
5186 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5187 * frame.c (fprint_frame_id): Make global.
5188 * frame.h (fprint_frame_id): Declare.
5189 * Makefile.in (dummy-frame.o): Update dependencies.
5190
b1e29e33
AC
51912003-05-05 Andrew Cagney <cagney@redhat.com>
5192
5193 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5194 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5195 SIZEOF_CALL_DUMMY_WORDS.
5196 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5197 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5198 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5199 CALL_DUMMY_BREAKPOINT_OFFSET.
5200 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5201 CALL_DUMMY_START_OFFSET.
5202 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5203 * gdbarch.h, gdbarch.c: Re-generate.
5204 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5205 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5206 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5207 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5208 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5209 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5210 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5211 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5212 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5213 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5214 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5215 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5216 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5217 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5218 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5219
52202003-05-05 Kris Warkentin <kewarken@qnx.com>
5221
5222 * configure.tgt: Add i[3456]86-*-nto*.
5223 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5224 * nto-tdep.c: New file. Neutrino target support routines.
5225 * nto-tdep.h: New file. Neutrino target header.
5226 * config/tm-qnxnto.h: New file.
5227 * config/i386/i386nto.mt: New file.
5228 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5229
0ce3d317
AC
52302003-05-04 Andrew Cagney <cagney@redhat.com>
5231
5232 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5233 (load_infrun_state): Ditto.
5234 (struct thread_info): Drop "prev_func_name" field.
5235 * thread.c (load_infrun_state): Update.
5236 (save_infrun_state): Update.
5237 * infrun.c (prev_func_name): Delete variable.
5238 (init_wait_for_inferior): Do not clear prev_func_name.
5239 (stop_stepping, keep_going, context_switch): Do not swap
5240 prev_func_name.
5241 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5242 instead of PC_IN_SIGTRAMP.
5243
46654a5b
AC
52442003-05-04 Andrew Cagney <cagney@redhat.com>
5245
5246 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5247 REGISTER_BYTE with register_offset_hack.
5248 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5249 that REGISTER_BYTE is consistent with the regcache.
5250 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5251 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5252
14b08c1b
MK
52532003-05-04 Mark Kettenis <kettenis@gnu.org>
5254
04c8243f
MK
5255 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5256 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5257
14b08c1b
MK
5258 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5259
c7a11e01
JB
52602003-05-03 J. Brobecker <brobecker@gnat.com>
5261
5262 From Thierry Schneider <tpschneider1@yahoo.com>
5263 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5264 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5265 (mi-cmd-symbol.o): Add rule.
5266
7043d8dc
AC
52672003-05-03 Andrew Cagney <cagney@redhat.com>
5268
5269 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5270 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5271 * gdbarch.h, gdbarch.c: Re-generate.
5272 * d10v-tdep.c (d10v_push_dummy_code): New function.
5273 (d10v_gdbarch_init): Set push_dummy_code.
5274 * infcall.c (legacy_push_dummy_code): New function.
5275 (generic_push_dummy_code): New function.
5276 (push_dummy_code): New function.
5277 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5278 instead of dummy_addr, to push_dummy_call. Move call to
5279 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5280 switch.
5281 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5282
92bf2b80
AC
52832003-05-03 Andrew Cagney <cagney@redhat.com>
5284
5285 * disasm.h (print_insn): Declare.
5286 * disasm.c (init_gdb_disassemble_info): New function.
5287 (gdb_disassembly): Call init_gdb_disassemble_info.
5288 (gdb_print_insn): New function.
5289 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5290 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5291 * mcore-tdep.c: Include "disasm.h"
5292 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5293 * d10v-tdep.c: Include "disasm.h".
5294 (display_trace): Call gdb_print_insn, instead of print_insn.
5295 (print_insn): Delete function.
5296 * printcmd.c: Include "disasm.h".
5297 (print_insn): Delete function.
5298 (print_formatted): Call gdb_print_insn, instead of print_insn.
5299 * Makefile.in (printcmd.o): Update dependencies.
5300 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5301
27d94c49
AC
53022003-05-02 Andrew Cagney <cagney@redhat.com>
5303
82de1e5b
AC
5304 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5305 PC_REGNUM, re-indent.
5306 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5307 PC_REGNUM isn't set.
5308
27d94c49
AC
5309 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5310 * gdbarch.h, gdbarch.c: Re-generate.
5311 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5312 register_virtual_size, pc_regnum, or register_bytes.
5313 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5314 (d10v_register_type): Use D10V_PC_REGNUM.
5315 (d10v_print_registers_info, d10v_read_pc): Ditto.
5316 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5317 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5318
a9c0dc7f
DC
53192003-05-02 David Carlton <carlton@bactrian.org>
5320
5321 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5322 the name with mstrsave.
5323
e33d66ec
EZ
53242003-05-02 Elena Zannoni <ezannoni@redhat.com>
5325
5326 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5327 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5328 (host_charset_name, target_charset_name): New vars for use by
5329 set/show commands.
5330 (host_charset_enum, target_charset_enum): New enums for set/show
5331 commands.
5332 (set_charset_sfunc, set_host_charset_sfunc,
5333 set_target_charset_sfunc): New functions.
5334 (set_host_charset, set_target_charset): Make static.
5335 (list_charsets, set_host_charset_command,
5336 set_target_charset_command): Delete functions.
5337 (show_charset_command): Rewrite as....
5338 (show_charset): Hook this up with the set/show command mechanism.
5339 (_initialize_charset): Change names of charsets to match the
5340 set/show enums. Use host_charset_name and target_charset_name.
5341 Use set/show mechanism for charset, host-charset, target-charset
5342 commands. Do not make 'show host-charset' and 'show
5343 target-charset' be aliases of 'show charset'.
5344
5345 * charset.h (set_host_charset, set_target_charset): Don't export,
5346 they are not used outside the file.
5347
2b6fd0d8
AC
53482003-05-01 Andrew Cagney <cagney@redhat.com>
5349
5350 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5351 (gdb_disassembly): Make "di" non static, always initialize and
5352 cleanup. Always use dis_asm_read_memory.
5353 (gdb_dis_asm_read_memory): Delete function.
5354
6ae2f580
AC
53552003-05-01 Andrew Cagney <cagney@redhat.com>
5356
5357 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5358 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5359
810ecf9f
AC
53602003-04-30 Andrew Cagney <cagney@redhat.com>
5361
5362 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5363 "tm_print_insn_info".
5364 (TARGET_PRINT_INSN_INFO): Delete macro.
5365 (dis_asm_read_memory): Delete function declaration.
5366 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5367 (tm_print_insn_info): Delete variable definition.
5368 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5369 * gdbarch.h, gdbarch.c: Re-generate.
5370 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5371 "deprecated_tm_print_insn_info".
5372 * mcore-tdep.c (mcore_dump_insn): Ditto.
5373 * mips-tdep.c (mips_gdbarch_init): Ditto.
5374 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5375 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5376 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5377 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5378 instead of TARGET_PRINT_INSN_INFO, add comment.
5379 * s390-tdep.c (s390_get_frame_info): Instead of
5380 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5381 (s390_check_function_end, s390_is_sigreturn): Ditto.
5382 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5383 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5384 * disasm.c: Include "gdbcore.h".
5385 (_initialize_disasm): New function, initialize
5386 "deprecated_tm_print_insn_info".
5387 (deprecated_tm_print_insn_info): New variable.
5388 (dis_asm_read_memory): Moved from "corefile.c", made static.
5389 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5390 * Makefile.in (disasm.o): Update dependencies.
5391
07020390
AC
53922003-04-30 Andrew Cagney <cagney@redhat.com>
5393
5394 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5395
a9fa03de
AF
53962003-04-29 Adam Fedor <fedor@gnu.org>
5397
5398 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5399 * infcall.c (find_function_addr): Make non-static.
5400 * infcall.h (find_function_addr): Declare.
5401 * Makefile.in (eval.o): Update dependencies.
5402
1bae87b9
AF
54032003-04-28 Adam Fedor <fedor@gnu.org>
5404
5405 * symtab.c (symbol_find_demangled_name): Check for and demangle
5406 ObjC symbols.
5407 (symbol_init_demangled_name): Init for language_objc as well.
5408
0ba6dca9
AC
54092003-04-28 Andrew Cagney <cagney@redhat.com>
5410
5411 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5412 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5413 * gdbarch.h, gdbarch.c: Re-generate.
5414 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5415 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5416 * inferior.h (deprecated_read_fp): Rename read_fp.
5417 (generic_target_read_fp): Delete declaration.
5418 * regcache.c (generic_target_read_fp): Delete function.
5419 (deprecated_read_fp): Replace read_fp, use
5420 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5421 * d10v-tdep.c (d10v_read_fp): Delete function.
5422 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5423
5424 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5425 deprecated_target_read_fp to generic_target_read_fp.
5426 * sh-tdep.c (sh_gdbarch_init): Ditto.
5427 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5429 * frv-tdep.c (frv_gdbarch_init): Ditto.
5430
5431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5432 deprecated_fp_regnum.
5433 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5434 * vax-tdep.c (vax_gdbarch_init): Ditto.
5435 * v850-tdep.c (v850_gdbarch_init): Ditto.
5436 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5437 * sh-tdep.c (sh_gdbarch_init): Ditto.
5438 * s390-tdep.c (s390_gdbarch_init): Ditto.
5439 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5440 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5441 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5442 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5444 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5445 * i386-tdep.c (i386_gdbarch_init): Ditto.
5446 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5447 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5448 * frv-tdep.c (frv_gdbarch_init): Ditto.
5449 * cris-tdep.c (cris_gdbarch_init): Ditto.
5450 * avr-tdep.c (avr_gdbarch_init): Ditto.
5451 * arm-tdep.c (arm_gdbarch_init): Ditto.
5452 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5453
5454 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5455 * v850-tdep.c (v850_gdbarch_init): Ditto.
5456 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5457 * sh-tdep.c (sh_gdbarch_init): Ditto.
5458 * s390-tdep.c (s390_gdbarch_init): Ditto.
5459 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5461 * mips-tdep.c (mips_gdbarch_init): Ditto.
5462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5463 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5464 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5465 * frv-tdep.c (frv_gdbarch_init): Ditto.
5466 * avr-tdep.c (avr_gdbarch_init): Ditto.
5467 * arm-tdep.c (arm_gdbarch_init): Ditto.
5468
5469 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5470 DEPRECATED_FP_REGNUM.
5471 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5472 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5473 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5474 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5475 (sparc32_register_virtual_type): Ditto.
5476 * sh-tdep.c (sh64_frame_chain): Ditto.
5477 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5478 (sh_nofp_frame_init_saved_regs): Ditto.
5479 (sh64_nofp_frame_init_saved_regs): Ditto.
5480 (sh_fp_frame_init_saved_regs): Ditto.
5481 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5482 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5483 * procfs.c (procfs_fetch_registers): Ditto.
5484 (procfs_store_registers): Ditto.
5485 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5486 (store_inferior_registers, fetch_core_registers): Ditto.
5487 (fetch_kcore_registers, clear_regs): Ditto.
5488 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5489 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5490 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5491 * nlm/i386.c (do_status): Ditto.
5492 * mipsv4-nat.c (supply_gregset): Ditto.
5493 * mips-tdep.c: Ditto for comments.
5494 * mips-nat.c (fetch_inferior_registers): Ditto.
5495 (store_inferior_registers, fetch_core_registers): Ditto.
5496 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5497 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5498 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5499 (i386_do_pop_frame, i386_register_type): Ditto.
5500 * hppa-tdep.c (hppa_frame_chain): Ditto.
5501 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5502 (hppa_pop_frame, hppa_read_fp): Ditto.
5503 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5504 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5505 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5506 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5507 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5508 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5509 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5510 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5511 * blockframe.c: Ditto for comments.
5512 * arch-utils.h: Ditto for comments.
5513 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5514 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5515 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5516 * alpha-tdep.h: Ditto for comments.
5517 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5518 (alpha_cannot_store_register): Ditto.
5519 (alpha_push_dummy_frame): Ditto.
5520 * alpha-nat.c (supply_gregset): Ditto.
5521
5522 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5523 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5524 * config/sparc/tm-sparc.h: Update comment.
5525
5526 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5527 deprecated_read_fp instead of TARGET_READ_FP.
5528 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5529 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5530 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5531 deprecated_read_fp instead of read_fp.
5532 * s390-tdep.c (s390_push_arguments): Ditto.
5533 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5534 * frame.h: Ditto in comments.
5535 * frame.c (legacy_get_prev_frame): Ditto.
5536 * dummy-frame.c (dummy_frame_this_id): Ditto.
5537 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5538
d7a27068
AC
55392003-04-28 Andrew Cagney <cagney@redhat.com>
5540
5541 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5542 * gdbarch.h, gdbarch.c: Re-generate.
5543 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5544 * vax-tdep.c (_initialize_vax_tdep): Update.
5545 * v850-tdep.c (_initialize_v850_tdep): Update.
5546 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5547 * s390-tdep.c (_initialize_s390_tdep): Update.
5548 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5549 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5550 * mips-tdep.c (_initialize_mips_tdep): Update.
5551 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5552 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5553 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5554 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5555 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5556 * frv-tdep.c (_initialize_frv_tdep): Update.
5557 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5558 (_initialize_cris_tdep): Update.
5559 * arch-utils.c (legacy_print_insn): Update.
5560 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5561
d2630e69
AF
55622003-04-26 Adam Fedor <fedor@gnu.org>
5563
5564 * linespec.c (decode_objc): New function to decode ObjC calls
5565 (decode_line_1): Check for ObjC calls (using decode_objc)
5566 * Makefile (linespec.o): Update dependencies.
5567
3086aeae
DJ
55682003-04-26 Daniel Jacobowitz <drow@mvista.com>
5569
5570 * breakpoint.h (struct breakpoint_ops): New.
5571 (struct breakpoint): Add ops member.
5572
5573 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5574 (mention): Use new breakpoint ops member.
5575 (set_raw_breakpoint): Initialize ops field to NULL.
5576 (print_exception_catchpoint, print_one_exception_catchpoint)
5577 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5578 (gnu_v3_exception_catchpoint_ops): New.
5579 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5580
1fbec6c3
AF
55812003-04-25 Adam Fedor <fedor@gnu.org>
5582
5583 * Makefile.in (COMMON_OBS): Add objc-lang.o
5584
0ef21242
AC
55852003-04-25 Andrew Cagney <cagney@redhat.com>
5586
5587 * d10v-tdep.c (print_insn): Delete function.
5588 (display_trace): Use TARGET_PRINT_INSN.
5589 (_initialize_d10v_tdep): Do not set tm_print_insn.
5590 (d10v_gdbarch_init): Set print_insn.
5591
f75493ed
AC
55922003-04-25 Andrew Cagney <cagney@redhat.com>
5593
5594 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5595 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5596 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5597 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5598 (nr_dmap_regs, a0_regnum): ... new functions.
5599 (d10v_print_registers_info): Use a0_regnum, use register_size.
5600 (d10v_register_byte): Delete function.
5601 (d10v_register_raw_size): Delete function.
5602 (d10v_register_type): Use a0_regnum.
5603 (d10v_print_registers_info): Use a0_regnum.
5604 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5605 (d10v_gdbarch_init): Do not set register_byte or
5606 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5607 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5608 extract_address.
5609 (trace_command): Use XCALLOC.
5610 (print_insn): Delete reference to tm_print_insn.
5611 (saved_regs_unwinder): Use store_unsigned_integer instead of
5612 store_address.
5613 * frame.h (FRAME_OBSTACK_CALLOC): Define
5614
2202b100
DC
56152003-04-25 David Carlton <carlton@bactrian.org>
5616
5617 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5618
4e45ca2e
AF
56192003-04-24 Adam Fedor <fedor@gnu.org>
5620
5621 * objc-lang.c: Include "valprint.h"
5622 * Makefile.in (objc-lang.o): Update dependencies.
5623
93de3e7f
AF
56242003-04-24 Adam Fedor <fedor@gnu.org>
5625
8ffd9b1b 5626 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5627 architecture dependant compilation and mark as unimplemented
5628 (until they get put in the gdbarch vector).
5629
0f20eeea
DC
56302003-04-23 David Carlton <carlton@bactrian.org>
5631
5632 * cp-support.c (cp_find_first_component): Accept 'operator' in
5633 more locations.
5634
74cfe982
AC
56352003-04-23 Andrew Cagney <cagney@redhat.com>
5636
5637 * infcall.c (call_function_by_hand): Eliminate redundant
5638 indentation. Move "saved_async" and "old_cleanups" to where they
5639 are needed.
8ffd9b1b 5640
52557533
AC
56412003-04-23 Andrew Cagney <cagney@redhat.com>
5642
5643 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5644 and "buffer". Move the "name" code to where it is needed.
5645
158775de
AC
56462003-04-23 Andrew Cagney <cagney@redhat.com>
5647
5648 * infcall.c (call_function_by_hand): Move variables "start_sp",
5649 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5650 code to ON_STACK switch branch.
8ffd9b1b 5651
ebc7896c
AC
56522003-04-23 Andrew Cagney <cagney@redhat.com>
5653
5654 * infcall.c (call_function_by_hand): Make declaration of "i",
5655 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5656 lint.
5657
d727590f
AC
56582003-04-23 Andrew Cagney <cagney@redhat.com>
5659
5660 * infcall.c (call_function_by_hand): Delete variable
5661 "n_method_args". Localize "param_type"'s declaration to the loop
5662 that it is used. Reinstate code assigning to said variable -
5663 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5664 Rationalize code using "param_type".
5665
d585e13a
AC
56662003-04-22 Andrew Cagney <cagney@redhat.com>
5667
5668 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5669 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5670 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5671 to DEPRECATED_PUSH_RETURN_ADDRESS.
5672
051caad9
KB
56732003-04-22 Kevin Buettner <kevinb@redhat.com>
5674
5675 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5676 on the DWARF2 register number prior to fetching a register.
5677
77296879
JB
56782003-04-22 J. Brobecker <brobecker@gnat.com>
5679
5680 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5681 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5682 this macro was always set to 0.
77296879
JB
5683 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5684 considering the fact that this macro was always set to 0.
5685 * hppa-tdep.h (hppa_store_return_value): Likewise.
5686 (hppa_extract_return_value): Likewise.
5687
4252f1df
JB
56882003-04-22 J. Brobecker <brobecker@gnat.com>
5689
5690 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5691 the hppa-pro target only.
5692
14604c6b
JB
56932003-04-21 J. Brobecker <brobecker@gnat.com>
5694
5695 Ongoing multi-arch conversion effort for HP/UX:
5696 * config/pa/tm-hppa.h: Move all macro that are no longer
5697 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5698 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5699
77eb01d1
JB
57002003-04-21 J. Brobecker <brobecker@gnat.com>
5701
5702 * config/pa/tm-hppa.h: Obsolete a section that was only used
5703 for hppa-pro.
5704
61995b3b
JB
57052003-04-21 J. Brobecker <brobecker@gnat.com>
5706
5707 Ongoing multi-arch conversion for HP/UX.
5708 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5709 if already defined (allows hppa64 to stay non-multiarched for now).
5710 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5711
4aa79dcc
AC
57122003-04-21 Andrew Cagney <cagney@redhat.com>
5713
5714 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5715
0f751ff2
AC
57162003-04-21 Andrew Cagney <cagney@redhat.com>
5717
5718 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5719 "i386_num_mmx_regs".
5720
04714b91
AC
57212003-04-21 Andrew Cagney <cagney@redhat.com>
5722
5723 * infcall.c: New file.
5724 * infcall.h: New file.
5725 * valarith.c: Include "infcall.h".
5726 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5727 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5728 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5729 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5730 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5731 (SFILES): Add "infcall.c"
5732 (COMMON_OBS): Add "infcall.o".
5733 (infcall.o): Specify dependencies.
5734 * value.h (call_function_by_hand): Delete declaration.
5735 * inferior.h (run_stack_dummy): Delete declaration.
5736 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5737 (run_stack_dummy): Move to "infcall.c", merged into
5738 call_function_by_hand.
5739 * valops.c (call_function_by_hand): Moved to "infcall.c".
5740 (find_function_addr, value_arg_coerce): Ditto.
5741 (unwindonsignal_p, coerce_float_to_double): Ditto.
5742 (_initialize_valops): Move "set/show coerce-float-to-double", and
5743 "set/show unwindonsignal" commands to "infcall.c".
5744 * v850-tdep.c, target.h: Update comments.
5745 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5746 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5747 (sh64_init_extra_frame_info): Update comments.
5748 * mn10300-tdep.c: Update comments.
5749 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5750 * config/sparc/tm-sparc.h: Update comments.
5751 * breakpoint.h: Update comments.
5752 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5753 * arm-tdep.c: Update comment.
5754
f9d3c2a8
MK
57552003-04-19 Mark Kettenis <kettenis@gnu.org>
5756
c40e1eab
MK
5757 * i386-tdep.c (i386_num_register_names): New variable.
5758 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5759 (MM0_REGNUM): Remove redundant parentheses in define.
5760 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5761 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5762 i386_mxcsr_regnum_p): Remove redundant parentheses.
5763 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5764
94ea66b3
MK
5765 * i386-tdep.c (i386_extract_return_value,
5766 i386_store_return_value): Correct check for availability of
5767 floating-point registers.
5768
54299a1d
MK
5769 * i386-tdep.c (i386_frame_num_args): Remove function.
5770 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5771
c86c27af
MK
5772 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5773 mmx_regnum_to_fp_regnum. Adjust all callers.
5774
f9d3c2a8
MK
5775 * i386-tdep.c (i386_get_longjmp_target): Use
5776 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5777 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5778 extract_address.
5779
94ba74a9
MK
57802003-04-19 Mark Kettenis <kettenis@gnu.org>
5781
5782 * core-regset.c: Update comments to reflect reality. Re-order
5783 includes.
5784 (fetch_core_registers): Use switch instead of if. Remove
5785 redundant prototype.
5786
4074e13c
JB
57872003-04-18 Jim Blandy <jimb@redhat.com>
5788
5789 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5790 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5791
e3ab4aba
RH
57922003-04-17 Richard Henderson <rth@redhat.com>
5793
5794 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5795
627bf7c1
EZ
57962003-04-17 Michael Snyder <msnyder@redhat.com>
5797 Karen Bennet <bennet@redhat.com>
5798
5799 Committed by Elena Zannoni <ezannoni@redhat.com>
5800 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5801
514621a9
EZ
58022003-04-17 Elena Zannoni <ezannoni@redhat.com>
5803
5804 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5805 value if the return type is void.
514621a9 5806
b4acd559
JJ
58072003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5808
5809 * thread-db.c: Reindented.
8ffd9b1b 5810
530b167e 58112003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5812
5813 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5814 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5815 as types.
5816
0a48e7e8
MS
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
8ffd9b1b 5840
ab9fe00e
KB
58412003-04-16 Kevin Buettner <kevinb@redhat.com>
5842
610a3745 5843 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5844 the size of ``long double'' to 16, instead of 8.
5845
e64a344c
MK
58462003-04-16 Mark Kettenis <kettenis@gnu.org>
5847
5848 * i386-linux-nat.c: Add some whitespace to make things more
5849 readable.
5850 (fetch_register, store_register, fetch_inferior_registers,
5851 store_inferior_registers): Get rid of assignment in if-statement.
5852 (store_register): Fix typo in error message.
5853
25d41031
AC
58542003-04-16 Andrew Cagney <cagney@redhat.com>
5855
5856 * utils.c (xmmalloc): Always allocate something, matches
5857 libiberty/xmalloc's semantics.
5858 (xmrealloc, xmcalloc): Ditto.
5859
c50901fd
AC
58602003-04-16 Andrew Cagney <cagney@redhat.com>
5861
5862 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5863 update comments.
5864 (get_frame_type): Initialize unwind and type when needed.
5865 (get_frame_id, frame_register_unwind): Ditto.
5866
f81824a9
AC
58672003-04-16 Andrew Cagney <cagney@redhat.com>
5868
5869 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5870 obsolete.
5871 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5872 * sparcl-stub.c: Obsolete file.
5873 * config/sparc/tm-sparclet.h: Obsolete file.
5874 * sparclet-stub.c: Obsolete file.
5875 * sparclet-rom.c: Obsolete file.
5876 * sparcl-tdep.c: Obsolete file.
5877 * config/sparc/tm-sparclite.h: Obsolete file.
5878 * config/sparc/sparclite.mt: Obsolete file.
5879 * config/sparc/sparclet.mt: Obsolete file.
5880 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5881 sparc86x-*-* obsolete.
5882
9219021c
DC
58832003-04-15 David Carlton <carlton@math.stanford.edu>
5884
5885 * Makefile.in (SFILES): Add cp-namespace.c.
5886 (COMMON_OBS): Add cp-namespace.o.
5887 (block.o): Depend on gdb_obstack_h and cp_support_h.
5888 (buildsym.o): Depend on cp_support_h.
5889 (cp-namespace.o): New.
5890 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5891 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5892 (dwarf2read.o): Depend on cp_support_h.
5893 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5894 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5895 processing_current_namespace.
5896 (read_namespace): Update processing_current_namespace; check for
5897 anonymous namespaces.
5898 (dwarf2_name): New function.
5899 (dwarf2_extension): Ditto.
5900 * cp-support.h: Update copyright, contributors.
5901 Add inclusion guards.
5902 Add opaque declaration for structs obstack, block, symbol.
5903 (struct using_direct): New struct.
5904 Add declarations for cp_find_first_component,
5905 cp_entire_prefix_len, processing_has_namespace_info,
5906 processing_current_namespace, cp_is_anonymous,
5907 cp_add_using_directive, cp_initialize_namespace,
5908 cp_finalize_namespace, cp_set_block_scope,
5909 cp_scan_for_anonymous_namespaces.
5910 * cp-namespace.c: New file.
5911 * cp-support.c: Update copyright.
5912 Include ctype.h, gdb_assert.h, gdbcmd.h.
5913 New variable maint_cplus_cmd_list.
5914 (cp_find_first_component): New function.
5915 (cp_entire_prefix_len, maint_cplus_command)
5916 (first_component_command, _initialize_cp_support): Ditto.
5917 * buildsym.c: Include cp-support.h.
5918 New variable using_list.
5919 (add_symbol_to_list): Check for anonymous namespaces.
5920 (finish_block): Set block's scope.
5921 (start_symtab): Initialize C++ namespace support.
5922 (end_symtab): Finalize C++ namespace support.
5923 * block.h: Add opaque declarations for structs
5924 block_namespace_info, using_direct, and obstack.
5925 Add declarations for block_set_scope and block_set_using.
5926 (struct block): Add 'language_specific' member.
5927 (BLOCK_NAMESPACE): New macro.
5928 * block.c: Include gdb_obstack.h and cp-support.h.
5929 (struct block_namespace_info): New struct.
5930 (block_set_scope): New function.
5931 (block_set_using, block_initialize_namespace): Ditto.
5932
d5a921c9
KB
59332003-04-14 Kevin Buettner <kevinb@redhat.com>
5934
5935 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5936 (locate_base): Return early if there aren't any link map offsets.
5937 (svr4_solib_create_inferior_hook): Warn if shared library support
5938 is unavailable.
5939
d2a52b27
DC
59402003-04-14 David Carlton <carlton@math.stanford.edu>
5941
5942 * symtab.c (symbol_set_names): Add prefix when storing Java names
5943 in hash table. Fix for PR java/1039.
5944
980cae7a
DC
59452003-04-14 David Carlton <carlton@math.stanford.edu>
5946
5947 * symtab.c (symbol_set_names): Rename 'name' arg to
5948 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5949 * symtab.h: Change 'name' argument in declaration of
5950 symbol_set_names to 'linkage_name'.
5951 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5952
e227b13c
AC
59532003-04-14 Andrew Cagney <cagney@redhat.com>
5954
5955 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5956 return the fully sign-extended register value.
5957 (get_frame_pointer): Ditto.
5958 (mips_pop_frame): Initialize "proc_desc" after checking for a
5959 dummy frame.
5960
36712a20
AC
59612003-04-14 Andrew Cagney <cagney@redhat.com>
5962
5963 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5964 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5965 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5966 (mips_push_register): Delete function.
5967 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5968 PUSH_FP_REGNUM.
5969
44ea7b70
JB
59702003-04-14 Jim Blandy <jimb@redhat.com>
5971
5972 * symmisc.c: #include "gdb_regex.h".
5973 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5974 functions.
5975 * maint.c (maintenance_list_command): New function.
5976 (_initialize_maint_cmds): Register the above as commands.
5977 * symtab.h (maintenance_list_symtabs,
5978 maintenance_list_psymtabs): New declarations.
5979 * cli/cli-cmds.c (maintenancelistlist): New variable.
5980 (init_cmd_lists): Initialize it.
5981 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5982 * gdbcmd.h (maintenancelistlist): New declaration.
5983 * Makefile.in (symmisc.o): Update dependencies.
5984
2d0c7962
EZ
59852003-04-14 Elena Zannoni <ezannoni@redhat.com>
5986
5987 * s390-nat.c: Include asm/types.h for addr_t.
5988
1947a811
CV
59892003-04-14 Corinna Vinschen <vinschen@redhat.com>
5990
5991 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5992 actually incoming type.
5993
adb616d7
AC
59942003-04-13 Andrew Cagney <cagney@redhat.com>
5995
5996 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5997 get_next_frame and get_frame_saved_regs.
5998
9b5e151c
AC
59992003-04-13 Andrew Cagney <cagney@redhat.com>
6000
6001 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6002 of gdbarch_num_regs.
6003
ef6e7e13
AC
60042003-04-13 Andrew Cagney <cagney@redhat.com>
6005
6006 * frame.h: Mention what replaced what in "struct frame_info".
6007 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6008 deprecated_update_frame_base_hack and
6009 deprecated_update_frame_pc_hack.
6010 * hppa-tdep.c: Ditto.
6011
61fbb938
DJ
60122003-04-13 Daniel Jacobowitz <drow@mvista.com>
6013
6014 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6015 to read_reg and update its comment. Remove regnum member.
6016 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6017 Don't call read_reg when setting in_reg. Call read_reg to get
6018 the frame base if it's in a register. Return the register number
6019 on the stack instead of in the context. Remove extra arguments
6020 to read_reg.
6021 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6022 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6023 the register number on the expression stack.
6024 (needs_frame_read_reg): Remove extra arguments.
6025
0d53c4c4
DJ
60262003-04-13 Daniel Jacobowitz <drow@mvista.com>
6027
6028 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6029 made non-static.
6030 (execute_stack_op): All callers updated.
6031 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6032 * dwarf2loc.c (find_location_expression): New function.
6033 (dwarf_expr_frame_base): Call it.
6034 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6035 (dwarf2_tracepoint_var_ref): New function, broken out from
6036 locexpr_tracepoint_var_ref.
6037 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6038 Make static.
6039 (loclist_read_variable, loclist_read_needs_frame): New functions.
6040 (loclist_describe_location, loclist_tracepoint_var_ref): New
6041 functions.
6042 (dwarf2_loclist_funcs): New struct location_funcs.
6043 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6044 (struct dwarf2_locexpr_baton): Add comments.
6045 (dwarf2_loclist_funcs): New extern.
6046 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6047 base_address and base_known.
6048 (dwarf_loc_buffer): New variable.
6049 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6050 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6051 (dwarf2_has_info): Initialize dwarf_loc_offset.
6052 (dwarf2_build_psymtabs): Read in .debug_loc.
6053 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6054 DWARF_LOC_SIZE.
6055 (psymtab_to_symtab_1): Likewise. Move base address calculation
6056 here, from...
6057 (dwarf2_get_pc_bounds): ... here. Use the base address from
6058 cu_header.
6059 (dwarf2_symbol_mark_computed): Handle location lists.
6060
6aca59a3
DJ
60612003-04-13 Daniel Jacobowitz <drow@mvista.com>
6062
6063 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6064 if the linkage name demangled successfully.
6065
aca1fcd0
MK
60662003-04-13 Mark Kettenis <kettenis@gnu.org>
6067
97095916
MK
6068 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6069 disassmbly_flavour): Removed.
6070
aca1fcd0
MK
6071 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6072
562a961f
MK
60732003-04-13 Mark Kettenis <kettenis@gnu.org>
6074
6075 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6076
bd013d54
AC
60772003-04-12 Andrew Cagney <cagney@redhat.com>
6078
6079 * frame.h (struct frame_info): Move definition from here ...
6080 * frame.c (struct frame_info): ... to here.
6081
167ef8b1
AC
60822003-04-12 Andrew Cagney <cagney@redhat.com>
6083
6084 * gdbthread.h (save_infrun_state): Delete parameter
6085 "prev_func_start".
6086 (struct thread_info): Delete field "prev_func_start".
6087 (load_infrun_state): Ditto.
6088 * thread.c (load_infrun_state, save_infrun_state): Update.
6089 * infrun.c (prev_func_start): Delete variable.
6090 (context_switch, init_wait_for_inferior): Update.
6091 (stop_stepping, keep_going): Update.
6092
da3331ec
AC
60932003-04-12 Andrew Cagney <cagney@redhat.com>
6094
6095 * gdbarch.sh: Add missing opaque declarations.
6096 * gdbarch.h: Regnerate.
6097 * symtab.h: Add missing opaque declarations.
6098 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6099 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6100 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6101 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6102 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6103 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6104 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6105 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6106 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6107 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6108 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6109 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6110 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6111
18adea3f
AC
61122003-04-11 Andrew Cagney <cagney@redhat.com>
6113
6114 * frame.c (get_frame_id): Return this frame's "id".
6115 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6116 function start.
6117 (legacy_saved_regs_this_id): Replace function body with
6118 internal-error.
6119 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6120 FRAME_OBSTACK_ZALLOC.
6121 (create_new_frame): Mark the frame ID as valid.
6122
2252e863
AO
61232003-04-11 Alexandre Oliva <aoliva@redhat.com>
6124
6125 * Makefile.in (libbfd_h): Added missing setting.
6126 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6127 according to the selected ABI.
6128
a8245ab8
JJ
61292003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6130
6131 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6132
6913c89a
AC
61332003-04-11 Andrew Cagney <cagney@redhat.com>
6134
6135 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6136 SAVED_PC_AFTER_CALL.
6137 * gdbarch.h, gdbarch.c: Regenerate.
6138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6139 * x86-64-tdep.c (x86_64_init_abi): Update.
6140 * vax-tdep.c (vax_gdbarch_init): Update.
6141 * v850-tdep.c (v850_gdbarch_init): Update.
6142 * sparc-tdep.c (sparc_gdbarch_init): Update.
6143 * sh-tdep.c (sh_gdbarch_init): Update.
6144 * s390-tdep.c (s390_gdbarch_init): Update.
6145 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6146 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6147 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6148 * mips-tdep.c (mips_gdbarch_init): Update.
6149 * mcore-tdep.c (mcore_gdbarch_init): Update.
6150 * m68k-tdep.c (m68k_gdbarch_init): Update.
6151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6152 * ia64-tdep.c (ia64_gdbarch_init): Update.
6153 (ia64_saved_pc_after_call): Update declaration.
6154 * i386ly-tdep.c (i386lynx_init_abi): Update.
6155 * i386-tdep.c (i386_gdbarch_init): Update.
6156 * hppa-tdep.c (hppa_gdbarch_init): Update.
6157 * h8300-tdep.c (h8300_gdbarch_init): Update.
6158 * frv-tdep.c (frv_gdbarch_init): Update.
6159 * cris-tdep.c (cris_gdbarch_init): Update.
6160 * avr-tdep.c (avr_gdbarch_init): Update.
6161 * arm-tdep.c (arm_gdbarch_init): Update.
6162 * alpha-tdep.c (alpha_gdbarch_init): Update.
6163 * ns32knbsd-nat.c (frame_num_args): Update.
6164 * ns32k-tdep.c (umax_frame_num_args): Update.
6165 * mips-tdep.c (mips_init_frame_pc_first): Update.
6166 * infrun.c (step_over_function): Update.
6167 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6168 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6169 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6170 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6171 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6172 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6173 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6174 * arch-utils.c (init_frame_pc_default): Update.
6175 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6176 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6177 declaration.
8ffd9b1b 6178
38edeab8
AC
61792003-04-11 Andrew Cagney <cagney@redhat.com>
6180
6181 * i387-tdep.c: Update copyright.
6182 (i387_to_double): Delete function.
6183 (double_to_i387): Delete function.
6184
81f8a206
AC
61852003-04-10 Andrew Cagney <cagney@redhat.com>
6186
6187 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6188 frame's function's address. Simplify.
6189 (d10v_frame_unwind_cache): Check that the frame's function is
6190 non-zero.
6191
6e691f7a
JB
61922003-04-10 Jim Blandy <jimb@redhat.com>
6193
6194 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6195 call to set_gdbarch_deprecated_push_arguments.
6196
7f78e237
AC
61972003-04-10 Andrew Cagney <cagney@redhat.com>
6198
6199 * frame.c (fprint_frame_id): New function.
6200 (fprint_frame_type, fprint_frame): New function.
6201 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6202 (create_sentinel_frame, get_frame_id): Ditto.
6203 (frame_id_p, frame_id_eq): Ditto.
6204 (frame_id_inner, create_new_frame): Ditto.
6205 (legacy_get_prev_frame, get_prev_frame): Ditto.
6206 (deprecated_update_frame_pc_hack): Ditto.
6207 (frame_register_unwind): Ditto.
6208 (deprecated_update_frame_base_hack): Ditto.
6209
f870b49b
CV
62102003-04-10 Corinna Vinschen <vinschen@redhat.com>
6211
6212 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6213 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6214 frame_chain function.
6215 * Makefile.in: Add dependencies due to above change.
6216
7c86889b
CV
62172003-04-10 Corinna Vinschen <vinschen@redhat.com>
6218
6219 * blockframe.c (legacy_frame_chain_valid): Move call to
6220 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6221 inside_entry_file.
6222
d0a55772
AC
62232003-04-09 Andrew Cagney <cagney@redhat.com>
6224
6225 * frame.h (struct frame_id): Replace "pc" and "base" with
6226 "stack_addr" and "code_addr". Update comments.
6227 (frame_id_build): Update parameter names and comment.
6228 (struct frame_info): Replace "id_p" and "id" with "this_id".
6229 * dummy-frame.c (dummy_frame_this_id): Update.
6230 * breakpoint.c (print_one_breakpoint): Update.
6231 * frame.c (get_frame_id): Update.
6232 (get_frame_base, frame_id_build): Update.
6233 (create_sentinel_frame, legacy_get_prev_frame): Update.
6234 (deprecated_update_frame_base_hack): Update.
6235 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6236 (frame_id_inner): Ditto.
6237
ac16bf07
AC
62382003-04-09 Andrew Cagney <cagney@redhat.com>
6239
6240 * defs.h (gdb_print_host_address): Make "addr" parameter a
6241 pointer constant.
6242 * utils.c (gdb_print_host_address): Update.
6243
366cfc9e
KB
62442003-04-09 Kevin Buettner <kevinb@redhat.com>
6245
6246 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6247 register number for R0 is 0.
6248
cd983b5c
JB
62492003-04-09 J. Brobecker <brobecker@gnat.com>
6250
6251 * frame.h (struct gdbarch): Add opaque structure definition
6252 to avoid a compilation warning on LynxOS 4.0.
6253
d1340264
AC
62542003-04-09 Andrew Cagney <cagney@redhat.com>
6255
6256 * frame.h (struct frame_info): Delete field "pc". Replace
6257 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6258 structure.
6259 * frame.c (frame_pc_unwind): Update.
6260 (create_sentinel_frame): Do not set "pc".
6261 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6262 (get_frame_pc): Call frame_pc_unwind.
6263 (deprecated_update_frame_pc_hack): Update.
6264 (create_new_frame): Use "pc" not "->pc".
6265
90a6fffb
AC
62662003-04-09 Andrew Cagney <cagney@redhat.com>
6267
6268 * frame.c (get_frame_id): Eliminate code updating "frame".
6269 (legacy_get_prev_frame): Ditto.
6270 (get_frame_base): Return id.base directly.
6271 (deprecated_update_frame_base_hack): Update "id.base".
6272 * frame.h (struct frame_info): Delete field "frame".
6273
2fbce691
AC
62742003-04-09 Andrew Cagney <cagney@redhat.com>
6275
6276 * NEWS: Mention that the "Sequent family" is obsolete.
6277 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6278 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6279 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6280 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6281 * config/i386/tm-ptx4.h: Obsolete file.
6282 * config/i386/tm-ptx.h: Obsolete file.
6283 * symm-tdep.c: Obsolete file.
6284 * config/i386/symmetry.mt: Obsolete file.
6285 * config/i386/tm-symmetry.h: Obsolete file.
6286 * symm-nat.c: Obsolete file.
6287 * config/i386/nm-symmetry.h: Obsolete file.
6288 * config/i386/xm-symmetry.h: Obsolete file.
6289 * config/i386/symmetry.mh: Obsolete file.
6290 * config/i386/nm-ptx4.h: Obsolete file.
6291 * config/i386/ptx4.mh: Obsolete file.
6292 * config/i386/ptx.mt: Obsolete file.
6293 * config/i386/ptx.mh: Obsolete file.
6294 * config/i386/xm-ptx4.h: Obsolete file.
6295 * config/i386/xm-ptx.h: Obsolete file.
6296
78c43945
AC
62972003-04-09 Andrew Cagney <cagney@redhat.com>
6298
6299 Obsolete mips*-*-mach3*.
6300 * NEWS: Mention that mips*-*-mach3* is obsolete.
6301 * m3-nat.c: Obsolete file.
6302 * config/nm-m3.h: Obsolete file.
6303 * config/mips/tm-mipsm3.h: Obsolete file.
6304 * config/mips/mipsm3.mt: Obsolete file.
6305 * config/mips/mipsm3.mh: Obsolete file.
6306 * config/mips/xm-mipsm3.h: Obsolete file.
6307 * mipsm3-nat.c: Obsolete file.
6308 * configure.host: Obsolete mips-dec-mach3*.
6309 * configure.tgt: Obsolete mips*-*-mach3*.
6310
f1908289
AC
63112003-04-09 Andrew Cagney <cagney@redhat.com>
6312
6313 * doublest.h: Update copyright.
6314 (deprecated_store_floating, deprecated_extract_floating): Rename
6315 store_floating and extract_floating. Update comments.
6316 * doublest.c: Update copyright.
6317 (extract_floating_by_length): Replace extract_floating.
6318 (store_floating_by_length): Replace store_floating.
6319 (deprecated_extract_floating): New function.
6320 (deprecated_store_floating): New function.
6321 (extract_typed_floating): Call extract_floating_by_length.
6322 (store_typed_floating): Call store_floating_by_length.
6323 * x86-64-tdep.c (x86_64_store_return_value): Update.
6324 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6325 (sh64_extract_return_value): Update.
6326 (sh_sh4_register_convert_to_virtual): Update.
6327 (sh_sh64_register_convert_to_virtual): Update.
6328 (sh_sh4_register_convert_to_raw): Update.
6329 (sh_sh64_register_convert_to_raw): Update.
6330 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6331 (rs6000_register_convert_to_raw): Update.
6332 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6333 (ia64_register_convert_to_raw): Update.
6334 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6335 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6336 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6337 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6338 (alpha_register_convert_to_raw): Update.
6339
4443bd83
AC
63402003-04-08 Andrew Cagney <cagney@redhat.com>
6341
6342 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6343 * gdbarch.h, gdbarch.c: Re-generate.
6344 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6345 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6346 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6347 conditionally, use frame_pc_unwind as an alternative. Add
6348 comments.
6349 * arch-utils.c (init_frame_pc_default): Only call
6350 SAVED_PC_AFTER_CALL when available.
6351
c0236d92
EZ
63522003-04-08 Elena Zannoni <ezannoni@redhat.com>
6353
fbe586ae 6354 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6355 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6356 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6357 (start_remote): Ditto.
6358 (handle_inferior_event): Ditto.
6359 (save_inferior_status): Ditto.
6360 (restore_inferior_status): Ditto.
6361 * infcmd.c (attach_command): Ditto.
6362 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6363 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6364 * alpha-tdep.c (heuristic_proc_start): Ditto.
6365 * mips-tdep.c (heuristic_proc_start): Ditto.
6366 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6367 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6368 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6369 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6370 * remote-vx.c (vx_create_inferior): Ditto.
6371
63722003-04-08 Elena Zannoni <ezannoni@redhat.com>
6373
6374 * infrun.c (stop_soon_quietly): Make it an enum, to better
6375 override the default behavior of handle_inferior_event.
6376 (clear_proceed_status): Update uses of stop_soon_quietly to
6377 reflect that it is now an enum.
6378 (start_remote): Ditto.
6379 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6380 is set to handle the new GNU/Linux kernel behavior for
6381 attach/sigstop. Update uses of stop_soon_quietly.
6382 * inferior.h (enum stop_kind): New enum.
6383 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6384 Reset normal handle_inferior_event behavior, afterwards.
6385 * fork-child.c (startup_inferior): Update.
6386 * alpha-tdep.c (heuristic_proc_start): Update.
6387 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6388 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6389 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6390 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6391 * remote-vx.c (vx_create_inferior): Update.
6392 * mips-tdep.c (heuristic_proc_start): Update.
6393
1211bce3
EZ
63942003-04-07 Elena Zannoni <ezannoni@redhat.com>
6395
6396 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6397 be freed more than once, causing wild memory corruptions.
1211bce3 6398 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6399 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6400 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6401 with the "core" target.
1211bce3 6402
f0ef6b29
KB
64032003-04-07 Kevin Buettner <kevinb@redhat.com>
6404
6405 * mips-tdep.c (mips_print_fp_register): New function, created from
6406 do_fp_register_row(). Registers are now (also) printed as hex.
6407 Only one register is printed per row.
6408 (mips_print_register, do_fp_register_row): Print floating point
6409 registers with mips_print_fp_register().
6410
8cf71652
AC
64112003-04-06 Andrew Cagney <cagney@redhat.com>
6412
5e488a7b
AC
6413 * valprint.h (inspect_it): Add extern declaration.
6414 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6415 (selectors_info, classes_info): Ditto.
6416 (find_objc_msgcall): Fix indentation.
6417 (objc_printstr): Delete extern declarations.
6418
8cf71652
AC
6419 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6420
e6ba3bc9
AC
64212003-04-06 Andrew Cagney <cagney@redhat.com>
6422
6423 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6424 Update comment.
6425 * frame.c (legacy_saved_regs_this_id): Update.
6426 (legacy_get_prev_frame): Update.
6427 * xstormy16-tdep.c: Update comment.
6428 * sparc-tdep.c (sparc_frame_chain): Update comment.
6429 * blockframe.c (legacy_frame_chain_valid): Update.
6430
55e1d7e7
AC
64312003-04-06 Andrew Cagney <cagney@redhat.com>
6432
996179ee
AC
6433 * valprint.c (val_print_type_code_int): Delete #ifdef
6434 PRINT_TYPELESS_INTEGER code.
6435
55e1d7e7
AC
6436 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6437 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6438 multi-arch definition.
6439 * gdbarch.h: Re-generate.
6440
43bd9a9e
AC
64412003-04-05 Andrew Cagney <cagney@redhat.com>
6442
6443 Eliminate FRAME_FIND_SAVED_REGS.
6444 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6445 Change FSR parameter to a pointer.
6446 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6447 Assume FSR parameter is a pointer.
6448 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6449 Make fsr a pointer.
6450 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6451 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6452 saved_regs a pointer.
6453 (hppa_frame_saved_pc): Ditto.
6454 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6455 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6456 pointer.
6457 (restore_pc_queue): Make fsr a pointer.
6458 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6459 (hppa_frame_chain): Make saved_regs a pointer, call
6460 hppa_frame_init_saved_regs.
6461 * sparc-tdep.c: Include "gdb_assert.h".
6462 (sparc_frame_find_saved_regs): Replace internal_error with
6463 gdb_assert.
6464 * remote-vxsparc.c (vx_read_register): Delete reference to
6465 FRAME_FIND_SAVED_REGS.
6466 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6467 * gdbarch.h: Regenerate.
6468 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6469 (deprecated_get_frame_saved_regs): Delete declaration.
6470 (struct frame_saved_regs): Delete definition.
6471 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6472 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6473 (hppa_frame_find_saved_regs): Delete declaration.
6474 (FRAME_FIND_SAVED_REGS): Delete macro.
6475 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6476 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6477 FRAME_FIND_SAVED_REGS in comment.
6478
be41e9f4
AC
64792003-04-05 Andrew Cagney <cagney@redhat.com>
6480
6481 * frame.c (frame_func_unwind, get_frame_func): New functions.
6482 * frame.h (get_frame_func, frame_func_unwind): Declare.
6483 (struct frame_info): Add field "prev_func" for caching the
6484 previous frame's function address.
6485 * arm-tdep.c (arm_frameless_function_invocation): Combine
6486 get_pc_function_start and get_frame_pc into get_frame_func.
6487 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6488 (sh64_nofp_frame_init_saved_regs): Ditto.
6489 * s390-tdep.c (s390_function_start): Ditto.
6490 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6491 (rs6000_frameless_function_invocation): Ditto.
6492 (rs6000_frame_saved_pc): Ditto.
6493 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6494 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6495 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6496 (i386_frame_init_saved_regs): Ditto.
6497 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6498 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6499 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6500 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6501 * blockframe.c (frameless_look_for_prologue): Ditto.
6502
a01dd7cc
AC
65032003-04-05 Andrew Cagney <cagney@redhat.com>
6504
6505 * frame.c (legacy_get_prev_frame): Link prev to next at the
6506 function start. Update comments.
6507
5e5592e6
AC
65082003-04-05 Andrew Cagney <cagney@redhat.com>
6509
6510 * frame.c (get_frame_id): Update comment.
6511 (legacy_get_prev_frame): Update comment.
6512 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6513 * gdbarch.h: Regenerate.
6514 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6515 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6516
6fba5002
AC
65172003-04-05 Andrew Cagney <cagney@redhat.com>
6518
6519 * stack.c (print_frame_info): Use get_frame_pc.
6520
7df05f2b
AC
65212003-04-04 Andrew Cagney <cagney@redhat.com>
6522
6523 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6524 the frame's type from the unwinder.
6525 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6526 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6527 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6528 (get_frame_base_address): Use get_frame_type.
6529 (get_frame_locals_address, get_frame_args_address): Ditto.
6530 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6531 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6532 (struct frame_info): Add comment explaining why the frame contains
6533 a "type" field.
6534 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6535 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6536 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6537 NORMAL_FRAME.
6538 * frame-unwind.h: Include "frame.h".
6539 (struct frame_unwind): Add "type" field.
6540 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6541
11889732
AC
65422003-04-04 Andrew Cagney <cagney@redhat.com>
6543
6544 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6545 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6546 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6547 get_frame_base.
6548 (d10v_unwind_dummy_id): Use frame_id_build.
6549 * frame.c (find_frame_sal): Use get_frame_pc.
6550 (create_new_frame): Use deprecated_update_frame_pc_hack and
6551 deprecated_update_frame_base_hack.
6552 (create_sentinel_frame): Add comment about ->pc going away.
6553 (get_prev_frame): Add comment about ->pc going away.
6554 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6555 frame_id_build, deprecated_update_frame_pc_hack and
6556 deprecated_update_frame_base_hack.
6557 (select_frame): Use get_frame_pc.
6558 (legacy_saved_regs_this_id): Use frame_id_build.
6559
50c46a0d
EZ
65602003-04-04 Elena Zannoni <ezannoni@redhat.com>
6561
fbe586ae
RH
6562 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6563 signed integer case.
6564 (classify_argument): Handle enumerations and references.
50c46a0d 6565
50bbdbd9
AC
65662003-04-04 Andrew Cagney <cagney@redhat.com>
6567
6568 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6569 ID to NULL.
6570
36018d2e
AF
65712003-04-01 Adam Fedor <fedor@gnu.org>
6572
6573 * gdb/objc-lang.c (selectors_info): Replace calls to
6574 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6575 SYMBOL_NATURAL_NAME.
6576 (classes_info, find_methods): Likewise.
6577
35cec841
KB
65782003-04-03 Kevin Buettner <kevinb@redhat.com>
6579
6580 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6581 ``mach'' to the value determined by bfd_default_set_arch_mach().
6582
43136899
BR
65832003-04-02 Bob Rossi <bob_rossi@cox.net>
6584
6585 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6586 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6587 (mi-cmd-file.o): Update dependencies.
6588
040b99fd
KB
65892003-04-01 Kevin Buettner <kevinb@redhat.com>
6590
6591 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6592 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6593
9a3d7dfd
AF
65942003-04-01 Adam Fedor <fedor@gnu.org>
6595
6596 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6597 * language.h (struct language_defn): Add la_demangle.
6598 (language_demangle): Declare.
6599 * language.c (language_demangle): New function.
6600 (unk_lang_demangle): Likewise.
6601 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6602 Add ukn_lang_demangle.
9a3d7dfd 6603 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6604 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6605 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6606 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6607 * jv-lang.c (java_demangle): New function
6608 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6609 * objc-lang.c (objc_demangle): Add options argument
6610 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6611 * maint.c (maintenance_demangle): Replace switch with
6612 call to language_demangle.
6613 * utils.c (fprintf_symbol_filtered): Likewise.
6614
5e074003
AC
66152003-04-01 Andrew Cagney <cagney@redhat.com>
6616
6617 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6618 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6619 PRINT_TYPELESS_INTEGER.
6620 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6621 PUSH_RETURN_ADDRESS.
6622
270cb5d6
AC
66232003-04-01 Andrew Cagney <cagney@redhat.com>
6624
6625 * Makefile.in (d10v-tdep.o): Update dependencies.
6626 * d10v-tdep.c: Include "frame-base.h".
6627 (d10v_frame_unwind): Make constant.
6628 (d10v_frame_base_address): New function.
6629 (d10v_frame_base): New variable.
6630 (d10v_gdbarch_init): Set frame_base default.
6631 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6632 comment for base.
6633 (d10v_frame_unwind_cache): Set and use "prev_sp".
6634 (d10v_frame_this_id): Use the previous frame's inner most stack
6635 address and this frame's func address for the frame ID. Use
6636 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6637
6bfb3e36
AC
66382003-04-01 Andrew Cagney <cagney@redhat.com>
6639
6640 * frame.h (get_frame_locals_address, get_frame_args_address):
6641 Refer to the base address, instead of the address of the first
6642 local or parameter.
8ffd9b1b 6643
da62e633
AC
66442003-04-01 Andrew Cagney <cagney@redhat.com>
6645
6646 Add frame debug info addresses:
6647 * frame-base.c: New file.
6648 * frame-base.h: New file.
6649 * frame.h (struct frame_base): Add opaque declaration.
6650 (get_frame_base): Update comment.
6651 (get_frame_base_address): Declare.
6652 (get_frame_locals_address): Declare.
6653 (get_frame_args_address): Declare.
6654 (struct frame_info): Add "base" and "base_cache". Update
6655 comments on the unwinder.
6656 * frame.c: Include "frame-base.h".
6657 (get_frame_locals_address): New function.
6658 (get_frame_base_address): New function.
6659 (get_frame_args_address): New function.
6660 * findvar.c (read_var_value): Use get_frame_locals_address and
6661 get_frame_args_address.
6662 * stack.c (frame_info): Use get_frame_locals_address and
6663 get_frame_args_address.
6664 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6665 moved to "frame-base.c".
6666 * printcmd.c (print_frame_nameless_args): Ditto.
6667 * symtab.h (address_class): Update comments.
6668 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6669 get_frame_base_address.
6670 * dwarf2expr.c (execute_stack_op): Ditto.
6671 * Makefile.in (frame_base_h): Define.
6672 (frame.o): Update dependencies.
6673 (frame-base.o): Add dependencies.
6674 (SFILES): Add frame-base.c.
6675 (COMMON_OBS): Add frame-base.o.
6676
3d30e9c2
AC
66772003-04-01 Andrew Cagney <cagney@redhat.com>
6678
6679 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6680 CALL_DUMMY_LENGTH): Ditto.
6681 * gdbarch.c: Re-generate.
6682 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6683 (CALL_DUMMY_LENGTH): Delete macro.
6684 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6685 * arm-tdep.c (arm_gdbarch_init): Ditto.
6686 * avr-tdep.c (avr_gdbarch_init): Ditto.
6687 * cris-tdep.c (cris_gdbarch_init): Ditto.
6688 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6689 * frv-tdep.c (frv_gdbarch_init): Ditto.
6690 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6691 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6692 * i386-tdep.c (i386_gdbarch_init): Ditto.
6693 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6696 * mips-tdep.c (mips_gdbarch_init): Ditto.
6697 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6698 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6699 * s390-tdep.c (s390_gdbarch_init): Ditto.
6700 * sh-tdep.c (sh_gdbarch_init): Ditto.
6701 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6702 * v850-tdep.c (v850_gdbarch_init): Ditto.
6703 * vax-tdep.c (vax_gdbarch_init): Ditto.
6704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6705
ce0c7262
CV
67062003-04-01 Corinna Vinschen <vinschen@redhat.com>
6707
6708 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6709
73dd234f
AC
67102003-04-01 Andrew Cagney <cagney@redhat.com>
6711
6712 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6713 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6714 * gdbarch.h, gdbarch.c: Re-generate.
6715 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6716 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6717 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6718 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6719 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6720 * infcmd.c (run_stack_dummy): Simplify assuming
6721 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6722 * infrun.c (handle_inferior_event): Ditto.
6723 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6724 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6725 * arm-tdep.c (arm_gdbarch_init): Ditto.
6726 * avr-tdep.c (avr_gdbarch_init): Ditto.
6727 * cris-tdep.c (cris_gdbarch_init): Ditto.
6728 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6729 * frv-tdep.c (frv_gdbarch_init): Ditto.
6730 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6731 * i386-tdep.c (i386_gdbarch_init): Ditto.
6732 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6734 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6735 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6736 * mips-tdep.c (mips_gdbarch_init): Ditto.
6737 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6738 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6739 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6740 * s390-tdep.c (s390_gdbarch_init): Ditto.
6741 * sh-tdep.c (sh_gdbarch_init): Ditto.
6742 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6743 * v850-tdep.c (v850_gdbarch_init): Ditto.
6744 * vax-tdep.c (vax_gdbarch_init): Ditto.
6745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6746
97606a13
DJ
67472003-04-01 Daniel Jacobowitz <drow@mvista.com>
6748
6749 * symfile.c (symfile_relocate_debug_section): Update call to
6750 bfd_simple_get_relocated_section_contents.
6751
e8ab51f7
AC
67522003-03-31 Andrew Cagney <cagney@redhat.com>
6753
6754 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6755 * gdbarch.h, gdbarch.c: Regenerate.
6756 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6757 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6758 available.
6759 * frame.h (generic_fix_call_dummy): Delete declaration.
6760 * dummy-frame.h: Update comment.
6761 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6763 fix_call_dummy.
6764 * sh-tdep.c (sh_gdbarch_init): Ditto.
6765 * s390-tdep.c (s390_gdbarch_init): Ditto.
6766 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6767 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6768 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6769 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6770 * i386-tdep.c (i386_gdbarch_init): Ditto.
6771 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6772 * frv-tdep.c (frv_gdbarch_init): Ditto.
6773 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6774 * cris-tdep.c (cris_gdbarch_init): Ditto.
6775 * avr-tdep.c (avr_gdbarch_init): Ditto.
6776 * arm-tdep.c (arm_gdbarch_init): Ditto.
6777
018d1b48
JB
67782003-03-31 J. Brobecker <brobecker@gnat.com>
6779
6780 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6781 (INIT_FRAME_AP): Likewise.
6782 (EXTRA_FRAME_INFO): Likewise.
6783
e9a2674e
AC
67842003-03-31 Andrew Cagney <cagney@redhat.com>
6785
6786 * gdbarch.sh: Include "symfile.h".
6787 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6788 * gdbarch.h, gdbarch.c: Re-generate.
6789 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6791 call_dummy_address, the default is at entry_point_address.
6792 * v850-tdep.c (v850_gdbarch_init): Ditto.
6793 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6794 * sh-tdep.c (sh_gdbarch_init): Ditto.
6795 * s390-tdep.c (s390_gdbarch_init): Ditto.
6796 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6797 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6798 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6799 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6800 * i386-tdep.c (i386_gdbarch_init): Ditto.
6801 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6802 * frv-tdep.c (frv_gdbarch_init): Ditto.
6803 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6804 * cris-tdep.c (cris_gdbarch_init): Ditto.
6805 * arm-tdep.c (arm_gdbarch_init): Ditto.
6806
e8a8712a
AC
68072003-03-31 Andrew Cagney <cagney@redhat.com>
6808
6809 * gdbarch.sh (CALL_DUMMY_P): Delete.
6810 * gdbarch.h, gdbarch.c: Re-generate.
6811 * inferior.h (CALL_DUMMY_P): Delete macro.
6812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6813 * vax-tdep.c (vax_gdbarch_init): Update.
6814 * v850-tdep.c (v850_gdbarch_init): Update.
6815 * sparc-tdep.c (sparc_gdbarch_init): Update.
6816 * sh-tdep.c (sh_gdbarch_init): Update.
6817 * s390-tdep.c (s390_gdbarch_init): Update.
6818 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6819 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6820 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6821 * mips-tdep.c (mips_gdbarch_init): Update.
6822 * mcore-tdep.c (mcore_gdbarch_init): Update.
6823 * m68k-tdep.c (m68k_gdbarch_init): Update.
6824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6825 * ia64-tdep.c (ia64_gdbarch_init): Update.
6826 * i386-tdep.c (i386_gdbarch_init): Update.
6827 * h8300-tdep.c (h8300_gdbarch_init): Update.
6828 * frv-tdep.c (frv_gdbarch_init): Update.
6829 * d10v-tdep.c (d10v_gdbarch_init): Update.
6830 * cris-tdep.c (cris_gdbarch_init): Update.
6831 * breakpoint.c (deprecated_frame_in_dummy): Update.
6832 * avr-tdep.c (avr_gdbarch_init): Update.
6833 * alpha-tdep.c (alpha_gdbarch_init): Update.
6834 * arm-tdep.c (arm_gdbarch_init): Update.
6835 * dummy-frame.c (dummy_frame_this_id): Update comments.
6836 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6837 * frame.c (legacy_get_prev_frame): Ditto.
6838 * valops.c (call_function_by_hand): Delete function.
6839 (hand_function_call): Rename to call_function_by_hand
6840
ed234cf8
AC
68412003-03-30 Andrew Cagney <cagney@redhat.com>
6842
6843 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6844 * value.h (struct value): Update comment.
ed234cf8 6845
06c77151
AC
68462003-03-30 Andrew Cagney <cagney@redhat.com>
6847
6c2b5168
AC
6848 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6849 D10V_FP_REGNUM.
6850 (d10v_gdbarch_init): Do not set fp_regnum.
6851
06c77151
AC
6852 * frame.c (get_frame_base): Force ID initialization.
6853 (get_prev_frame): Move computation of the frame ID from here ...
6854 (get_frame_id): ... to here.
6855 (legacy_get_prev_frame): Mark the frame ID as valid.
6856 * frame.h (struct frame_info): Add field "id_p".
6857
97a1a11c
MK
68582003-03-30 Mark Kettenis <kettenis@gnu.org>
6859
6860 * i386-tdep.c (i386_store_struct_return): Removed.
6861 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6862
6c0e89ed
AC
68632003-03-30 Andrew Cagney <cagney@redhat.com>
6864
6865 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6866 * gdbarch.h, gdbarch.c: Regenerate.
6867 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6869 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6870 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6871 * i386-tdep.c (i386_gdbarch_init): Ditto.
6872 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6873 * cris-tdep.c (cris_gdbarch_init): Ditto.
6874 * vax-tdep.c (vax_gdbarch_init): Ditto.
6875 * s390-tdep.c (s390_gdbarch_init): Ditto.
6876 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6877 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6878 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6879 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6880 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6881 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6882 * sparc-tdep.c (sparc_gdbarch_init): Update.
6883 * sh-tdep.c (sh_gdbarch_init): Update.
6884 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6885 * mips-tdep.c (mips_gdbarch_init): Update.
6886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6887 * ia64-tdep.c (ia64_gdbarch_init): Update.
6888 * frv-tdep.c (frv_gdbarch_init): Update.
6889 * avr-tdep.c (avr_gdbarch_init): Update.
6890 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6891 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6892 instead of when push_dummy_call is not available.
8ffd9b1b 6893
f7dd6af2
AC
68942003-03-30 Andrew Cagney <cagney@redhat.com>
6895
6896 * infttrace.c: Include "gdbthread.h".
6897 (parent_attach_all): Fix function signature.
6898 (call_ptrace): Update call.
6899 * Makefile.in (infttrace.o): Update dependencies.
6900
28f617b3
AC
69012003-03-30 Andrew Cagney <cagney@redhat.com>
6902
6903 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6904 PUSH_RETURN_ADDRESS.
6905 * gdbarch.h, gdbarch.c: Regenerate.
6906 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6907 * x86-64-tdep.c (x86_64_init_abi): Update.
6908 * v850-tdep.c (v850_gdbarch_init): Update.
6909 * sparc-tdep.c (sparc_gdbarch_init): Update.
6910 * sh-tdep.c (sh_gdbarch_init): Update.
6911 * s390-tdep.c (s390_gdbarch_init): Update.
6912 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6913 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6914 * mips-tdep.c (mips_gdbarch_init): Update.
6915 * mcore-tdep.c (mcore_gdbarch_init): Update.
6916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6917 * ia64-tdep.c (ia64_gdbarch_init): Update.
6918 * i386-tdep.c (i386_gdbarch_init): Update.
6919 * h8300-tdep.c (h8300_gdbarch_init): Update.
6920 * frv-tdep.c (frv_gdbarch_init): Update.
6921 * cris-tdep.c (cris_gdbarch_init): Update.
6922 * avr-tdep.c (avr_gdbarch_init): Update.
6923 * arm-tdep.c (arm_gdbarch_init): Update.
6924 * valops.c (hand_function_call): Update.
6925
4d628cd7
AC
69262003-03-29 Andrew Cagney <cagney@redhat.com>
6927
6928 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6929 sizeof_call_dummy_words.
6930 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6931 define.
6932 * gdbarch.h: Regenerate.
8ffd9b1b 6933
65e82032
AC
69342003-03-29 Andrew Cagney <cagney@redhat.com>
6935
6936 * infttrace.h: New file.
6937 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6938 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6939 (hpread_read_doc_function_type): Detect an initialized type1.
6940 (hpread_quick_traverse): Initialize mod_name_string.
6941 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6942 (som_solib_get_solib_by_pc): Declare.
6943 (so_lib_thread_start_addr): Declare.
6944 (no_shared_libraries): Declare.
6945 * somread.c (init_import_symbols): Make static. Add forward
6946 declaration.
6947 * config/pa/nm-hppah.h: Include "infttrace.h" for
6948 parent_attach_all.
6949 (hppa_insert_hw_watchpoint): Declare.
6950 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6951 * hppah-nat.c: Include "gdb_string.h".
6952 (parent_attach_all): Delete extern declaration, moved to
6953 "infttrace.h".
6954 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6955 int.
6956 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6957 * Makefile.in (infttrace_h): Define.
6958 (hpread.o): Update dependencies.
6959 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6960 * hppa-hpux-tdep.c: Include "gdb_string.h".
6961 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6962 * infrun.c (handle_inferior_event): Always initialize
6963 stepped_after_stopped_by_watchpoint. Add default and remove
6964 fallthrough in switch statement.
6965 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6966 parameter to int.
6967 (hppa_remove_hw_watchpoint): Ditto.
6968
2c3bbe77
AC
69692003-03-29 Andrew Cagney <cagney@redhat.com>
6970
6971 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6972 offset.
6973
2dd604e7
RE
69742003-03-29 Richard Earnshaw <rearnsha@arm.com>
6975
6976 * arm-tdep.c (arm_push_arguments): Delete.
6977 (struct stack_item): New type.
6978 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6979 (arm_store_struct_return): Delte.
6980 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6981 arm_push_arguments or arm_store_struct_return.
6982
e8933a55
AC
69832003-03-28 Andrew Cagney <cagney@redhat.com>
6984
6985 * Makefile.in (d10v-tdep.o): Update dependencies.
6986 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6987 * d10v-tdep.c: Include "remote.h".
6988 (target_resume_hook): Delete extern declaration.
6989 (target_wait_loop_hook): Ditto.
6990 (tdisassemble_command): Eliminate assignment in "if" conditional.
6991 (d10v_ts2_register_sim_regno): Eliminate call to
6992 legacy_register_sim_regno.
6993 (d10v_ts3_register_sim_regno): Ditto.
6994
6949171e
JJ
69952003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6996
6997 * thread.c: Reindented.
6998 * lin-lwp.c: Ditto.
6999 * linux-proc.c: Ditto.
7000
98c7071f
BR
70012003-03-28 Bob Rossi <bob_rossi@cox.net>
7002
fbe586ae 7003 * MAINTAINERS (write after approval): Add myself.
98c7071f 7004
5edc9ca6
TR
70052003-03-27 Theodore A. Roth <troth@openavr.org>
7006
7007 * objc-exp.y: Add missing semi-colons.
7008
378bfd1b
AC
70092003-03-27 Andrew Cagney <cagney@redhat.com>
7010
7011 * regcache.c (write_sp): Delete function and references.
7012 * inferior.h (write_sp): Delete declaration.
7013 * valops.c (hand_function_call): Replace write_sp with
7014 TARGET_WRITE_SP.
7015 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7016 (sparc_pop_frame): Ditto.
8ffd9b1b 7017
56056df7
AC
70182003-03-27 Andrew Cagney <cagney@redhat.com>
7019
7020 * NEWS: Mention removal of support for hppa*-*-bsd* and
7021 hppa*-*-osf* natives, and hppa*-*-pro* target.
7022 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7023 * config/pa/xm-pa.h: Obsolete file.
7024 * config/pa/xm-hppab.h: Obsolete file.
7025 * config/pa/nm-hppab.h: Obsolete file.
7026 * config/pa/tm-hppab.h: Obsolete file.
7027 * config/pa/tm-hppao.h: Obsolete file.
7028 * config/pa/nm-hppao.h: Obsolete file.
7029 * config/pa/tm-pro.h: Obsolete file.
7030 * config/pa/hppaosf.mt: Obsolete file.
7031 * config/pa/hppaosf.mh: Obsolete file.
7032 * config/pa/hppapro.mt: Obsolete file.
7033 * config/pa/hppabsd.mt: Obsolete file.
7034 * config/pa/hppabsd.mh: Obsolete file.
7035 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7036 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7037 hppa*-*-osf*.
7038
5873a88d
AC
70392003-03-27 Andrew Cagney <cagney@redhat.com>
7040
7041 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7042 push_arguments. Don't set push_return_address or write_sp.
7043 (d10v_push_dummy_call): Replace d10v_push_arguments.
7044 (d10v_push_return_address, d10v_write_sp): Delete function,
7045 handled by push_dummy_call.
7046
b81774d8
AC
70472003-03-26 Andrew Cagney <cagney@redhat.com>
7048
7049 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7050 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7051 regcache and dummy_addr parameters.
7052 * gdbarch.h, gdbarch.c: Re-generate.
7053 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7054 available; assume it will handle stack alignment and return
7055 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7056 legacy_push_arguments.
7057 (legacy_push_arguments): Rename default_push_arguments.
7058 * value.h (legacy_push_arguments): Rename default_push_arguments.
7059 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7060 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7061 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7062 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7063 * config/i386/tm-symmetry.h: Update.
7064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7065 * x86-64-tdep.c (x86_64_init_abi): Update.
7066 * v850-tdep.c (v850_gdbarch_init): Update.
7067 * sparc-tdep.c (sparc_gdbarch_init): Update.
7068 * sh-tdep.c (sh_gdbarch_init): Update.
7069 * s390-tdep.c (s390_gdbarch_init): Update.
7070 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7071 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7072 * mips-tdep.c (mips_gdbarch_init): Update.
7073 * mcore-tdep.c (mcore_gdbarch_init): Update.
7074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7075 * ia64-tdep.c (ia64_gdbarch_init): Update.
7076 * i386-tdep.c (i386_gdbarch_init): Update.
7077 * hppa-tdep.c (hppa_gdbarch_init): Update.
7078 * h8300-tdep.c (h8300_gdbarch_init): Update.
7079 * frv-tdep.c (frv_gdbarch_init): Update.
7080 * d10v-tdep.c (d10v_gdbarch_init): Update.
7081 * cris-tdep.c (cris_gdbarch_init): Update.
7082 * avr-tdep.c (avr_gdbarch_init): Update.
7083 * arm-tdep.c (arm_gdbarch_init): Update.
7084 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7085 * alpha-tdep.c (alpha_gdbarch_init): Update.
7086
f541410f
DJ
70872003-03-26 Daniel Jacobowitz <drow@mvista.com>
7088
7089 * signals/signals.c (do_target_signal_to_host): Correct realtime
7090 signal range test.
7091
69f567ae
DJ
70922003-03-26 Daniel Jacobowitz <drow@mvista.com>
7093
7094 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7095 (struct sal_chain, map_catch_names): Remove.
7096 (catch_exception_command_1): Don't call
7097 handle_gnu_4_16_catch_command.
7098
d5d14a5a
DJ
70992003-03-26 Daniel Jacobowitz <drow@mvista.com>
7100
7101 From Mark Dettinger <dettinge@de.ibm.com>:
7102 * dwarf2cfi.c (read_2u): Increment pointer by two.
7103
bdd73e22
DJ
71042003-03-26 Daniel Jacobowitz <drow@mvista.com>
7105
7106 * signals/signals.c: Fix typos in last change.
7107
960cb555
DJ
71082003-03-26 Daniel Jacobowitz <drow@mvista.com>
7109
7110 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7111 not already defined. Use __SIGRTMIN if available.
7112 (target_signal_from_host): Remove SIGRTMIN block.
7113 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7114 the signal is within the realtime range.
7115
f636b87d
AF
71162003-03-25 Adam Fedor <fedor@gnu.org>
7117
7118 * Makefile.in (infrun.o): Add $(language_h)
7119 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7120 for language specific trampolines.
7121 * language.h (struct language_defn): Add skip_trampoline.
7122 (skip_language_trampoline): Declare.
7123 * language.c (unk_lang_trampoline, skip_language_trampoline):
7124 New functions.
7125 (unknown_language_defn, auto_language_defn, local_language_defn):
7126 Add ukn_lang_trampoline.
7127 * ada-lang.c (ada_language_defn): Add NULL for language
7128 specific skip_trampoline.
7129 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7130 scm-lang.c: Likewise.
7131 * objc-lang.c (objc_skip_trampoline): New function.
7132 (objc_language_defn): Add objc_skip_trampoline.
7133
28f617b3 71342003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7135
7136 * frame.c (get_prev_frame): Delay validating a frame's ID -
7137 non-NULL, didn't go backwards - until an attempt to unwind it to
7138 the previous frame.
7139
f933a9c5
AC
71402003-03-25 Andrew Cagney <cagney@redhat.com>
7141
7142 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7143 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7144 * gdbarch.h, gdbarch.c: Re-generate.
7145 * config/sparc/tm-sparc.h
7146 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7147 * sparc-tdep.c (sparc_gdbarch_init): Set
7148 deprecated_extra_stack_alignment_needed.
7149 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7151 extra_stack_alignment_needed.
7152 * v850-tdep.c (v850_gdbarch_init): Ditto.
7153 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7154 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7155 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7156 * cris-tdep.c (cris_gdbarch_init): Ditto.
7157 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7159
4183d812
AC
71602003-03-25 Andrew Cagney <cagney@redhat.com>
7161
7162 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7163 STORE_STRUCT_RETURN.
7164 * gdbarch.h, gdbarch.c: Regenerate.
7165 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7166 (d10v_push_arguments): Set the struct return register.
7167 (d10v_gdbarch_init): Update.
7168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7169 * x86-64-tdep.c (x86_64_init_abi): Update.
7170 * vax-tdep.c (vax_gdbarch_init): Update.
7171 * v850-tdep.c (v850_gdbarch_init): Update.
7172 * sparc-tdep.c (sparc_gdbarch_init): Update.
7173 * sh-tdep.c (sh_gdbarch_init): Update.
7174 * s390-tdep.c (s390_gdbarch_init): Update.
7175 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7176 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7177 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7178 * mips-tdep.c (mips_gdbarch_init): Update.
7179 * mcore-tdep.c (mcore_gdbarch_init): Update.
7180 * m68k-tdep.c (m68k_gdbarch_init): Update.
7181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7182 * ia64-tdep.c (ia64_gdbarch_init): Update.
7183 * i386-tdep.c (i386_gdbarch_init): Update.
7184 * hppa-tdep.c (hppa_gdbarch_init): Update.
7185 * h8300-tdep.c (h8300_gdbarch_init): Update.
7186 * frv-tdep.c (frv_gdbarch_init): Update.
7187 * cris-tdep.c (cris_gdbarch_init): Update.
7188 * avr-tdep.c (avr_gdbarch_init): Update.
7189 * arm-tdep.c (arm_gdbarch_init): Update.
7190 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7191
1bf6d5cc
AC
71922003-03-25 Andrew Cagney <cagney@redhat.com>
7193
7194 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7195 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7196 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7197 * gdbarch.h, gdbarch.c: Regenerate.
7198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7199 call_dummy_stack_adjust_p.
7200 * vax-tdep.c (vax_gdbarch_init): Ditto.
7201 * v850-tdep.c (v850_gdbarch_init): Ditto.
7202 * sh-tdep.c (sh_gdbarch_init): Ditto.
7203 * s390-tdep.c (s390_gdbarch_init): Ditto.
7204 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7205 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7206 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7207 * mips-tdep.c (mips_gdbarch_init): Ditto.
7208 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7209 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7211 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7212 * i386-tdep.c (i386_gdbarch_init): Ditto.
7213 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7214 * frv-tdep.c (frv_gdbarch_init): Ditto.
7215 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7216 * cris-tdep.c (cris_gdbarch_init): Ditto.
7217 * avr-tdep.c (avr_gdbarch_init): Ditto.
7218 * arm-tdep.c (arm_gdbarch_init): Ditto.
7219 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7220 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7221 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7222 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7223 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7224 call_dummy_stack_adjust_p.
7225 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7226 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7227 * sparc-tdep.c (sparc32_push_arguments): Update.
7228 * valops.c (hand_function_call): Update.
7229
71c08af0
CV
72302003-03-25 Corinna Vinschen <vinschen@redhat.com>
7231
7232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7233 set_gdbarch_char_signed.
7234
30757f90
RE
72352003-03-25 Richard Earnshaw <rearnsha@arm.com>
7236
7237 PR cli/548
7238 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7239
03d48a7d
RE
72402003-03-25 Richard Earnshaw <rearnsha@arm.com>
7241
7242 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7243 (_initialize_arm_tdep): Don't set tm_print_insn.
7244
2cf6873c
AF
72452003-03-24 Adam Fedor <fedor@gnu.org>
7246
7247 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7248 * objc-lang.h: Add multiple inclusion protection.
7249 (start_msglist, add_msglist, end_msglist): Additional declarations.
7250
17c0759e
RE
72512003-03-24 Richard Earnshaw <rearnsha@arm.com>
7252
7253 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7254 value was renamed to ARM_FLOAT_SOFT_FPA.
7255
618ce49f
AC
72562003-03-23 Andrew Cagney <cagney@redhat.com>
7257
7258 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7259 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7260 * gdbarch.h, gdbarch.c: Regenerate.
7261 * valops.c (hand_function_call): Update.
7262 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7263 * frame.c (legacy_saved_regs_this_id): Update.
7264 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7265 * dummy-frame.h: Update.
7266 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7267 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7268 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7269 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7270 * config/m68k/tm-sun3.h: Update.
7271 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7273 * x86-64-tdep.c (x86_64_init_abi): Update.
7274 * vax-tdep.c (vax_gdbarch_init): Update.
7275 * v850-tdep.c (v850_gdbarch_init): Update.
7276 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7277 * sh-tdep.c (sh_gdbarch_init): Update.
7278 * s390-tdep.c (s390_gdbarch_init): Update.
7279 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7280 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7281 (frame_get_saved_regs): Update.
7282 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7283 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7284 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7285 * mips-tdep.c (mips_gdbarch_init): Update.
7286 * mcore-tdep.c (mcore_gdbarch_init): Update.
7287 * m68k-tdep.c (m68k_gdbarch_init): Update.
7288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7289 * ia64-tdep.c (ia64_gdbarch_init): Update.
7290 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7291 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7292 (i386_interix_back_one_frame): Update.
7293 * hppa-tdep.c (hppa_gdbarch_init): Update.
7294 (hppa_init_extra_frame_info): Update.
7295 * h8300-tdep.c (h8300_gdbarch_init): Update.
7296 * frv-tdep.c (frv_gdbarch_init): Update.
7297 * cris-tdep.c (cris_gdbarch_init): Update.
7298 * avr-tdep.c (avr_gdbarch_init): Update.
7299 * arm-tdep.c (arm_gdbarch_init): Update.
7300 * alpha-tdep.c (alpha_gdbarch_init): Update.
7301
fd50bc42
RE
73022003-03-22 Richard Earnshaw <rearnsha@arm.com>
7303
7304 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7305 (arm_get_fp_model): Declare.
7306 * arm-tdep.c (fp_model_strings): New string array.
7307 (arm_fp_model, current_fp_model): New variables.
7308 (arm_get_fp_model): New function.
7309 (arm_set_fp): New function.
7310 (set_fp_model_sfunc): New function.
7311 (show_fp_model): New function.
7312 (_initialize_arm_tdep): Add new command to set/show the FPU.
7313 (arm_extract_return_value): Use arm_get_fp_model.
7314 (arm_store_return_value): Likewise.
7315 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7316 to initialize the floating-point data types.
7317 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7318 model is FPA.
7319
26304000
RE
73202003-03-22 Richard Earnshaw <rearnsha@arm.com>
7321
7322 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7323 the current setting of each value.
7324 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7325 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7326 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7327 commands and add new version as subcommands of "set/show arm".
7328
afd7eef0
RE
73292003-03-22 Richard Earnshaw <rearnsha@arm.com>
7330
7331 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7332 (set_arm_command, show_arm_command): New functions.
7333 (_initialize_arm_tdep): Add them.
7334 (num_disassembly_options): Renamed from num_flavor_options.
7335 (valid_disassembly_styles): Renamed from valid_flavors.
7336 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7337 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7338 set_disassembly_flavor_sfunc.
7339 (set_disassembly_style): Renamed from set_disassembly_flavor.
7340 (arm_othernames): Updated.
7341 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7342 command. Add "set/show arm disassembly" commands. Deprecate
7343 "othernames" command.
7344
299a7944
RE
73452003-03-22 Richard Earnshaw <rearnsha@arm.com>
7346
7347 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7348 (arm-tdep.o): Depend on elf_arm_h.
7349
c1dac9e6
RE
73502003-03-22 Richard Earnshaw <rearnsha@arm.com>
7351
7352 * Makefile.in (coff_internal_h): Define.
7353 (arm-tdep.o): Update dependencies.
7354
2702d96c
RE
73552003-03-22 Richard Earnshaw <rearnsha@arm.com>
7356
7357 * arm-tdep.c (prologue_cache): Delete.
7358 (check_prologue_cache, save_prologue_cache): Delete.
7359 (arm_scan_prologue): Don't check or update the prologue_cache.
7360 (arm_gdb_arch_init): Don't initialize it.
7361 (_initialize_arm_tdep): Likewise.
7362
27d5d74b
SC
73632003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7364
7365 * MAINTAINERS (tui): Maintainer of tui code.
7366
1762d96d
CV
73672003-03-21 Corinna Vinschen <vinschen@redhat.com>
7368
7369 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7370 (i386-cygwin-tdep.o): Add dependencies.
7371 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7372 * i386-cygwin-tdep.c: New file.
7373 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7374 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7375
4c2e2391
AC
73762003-03-20 Andrew Cagney <cagney@redhat.com>
7377
f20d38b7
AC
7378 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7379 (handle_inferior_event): Remove code calling
7380 DYNAMIC_TRAMPOLINE_NEXTPC.
7381
0022b738
AC
7382 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7383 already has a full path.
7384
864dbc90
AC
7385 * main.c (gdb_main): Return 1.
7386 (captured_main): Call error to report an invalid interpreter.
7387
4c2e2391
AC
7388 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7389 * alpha-osf1-tdep.c: Include "gdb_string.h".
7390
5ef7553b
JB
73912003-03-19 J. Brobecker <brobecker@gnat.com>
7392
7393 Continuing work to convert the hppa targets to multiarch partial.
7394
7395 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7396 method, now that hppa_push_dummy_frame has a conformant prototype.
7397 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7398 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7399 for the switch to multiarch partial.
7400
7bde8967
KB
74012003-03-19 Kevin Buettner <kevinb@redhat.com>
7402
7403 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7404 when iss is issNull.
7405
b006a9e9
KB
74062003-03-18 Kevin Buettner <kevinb@redhat.com>
7407
7408 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7409 NUM_REGS bounds check.
7410
5e2e9765
KB
74112003-03-18 Kevin Buettner <kevinb@redhat.com>
7412
7413 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7414 * mips-tdep.c (gdb_assert.h): Include.
7415 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7416 (mips_register_name): Handle integer registers explicitly. Add
7417 bounds checking.
7418 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7419 (mips_lsi33k_reg_names): Don't list integer registers; they're
7420 handled by mips_register_name() now.
7421 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7422 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7423 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7424 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7425 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7426
a2867626
AC
74272003-03-18 Andrew Cagney <cagney@redhat.com>
7428
7429 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7430 a void pointer.
7431 * gdbtypes.h (print_scalar_formatted): Update declaration.
7432 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7433
06600e06
JB
74342003-03-18 J. Brobecker <brobecker@gnat.com>
7435
7436 * infrun.c (observer.h): Add #include.
7437 (normal_stop): Add call to observer_notify_normal_stop.
7438 * Makefile.in (infrun.o): Add dependency on observer.h.
7439
7daf4f5b
JB
74402003-03-18 J. Brobecker <brobecker@gnat.com>
7441
7442 Continuing work to convert the hppa targets to multiarch partial.
7443 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7444 parameter. Reformat comment.
7445 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7446 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7447 to match new profile.
7448
3371ccc0
JB
74492003-03-18 J. Brobecker <brobecker@gnat.com>
7450
7451 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7452 appear to be working in any case.
7453
4fbe891e
JB
74542003-03-18 J. Brobecker <brobecker@gnat.com>
7455
7456 * observer.c (observer_test_first_observer): New static variable.
7457 (observer_test_second_observer): Likewise.
7458 (observer_test_third_observer): Likewise.
7459 (observer_test_first_notification_function): New static function.
7460 (observer_test_second_notification_function): Likewise.
7461 (observer_test_third_notification_function): Likewise.
7462
a7ff40e7
JB
74632003-03-17 J. Brobecker <brobecker@gnat.com>
7464
7465 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7466 * somsolib.c (gdb_assert.h): Likewise.
7467 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7468 (somsolib.o): Likewise.
7469
26ca4152
AC
74702003-03-17 Andrew Cagney <cagney@redhat.com>
7471
7472 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7473 BFD. Simplify setting of di.endian.
7474
0a613259
AC
74752003-03-17 Andrew Cagney <cagney@redhat.com>
7476
7477 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7478 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7479
7480 From Elena Zannoni <ezannoni@redhat.com>
7481 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7482 vector and floating-point parameters.
7483 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7484 convention.
7485 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7486
1132738f
FN
74872003-03-17 Fernando Nasser <fnasser@redhat.com>
7488
7489 * MAINTAINERS: Remove my name from several maintainership roles.
7490
6dc42492
AC
74912003-03-17 Andrew Cagney <cagney@redhat.com>
7492
7493 Fix frame off-by-one bug.
7494 * frame-unwind.h (frame_this_id_ftype): Replace
7495 frame_unwind_id_ftype.
7496 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7497 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7498 with "prev_register".
7499 * frame-unwind.c (frame_unwind_find_by_pc): Return
7500 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7501 comment.
7502 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7503 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7504 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7505 (dummy_frame_unwind): Update.
7506 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7507 sentinel_frame_register_unwind.
7508 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7509 (sentinel_frame_unwinder): Update.
7510 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7511 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7512 * frame.c (create_sentinel_frame): Update. Initialize
7513 "prologue_cache" instead of "unwind_cache".
7514 (frame_register_unwind): Call this frame's prev_register with the
7515 next frame and this frame's prologue cache.
7516 (get_prev_frame): Simplify. Always call prev frame's this_id with
7517 this frame and prev frame's prologue cache. Document that this
7518 call is shifted one to the left when compared to the
7519 frame_register_unwind call.
7520 (legacy_saved_regs_prev_register): Replace
7521 frame_saved_regs_register_unwind.
7522 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7523 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7524 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7525 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7526 (d10v_frame_unwind): Update.
7527 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7528 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7529 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7530 "saved_regs" with "this_saved_regs".
7531
efd710d6
AC
75322003-03-16 Andrew Cagney <cagney@redhat.com>
7533
7534 * frame.c (frame_pop): Don't call target_store_registers. Fix
7535 problem reported by Mark Kettenis.
7536
4e259f09
MK
75372003-03-16 Mark Kettenis <kettenis@gnu.org>
7538
7539 * i386-tdep.c (i386_register_type): Renamed from
7540 i386_register_virtual_type. Adjust function signature.
7541 (i386_gdbarch_init): Set register_type instead of
7542 deprecated_max_register_raw_size,
7543 deprecated_max_register_virtual_size and register_virtual_type.
7544
055bb976
AC
75452003-03-14 Andrew Cagney <cagney@redhat.com>
7546
7547 * frame.c (get_prev_frame): When a legacy frame, always call
7548 legacy_get_prev_frame. Simplify unwind code using assumption that
7549 the unwinder is new.
7550 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7551 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7552 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7553
ac2adee5
AC
75542003-03-14 Andrew Cagney <cagney@redhat.com>
7555
7556 * frame.c (get_saved_register): Delete function.
7557 * frame.h (get_saved_register): Delete declaration.
7558 * xstormy16-tdep.c: Update comment.
7559 * regcache.h: Update comments.
7560 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7561 get_saved_register and extract_address, use
7562 frame_read_unsigned_register.
7563 (sparc_frame_saved_pc): Ditto.
7564 (sparc_get_saved_register): Instead of get_saved_register, use
7565 frame_register.
7566 (sparc_pop_frame): Ditto.
7567 * findvar.c: Update comments.
7568 (value_of_register): Call frame_register instead of
7569 get_saved_register.
7570 (value_from_register): Ditto.
7571 * config/sparc/tm-sparc.h: Update comment.
7572 * breakpoint.c: Update comment.
7573
129c1cd6
AC
75742003-03-14 Andrew Cagney <cagney@redhat.com>
7575
7576 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7577 GET_SAVED_REGISTER.
7578 * gdbarch.h, gdbarch.c: Re-generate.
7579 * frame.h: Update comments.
7580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7581 * x86-64-tdep.c (x86_64_init_abi): Update.
7582 * sparc-tdep.c (sparc_gdbarch_init): Update.
7583 * sh-tdep.c (sh_gdbarch_init): Update.
7584 * mips-tdep.c (mips_gdbarch_init): Update.
7585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7586 * cris-tdep.c (cris_gdbarch_init): Update.
7587 * ia64-tdep.c (ia64_gdbarch_init): Update.
7588 * frame.c (frame_register): Update.
7589 (get_saved_register): Update.
7590 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7591
749b82f6
AC
75922003-03-13 Andrew Cagney <cagney@redhat.com>
7593
7594 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7595 * gdbarch.h, gdbarch.c: Regenerate.
7596 * valops.c (hand_function_call): Update comment.
7597 * stack.c (return_command): Update comment.
7598 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7599 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7601 * x86-64-tdep.c (x86_64_init_abi): Update.
7602 * vax-tdep.c (vax_gdbarch_init): Update.
7603 * v850-tdep.c (v850_gdbarch_init): Update.
7604 * sparc-tdep.c (sparc_gdbarch_init): Update.
7605 * sh-tdep.c (sh_gdbarch_init): Update.
7606 * s390-tdep.c (s390_gdbarch_init): Update.
7607 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7608 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7610 * mips-tdep.c (mips_gdbarch_init): Update.
7611 * mcore-tdep.c (mcore_gdbarch_init): Update.
7612 * m68k-tdep.c (m68k_gdbarch_init): Update.
7613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7614 * ia64-tdep.c (ia64_gdbarch_init): Update.
7615 * i386-tdep.c (i386_gdbarch_init): Update.
7616 * hppa-tdep.c (hppa_gdbarch_init): Update.
7617 * h8300-tdep.c (h8300_gdbarch_init): Update.
7618 * frv-tdep.c (frv_gdbarch_init): Update.
7619 * cris-tdep.c (cris_gdbarch_init): Update.
7620 * avr-tdep.c (avr_gdbarch_init): Update.
7621 * arm-tdep.c (arm_gdbarch_init): Update.
7622 * alpha-tdep.c (alpha_gdbarch_init): Update.
7623
1594fa56
AC
76242003-03-13 Andrew Cagney <cagney@redhat.com>
7625
7626 * frame.c (legacy_frame_p): New function.
7627 (get_prev_frame): Use legacy_frame_p.
7628 * frame.h (legacy_frame_p): Declare.
7629
7717fda3
V
76302003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7631
fbe586ae 7632 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7633 listing corrected.
7634
0c67cbe9
V
76352003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7636
fbe586ae 7637 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7638
03febf99
AC
76392003-03-12 Andrew Cagney <cagney@redhat.com>
7640
7641 * frame.c (get_prev_frame): Rename the frame parameter to
7642 "this_frame".
7643 (get_next_frame, legacy_get_prev_frame): Ditto.
7644
0a1e1ca1
AC
76452003-03-12 Andrew Cagney <cagney@redhat.com>
7646
7647 * frame.c (get_current_frame): Check target_has_registers before
7648 checking target_has_stack.
7649 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7650 instead of deprecated_selected_frame.
7651 * findvar.c (value_of_register): Pass "frame", not
7652 deprecated_selected_frame, to value_of_builtin_reg.
7653
a66a9c23
AC
76542003-03-12 Andrew Cagney <cagney@redhat.com>
7655
7656 * regcache.c (regcache_cooked_write_signed): New function.
7657 (regcache_cooked_write_unsigned): New function.
7658 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7659 (regcache_cooked_read_signed): Fix regnum in range assertion.
7660 * regcache.h (regcache_cooked_write_signed): Declare.
7661 (regcache_cooked_write_unsigned): Declare.
7662
8bedc050
AC
76632003-03-12 Andrew Cagney <cagney@redhat.com>
7664
7665 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7666 * gdbarch.h, gdbarch.c: Re-generate.
7667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7668 * x86-64-tdep.h: Update.
7669 * x86-64-tdep.c (x86_64_init_abi): Update.
7670 * v850-tdep.c (v850_gdbarch_init): Update.
7671 * sparc-tdep.c (sparc_gdbarch_init): Update.
7672 * sh-tdep.c (sh_gdbarch_init): Update.
7673 * s390-tdep.c (s390_gdbarch_init): Update.
7674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7675 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7676 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7677 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7678 * mips-tdep.c (mips_gdbarch_init): Update.
7679 * mcore-tdep.c (mcore_gdbarch_init): Update.
7680 * m68k-tdep.c (m68k_gdbarch_init): Update.
7681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7682 * ia64-tdep.c (ia64_gdbarch_init): Update.
7683 * i386-tdep.c (i386_gdbarch_init): Update.
7684 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7685 * hppa-tdep.c (hppa_gdbarch_init): Update.
7686 * h8300-tdep.c (h8300_gdbarch_init): Update.
7687 * frv-tdep.c (frv_gdbarch_init): Update.
7688 * cris-tdep.c (cris_gdbarch_init): Update.
7689 * avr-tdep.c (avr_gdbarch_init): Update.
7690 * arm-tdep.c (arm_gdbarch_init): Update.
7691 * alpha-tdep.c (alpha_gdbarch_init): Update.
7692 * sh-tdep.c (sh_init_extra_frame_info): Update.
7693 (sh64_init_extra_frame_info): Update.
7694 * ns32knbsd-nat.c (frame_num_args): Update.
7695 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7696 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7697 (xstormy16_frame_chain_valid): Update.
7698 * vax-tdep.c (vax_saved_pc_after_call): Update.
7699 * v850-tdep.c (v850_frame_chain): Update.
7700 (v850_pop_frame): Update.
7701 (v850_init_extra_frame_info): Update.
7702 * sparc-tdep.c (setup_arbitrary_frame): Update.
7703 * ns32k-tdep.c (umax_frame_num_args): Update.
7704 * s390-tdep.c (s390_pop_frame_regular): Update.
7705 * mn10300-tdep.c (mn10300_frame_chain): Update.
7706 (mn10300_pop_frame_regular): Update.
7707 (mn10300_init_extra_frame_info): Update.
7708 * mips-tdep.c (mips_init_frame_pc_first): Update.
7709 (mips_frame_chain): Update.
7710 (mips_pop_frame): Update.
7711 * mcore-tdep.c (mcore_frame_chain): Update.
7712 (mcore_pop_frame): Update.
7713 (mcore_init_extra_frame_info): Update.
7714 * arch-utils.c (init_frame_pc_default): Update.
7715 * m68k-tdep.c (isi_frame_num_args): Update.
7716 (delta68_frame_num_args): Update.
7717 (news_frame_num_args): Update.
7718 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7719 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7720 (alpha_frame_chain): Update.
7721 (alpha_pop_frame): Update.
7722 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7723 (hppa_init_extra_frame_info): Update.
7724 (hppa_frame_chain): Update.
7725 (hppa_frame_chain_valid): Update.
7726 * cris-tdep.c (cris_init_extra_frame_info): Update.
7727 * avr-tdep.c (avr_init_extra_frame_info): Update.
7728 * arm-tdep.c (arm_frame_chain_valid): Update.
7729 (arm_init_extra_frame_info): Update.
7730 (arm_pop_frame): Update.
7731 * frame.c (frame_pc_unwind): Update.
7732 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7733 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7734 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7735 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7736 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7737 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7738
7a25a7c1
AC
77392003-03-12 Andrew Cagney <cagney@redhat.com>
7740
7741 Eliminate the need for POP_FRAME.
7742 * frame.c (do_frame_unwind_register): New function.
7743 (frame_pop): When no POP_FRAME, pop the frame using register
7744 unwind and a scratch regcache.
7745 (frame_saved_regs_pop): Delete function.
7746 (trad_frame_unwinder): Update.
7747 * d10v-tdep.c (d10v_frame_pop): Delete function.
7748 (d10v_frame_unwind): Update.
7749 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7750 (sentinel_frame_unwinder): Update.
7751 * dummy-frame.c (dummy_frame_pop): Delete function.
7752 (dummy_frame_unwind): Update.
7753 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7754 (struct frame_unwind): Update.
7755
2f38ef89
KB
77562003-03-11 Kevin Buettner <kevinb@redhat.com>
7757
7758 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7759 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7760 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7761 Do range checks on register number obtained from debugging info.
7762 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7763 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7764 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7765 mapping function.
7766 (do_fp_register_row): Fix typo which caused double type to be
7767 used when attempting to unpack a float.
7768
552f4abf
JB
77692003-03-11 J. Brobecker <brobecker@gnat.com>
7770
7771 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7772
e0d2ae16
AC
77732003-03-11 Andrew Cagney <cagney@redhat.com>
7774
7775 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7776 frame. Problem found by Corinna Vinschen.
7777
ddbfdd06
PM
77782003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7779
7780 * doublest.c (floatformat_from_length): Accept also
7781 the real size of 'long double' type.
7782
088b2ddc 77832003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7784
088b2ddc 7785 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7786 * breakpoint.c (bpstat_copy): Copy the command lines as well
7787 as the old value, to match what is freed in bpstat_clear.
7788
f56f77c1
DC
77892003-03-10 David Carlton <carlton@math.stanford.edu>
7790
7791 * minsyms.c (add_minsym_to_hash_table): Replace
7792 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7793 (compare_minimal_symbols, compact_minimal_symbols)
7794 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7795 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7796 of DEPRECATED_SYMBOL_MATCHES_NAME.
7797 (lookup_minimal_symbol_solib_trampoline): Ditto.
7798
5602984a
AC
77992003-03-10 Andrew Cagney <cagney@redhat.com>
7800
7801 * regcache.h (regcache_cooked_read_ftype): Define.
7802 (regcache_save, regcache_restore): Add a cooked_read parameter.
7803 * regcache.c (regcache_save, regcache_restore): Update.
7804 (do_cooked_read): New function.
7805 (regcache_cpy): Pass do_cooked_read to regcache_save and
7806 regcache_restore.
7807
8bedc050
AC
78082003-03-10 Andrew Cagney <cagney@redhat.com>
7809
7810 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7811 * gdbarch.h, gdbarch.c: Re-generate.
7812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7813 * x86-64-tdep.h: Update.
7814 * x86-64-tdep.c (x86_64_init_abi): Update.
7815 * v850-tdep.c (v850_gdbarch_init): Update.
7816 * sparc-tdep.c (sparc_gdbarch_init): Update.
7817 * sh-tdep.c (sh_gdbarch_init): Update.
7818 * s390-tdep.c (s390_gdbarch_init): Update.
7819 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7820 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7821 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7822 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7823 * mips-tdep.c (mips_gdbarch_init): Update.
7824 * mcore-tdep.c (mcore_gdbarch_init): Update.
7825 * m68k-tdep.c (m68k_gdbarch_init): Update.
7826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7827 * ia64-tdep.c (ia64_gdbarch_init): Update.
7828 * i386-tdep.c (i386_gdbarch_init): Update.
7829 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7830 * hppa-tdep.c (hppa_gdbarch_init): Update.
7831 * h8300-tdep.c (h8300_gdbarch_init): Update.
7832 * frv-tdep.c (frv_gdbarch_init): Update.
7833 * cris-tdep.c (cris_gdbarch_init): Update.
7834 * avr-tdep.c (avr_gdbarch_init): Update.
7835 * arm-tdep.c (arm_gdbarch_init): Update.
7836 * alpha-tdep.c (alpha_gdbarch_init): Update.
7837 * sh-tdep.c (sh_init_extra_frame_info): Update.
7838 (sh64_init_extra_frame_info): Update.
7839 * ns32knbsd-nat.c (frame_num_args): Update.
7840 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7841 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7842 (xstormy16_frame_chain_valid): Update.
7843 * vax-tdep.c (vax_saved_pc_after_call): Update.
7844 * v850-tdep.c (v850_frame_chain): Update.
7845 (v850_pop_frame): Update.
7846 (v850_init_extra_frame_info): Update.
7847 * sparc-tdep.c (setup_arbitrary_frame): Update.
7848 * ns32k-tdep.c (umax_frame_num_args): Update.
7849 * s390-tdep.c (s390_pop_frame_regular): Update.
7850 * mn10300-tdep.c (mn10300_frame_chain): Update.
7851 (mn10300_pop_frame_regular): Update.
7852 (mn10300_init_extra_frame_info): Update.
7853 * mips-tdep.c (mips_init_frame_pc_first): Update.
7854 (mips_frame_chain): Update.
7855 (mips_pop_frame): Update.
7856 * mcore-tdep.c (mcore_frame_chain): Update.
7857 (mcore_pop_frame): Update.
7858 (mcore_init_extra_frame_info): Update.
7859 * arch-utils.c (init_frame_pc_default): Update.
7860 * m68k-tdep.c (isi_frame_num_args): Update.
7861 (delta68_frame_num_args): Update.
7862 (news_frame_num_args): Update.
7863 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7864 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7865 (alpha_frame_chain): Update.
7866 (alpha_pop_frame): Update.
7867 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7868 (hppa_init_extra_frame_info): Update.
7869 (hppa_frame_chain): Update.
7870 (hppa_frame_chain_valid): Update.
7871 * cris-tdep.c (cris_init_extra_frame_info): Update.
7872 * avr-tdep.c (avr_init_extra_frame_info): Update.
7873 * arm-tdep.c (arm_frame_chain_valid): Update.
7874 (arm_init_extra_frame_info): Update.
7875 (arm_pop_frame): Update.
7876 * frame.c (frame_pc_unwind): Update.
7877 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7878 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7879 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7880 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7881 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7882 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7883
12cc2063
AC
78842003-03-10 Andrew Cagney <cagney@redhat.com>
7885
7886 * gdbarch.sh (gdbarch_unwind_pc): New method.
7887 * gdbarch.h, gdbarch.c: Regenerate.
7888 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7889 but use read_pc and FRAME_SAVED_PC as fall backs.
7890 (frame_saved_regs_pc_unwind): Delete function.
7891 (trad_frame_unwinder): Update.
7892 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7893 (struct frame_unwind): Update.
7894 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7895 (dummy_frame_unwind): Update.
7896 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7897 (sentinel_frame_unwinder): Update.
7898 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7899 (d10v_frame_unwind): Update.
7900 (d10v_unwind_pc): New function.
7901 (d10v_gdbarch_init): Set unwind_pc.
7902
ef840a37
AC
79032003-03-10 Andrew Cagney <cagney@redhat.com>
7904
a2ce2e56
AC
7905 * gdbarch.h: Re-generate.
7906
ef840a37
AC
7907 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7908 PC.
7909 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7910 the PC register.
7911
08f3424b
MK
79122003-03-08 Mark Kettenis <kettenis@gnu.org>
7913
7914 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7915
1248ede2
AC
79162003-03-08 Andrew Cagney <cagney@redhat.com>
7917
7918 * cli-out.c: Update copyright.
7919 (cli_out_data): Define typedef. Use instead of ui_out_data.
7920
f49bacc8
AC
79212003-03-08 Andrew Cagney <cagney@redhat.com>
7922
7923 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7924 the result.
7925
9b05f993
AC
79262003-03-07 Andrew Cagney <cagney@redhat.com>
7927
7928 * gdbarch.sh: Don't generate two macro definitions when an
7929 undefined macro taking no arguments.
7930 * gdbarch.h: Regenerate.
8ffd9b1b 7931
166f4c7b
ML
79322002-03-07 Michal Ludvig <mludvig@suse.cz>
7933
7934 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7935 (x86_64_unwind_dummy_id): New functions.
7936 (x86_64_init_abi): Register these two new functions.
7937
6d686a84
ML
79382003-03-07 Michal Ludvig <mludvig@suse.cz>
7939
7940 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7941 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
7942 separate function.
7943 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7944
6314f104
AC
79452003-03-05 Andrew Cagney <cagney@redhat.com>
7946
7947 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7948 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7949 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7950 to use unwind_dummy_id when a dummy frame.
7951 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7952 predicate.
7953 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 7954
ceea5145
AC
79552003-03-05 Andrew Cagney <cagney@redhat.com>
7956
7957 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7958 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7959 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7960 values.
7961
0d843116
AC
79622003-03-05 Andrew Cagney <cagney@redhat.com>
7963
7964 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7965 (struct d10v_unwind_cache): Delete field "frameless". Replace
7966 "next_addr" with "sp_offset". Add "r11_offset".
7967 (d10v_frame_unwind_cache): Update.
7968 (prologue_find_regs): Update. When "mv r11, sp", save the
7969 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7970 RN was saved in r11_offset.
7971
b2579786
AC
79722003-03-05 Andrew Cagney <cagney@redhat.com>
7973
7974 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7975 cached PC value in the next frame.
7976
218e5956
AC
79772003-03-05 Andrew Cagney <cagney@redhat.com>
7978
7979 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7980 "id_unwind_cache" with "id".
7981 (frame_id_unwind): Delete declaration.
7982 * frame.c (frame_id_unwind): Delete function.
7983 (get_prev_frame): Call the frame id unwind method directly. Store
7984 the returned next frame's ID value in NEXT_FRAME. Note that there
7985 is a problem with the wrong unwind ID being called with the wrong
7986 unwind cache.
7987
ed363b1b
DJ
79882003-03-05 Daniel Jacobowitz <drow@mvista.com>
7989
7990 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7991
fe1f4a5e
DJ
79922003-03-05 James Ingham <jingham@apple.com>
7993 Daniel Jacobowitz <drow@mvista.com>
7994
7995 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7996 (auto_cp_abi): New variable.
7997 (current_cp_abi, num_cp_abis): Make static.
7998 (CP_ABI_MAX): Define.
7999 (cp_abis): Turn into an array.
8000 (value_virtual_fn_field): Fix formatting.
8001 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8002 takes a pointer.
8003 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8004 (list_cp_abis, _initialize_cp_abi): New functions.
8005 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8006 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8007 switch_to_cp_abi. Update prototype for register_cp_abi.
8008 * Makefile.in (cp-abi.o): Update dependencies.
8009 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8010 instead of switch_to_cp_abi.
8011 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8012 register_cp_abi.
8013 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8014 register_cp_abi.
8015 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8016
e4adbba9
DJ
80172003-03-05 Daniel Jacobowitz <drow@mvista.com>
8018
8019 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8020 * dwarf2loc.c: Include "regcache.h".
8021 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8022 register_size.
8023 * Makefile.in (dwarf2loc.o): Update dependencies.
8024
91ccbfc1
TR
80252003-03-04 Theodore A. Roth <troth@openavr.org>
8026
8027 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8028 number of io registers reported by remote target is not a multiple of
8029 step.
8030
3d4e8fd2
DC
80312003-03-04 David Carlton <carlton@math.stanford.edu>
8032
8033 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8034 (lookup_symbol_aux_psymtabs): Update call to
8035 lookup_partial_symbol.
8036 (lookup_transparent_type, find_main_psymtab)
8037 (make_symbol_overload_list): Ditto.
8038
ed42d87b
KH
80392003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8040
8041 * MAINTAINERS (Write after approval): Update my email address.
8042
a0ed5532
AC
80432003-03-03 Andrew Cagney <cagney@redhat.com>
8044
8045 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8046 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8047 predicate. Replace MAX_REGISTER_RAW_SIZE.
8048 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8049 MAX_REGISTER_VIRTUAL_SIZE.
8050 * regcache.c (legacy_max_register_raw_size): New function.
8051 (legacy_max_register_virtual_size): New function.
8052 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8053 (MAX_REGISTER_RAW_SIZE): Define.
8054 (legacy_max_register_raw_size): Declare.
8055 (legacy_max_register_virtual_size): Declare.
8056 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8057 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8058 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8059 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8060 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8061 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8062 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8063 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8064 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8066 * vax-tdep.c (vax_gdbarch_init): Update.
8067 * v850-tdep.c (v850_gdbarch_init): Update.
8068 * sparc-tdep.c (sparc_gdbarch_init): Update.
8069 * sh-tdep.c (sh_gdbarch_init): Update.
8070 * s390-tdep.c (s390_gdbarch_init): Update.
8071 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8072 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8073 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8074 * mips-tdep.c (mips_gdbarch_init): Update.
8075 * mcore-tdep.c (mcore_gdbarch_init): Update.
8076 * m68k-tdep.c (m68k_gdbarch_init): Update.
8077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8078 * ia64-tdep.c (ia64_gdbarch_init): Update.
8079 * i386-tdep.c (i386_gdbarch_init): Update.
8080 * hppa-tdep.c (hppa_gdbarch_init): Update.
8081 * h8300-tdep.c (h8300_gdbarch_init): Update.
8082 * frv-tdep.c (frv_gdbarch_init): Update.
8083 * cris-tdep.c (cris_gdbarch_init): Update.
8084 * avr-tdep.c (avr_gdbarch_init): Update.
8085 * arm-tdep.c (arm_gdbarch_init): Update.
8086 * alpha-tdep.c (alpha_gdbarch_init): Update.
8087 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8088 max_register_raw_size or max_register_virtual_size.
8089
8e437497
DC
80902003-03-03 David Carlton <carlton@math.stanford.edu>
8091
8092 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8093 SYMBOL_MATCHES_NAME, add comment.
8094 (SYMBOL_MATCHES_NATURAL_NAME): New.
8095 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8096 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8097 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8098 * symtab.c (lookup_partial_symbol): Use
8099 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8100 unhelpful comment.
8101 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8102 SYMBOL_MATCHES_NAME.
8103 Fix for PR c++/33.
8104
25120b0d
DC
81052003-03-03 David Carlton <carlton@math.stanford.edu>
8106
8107 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8108 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8109 by regexp matching against SYMBOL_NATURAL_NAME.
8110
78a11fb4
DC
81112003-03-03 David Carlton <carlton@math.stanford.edu>
8112
8113 * linespec.c (find_method): Extract code into collect_methods.
8114 (collect_methods): New.
8115
645dd519
MK
81162003-03-02 Mark Kettenis <kettenis@gnu.org>
8117
b4700d91
MK
8118 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8119 get_frame_base.
8120
645dd519
MK
8121 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8122 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8123
0aa7e1aa
SC
81242003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8125
8ffd9b1b 8126 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8127 and not regnum when summing the size of all registers up to regnum.
8128
f30ee0bc
AC
81292003-03-01 Andrew Cagney <cagney@redhat.com>
8130
8131 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8132 FRAME_INIT_SAVED_REGS.
8133 * gdbarch.h, gdbarch.c: Regenerate.
8134 * stack.c (frame_info): Update.
8135 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8136 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8137 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8138 * ns32k-tdep.c (ns32k_pop_frame): Update.
8139 * mips-tdep.c (mips_pop_frame): Update.
8140 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8141 * ia64-tdep.c (ia64_frame_chain): Update.
8142 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8143 (ia64_frameless_function_invocation): Update.
8144 (ia64_init_extra_frame_info): Update.
8145 (ia64_pop_frame_regular): Update.
8146 * frame.h (struct frame_info): Update comment.
8147 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8148 * frame.c (frame_saved_regs_register_unwind): Update.
8149 (frame_saved_regs_register_unwind): Update.
8150 (deprecated_generic_get_saved_register): Update.
8151 * cris-tdep.c: Update comment.
8152 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8153 Rename macro.
8154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8155 * x86-64-tdep.c (x86_64_init_abi): Update.
8156 * vax-tdep.c (vax_gdbarch_init): Update.
8157 * v850-tdep.c (v850_gdbarch_init): Update.
8158 * sparc-tdep.c (sparc_gdbarch_init): Update.
8159 * sh-tdep.c (sh_gdbarch_init): Update.
8160 * s390-tdep.c (s390_gdbarch_init): Update.
8161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8162 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8163 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8164 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8165 * mips-tdep.c (mips_gdbarch_init): Update.
8166 * mcore-tdep.c (mcore_gdbarch_init): Update.
8167 * m68k-tdep.c (m68k_gdbarch_init): Update.
8168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8169 * ia64-tdep.c (ia64_gdbarch_init): Update.
8170 * i386-tdep.c (i386_gdbarch_init): Update.
8171 * frv-tdep.c (frv_gdbarch_init): Update.
8172 * avr-tdep.c (avr_gdbarch_init): Update.
8173 * arm-tdep.c (arm_gdbarch_init): Update.
8174 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8175
42fa7c0f
AC
81762003-03-01 Andrew Cagney <cagney@redhat.com>
8177
8178 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8179 option enum and switch. When no windows, set the interpreter to
8180 INTERP_CONSOLE.
8ffd9b1b 8181
49c7e338
AC
81822003-03-01 Andrew Cagney <cagney@redhat.com>
8183
8184 * main.c (captured_main): Replace magic option characters with an
8185 enum.
8186
e9582e71
AC
81872003-03-01 Andrew Cagney <cagney@redhat.com>
8188
8189 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8190 INIT_EXTRA_FRAME_INFO.
8191 * gdbarch.h, gdbarch.c: Regenerate.
8192 * arm-tdep.c: Update comments.
8193 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8194 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8195 * frame.h, avr-tdep.c: Ditto.
8196 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8197 (create_new_frame, legacy_get_prev_frame): Ditto.
8198 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8199 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8201 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8202 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8203 * v850-tdep.c (v850_gdbarch_init): Ditto.
8204 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8205 * sh-tdep.c (sh_gdbarch_init): Ditto.
8206 * s390-tdep.c (s390_gdbarch_init): Ditto.
8207 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8208 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8209 * mips-tdep.c (mips_gdbarch_init): Ditto.
8210 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8212 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8213 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8214 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8215 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8216 * frv-tdep.c (frv_gdbarch_init): Ditto.
8217 * cris-tdep.c (cris_gdbarch_init): Ditto.
8218 * avr-tdep.c (avr_gdbarch_init): Ditto.
8219 * arm-tdep.c (arm_gdbarch_init): Ditto.
8220 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8221 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8222
35cac7cf
AC
82232003-03-01 Andrew Cagney <cagney@redhat.com>
8224
8225 * gdbarch.sh (register_type): New function with predicate.
8226 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8227 * gdbarch.h, gdbarch.c: Re-generate.
8228 * arch-utils.c (generic_register_byte): Use generic_register_size.
8229 (generic_register_size): When available, use
8230 gdbarch_register_type.
8231 * regcache.c (init_regcache_descr): When available, initialize the
8232 register type array using gdbarch_register_type. If the
8233 architecture supplies gdbarch_register_type, do not use the legacy
8234 regcache layout.
8235 * d10v-tdep.c (d10v_register_type): Replace
8236 d10v_register_virtual_type.
8237 (d10v_gdbarch_init): Set register_type instead of
8238 register_virtual_type.
8239
7b83296f
AC
82402003-03-01 Andrew Cagney <cagney@redhat.com>
8241
8242 * Makefile.in (ax-gdb.o): Update dependencies.
8243 * ax-gdb.c: Include "regcache.h".
8244 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8245 * findvar.c (value_of_register): Ditto.
8246 * infcmd.c (default_print_registers_info): Ditto.
8247
eadc1c87
MK
82482003-03-01 Mark Kettenis <kettenis@gnu.org>
8249
8250 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8251 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8252
14143612
MK
82532003-03-01 Mark Kettenis <kettenis@gnu.org>
8254
8255 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8256 of STREQ.
8257
a55cc764
DJ
82582003-02-28 Daniel Jacobowitz <drow@mvista.com>
8259
8260 * Makefile.in (dwarf2loc.o): Update dependencies.
8261 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8262 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8263 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8264 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8265 (locexpr_tracepoint_var_ref): New function.
8266 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8267
08a617da
AC
82682003-02-28 Andrew Cagney <cagney@redhat.com>
8269
8270 * regcache.c (register_size): New function.
8271 * regcache.h (register_size): Declare
8272 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8273 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8274
4224873a
DC
82752003-02-28 David Carlton <carlton@math.stanford.edu>
8276
8277 * linespec.c (decode_compound): Extract code into find_method.
8278 (find_method): New.
8279
ccdc5d7f
JB
82802003-02-28 J. Brobecker <brobecker@gnat.com>
8281
8282 * Makefile.in: Add rules to build and link in observer.o.
8283
974e8ced
JB
82842003-02-27 J. Brobecker <brobecker@gnat.com>
8285
8286 * observer.c: Minor comments edits.
8287
7a28f973
JB
82882003-02-27 J. Brobecker <brobecker@gnat.com>
8289
8290 * observer.h, observer.c: New file.
8291
27cddce2
AC
82922003-02-27 Andrew Cagney <cagney@redhat.com>
8293
8294 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8295
b94a41a1
SC
82962003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8297
8298 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8299 (M6812_OP_STS_EXT): Likewise.
8300 (m6811_prologue): Use the above to recognize prologue.
8301 (m6812_prologue): Likewise.
8302
c8be8951
DC
83032003-02-27 David Carlton <carlton@math.stanford.edu>
8304
8305 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8306 SYMBOL_PRINT_NAME.
8307 (compare_psymbols): Ditto.
8308 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8309
d05bb1fc
MS
83102003-02-27 Michael Snyder <msnyder@redhat.com>
8311
4e845cd3
MS
8312 * f-lang.c (build_fortran_types): New function.
8313 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8314 * doublest.c (extract_floating): Fix warning text.
8315
f3824013
AC
83162003-02-27 Andrew Cagney <cagney@redhat.com>
8317
8318 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8319 predicate. Replaces PUSH_DUMMY_FRAME.
8320 * gdbarch.h, gdbarch.c: Regnerate.
8321 * valops.c (hand_function_call): Update. Call
8322 generic_push_dummy_frame directly.
8323 * vax-tdep.c (vax_gdbarch_init): Update.
8324 * sparc-tdep.c (sparc_gdbarch_init): Update.
8325 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8326 * m68k-tdep.c (m68k_gdbarch_init): Update.
8327 * hppa-tdep.c (hppa_gdbarch_init): Update.
8328 * alpha-tdep.c (alpha_gdbarch_init): Update.
8329 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8330 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8331 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8332 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8333 push_dummy_frame to generic_push_dummy_frame.
8334 * v850-tdep.c (v850_gdbarch_init): Ditto.
8335 * sh-tdep.c (sh_gdbarch_init): Ditto.
8336 * s390-tdep.c (s390_gdbarch_init): Ditto.
8337 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8338 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8339 * mips-tdep.c (mips_gdbarch_init): Ditto.
8340 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8342 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8343 * i386-tdep.c (i386_gdbarch_init): Ditto.
8344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8345 * frv-tdep.c (frv_gdbarch_init): Ditto.
8346 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8347 * cris-tdep.c (cris_gdbarch_init): Ditto.
8348 * avr-tdep.c (avr_gdbarch_init): Ditto.
8349 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8350
ad188201
KB
83512003-02-26 Kevin Buettner <kevinb@redhat.com>
8352
8353 * mips-tdep.c (show_mips_abi): New function.
8354 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8355 command ``show mips abi''.
8356
6b37567a 83572003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8358
6b37567a 8359 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8360 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8361 more sline entries have been seen for the function.
8362
d3e0a5bf
MC
83632003-02-26 Michael Chastain <mec@shout.net>
8364
8365 * configure: Regenerate with autoconf 000227.
8366
18972eea
MC
83672003-02-26 Michael Chastain <mec@shout.net>
8368
8369 Close PR build/660.
8370 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8371 for old libc5/glibc.
8372 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8373
0bbde931
KW
83742003-02-26 Kris Warkentin <kewarken@qnx.com>
8375
8376 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8377 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8378
27ca5dad
MC
83792003-02-26 Michael Chastain <mec@shout.net>
8380
8381 * configure.in: New variable HAVE_UINTPTR_T.
8382 * configure, config.in: Regenerated.
8383
6f88d630
DJ
83842003-02-26 Daniel Jacobowitz <drow@mvista.com>
8385
8386 Fix PR build/1097.
8387 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8388
b14185ce
AC
83892003-02-25 Andrew Cagney <cagney@redhat.com>
8390
8391 * frame.c (get_prev_frame): Add comment on check for
8392 inside_entry_func. Only check for inside_entry_file when not a
8393 dummy and not a sentinel. Check that the new frame is not inner
8394 to the old frame.
8395
ac2bd0a9
AC
83962003-02-25 Andrew Cagney <cagney@redhat.com>
8397
8398 * frame.c (frame_debug): New variable.
8399 (_initialize_frame): Add "set/show debug frame" command.
8400 (get_prev_frame): When frame_debug, print reason why unwind
8401 failed.
8402
b18a0fd2
MC
84032003-02-25 Michael Chastain <mec@shout.net>
8404
8405 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8406 to avoid uintptr_t definition problems.
8407
22abf04a
DC
84082003-02-25 David Carlton <carlton@math.stanford.edu>
8409
8410 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8411 (SYMBOL_LINKAGE_NAME): Ditto.
8412 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8413 SYMBOL_LINKAGE_NAME.
8414 (struct general_symbol_info): Expand comment.
8415 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8416 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8417 (SYMBOL_MATCHES_REGEXP): Ditto.
8418 * symtab.c (symbol_natural_name): New function.
8419 * objfiles.h: Replace all uses of SYMBOL_NAME by
8420 DEPRECATED_SYMBOL_NAME.
8421 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8422 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8423 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8424 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8425 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8426 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8427 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8428 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8429 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8430 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8431 * ada-exp.y: Ditto.
8432 * ada-exp.y: Update copyright.
8433 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8434 * cp-valprint.c: Ditto.
8435
1a5848f6
JJ
84362003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8437
8438 * infptrace.c (detach): Do not flag error if ptrace detach fails
8439 and errno is set to ESRCH.
8440
7343d46a
AC
84412003-02-24 Andrew Cagney <cagney@redhat.com>
8442
8443 * infptrace.c (udot_info): Change type of udot_off to long. Use
8444 paddr when printing udot_off's value.
8445
49fa1dc2
DC
84462003-02-24 David Carlton <carlton@math.stanford.edu>
8447
8448 * symtab.c (make_symbol_overload_list): Only read in partial
8449 symtabs containing a matching partial symbol.
8450
0fe19209
DC
84512003-02-24 David Carlton <carlton@math.stanford.edu>
8452
8453 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8454 do the comparison, not strcmp.
8455 * symfile.c (compare_psymbols): Ditto.
8456 * defs.h: Declare strcmp_iw_ordered.
8457 * utils.c (strcmp_iw_ordered): New function.
8458
8e3ee7b5
JB
84592003-02-24 Jim Blandy <jimb@redhat.com>
8460
8461 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8462 support, shared libs): Remove my name from here, to better reflect
8463 reality.
8464
7df1a324
KW
84652003-02-24 Kris Warkentin <kewarken@qnx.com>
8466
8467 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8468 (target_ops): Add to_have_continuable_watchpoint.
8469 * target.c (update_current_target): Add INHERIT line for
8470 to_have_continuable_watchpoint.
8471 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8472 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8473 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8474 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8475
d1c76907
EZ
84762003-02-24 Elena Zannoni <ezannoni@redhat.com>
8477
8478 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8479 maintainership.
8480
2610b0bf
KW
84812003-02-24 Kris Warkentin <kewarken@qnx.com>
8482
f46169db
KW
8483 * solib.c (solib_open): Call target defined search function after
8484 failing with solib-search-path.
8485 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8486 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8487
9a3c34fe
KW
84882003-02-24 Kris Warkentin <kewarken@qnx.com>
8489
f46169db 8490 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8491
2417dd25
SC
84922003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8493
8494 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8495
b631436b
SC
84962003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8497
8498 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8499 (m68hc11_add_reggroups): New function.
8500 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8501 (m68hc11_gdbarch_init): Install the reggroups.
8502 (_initialize_m68hc11_tdep): Initialize them.
8503
0aa8c1e4
JW
85042003-02-21 James E Wilson <wilson@tuliptree.org>
8505
8506 * MAINTAINERS: Update my email address.
8507
50ceaba5
DC
85082003-02-21 David Carlton <carlton@math.stanford.edu>
8509
8510 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8511
4c2df51b
DJ
85122003-02-21 Daniel Jacobowitz <drow@mvista.com>
8513
8514 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8515 * symtab.h: Add opaque declarations of struct axs_value and
8516 struct agent_expr.
8517 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8518 (struct location_funcs): New type.
8519 (struct symbol): Add "loc" to aux_value.
8520 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8521 * dwarf2read.c: Include "dwarf2expr.h".
8522 (dwarf2_symbol_mark_computed): New function.
8523 (read_func_scope): Use it.
8524 (var_decode_location): New function.
8525 (new_symbol): Use it.
8526 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8527
8528 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8529 (dwarf2expr_h, dwarf2loc_h): New variables.
8530 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8531 (dwarf2expr.o, dwarf2loc.o): New rules.
8532 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8533 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8534 LOC_COMPUTED_ARG.
8535 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8536 * m2-exp.y (yylex): Likewise.
8537 * printcmd.c (address_info, print_frame_args): Likewise.
8538 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8539 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8540 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8541 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8542 * symtab.c (lookup_block_symbol): Likewise.
8543
5784d15e
AF
85442003-02-20 Adam Fedor <fedor@gnu.org>
8545
8546 * symtab.h: Remove objc_specific struct
8547 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8548 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8549 Have language_objc use cplus_specific struct.
8550
d4cad8db
TT
85512003-02-20 Tom Tromey <tromey@redhat.com>
8552
8553 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8554 TYPE_NAME, when printing a String value. PR java/1075.
8555
2f9a90b4
AF
85562003-02-20 Adam Fedor <fedor@gnu.org>
8557
d38074a8 8558 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8559 * objc-lang.c (find_methods): Make static.
2f9a90b4 8560
6f17862b
CF
85612003-02-20 Christopher Faylor <cgf@redhat.com>
8562
8563 * win32-nat.c (get_image_name): Check return value from
8564 ReadProcessMemory.
8565 (child_xfer_memory): Ditto.
8566
715d1656
AO
85672003-02-20 Alexandre Oliva <aoliva@redhat.com>
8568
8569 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8570 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8571 '${exec_prefix}' (in addition to the expansion thereof) as
8572 relocatable.
8573 * configure: Rebuilt.
8574
b1262a02
DC
85752003-02-20 David Carlton <carlton@math.stanford.edu>
8576
8577 * symtab.c (search_symbols): Revert the search_symbols part of my
8578 2002-12-23 patch. Add comment.
8579
7134143f
DJ
85802002-02-20 Daniel Jacobowitz <drow@mvista.com>
8581
8582 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8583 * dbxread.c (elfstab_build_psymtabs): Don't call
8584 install_minimal_symbols.
8585 (stabsect_build_psymtabs): Likewise.
8586 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8587 earlier.
8588 * somread.c (som_symfile_read): Call install_minimal_symbols
8589 and do_cleanups earlier.
8590 * nlmread.c (nlm_symfile_read): Likewise.
8591 * mdebugread.c (elfmdebug_build_psymtabs): Call
8592 install_minimal_symbols and make appropriate cleanups.
8593
cf466558
KB
85942003-02-20 Kevin Buettner <kevinb@redhat.com>
8595
8596 * solib.c (reload_shared_libraries): New function.
8597 (_initialize_solib): Add callbacks for ``set solib-search-path''
8598 and ``set solib-absolute-prefix''.
8599
de5ad195
DC
86002003-02-20 David Carlton <carlton@math.stanford.edu>
8601
8602 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8603 expand comment.
8604 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8605 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8606 * ada-typeprint.c (ada_typedef_print): Ditto.
8607 * ax-gdb.c (gen_var_ref): Ditto.
8608 * breakpoint.c (print_one_breakpoint): Ditto.
8609 * buildsym.c (finish_block): Ditto.
8610 * c-valprint.c (c_val_print): Ditto.
8611 * expprint.c (print_subexp): Ditto.
8612 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8613 * infcmd.c (jump_command): Ditto.
8614 * linespec.c (decode_line_2, decode_compound): Ditto.
8615 * maint.c (maintenance_translate_address): Ditto.
8616 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8617 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8618 Ditto.
8ffd9b1b
AJ
8619 * p-valprint.c (pascal_val_print): Ditto.
8620 * stabsread.c (define_symbol): Ditto.
de5ad195 8621 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8622 (print_frame_arg_vars, return_command): Ditto.
8623 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8624 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8625 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8626 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8627 (rbreak_command): Ditto.
8628 * tracepoint.c (tracepoints_info): Ditto.
8629 * typeprint.c (typedef_print): Ditto.
8630 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8631 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8632 * ada-typeprint.c: Update Copyright.
8633 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8634 * tracepoint.c, cli/cli-cmds.c: Ditto.
8635
f796e4be
KB
86362003-02-20 Kevin Buettner <kevinb@redhat.com>
8637
8638 * frame.c (generic_unwind_get_saved_register): Make non-static.
8639 * frame.h (generic_unwind_get_saved_register): Declare.
8640 * mips-tdep.c (read_next_frame_reg): Fetch register from
8641 current regcache when frame is NULL.
8642 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8643 that must be NULL.
8644 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8645 instead of frame_register_unwind().
8646
836cc9f4
AC
86472003-02-20 Andrew Cagney <ac131313@redhat.com>
8648
8649 * remote-sim.c (gdbsim_insert_breakpoint)
8650 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8651 code.
8652
501eef12
AC
86532003-02-20 Andrew Cagney <ac131313@redhat.com>
8654
8655 * remote.c (_initialize_remote): Add commands "set/show remote
8656 hardware-watchpoint-limit" and "set/show remote
8657 hardware-breakpoint-limit".
8658 (remote_hw_watchpoint_limit): Initialize to -1.
8659 (remote_hw_breakpoint_limit): Ditto.
8660 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8661
1b6bc7e0
CF
86622003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8663
8664 * coff-pe-read.c: New file - support reading of minimal symbols from a
8665 portable executable using the export table.
8666 * coff-pe-read.h: New file.
8667 * coffread.c: Include coff-pe-read.h.
8668 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8669 debugging symbols found.
8670 * Makefile.in (SFILES): Add coff-pe-read.o.
8671 (coff_pe_read_h): Define.
8672 (COMMON_OBS): Add coff-pe-read.o.
8673 (coffread.o): Add coff_pe_read_h dependency.
8674 (coff-pe-read.o): New target.
8675
fe898f56
DC
86762003-02-19 David Carlton <carlton@math.stanford.edu>
8677
8678 * Makefile.in (SFILES): Add block.c.
8679 (block_h): New.
8680 (COMMON_OBS): Add block.o.
8681 (block.o): New.
8682 (x86-64-tdep.o): Add $(block_h).
8683 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8684 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8685 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8686 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8687 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8688 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8689 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8690 * value.h: Add opaque declaration for struct block.
8691 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8692 * ada-lang.h: Ditto.
8693 * x86-64-tdep.c: #include "block.h"
8694 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8695 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8696 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8697 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8698 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8699 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8700 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8701 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8702 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8703 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8704 * symtab.c (block_function): Ditto.
8705 (contained_in): Ditto.
8706 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8707 block.h. Add opaque declaration for struct block.
8708 * symtab.h: Move block_function and contained_in declarations to
8709 block.h. Add opaque declarations for struct block, struct
8710 blockvector.
8711 (struct block): Move to block.h.
8712 (struct blockvector): Ditto.
8713 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8714 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8715 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8716 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8717 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8718 Ditto.
8719 * block.c: New file.
8720 * block.h: New file.
8721
173345b5
TR
87222003-02-19 Theodore A. Roth <troth@openavr.org>
8723
8724 * avr-tdep.c (avr_extract_return_value): Remove function.
8725 (avr_store_return_value): Remove function.
8726 (avr_extract_struct_value_address): Remove function.
8727 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8728
338ef23d
AC
87292003-02-19 Andrew Cagney <ac131313@redhat.com>
8730
8731 * rs6000-tdep.c: Include "gdb_assert.h".
8732 (registers_e500): Add "acc" and "spefscr".
8733 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8734 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8735 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8736 really is "r0".
8737 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8738
5412f5f3
KS
87392003-02-18 Keith Seitz <keiths@redhat.com>
8740
8741 * Makefile.in: Add gdbtk-interps.c.
8742
881324eb
KB
87432003-02-18 Kevin Buettner <kevinb@redhat.com>
8744
8745 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8746 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8747
6a2f5abf
AC
87482003-02-18 Andrew Cagney <cagney@redhat.com>
8749
8750 * symtab.h (struct objfile): Add opaque declaration.
8751
54c7009d
EZ
87522003-02-18 Elena Zannoni <ezannoni@redhat.com>
8753
8754 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8755 * dbxread.c (process_one_symbol): Use last_function_start rather
8756 than function_start_offset to find the real beginning of the
8757 current function. The latter is just the text section offset on
8758 some systems, the former is always the real function start.
54c7009d 8759
7ee6d7eb
AC
87602003-02-17 Andrew Cagney <cagney@redhat.com>
8761
8762 * configure.in: Revert ${target} != ${host}.
8763
2846da9b
AC
87642003-02-17 Andrew Cagney <ac131313@redhat.com>
8765
8766 * configure.in (Makefile): Use the test ${target} != ${host},
8767 instead of the absence of the "nm.h" file, to determine of the
8768 configuration non-native.
8769 * configure: Regenerate.
8ffd9b1b 8770
3b27aeea
EZ
87712003-02-14 Elena Zannoni <ezannoni@redhat.com>
8772
fbe586ae 8773 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8774
8775 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8776 conditionalize tui_active test.
8777 (lookup_cmd_1): Ditto.
8778
b0b1c2c0
MK
87792003-02-14 Mark Kettenis <kettenis@gnu.org>
8780
8781 * configure.in: Add check for _etext.
8782 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8783 available.
8784 * config.in, configure: regenerated.
8785
8f05cde5
DJ
87862003-02-14 Daniel Jacobowitz <drow@mvista.com>
8787
8788 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8789
021e7609
AC
87902003-02-14 Andrew Cagney <ac131313@redhat.com>
8791
8792 * main.c (tui_version): Delete variable.
8793 (captured_main): When --tui, set interpreter_p to "tui" instead of
8794 enabling tui_version.
8795 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8796 tui_version.
8797 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8798 * cli/cli-cmds.c (disassemble_command): Ditto.
8799 * defs.h (tui_version): Delete declaration.
8800 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8801 (tui-interp.o): Add rules.
8802 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8803
e325dcec
CF
88042003-02-14 Christopher Faylor <cgf@redhat.com>
8805
36ffb041 8806 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8807 just-loaded dll.
8808
c4f90d87
JM
88092003-02-12 Jason Molenda (jmolenda@apple.com)
8810
fbe586ae
RH
8811 * symmisc.c (print_objfile_statistics): Include information about
8812 the number of psymtabs and symtabs in each object file.
c4f90d87 8813
e46e5ccd
KS
88142003-02-13 Keith R Seitz <keiths@redhat.com>
8815
8816 * main.h (struct captured_main_args): Add interpreter_p.
8817 * main.c (captured_main): Initialize interpreter_p from context.
8818 * gdb.c (main): Set interpreter_p argument.
8819 * Makefile.in (gdb.o): Add dependency for interps.h.
8820
fe97fe9c
AC
88212003-02-12 Andrew Cagney <ac131313@redhat.com>
8822
8823 * event-top.c (cli_command_loop): Delete declaration.
8824 (_initialize_event_loop): Delete function setting event_loop_hook.
8825 * event-top.h (cli_command_loop): Declare. Update copyright.
8826 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8827 * interps.c (current_interp_command_loop): When event_loop_p, call
8828 cli_command_loop.
8829
1cdac4ef
AC
88302003-02-12 Andrew Cagney <ac131313@redhat.com>
8831
8832 * interps.h (interp_command_loop_ftype): Change return type to
8833 void.
8834
48037ead
ML
88352003-02-12 Michal Ludvig <mludvig@suse.cz>
8836
8837 * x86-64-tdep.c (x86_64_extract_return_value)
8838 (x86_64_store_return_value): Use regcache instead of regbuf.
8839 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8840 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8841
033afc63
AC
88422003-02-11 Andrew Cagney <ac131313@redhat.com>
8843
8844 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8845 * aclocal.m4: Regenerate.
8846 * configure: Regenerate.
8847
8848 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8849 TCL_LD_SEARCH_FLAGS.
8850
40d02bca
ML
88512003-02-10 Michal Ludvig <mludvig@suse.cz>
8852
8853 * dwarf2cfi.c: Reindented.
8854
11308a41
AC
88552003-02-09 Andrew Cagney <ac131313@redhat.com>
8856
8857 * interps.c (clear_interpreter_hooks): Convert function definition
8858 to ISO C.
8859
e1c1c0f6
DC
88602003-02-07 David Carlton <carlton@math.stanford.edu>
8861
8862 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8863
ab5d3da6
KB
88642003-02-07 Kevin Buettner <kevinb@redhat.com>
8865
8866 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8867 (struct type): ...to here.
8868 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8869 field.
8870 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8871 (replace_type): Set length on all type variants for a given type.
8872
b8a92b82
AC
88732003-02-07 Andrew Cagney <ac131313@redhat.com>
8874
8875 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8876 <sys/stat.h>.
8877 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8878
5cb316ef
AC
88792003-02-06 Andrew Cagney <ac131313@redhat.com>
8880
2555fe1a
AC
8881 * Makefile.in (symm-nat.o): Update dependencies.
8882 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8883 (lynx-nat.o, ia64-linux-nat.): Ditto.
8884 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8885 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8886 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8887
44270758
AC
8888 * Makefile.in (inflow_h): Define.
8889 (procfs.o, inflow.o, procfs.o): Update dependencies.
8890 * inftarg.c (child_stop): Delete extern declaration of
8891 inferior_process_group. Include "inflow.h".
8892 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8893 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8894 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8895 (our_process_group, inferior_process_group): Extern declarations.
8896
df8f7274
AC
8897 * procfs.c: Include "gdb_assert.h".
8898
5cb316ef
AC
8899 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8900 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8901 * jv-typeprint.c (java_type_print_base): Ditto.
8902 * typeprint.c (typedef_print): Eliminate STREQ.
8903 * cli/cli-script.c (define_command, define_command): Ditto.
8904 * main.c (captured_main): Ditto.
8905 * values.c (lookup_internalvar): Ditto.
8906 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8907 within `if' conditional.
8908 * linespec.c (decode_line_2): Ditto.
8909 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8910 (bfd_openw_with_cleanup): Ditto.
8911
2a28ccea
MK
89122003-02-07 Mark Kettenis <kettenis@gnu.org>
8913
8914 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8915 legacy_extract_return_value and store_return_value to
8916 legacy_return_value.
8917
786b8124
CF
89182003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8919
8920 * win32-nat.c (get_relocated_section_addrs): New function. Find
8921 section load addresses for symbol handling in relocated DLLs.
8922 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8923
b871e4ec
FF
89242003-02-05 Fred Fish <fnf@intrinsity.com>
8925
8926 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8927 '=' and '!='.
8928 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8929 with '&' and '=='.
8930 (angel_RDI_info): Ditto.
8931 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8932 with '&' and '!='.
8933 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8934
4389a95a 89352003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
8936 Keith Seitz <keiths@redhat.com>
8937 Elena Zannoni <ezannoni@redhat.com>
8938 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
8939
8940 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8941 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8942 (SUBDIR_MI_OBS): Add "mi-interp.o".
8943 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8944 (SFILES): Add "interps.c".
8945 (COMMON_OBS): Add "interps.o".
8946 (interps_h, mi_main_h): Define.
8947 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8948 (mi-main.o, main.o, event-top.o): Update dependencies.
8949 * cli/cli-interp.c: New file.
8950 * interps.h, interps.c: New files.
8951 * top.c: (gdb_init): Don't install the default interpreter, handed
8952 by captured_main.
8953 * main.c: Include "interps.h".
8954 (interpreter_p): Note that it should malloc'ed.
8955 (captured_command_loop): Call current_interp_command_loop.
8956 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8957 xfree and xstrdup when updating interpreter_p. Install the
8958 default interpreter. Add hack to stop mi1's copyright notice
8959 being encoded.
8960 * event-top.h (gdb_setup_readline): Declare.
8961 (gdb_disable_readline): Declare.
8962 * event-top.c: Include "interps.h".
8963 (display_gdb_prompt): Call current_interp_display_prompt_p.
8964 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8965 gdb_stdlog, and gdb_stdtarg.
8966 (_initialize_event_loop): Don't call gdb_setup_readline.
8967 * cli-out.c (cli_out_set_stream): New function.
8968 * cli-out.h (cli_out_set_stream): Declare.
8969
ff3b5810
MK
89702003-02-06 Mark Kettenis <kettenis@gnu.org>
8971
8972 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8973 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8974 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8975 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8976 config/i386/i386v42mp.mt: Removed.
8977
5b729aa5
MK
89782003-02-05 Mark Kettenis <kettenis@gnu.org>
8979
8980 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8981 GDB_OSABI_SOLARIS.
8982
8cc15142
MC
89832003-02-05 Michael Chastain <mec@shout.net>
8984
8985 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8986 2.12.1 and earlier versions.
8987
5aa5d4b9
AC
89882003-02-05 Andrew Cagney <ac131313@redhat.com>
8989
8990 Remove orphaned hosts, targets and files.
8991 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8992 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8993 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8994 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8995 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8996 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8997 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8998 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8999 * config/sparc/tm-sp64sim.h: Delete.
9000 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9001 hosts.
9002 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9003 mips*-dec-mach3* targets.
9004
b68767c1
MC
90052003-02-04 Michael Chastain <mec@shout.net>
9006
9007 * NEWS: Fix typo: sepcifying -> specifying.
9008
5ae7ca1d
MC
90092003-02-04 Michael Chastain <mec@shout.net>
9010
9011 * dwarfread.c: Add documentation on the state of dwarf-1,
9012 looking towards obsoletion.
9013
d08a4280
MC
90142003-02-03 Michael Chastain <mec@shout.net>
9015
9016 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9017 gdb/testsuite/gdb.c++/pr-1023.exp.
9018
e9be73e4
AC
90192003-02-04 Andrew Cagney <ac131313@redhat.com>
9020
9021 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9022 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9023
9024 * utils.c (init_page_info): Delete reference to MPW in comments.
9025 * main.c (captured_main): Delete #ifdef MPW.
9026
05d57f6f
AC
90272003-02-04 Andrew Cagney <ac131313@redhat.com>
9028
8ffd9b1b 9029 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9030 * monitor.c (monitor_expect): Obsolete reference to m32r.
9031 * configure.tgt: Mark m32r-*-elf* as obsolete.
9032 * MAINTAINERS: Mark m32k as obsolete.
9033 * m32r-rom.c: Obsolete file.
9034 * config/m32r/m32r.mt: Obsolete file.
9035 * config/m32r/tm-m32r.h: Obsolete file.
9036 * m32r-stub.c: Obsolete file.
9037 * m32r-tdep.c: Obsolete file.
9038
8b0e5691
AC
90392003-02-04 Andrew Cagney <ac131313@redhat.com>
9040
9041 * NEWS: Mention that the z8k-zilog-none is obsolete.
9042 * MAINTAINERS: Mark z8k as obsolete.
9043 * configure.tgt: Obsolete the z8k-*-coff* target.
9044 * config/z8k/z8k.mt: Obsolete file.
9045 * config/z8k/tm-z8k.h: Obsolete file.
9046 * z8k-tdep.c: Obsolete file.
9047
67f16606
AC
90482003-02-04 Andrew Cagney <ac131313@redhat.com>
9049
9050 * NEWS: Mention that the mn10200-elf is obsolete.
9051 * configure.tgt: Obsolete mn10200-*-* target.
9052 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9053 mention that the mn10200 is obsolete.
9054 * breakpoint.h: Ditto.
9055 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9056 * config/mn10200/mn10200.mt: Obsolete file.
9057 * config/mn10200/tm-mn10200.h: Obsolete file.
9058 * mn10200-tdep.c: Obsolete file.
9059
fd2299bd
AC
90602003-02-04 Andrew Cagney <ac131313@redhat.com>
9061
9062 * MAINTAINERS: Mark h8500 as obsolete.
9063 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9064 * findvar.c (value_from_register): Ditto.
9065 * h8500-tdep.c: Mark file as obsolete.
9066 * config/h8500/h8500.mt: Ditto.
9067 * config/h8500/tm-h8500.h: Ditto.
9068 * NEWS: Mention that h8500 is obsolete.
9069
eb9a305d
DC
90702003-02-04 David Carlton <carlton@math.stanford.edu>
9071
9072 * objfiles.c (allocate_objfile): Always set name. Add comment at
9073 start of function.
9074 * jv-lang.c (get_dynamics_objfile): Add comment.
9075
406fc7fb
DC
90762003-02-04 David Carlton <carlton@math.stanford.edu>
9077
9078 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9079 * printcmd.c (build_address_symbolic): Replace uses of
9080 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9081 SYMBOL_NAME, and asm_demangle.
9082 Update copyright.
9083
93d91629
DC
90842003-02-04 David Carlton <carlton@math.stanford.edu>
9085
9086 * linespec.c (decode_compound): Extract code into
9087 lookup_prefix_sym.
9088 (lookup_prefix_sym): New function.
9089
1c5cb38e
DC
90902003-02-04 David Carlton <carlton@math.stanford.edu>
9091
9092 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9093 FLOAT_COERCION_BADNESS.
9094 * gdbtypes.c (rank_one_type): Replace all uses of
9095 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9096
0cf824c9
JB
90972003-02-04 Jim Blandy <jimb@redhat.com>
9098
9099 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9100 section, let dwarf_macinfo_section point to it, not
9101 dwarf_loc_section.
9102
a2d356b0
DJ
91032003-02-04 Daniel Jacobowitz <drow@mvista.com>
9104
9105 Pointed out by Anton Blanchard <anton@samba.org>.
9106 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9107 (ppc_linux_at_sigtramp_return_path): Use it.
9108
2de7ced7
DJ
91092003-02-04 Daniel Jacobowitz <drow@mvista.com>
9110
9111 * defs.h (streq): Add prototype.
9112 * utils.c (streq): New function.
9113
9114 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9115 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9116 * mdebugread.c (new_symbol): Likewise.
9117 * stabsread.c (define_symbol): Likewise.
9118 * coffread.c (process_coff_symbol): Likewise.
9119 * dwarfread.c (new_symbol): Likewise.
9120
9121 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9122 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9123 here.
9124 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9125 SYMBOL_INIT_DEMANGLED_NAME.
9126 * objfiles.c: Include "hashtab.h".
9127 (allocate_objfile): Call htab_set_functions_ex for the
9128 demangled_names_hash.
9129 (free_objfile): Call htab_delete for the demangled_names_hash.
9130 * objfiles.h (struct htab): Add declaration.
9131 (struct objfile): Add demangled_names_hash.
9132 * symfile.c: Include "hashtab.h".
9133 (reread_symbols): Call htab_delete for the demangled_names_hash.
9134 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9135 SYMBOL_NAME in the bcache.
9136 * symtab.c: Include "hashtab.h". Update comments.
9137 (create_demangled_names_hash, symbol_set_names): New functions.
9138 (symbol_find_demangled_name): New function, broken out from
9139 symbol_init_demangled_names.
9140 (symbol_init_demangled_names): Use it.
9141 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9142 (SYMBOL_SET_NAMES): New macro.
9143 (symbol_set_names): Add prototype.
9144
15831452
JB
91452003-02-03 Jim Blandy <jimb@redhat.com>
9146
9147 Use a single, consistent representation for an empty minimal
9148 symbol table in an objfile.
9149 * objfiles.c (terminate_minimal_symbol_table): New function.
9150 (allocate_objfile): Call it.
9151 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9152 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9153 non-NULL.
15831452
JB
9154 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9155 objfile has minimal symbols, compare minimal_symbol_count to zero,
9156 instead of comparing msymbols with NULL.
9157 * objfiles.c (have_minimal_symbols): Same.
9158 * solib-sunos.c (solib_add_common_symbols): Call
9159 terminate_minimal_symbol_table.
9160 * symfile.c (reread_symbols): Same.
8ffd9b1b 9161
ffc65945
KB
91622003-02-03 Kevin Buettner <kevinb@redhat.com>
9163
9164 * s390-tdep.c (s390_address_class_type_flags)
9165 (s390_address_class_type_flags_to_name)
9166 (s390_address_class_name_to_type_flags): New functions.
9167 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9168 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9169
f211c6d4
MS
91702003-02-03 Michael Snyder <msnyder@redhat.com>
9171
9172 * arm-tdep.c: Fix spell-o in comment.
9173
659b0389
ML
91742003-02-03 Michal Ludvig <mludvig@suse.cz>
9175
9176 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9177 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9178 error messages to contain BFD filename.
659b0389 9179
3b31d625
EZ
91802003-02-02 Elena Zannoni <ezannoni@redhat.com>
9181
997b089a 9182 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9183 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9184 (do_mixed_source_and_assembly): Use
9185 make_cleanup_ui_out_tuple_begin_end and
9186 make_cleanup_ui_out_tuple_begin_end.
9187 (do_mixed_source_and_assembly): Ditto.
9188 * thread.c (do_captured_list_thread_ids): Ditto.
9189 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9190 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9191 ui_out_tuple_end): Delete prototypes.
9192 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9193 ui_out_list_end, ui_out_tuple_end): Delete.
9194
9195 From Kevin Buettner <kevinb@redhat.com>:
9196 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9197 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9198 (do_cleanup_table_end): New functions.
9199 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9200 Use cleanups to invoke_ui_out_tuple_end().
9201 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9202 * cli/cli-setshow.c (cmd_show_list): Use
9203 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9204
5b181d62
AC
92052003-02-02 Andrew Cagney <ac131313@redhat.com>
9206
9207 * frame.c (frame_unwind_register): New function.
9208 (frame_unwind_unsigned_register): Use.
9209 (frame_unwind_signed_register): Use.
9210 (frame_read_register): New function.
9211 * frame.h (frame_unwind_register): Declare.
9212 (frame_read_register): Declare.
9213
9214 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9215 and frame_unwind_register instead of read_memory, write_register
9216 and deprecated_write_register_bytes.
9217
5f601589
AC
92182003-02-02 Andrew Cagney <ac131313@redhat.com>
9219
9220 * frame.h: Note that namelen can be negative.
9221 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9222 NAME's length.
9223
9224 * NEWS: Mention that the d10v's `regs' command is deprecated.
9225 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9226 (d10v_print_registers_info): New function.
9227 (show_regs): Call d10v_print_registers_info.
9228 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9229
6a3fe0a4
MK
92302003-02-02 Mark Kettenis <kettenis@gnu.org>
9231
9232 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9233 lost in the previous patch.
9234
075559bc
AC
92352003-02-01 Andrew Cagney <ac131313@redhat.com>
9236
9237 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9238 * stack.c (print_frame_info_base): Output complete FRAME tuple
9239 for synthesized frames.
075559bc 9240
6789195b
AC
92412003-02-02 Andrew Cagney <ac131313@redhat.com>
9242
9243 * mips-nat.c (zerobuf): Delete.
9244 (fetch_inferior_registers): Alloc local zerobuf.
9245 (fetch_core_registers): Alloc local zerobuf.
9246 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9247 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9248 * thread-db.c (thread_db_store_registers): Ditto.
9249 * sh-tdep.c (sh_do_register): Ditto.
9250 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9251 * remote-sim.c (gdbsim_store_register): Ditto.
9252 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9253 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9254 * monitor.c (monitor_supply_register): Ditto.
9255 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9256 * mips-nat.c (fetch_inferior_registers): Ditto.
9257 * m68klinux-nat.c (fetch_register): Ditto.
9258 * lynx-nat.c (fetch_inferior_registers): Ditto.
9259 (fetch_inferior_registers): Ditto.
9260 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9261 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9262 (hpux_thread_store_registers): Ditto.
9263 * hppah-nat.c (fetch_register): Ditto.
9264 * hppab-nat.c (fetch_register): Ditto.
9265 * hppa-tdep.c (pa_register_look_aside): Ditto.
9266 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9267 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9268
e669114a
AC
92692003-02-01 Andrew Cagney <ac131313@redhat.com>
9270
9271 * gdbarch.sh: Explictly specify all method levels. When a
9272 variable with an empty level, provide a non-multi-arch default.
9273 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9274 * gdbarch.h: Re-generate.
9275 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9276 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9277
9a043c1d
AC
92782003-02-01 Andrew Cagney <ac131313@redhat.com>
9279
9280 * defs.h (host_pointer_to_address): Delete declaration.
9281 (address_to_host_pointer): Delete declaration.
9282 * utils.c (host_pointer_to_address): Delete function.
9283 (address_to_host_pointer): Delete function.
9284 * procfs.c (procfs_address_to_host_pointer): New function.
9285 * procfs.c (proc_set_watchpoint): Use.
9286 (procfs_can_use_hw_breakpoint): Update comments.
9287 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9288 (som_solib_add): Use.
9289 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9290 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9291
7ca9f392
AC
92922003-02-01 Andrew Cagney <ac131313@redhat.com>
9293
94bbfd30
AC
9294 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9295 strlen d_name.
9296
7ca9f392
AC
9297 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9298 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9299 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9300 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9301 (define_symbol): Update.
9302 * symfile.c (generic_load): Remove references to nindy.
9303 * symtab.c: Remove references to nindy.
9304
31a85ea2
AC
93052003-02-01 Andrew Cagney <ac131313@redhat.com>
9306
9307 * infcmd.c (print_float_info): Delete code conditional on
9308 FLOAT_INFO.
9309 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9310 * config/m68k/nm-apollo68b.h: Ditto.
9311 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9312 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9313 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9314
f6e85fc8
MK
93152003-02-01 Mark Kettenis <kettenis@gnu.org>
9316
6015b6a0
MK
9317 * config/i386/tm-i386os9k.h: Removed.
9318
f7a30bdf
MK
9319 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9320 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9321 they're identical to i[3456]86-*-sysv* now.
9322 * config/i386/i386v32.mh: Removed.
9323 * config/i386/xm-i386v32.h: Removed.
9324 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9325
28d52111
MK
9326 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9327
4d3f6bce
MK
9328 * config/i386/i386dgux.mh: Removed.
9329 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9330
f6e85fc8
MK
9331 * configure.in: Fix typo.
9332 * configure: Regenerated.
9333
53955967
DC
93342003-01-31 David Carlton <carlton@math.stanford.edu>
9335
9336 * dwarf2read.c (dwarf2_locate_sections): Set
9337 dwarf_ranges_section.
9338
b1364885
AC
93392003-01-31 Andrew Cagney <ac131313@redhat.com>
9340
8dbb1c65
AC
9341 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9342 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9343
8731e58e
AC
9344 * utils.c: Re-indent.
9345
b1364885
AC
9346 * config/djgpp/fnchange.lst: Delete nindy files.
9347 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9348 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9349 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9350 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9351 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9352 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9353 * Makefile.in (init.c): Remove nindy references.
9354 (saber_gdb): Delete rule.
9355 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9356 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9357 and a68v-nat.c.
9358 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9359 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9360 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9361 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9362 nindy-share/stop.h.
9363 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9364 * saber.suppress: Delete file.
9365
086df311
DJ
93662003-01-31 Daniel Jacobowitz <drow@mvista.com>
9367
9368 * dbxread.c (stabs_data): New static variable.
9369 (fill_symbuf): Support an in-memory buffer for stabs data.
9370 (stabs_seek): New function.
9371 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9372 (read_ofile_symtab): Use stabs_seek.
9373 (elfstab_build_psymtabs): Take an asection* instead of
9374 an offset and size. Relocate the stabs data if necessary.
9375 Save the section* for dbx_psymtab_to_symtab.
9376 * dwarf2read.c: Add section variables for each debug section.
9377 (dwarf2_locate_sections): Fill them in.
9378 (dwarf2_read_section): Take an asection* argument.
9379 Relocate the section contents if necessary.
9380 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9381 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9382 it to dwarf2_read_section.
9383 (dwarf2_build_frame_info): Update callers.
9384 * elfread.c (elf_symfile_read): Update call to
9385 elfstab_build_psymtabs.
9386 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9387 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9388 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9389 * symfile.c (symfile_dummy_outputs): New function.
9390 (symfile_relocate_debug_section): New function.
9391 * symfile.h (symfile_relocate_debug_section): Add prototype.
9392
87d1b352
RH
93932003-01-31 Richard Henderson <rth@redhat.com>
9394
9395 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9396 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9397 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9398 * alpha-tdep.c (alpha_register_name): Add "unique".
9399 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9400 (ALPHA_UNIQUE_REGNUM): New.
9401 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9402
c48861fb
AC
94032003-01-31 Andrew Cagney <ac131313@redhat.com>
9404
9405 * README: Remove reference to Ericsson 1800 monitor.
9406 * Makefile.in (remote-es.o): Delete rule.
9407 (ALLDEPFILES): Delete remote-es.c.
9408 * remote-es.c: Delete file.
9409 * config/m68k/es1800.mt: Delete file.
9410 * config/djgpp/fnchange.lst: Update.
9411 * configure.tgt: Delete m68*-ericsson-* target.
9412
d764a824
AF
94132003-01-31 Adam Fedor <fedor@gnu.org>
9414
9415 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9416 Remove duplicate/shadowing variable of same name.
9417
fe36c4f4
JB
94182003-01-30 Jim Blandy <jimb@redhat.com>
9419
9420 * symfile.c (find_separate_debug_file): Assert that the objfile's
9421 directory name we compute ends with a slash, and then assume that
9422 that's so everywhere we use it.
9423
cb741690
DJ
94242003-01-30 Daniel Jacobowitz <drow@mvista.com>
9425
9426 * valops.c (value_assign): Flush frame cache after stores to memory
9427 also.
9428
96ee5227
AC
94292003-01-30 Andrew Cagney <ac131313@redhat.com>
9430
9431 * Makefile.in (mon960-rom.o): Delete rule.
9432 * mon960-rom.c: Delete file.
9433
7f6104a9
AC
94342003-01-30 Andrew Cagney <ac131313@redhat.com>
9435
9436 * d10v-tdep.c: Include "frame-unwind.h".
9437 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9438 list.
9439 (next_addr, uses_frame): Delete.
9440 (struct d10v_unwind_cache): Define.
9441 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9442 Use info instead of next_addr and uses_frame globals.
9443 (d10v_frame_init_saved_regs): Delete function.
9444 (d10v_init_extra_frame_info): Delete function.
9445 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9446 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9447 init_frame_pc or frame_saved_pc.
9448 (d10v_pop_frame): Delete function.
9449 (do_d10v_pop_frame): Delete function.
9450 (d10v_frame_chain): Delete function.
9451 (d10v_frame_chain_valid): Delete function.
9452 (d10v_frame_pc_unwind): New function.
9453 (d10v_frame_id_unwind): New function.
9454 (saved_regs_unwinder): New function.
9455 (d10v_frame_register_unwind): New function.
9456 (d10v_frame_pop): New function.
9457 (d10v_frame_unwind): New variable.
9458 (d10v_frame_p): New function.
9459 (d10v_frame_saved_pc): Delete function.
9460 * Makefile.in (d10v-tdep.o): Update dependencies.
9461
cad2e848
JB
94622003-01-30 J. Brobecker <brobecker@gnat.com>
9463
9464 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9465 causing some regressions due to a change in the default value
9466 for this macro.
9467
af34e669
DJ
94682003-01-29 Richard Henderson <rth@redhat.com>
9469 Elena Zannoni <ezannoni@redhat.com>
9470 Daniel Jacobowitz <drow@mvista.com>
9471
9472 Fix PR gdb/961.
8ffd9b1b 9473 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9474 variables.
9475 (RANGES_SECTION): New.
9476 (dwarf_ranges_buffer): New variable.
9477 (struct comp_unit_head): Add member "die".
9478 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9479 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9480 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9481 (dwarf2_locate_sections): Likewise.
9482 (dwarf2_build_psymtabs): Read .debug_ranges.
9483 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9484 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9485 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9486 Look for DW_AT_ranges and return the bounding box.
9487
baa93fa6
CF
94882003-01-29 Brian Ford <ford@vss.fsi.com>
9489
9490 * win32-nat.c (cygwin_pid): Removed as unused.
9491 (child_attach): Try fall back to Cygwin pid.
9492
c63f977f
JB
94932003-01-29 Jim Blandy <jimb@redhat.com>
9494
9495 * objfiles.h (struct objfile): Doc fix.
9496
d62d1979
AC
94972003-01-29 Andrew Cagney <ac131313@redhat.com>
9498
9499 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9500 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9501 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9502 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9503 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9504 (FRAME_SAVED_PC): Change to a function with predicate.
9505 * gdbarch.h, gdbarch.c: Re-generate.
9506
1ae18a04
AC
95072003-01-28 Andrew Cagney <ac131313@redhat.com>
9508
52287340
AC
9509 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9510
1ae18a04
AC
9511 * complaints.c (complain): Delete function.
9512 * complaints.h (struct deprecated_complaint): Delete definition.
9513 (complain): Delete declaration.
9514
f2c16bd6
KB
95152003-01-28 Kevin Buettner <kevinb@redhat.com>
9516
9517 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9518 dummy frames.
9519
a94dd1fd
AC
95202003-01-27 Andrew Cagney <ac131313@redhat.com>
9521
9522 * sentinel-frame.h, sentinel-frame.c: New files.
9523 * Makefile.in (frame.o): Update dependencies.
9524 (SFILES): Add sentinel-frame.c.
9525 (sentinel_frame_h): Define.
9526 (COMMON_OBS): Add sentinel-frame.o.
9527 (sentinel-frame.o): Specify dependencies.
9528 * frame.c: Include "sentinel-frame.h".
9529 (frame_register_unwind): Rewrite assuming that there is always a a
9530 ->next frame.
9531 (frame_register, generic_unwind_get_saved_register): Ditto.
9532 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9533 (create_sentinel_frame, unwind_to_current_frame): New functions.
9534 (get_current_frame): Rewrite using create_sentinel_frame and
9535 unwind_to_current_frame. When possible, always create a frame.
9536 (create_new_frame): Set next to the sentinel frame.
9537 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9538 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9539 ID cache when necessary.
9540 (frame_saved_regs_id_unwind): Use frame_relative_level.
9541 (deprecated_generic_get_saved_register): Use frame_relative_level,
9542 get_frame_saved_regs, get_frame_pc, get_frame_base and
9543 get_next_frame.
9544 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9545 frame_register.
9546
5378adc4
DJ
95472003-01-27 Daniel Jacobowitz <drow@mvista.com>
9548
9549 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9550
51ee2ddc
DJ
95512003-01-27 Daniel Jacobowitz <drow@mvista.com>
9552
9553 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9554 (maintenance_set_profile_cmd): Use error () instead of warning ().
9555
d9feb4e7
DJ
95562003-01-27 Daniel Jacobowitz <drow@mvista.com>
9557
9558 * configure.in: Check that -pg works if using --enable-profiling.
9559 Check for monstartup and _mcleanup regardless of --enable-profiling.
9560 * maint.c: Check for monstartup and _mcleanup before using them.
9561 * config.in: Regenerated.
9562 * configure: Regenerated.
9563
2d188dd3
NC
95642003-01-24 Nick Clifton <nickc@redhat.com>
9565
9566 * Add sh2e support:
9567
9568 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9569
9570 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9571 (sh2e_show_regs): New.
9572 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9573 * config/sh/tm-sh.h: Added sh2e to comments.
9574
cb3c37b2
JB
95752003-01-23 Jim Blandy <jimb@redhat.com>
9576
9577 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9578 symbols found)" message here; we haven't checked for a separate
9579 debug info file yet, so we don't know yet.
9580 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9581 we've looked everywhere. Also, there's no need to print a special
9582 message when we're loading the separate debug info file: the one
9583 symbol_file_add prints is fine.
9584
5b5d99cf
JB
95852003-01-23 Alexander Larsson <alexl@redhat.com>
9586 Jim Blandy <jimb@redhat.com>
9587
9588 Add support for executables whose debug info has been separated
9589 out into a separate file, leaving only a link behind.
9590 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9591 and separate_debug_objfile_backlink.
9592 (put_objfile_before): New declaration.
9593 * symfile.c: #include "filenames.h".
9594 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9595 debug info in a separate file, read that, too. Save the addrs
9596 argument, so we can use it again to read the separated debug info;
9597 syms_from_objfile modifies the table we pass it.
9598 (reread_symbols): After re-reading an objfile, call
9599 reread_separate_symbols to refresh its separate debug info
9600 objfile, if it has one.
9601 (reread_separate_symbols, find_separate_debug_file,
9602 get_debug_link_info, separate_debug_file_exists): New functions.
9603 (debug_file_directory): New global var.
9604 (_initialize_symfile): Initialize debug_file_directory, and
9605 provide the new `set debug-file-directory' command to let the user
9606 change it.
9607 * objfiles.c (free_objfile): If this objfile has its debug info in
9608 a separate objfile, free that one too. If this is itself a
9609 separate debug info objfile, clear our parent's backlink.
9610 (put_objfile_before): New function.
9611 * utils.c (gnu_debuglink_crc32): New function.
9612 * defs.h (gnu_debuglink_crc32): New declaration.
9613 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9614 * configure.in: Handle --with-separate-debug-dir config option.
9615 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9616 * acconfig.h (DEBUGDIR): New macro.
9617 * configure, aclocal.m4, config.in: Regenerated.
9618
7e8580c1
JB
96192003-01-22 Jim Blandy <jimb@redhat.com>
9620
7904e09f
JB
9621 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9622 like the old symbol_file_add, but taking new arguments: you can
9623 now pass in either a `struct section_addr_info' list to say where
9624 each section is loaded, or a `struct section_offsets' table. Pass
9625 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9626 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9627 with the appropriate quiescent values for the new arguments.
9628
7e8580c1
JB
9629 * symfile.c: #include "gdb_assert.h".
9630 (syms_from_objfile): Add the ability to pass in a section offset
9631 table directly, as an alternative to the section_addr_info table.
9632 Document arguments better.
9633 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9634 * symfile.h (syms_from_objfile): Update declaration.
9635 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9636 syms_from_objfile.
9637 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9638
d28f9cdf
DJ
96392003-01-22 Daniel Jacobowitz <drow@mvista.com>
9640
9641 Original patch by Tom Tromey <tromey@cygnus.com> and
9642 Jason Molenda <jmolenda@apple.com>.
9643 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9644 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9645 * NEWS: Mention profiling.
9646 * configure.in (--enable-gdbtk): Fix typo.
9647 (--enable-profiling): New. Set PROFILE_CFLAGS.
9648 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9649 Fill in function.
9650 (profiling_state): New variable.
9651 (mcleanup_wrapper): New function.
9652 (_initialize_maint): Remove NOTYET, fix call to
9653 add_setshow_boolean_cmd for "maint set profile".
9654 * configure: Regenerated.
9655
df21e465
MH
96562003-01-21 Martin M. Hunt <hunt@redhat.com>
9657
9658 * Makefile.in (install-gdbtk): Install PNG images too.
9659
73c1f219
AC
96602003-01-21 Andrew Cagney <ac131313@redhat.com>
9661
9662 * exec.c (text_start): Delete global variable.
9663 (exec_file_attach): Make text_start local to the function.
9664 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9665 * valops.c (hand_function_call): Delete code that handles
9666 BEFORE_TEXT_END and AFTER_TEXT_END.
9667 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9668 of CALL_DUMMY_LOCATION.
9669 * gdbarch.c: Regenerate.
9670 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9671 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9672 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9673 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9674 (text_end): Delete extern declaration.
9675
eb4f72c5
AC
96762003-01-21 Andrew Cagney <ac131313@redhat.com>
9677
9678 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9679 * blockframe.c (backtrace_below_main): Move to "frame.c".
9680 (frame_chain_valid): Delete check for backtrace_below_main.
9681 (_initialize_blockframe): Delete initialization, move ``set
9682 backtrace-below-main'' command to "frame.c".
9683 (do_flush_frames_sfunc): Delete function.
9684 * frame.c: Include "command.h" and "gdbcmd.h".
9685 (frame_type_from_pc): New function.
9686 (create_new_frame): Use frame_type_from_pc.
9687 (legacy_get_prev_frame): New function.
9688 (get_prev_frame): Rewrite. When an old style frame, call
9689 legacy_get_prev_frame. Otherwize, unwind the PC first.
9690 (_initialize_frame): Add ``set backtrace-below-main'' command.
9691 * Makefile.in (frame.o): Update dependencies.
9692
778ce8cc
AC
96932003-01-19 Andrew Cagney <ac131313@redhat.com>
9694
9695 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9696 DEPRECATED_REGISTERS_INFO.
9697
01c193c8
AC
96982003-01-19 Andrew Cagney <ac131313@redhat.com>
9699
9700 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9701 Maintainers'. Update `Various Maintainers'.
9702
dedc2a2b
AC
97032003-01-19 Andrew Cagney <ac131313@redhat.com>
9704
9705 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9706 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9707 Suppress actual parameters when `-'.
9708 * gdbarch.h, gdbarch.c: Regenerate.
9709
b7261c70
AC
97102003-01-19 Andrew Cagney <ac131313@redhat.com>
9711
9712 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9713 code handling dummy frames.
9714
dbe9fe58
AC
97152003-01-19 Andrew Cagney <ac131313@redhat.com>
9716
9717 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9718 (struct frame_unwind): Add field pop.
9719 * frame.h (frame_pop): Declare.
9720 * frame.c (frame_saved_regs_pop): New function.
9721 (trad_frame_unwinder): Add frame_saved_regs_pop.
9722 (frame_pop): New function.
9723 * dummy-frame.c (dummy_frame_pop): New function.
9724 (discard_innermost_dummy): New function.
9725 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9726 (dummy_frame_unwind): Add dummy_frame_pop.
9727 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9728 * valops.c (hand_function_call): Ditto.
9729 * stack.c (return_command): Ditto.
9730
570b8f7c
AC
97312003-01-18 Andrew Cagney <ac131313@redhat.com>
9732
9733 * cris-tdep.c: Fix function declaration indentation.
9734 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9735 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9736 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9737 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9738 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9739 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9740
97412003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9742
9743 * README (Unpacking and Installation -- quick overview):
9744 Warn against ".../gdb-5.3/gdb/configure".
9745
494cca16
AC
97462003-01-18 Andrew Cagney <ac131313@redhat.com>
9747
9748 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9749 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9750 (struct frame_unwind): Declare opaque.
9751 (dummy_frame_p): Declare function.
9752 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9753 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9754 * dummy-frame.c: Include "frame-unwind.h".
9755 (dummy_frame_p): New function.
9756 (dummy_frame_unwind): New variable.
9757 * frame.c: Include "frame-unwind.h".
9758 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9759 to use the new unwind field.
9760 (set_unwind_by_pc): Delete function.
9761 (create_new_frame, get_prev_frame): Set unwind field using
9762 frame_unwind_find_by_pc.
9763 (trad_frame_unwind, trad_frame_unwinder): New variables.
9764 * frame.h (trad_frame_unwind): Declare variable.
9765 (frame_id_unwind_ftype): Delete declaration.
9766 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9767 (struct frame_unwind): Declare opaque.
9768 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9769 register_unwind with a single unwind pointer.
9770 * frame-unwind.h, frame-unwind.c: New files.
9771 * Makefile.in (SFILES): Add frame-unwind.c.
9772 (frame_unwind_h): Define.
9773 (COMMON_OBS): Add frame-unwind.o.
9774 (frame-unwind.o): Specify dependencies.
9775 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9776
4efb68b1
AC
97772003-01-18 Andrew Cagney <ac131313@redhat.com>
9778
9779 * ada-valprint.c: Eliminate PTR.
9780 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9781 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9782 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9783 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9784 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9785 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9786 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9787
a84d24ee
AC
97882003-01-17 Andrew Cagney <ac131313@redhat.com>
9789
762f08a3
AC
9790 * main.c (captured_main): Don't use PTR.
9791 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9792 * gdbtypes.c (lookup_primitive_typename): Ditto.
9793 (lookup_struct_elt_type): Ditto.
9794 * f-valprint.c (info_common_command): Ditto.
9795 (list_all_visible_commons): Ditto.
9796 * jv-typeprint.c (java_type_print_base): Ditto.
9797
a84d24ee
AC
9798 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9799 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9800 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9801 i386-interix-nat.c and i386-interix-tdep.c. Rename
9802 m68klinux-nat.c and m68klinux-tdep.c. Rename
9803 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9804 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9805 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9806 * main.c (captured_main): Use xfree, not free.
9807
c170fb60
AC
98082003-01-16 Andrew Cagney <ac131313@redhat.com>
9809
9810 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9811 ID back using a parameter.
9812 * frame.c (frame_id_unwind): Update call.
9813 (frame_saved_regs_id_unwind): Update.
9814 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9815 * dummy-frame.h (struct frame_id): Add opaque declaration.
9816 (dummy_frame_id_unwind): Update declaration.
9817
867f3898
AC
98182003-01-15 Andrew Cagney <ac131313@redhat.com>
9819
9820 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9821
40622be8 98222003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9823
40622be8 9824 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9825
ae66c1fc
EZ
98262003-01-14 Elena Zannoni <ezannoni@redhat.com>
9827
997b089a 9828 Fix PR gdb/898
ae66c1fc
EZ
9829 * breakpoint.c (until_break_command): Add new argument. Use it to
9830 decide whether to stop only at the current frame or not.
9831 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9832 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9833 call.
9834 (advance_command): New function.
9835 (_initialize_infcmd): Update help string for 'until' command.
9836 Add new 'advance' command.
9837
a04257e6
DC
98382003-01-14 David Carlton <carlton@math.stanford.edu>
9839
9840 * linespec.c (decode_line_1): Normalize comments.
9841 (set_flags): Ditto.
9842 (locate_first_half): Ditto.
9843 (decode_compound): Ditto.
9844 (symtab_from_filename): Ditto.
9845 (decode_all_digits): Ditto.
9846 (decode_dollar): Ditto.
9847 (find_methods): Ditto.
9848 (find_toplevel_char): Ditto.
9849
1bac305b
AC
98502003-01-13 Andrew Cagney <ac131313@redhat.com>
9851
9852 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9853 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9854 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9855 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9856 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9857 * language.c, language.h, m32r-tdep.c: Update copyright.
9858 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9859 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9860 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9861 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9862 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9863 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9864
25caa7a8
EZ
98652003-01-13 Elena Zannoni <ezannoni@redhat.com>
9866
9867 * stabsread.h (process_later, resolve_cfront_continuation):
9868 Obsolete.
9869 Update copyright years.
9870 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9871 Update copyright year.
9872 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9873 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9874 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9875 Update copyright year.
9876 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9877 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9878 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9879 (parse_partial_symbols): Obsolete cfront support.
9880 * stabsread.c
9881 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9882 macros.
9883 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9884 read_cfront_baseclasses, read_cfront_member_functions,
9885 resolve_cfront_continuation,read_cfront_static_fields,
9886 copy_cfront_struct_fields): Obsolete functions.
9887 (define_symbol, read_one_struct_field): Obsolete cfront support.
9888 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9889 Update Copyright year.
9890
7789c6f5
EZ
98912003-01-13 Elena Zannoni <ezannoni@redhat.com>
9892
9893 * stack.c (print_frame_info, print_stack_frame_base_stub,
9894 print_stack_frame_base, show_and_print_stack_frame_stub,
9895 show_and_print_stack_frame, print_only_stack_frame_stub,
9896 print_only_stack_frame): Delete functions.
9897 (print_stack_frame_stub): Call print_frame_info instead of
9898 print_frame_info_base.
9899 (print_frame_info_base): Rename to print_frame_info.
9900 (backtrace_command_1): Call print_frame_info, instead of
9901 print_frame_info_base.
9902 (current_frame_command): Call print_stack_frame, instead of
9903 print_only_stack_frame.
9904 (frame_command): Call print_stack_frame, instead of
9905 show_and_print_stack_frame.
9906 (up_command): Ditto.
9907 (down_command): Ditto.
9908 * frame.h (print_only_stack_frame): Delete prototype.
9909 * infrun.c (normal_stop): Call print_stack_frame, instead of
9910 show_and_print_stack_frame.
9911 * thread.c (info_threads_command): Call print_stack_frame, instead
9912 of print_only_stack_frame.
9913
3f5a3016
AC
99142003-01-13 Andrew Cagney <ac131313@redhat.com>
9915
d99ba314
AC
9916 * README (Graphical interface to GDB): Update URL. Point at
9917 gdb/links/.
9918
3f5a3016
AC
9919 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9920 version match.
9921
083ae935
DJ
99222003-01-13 Daniel Jacobowitz <drow@mvista.com>
9923
9924 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9925 lines.
9926
5365276c
DJ
99272003-01-13 Daniel Jacobowitz <drow@mvista.com>
9928
9929 * thread-db.c (attach_thread): Prototype.
9930 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9931 thread information (ti), and valid flags (th_valid, ti_valid).
9932 (attach_thread): Move target_pid_to_str call to after the thread
9933 is added to GDB's list. Initialize the cache.
9934 (thread_get_info_callback, thread_db_map_id2thr)
9935 (thread_db_get_info): New functions.
9936 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9937 (thread_db_store_registers, thread_db_thread_alive)
9938 (thread_db_get_thread_local_address): Use them.
9939 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9940 of calling error() for threads in unknown state.
9941
9942 (clear_lwpid_callback): New function.
9943 (thread_db_resume): Use it to clear the cache.
9944
9fc30b6b
DJ
99452003-01-13 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9948 (resume_callback): Remove dead code.
9949
8f871025
AC
99502003-01-13 Andrew Cagney <ac131313@redhat.com>
9951
9952 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9953 predicate.
9954 * gdbarch.h, gdbarch.c: Regenerate.
9955 * stack.c (frame_info): Only initialize the saved registers when
9956 FRAME_INIT_SAVED_REGS_P.
9957 * frame.c (frame_saved_regs_register_unwind): Assert
9958 FRAME_INIT_SAVED_REGS_P.
9959 (deprecated_generic_get_saved_register): Ditto.
9960
3f565f1e
DJ
99612003-01-13 Daniel Jacobowitz <drow@mvista.com>
9962
9963 * source.c (openp): Squelch warning about "filename".
9964
072b1022
DJ
99652003-01-13 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * source.c (openp): If the file does not exist don't necessarily
9968 search the path.
9969
973ccf8b
DJ
99702003-01-13 Daniel Jacobowitz <drow@mvista.com>
9971
9972 Fix PR gdb/872.
9973 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9974 (integer_types_same_name_p): New function.
9975 (rank_one_type): Use it.
9976 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9977
030292b7
DJ
99782003-01-13 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9981 variables.
9982 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9983 * configure.in: Add --with-sysroot.
9984 * configure: Regenerated.
9985 * main.c (gdb_sysroot): New variable.
9986 (captured_main): Initialize gdb_sysroot.
9987 * defs.h (gdb_sysroot): New extern declaration.
9988 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9989
afb5d334
MC
99902003-01-12 Michael Chastain <mec@shout.net>
9991
9992 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9993
751ceeb4
MC
99942003-01-12 Michael Chastain <mec@shout.net>
9995
9996 * top.c (print_gdb_version): Bump copyright year to 2003.
9997
94cd26f8
DC
99982003-01-12 David Carlton <carlton@bactrian.org>
9999
10000 * linespec.c (symtab_from_filename): Rename variable 's' to
10001 'file_symtab'.
10002
1ce79225
AC
100032003-01-12 Andrew Cagney <ac131313@redhat.com>
10004
10005 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10006 dummy frame.
10007 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10008
fa1fd571
AC
100092003-01-12 Andrew Cagney <ac131313@redhat.com>
10010
10011 * d10v-tdep.c: Include "gdb_assert.h".
10012 (d10v_store_return_value): Rewrite to match current interface.
10013 (d10v_extract_struct_value_address): Ditto.
10014 (d10v_extract_return_value): Ditto.
10015 (d10v_gdbarch_init): Set store_restore_value,
10016 extract_struct_value_address and extract_return_value.
10017
68b8d23e
JB
100182003-01-12 J. Brobecker <brobecker@gnat.com>
10019
10020 * hpread.c (set_namestring): New procedure replacing the
10021 SET_NAMESTRING macro.
10022 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10023 by calls to set_namestring.
10024
100252003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10026
10027 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10028 a compilation warning.
10029 (hpread_process_one_debug_symbol): Likewise.
10030
88d262ca
DC
100312003-01-10 David Carlton <carlton@math.stanford.edu>
10032
10033 * linespec.c (decode_line_1): Rename variable 's' to
10034 'file_symtab'.
10035 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10036 (decode_dollar): Ditto.
10037 (decode_variable): Ditto.
10038 (symbol_found): Ditto.
10039
86669319
MC
100402003-01-09 Michael Chastain <mec@shout.net>
10041
10042 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10043
616a9dc4
CV
100442003-01-07 Corinna Vinschen <vinschen@redhat.com>
10045
10046 * win32-nat.c (set_process_privilege): New function.
10047 (child_attach): Call set_process_privilege() to enable the
10048 SE_DEBUG_NAME user privilege if available in process token.
10049
3269bcfa
JB
100502003-01-10 J. Brobecker <brobecker@gnat.com>
10051
10052 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10053 compilation error in the previous revision.
10054
2b0ee454
DC
100552003-01-09 David Carlton <carlton@math.stanford.edu>
10056
10057 * linespec.c: Update copyright.
10058
b3ba1b44
DJ
100592003-01-09 Daniel Jacobowitz <drow@mvista.com>
10060
10061 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10062 than inferior_ptid.
10063 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10064
4ef3f3be
AC
100652003-01-09 Andrew Cagney <ac131313@redhat.com>
10066
479ab5a0
AC
10067 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10068 Update comments.
10069 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10070 (frame_saved_regs_zalloc): Update.
10071 (frame_saved_regs_register_unwind): Update.
10072 (create_new_frame): Update.
10073 (get_prev_frame): Update.
10074 (frame_extra_info_zalloc): Update.
10075 (deprecated_get_frame_saved_regs): Update.
10076 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10077 * cris-tdep.c: Update comment.
10078
bde58177
AC
10079 * somsolib.h: Fix function indentation.
10080 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10081 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10082 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10083 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10084 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10085
4ef3f3be
AC
10086 * infrun.c (follow_fork): Use ISO C definition.
10087 * expprint.c (print_subexp): Use xfree instead of free.
10088 * charset.c: Include "gdb_string.h" instead of <string.h>.
10089 (register_iconv_charsets): Use ISO C definition.
10090 (host_charset, target_charset): Ditto.
10091 * Makefile.in (charset.o): Update dependencies.
10092 (mi-cmd-env.o): Update dependencies.
10093
1c615f7a
AC
100942003-01-08 Andrew Cagney <cagney@redhat.com>
10095
10096 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10097 get_frame_base.
10098
c9a1dc08
AC
100992003-01-08 Andrew Cagney <ac131313@redhat.com>
10100
10101 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10102 build directories. Save edited gdb output in Mbuild.log. If a
10103 build fails, remove any final GDB executable.
10104
dbad9d94
AC
101052003-01-08 Andrew Cagney <ac131313@redhat.com>
10106
10107 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10108 replacing hex constants with function names and stripping leading
10109 file name directory prefixes.
10110
8d357cca
AC
101112003-01-08 Andrew Cagney <cagney@redhat.com>
10112
10113 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10114 get_frame_base.
10115
bca02a8a
DC
101162003-01-08 David Carlton <carlton@math.stanford.edu>
10117
10118 * linespec.c (decode_line_1): Move code into decode_variable.
10119 (decode_variable): New function.
10120
7f8ab3a0
AC
101212003-01-08 Andrew Cagney <ac131313@redhat.com>
10122
10123 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10124
7b5849cc
AC
101252003-01-08 Andrew Cagney <cagney@redhat.com>
10126
10127 * cris-tdep.c (cris_frame_init_saved_regs): Use
10128 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10129 saved_regs buffer.
10130 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10131 (sh64_nofp_frame_init_saved_regs): Ditto.
10132 (sh_fp_frame_init_saved_regs): Ditto.
10133 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10134 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10135 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10136 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10137
72a5efb3
DJ
101382003-01-08 Daniel Jacobowitz <drow@mvista.com>
10139
10140 * minsyms.c (lookup_minimal_symbol): Update comment.
10141 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10142 (lookup_minimal_symbol_solib_trampoline): Likewise.
10143
11c02a10
AC
101442003-01-08 Andrew Cagney <cagney@redhat.com>
10145
aab3ea25
AC
10146 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10147 frame_relative_level.
10148
da50a4b7
AC
10149 * alpha-tdep.c: Use get_frame_extra_info.
10150 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10151 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10152 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10153 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10154
11c02a10
AC
10155 * alpha-tdep.c: Use get_next_frame.
10156 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10157 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10158 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10159 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10160 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10161 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10162 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10163
1e2330ba
AC
101642003-01-07 Andrew Cagney <cagney@redhat.com>
10165
10166 * alpha-tdep.c: Use get_frame_base.
10167 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10168 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10169 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10170 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10171 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10172 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10173 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10174 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10175
2d75187b
AC
101762003-01-07 Andrew Cagney <cagney@redhat.com>
10177
10178 * frame.c (deprecated_get_frame_context): New function.
10179 (deprecated_set_frame_context): New function.
10180 * frame.h (deprecated_get_frame_context): Declare.
10181 (deprecated_set_frame_context): Declare.
10182 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10183 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10184
483d36b2
AC
101852003-01-07 Andrew Cagney <cagney@redhat.com>
10186
10187 * frame.c (deprecated_set_frame_next_hack): New function.
10188 (deprecated_set_frame_prev_hack): New function.
10189 * frame.h (deprecated_set_frame_next_hack): Declare.
10190 (deprecated_set_frame_prev_hack): Declare.
10191 * mcore-tdep.c (analyze_dummy_frame): Use
10192 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10193 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10194
14e91ac5
DC
101952003-01-07 David Carlton <carlton@math.stanford.edu>
10196
10197 * linespec.c (decode_line_1): Move code into decode_dollar.
10198 (decode_dollar): New function.
10199
b0c6b05c
AC
102002003-01-07 Andrew Cagney <cagney@redhat.com>
10201
10202 * arm-tdep.c (arm_init_extra_frame_info): Use
10203 deprecated_update_frame_base_hack.
10204 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10205 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10206 (fix_frame_pointer): Ditto.
10207 (mn10300_analyze_prologue): Ditto.
10208
a00a19e9
AC
102092003-01-07 Andrew Cagney <cagney@redhat.com>
10210
10211 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10212 extra_info using frame_extra_info_zalloc.
10213 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10214 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10215 (sh64_init_extra_frame_info): Ditto.
10216 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10217 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10218 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10219 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10220 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10221 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10222 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10223 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10224 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10225 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10226 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10227 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10228
10229 * mn10300-tdep.c (analyze_dummy_frame): Use
10230 deprecated_set_frame_extra_info_hack.
10231 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10232
1fb4c65b
JB
102332003-01-07 J. Brobecker <brobecker@gnat.com>
10234
10235 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10236 class is not scText. These do not define "real" procedures.
10237 (parse_partial_symbols): Likewise.
10238
9fe7d6bf
MS
102392003-01-06 Michael Snyder <msnyder@redhat.com>
10240
10241 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10242
f6c609c4
AC
102432003-01-06 Andrew Cagney <ac131313@redhat.com>
10244
10245 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10246 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10247 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10248 deprecated_frame_xmalloc_with_cleanup.
10249 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10250 deprecated_frame_xmalloc.
10251 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10252 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10253
d995ff4b
AC
102542003-01-06 Andrew Cagney <cagney@redhat.com>
10255
84dc46cb
AC
10256 * x86-64-linux-tdep.c: Include "osabi.h".
10257 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10258
d995ff4b
AC
10259 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10260
66140c26
AC
102612003-01-06 Andrew Cagney <cagney@redhat.com>
10262
10263 * MAINTAINERS (Target Instruction Set Architectures): Update
10264 arm-elf. Can be built with -Werror, has been multiarched.
10265
10266 * value.h (unpack_long): Make buffer parameter constant.
10267 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10268 * scm-lang.h (scm_parse): Ditto.
10269 * defs.h (extract_typed_address, extract_address): Ditto.
10270 (extract_long_unsigned_integer): Ditto.
10271 * inferior.h (unsigned_pointer_to_address): Ditto.
10272 (signed_pointer_to_address): Ditto.
10273 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10274 * gdbarch.h, gdbarch.c: Regenerate.
10275 * findvar.c (extract_long_unsigned_integer): Update.
10276 (extract_address): Update.
10277 (extract_typed_address): Update.
10278 (unsigned_pointer_to_address): Update.
10279 * values.c (unpack_long): Update.
10280 (unpack_double): Update.
10281 (unpack_pointer): Update.
10282 (unpack_field_as_long): Update.
10283 * d10v-tdep.c (d10v_pointer_to_address): Update.
10284 * avr-tdep.c (avr_pointer_to_address): Update.
10285 * scm-lang.c (scm_unpack): Update.
10286 * findvar.c (signed_pointer_to_address): Update.
10287
b089b3da
ML
102882003-01-06 Michal Ludvig <mludvig@suse.cz>
10289
8ffd9b1b 10290 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10291 since it is in i386-tdep.c.
10292
aff87235
JB
102932003-01-06 J. Brobecker <brobecker@gnat.com>
10294
10295 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10296 failure introduced in the previous change.
10297
34f5e845
MC
102982003-01-05 Michael Chastain <mec@shout.net>
10299
10300 * README: Remove references to deleted remote-*.c files:
10301 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10302 remote-nrom.c, remote-os9k.c, remote-udi.c.
10303
28bcfd30
MK
103042003-01-05 Mark Kettenis <kettenis@gnu.org>
10305
10306 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10307 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10308 i386_get_longjmp_target.
10309
15a5b3ee
AC
103102003-01-05 Andrew Cagney <ac131313@redhat.com>
10311
10312 * arm-tdep.c (prologue_cache): Change to a pointer.
10313 (_initialize_arm_tdep): Allocate prologue_cache.
10314 (check_prologue_cache): Update.
10315 (save_prologue_cache): Update.
10316 (arm_gdbarch_init): Update.
10317
c263362b
DJ
103182003-01-04 Daniel Jacobowitz <drow@mvista.com>
10319
10320 * stabsread.c (update_method_name_from_physname): Call complaint()
10321 instead of error.
10322
51603483
DJ
103232003-01-04 Daniel Jacobowitz <drow@mvista.com>
10324
10325 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10326 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10327 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10328
10329 * blockframe.c: Include "gdbcmd.h" and "command.h".
10330 (backtrace_below_main): New variable.
10331 (file_frame_chain_valid, func_frame_chain_valid)
10332 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10333 (generic_func_frame_chain_valid): Remove functions.
10334 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10335 (_initialize_blockframe): New function.
10336 * Makefile.in (blockframe.o): Update dependencies.
10337 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10338 comment. Call frame_chain_valid ().
10339 * frame.h: Remove old prototypes. Add prototype for
10340 frame_chain_valid and update comments to match.
10341 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10342 Remove old comment.
10343 * gdbarch.h: Regenerated.
10344 * gdbarch.c: Regenerated.
10345
10346 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10347 set_gdbarch_frame_chain_valid.
10348 * avr-tdep.c (avr_gdbarch_init): Likewise.
10349 * cris-tdep.c (cris_gdbarch_init): Likewise.
10350 * frv-tdep.c (frv_gdbarch_init): Likewise.
10351 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10352 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10353 (i386_nw_init_abi): Likewise.
10354 (i386_gdbarch_init): Likewise.
10355 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10357 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10358 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10359 * mips-tdep.c (mips_gdbarch_init): Likewise.
10360 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10361 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10362 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10363 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10364 * s390-tdep.c (s390_gdbarch_init): Likewise.
10365 * sh-tdep.c (sh_gdbarch_init): Likewise.
10366 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10367 * v850-tdep.c (v850_gdbarch_init): Likewise.
10368 * vax-tdep.c (vax_gdbarch_init): Likewise.
10369 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10370
10371 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10372 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10373 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10374 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10375 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10376 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10377 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10378 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10379
b00a8037
DJ
103802002-01-04 Daniel Jacobowitz <drow@mvista.com>
10381
10382 * Makefile.in (acconfig_h): Remove incorrect macro.
10383 (config_h): Define.
10384 (osabi.o): Update dependencies.
10385 * configure.tgt: Set gdb_osabi based on target triplet.
10386 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10387 * configure: Regenerated.
10388 * config.in: Regenerated.
10389 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10390 (GDB_OSABI_DEFAULT): Define if not already defined.
10391 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10392 (set_osabi_string): New variables.
10393 (gdbarch_register_osabi): Add new OS ABI to
10394 gdb_osabi_available_names.
10395 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10396 (set_osabi, show_osabi): New functions.
10397 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10398
4be87837
DJ
103992003-01-04 Daniel Jacobowitz <drow@mvista.com>
10400
10401 * arch-utils.c (gdbarch_info_init): Set osabi to
10402 GDB_OSABI_UNINITIALIZED.
10403 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10404 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10405 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10406 * gdbarch.c: Regenerated.
10407 * gdbarch.h: Regenerated.
10408 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10409 there's no BFD.
10410 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10411 * osabi.h (enum gdb_osabi): Move to defs.h.
10412 (gdbarch_init_osabi): Update prototype.
10413 * defs.h (enum gdb_osabi): Moved here.
10414 * Makefile.in: Update dependencies.
10415
10416 * alpha-tdep.h: Don't include "osabi.h".
10417 (struct gdbarch_tdep): Remove osabi member.
10418 * alpha-tdep.c: Include "osabi.h".
10419 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10420 iterate over arches. Update call to gdbarch_init_osabi.
10421 (alpha_dump_tdep): Don't dump osabi.
10422 * alpha-linux-tdep.c: Include "osabi.h".
10423 * alpha-osf1-tdep.c: Include "osabi.h".
10424 * alphafbsd-tdep.c: Include "osabi.h".
10425 * alphanbsd-tdep.c: Include "osabi.h".
10426
10427 * arm-tdep.h: Don't include "osabi.h".
10428 (struct gdbarch_tdep): Remove osabi member.
10429 * arm-tdep.c: Include "osabi.h".
10430 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10431 iterate over arches. Update call to gdbarch_init_osabi.
10432 (arm_dump_tdep): Don't dump osabi.
10433 * arm-linux-tdep.c: Include "osabi.h".
10434 * armnbsd-tdep.c: Include "osabi.h".
10435
10436 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10437 Update call to gdbarch_init_osabi.
10438
10439 * i386-tdep.h: Don't include "osabi.h".
10440 (struct gdbarch_tdep): Remove osabi member.
10441 * i386-tdep.c: Include "osabi.h".
10442 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10443 iterate over arches. Update call to gdbarch_init_osabi.
10444 (i386_dump_tdep): Don't dump osabi.
10445 * i386-linux-tdep.c: Include "osabi.h".
10446 * i386-sol2-tdep.c: Include "osabi.h".
10447 * i386bsd-tdep.c: Include "osabi.h".
10448 * i386gnu-tdep.c: Include "osabi.h".
10449 * i386ly-tdep.c: Include "osabi.h".
10450 * i386nbsd-tdep.c: Include "osabi.h".
10451 * i386obsd-tdep.c: Include "osabi.h".
10452
10453 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10454 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10455 check osabi when iterating over arches. Update call to
10456 gdbarch_init_osabi.
10457 (mips_dump_tdep): Don't dump osabi.
10458
10459 * ns32k-tdep.h: Don't include "osabi.h".
10460 (struct gdbarch_tdep): Remove.
10461 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10462 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10463 allocate tdep. Update call to gdbarch_init_osabi.
10464 (ns32k_dump_tdep): Remove.
10465 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10466 * ns32knbsd-tdep.c: Include "osabi.h".
10467
10468 * ppc-tdep.h: Don't include "osabi.h".
10469 (struct gdbarch_tdep): Remove osabi member.
10470 * rs6000-tdep.c: Include "osabi.h".
10471 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10472 osabi when iterating over arches. Update call to
10473 gdbarch_init_osabi.
10474 (rs6000_dump_tdep): Don't dump osabi.
10475 * ppc-linux-tdep.c: Include "osabi.h".
10476 * ppcnbsd-tdep.c: Include "osabi.h".
10477
10478 * sh-tdep.h: Don't include "osabi.h".
10479 (struct gdbarch_tdep): Remove osabi member.
10480 * sh-tdep.c: Include "osabi.h".
10481 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10482 iterate over arches. Update call to gdbarch_init_osabi.
10483 (sh_dump_tdep): Don't dump osabi.
10484 * shnbsd-tdep.c: Include "osabi.h".
10485
10486 * sparc-tdep.c: Include "osabi.h".
10487 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10488 iterate over arches. Update call to gdbarch_init_osabi.
10489 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10490 tdep structure.
10491
10492 * vax-tdep.h: Don't include "osabi.h".
10493 (struct gdbarch_tdep): Remove.
10494 * vax-tdep.c: Include "osabi.h".
10495 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10496 iterate over arches. Don't allocate tdep. Update call
10497 to gdbarch_init_osabi.
10498 (vax_dump_tdep): Remove.
10499 (_initialize_vax_tdep): Update call to gdbarch_register.
10500
a881cf8e
DJ
105012003-01-04 Daniel Jacobowitz <drow@mvista.com>
10502
10503 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10504 entirely.
10505 (breakpoint_re_set_one): Don't fetch the value for a disabled
10506 watchpoint.
10507
1e698235
DJ
105082003-01-04 Daniel Jacobowitz <drow@mvista.com>
10509
10510 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10511 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10512 (COERCE_FLOAT_TO_DOUBLE): Remove.
10513 * gdbarch.c: Regenerate.
10514 * gdbarch.h: Regenerate.
10515 * Makefile.in: Remove value_h from gdbarch_h.
10516 * valops.c (coerce_float_to_double): New variable.
10517 (default_coerce_float_to_double): Remove.
10518 (standard_coerce_float_to_double): Remove.
10519 (value_arg_coerce): Use coerce_float_to_double.
10520 (_initialize_valops): Add "set coerce-float-to-double".
10521 * value.h (default_coerce_float_to_double): Remove prototype.
10522 (standard_coerce_float_to_double): Remove prototype.
10523
10524 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10525 prototyped.
10526 * mdebugread.c (parse_symbol): Likewise.
10527 * stabsread.c (define_symbol): Mark all functions as prototyped.
10528
10529 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10530 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10531 set_gdbarch_coerce_float_to_double.
10532 * arm-tdep.c (arm_gdbarch_init): Likewise.
10533 * frv-tdep.c (frv_gdbarch_init): Likewise.
10534 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10535 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10536 * mips-tdep.c (mips_gdbarch_init): Likewise.
10537 (mips_coerce_float_to_double): Remove.
10538 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10539 (rs6000_coerce_float_to_double): Remove.
10540 * s390-tdep.c (s390_gdbarch_init): Likewise.
10541 * sh-tdep.c (sh_gdbarch_init): Likewise.
10542 (sh_coerce_float_to_double): Remove.
10543 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10544 (sparc_coerce_float_to_double): Remove.
10545 * v850-tdep.c (v850_gdbarch_init): Likewise.
10546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10547 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10548 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10549 (hppa_coerce_float_to_double): Remove prototype.
10550 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10551
f436a26a
DJ
105522003-01-04 Daniel Jacobowitz <drow@mvista.com>
10553
10554 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10555
248f8055
DJ
105562003-01-04 Daniel Jacobowitz <drow@mvista.com>
10557
10558 Suggested by Stewart Brown <sb24@avaya.com>:
10559 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10560 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10561 (c_type_print_varspec_suffix): Likewise.
10562
72cfdc76
MK
105632003-01-04 Mark Kettenis <kettenis@gnu.org>
10564
bfd260bb
MK
10565 * configure.in: Don't set and AC_SUBST SUBDIRS.
10566 * configure: Regenerated.
10567
72cfdc76
MK
10568 * configure.in: Remove code dealing with shared libraries.
10569 * Makefile.in: Remove HLDFLAGS and HLDENV.
10570 * configure: Regenerated.
10571
c8b8a898
AC
105722003-01-04 Andrew Cagney <ac131313@redhat.com>
10573
10574 * frame.c (deprecated_frame_xmalloc): New function.
10575 (deprecated_set_frame_saved_regs_hack): New function.
10576 (deprecated_set_frame_extra_info_hack): New function.
10577 * frame.h (deprecated_frame_xmalloc): Declare.
10578 (deprecated_set_frame_saved_regs_hack): Declare.
10579 (deprecated_set_frame_extra_info_hack): Declare.
10580
14abd0fb
MK
105812003-01-04 Mark Kettenis <kettenis@gnu.org>
10582
8ee53726
MK
10583 * configure.in: Move code that provides the --enable-gdbtk option
10584 right after the code that handles the --enable-tui option, and
10585 polish it somewhat.
10586 * configure: Regenerated.
10587
14abd0fb
MK
10588 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10589 AC_CHECK_FUNCS and remove the old check for pread64.
10590 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10591 * acconfig.h (_GNU_SOURCE): Add.
10592 (HAVE_PREAD64): Remove.
10593 * configure, aclocal.m4, config.in: Regenerated.
10594
b2fb4676
AC
105952003-01-03 Andrew Cagney <ac131313@redhat.com>
10596
10597 * alpha-tdep.c: Use get_frame_saved_regs.
10598 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10599 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10600 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10601 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10602 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10603
8dcde887
MK
106042003-01-03 Mark Kettenis <kettenis@gnu.org>
10605
10606 * configure.in: Remove all use of the SUBDIRS variable; add
10607 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10608 code providing the --enable-multi-ice option, and move it right in
10609 front of the code that checks whether gdbserver is supported.
10610 Polish that too.
10611 * configure: Regenerated.
10612 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10613 @SUBDIRS@.
10614
8ccd593b
AC
106152003-01-03 Andrew Cagney <cagney@redhat.com>
10616
10617 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10618 * avr-tdep.c, cris-tdep.c: Ditto.
10619 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10620 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10621
91151a06
MK
106222003-01-03 Mark Kettenis <kettenis@gnu.org>
10623
10624 * configure.in: Remove --enable-netrom option.
10625 * configure: Regenerated.
10626
8fe84d01
MK
106272003-01-03 Mark Kettenis <kettenis@gnu.org>
10628
10629 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10630 declaration for `struct re_pattern_buffer' instead.
10631 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10632
f0394be6
JB
106332003-01-03 J. Brobecker <brobecker@gnat.com>
10634
10635 * mdebugread.c (parse_symbol): Count until the stEnd matching
10636 the structure name.
10637
27e9bf90
MK
106382003-01-02 Mark Kettenis <kettenis@gnu.org>
10639
93d331ba
MK
10640 * configure.in: Remove --with-cpu option.
10641 subscripts. Remove evil changequotes here.
10642 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10643 * config.in, configure: Regenerated.
8ffd9b1b 10644
27e9bf90
MK
10645 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10646 * configure.in: Cleanup section that sources GDB and BFD configure
10647 subscripts. Remove evil changequotes here.
10648 * config.in, configure: Regenerated.
10649
50abf9e5
AC
106502003-01-02 Andrew Cagney <ac131313@redhat.com>
10651
10652 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10653 frame accessor methods.
10654 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10655 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10656 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10657 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10658 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10659 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10660 * z8k-tdep.c: Ditto.
8ffd9b1b 10661
287c1a40
MK
106622003-01-02 Mark Kettenis <kettenis@gnu.org>
10663
f5dbc56d
MK
10664 * configure.in: Remove UI_OUT configuration code.
10665 * ada-lang.c: Update assuming UI_OUT is always true.
10666 * Makefile.in (UIOUT_CFLAGS): Remove.
10667 * configure: Regenerated.
10668 * TODO: Remove blurb about elimination of -DUI_OUT.
10669
627af7ea
MK
10670 * configure.in: Move code that provides the --enable-gdbcli,
10671 --enable-gdbmi options right before the code that handles the
10672 --enable-tui option. Polish a bit.
10673 * configure: Regenerated.
10674
06825bd1
MK
10675 * configure.in: Rewrite check for GNU regex and the
10676 --without-included regex option, and move it into the "Checks for
10677 library functions" section. This makes us use the system regex
10678 again by default on systems with version 2 of the GNU C library.
10679 This was apparently broken.
10680 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10681 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10682 * config.in, configure: Regenerated.
10683
287c1a40
MK
10684 * configure.in: Move code that provides the --enable-tui option
10685 before the "Checks for libraries" section. Polish the code
10686 somewhat and set need_curses to yes if we build the TUI. Rewrite
10687 code that looks for a library providing termcap functionality to
10688 match more closely what's done in the Readline library, and move
10689 it into to the "Checks for libraries" section.
10690 * configure: Regenerated.
10691 * Makefile.in (TERMCAP): Remove variable.
10692 * config/i386/go32.mh (TERMCAP): Remove variable.
10693
684e56bf
AC
106942003-01-02 Andrew Cagney <ac131313@redhat.com>
10695
10696 * MAINTAINERS: Mention gdb_mbuild.sh.
10697 * gdb_mbuild.sh: Rewrite.
10698
e1ea1d75
MK
106992003-01-02 Mark Kettenis <kettenis@gnu.org>
10700
10701 * configure.in: Fix typo in last change.
10702 * config.in, configure: Regenerated.
10703
1b831c93
AC
107042003-01-02 Andrew Cagney <ac131313@redhat.com>
10705
10706 * valarith.c (value_binop): Delete obsolete code and comments.
10707 * configure.host: Ditto.
10708 * buildsym.h (make_blockvector): Ditto.
10709 * buildsym.c (make_blockvector): Ditto.
10710 * defs.h (enum language): Ditto.
10711 (chill_demangle): Ditto.
10712 * elfread.c (elf_symtab_read): Ditto.
10713 * dwarfread.c (CHILL_PRODUCER): Ditto.
10714 (set_cu_language): Ditto.
10715 (handle_producer): Ditto.
10716 * expprint.c (print_subexp): Ditto.
10717 * gdbtypes.c (chill_varying_type): Ditto.
10718 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10719 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10720 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10721 (chill_varying_type): Ditto.
10722 * language.h (_LANG_chill): Ditto.
10723 * language.c (binop_result_type, integral_type): Ditto.
10724 (character_type, string_type, structured_type): Ditto.
10725 (lang_bool_type, binop_type_check): Ditto.
10726 * stabsread.h (os9k_stabs): Ditto.
10727 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10728 (define_symbol, read_type, read_struct_fields): Ditto.
10729 (read_array_type, read_enum_type, read_huge_number): Ditto.
10730 (read_range_type, start_stabs): Ditto.
10731 * symfile.c (init_filename_language_table): Ditto.
10732 (add_psymbol_with_dem_name_to_list): Ditto.
10733 * symtab.c (symbol_init_language_specific): Ditto.
10734 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10735 * symtab.h (struct general_symbol_info): Ditto.
10736 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10737 * typeprint.c (typedef_print): Ditto.
10738 * utils.c (fprintf_symbol_filtered): Ditto.
10739 * valops.c (value_cast, search_struct_field, value_slice): Delete
10740 obsolete code.
10741 (varying_to_slice): Delete function.
10742 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10743 (varying_to_slice): Delete declaration.
10744 * MAINTAINERS: Update.
10745
8bb2c122
MK
107462003-01-02 Mark Kettenis <kettenis@gnu.org>
10747
97bf5e38
MK
10748 * configure.in: Reorganize "Checks for library functions section"
10749 a bit. Remove check for `btowc' and `isascii' functions.
10750 * configure: Regenerated.
10751
5ee754fc
MK
10752 * acconfig.h (_MSE_INT_H): Remove.
10753 * configure.in: Create "Checks for header files" section, and move
10754 appropriate tests there. Don't check for objlist.h, wchar.h,
10755 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10756 misdetection fix. Also add "Checks for types", "Checks for
10757 compiler characteristics" and "Checks for library functions"
10758 sections.
10759 * config.in, configure: Regenerated.
10760
8bb2c122
MK
10761 * configure.in: Create "Checks for programs" section, and move
10762 appropriate tests there.
10763
9a156167
MK
107642003-01-01 Mark Kettenis <kettenis@gnu.org>
10765
10766 * configure.in: Create "Checks for libraries" section, and move
10767 appropriate tests there. Cleanup check for wctype in libw. Use
10768 AC_SEARCH_LIBS to see whether we need libsocket.
10769 * configure: Regenerated.
10770
a80e2bcb 10771For older changes see ChangeLog-2002
c906108c
SS
10772\f
10773Local Variables:
10774mode: change-log
10775left-margin: 8
10776fill-column: 74
10777version-control: never
10778End: