]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2003-08-21 Michael Snyder <msnyder@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
da08ea5b
MS
12003-08-21 Michael Snyder <msnyder@redhat.com>
2
3 * tracepoint.c (trace_dump_command): Trace break address
4 is subject to DECR_PC_AFTER_BREAK.
5 (set_traceframe_context): Make "trace_line" an int.
6 Fixes suggested by Mark Newman <mark.newman@lmco.com>
7
6df2bf50
MS
82003-08-20 Michael Snyder <msnyder@redhat.com>
9
10 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
11 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
12 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
13 argument passing.
14 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
15 functions, replace sh_push_dummy_call.
16 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
17
0955bbf0
MC
182003-08-20 Michael Chastain <mec@shout.net>
19
20 * gdbtypes.h (struct main_type): Rearrange to save space.
21
260a4188
MS
222003-08-20 Michael Snyder <msnyder@redhat.com>
23
24 * trad-frame.c: Comment typo fix.
25
8baa6f92
KB
262003-08-20 Michael Snyder <msnyder@redhat.com>
27 Kevin Buettner <kevinb@redhat.com>
28
29 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
30 (frv_frame_init_saved_regs): Add declaration.
31 (frame_extra_info): Add new field ``saved_regs''.
32 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
33 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
34 Update frame related code.
35 (frv_extract_struct_value_address): Adjust formatting.
36 * Makefile.in (frv-tdep.o): Update dependencies.
37 * config/frv/tm-frv.h (target_insert_watchpoint)
38 (target_remove_watchpoint, target_insert_hw_breakpoint)
39 (target_remove_hw_breakpoint): Delete these macros.
40 (remote_insert_watchpoint, remote_remove_watchpoint)
41 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
42 these declarations.
43
87193939
MC
442003-08-20 Michael Chastain <mec@shout.net>
45
46 * defs.h (ENUM_BITFIELD): New macro.
47 * symtab.h (ENUM_BITFIELD): Use it.
48 (BYTE_BITFIELD): Remove old macro, which was already disabled.
49
062103ba
SA
502003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
51
52 * MAINTAINERS (write after approval): Add myself.
53
8b148df9
AC
542003-08-18 Andrew Cagney <cagney@redhat.com>
55
56 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
57 * gdbarch.h, gdbarch.c: Re-generate.
58 * infcall.c (call_function_by_hand): Adjust the SP by
59 frame_red_zone_size before allocating any stack space.
60 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
61 * x86-64-tdep.c (x86_64_frame_align): New function.
62 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
63
64 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
65 Remove code adjusting SP so that it skips over the Red Zone.
66
954a4db8
MK
672003-08-18 Mark Kettenis <kettenis@gnu.org>
68
69 * NEWS (New native configurations): Mention FreeBSD/amd64.
70
1a241548
AC
712003-08-18 Andrew Cagney <cagney@redhat.com>
72
73 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
74 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
75 "m68k_frame_p".
76 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
77
f82b2acd
MK
782003-08-18 Mark Kettenis <kettenis@gnu.org>
79
80 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
81
4056d258
ML
822003-08-18 Michal Ludvig <mludvig@suse.cz>
83
84 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
85 Define.
86 * i386-linux-nat.c: Include "linux-nat.h".
87 (child_post_startup_inferior): New function.
88
99ab4326
MK
892003-08-18 Mark Kettenis <kettenis@gnu.org>
90
91 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
92 at the start of a frameless function. This probably fixes PR
93 backtrace/1338.
94
c8d5f0d6
MC
952003-08-17 Michael Chastain <mec@shout.net>
96
97 * symfile.c (find_sym_fns): Remove special case for apollo target.
98
9016a515
DJ
992003-08-17 Daniel Jacobowitz <drow@mvista.com>
100
101 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
102 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
103 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
104 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
105 (linux_supports_tracevforkdone): New function.
106 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
107 TRACEVFORKDONE.
108 (child_follow_fork): Handle vfork.
109 (linux_handle_extended_wait): Likewise. Also handle exec.
110 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
111 * NEWS: Mention fork tracing.
112
c538c11c
DJ
1132003-08-17 Daniel Jacobowitz <drow@mvista.com>
114
115 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
116
4de4c07c
DJ
1172003-08-17 Daniel Jacobowitz <drow@mvista.com>
118
119 * Makefile.in (i386-linux-nat.o): Update dependencies.
120 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
121 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
122 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
123 * i386-linux-nat.c: Include "linux-nat.h".
124 (child_post_startup_inferior): New function.
125 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
126 * infptrace.c (kill_inferior): Wrap in #ifdef.
127 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
128 attaching to each LWP.
129 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
130 (init_lin_lwp_ops): Fill in some more operations.
131 * linux-nat.h (linux_enable_event_reporting)
132 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
133 prototypes.
134 * linux-nat.c (linux_enable_event_reporting): New function.
135 (child_post_attach, linux_child_post_startup_inferior)
136 (child_post_startup_inferior, child_follow_fork)
137 (linux_handle_extended_wait, kill_inferior): New functions.
138
7996bcec
AC
1392003-08-16 Andrew Cagney <cagney@redhat.com>
140
141 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
142 * gdbarch.h, gdbarch.c: Re-generate.
143
3d48a7a0
MK
1442003-08-16 Mark Kettenis <kettenis@gnu.org>
145
146 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
147
7989c619
AC
1482003-08-16 Andrew Cagney <cagney@redhat.com>
149
150 * NEWS: Mention that "set prompt-escape-char" was deleted.
151 * top.c (get_prompt_1): Delete function.
152 (gdb_prompt_escape):
153 (init_main): Do not clear "gdb_prompt_escape". Delete "set
154 prompt-escape-char" command.
155 (MAX_PROMPT_SIZE): Delete macro.
156 (get_prompt): Simplify, do not call get_prompt_1.
157
07978cd8
AC
1582003-08-16 Andrew Cagney <cagney@redhat.com>
159
160 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
161 -Werror. -Wformat-nonliteral problems.
162
3ff7cf9e
JB
1632003-08-15 J. Brobecker <brobecker@gnat.com>
164
165 Further multiarching work mostly for hppa64-*-hpux11:
166 * hppa-tdep.h: New file.
167 * hppa-tdep.c: #include hppa-tdep.c.
168 (hppa32_num_regs): Renamed from hppa_num_regs.
169 (hppa64_num_regs): New constant.
170 (hppa64_call_dummy_breakpoint_offset): New constant.
171 (hppa32_call_dummy_length): New constant.
172 (hppa64_call_dummy_length): New constant.
173 (hppa32_stack_align): Make name 32bit explicit.
174 (hppa32_register_virtual_type): Likewise.
175 (hppa32_extract_return_value): Likewise.
176 (hppa32_use_struct_convention): Likewise.
177 (hppa32_store_return_value): Likewise.
178 (hppa64_register_virtual_type): New function.
179 (hppa64_extract_return_value): New function.
180 (hppa64_use_struct_convention): New function.
181 (hppa64_store_return_value): New function.
182 (hppa_frame_locals_address): Remove declaration, function does
183 not exist anymore.
184 (hppa_register_byte): Add support for PA64 ABI.
185 (hppa_gdbarch_init): Add support for PA64 ABI.
186 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
187 Make name 32bit explicit.
188 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
189 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
190 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
191 (hppa64_hpux_frame_base_before_sigtramp): New function.
192 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
193 * config/pa/tm-hppa64.h: Remove macros that are no longer
194 necessary now that the gdbarch vector is properly setup.
195 Transform some macros into function calls. Some minor cleanup.
196 * config/pa/tm-hppah.h: Update function calls in macros
197 following the function renaming in hppa-hpux-tdep.c.
198 * Makefile.in (hppa_tdep_h): New variable.
199 (hppa-tdep.o): Add dependency over hppa_tdep_h.
200
5d05ca6d
MS
2012003-08-14 Michael Snyder <msnyder@redhat.com>
202
203 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
204
37ba2569
JB
2052003-08-13 J. Brobecker <brobecker@gnat.com>
206
207 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
208 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
209 routine.
210
aed7f26a
MS
2112003-08-13 Michael Snyder <msnyder@redhat.com>
212
213 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
214 (frv_saved_pc_after_call): Use deprecated ftype.
215 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
216 (frv_remote_translate_xfer_address): Remove.
217 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
218
752d4ac1
JB
2192003-08-13 J. Brobecker <brobecker@gnat.com>
220
221 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
222 initialization after the common gdbarch initialization, not before.
223
1426ac1d
JB
2242003-08-13 J. Brobecker <brobecker@gnat.com>
225
226 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
227 (ADDR_BITS_REMOVE): Remove, redundant.
228
b6fbdd1d
JB
2292003-08-13 J. Brobecker <brobecker@gnat.com>
230
231 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
232 gdbarch method to clear the 2 low bits of text addresses.
233
44160db3
AC
2342003-08-12 Andrew Cagney <cagney@redhat.com>
235
236 * Makefile.in (dsrec.o): Update dependencies.
237 * dsrec.c: Include "gdb_assert.h".
238 (make_srec): Use snprintf instead of sprintf, use a literal format
239 string.
240
bcf7d3ca
AC
2412003-08-12 Andrew Cagney <cagney@redhat.com>
242
243 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
244 FRAME_OBSTACK_ZALLOC.
245
49ed40de
KB
2462003-08-12 Kevin Buettner <kevinb@redhat.com>
247
248 * i386-tdep.c (i386_gdbarch_init): Enable default support for
249 SSE registers.
250
b246147c
MK
2512003-08-10 Mark Kettenis <kettenis@gnu.org>
252
253 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
254 amd64fbsd_sc_reg_offset): Add extern declarations.
255 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
256 declarations.
257
d95fdc0d
BE
2582003-08-11 Ben Elliston <bje@wasabisystems.com>
259
260 * MAINTAINERS (write after approval): Update my mail address.
261
cf6a0e73
AC
2622003-08-10 Andrew Cagney <cagney@redhat.com>
263
264 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
265
f837910f
MK
2662003-08-10 Mark Kettenis <kettenis@gnu.org>
267
e2dbbd2d
MK
268 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
269 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
270 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
271 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
272 i386bsd_sc_reg_offset): Add extern declarations.
273 * i386obsd-nat.c: Include "i386-tdep.h"
274 (_initialize_i386obsd_nat): Remove extern declarations.
275 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
276 declarations.
277 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
278 declarations.
279
f837910f
MK
280 * i386-tdep.c (i386_register_to_value): Use get_frame_register
281 instead of frame_read_register.
282 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
283 instead of frame_read_register. Use I386_ESP_REGNUM instead of
284 SP_REGNUM.
285 (i386_frame_prev_register): Use frame_unwind_register_unsigned
286 instead of frame_unwind_unsigned_register. Use
287 I386_EFLAGS_REGISTER instead of PS_REGNUM.
288 (i386_get_longjmp_target): Use regcache_read_unsigned_register
289 instead of read_register. Use builtin_type_void_data_ptr instead
290 of builtin_type_void_func_ptr when extracting the address of the
291 jmp_buf.
292 (i386_extract_return_value, i386_store_return_value,
293 i386_pseudo_register_read, i386_pseudo_register_write): Use
294 register_size instead REGISTER_RAW_SIZE.
295
edcf254d
AC
2962003-08-10 Andrew Cagney <cagney@redhat.com>
297
298 * infcall.c (call_function_by_hand): Use xstrprintf instead of
299 sprintf. Make "name" constant.
300
26604a34
MK
3012003-08-10 Mark Kettenis <kettenis@gnu.org>
302
192285c6
MK
303 * i387-tdep.c (i387_register_to_value): Use get_frame_register
304 instead of frame_read_register.
f837910f
MK
305 (i387_print_float_info): Use get_frame_register and
306 get_frame_register_unsigned instead of frame_register_read.
192285c6 307
f0925262
MK
308 * i386fbsd-nat.c: Include "i386-tdep.h".
309 (child_resume): Make `eflags' an ULONGEST. Use
310 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
311 instead of register_read and register_write.
312
a144416f
MK
313 * i386bsd-nat.c (fetch_inferior_registers,
314 store_inferior_registers): Don't use && at the end of a line.
315 (_initialize_i386bsd_nat): Fix typo.
316
fec74868
MK
317 * frame.c (_initialize_frame): Add missing backslash.
318
87232496
MK
319 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
320 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
321 and supply_register instead of manipulating the register buffer
322 directly.
323
c9b9de0b
MK
324 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
325 * config/i386/nm-i386sol2.h
326 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
327
26604a34
MK
328 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
329 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
330 instructions that GCC likes to mingle into the prologue. Fixes
331 gdb/1253 and gdb/1255.
332
25d29d70
AC
3332003-08-09 Andrew Cagney <cagney@redhat.com>
334
335 Fix GDB PR cli/926.
336 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
337 * command.h (add_setshow_uinteger_cmd): Declare.
338 * frame.c (set_backtrace_cmd): New function.
339 (show_backtrace_cmd): New function.
340 * frame.c (_initialize_frame): Replace "set/show
341 backtrace-below-main" with "set/show backtrace past-main". Add
342 command "set/show backtrace limit".
343 (backtrace_past_main): Rename "backtrace_below_main".
344 (backtrace_limit): New variable.
345 (get_prev_frame): Update. Check the backtrace_limit.
346
9ebf4acf
AC
3472003-08-09 Andrew Cagney <cagney@redhat.com>
348
349 * defs.h (xstrprintf): Declare.
350 * utils.c (xstrprintf): New function.
351 * breakpoint.c (insert_breakpoints): Replace sprintf and
352 non-literal format strings, with xstrprintf and cleanups.
353 (delete_breakpoint,breakpoint_re_set): Ditto.
354 (commands_command, insert_breakpoints): Ditto.
355 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
356 (break_at_finish_command_1): Ditto.
357
3771659b
AC
3582003-08-09 Andrew Cagney <cagney@redhat.com>
359
360 * MAINTAINERS (language support): List Adam Fedor as Objective C
361 maintainer.
362
b4263afa
JB
3632003-08-08 J. Brobecker <brobecker@gnat.com>
364
365 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
366 are now multiarched.
367
d84defb1
JB
3682003-08-08 J. Brobecker <brobecker@gnat.com>
369
370 * config/pa/tm-hppa64.h: Remove lots of macros that are no
371 longer necessary now that hppa64 is partially multiarch'ed.
372
f786f615
AC
3732003-08-08 Andrew Cagney <cagney@redhat.com>
374
375 * interps.c (interp_set): Check for a NULL "old_interp".
376
c938e9b0
L
3772003-08-08 H.J. Lu <hongjiu.lu@intel.com>
378
379 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
380 (install-only): Support DESTDIR.
381 (uninstall): Likewise.
382 (install-gdbtk): Likewise.
383
9a146a11
EZ
3842003-08-08 Elena Zannoni <ezannoni@redhat.com>
385
386 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
387 contains something meaningful at all times.
388
389Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 390
62599e99 391 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 392
56296155
BC
393Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
394
62599e99 395 * MAINTAINERS (write after approval): Added self.
56296155 396
9710e734
AC
3972003-08-07 Andrew Cagney <cagney@redhat.com>
398
399 * inferior.h (AT_SYMBOL): Define.
400 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
401 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
402 * mips-tdep.c (mips_call_dummy_address): Delete function.
403 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
404 set call_dummy_address.
405
98b3ab73
AC
4062003-08-07 Andrew Cagney <cagney@redhat.com>
407
408 * language.c (op_error): Delete function.
409 (binop_type_check): Delete function.
410 * language.h (type_op_error, range_op_error): Delete macros.
411 (op_error): Delete declaration.
412
2fcf52f0
AC
4132003-08-07 Andrew Cagney <cagney@redhat.com>
414
415 * interps.h (INTERP_MI2, INTERP_MI3): Define.
416
abd4220e 4172003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 418
abd4220e 419 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 420 (x86_64_push_arguments): Skip the red zone.
abd4220e 421
9dd5f34f
AC
4222003-08-05 Andrew Cagney <cagney@redhat.com>
423
424 * reggroups.c (reggroup_next): Check for the final entry.
425
e5e78edc
AC
4262003-08-04 Andrew Cagney <cagney@redhat.com>
427
ab4e3d93
AC
428 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
429 * cli/cli-script.c (define_command): Call query directly, instead
430 of passing it a buffer.
431 * ocd.c (ocd_error): Pass error a constant format string.
432 * remote-mips.c (mips_error): Use fputs_filtered.
433
1062ca82
AC
434 * solib-svr4.c (_initialize_svr4_solib): Update
435 register_gdbarch_data call.
436 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
437
fcc1c85c
AC
438 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
439 (register_gdbarch_data): Delete "free" parameter. Update
440 comments.
441 * gdbarch.h, gdbarch.c: Re-generate.
442 * reggroups.c (_initialize_reggroup): Update.
443 * gnu-v3-abi.c (init_gnuv3_ops): Update.
444 * frame-base.c (_initialize_frame_base): Update.
445 * frame-unwind.c (_initialize_frame_unwind): Update.
446 * user-regs.c (_initialize_user_regs): Update.
447 * remote.c (_initialize_remote): Update.
448 * regcache.c (_initialize_regcache): Update.
449
116f06ea
AC
450 * regcache.c (xfree_regcache_descr): Delete function.
451 (_initialize_regcache): Update call to register_gdbarch_data.
452 (init_regcache_descr, init_legacy_regcache_descr): Use
453 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
454
e5e78edc
AC
455 * remote.c (free_remote_state): Delete function.
456 (_initialize_remote): Update register_gdbarch_data.
457 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
458 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
459
6c7d17ba
AC
4602003-08-04 Andrew Cagney <cagney@redhat.com>
461
462 * reggroups.c (struct reggroup_el): Define.
463 (struct reggroups): Delete field "nr_group". Replace array
464 "group" with a "first" to "last" linked list.
465 (reggroups_init): Update. Allocate using gdbarch's obstack.
466 (reggroups_free): Delete function.
467 (add_group): Update. Add "el" parameter.
468 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
469 (default_groups): Update.
470 (reggroup_next): Replace reggroups.
471 (reggroups_dump): Update.
472 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
473 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
474 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
475
89b7795b
DJ
4762003-08-04 Daniel Jacobowitz <drow@mvista.com>
477
478 * Makefile.in (tui-interp.o): Update dependencies.
479
306d9ac5
DC
4802003-08-04 David Carlton <carlton@kealia.com>
481
482 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
483 to internal_error call.
484 * source.c (forward_search_command): Add "%s" format argument.
485 (reverse_search_command): Ditto.
486 * top.c (quit_confirm): Ditto.
487 * cli/cli-setshow.c (do_setshow_command): Ditto.
488 * cp-valprint.c (cp_print_class_method): Replace
489 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
490 (cp_print_class_member): Ditto.
491 * event-top.c (command_line_handler): Ditto.
492 * linux-proc.c (linux_info_proc_cmd): Ditto.
493 * p-typeprint.c (pascal_type_print_base): Ditto.
494 * p-valprint.c (pascal_object_print_class_method): Ditto.
495 (pascal_object_print_class_member): Ditto.
496 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
497 * remote.c (remote_cisco_section_offsets): Ditto.
498 * top.c (command_line_input): Ditto.
499 * utils.c (vwarning,error_stream,quit): Ditto.
500 * valprint.c (print_floating,print_binary_chars)
501 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
502
57bfe177
AC
5032003-08-04 Andrew Cagney <cagney@redhat.com>
504
505 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
506
e546b999
AC
5072003-08-02 Andrew Cagney <cagney@redhat.com>
508
509 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
510 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
511 amd64fbsd-nat.c.
512
91092ee5
AC
5132003-08-02 Andrew Cagney <cagney@redhat.com>
514
515 * Makefile.in: Update all dependencies and definitions.
516
889f28e2
AF
5172003-08-02 Adam Fedor <fedor@gnu.org>
518
519 * linespec.c (is_objc_method_format): New function
520 (decode_line_1, locate_first_half): Use it.
521 Fixes PR objc/1298
522
880bc914
AC
5232003-08-01 Andrew Cagney <cagney@redhat.com>
524
525 * NEWS: Mention that m32r is multi-arch.
526 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
527 * configure.tgt: Recognize m32r-*-*.
528 * config/m32r/tm-m32r.h: Delete file.
529 * config/m32r/m32r.mt: New file.
530 * m32r-rom.c (m32r_upload_command): Use hostent only when
531 gethostname succeeds, in order to avoid a compilation
532 warning.
533 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
534 compiler warning.
535
19f59343
MS
5362003-08-01 Michael Snyder <msnyder@redhat.com>
537
538 * sh-tdep.c (sh_frame_align): New gdbarch method.
539 (sh_gdbarch_init): Set up frame_align method.
540
4e7d7511
MS
5412003-07-31 Michael Snyder <msnyder@redhat.com>
542
543 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
544 which is already covered by the new frames infrastructure.
545
63022984
AC
5462003-07-31 Andrew Cagney <cagney@redhat.com>
547
548 * user-regs.c (struct user_reg): Add "next" link.
549 (struct user_regs): Replace "user" with "first" and "last" links.
550 (append_user_reg): Add pre-allocated "reg" parameter.
551 (builtin_user_regs): Provide initial value for "last".
552 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
553 (user_regs_init): Allocate memory from the gdbarch obstack.
554 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
555 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
556 linked list.
557 (usernum_to_user_reg): New function.
558 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
559 (value_of_user_reg): Use usernum_to_user_reg.
560 (user_regs_free): Delete function.
561 (_initialize_user_regs): Update register_gdbarch_data call.
562
7cf6e574
DJ
5632003-07-31 Daniel Jacobowitz <drow@mvista.com>
564
565 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
566
c48a845b
MS
5672003-07-30 Michael Snyder <msnyder@redhat.com>
568
4e7d7511 569 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
570 * infcall.c (call_function_by_hand): Pass struct_addr to
571 value_being_returned.
572 * infcmd.c (print_return_value): Pass zero as struct_addr.
573 * values.c (value_being_returned): If struct_addr is passed,
574 use it instead of trying to recover it from the inferior.
575
f0d8db19
KB
5762003-07-30 Kevin Buettner <kevinb@redhat.com>
577
578 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
579 the prologue analyzer won't need to attempt to extract the pc
580 value from the woefully incomplete dummy frame.
581 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
582 possible. Disable code which modifies the frame.
583
e5c113a1
AC
5842003-07-28 Andrew Cagney <cagney@redhat.com>
585
586 * annotate.c (annotate_breakpoints_headers): Restrict annotation
587 to level 2.
588 (annotate_breakpoints_table, annotate_record): Ditto.
589 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
590 (annotate_field_name_end, annotate_field_value): Ditto.
591 (annotate_field_end, annotate_frame_source_begin): Ditto.
592 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
593 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
594 (annotate_frame_begin, annotate_frame_function_name): Ditto.
595 (annotate_frame_address_end, annotate_frame_address): Ditto.
596 (annotate_frame_args, annotate_frame_end): Ditto.
597 (annotate_frame_where, annotate_arg_begin): Ditto.
598 (annotate_arg_name_end, annotate_arg_value): Ditto.
599 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
600 (annotate_function_call, annotate_signal_name): Ditto.
601 (annotate_signal_string, annotate_signal_name_end): Ditto.
602 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
603 (annotate_value_begin, annotate_value_history_value): Ditto.
604 (annotate_value_history_end, annotate_value_end): Ditto.
605 (annotate_display_begin, annotate_display_number_end): Ditto.
606 (annotate_display_format, annotate_display_expression): Ditto.
607 (annotate_display_expression_end, annotate_display_value): Ditto.
608 (annotate_display_end, annotate_array_section_begin): Ditto.
609 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
610 (annotate_elt, annotate_array_section_end): Ditto.
611
bb1db049
AC
6122003-07-28 Andrew Cagney <cagney@redhat.com>
613
614 * regcache.c (struct regcache_descr): Update comments on
615 nr_raw_registers.
616 (init_legacy_regcache_descr): Don't set nr_raw_registers or
617 sizeof_raw_register_valid_p.
618 (init_regcache_descr): Set nr_raw_registers and
619 sizeof_raw_register_valid_p before calling
620 init_legacy_regcache_descr.
621
20e6603c
AC
6222003-07-28 Andrew Cagney <cagney@redhat.com>
623
624 * mips-tdep.c (print_gp_register_row): Print the GPR's register
625 MOD NUM_REGS.
626
db742940
DJ
6272003-07-28 Daniel Jacobowitz <drow@mvista.com>
628
629 * thread.c (info_threads_command): Use get_selected_frame ().
630 Check that there is at least one non-sentinel frame.
631
ce7f4371
SC
6322003-07-27 Stephane Carrez <stcarrez@nerim.fr>
633
634 * m68hc11-tdep.c (struct frame_extra_info): Remove.
635 (m68hc11_pop_frame): Remove.
636 (m68hc11_frame_saved_pc): Remove.
637 (m68hc11_frame_chain): Remove.
638 (m68hc11_frame_init_saved_regs): Remove.
639 (m68hc11_init_extra_frame_info): Remove.
640 (m68hc11_store_struct_return): Remove.
641 (m68hc11_saved_pc_after_call): Remove.
642
1ea653ae
SC
6432003-07-27 Stephane Carrez <stcarrez@nerim.fr>
644
645 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
646 frame unwind information.
647 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
648 and adapted for frame unwinding.
649 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
650 (m68hc11_unwind_pc): New function.
651 (m68hc11_frame_unwind_cache): New function to analyze frames.
652 (m68hc11_frame_this_id): New function to create new frame struct.
653 (m68hc11_frame_prev_register): New function to unwind a register from
654 the frame.
655 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
656 (m68hc11_frame_p): New function for the above.
657 (m68hc11_frame_base_address): New function to return fp of frame.
658 (m68hc11_frame_args_address): Update for frame.
659 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
660 (m68hc11_unwind_sp): New function.
661 (m68hc11_unwind_dummy_id): New function.
662 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
663 calls.
664
c8a7f6ac
SC
6652003-07-27 Stephane Carrez <stcarrez@nerim.fr>
666
667 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
668 (m68hc11_guess_from_prologue): Advance the pc and frame size only
669 when we are beyond the current pc.
670
3dc990bf
SC
6712003-07-27 Stephane Carrez <stcarrez@nerim.fr>
672
673 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
674 from m68hc11_push_arguments.
675 (m68hc11_push_arguments): Remove.
676 (m68hc11_push_return_address): Remove.
677 (m68hc11_gdbarch_init): Install the above; remove above deprecated
678 handlers; remove deprecated_extra_stack_alignment_needed.
679
222e5d1d
AC
6802003-07-27 Andrew Cagney <cagney@redhat.com>
681
682 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
683 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
684 REAL_PC and not the pointer.
685 * hppa-hpux-tdep.c: Include frame.h
686
a7e9a47e
AC
6872003-07-27 Andrew Cagney <cagney@redhat.com>
688
689 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
690 GDB_MULTI_ACH_PARTIAL.
691
7e3dd49e
AC
6922003-07-27 Andrew Cagney <cagney@redhat.com>
693
694 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
695 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
696 operator at start and not end of line.
697 (decode_prologue): Ditto.
698 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
699 frame_unwind_register_unsigned instead of
700 frame_unwind_unsigned_register.
701 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
702 read_register.
703 (m32r_push_dummy_call): Use register_size instead of
704 REGISTER_RAW_SIZE.
705 (m32r_frame_sniffer): Replace m32r_frame_p.
706 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
707 * m32r-rom.c (report_transfer_performance): Delete extern
708 declaration.
709 (m32r_load, m32r_upload_command): Use print_transfer_performance
710 instead of report_transfer_performance.
711 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
712 / add_show_from_set.
713
0880807f
AC
7142003-07-26 Andrew Cagney <cagney@redhat.com>
715
716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
717 store_return_value and extract_struct_value_address.
718
64ae9269
DJ
7192003-07-26 Daniel Jacobowitz <drow@mvista.com>
720
721 PR c++/1267
722 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
723 NULL, default to the section containing PC.
724
e286caf2
SC
7252003-07-24 Stephane Carrez <stcarrez@nerim.fr>
726
727 * NEWS: Mention "regs" deprecated for m68hc11 too.
728
729 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
730 (m68hc11_print_register): New function to print out one register.
731 (m68hc11_print_registers_info): New function to print registers.
732 (show_regs): Deprecate and use the above.
733 (m68hc11_gdbarch_init): Install the print_registers_info.
734
705b278b
JJ
7352003-07-24 Jeff Johnston <jjohnstn@redhat.com>
736
737 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
738 that we have a SIGTRAP before returning non-zero.
739
63cd4198
EZ
7402003-07-23 Michal Ludvig <mludvig@suse.cz>
741 Elena Zannoni <ezannoni@redhat.com>
742
743 * linespec.c (decode_line_2): Avoid crash if
744 find_function_start_sal() returns empty record.
745
6926787d
AS
7462003-07-23 Andreas Schwab <schwab@suse.de>
747
748 * ia64-tdep.c (ia64_print_insn): New function.
749 (ia64_gdbarch_init): Set print_insn to it.
750 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
751 deprecated_tm_print_insn_info.
752
708cc1b6
MS
7532003-07-22 Michael Snyder <msnyder@redhat.com>
754
755 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
756 handle 8-bit returns (long long).
757 (h8300h_extract_return_value): Ditto.
758 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
759
aebd7893
AC
7602003-07-22 Andrew Cagney <cagney@redhat.com>
761
762 * gdbarch.c Include "gdb_obstack.h".
763 (struct gdbarch): Add an "obstack".
764 (alloc_gdbarch_data): Allocate the gdbarch data using
765 GDBARCH_OBSTACK_CALLOC.
766 (free_gdbarch_data): Delete function.
767 (gdbarch_obstack_zalloc): New function.
768 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
769 Assert that the architecture is not initialized.
770 (gdbarch_alloc): Allocate an obstack, allocate the architecture
771 vector from the obstack.
772 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
773 architecture obstack.
774 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
775 (set_gdbarch_data): Assert that the data is not initialized.
776 (struct gdbarch_data): Delete member "free".
777 (register_gdbarch_data): Do not initialize "free".
778 * gdbarch.h, gdbarch.c: Re-generate.
779
153721e6
AC
7802003-07-22 Andrew Cagney <cagney@redhat.com>
781
782 * configure.in (build_warnings): Add -Wformat-nonliteral.
783 * configure: Re-generate.
784
c193f044 7852003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
786
787 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 788
c3228f12
EZ
7892003-07-22 Elena Zannoni <ezannoni@redhat.com>
790
791 * findvar.c (read_var_value): Remove case for thread local storage
792 variables. It is now entirely handled by the dwarf2 location
793 expression code.
794 * printcmd.c (address_info): Ditto.
795 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
796 enumeration value.
797 (struct symbol): Remove objfile field, which was used by
798 LOC_THREAD_LOCAL_STATIC only.
799 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
800 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
801 usage of objfile pointer.
802 * dwarf2loc.c (locexpr_describe_location): Add case to handle
803 thread local variables.
804 Add include of objfiles.h.
805 * dwarf2expr.c (execute_stack_op): Add comments about thread local
806 storage variables.
807 * Makefile.in (dwarf2loc.o): Update dependencies.
808
aef9bcd2
AC
8092003-07-22 Andrew Cagney <cagney@redhat.com>
810
811 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
812 get_frame_base.
813 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
814 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
815 (struct value): Add opaque declaration.
816 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
817
d95a8903
AC
8182003-07-21 Andrew Cagney <cagney@redhat.com>
819
820 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
821 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
822
4db73d49
SC
8232003-07-20 Stephane Carrez <stcarrez@nerim.fr>
824
825 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
826 regcache_cooked_read_unsigned instead of read_register.
827 (m68hc11_saved_pc_after_call): Likewise.
828 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
829 instead of write_register.
830 (m68hc11_register_type): New function.
831 (m68hc11_register_virtual_type): Remove.
832 (m68hc11_store_return_value): Convert to use the regcache.
833 (m68hc11_extract_struct_value_address): Likewise.
834 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
835 m68hc11_register_type; undeprecate store_return_value and
836 extract_struct_value_address.
837
ef2b8fcd
SC
8382003-07-20 Stephane Carrez <stcarrez@nerim.fr>
839
840 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
841 and translate to use regcache.
842 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
843
625b0b97
AC
8442003-07-18 Andrew Cagney <cagney@redhat.com>
845
846 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
847 * gdbarch.h, gdbarch.c: Re-generate.
848 * i386-tdep.c (i386_gdbarch_init): Do not set
849 DWARF2_BUILD_FRAME_INFO.
850 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
851 unconditionally.
852 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
853 DWARF2_BUILD_FRAME_INFO.
854
22b0d388
AC
8552003-07-18 Andrew Cagney <cagney@redhat.com>
856
857 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
858 * disasm.c (gdb_disassemble_info): Initilize di.arch.
859
1ce5d6dd
AC
8602003-07-18 Andrew Cagney <cagney@redhat.com>
861
862 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
863 frame_unwind_address_in_block, instead of frame_pc_unwind.
864 (dwarf2_frame_cache): Ditto.
865
e6e5e94c
AC
8662003-07-18 Andrew Cagney <cagney@redhat.com>
867
868 * user-regs.h (struct gdbarch): Declare opaque.
869 * ui-out.h (struct ui_file): Declare opaque.
870 * dwarf2-frame.h (struct frame_info): Declare opaque.
871
5483d879
KW
8722003-07-18 Kris Warkentin <kewarken@qnx.com>
873
874 * nto-procfs.c: Clean ARI hits. Change #include <..> to
875 #include "...".
876 (procfs_meminfo): Change strerror to safe_strerror.
877 (procfs_can_run): Remove K&R badness.
878
278a7cf7
MS
8792003-07-17 Michael Snyder <msnyder@redhat.com>
880
881 * remote-sim.c: Comment typo fix.
882
606e3b82
AC
8832003-07-17 Andrew Cagney <cagney@redhat.com>
884
885 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
886 configure.
887 * sparc-tdep.c (sparc_intreg_size): Make non-static.
888 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
889 GDB_MULTI_ARCH_PARTIAL.
890
c43af07c
EZ
8912003-07-17 Elena Zannoni <ezannoni@redhat.com>
892
893 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
894 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
895 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
896
3b85b0f1
TR
8972003-07-16 Theodore A. Roth <troth@openavr.org>
898
899 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
900 found.
901 (avr_frame_unwind_cache): Don't unwind FP for main.
902 Update a comment.
903 Save the computed prev_sp.
904 (avr_saved_regs_unwinder): Remove function.
905 (avr_frame_prev_register): Use PC unwind logic from
906 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
907
336d1bba
AC
9082003-07-16 Andrew Cagney <cagney@redhat.com>
909
910 * frame-base.h (frame_base_p_ftype): Delete definition.
911 (frame_base_append_predicate): Delete declaration.
912 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
913 (frame_unwind_append_predicate): Delete declaration.
914 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
915 (append_predicate): Delete parameter "p".
916 (frame_unwind_append_predicate): Delete function.
917 (frame_unwind_append_sniffer): Update call to append_predicate.
918 (frame_unwind_free): Delete function.
919 (_initialize_frame_unwind): Pass NULL as "free" to
920 register_gdbarch_data.
921 (frame_unwind_init): Append the dummy_frame_sniffer.
922 (frame_unwind_find_by_frame): Simplify.
923 * frame-base.c (struct frame_base_table): Delete field "p".
924 (append_predicate): Delete parameter "p".
925 (frame_base_append_predicate): Delete function.
926 (frame_base_append_sniffer): Update call to append_predicate.
927 (frame_base_free): Delete function.
928 (frame_base_find_by_frame): Simplify.
929 (_initialize_frame_base): Pass NULL as "free" to
930 register_gdbarch_data.
931 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
932 (x86_64_sigtramp_frame_sniffer): Replace
933 "x86_64_sigtramp_frame_p".
934 (x86_64_init_abi): Set the frame unwind sniffers.
935 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
936 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
937 (m68k_gdbarch_init): Set the frame unwind sniffers.
938 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
939 "i386_sigtramp_frame_p".
940 (i386_frame_sniffer): Replace "i386_frame_p".
941 (i386_gdbarch_init): Set the frame unwind sniffers.
942 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
943 (avr_gdbarch_init): Set the frame unwind sniffers.
944 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
945 "alpha_sigtramp_frame_p"
946 (alpha_heuristic_frame_sniffer): Replace
947 "alpha_heuristic_frame_p".
948 (alpha_gdbarch_init): Set the frame unwind sniffers.
949 (alpha_dwarf2_init_abi): Ditto.
950 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
951 "alpha_debug_frame_p".
952 (alpha_mdebug_frame_base_sniffer): Replace
953 "alpha_mdebug_frame_base_p".
954 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
955 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
956 (d10v_gdbarch_init): Set the frame unwind sniffer.
957 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
958 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
959 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
960 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
961 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
962 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
963
48db5a3c
CV
9642003-07-16 Michael Snyder <msnyder@redhat.com>
965
966 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
967 should go thru sh_dsp_register_sim_regno, else the dsp regs
968 will not get the right values.
969
9702003-07-16 Corinna Vinschen <vinschen@redhat.com>
971
972 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
973 deprecated_store_floating by call to store_typed_floating.
974 (sh_sh4_register_convert_to_raw): Substitute call to
975 deprecated_extract_floating by call to extract_typed_floating.
976
9772003-07-16 Corinna Vinschen <vinschen@redhat.com>
978
979 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
980
9812003-07-16 Corinna Vinschen <vinschen@redhat.com>
982
983 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
984 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
985 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
986 as possible.
987 (do_pseudo_register): Remove.
988 (sh_push_dummy_code): New function.
989 (sh64_store_struct_return): Rename from sh_store_struct_return.
990 Only called for sh64 now.
991 (sh_extract_struct_value_address): Regcache'ify.
992 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
993 and accomodate new tasks.
994 (sh64_push_return_address): Rename from sh_push_return_address.
995 Only called for sh64 now.
996 (sh_default_extract_return_value): Rename from sh_extract_return_value.
997 Regcache'ify.
998 (sh3e_sh4_extract_return_value): Regcache'ify.
999 (sh_default_store_return_value): Ditto.
1000 (sh3e_sh4_store_return_value): Ditto.
1001 (sh_default_register_byte): Remove.
1002 (sh_sh4_register_byte): Remove.
1003 (sh_default_register_raw_size): Remove.
1004 (sh_sh4_register_raw_size): Remove.
1005 (sh_register_virtual_size): Remove.
1006 (sh_sh3e_register_virtual_type): Remove.
1007 (sh_sh3e_register_type): New function.
1008 (sh_sh4_register_virtual_type): Remove.
1009 (sh_sh4_register_type): New function.
1010 (sh_default_register_virtual_type): Remove.
1011 (sh_default_register_type): New function.
1012 (do_fv_register_info): Add parameters to accomodate call from
1013 sh_print_registers_info.
1014 (do_dr_register_info): Ditto.
1015 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1016 Add parameters to accomodate call from sh_print_registers_info.
1017 (sh_do_fp_register): Ditto.
1018 (sh64_do_pseudo_register): Call do_dr_register_info,
1019 do_fv_register_info and sh_do_fp_register with default parameters.
1020 (sh_do_register): Add parameters to accomodate call from
1021 sh_print_registers_info.
1022 (sh_print_register): Ditto.
1023 (sh_print_registers_info): Rename from sh_do_registers_info.
1024 Add parameters to be used as gdbarch_print_registers_info
1025 implementation. Accomodate removed do_pseudo_register function
1026 pointer.
1027 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1028 function pointer. Call sh_print_register with default parameters.
1029 (sh64_do_registers_info): Call sh_print_registers_info instead of
1030 sh_do_registers_info.
1031 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1032 detection of deprecated vs. non-deprecated functionality.
1033 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1034 function pointer assignments by direct function calls.
1035
e8a89fe2
AC
10362003-07-15 Andrew Cagney <cagney@redhat.com>
1037
1038 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1039 (frame_register_unwind, create_new_frame): Ditto.
1040 (legacy_get_prev_frame, get_frame_type): Ditto.
1041 (get_frame_base_address): Use frame_base_find_by_frame.
1042 (get_frame_locals_address): Use frame_base_find_by_frame.
1043 (get_frame_args_address): Use frame_base_find_by_frame.
1044 * frame-base.h (frame_base_sniffer_ftype): Declare.
1045 (frame_base_append_sniffer): Declare.
1046 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1047 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1048 (frame_base_append_sniffer): New function.
1049 (frame_base_append_predicate): Add a NULL sniffer.
1050 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1051 (struct frame_base_table): Add "sniffer".
1052 (frame_base_free): Free the "sniffer" table.
1053 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1054 (frame_unwind_append_sniffer): Declare.
1055 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1056 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1057 (struct frame_unwind_table): Add "sniffer", delete "middle".
1058 (append_predicate): Add "sniffer" parameter, append the sniffer.
1059 (frame_unwind_init): Update append_predicate call.
1060 (frame_unwind_append_sniffer): New function.
1061 (frame_unwind_append_predicate): Update append_predicate call.
1062 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1063
0714963c
AC
10642003-07-15 Andrew Cagney <cagney@redhat.com>
1065
1066 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1067 before code inhibiting repeated unwind attempts. Add to
1068 commentary on that test's problems.
1069 * blockframe.c (inside_main_func): Look for "main" in the minimal
1070 symbol table.
1071 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1072 identical.
1073
d9170e22
AC
10742003-07-15 Andrew Cagney <cagney@redhat.com>
1075
1076 * complaints.c (struct explanation): Define.
1077 (struct complaints): Change type of "explanation" to "struct
1078 explanation".
1079 (symfile_explanations): Convert to a "struct explanation" table.
1080 (vcomplaint): Update.
1081
eba29c8c
ML
10822003-07-15 Michal Ludvig <mludvig@suse.cz>
1083
1084 * x86-64-linux-nat.c (regmap): Removed.
1085 (supply_gregset, fill_gregset): Call
1086 x86_64_linux_(fill,supply)_gregset functions.
1087 * x86-64-linux-tdep.c (USER_*): New defines.
1088 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1089 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1090 New functions.
1091 (fetch_core_registers): Ditto.
1092 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1093 * x86-64-linux-tdep.h: New file.
1094 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1095 and core-regset.o.
1096 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1097
68cc0bfb
MK
10982003-07-13 Mark Kettenis <kettenis@gnu.org>
1099
88a115f7
MK
1100 * x86-64-tdep.c (x86_64_store_return_value): Use
1101 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1102
68cc0bfb
MK
1103 * configure.host: Add x86_64-*-freebsd*.
1104 * configure.tgt: Add x86_64-*-freebsd*.
1105 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1106 * amd64fbsd-nat.c: New file.
1107 * amd64fbsd-tdep.c: New file.
1108 * config/i386/nm-fbsd64.h: New file.
1109 * config/i386/fbsd64.mh: New file.
1110 * config/i386/fbsd64.mt: New file.
1111
138e7be5
MK
11122003-07-11 Mark Kettenis <kettenis@gnu.org>
1113
1114 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1115 `sc_regs_offset' and `sc_fpregs_offset'.
1116 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1117 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1118 (alpha_sigtramp_register_address): Rewrite to use new members of
1119 `struct gdbarch_tdep'.
1120 (alpha_gdbarch_init): Initialize new members of struct
1121 gdbarch_tdep'.
1122 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1123 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1124 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1125 (alphafbsd_pc_in_sigtramp): Implement.
1126 (alphafbsd_sigtramp_offset): New function.
1127 (alphafbsd_sigcontext_addr): New function.
1128 (alphafbsd_init_abi): Initialize signal trampoline related members
1129 of `struct gdbarch_tdep'.
1130 (_initialize_alphafbsd_tdep): Add prototype.
1131
95303a68
TR
11322003-07-11 Theodore A. Roth <troth@openavr.org>
1133
ba292e4c
TR
1134 * Makefile.in (install-only): Quote sed expression when generating
1135 transformed_name.
95303a68 1136
6896c0c7
RH
11372003-07-11 Richard Henderson <rth@redhat.com>
1138
1139 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1140 * dwarf2-frame.c: Include complaints.h.
1141 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1142 variable initialization; return NULL on error.
1143 (decode_frame_entry): New.
1144
8edd5d01
AC
11452003-07-11 Andrew Cagney <cagney@redhat.com>
1146
c4a09524
AC
1147 * frame.h (frame_address_in_block): Delete declaration.
1148 * blockframe.c (frame_address_in_block): Delete function.
1149 (get_frame_block): Use get_frame_address_in_block.
1150 (block_innermost_frame): Ditto.
1151 * stack.c (print_frame, backtrace_command_1): Ditto.
1152
8edd5d01
AC
1153 * frame.h (get_frame_address_in_block): Declare.
1154 (frame_unwind_address_in_block): Declare.
1155 * frame.c (frame_unwind_address_in_block): New function.
1156 (get_frame_address_in_block): New function.
1157
f7968451
AC
11582003-07-10 Andrew Cagney <cagney@redhat.com>
1159
1160 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1161 pre-default. Note: re-generate has no effect.
1162
ae99b398
AC
11632003-07-10 Andrew Cagney <cagney@redhat.com>
1164
1165 * gdbarch.sh: When a variable, but not a function, compare against
1166 0. Fix problem in previous patch.
1167 * gdbarch.c: Re-generate.
1168
956ac328
AC
11692003-07-10 Andrew Cagney <cagney@redhat.com>
1170
1171 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1172 functions against NULL, not 0.
1173 * gdbarch.c: Re-generate.
1174
287c3240
FF
11752003-07-10 Fred Fish <fnf@ninemoons.com>
1176
1177 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1178 null string instead of a null pointer.
1179 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1180
32f63c4b
MS
11812003-07-09 Michael Snyder <msnyder@redhat.com>
1182
1183 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1184
402ecd56
MK
11852003-07-09 Mark Kettenis <kettenis@gnu.org>
1186
1187 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1188 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1189 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1190 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1191 * x86-64-tdep.c: ... from here.
1192
c481dac7
AS
11932003-07-09 Andreas Schwab <schwab@suse.de>
1194
1195 * m68k-tdep.h (enum struct_return): Define.
1196 (struct gdbarch_tdep): Add struct_return.
1197 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1198 bytes are padded to the right, not to the left. Pass struct value
1199 address in register %a1, not on stack.
1200 (m68k_use_struct_convention): New function.
1201 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1202 struct_return in tdep to pcc_struct_return.
1203 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1204 reg_struct_return.
1205
64176fa3
JB
12062003-07-09 Joel Brobecker <brobecker@gnat.com>
1207
1208 * somread.c (som_symfile_offsets): Fix compilation error.
1209
96a4ee76
AC
12102003-07-09 Andrew Cagney <cagney@redhat.com>
1211
1212 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1213 Add comments about the checks.
1214
1517c6d1
AC
12152003-07-08 Andrew Cagney <cagney@redhat.com>
1216
1217 * Makefile.in: Make dependency section headers consistent.
1218 (config_h): Move to $BUILD headers section.
1219 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1220 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1221 (ada-exp.tab.c): Move to YACC/LEX section.
1222 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1223 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1224
dc5dd1eb
KW
12252003-07-08 Kris Warkentin <kewarken@qnx.com>
1226
1227 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1228 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1229 of strerror with safe_strerror, use ISO C function definitions,
1230 and replace instances of sprintf with snprintf.
dc5dd1eb 1231
612dde91
AC
12322003-07-07 Andrew Cagney <cagney@redhat.com>
1233
1234 * frame.c (get_prev_frame): Enable check for identical frames.
1235 Update comments. Update error messages.
1236
492c11d3
JB
12372003-07-07 Joel Brobecker <brobecker@gnat.com>
1238
1239 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1240
376a5a49
JB
12412003-07-07 Joel Brobecker <brobecker@gnat.com>
1242
1243 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1244 sort_symtab_syms, no longer necessary.
1245
22b4a9ad
JB
12462003-07-07 Joel Brobecker <brobecker@gnat.com>
1247
1248 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1249
5bbcb741
JB
12502003-07-07 Joel Brobecker <brobecker@gnat.com>
1251
1252 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1253 (mips_register_byte): Likewise.
1254
c139e7d9
DJ
12552003-07-07 Daniel Jacobowitz <drow@mvista.com>
1256
1257 * Makefile.in (sparc_tdep_h): New.
1258 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1259 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1260 * sparc-linux-nat.c: Include "sparc-tdep.h".
1261 * sparc-nat.c: Likewise.
1262 * sparc-tdep.c: Likewise.
1263 * sparc64nbsd-nat.c: Likewise.
1264 * sparcnbsd-nat.c: Likewise.
1265 * sparcnbsd-tdep.c: Likewise.
1266 * sparc-tdep.h: New file.
1267 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1268 and sparc_npc_regnum.
1269
fd8f87c5
DJ
12702003-07-07 Daniel Jacobowitz <drow@mvista.com>
1271
1272 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1273 (mips_linux_cannot_store_register): List supported instead of
1274 unsupported registers.
1275
13adf674
DJ
12762003-07-07 Daniel Jacobowitz <drow@mvista.com>
1277
1278 * disasm.c (dump_insns): Separate instructions from addresses.
1279
8de307e0
AS
12802003-07-07 Andreas Schwab <schwab@suse.de>
1281
1282 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1283 dependencies.
1284 * m68k-tdep.c (NUM_FREGS): Delete.
1285 (SIG_PC_FP_OFFSET): Delete.
1286 (TARGET_M68K): Delete.
1287 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1288 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1289 P_MOVEL_SP, P_MOVEML_SP): Define.
1290 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1291 P_TRAP): Delete.
1292 (m68k_register_raw_size): Delete.
1293 (m68k_register_virtual_size): Delete.
1294 (m68k_register_type): Renamed from m68k_register_virtual_type and
1295 add gdbarch argument.
1296 (m68k_store_struct_return): Delete.
1297 (m68k_deprecated_extract_return_value): Delete.
1298 (m68k_deprecated_extract_struct_value_address): Delete.
1299 (m68k_frame_chain): Delete.
1300 (m68k_frame_saved_pc): Delete.
1301 (m68k_fix_call_dummy): Delete.
1302 (m68k_push_dummy_frame): Delete.
1303 (m68k_pop_frame): Delete.
1304 (m68k_extract_return_value): New function.
1305 (m68k_store_return_value): Rewrite using regcache.
1306 (m68k_extract_struct_value_address): Rewrite using regcache.
1307 (m68k_push_dummy_call): New function.
1308 (struct m68k_frame_cache): Define.
1309 (m68k_alloc_frame_cache): New function.
1310 (m68k_analyze_frame_setup): New function.
1311 (m68k_analyze_register_saves): New function.
1312 (m68k_analyze_prologue): New function.
1313 (m68k_skip_prologue): Rewrite using above functions.
1314 (m68k_unwind_pc): New function.
1315 (m68k_frame_cache): New function.
1316 (m68k_frame_this_id): New function.
1317 (m68k_frame_prev_register): New function.
1318 (m68k_frame_unwind): New variable.
1319 (m68k_frame_p): New function.
1320 (m68k_sigtramp_frame_cache): New function.
1321 (m68k_sigtramp_frame_this_id): New function.
1322 (m68k_sigtramp_frame_prev_register): New function.
1323 (m68k_sigtramp_frame_unwind): New variable.
1324 (m68k_sigtramp_frame_p): New function.
1325 (m68k_frame_base_address): New function.
1326 (m68k_frame_base): New function.
1327 (m68k_unwind_dummy_id): New function.
1328 (fill_gregset): Use regcache_collect.
1329 (fill_fpregset): Likewise.
1330 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1331 defined.
1332 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1333 deprecated_init_frame_pc, deprecated_store_struct_return,
1334 deprecated_extract_return_value, deprecated_store_return_value,
1335 deprecated_frame_chain, deprecated_frame_saved_pc,
1336 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1337 deprecated_register_virtual_size,
1338 deprecated_max_register_raw_size,
1339 deprecated_max_register_virtual_size,
1340 deprecated_register_virtual_type, deprecated_register_size,
1341 deprecated_register_byte, deprecated_register_bytes,
1342 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1343 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1344 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1345 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1346 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1347 deprecated_push_dummy_frame, deprecated_pop_frame,
1348 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1349 only if SYSCALL_TRAP is defined. Set extract_return_value,
1350 store_return_value, extract_struct_value_address, register_type,
1351 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1352 predicates.
1353 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1354 M68K_MAX_REGISTER_SIZE): Define.
1355 (struct m68k_sigtramp_info): Define.
1356 (struct gdbarch_tdep): Add get_sigtramp_info.
1357 * m68klinux-nat.c (fetch_register): Use register_size instead of
1358 REGISTER_RAW_SIZE. Don't put assignment in if.
1359 (store_register): Likewise.
1360 (fetch_inferior_registers): Likewise.
1361 (store_inferior_registers): Likewise.
1362 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1363 (m68k_linux_frame_saved_pc): Delete.
1364 (m68k_linux_sigcontext_reg_offset,
1365 m68k_linux_ucontext_reg_offset): Define.
1366 (m68k_linux_get_sigtramp_info): New function.
1367 (m68k_linux_extract_return_value): Rewrite using regcache.
1368 (m68k_linux_store_return_value): Likewise.
1369 (m68k_linux_extract_struct_value_address): Likewise.
1370 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1371 Don't set deprecated_frame_saved_pc,
1372 deprecated_extract_return_value, deprecated_store_return_value,
1373 deprecated_extract_struct_value_address. Set
1374 extract_return_value, store_return_value,
1375 extract_struct_value_address.
1376
eb8bc282
AC
13772003-07-07 Andrew Cagney <cagney@redhat.com>
1378
1379 * expprint.c: Include "user-regs.h" instead of "frame.h".
1380 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1381 frame_map_regnum_to_name.
1382 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1383 (frame_map_name_to_regnum): Simplify, call
1384 user_reg_map_name_to_regnum.
1385 (frame_map_regnum_to_name): Simplify, call
1386 user_reg_map_regnum_to_name.
1387 (frame_register_unwind): Update.
1388 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1389 (_initialize_frame_reg): Call user_reg_add_builtin.
1390 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1391 (value_of_register): Use value_of_user_reg.
1392 * eval.c (evaluate_subexp_standard): Update.
1393 * parse.c (write_dollar_variable): Update.
1394 * d10v-tdep.c (d10v_print_registers_info): Update.
1395 * infcmd.c (registers_info): Update.
1396 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1397 (builtin_regs_h): Delete macro.
1398 (user_regs_h): Define.
1399 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1400 (builtin-regs.o): Delete target.
1401 (user-regs.o): Specify dependencies.
1402 (expprint.o): Update dependencies.
1403 (findvar.o): Update dependencies.
1404 (frame.o): Update dependencies.
1405 (std-regs.o): Update dependencies.
1406
9f476a01
CF
14072003-07-06 Christopher Faylor <cgf@redhat.com>
1408
1409 * win32-nat.c (solib_symbols_add): Use one variable for all section
1410 address stuff. Pass variable rather than address of variable to
1411 safe_symbol_file_add.
1412
a731b831
AS
14132003-07-06 Andreas Schwab <schwab@suse.de>
1414
1415 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1416
9f83329d
JB
14172003-07-04 Joel Brobecker <brobecker@gnat.com>
1418
1419 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1420
27e28cc5
KW
14212003-07-04 Kris Warkentin <kewarken@qnx.com>
1422
1423 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1424
14252003-07-04 Kris Warkentin <kewarken@qnx.com>
1426
1427 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1428 * config/i386/nto.mh: New file.
1429 * config/i386/nm-nto.h: New file.
1430 * configure.host: Add i[3456]86-*-nto*.
1431
100f2e98
JB
14322003-07-03 Joel Brobecker <brobecker@gnat.com>
1433
1434 * remote-vx.c (vx_add_symbols): Fix compilation error.
1435
e23457df
AC
14362003-07-03 Andrew Cagney <cagney@redhat.com>
1437
1438 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1439 * gdbarch.h, gdbarch.c: Re-generate.
1440 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1441 (legacy_register_name): Declare.
1442 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1443 (REGISTER_NAME): Define.
1444 * sparc-tdep.c (legacy_register_name): New function.
1445 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1446 (REGISTER_NAME): Define.
1447 (hppa64_register_name): Declare.
1448 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1449 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1450 (hppa64_register_name): New function.
1451 (hppa_register_name): New function.
1452 * arch-utils.c (legacy_register_name): Delete.
1453 * arch-utils.h (legacy_register_name): Delete.
1454
38caaeec
DJ
14552003-07-03 Daniel Jacobowitz <drow@mvista.com>
1456
1457 * cli/cli-interp.c (cli_interpreter_resume): Update the
1458 cli_uiout's stream to gdb_stdout.
1459
dadd712e
AC
14602003-07-03 Andrew Cagney <cagney@redhat.com>
1461
1462 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1463 predicate.
1464 * gdbarch.h, gdbarch.c: Re-generate.
1465 * regcache.c (init_regcache_descr): Use legacy code when either
1466 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1467
c7f1390e
DJ
14682003-07-02 Daniel Jacobowitz <drow@mvista.com>
1469
1470 * NEWS: Move "set logging" entry into GDB 6.0 section.
1471
4bc8c588
JB
14722003-07-02 Jim Blandy <jimb@redhat.com>
1473
a9dd42f1
JB
1474 * s390-tdep.c (struct frame_extra_info): new member:
1475 'stack_bought_valid'.
1476 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1477 initialize fextra_info->stack_bought.
1478 (s390_frameless_function_invocation): Don't trust the value of
1479 fextra_info_ptr->stack_bought unless
1480 fextra_info->stack_bought_valid is set.
1481
4bc8c588
JB
1482 New S390 prologue analyzer.
1483 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1484 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1485 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1486 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1487 compute_x_addr, s390_on_stack, s390_store,
1488 s390_get_signal_frame_info): New functions.
1489 (S390_NUM_SPILL_SLOTS): New macro.
1490 (s390_get_frame_info): Rewritten.
1491 (is_arg_reg): Deleted.
1492
1493 Break out the decoding of S/390 instructions into separate
1494 functions, to make it more legible, and easier to check
1495 against the spec.
1496 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1497 is_rx, is_rxe): New functions.
1498 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1499 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1500 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1501 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1502 enums for opcode values. (Is this an improvement?)
1503
fd13a04a
AC
15042003-07-02 Andrew Cagney <cagney@redhat.com>
1505
1506 * i386-tdep.c: Revert change committed as part of trad-frame code
1507 below.
1508
3f8091c1
DJ
15092003-07-02 Daniel Jacobowitz <drow@mvista.com>
1510
1511 * breakpoint.c (insert_catchpoint): Make static.
1512
8dd5115e
AS
15132003-07-02 Andreas Schwab <schwab@suse.de>
1514
1515 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1516 former ia64_push_arguments and ia64_push_return_address, and use
1517 regcache functions instead of read/write_register.
1518 (ia64_gdbarch_init): Set push_dummy_call instead of
1519 deprecated_push_arguments and deprecated_push_return_address.
1520
a2229c23
AJ
15212003-07-01 Andreas Jaeger <aj@suse.de>
1522
1523 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1524 before the call.
1525 Set %rax only to number of SSE registers used.
1526
3b3850e8
AC
15272003-07-01 Andrew Cagney <cagney@redhat.com>
1528
1529 * trad-frame.h: Update comments, a -1 .addr is reserved.
1530 (trad_frame_value_p, trad_frame_addr_p): Declare.
1531 (trad_frame_reg_p): Declare.
1532 (trad_frame_set_value): Rename trad_frame_register_value.
1533 (trad_frame_set_unknown): Declare.
1534 * trad-frame.c (trad_frame_realreg_p): New function.
1535 (trad_frame_addr_p, trad_frame_value_p): New function.
1536 (trad_frame_set_unknown): New function.
1537 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1538 (trad_frame_prev_register): Use trad_frame_realreg_p,
1539 trad_frame_addr_p and trad_frame_value_p.
1540 (trad_frame_set_value): Rename trad_frame_register_value.
1541 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1542 and trad_frame_set_value.
a2229c23 1543
4d819d0e
JB
15442003-06-30 Jim Blandy <jimb@redhat.com>
1545
1546 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1547 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1548 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1549 for 16 registers, and then 32 more bytes.
1550 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1551 New macros.
1552 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1553 Move up in the file, since it's now used by is_simple_arg.
1554 (is_simple_arg): Don't assume registers are four bytes long.
1555 Exclude all double arguments. Extended floats are not simple
1556 args.
1557 (is_power_of_two): New function.
1558 (pass_by_copy_ref): Call is_power_of_two, and check that the
1559 length fits in a register, rather than listing all the acceptable
1560 sizes. Extended floats are not passed by reference.
1561 (s390_push_arguments): Don't assume registers are four bytes long.
1562 Reserve an argument register to point to the buffer for structures
1563 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1564 S390_STACK_FRAME_OVERHEAD.
1565
1ad828f1
AS
15662003-06-30 Andreas Schwab <schwab@suse.de>
1567
1568 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1569 format error message.
1570
39b00981
JB
15712003-06-30 Joel Brobecker <brobecker@gnat.com>
1572
1573 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1574
b2a7f303
DC
15752003-06-30 David Carlton <carlton@kealia.com>
1576
1577 Band-aid for PR c++/1245.
1578 * Makefile.in (cp-support.o): Depend on complaints_h.
1579 * cp-support.c: Include complaints.h. Add declaration for
1580 find_last_component.
1581 (cp_find_first_component): Separate code into
1582 cp_find_first_component_aux.
1583 (cp_find_first_component_aux): Call demangled_name_complaint.
1584 (demangled_name_complaint): New.
1585
a257b5bb
AC
15862003-06-30 Andrew Cagney <cagney@redhat.com>
1587
1588 * remote.c (remote_write_bytes): Explicitly compute and then use
1589 the payload size. Update comments to reflect. Fixes problem of
1590 GDB not sending small packets as found by Fred Fish.
1591
0a2cfde4
AC
15922003-06-30 Andrew Cagney <cagney@redhat.com>
1593
1594 * remote.c (remote_async_wait): Fix -Wformat problem.
1595
3fcb8548
AC
15962003-06-29 Andrew Cagney <cagney@redhat.com>
1597
1598 * remote.c (remote_wait): Call error, and not warning, when the
1599 packet is corrupt.
1600 (remote_async_wait): Ditto.
1601
9f9970a3
DJ
16022003-06-29 Daniel Jacobowitz <drow@mvista.com>
1603
1604 * sparc-tdep.c (sparc_y_regnum): Make external again.
1605
83a8ccca
DJ
16062003-06-29 Daniel Jacobowitz <drow@mvista.com>
1607
1608 * cli/cli-logging.c (pop_output_files): Add void to function
1609 definition.
1610
d2cf594a
AC
16112003-06-29 Andrew Cagney <cagney@redhat.com>
1612
1613 * frame.c (frame_register_unwind): Use unsigned char when dumping
1614 the buffer contents.
1615
0fac0b41
DJ
16162003-06-28 Daniel Jacobowitz <drow@mvista.com>
1617
1618 * cli/cli-logging.c: New file.
1619 * cli-out.c (struct ui_out_data): Add original_stream.
1620 (cli_redirect): New function.
1621 (cli_ui_out_impl): Add cli_redirect.
1622 (cli_out_new): Initialize original_stream.
1623 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1624 (uo_redirect, ui_out_redirect): New.
1625 * ui-out.h (struct ui_out_impl): Add redirect member.
1626 (redirect_ftype): New.
1627 (ui_out_redirect): Add prototype.
1628 * Makefile.in: Add rules for cli-logging.c.
1629 * NEWS: Mention "set logging".
1630
88a07d7c
EZ
16312003-06-27 Elena Zannoni <ezannoni@redhat.com>
1632
1633 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1634
4eb58876
AC
16352003-06-27 Andrew Cagney <cagney@redhat.com>
1636
1637 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1638 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1639 * avr-tdep.c (avr_call_dummy_address): Delete function.
1640 (avr_gdbarch_init): Do not set call_dummy_address.
1641
1549f619
EZ
16422003-06-27 Elena Zannoni <ezannoni@redhat.com>
1643
1644 * symfile.c (syms_from_objfile): Move variables to inner block.
1645 Move the checks for the non-mainline case a bit earlier to avoid
1646 doing some useless computations.
1647
3cb3398d
EZ
16482003-06-27 Elena Zannoni <ezannoni@redhat.com>
1649
1650 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1651
3799ccc6
EZ
16522003-06-26 Elena Zannoni <ezannoni@redhat.com>
1653
1654 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1655 sections.
1656
ce1f6491
MC
16572003-06-26 Michael Chastain <mec@shout.net>
1658
1659 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1660 gdb/testsuite/gdb.c++/pr-1210.exp.
1661
d958dfd0
AC
16622003-06-26 Andrew Cagney <cagney@redhat.com>
1663
1664 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1665 altivec_expression.h and altivec_registers.h.
1666
d31431ed
AC
16672003-06-26 Andrew Cagney <cagney@redhat.com>
1668
1669 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1670 info->mach when MIPS16. Patch suggested by Fred Fish.
1671
714b1282
AC
16722003-06-26 Andrew Cagney <cagney@redhat.com>
1673
1674 * utils.c (internal_vproblem): Print the problem to a reason
1675 buffer and then pass to query. Make the msg variable more local.
1676
42efa47a
AC
16772003-06-26 Andrew Cagney <cagney@redhat.com>
1678
1679 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1680 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1681 * gdbarch.h, gdbarch.c: Re-generate.
1682 * frame-base.c (default_frame_args_address): Update. Use
1683 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1684 not available.
1685 (default_frame_locals_address): Ditto for
1686 DEPRECATED_FRAME_LOCALS_ADDRESS.
1687 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1688 (vax_frame_num_args): Update.
1689 (vax_gdbarch_init): Update.
1690 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1691 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1692 * mcore-tdep.c (mcore_gdbarch_init): Update.
1693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1694 * ia64-tdep.c (ia64_gdbarch_init): Update.
1695 * symtab.h (address_class): Update comments.
1696 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1697 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1698 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1699 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1700 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1701 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1702 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1703 * alpha-mdebug-tdep.c: Update.
1704 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1705
8ffd9b1b
AJ
17062003-06-26 Andreas Jaeger <aj@suse.de>
1707
1708 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1709 of SSE registers so that varargs functions work. Rework handling
1710 of passing arguments on the stack.
1711 (x86_64_store_return_value): Return double and float values in SSE
1712 register.
1713
e8ac10a6
MC
17142003-06-24 Michael Chastain <mec@shout.net>
1715
1716 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1717 the "constructor breakpoints ignored" bug.
1718
986af8e6
DC
17192003-06-25 David Carlton <carlton@kealia.com>
1720
1721 * MAINTAINERS: Update e-mail address.
1722
d64558a5
JB
17232003-06-24 Jim Blandy <jimb@redhat.com>
1724
e538d2d7
JB
1725 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1726
02631ec0
JB
1727 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1728 function.
1729 (ppc_linux_init_abi): Register it as the
1730 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1731
e716d87a
JB
1732 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1733 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1734 method.
1735
d64558a5
JB
1736 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1737 (ppc64_standard_linkage_target): Use it.
1738
449a5da4
AC
17392003-06-23 Andrew Cagney <cagney@redhat.com>
1740
1741 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1742 for 0 "int0" and 4 "int32" sized registers.
1743 * gdbtypes.c (builtin_type_int0): Define.
1744 (build_gdbtypes): Initialize builtin_type_int0.
1745 * gdbtypes.h (builtin_type_int0): Declare.
1746
b2a02dda
SC
17472003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1748
1749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1750 as characters are unsigned.
1751
fba3138e
DJ
17522003-06-22 Daniel Jacobowitz <drow@mvista.com>
1753
1754 PR gdb/1179
1755 * dwarfread.c (struct_type): Skip static fields without crashing.
1756
f6c8180b
AC
17572003-06-22 Andrew Cagney <cagney@redhat.com>
1758
1759 GDB 6.0 branch created.
f2c06f52
AC
1760 * README: Update.
1761 * PROBLEMS: Update. Empty.
1762 * NEWS: Update.
f6c8180b 1763
ae822768
DJ
17642003-06-22 Daniel Jacobowitz <drow@mvista.com>
1765
1766 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1767 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1768
261de166
AC
17692003-06-22 Andrew Cagney <cagney@redhat.com>
1770
1771 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1772 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1773 Velikov.
1774
30e94205
DJ
17752003-06-22 Daniel Jacobowitz <drow@mvista.com>
1776
1777 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1778 compilers.
1779
9e14d721
DJ
17802003-06-21 Daniel Jacobowitz <drow@mvista.com>
1781
1782 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1783 argument of val_print.
1784 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1785 to the address argument of baseclass_offset or target_read_memory.
1786 Do add it to the argument of cp_print_value_fields.
1787
a4b8ebc8
AC
17882003-06-21 Andrew Cagney <cagney@redhat.com>
1789
1790 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1791 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1792 instead of 0..NUM_REGS.
1793 (mips_register_reggroup_p): New function.
1794 (mips_pseudo_register_write): New function.
1795 (mips_pseudo_register_read): New function.
1796 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1797 based on the register's type.
1798 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1799 cooked.
1800 (mips_get_saved_register): Simplify. Assert that REGNO is a
1801 pseudo / cooked.
1802 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1803 (mips_register_type): Replace mips_register_virtual_type. Map
1804 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1805 when available.
1806 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1807 that the register is cooked / virtual.
1808 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1809 Only get the extra info when needed.
1810 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1811 (mips32_heuristic_proc_desc): Fetch the cooked register.
1812 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1813 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1814 (mips_print_register): Use gdbarch_register_type, instead of
1815 REGISTER_VIRTUAL_TYPE.
1816 (print_gp_register_row): Use gdbarch_register_type, instead of
1817 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1818 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1819 Print the pseudo / cooked registers.
1820 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1821 Print the pseudo / cooked registers.
1822 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1823 REG_NUM is pseudo / cooked.
1824 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1825 (mips_n32n64_xfer_return_value): Ditto.
1826 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1827 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1828 (mips_register_sim_regno): New function.
1829 (mips_gdbarch_init): Set deprecated_register_byte,
1830 register_group_p, pseudo_register_write, pseudo_register_read,
1831 register_sim_regno, and num_pseudo_regs. Set register_type,
1832 instead of register_virtual_type.
1833 * Makefile.in (mips-tdep.o): Update dependencies.
1834 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1835 REGISTER_VIRTUAL_TYPE.
1836 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1837 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1838 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1839 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1840 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1841
325ed089
DJ
18422003-06-21 Daniel Jacobowitz <drow@mvista.com>
1843
1844 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1845 * cli/cli-cmds.c: Include "gdb_vfork.h".
1846 (shell_escape): Use vfork.
1847
f0e7d0e8
AC
18482003-06-21 Andrew Cagney <cagney@redhat.com>
1849
c57bb9fa
AC
1850 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1851 32 bit floating-point register saves.
1852
6e51443a
AC
1853 * frame.h (deprecated_unwind_get_saved_register): Delete.
1854 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1855 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1856 and deprecated_get_next_frame_hack instead of
1857 deprecated_unwind_get_saved_register.
1858
ed183c7c
AC
1859 * mips-tdep.c (mips_dump_tdep): Do not print
1860 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1861
f0e7d0e8
AC
1862 * frame.c (get_frame_register): New function.
1863 (frame_unwind_register_signed): New function.
1864 (get_frame_register_signed): New function.
1865 (frame_unwind_register_unsigned): New function.
1866 (get_frame_register_unsigned): New function.
1867 * frame.h: Add comments on naming schema.
1868 (get_frame_register, frame_unwind_register_signed): Declare.
1869 (get_frame_register_signed, get_frame_register_signed): Declare.
1870 (frame_unwind_register_unsigned): Declare.
1871 (get_frame_register_unsigned): Declare.
1872
2224d941
TR
18732003-06-20 Theodore A. Roth <troth@openavr.org>
1874
1875 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1876
8619218d
TR
18772003-06-20 Theodore A. Roth <troth@openavr.org>
1878
1879 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1880 (avr_read_sp): Ditto.
1881
0b1b50c0
DJ
18822003-06-20 Daniel Jacobowitz <drow@mvista.com>
1883
1884 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1885 * config/arm/nm-linux.h: Likewise.
1886 * config/arm/tm-linux.h: Likewise.
1887 * config/ia64/nm-linux.h: Likewise.
1888 * config/ia64/tm-ia64.h: Likewise.
1889 * config/s390/tm-linux.h: Likewise.
1890 * config/s390/tm-s390.h: Likewise.
1891 * s390-nat.c: Likewise.
1892 * s390-tdep.c: Likewise.
1893
1894 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1895 * config/ia64/linux.mt: Likewise.
1896 * config/m68k/linux.mh: Likewise.
1897 * config/mips/linux.mt: Likewise.
1898 * config/powerpc/linux.mh: Likewise.
1899 * config/sh/linux.mt: Likewise.
1900
c8c18e65
KW
19012003-06-19 Kris Warkentin <kewarken@qnx.com>
1902
1903 * solib.c (solib_open): Change tests for whether to search
1904 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1905 comments.
1906
dcccef2e
TR
19072003-06-19 Theodore A. Roth <troth@openavr.org>
1908
1909 * avr-tdep.c (avr_frame_address): Delete function.
1910 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1911 set_gdbarch_frame_args_address.
1912
5861a190
AC
19132003-06-19 Andrew Cagney <cagney@redhat.com>
1914
1915 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1916 (REGISTER_CONVERT_FROM_TYPE): Delete.
1917 (mips_register_convert_to_type): Delete declaration.
1918 (mips_register_convert_from_type): Delete declaration.
1919 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1920 kernel/.
1921
0274a8ce
MS
19222003-06-19 Michael Snyder <msnyder@redhat.com>
1923
1924 * linux-nat.h: New file.
1925 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 1926 * lin-lwp.c: Include linux-nat.h.
0274a8ce 1927 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 1928 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
1929 (linux_make_note_section): Iterate over lwps instead of threads.
1930 (linux_do_thread_registers): Use lwp instead of merged pid.
1931 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 1932 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
1933 Add dependency on linux_nat_h.
1934
adf5f719
TR
19352003-06-19 Theodore A. Roth <troth@openavr.org>
1936
1937 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1938
6766a268
DJ
19392003-06-19 Daniel Jacobowitz <drow@mvista.com>
1940
1941 * varobj.c (get_type, get_target_type): Use check_typedef.
1942
1171114a
DJ
19432003-06-19 Daniel Jacobowitz <drow@mvista.com>
1944
1945 * breakpoint.c (insert_catchpoint): Call internal_error.
1946
adcf68a2
TR
19472003-06-19 Theodore A. Roth <troth@openavr.org>
1948
1949 * avr-tdep.c (avr_push_dummy_code): Delete function.
1950 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1951
ea67f13b
DJ
19522003-06-19 Daniel Jacobowitz <drow@mvista.com>
1953
1954 * arch-utils.c (default_prepare_to_proceed): Remove.
1955 (generic_prepare_to_proceed): Remove.
1956 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1957 (generic_prepare_to_proceed): Remove prototype.
1958 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1959 * gdbarch.c: Regenerate.
1960 * gdbarch.h: Regenerate.
1961 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1962 * hppah-nat.c (hppa_switched_threads): Remove.
1963 * infrun.c (prepare_to_proceed): New static function, copied from
1964 generic_prepare_to_proceed. Remove select_it argument.
1965 (proceed): Call prepare_to_proceed.
1966 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1967 variables.
1968 (ptrace_wait): Don't set the removed variables.
1969 (hppa_switched_threads): Remove.
1970 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1971 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1972 (lin_lwp_prepare_to_proceed): Remove prototype.
1973 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1974 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1975
4add8633
TR
19762003-06-18 Theodore A. Roth <troth@openavr.org>
1977
1978 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1979 trad-frame.h.
1980 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1981 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1982 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1983 (AVR_PROLOGUE_*): Enumerate prologue types.
1984 (struct frame_extra_info): Remove.
1985 (struct avr_unwind_cache): Define.
1986 (avr_write_sp): Delete function.
1987 (avr_read_fp): Ditto.
1988 (avr_init_extra_frame_info): Ditto.
1989 (avr_pop_frame): Ditto.
1990 (avr_frame_saved_pc): Ditto.
1991 (avr_saved_pc_after_call): Ditto.
1992 (avr_push_return_address): Ditto.
1993 (avr_frame_chain): Ditto.
1994 (avr_store_struct_return): Ditto.
1995 (avr_push_arguments): Ditto.
1996 (avr_scan_prologue): Update comments. Changed to set up the info for
1997 cache unwinding. Now returns end of prologue PC.
1998 (avr_skip_prologue): Better handling of functions lacking a prologue
1999 by using avr_scan_prologue.
2000 (avr_scan_arg_moves): New function.
2001 (avr_saved_regs_unwinder): Ditto.
2002 (avr_frame_unwind_cache): Ditto.
2003 (avr_unwind_pc): Ditto.
2004 (avr_frame_this_id): Ditto.
2005 (avr_frame_prev_register): Ditto.
2006 (avr_frame_p): Ditto.
2007 (avr_frame_base_address ): Ditto.
2008 (avr_unwind_dummy_id): Ditto.
2009 (avr_push_dummy_code): Ditto.
2010 (push_stack_item): Ditto.
2011 (pop_stack_item): Ditto.
2012 (avr_push_dummy_call): Ditto.
2013 (struct stack_item): Define.
2014 (avr_frame_unwind): Declare structure.
2015 (avr_frame_base): Ditto.
2016 (avr_gdbarch_init): Remove calls to
2017 set_gdbarch_deprecated_init_frame_pc,
2018 set_gdbarch_deprecated_target_read_fp,
2019 set_gdbarch_deprecated_dummy_write_sp,
2020 set_gdbarch_deprecated_fp_regnum,
2021 set_gdbarch_deprecated_push_arguments,
2022 set_gdbarch_deprecated_push_return_address,
2023 set_gdbarch_deprecated_pop_frame,
2024 set_gdbarch_deprecated_store_struct_return,
2025 set_gdbarch_deprecated_frame_init_saved_regs,
2026 set_gdbarch_deprecated_init_extra_frame_info,
2027 set_gdbarch_deprecated_frame_chain,
2028 set_gdbarch_deprecated_frame_saved_pc,
2029 set_gdbarch_deprecated_saved_pc_after_call.
2030 Add calls to set_gdbarch_push_dummy_call,
2031 set_gdbarch_push_dummy_code,
2032 frame_unwind_append_predicate,
2033 frame_base_set_default,
2034 set_gdbarch_unwind_dummy_id,
2035 set_gdbarch_unwind_pc.
2036 Wrap a long line.
2037
7be04a68
MS
20382003-06-18 Corinna Vinschen <vinschen@redhat.com>
2039
2040 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2041 registers for H8/300S.
2042 (h8300_print_registers_info): Ditto.
8ffd9b1b 2043 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2044
ae087d01
DJ
20452003-06-18 Daniel Jacobowitz <drow@mvista.com>
2046
2047 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2048 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2049 (lin_lwp_wait): Likewise. Update comments.
2050 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2051 (pull_pid_from_list, linux_record_stopped_pid): New.
2052
07d8f827
SC
20532003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2054
2055 * ada-lang.c (scan_discrim_bound): Name first argument.
2056 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2057 declared by ALL_BLOCK_SYMBOLS.
2058
7cb47b14
SC
20592003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2060
2061 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2062 ("regcache.h"): Include it.
2063 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2064
6ad8ae5c
DJ
20652003-06-17 Daniel Jacobowitz <drow@mvista.com>
2066
2067 * NEWS: Mention gdbserver detach change and "disconnect" command.
2068 * infcmd.c (disconnect_command): New function.
2069 (_initialize_infcmd): Add ``disconnect'' command.
2070 * remote.c (remote_async_detach): Delete.
2071 (remote_detach): Merge remote_async_detach.
2072 (remote_disconnect): New.
2073 (init_remote_ops): Set to_disconnect.
2074 (init_remote_cisco_ops): Likewise.
2075 (init_remote_async_ops): Likewise. Use remote_detach.
2076 * target.c (cleanup_target): Default to_disconnect.
2077 (update_current_target): Inherit to_disconnect.
2078 (target_disconnect, debug_to_disconnect): New functions.
2079 (setup_target_debug): Set to_disconnect.
2080 * target.h (struct target_ops): Add to_disconnect.
2081 (target_disconnect): Add prototype.
2082
687595f9
DJ
20832003-06-17 Daniel Jacobowitz <drow@mvista.com>
2084
2085 * breakpoint.c (insert_catchpoint): New function.
2086 (insert_breakpoints): Use catch_exceptions to call
2087 insert_catchpoint. Disable catchpoints if they fail to insert.
2088
29239a8f
DJ
20892003-06-17 Daniel Jacobowitz <drow@mvista.com>
2090
2091 * symfile.c (reread_symbols): Clear sym_private.
2092
2cdf3c63
AC
20932003-06-17 Andrew Cagney <cagney@redhat.com>
2094
2095 * trad-frame.h (struct frame_info): Add opaque declaration.
2096 * remote-fileio.h (struct cmd_list_element): Add opaque
2097 declaration.
2098 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2099 comments.
2100
cf0e1e0d
DJ
21012003-06-17 Daniel Jacobowitz <drow@mvista.com>
2102
2103 * remote.c (remote_prepare_to_store): Replace call to
2104 deprecated_read_register_bytes with multiple regcache_raw_read
2105 calls.
2106
192cdb19
KW
21072003-06-17 Kris Warkentin <kewarken@qnx.com>
2108
2109 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2110 (nto_find_and_open_solib): Likewise.
2111 (nto_init_solib_absolute_prefix): Likewise.
2112 (_initialize_nto_tdep): Fix indentation.
2113
89929b45
KW
21142003-06-17 Kris Warkentin <kewarken@qnx.com>
2115
2116 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2117
46019f27
KW
21182003-06-17 Kris Warkentin <kewarken@qnx.com>
2119
2120 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2121
1a38736e
JB
21222003-06-17 Jim Blandy <jimb@redhat.com>
2123
2124 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2125
3605c34a
TR
21262003-06-16 Theodore A. Roth <troth@openavr.org>
2127
2128 * avr-tdep.c (avr_extract_return_value): New function.
2129 (avr_gdbarch_init): Set extract_return_value method.
2130
870b3035
AC
21312003-06-16 Andrew Cagney <cagney@redhat.com>
2132
2133 * frame.h (deprecated_get_next_frame_hack): Declare.
2134 * frame.c (legacy_saved_regs_prev_register): Only require
2135 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2136 there are always saved regs.
2137 (deprecated_generic_get_saved_register): Do not require
2138 DEPRECATED_FRAME_INIT_SAVED_REGS.
2139 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2140 use frame ID unwind instead.
2141 (deprecated_get_next_frame_hack): New function.
2142
63d47a7d
CV
21432003-06-16 Corinna Vinschen <vinschen@redhat.com>
2144
2145 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2146 (h8300_push_dummy_call): ...this function. Some minor optimization.
2147 (h8300_push_return_address): Remove.
2148 (h8300_gdbarch_init): Remove calls to
2149 set_gdbarch_deprecated_dummy_write_sp,
2150 set_gdbarch_deprecated_push_arguments and
2151 set_gdbarch_deprecated_push_return_address.
2152 Add call to set_gdbarch_push_dummy_call.
2153
4bb1dc5e
CV
21542003-06-16 Corinna Vinschen <vinschen@redhat.com>
2155
2156 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2157 (E_PSEUDO_EXR_REGNUM): Ditto.
2158 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2159 registers into safe registers.
4bb1dc5e
CV
2160 (h8300_skip_prologue): Check for stm instruction to push registers
2161 used for register variables onto stack.
2162 (gdb_print_insn_h8300): Remove.
2163 (h8300_examine_prologue): Add a comment.
2164 (h8300_register_name): Take pseudo registers into account.
2165 (h8300s_register_name): Ditto.
2166 (h8300sx_register_name): Ditto.
2167 (h8300_print_register): Ditto.
2168 (h8300_print_registers_info): Define "nice" printing order.
2169 (h8300_saved_pc_after_call): Take pseudo registers into account.
2170 (h8300_register_type): Ditto. Return type used for remote connection
2171 when requesting real CCR or EXR register, return actual type when
2172 requesting pseudo CCR or EXR.
2173 (h8300_pseudo_register_read): New function.
2174 (h8300_pseudo_register_write): Ditto.
2175 (h8300_dbg_reg_to_regnum): Ditto.
2176 (h8300s_dbg_reg_to_regnum): Ditto.
2177 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2178 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2179 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2180 set_gdbarch_print_insn architecture dependent.
2181 Call set_gdbarch_pseudo_register_read and
2182 set_gdbarch_pseudo_register_write.
2183 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2184
a59fe496
AC
21852003-06-16 Andrew Cagney <cagney@redhat.com>
2186
2187 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2188 * gdbarch.h, gdbarch.c: Re-generate.
2189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2190 * s390-tdep.c (s390_gdbarch_init): Update.
2191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2193 * mips-tdep.c (mips_gdbarch_init): Update.
2194 * mcore-tdep.c (mcore_gdbarch_init): Update.
2195 * cris-tdep.c (cris_gdbarch_init): Update.
2196 * infcall.c (call_function_by_hand): Update.
2197 * ia64-tdep.c (ia64_push_arguments): Update comment.
2198 * frame.c (legacy_get_prev_frame): Do not assume
2199 SAVE_DUMMY_FRAME_TOS_P.
2200 * dummy-frame.c (find_dummy_frame): Update comment.
2201
6f4e5a41
AC
22022003-06-16 Andrew Cagney <cagney@redhat.com>
2203
2204 * regcache.c (do_cooked_read): Do not use register_valid_p.
2205
72fab697
TR
22062003-06-15 Theodore A. Roth <troth@openavr.org>
2207
2208 * avr-tdep.c (avr_register_type): Remove a blank line.
2209 (avr_scan_prologue): Correct some comments.
2210
e3d8b004
TR
22112003-06-15 Theodore A. Roth <troth@openavr.org>
2212
2213 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2214 prologue types.
8ffd9b1b 2215 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2216 option.
2217 Add code to scan -mcall-prologues for mega devices.
2218
866b76ea
TR
22192003-06-15 Theodore A. Roth <troth@openavr.org>
2220
2221 * avr-tdep.c (avr_register_byte): Delete function.
2222 (avr_register_raw_size): Delete function.
2223 (avr_register_virtual_size): Delete function.
2224 (avr_register_virtual_type): Delete function.
2225 (avr_register_type): New function.
2226 (avr_address_to_pointer): Remove unused code.
2227 (avr_read_fp): Need to read FP as two separate bytes due to change to
2228 avr_register_type() usage.
2229 (avr_gdbarch_init): Don't set deprecated_register_size.
2230 Don't set deprecated_register_bytes.
2231 Don't set deprecated_register_byte.
2232 Don't set deprecated_register_raw_size.
2233 Don't set deprecated_max_register_raw_size.
2234 Don't set deprecated_register_virtual_size.
2235 Don't set deprecated_max_register_virtual_size.
2236 Don't set deprecated_register_virtual_type.
2237 Set register_type method.
2238
3993f6b1
DJ
22392003-06-15 Daniel Jacobowitz <drow@mvista.com>
2240
2241 * Makefile.in (linux-nat.o): Add rule.
2242 * linux-nat.c: New file.
2243 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2244 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2245 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2246 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2247 * config/arm/linux.mh (NATDEPFILES): Likewise.
2248 * config/i386/linux.mh (NATDEPFILES): Likewise.
2249 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2250 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2251 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2252 * config/mips/linux.mh (NATDEPFILES): Likewise.
2253 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2254 * config/s390/s390.mh (NATDEPFILES): Likewise.
2255 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2256
786a90bb
MK
22572003-06-15 Mark Kettenis <kettenis@gnu.org>
2258
2259 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2260 replace out-of-date comment.
2261
3bd3f01e
AC
22622003-06-15 Andrew Cagney <cagney@redhat.com>
2263
2264 * rdi-share/host.h (Fail): Change to a varargs function.
2265 * remote-rdi.c (Fail): Update.
8ffd9b1b 2266
de5b9bb9
MK
22672003-06-15 Mark Kettenis <kettenis@gnu.org>
2268
2269 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2270 (i386_convert_register_p, i386_register_to_value,
2271 i386_register_from_value): Handle types longer than 8 bytes.
2272
d532c08f
MK
22732003-06-15 Mark Kettenis <kettenis@gnu.org>
2274
2275 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2276 Move floating-point code to new function in i387-tdep.c.
2277 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2278 New functions containing code moved here from i386-tdep.c.
2279 * i387-tdep.h: Add opaque declaration for `struct type'.
2280 (i387_register_to_value, i387_value_to_register): New prototypes.
2281 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2282 (x86_64_init_abi): Set convert_register_p, register_to_value and
2283 value_to_register here.
8ffd9b1b 2284
42c466d7
AC
22852003-06-14 Andrew Cagney <cagney@redhat.com>
2286
2287 * mips-tdep.c (mips_register_to_value): Make static.
2288 (mips_value_to_register): Make static.
2289 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2290 * ia64-tdep.c (ia64_register_raw_size): Make static.
2291 (ia64_register_virtual_size): Make static.
2292 (ia64_register_byte): Make static.
2293 * i387-tdep.c: Include "i387-tdep.h".
2294 (print_387_control_word): Delete function.
2295 (print_387_status_word): Delete function.
2296 (print_387_status_bits): Delete function.
2297 (print_387_control_bits): Delete function.
2298 * Makefile.in (i387-tdep.o): Update dependencies.
2299 * rdi-share/host.h (Fail): Declare.
2300 * remote-rdi.c (Fail): Update to match declaration.
2301
2a9cda49
AC
23022003-06-14 Andrew Cagney <cagney@redhat.com>
2303
2304 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2305 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2306 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2307 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2308 * README: Delete reference to remote-array.
2309 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2310 (remote-array.o): Delete target.
2311 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2312 * remote-array.c: Delete file.
2313
ff2e87ac
AC
23142003-06-14 Andrew Cagney <cagney@redhat.com>
2315 Mark Kettenis <kettenis@gnu.org>
2316
2317 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2318 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2319 parameter with "frame".
2320 * gdbarch.h, gdbarch.c: Re-generate.
2321 * frame.h (put_frame_register): Declare.
2322 * frame.c (put_frame_register): New function.
2323 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2324 (legacy_register_to_value): Rewrite, use "frame" to get the
2325 register value.
2326 (legacy_value_to_register): Rewrite, use "frame" to find the
2327 register's location before storing.
2328 * arch-utils.h (legacy_convert_register_p): Update.
2329 (legacy_register_to_value, legacy_value_to_register): Update.
2330 * findvar.c (value_from_register): Rewrite, eliminate use of
2331 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2332 "frame" to REGISTER_TO_VALUE.
2333 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2334 lval_reg_frame_relative + lval_register branch of the switch. Do
2335 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2336 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2337 I386_EDI_REGNUM): New defines.
2338 (i386_next_regnum, i386_convert_register_p,
2339 i386_register_to_value, i386_value_to_register): New functions.
2340 (i386_register_convertible, i386_register_convert_to_virtual,
2341 i386_convert_to_raw): Remove functions.
2342 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2343 value_to_register instead of register_convertible,
2344 register_convert_to_virtual and register_convert_to_raw.
2345 * mips-tdep.c (mips_convert_register_p): New function.
2346 (mips_value_to_register): Replace mips_register_convert_from_type.
2347 (mips_register_to_value): Replace mips_register_convert_to_type.
2348 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2349 register_to_value.
2350 * alpha-tdep.c (alpha_convert_register_p): Update.
2351 (alpha_value_to_register): Update, store the register.
2352 (alpha_register_to_value): Update, fetch the register.
2353
98be1e77
TR
23542003-06-14 Theodore A. Roth <troth@openavr.org>
2355
2356 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2357 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2358 Don't set deprecated_call_dummy_words.
2359 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2360 Don't set remote_translate_xfer_address.
2361 (avr_io_reg_read_command): Remove commented out debug printf.
2362 Wrap a long line.
2363
57bc6122
TR
23642003-06-14 Theodore A. Roth <troth@openavr.org>
2365
2366 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2367 causes gdb to seg fault.
2368
eb01fc62
DJ
23692003-06-14 Daniel Jacobowitz <drow@mvista.com>
2370
2371 * sparc-nat.c (fetch_inferior_registers): Correct
2372 a reference to "registers".
2373
3b3e6bee
DJ
23742003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2375
2376 * Makefile.in (exc_request_U_h): Define
2377 (exc_request_S_h): Likewise.
2378 (msg_reply_S_h): Likewise.
2379 (msg_U_h): Likewise.
2380 (notify_S_h): Likewise.
2381 (process_reply_S_h): Likewise.
2382 (gnu-nat.o): Depend on gdb_obstack_h
2383 * gnu-nat.c: Include "gdb_obstack.h".
2384
b8de8283
AC
23852003-06-13 Andrew Cagney <cagney@redhat.com>
2386
2387 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2388 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2389
f3be58bc
AC
23902003-06-13 Andrew Cagney <cagney@redhat.com>
2391
2392 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2393 when deprecated REGISTER macros can be deleted.
2394 * gdbarch.h, gdbarch.c: Re-generate.
2395
4c0122c8
JB
23962003-06-13 Jim Blandy <jimb@redhat.com>
2397
2398 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2399 Linux entry point symbols for _dl_debug_state, too.
2400
3e210248
AC
24012003-06-13 Andrew Cagney <cagney@redhat.com>
2402
2403 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2404 available, do not use the FP register, and always save the TOS.
2405 * dummy-frame.c (dummy_frame_this_id): Do not assert
2406 SAVE_DUMMY_FRAME_TOS.
2407 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2408 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2409 (i386_push_dummy_call): Add 8 to the returned SP.
2410 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2411 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2412 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2413 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2414 (x86_64_push_dummy_call): Return "sp + 16".
2415 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2416 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2417 save_dummy_frame_tos.
2418
0b65af49
JB
24192003-06-13 Jim Blandy <jimb@redhat.com>
2420
2421 * frv-tdep.c (frv_use_struct_convention): Delete static
2422 declaration for function deleted in my change of 2003-06-12.
2423
4ea2465e
TR
24242003-06-13 Theodore A. Roth <troth@openavr.org>
2425
2426 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2427 (avr_pointer_to_address): Shift code addrs left 1 bit.
2428 (avr_convert_from_func_ptr_addr): Delete function since operation is
2429 better handled by avr_address_to_pointer and avr_pointer_to_address.
2430 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2431
1581182a
MK
24322003-06-13 Mark Kettenis <kettenis@gnu.org>
2433
2434 From Kelley Cook <kelleycook@wideopenwest.com>:
2435 * configure.host: Accept i[34567]86 variants.
2436 * configure.tgt: Likewise.
2437 * nlm/configure.in: Likewise.
2438 * nlm/configure: Regenerated.
2439
7aa1783e
RE
24402003-06-13 Richard Earnshaw <rearnsha@arm.com>
2441
2442 * arm-tdep.c (solib-svr4.h): Dont' include it.
2443 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2444 * arm-linux-tdep.c: ... here. Make static.
2445 (arm_linux_init_abi): Register it.
2446 (solib-svr4.h): Include it.
2447 * Makefile.in: Update dependencies.
2448 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2449 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2450
0261a0d0
CV
24512003-06-13 Corinna Vinschen <vinschen@redhat.com>
2452
2453 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2454 indicate registers used for return values.
2455 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2456 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2457 members.
2458 (h8300_init_extra_frame_info): Ditto.
2459 (h8300_frame_locals_address): Removed.
2460 (h8300_frame_args_address): Removed.
2461 (h8300_extract_return_value): Use new regcache structure. Only care
2462 for 16 bit CPUs.
2463 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2464 (h8300_store_return_value): Use new regcache structure. Only care
2465 for 16 bit CPUs.
2466 (h8300h_store_return_value): Same function for 32 bit CPUs.
2467 (h8300_store_struct_return): Removed.
2468 (h8300_extract_struct_value_address): Use new regcache structure.
2469 (h8300h_extract_struct_value_address): Removed.
2470 (h8300_push_dummy_code): New function.
2471 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2472 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2473 set_gdbarch_store_return_value architecture dependent.
2474 Call set_gdbarch_push_dummy_code and
2475 set_gdbarch_extract_struct_value_address.
2476 Remove calls to set_gdbarch_frame_args_address,
2477 set_gdbarch_frame_locals_address,
2478 set_gdbarch_deprecated_store_struct_return,
2479 set_gdbarch_deprecated_extract_return_value,
2480 set_gdbarch_deprecated_extract_struct_value_address,
2481 set_gdbarch_deprecated_call_dummy_words and
2482 set_gdbarch_deprecated_sizeof_call_dummy_words.
2483
055c394a
CV
24842003-06-13 Corinna Vinschen <vinschen@redhat.com>
2485
2486 * h8300-tdep.c (h8300_register_byte): Remove.
2487 (h8300h_register_byte): Remove.
2488 (h8300_register_virtual_type): Remove. Substitute by...
2489 (h8300_register_type): New function.
2490 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2491 (h8300h_extract_struct_value_address): Ditto.
2492 (h8300_gdbarch_init): Drop calls to
2493 set_gdbarch_deprecated_register_byte and
2494 set_gdbarch_deprecated_register_virtual_type.
2495 Add call to set_gdbarch_register_type.
2496
9c04cab7
AC
24972003-06-13 Andrew Cagney <cagney@redhat.com>
2498
2499 * gdbarch.sh: Update comments on registers.
2500 (deprecated_register_byte): Rename register_byte.
2501 (deprecated_register_raw_size): Rename register_raw_size.
2502 (deprecated_register_virtual_size): Rename register_virtual_size.
2503 (deprecated_register_virtual_type): Rename register_virtual_type.
2504 * gdbarch.h, gdbarch.c: Re-generate.
2505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2506 * vax-tdep.c (vax_gdbarch_init): Update.
2507 * v850-tdep.c (v850_gdbarch_init): Update.
2508 * sparc-tdep.c (sparc_gdbarch_init): Update.
2509 * sh-tdep.c (sh_gdbarch_init): Update.
2510 * s390-tdep.c (s390_gdbarch_init): Update.
2511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2512 * ns32k-tdep.c: Update.
2513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2514 * mips-tdep.c (mips_gdbarch_init): Update.
2515 * mcore-tdep.c (mcore_gdbarch_init): Update.
2516 * m68k-tdep.c (m68k_gdbarch_init): Update.
2517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2518 * ia64-tdep.c (ia64_gdbarch_init): Update.
2519 * hppa-tdep.c (hppa_gdbarch_init): Update.
2520 * h8300-tdep.c (h8300_gdbarch_init): Update.
2521 * frv-tdep.c (frv_gdbarch_init): Update.
2522 * cris-tdep.c (cris_gdbarch_init): Update.
2523 * avr-tdep.c (avr_gdbarch_init): Update.
2524 * alpha-tdep.c (alpha_gdbarch_init): Update.
2525 * arm-tdep.c (arm_gdbarch_init): Update.
2526
b060cbea
AC
25272003-06-13 Andrew Cagney <cagney@redhat.com>
2528
2529 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2530 mips_o32_use_struct_convention with always_use_struct_convention.
2531
0fc9922a
DC
25322003-06-12 David Carlton <carlton@kealia.com>
2533
2534 * cp-namespace.c (cp_set_block_scope): Comment out
2535 processing_has_namespace_info branch.
2536
1fd35568
JB
25372003-06-12 Jim Blandy <jimb@redhat.com>
2538
f470a70a
JB
2539 Recognize and skip 64-bit PowerPC Linux linkage functions.
2540 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2541 insn_pattern, insns_match_pattern, d_field, ds_field): New
2542 functions, macros, and types for working with PPC instructions.
2543 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2544 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2545 ppc64_skip_trampoline_code): New functions, variables, and macros
2546 for recognizing and skipping linkage functions.
2547 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2548 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2549
49ff75ad
JB
2550 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2551 register offsets for both the 32- and 64-bit interfaces.
2552
bd918c83
JB
2553 Actually finish the job started by my change of 2003-05-29.
2554 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2555 other #definition of this.
2556 (ppc_linux_skip_trampoline_code): Remove declaration.
2557 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2558 static.
2559 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2560 method for GDBARCH.
2561
2562 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2563 'long' on ppc64-*-linux*.
2564
f8c59253
JB
2565 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2566 isn't #defined, assume the register doesn't exist: act as if
2567 tdep->ppc_mq_regnum were -1.
2568
8fbb30b1
JB
2569 * configure.host, configure.tgt: Add entries for
2570 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2571 powerpc/linux.mt.
2572 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2573 New files.
2574
1fd35568
JB
2575 * arch-utils.c (always_use_struct_convention): New function.
2576 * arch-utils.h (always_use_struct_convention): New prototype.
2577 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2578 (alpha_gdbarch_init): Register always_use_struct_convention,
2579 instead of alpha_use_struct_convention.
2580 * cris-tdep.c (cris_use_struct_convention): Delete.
2581 (cris_gdbarch_init): Register always_use_struct_convention,
2582 instead of cris_use_struct_convention.
2583 * frv-tdep.c (frv_use_struct_convention): Delete.
2584 (frv_gdbarch_init): Register always_use_struct_convention,
2585 instead of frv_use_struct_convention.
2586 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2587 (h8300_gdbarch_init): Register always_use_struct_convention,
2588 instead of h8300_use_struct_convention.
e3305dd9 2589 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2590 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2591 instead of mips_o32_use_struct_convention.
2592
e14e6e9c
AC
25932003-06-12 Andrew Cagney <cagney@redhat.com>
2594
2595 * wince.c: Include "mips-tdep.h".
2596 * mips-tdep.h (mips_next_pc): Declare.
2597 * mcore-tdep.c: Make more local functions static.
2598 * Makefile.in (wince.o): Update dependencies.
2599
2335f48e
DC
26002003-06-12 David Carlton <carlton@kealia.com>
2601
2602 * symtab.c (lookup_symbol_aux_minsyms): Replace
2603 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2604 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2605 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2606 SYMBOL_NATURAL_NAME.
2607
f70a7d61
AS
26082003-06-12 Andreas Schwab <schwab@suse.de>
2609
2610 * Makefile.in (tuiDisassem.o): Update dependencies.
2611
b6429628
DC
26122003-06-12 David Carlton <carlton@bactrian.org>
2613
2614 * symtab.h: Delete declaration of make_symbol_overload_list.
2615 Add declaration of lookup_partial_symbol.
2616 * symtab.c (remove_params): Move to cp-support.c.
2617 (overload_list_add_symbol, make_symbol_overload_list)
2618 (sym_return_val_size, sym_return_val_index): Ditto.
2619 (lookup_partial_symbol): Make extern.
2620 * cp-support.h: Add declaration of make_symbol_overload_list.
2621 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2622 symtab.h, and block.h.
2623 (remove_params): Move here from symtab.c.
2624 (overload_list_add_symbol, make_symbol_overload_list)
2625 (sym_return_val_size, sym_return_val_index): Ditto.
2626 * valops.c: Include cp-support.h.
2627 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2628 frame_h, and block_h.
2629 (valops.o): Depend on cp_support_h.
2630
084edea5
CV
26312003-06-12 Corinna Vinschen <vinschen@redhat.com>
2632
2633 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2634 substitute by NUM_REGS throughout.
2635 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2636 (h8300s_register_name): New function for H8S registers.
2637 (h8300sx_register_name): Ditto for H8SX registers.
2638 (h8300_print_register): Revise register printing, avoid depending
2639 on 32 bit long.
0261a0d0 2640 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2641 (h8300h_register_byte): New function for any other architecture.
2642 (h8300_register_raw_size): Remove.
2643 (h8300_register_virtual_type): Revise to return actually useful
2644 type.
2645 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2646 (h8300h_extract_struct_value_address): New function for any other
2647 architecture.
2648 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2649 set_gdbarch_register_name, set_gdbarch_register_byte,
2650 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2651 Remove calls to set_gdbarch_deprecated_register_size,
2652 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2653 set_gdbarch_deprecated_max_register_raw_size,
2654 set_gdbarch_register_virtual_size and
2655 set_gdbarch_deprecated_max_register_virtual_size entirely.
2656 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2657 set_gdbarch_long_double_bit.
2658
06194148
JJ
26592003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2660
8ffd9b1b
AJ
2661 * doublest.c (convert_doublest_to_floatformat): When dealing
2662 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2663 processing a full 32 bits of mantissa.
2664
de4f826b
DC
26652003-06-11 David Carlton <carlton@bactrian.org>
2666
2667 * dictionary.h: New.
2668 * dictionary.c: New.
2669 * block.h: Add opaque declaration for struct dictionary.
2670 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2671 'sym' members.
2672 (BLOCK_DICT): New macro.
2673 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2674 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2675 BLOCK_SHOULD_SORT.
2676 (ALL_BLOCK_SYMBOLS): Update definition.
2677 * Makefile.in (SFILES): Add dictionary.c.
2678 (dictionary_h): New.
2679 (COMMON_OBS): Add dictionary.o.
2680 (dictionary.o): New.
2681 (ada-lang.o): Depend on dictionary_h.
2682 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2683 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2684 (mi-cmd-stack.o): Ditto.
2685 (gdbtk-cmds.o): Update dependencies.
2686 (gdbtk-stack.o): Ditto.
2687 * ada-lang.c: Include dictionary.h.
2688 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2689 (fill_in_ada_prototype, debug_print_block): Ditto.
2690 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2691 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2692 'is_sorted'.
2693 * mdebugread.c: Include dictionary.h.
2694 (struct parse_stack): Delete 'maxsyms' member.
2695 (parse_symbol): Update calls to new_block. Delete calls to
2696 shrink_block. Use dictionary methods.
2697 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2698 Update calls to new_symtab. Don't maintain maxsyms data.
2699 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2700 (add_symbol): Just call dict_add_symbol.
2701 (new_symtab): Delete 'maxsyms' argument.
2702 (new_symtab): Update calls to new_block.
2703 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2704 (shrink_block): Delete function.
2705 (fixup_sigtramp): Update call to new_block. Add symbol via
2706 dict_add_symbol.
2707 * jv-lang.c: Include dictionary.h.
2708 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2709 appropriately. Set class_symtab->free_func. Make sure the
2710 blockvector is big enough to hold two blocks.
2711 (add_class_symtab_symbol): Use dictionary methods.
2712 (free_class_block): New function.
2713 (type_from_class): Replace explicit iteration by
2714 ALL_BLOCK_SYMBOLS.
2715 * symtab.h (struct symtab): Replace 'free_ptr' method by
2716 'free_func'.
2717 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2718 sort_symtab_syms.
2719 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2720 sort_symtab_syms.
2721 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2722 Include dictionary.h.
2723 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2724 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2725 sort_symtab_syms.
2726 * objfiles.c: Include dictionary.h.
2727 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2728 * buildsym.c: Include dictionary.h.
2729 (finish_block): Use dictionary methods.
2730 (end_symtab): Set free_func to NULL, not free_ptr.
2731 * tracepoint.c: Include dictionary.h.
2732 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2733 (scope_info): Ditto.
2734 * stack.c: Include dictionary.h.
2735 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2736 (print_block_frame_labels, print_frame_arg_vars)
2737 (print_frame_args): Ditto.
2738 * symmisc.c (free_symtab_block): Use dictionary methods.
2739 (dump_symtab): Ditto.
2740 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2741 Include dictionary.h.
2742 * symfile.h: Delete declarations of sort_block_syms,
2743 sort_symtab_syms.
2744 * symfile.c (sort_block_syms): Delete.
2745 (sort_symtab_syms): Delete.
2746 * symtab.c: Include dictionary.h.
2747 (lookup_block_symbol): Use dictionary iterators.
2748 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2749 (search_symbols, make_symbol_completion_list): Ditto.
2750 (make_symbol_overload_list): Ditto.
2751 * valops.c (value_of_local): Use dict_empty.
2752 Include dictionary.h.
2753
a31f978c
JB
27542003-06-11 J. Brobecker <brobecker@gnat.com>
2755
2756 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2757
526e70c0
DC
27582003-06-11 David Carlton <carlton@bactrian.org>
2759
2760 * block.h (BLOCK_SHOULD_SORT): Delete.
2761 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2762 blocks.
2763 * ada-lang.c (ada_add_block_symbols): Ditto.
2764 * symfile.c (sort_block_syms): Delete.
2765 (sort_symtab_syms): Ditto.
2766 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2767 declarations.
2768 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2769 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2770 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2771 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2772 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2773 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2774 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2775
33c08150
JJ
27762003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2777
8ffd9b1b 2778 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2779 bits to 128.
2780
781a750d
AC
27812003-06-11 Andrew Cagney <cagney@redhat.com>
2782
2783 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2784 REGISTER_CONVERTIBLE.
2785 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2786 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2787 * gdbarch.h, gdbarch.c: Re-generate.
2788 * arch-utils.h (deprecated_register_convertible_not): Rename
2789 generic_register_convertible_not.
2790 * arch-utils.c (deprecated_register_convertible_not): Rename
2791 generic_register_convertible.
2792 (legacy_convert_register_p, legacy_register_to_value): Update.
2793 * sh-tdep.c (sh64_push_arguments): Update.
2794 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2795 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2796 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2797 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2798 * arch-utils.c (legacy_value_to_register): Update.
2799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2800 (rs6000_register_convert_to_raw): Make parameter "from" const.
2801 * mips-tdep.c (mips_gdbarch_init): Update.
2802 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2803 * infcmd.c (default_print_registers_info): Update.
2804 * ia64-tdep.c (ia64_gdbarch_init): Update.
2805 (ia64_register_convert_to_raw): Make parameter "from" const.
2806 * i386-tdep.c (i386_gdbarch_init): Update.
2807 (i386_register_convert_to_raw): Update.
2808
cd90e54f
AC
28092003-06-11 Andrew Cagney <cagney@redhat.com>
2810
2811 * remote-fileio.c: Include "remote-fileio.h".
2812 * Makefile.in (remote-fileio.o): Update dependencies.
2813 (remote_fileio_h): Fix typo.
2814
a78f21af
AC
28152003-06-11 Andrew Cagney <cagney@redhat.com>
2816
2817 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2818 (xstormy16_save_dummy_frame_tos): Make static.
2819 (_initialize_xstormy16_tdep): Add declaration.
2820 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2821 * v850-tdep.c: Make local functions static.
2822 (_initialize_v850_tdep): Add declaration.
2823 * sparc-tdep.c: Make local functions static.
2824 (_initialize_sparc_tdep): Add declaration.
2825 * sh-tdep.c: Make local functions static.
2826 (_initialize_sh_tdep): Add declaration.
2827 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2828 * s390-tdep.c: Make local functions static.
2829 (_initialize_s390_tdep): Add declaration.
2830 * dbxread.c (find_stab_function_addr): Make static.
2831 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2832 * ocd.c (_initialize_remote_ocd): Add declaration.
2833 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2834 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2835 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2836 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2837 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2838 * remote-array.c (_initialize_array): Add declaration.
2839 (_initialize_remote_monitors): Add declaration.
2840 * remote-mips.c: Make local functions static.
2841 (_initialize_remote_mips): Add declaration.
2842 * mcore-tdep.c: Make all local functions static.
2843 (_initialize_mcore_tdep): Add declaration.
2844 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2845 * abug-rom.c (_initialize_abug_rom): Add declaration.
2846 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2847 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2848 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2849 * remote-est.c (_initialize_est): Add declaration.
2850 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2851 (m68hc11_call_dummy_address): Make static.
2852 * ia64-tdep.c: Make local functions static.
2853 (_initialize_ia64_tdep): Add declaration.
2854 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2855 * monitor.c (monitor_wait_filter): Make static.
2856 (_initialize_remote_monitors): Add declaration.
2857 * remote-hms.c (_initialize_remote_hms): Add declaration.
2858 * remote-e7000.c (fetch_regs_from_dump): Make static.
2859 (expect_n): Make static.
2860 (_initialize_remote_e7000): Add declaration.
2861 * ser-e7kpc.c: Always include "defs.h".
2862 (_initialize_ser_e7000pc): Add declaration.
2863 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2864 * cris-tdep.c: Make all but one function static.
2865 (_initialize_cris_tdep): Add declaration.
2866 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2867 * solib.c (update_solib_list): Make static.
2868 (_initialize_solib): Add declaration.
2869 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2870 (_initialize_avr_tdep): Add declaration.
2871 * remote-rdi.c (voiddummy): Make static.
2872 (_initialize_remote_rdi): Add declaration.
2873 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2874 * remote-rdp.c (send_rdp): Make static.
2875 (_initialize_remote_rdp): Add declaration.
2876 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2877
cbcdb1f5
CV
28782003-06-11 Corinna Vinschen <vinschen@redhat.com>
2879
2880 * remote-fileio.c: Make ari happy.
2881
a191ea8d
JB
28822003-06-10 J. Brobecker <brobecker@gnat.com>
2883
2884 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2885 fetching the trailing bytes of the buffer we are about to write.
2886
0ef75e11
AC
28872003-06-10 Andrew Cagney <cagney@redhat.com>
2888
2889 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2890 * Makefile.in (remote-fileio.o): Update dependencies.
2891 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2892 include <setjmp.h>, or <sys/types.h> conditional on USG.
2893 (remote_fio_jmp_buf): Delete global variable.
2894
449092f6 28952003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 2896 Martin M. Hunt <hunt@redhat.com>
449092f6 2897
559fa028
AC
2898 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2899 (SFILES): Add remote-fileio.c.
2900 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2901 dependencies for building remote.o.
449092f6
CV
2902 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2903 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 2904 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
2905 static storage class.
2906 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2907 'F' packet.
2908 (_initialize_remote): Call initialize_remote_fileio().
2909 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
2910 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2911 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2912 (captured_main): Initialize new ui_files.
2913 * ui-file.c: Add read and fgets input functions.
2914 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2915 (null_file_read): New function.
2916 (ui_file_read): New function.
2917 (set_ui_file_read): New function.
2918 (stdio_file_read): New function.
2919 * ui-file.h: New type ui_file_read_ftype.
2920 (set_ui_file_read): Declare.
2921 (ui_file_read): Declare.
2922
248de703
AC
29232003-06-09 Andrew Cagney <cagney@redhat.com>
2924
2925 * frame.h (deprecated_unwind_get_saved_register): Rename
2926 generic_unwind_get_saved_register, update comments.
2927 * mips-tdep.c (mips_get_saved_register): Update.
2928 * frame.c (deprecated_unwind_get_saved_register): Update.
2929
0ed8aa57
AC
29302003-06-09 Andrew Cagney <cagney@redhat.com>
2931
2932 * vax-tdep.c (vax_frame_locals_address): Delete function.
2933 (vax_gdbarch_init): Do not set frame_locals_address.
2934 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2935 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2936 * s390-tdep.c (s390_frame_args_address): Delete function.
2937 (s390_gdbarch_init): Do not set frame_args_address or
2938 frame_locals_address.
2939 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2940 (ns32k_gdbarch_init): Do not set frame_locals_address.
2941 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2942 (hppa_frame_locals_address): Delete function.
2943 (hppa_gdbarch_init): Do not set frame_args_address, or
2944 frame_locals_address.
2945 * arm-tdep.c (arm_frame_args_address): Delete.
2946 (arm_frame_locals_address): Delete.
2947 (arm_gdbarch_init): Do not set frame_args_address, or
2948 frame_locals_address.
2949
983a287a
AC
29502003-06-09 Andrew Cagney <cagney@redhat.com>
2951
2952 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2953 * gdbarch.h, gdbarch.c: Re-generate.
2954 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2955 * arch-utils.c (frame_num_args_unknown): Delete function.
2956 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2957 (frame_info): Use FRAME_NUM_ARGS_P.
2958 * arm-tdep.c (arm_frame_num_args): Delete function.
2959 (arm_gdbarch_init): Do not set frame_num_args.
2960 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2961 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2962 (hppa_gdbarch_init): Do not set frame_num_args.
2963 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2965 frame_num_args to default frame_num_args_unknown.
2966 * v850-tdep.c (v850_gdbarch_init): Ditto.
2967 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2968 * sh-tdep.c (sh_gdbarch_init): Ditto.
2969 * s390-tdep.c (s390_gdbarch_init): Ditto.
2970 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2971 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2972 * mips-tdep.c (mips_gdbarch_init): Ditto.
2973 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2974 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2976 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2977 * i386-tdep.c (i386_gdbarch_init): Ditto.
2978 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2979 * frv-tdep.c (frv_gdbarch_init): Ditto.
2980 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2981 * cris-tdep.c (cris_gdbarch_init): Ditto.
2982 * avr-tdep.c (avr_gdbarch_init): Ditto.
2983 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2984
8d3b0994
AC
29852003-06-09 Andrew Cagney <cagney@redhat.com>
2986
2987 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2988 (print_frame_args): Moved to "stack.c".
2989 * stack.c: Include "gdb_assert.h".
2990 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2991 (print_frame_args): Moved from "printcmd.c".
2992 * frame.h (print_frame_args): Delete declaration.
2993 * Makefile.in (stack.o): Update dependencies.
2994
25e3a86b
AC
29952003-06-08 Andrew Cagney <cagney@redhat.com>
2996
2997 * frame.c (get_prev_frame): Remove reference to
2998 frame_args_address_correct in comments.
2999 * frame-base.c (default_frame_args_address): Delete code
3000 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3001 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3002 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3003 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3004 (vax_frame_args_address_correct): Delete declaration.
3005
a9e5fdc2
AC
30062003-06-08 Andrew Cagney <cagney@redhat.com>
3007
3008 * gdbarch.sh (UNWIND_SP): Add.
3009 * gdbarch.h, gdbarch.c: Re-generate.
3010 * frame.c (frame_sp_unwind): New function.
3011 (get_frame_sp): New function.
3012 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3013 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3014 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3015 value.
3016 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3017 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3018
8983bd83
AC
30192003-06-08 Andrew Cagney <cagney@redhat.com>
3020
7fec2c59
AC
3021 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3022 REMOTE_BREAKPOINT.
3023 * remote.c: Update.
3024 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3025 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3026 * config/m68k/tm-sun3.h: Update.
3027 * config/m68k/tm-m68klynx.h: Update.
3028 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3029
8983bd83
AC
3030 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3031 trad_frame". Update comments.
3032 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3033 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3034 (trad_frame_register_value, trad_frame_prev_register): Update.
3035
b9362cc7
AC
30362003-06-08 Andrew Cagney <cagney@redhat.com>
3037
3038 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3039 from GCC's acinclude.m4.
3040 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3041 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3042 * main.c (error_init): Delete declaration.
3043 * defs.h (error_init): Declare.
3044 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3045 (rs6000_convert_from_func_ptr_addr): Make static.
3046 (_initialize_rs6000_tdep): Add declaration.
3047 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3048 (show_commands, set_verbose, show_history): Delete declaration.
3049 * top.h (set_verbose): Add declaration.
3050 (show_history, set_history, show_commands): Add declaration.
3051 (do_restore_instream_cleanup): Add declaration.
3052 * objc-lang.c (specialcmp): Make static.
3053 (print_object_command): Make static.
3054 (find_objc_msgsend): Make static.
3055 (find_objc_msgcall_submethod_helper): Make static.
3056 (find_objc_msgcall_submethod): Make static.
3057 (_initialize_objc_language): Add declaration.
3058 (find_implementation_from_class): Make static.
3059 (find_implementation): Make static.
3060 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3061 * objc-lang.h (lookup_struct_typedef): Add declaration.
3062 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3063 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3064 (do_restore_user_call_depth): Make static.
3065 (do_restore_instream_cleanup): Delete declaration.
3066 (dont_repeat): Delete declaration.
3067 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3068 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3069 * reggroups.c (_initialize_reggroup): Add declaration.
3070 * cp-support.c (_initialize_cp_support): Add declaration.
3071 * cp-abi.c (_initialize_cp_abi): Add declaration.
3072 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3073 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3074 (_initialize_gnu_v3_abi): Add declaration.
3075 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3076 (_initialize_gnu_v2_abi): Add declaration.
3077 * frame-base.c (_initialize_frame_base): Add declaration.
3078 * doublest.c (floatformat_from_length): Make static.
3079 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3080 * frame.c (create_sentinel_frame): Make static.
3081 (_initialize_frame): Add declaration.
3082 * top.c (do_catch_errors): Make static.
3083 (gdb_rl_operate_and_get_next_completion): Make static.
3084 * typeprint.c: Include "typeprint.h".
3085 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3086 (sentinel_frame_this_id): Make static.
3087 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3088 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3089 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3090 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3091 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3092 * maint.c (maintenance_print_architecture): Make static.
3093 * signals/signals.c (_initialize_signals): Add declaration.
3094 * std-regs.c (_initialize_frame_reg): Add declaration.
3095 * jv-exp.y (push_variable): ISO C definition.
3096 (push_qualified_expression_name): Ditto.
3097 * memattr.c (_initialize_mem): Add declaration.
3098 * remote.c (remote_check_watch_resources): Make static.
3099 (remote_stopped_by_watchpoint): Make static.
3100 (remote_stopped_data_address): Make static.
3101 * d10v-tdep.c (nr_dmap_regs): Make static.
3102 (a0_regnum): Make static.
3103 (d10v_frame_unwind_cache): Make static.
3104 (d10v_frame_p): Make static.
3105 * osabi.c (show_osabi): Make static.
3106 (_initialize_gdb_osabi): Add extern declaration.
3107 * gdbtypes.c (make_qualified_type): Make static.
3108 (safe_parse_type): Make static.
3109 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3110 * macrotab.c (macro_bcache_free): Make static.
3111 * interps.c (interp_set_quiet): Make static.
3112 (interpreter_exec_cmd): Make static.
3113 * stack.h (select_frame_command): New file.
3114 * stack.c: Include "stack.h".
3115 (select_frame_command_wrapper): Delete function.
3116 (select_frame_command): Make global.
3117 * infcall.c: Include "infcall.h".
3118 * linespec.c: Include "linespec.h".
3119 * symfile.c (sections_overlap): Make static.
3120 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3121 * charset.c (_initialize_charset): Add missing prototype.
3122 * regcache.c (init_legacy_regcache_descr): Make static.
3123 (do_regcache_xfree): Make static.
3124 (regcache_xfer_part): Make static.
3125 (_initialize_regcache): Add missing prototype.
3126 * breakpoint.c (parse_breakpoint_sals): Make static.
3127 (breakpoint_sals_to_pc): Make static.
3128 * interps.h (clear_interpreter_hooks): ISO C declaration.
3129 * Makefile.in (stack_h): Define.
3130 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3131 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3132
a0f267c7
AC
31332003-06-08 Andrew Cagney <cagney@redhat.com>
3134
3135 * Makefile.in (d10v-tdep.o): Update dependencies.
3136 (SFILES): Add trad-frame.c.
3137 (trad_frame_h): Define.
3138 (COMMON_OBS): Add trad-frame.o.
3139 (trad-frame.o): Specify dependencies.
3140 * d10v-tdep.c: Include "trad-frame.h".
3141 (saved_regs_unwinder): Delete function.
3142 (d10v_frame_prev_register): Use trad_frame_prev_register.
3143 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3144 trad_frame", delete "regs" and "prev_sp".
3145 (prologue_find_regs): Use trad-frame.
3146 * trad-frame.h, trad-frame.c: New files.
3147
4538b4f4
MK
31482003-06-08 Mark Kettenis <kettenis@gnu.org>
3149
3150 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3151
a0273b2f
AF
31522003-06-07 Adam Fedor <fedor@gnu.org>
3153
3154 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3155 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3156 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3157 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3158 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3159 Use it.
3160
3a6c3343
AC
31612003-06-07 Andrew Cagney <cagney@redhat.com>
3162
3163 * symfile.h: Re-indent, clean up comments.
3164
b46e02f6
AC
31652003-06-07 Andrew Cagney <cagney@redhat.com>
3166
3167 * inferior.h (deprecated_write_sp): Replace
3168 generic_target_write_sp.
3169 * regcache.c (deprecated_write_sp): Replace
3170 generic_target_write_sp.
3171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3172 * vax-tdep.c (vax_gdbarch_init): Update.
3173 * v850-tdep.c (v850_gdbarch_init): Update.
3174 * sparc-tdep.c (sparc_gdbarch_init): Update.
3175 * sh-tdep.c (sh_gdbarch_init): Update.
3176 * s390-tdep.c (s390_gdbarch_init): Update.
3177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3178 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3179 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3180 * mcore-tdep.c (mcore_gdbarch_init): Update.
3181 * m68k-tdep.c (m68k_gdbarch_init): Update.
3182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3183 * ia64-tdep.c (ia64_gdbarch_init): Update.
3184 * h8300-tdep.c (h8300_gdbarch_init): Update.
3185 * frv-tdep.c (frv_gdbarch_init): Update.
3186 * cris-tdep.c (cris_gdbarch_init): Update.
3187 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3188
a42e117c
AC
31892003-06-07 Andrew Cagney <cagney@redhat.com>
3190
3191 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3192 Assert that PC_REGNUM is valid.
3193 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3194
bd1ce8ba
AC
31952003-06-07 Andrew Cagney <cagney@redhat.com>
3196
3197 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3198 * gdbarch.h, gdbarch.c: Regenerate.
3199 * mn10300-tdep.c: Include "gdb_assert.h".
3200 (mn10300_read_fp): New function.
3201 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3202 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3203 * ia64-tdep.c: Include "gdb_assert.h".
3204 (ia64_read_fp): New function.
3205 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3206 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3207 * regcache.c (generic_target_read_sp): Delete function.
3208 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3209 * inferior.h (generic_target_read_sp): Delete declaration.
3210 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3211 generic_target_read_sp.
3212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3213 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3214 * sh-tdep.c (sh_gdbarch_init): Ditto.
3215 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3216 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3217
ec5cbaec
AC
32182003-06-07 Andrew Cagney <cagney@redhat.com>
3219
3220 * gdbarch.sh: Comment each field of startup_gdbarch.
3221 * gdbarch.h, gdbarch.c: Re-generate.
3222
cde9ea48
AC
32232003-06-07 Andrew Cagney <cagney@redhat.com>
3224
3225 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3226 * gdbarch.h, gdbarch.c: Re-generate.
3227 * regcache.c: Update comments on read_pc et.al.
3228 (generic_target_read_pc): Delete function.
3229 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3230 * inferior.h (generic_target_read_pc): Delete declaration.
3231 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3232 generic_target_read_pc.
3233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3234 * sh-tdep.c (sh_gdbarch_init): Ditto.
3235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3237
9a90a780
AC
32382003-06-07 Andrew Cagney <cagney@redhat.com>
3239
3240 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3241 "index" with "special_local_sect". Use strcmp instead of STREQ.
3242 Append period to coments.
3243
a39a16c4
MM
32442003-06-06 Mark Mitchell <mark@codesourcery.com>
3245
3246 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3247 (elfstab_offset_sections): Likewise.
3248 * gdb-stabs.h (stab_section_info): Likewise.
3249 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3250 * objfiles.c (objfile_relocate): Likewise.
3251 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3252 * remote.c (get_offsets): Likewise.
3253 (remote_cisco_objfile_relocate): Likewise.
3254 * somread.c (som_symfile_offsets): Likewise.
3255 * symfile.c (alloc_section_addr_info): New function.
3256 (build_section_addr_info_from_section_tab): Use it.
3257 (free_section_addr_info): Adjust.
3258 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3259 (syms_from_objfile): Allocate local_addr dynamically.
3260 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3261 dynamically.
3262 (add_symbol_file_command): Allocate sect_opts dynamically.
3263 (reread_symbols): Avoid use of SECT_OFF_MAX.
3264 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3265 (alloc_section_addr_info): Declare it.
3266 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3267 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3268 dynamically.
3269 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3270
20c6c2f8
AC
32712003-06-06 Andrew Cagney <cagney@redhat.com>
3272
3273 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3274 (d10v_frame_unwind_cache): Do not set "return_pc".
3275
884a26c8
MS
32762003-06-06 Michael Snyder <msnyder@redhat.com>
3277
3278 * h8300-tdep.c: Make tidy (long lines).
3279
088ce440
ML
32802003-06-06 Michal Ludvig <mludvig@suse.cz>
3281
8ffd9b1b 3282 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3283 to regcache_collect().
3284
7d773d96
JB
32852003-06-05 J. Brobecker <brobecker@gnat.com>
3286
3287 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3288 pc_in_sigtramp multiarch method.
3289 (hppa_hpux_som_init_abi): Use it.
3290 (hppa_hpux_elf_init_abi): Likewise.
3291 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3292 macro has been multiarched.
3293 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3294 macro here, as hppa64 isn't multiarched yet.
3295
1df6926e
AC
32962003-06-05 Andrew Cagney <cagney@redhat.com>
3297
3298 * Makefile.in (value_h): Add $(frame_h).
3299 * value.h: Include "frame.h".
3300 (struct value): Replace "frame_addr" with "frame_id".
3301 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3302 * values.c (allocate_value): Use VALUE_FRAME_ID.
3303 (value_copy): Use VALUE_FRAME_ID.
3304 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3305 * valops.c (value_assign): Update. Use frame_find_by_id.
3306
6b53acc6
ML
33072003-06-05 Michal Ludvig <mludvig@suse.cz>
3308
3309 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3310 in each pass.
3311
4d9850d3
JJ
33122003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3313
3314 * thread-db.c (check_event): For create/death event breakpoints,
3315 loop through all messages to ensure that we read the message
3316 corresponding to the breakpoint we are at.
3317
8efca6ba
MS
33182003-06-04 Michael Snyder <msnyder@redhat.com>
3319
3320 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3321
0912c7f2
MK
33222003-06-04 Mark Kettenis <kettenis@gnu.org>
3323
3324 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3325 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3326 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3327 when handling .eh_frame sections.
3328
4e370325
JB
33292003-06-04 J. Brobecker <brobecker@gnat.com>
3330
3331 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3332 prepare_to_proceed procedure instead of the hppa-specific one.
3333 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3334
b757528f 33352003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3336
b757528f
JJ
3337 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3338 * config.in: Regenerated.
3339 * configure.in: Add test for syscall function and check for
3340 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3341 * configure: Regenerated.
3342 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3343 <sys/syscall.h>.
3344 (kill_lwp): New function that uses tkill syscall or
3345 uses kill, depending on whether threading model is nptl or not.
3346 All callers of kill() changed to use kill_lwp().
3347 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3348 see if all threads have already exited in the nptl model.
3349 (stop_and_resume_callback): New callback function used by the
3350 lin_lwp_wait thread exit handling code.
3351 (stop_wait_callback): Check for threads already having exited and
3352 delete such threads fromt the lwp list when discovered.
3353 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3354
b757528f
JJ
3355 Roland McGrath <roland@redhat.com>
3356 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3357 nptl libthread_db.
3358
087779b1
RH
33592003-06-03 Richard Henderson <rth@redhat.com>
3360
b21fd293
RH
3361 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3362 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3363 (alpha_sigtramp_frame_prev_register): Likewise.
3364 (alpha_heuristic_frame_prev_register): Likewise.
3365 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3366
8ffd9b1b 3367 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3368 alpha-specific register id names.
3369 (alpha_mdebug_frame_unwind_cache): Likewise.
3370 (alpha_mdebug_frame_prev_register): Likewise.
3371
baa490c4
RH
33722003-06-03 Richard Henderson <rth@redhat.com>
3373
3374 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3375 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3376 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3377 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3378 unwind routines.
3379 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3380 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3381 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3382
3383 * alpha-linux-tdep.c: Remove unnecessary includes.
3384 * Makefile.in (alpha-linux-tdep.o): Update.
3385
33862003-06-03 Richard Henderson <rth@redhat.com>
3387
3388 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3389 (alphabsd_fill_fpreg): Likewise.
3390
f534e522
JB
33912003-06-03 J. Brobecker <brobecker@gnat.com>
3392
3393 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3394 references to struct frame_info fields by calls to the equivalent
3395 accessors. Necessary now that frame_info is opaque.
3396
4035536b
JB
33972003-06-03 J. Brobecker <brobecker@gnat.com>
3398
3399 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3400 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3401 structure, field no longer exists.
3402
0bd79c5c
JB
34032003-06-03 J. Brobecker <brobecker@gnat.com>
3404
3405 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3406 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3407
37bb6d9f
JB
34082003-06-03 J. Brobecker <brobecker@gnat.com>
3409
3410 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3411 references to struct frame_info fields by calls to the equivalent
3412 accessors. Necessary now that frame_info is opaque.
3413
852ee05c
JB
34142003-06-03 J. Brobecker <brobecker@gnat.com>
3415
3416 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3417 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3418 structure, field no longer exists.
3419
7d58c67d
TR
34202003-06-03 Theodore A. Roth <troth@openavr.org>
3421
8ffd9b1b 3422 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3423 accumulation of the size of all registers instead of blindly using
3424 DEPRECATED_REGISTER_BYTES.
3425
0a48e7e8
MS
34262003-06-03 Michael Snyder <msnyder@redhat.com>
3427
3428 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3429 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3430 for h8300sx.
3431
9798ab0d
JB
34322003-06-03 J. Brobecker <brobecker@gnat.com>
3433
3434 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3435 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3436
00b037e2
AC
34372003-06-03 Andrew Cagney <cagney@redhat.com>
3438
3439 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3440 (sparc_convert_to_raw): Delete function.
3441 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3442 register_convert_to_virtual.
3443
043b2f77
JJ
34442003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3445
3446 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3447 layer if not dealing with a statically-linked threaded program.
3448
f43caff8
KW
34492003-06-03 Kris Warkentin <kewarken@qnx.com>
3450
3451 * solib.c (solib_open): Update comment to reflect actual search order.
3452
ae1e7417
AC
34532003-06-03 Andrew Cagney <cagney@redhat.com>
3454
3455 * frame.c (get_frame_memory_signed): New function.
3456 (get_frame_memory, get_frame_memory_unsigned): New function.
3457 (get_frame_arch): New function.
3458 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3459 (get_frame_memory, get_frame_unsigned_memory): Declare.
3460 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3461 get_frame_memory_unsigned and get_frame_arch.
3462 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3463
cb123844
RG
34642003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3465
3466 * MAINTAINERS (write after approval): Add myself.
3467
1bb792e9
JB
34682003-06-03 Jim Blandy <jimb@redhat.com>
3469
3470 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3471 elements of gregset_t are 64 bits each, but access registers
3472 are still 32 bits, so they're packed two per gregset_t
3473 element. Unpack/pack them properly.
3474
aee8d8ba
DC
34752003-06-02 David Carlton <carlton@bactrian.org>
3476
3477 * linespec.c (find_methods): Break out code into
3478 add_matching_methods and add_constructors.
3479 (add_matching_methods): New.
3480 (add_constructors): Ditto.
3481
bf7488d2
AC
34822003-06-02 Andrew Cagney <cagney@redhat.com>
3483
bf7488d2
AC
3484 * sparc-tdep.c (sparc_print_registers): Delete call to
3485 REGISTER_CONVERTIBLE.
3486 (sparc_gdbarch_init): Do not set register_convertible.
3487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3488 * frv-tdep.c (frv_gdbarch_init): Ditto.
3489 * cris-tdep.c (cris_gdbarch_init): Ditto.
3490
adedef68
EZ
34912003-06-02 Elena Zannoni <ezannoni@redhat.com>
3492
8ffd9b1b 3493 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3494 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3495 (syms_from_objfile): Ditto.
3496
650fcc91
AS
34972003-06-03 Andreas Schwab <schwab@suse.de>
3498
3499 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3500 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3501
df4a182b
RH
35022003-06-02 Richard Henderson <rth@redhat.com>
3503
3504 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3505 a member of all_reggroup.
3506
c483c494
RH
35072003-06-02 Richard Henderson <rth@redhat.com>
3508
3509 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3510 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3511 (alpha_lds, alpha_sts): New.
3512 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3513 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3514 restructure and fail for type sizes other than 4 or 8.
3515 (alpha_value_to_register): Similarly.
3516 (alpha_extract_return_value): Use alpha_sts.
3517 (alpha_store_return_value): Use alpha_lds.
3518 (alpha_gdbarch_init): Update hooks.
3519
b38b6be2
RH
35202003-06-02 Richard Henderson <rth@redhat.com>
3521
3522 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3523 regnum identifiers.
3524 (alpha_sigtramp_register_address): Likewise.
3525
98a8e1e5
RH
35262003-06-02 Richard Henderson <rth@redhat.com>
3527
3528 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3529 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3530 * alpha-tdep.h: Declare them.
3531
3532 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3533 Remove zerobuf. Don't error on UNIQUE.
3534 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3535 (ALPHA_REGSET_UNIQUE): Provide default.
3536 (supply_gregset): Use alpha_supply_int_regs.
3537 (fill_gregset): Use alpha_fill_int_regs.
3538 (supply_fpregset): Use alpha_supply_fp_regs.
3539 (fill_fpregset): Use alpha_fill_fp_regs.
3540 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3541 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3542 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3543 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3544 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3545 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3546
67dfac52
RH
35472003-06-02 Richard Henderson <rth@redhat.com>
3548
f75d70cc
RH
3549 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3550
67dfac52
RH
3551 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3552 (alpha_store_return_value): Likewise.
3553
0cf566ec
DC
35542003-06-02 David Carlton <carlton@math.stanford.edu>
3555
3556 * block.c (contained_in): Add 'const' to arguments.
3557 (block_function): Ditto.
3558 * block.h: Update declarations for block_function and
3559 contained_in.
3560
cdef89d0
DC
35612003-06-02 David Carlton <carlton@math.stanford.edu>
3562
3563 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3564 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3565 * p-valprint.c (pascal_val_print): Ditto.
3566 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3567
72667056
RH
35682003-06-02 Richard Henderson <rth@redhat.com>
3569
98a8e1e5
RH
3570 * alpha-tdep.c (alpha_push_dummy_call): Use
3571 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3572
8ffd9b1b 3573 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3574 sign-extension of 32-bit values.
3575 (alpha_store_return_value): Similarly.
0ede8eca 3576
98a8e1e5
RH
3577 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3578 (alpha_extract_return_value): Likewise.
3579 (alpha_store_return_value): Likewise.
7b5e1cb3 3580
98a8e1e5
RH
3581 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3582 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3583
98a8e1e5
RH
3584 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3585 (alpha_extract_struct_value_address): Likewise.
3586 (alpha_store_return_value): Likewise.
3587 (alpha_store_struct_return): Remove.
3588 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3589
98a8e1e5
RH
3590 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3591 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3592 macros where appropriate.
3593 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3594 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3595
98a8e1e5
RH
3596 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3597 for SP, GP; void_func_ptr for PC; non-language-specific types
3598 for all others.
3599 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3600
6dd77b81
RH
36012003-06-02 Richard Henderson <rth@redhat.com>
3602
3603 * top.h (lim_at_start): Declare.
3604 * main.c (captured_main): Set it.
3605 * top.c (lim_at_start): Define.
3606 (command_loop): Use it instead of &environ.
3607 * event-top.c (command_handler): Likewise.
3608
f4dbdb54
JT
36092003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3610
3611 * mipsnbsd-tdep.c: Update copyright years.
3612 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3613
8f285956
RH
36142003-06-01 Richard Henderson <rth@redhat.com>
3615
98a8e1e5
RH
3616 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3617 (alpha-linux-tdep.o): Update dependencies.
3618 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3619 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3620
615967cb
RH
36212003-06-01 Richard Henderson <rth@redhat.com>
3622
98a8e1e5
RH
3623 * alpha-tdep.c (alpha_register_reggroup_p): New.
3624 (alpha_gdbarch_init): Register it.
615967cb 3625
b59661bd
AC
36262003-06-02 Andrew Cagney <cagney@redhat.com>
3627
3628 * dwarfread.c: Eliminate "register"
3629 (decode_die_type): Eliminate assignment within "if".
3630 (struct_type, decode_array_element_type): Ditto.
3631 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3632 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3633 (decode_modified_type, completedieinfo): Ditto.
3634 * block.c: Eliminate "register".
3635 (blockvector_for_pc_sect): Eliminate assignment within "if".
3636 * cp-support.h (struct symbol): Opaque declaration.
3637 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3638
5ef165c2
RH
36392003-06-01 Richard Henderson <rth@redhat.com>
3640
98a8e1e5
RH
3641 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3642 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3643
143985b7
AF
36442003-06-01 Adam Fedor <fedor@gnu.org>
3645
3646 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3647 * gdbarch.[ch]: Regenerate.
3648 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3649 (hppa_gdbarch_init): Set it in the gdbarch vector.
3650 * i386-tdep.c (i386_fetch_pointer_argument): New
3651 (i386_gdbarch_init): Set it into gdbarch.
3652 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3653 (rs6000_gdbarch_init): Set it in gdbarch.
3654 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3655 (sparc_gdbarch_init): Set it in gdbarch.
3656
ae0167b9
AC
36572003-06-01 Andrew Cagney <cagney@redhat.com>
3658
7c0b4a20
AC
3659 * defs.h (extract_address): Delete declaration.
3660 * findvar.c (extract_address): Delete function.
3661 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3662 extract_address with the inline equivalent,
3663 extract_unsigned_integer.
3664 (xstormy16_extract_struct_value_address): Ditto.
3665 (xstormy16_pointer_to_address): Ditto.
3666 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3667 * v850-tdep.c (v850_push_arguments): Ditto.
3668 (v850_extract_return_value): Ditto.
3669 (v850_extract_struct_value_address): Ditto.
3670 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3671 (sparcnbsd_get_longjmp_target_64): Ditto.
3672 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3673 (get_longjmp_target): Ditto.
3674 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3675 (sh64_extract_struct_value_address): Ditto.
3676 (sh_push_arguments): Ditto.
3677 (sh64_push_arguments): Ditto.
3678 * remote-vxsparc.c (vx_read_register): Ditto.
3679 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3680 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3681 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3682 * mipsv4-nat.c (get_longjmp_target): Ditto.
3683 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3684 * mips-nat.c (get_longjmp_target): Ditto.
3685 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3686 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3687 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3688 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3689 * irix5-nat.c (get_longjmp_target): Ditto.
3690 * irix4-nat.c (get_longjmp_target): Ditto.
3691 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3692 (ia64_push_arguments): Ditto.
3693 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3694 * h8300-tdep.c (h8300_push_arguments): Ditto.
3695 (h8300_store_return_value): Ditto.
3696 (h8300_extract_struct_value_address): Ditto.
3697 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3698 (frv_push_arguments): Ditto.
3699 * avr-tdep.c (avr_pointer_to_address): Ditto.
3700 (avr_push_arguments): Ditto.
3701 * arm-tdep.c (arm_push_dummy_call): Ditto.
3702 (arm_get_longjmp_target): Ditto.
3703 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3704 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3705 (alpha_get_longjmp_target): Ditto.
3706
ae0167b9
AC
3707 * solib-irix.c (extract_mips_address): Inline extract_address,
3708 replacing it with extract_signed_integer.
3709 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3710 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3711 (first_link_map_member, open_symbol_file_object): Ditto.
3712 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3713 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3714 (LM_NEXT, LM_NAME): Ditto.
3715
44d88583
RH
37162003-06-01 Richard Henderson <rth@redhat.com>
3717
98a8e1e5
RH
3718 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3719 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3720 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3721 (alpha_cannot_store_register): Likewise.
3722 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3723 * alpha-nat.c (supply_gregset): Likewise.
3724 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3725
310e9b6a
AC
37262003-06-01 Andrew Cagney <cagney@redhat.com>
3727
3728 * infcall.c (call_function_by_hand): Update comment on
3729 DEPRECATED_DUMMY_WRITE_SP.
3730
3731 * mips-tdep.c (mips_gdbarch_init): Do not set
3732 deprecated_dummy_write_sp.
3733 (mips_eabi_push_dummy_call): Set the SP register.
3734 (mips_o64_push_dummy_call): Set the SP register.
3735 (mips_o32_push_dummy_call): Set the SP register.
3736 (mips_n32n64_push_dummy_call): Set the SP register.
3737
5ab84872
RH
37382003-06-01 Richard Henderson <rth@redhat.com>
3739
98a8e1e5
RH
3740 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3741 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3742 (supply_gregset): Likewise.
3743 * alpha-tdep.c (alpha_store_return_value): Likewise.
3744 (alpha_get_longjmp_target): Likewise.
3745 (alpha_register_name): Constify array.
3746 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3747 deprecated_register_size, deprecated_register_bytes,
3748 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3749 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3750 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3751
09cc52fd
RH
37522003-06-01 Richard Henderson <rth@redhat.com>
3753
3754 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3755 from arg_reg_buffer to regcache to avoid double conversion.
3756
c7f16359
MK
37572003-06-01 Mark Kettenis <kettenis@gnu.org>
3758
3759 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3760 SP_REGNUM.
3761 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3762 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3763
7131cb6e
RH
37642003-06-01 Richard Henderson <rth@redhat.com>
3765
98a8e1e5
RH
3766 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3767 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3768
f3e0f90b
RH
37692003-06-01 Richard Henderson <rth@redhat.com>
3770
98a8e1e5
RH
3771 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3772 not overlapping PC_REGNUM.
f3e0f90b 3773
c88e30c0
RH
37742003-06-01 Richard Henderson <rth@redhat.com>
3775
98a8e1e5
RH
3776 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3777 alpha_push_arguments. Don't dump argument register data to
3778 the target stack. Fix float and 128-bit long double semantics.
3779 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3780 (alpha_fix_call_dummy): Remove.
3781 (alpha_call_dummy_words): Remove.
3782 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3783
f1a559ae
RH
37842003-06-01 Richard Henderson <rth@redhat.com>
3785
3786 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3787
5e045346
AC
37882003-06-01 Andrew Cagney <cagney@redhat.com>
3789
95404a3e
AC
3790 * mips-tdep.c (is_mips16_addr): New function.
3791 (make_mips16_addr, unmake_mips16_addr): New functions.
3792 (pc_is_mips16, mips_fetch_instruction): Use.
3793 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3794 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3795 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3796 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3797 TARGET_MIPS.
3798 * config/mips/tm-mips.h: Update copyright.
3799 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3800 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3801 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3802 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3803 (TM_PRINT_INSN_MACH): Delete.
3804 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3805
5e045346
AC
3806 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3807 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3808 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3809 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3810 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3811 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3812 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3813 mips*-*-riscos* and mips*-*-sysv* onto mips.
3814 * config/mips/mips64.mt: New file.
3815 * config/mips/mips.mt: New file.
3816 * config/mips/littlemips.mt: Delete file.
3817 * config/mips/decstation.mt: Delete file.
3818 * config/mips/vr4300el.mt: Delete file.
3819 * config/mips/vr5000el.mt: Delete file.
3820 * config/mips/vr5000.mt: Delete file.
3821 * config/mips/vr4100.mt: Delete file.
3822 * config/mips/vr4xxxel.mt: Delete file.
3823 * config/mips/vr4300.mt: Delete file.
3824 * config/mips/vr4xxx.mt: Delete file.
3825 * config/mips/bigmips.mt: Delete file.
3826 * config/mips/bigmips64.mt: Delete file.
3827 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3828 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3829 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3830 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3831 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3832 "tm-bigmips.h".
3833 * config/mips/tm-irix3.h: Ditto.
3834 * config/mips/tm-mipsv4.h: Ditto.
3835 * config/mips/tm-embed.h: Ditto.
3836 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3837 "tm-bigmips64.h".
3838 * config/mips/tm-vr5000el.h: Delete file.
3839 * config/mips/tm-tx39l.h: Delete file.
3840 * config/mips/tm-vr4300el.h: Delete file.
3841 * config/mips/tm-vr4xxxel.h: Delete file.
3842 * config/mips/tm-vr4300.h: Delete file.
3843 * config/mips/tm-vr4100.h: Delete file.
3844 * config/mips/tm-vr4xxx.h: Delete file.
3845 * config/mips/tm-vr5000.h: Delete file.
3846 * config/mips/tm-embedl64.h: Delete file.
3847 * config/mips/tm-embedl.h: Delete file.
3848 * config/mips/tm-embed64.h: Delete file.
3849 * config/mips/tm-bigmips64.h: Delete file.
3850 * config/mips/tm-bigmips.h: Delete file.
3851
2473a4a9
MK
38522003-06-01 Mark Kettenis <kettenis@gnu.org>
3853
97a5b208
MK
3854 Fix gdb/1216.
3855 * shnbsd-nat.c: Include "sh-tdep.h".
3856
2473a4a9
MK
3857 From Richard Henderson <rth@redhat.com>:
3858 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3859
e0f7ec59
AC
38602003-05-31 Andrew Cagney <cagney@redhat.com>
3861
3862 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3863 forward declaration.
3864 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3865 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3866 (mips_find_saved_regs): Use set_reg_offset.
3867 (mips_frame_init_saved_regs): Delete function.
3868 (mips_pop_frame): Call mips_find_saved_regs instead of
3869 DEPRECATED_FRAME_INIT_SAVED_REGS.
3870
68dcc709
AC
38712003-05-31 Andrew Cagney <cagney@redhat.com>
3872
3873 * mips-tdep.c (mips_gdbarch_init): Do not set
3874 deprecated_max_register_raw_size, register_virtual_size, and
3875 deprecated_max_register_virtual_size.
3876
cfc14b3a
MK
38772003-05-31 Mark Kettenis <kettenis@gnu.org>
3878
6405b0a6
MK
3879 * i386-tdep.c: Include "dwarf2-frame.h".
3880 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3881 * Makefile.in (i386-tdep.o): Update dependencies.
3882
cfc14b3a
MK
3883 * dwarf2-frame.c, dwarf2-frame.h: New files.
3884 * Makefile.in (SFILES): Add dwarf2-frame.c.
3885 (dwarf2_frame_h): Define.
3886 (COMMON_OBS): Add dwarf2-frame.o.
3887 (dwarf2-frame.o): Add dependencies.
3888
6a2751d2
AJ
38892003-05-31 Andreas Jaeger <aj@suse.de>
3890
3891 * x86-64-linux-nat.c: Fix comment.
3892
1c3545ae
MK
38932003-05-31 Mark Kettenis <kettenis@gnu.org>
3894
10f93086
MK
3895 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3896 function signature.
3897
1c3545ae
MK
3898 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3899 have a sigcontext_addr handler.
3900 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3901 sigcontext_addr handler.
3902
e11c53d2
AC
39032003-05-31 Andrew Cagney <cagney@redhat.com>
3904
3905 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3906 (print_fp_register_row): Replace do_fp_register_row.
3907 (mips_print_fp_register): Add "file" and "frame" parameters.
3908 (mips_print_register): Add "file" and "frame" parameters.
3909 (mips_print_registers_info): Replace mips_do_registers_info.
3910 (mips_gdbarch_init): Set print_registers_info instead of
3911 deprecated_do_registers_info.
3912 (mips_read_fp_register_single): Add "frame" parameter.
3913 (mips_read_fp_register_double): Add "frame" parameter.
3914
a3386186
MK
39152003-05-31 Mark Kettenis <kettenis@gnu.org>
3916
70913449
MK
3917 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3918 Fixes a bug where GDB would print the wrong register names for
3919 targets without SSE.
3920
2b5e0749
MK
3921 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3922 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3923 registers.
3924
3925 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3926 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3927 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3928 TDEP->sc_sp_offset.
3929
a3386186
MK
3930 From Michal Ludvig <mludvig@suse.cz>:
3931 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3932 and `sc_num_regs'.
3933 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3934 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3935 I386_ST0_REGNUM): Move here from...
3936 * i386-tdep.c: ... here.
3937 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3938 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3939 registers if possible.
3940 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3941 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3942 Remove variables.
3943 (i386bsd_sc_reg_offset): New variable.
3944 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3945 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3946 TDEP->sc_sp_offset.
3947 (i386fbsd_sc_reg_offset): New variable.
3948 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3949 TDEP->sc_num_regs.
3950 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3951 variables.
3952 (i386fbsd4_sc_reg_offset): New variable.
3953 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3954 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3955 TDEP->sc_sp_offset.
3956 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3957 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3958 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3959 Remove variables.
3960 (i386nbsd_sc_reg_offset): New variable.
3961 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3962 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3963 TDEP->sc_sp_offset.
3964 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3965 Remove variables.
3966 (i386obsd_sc_reg_offset): New variable.
3967 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3968 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3969 TDEP->sc_sp_offset.
3970 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3971 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3972 for frame pointer offset in `struct sigcontext'.
3973
25ab4790
AC
39742003-05-31 Andrew Cagney <cagney@redhat.com>
3975
3976 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3977 architecture methods call_dummy_words, sizeof_call_dummy_words,
3978 push_return_address, store_struct_return, and fix_call_dummy. Set
3979 push_dummy_call instead of deprecated_push_arguments.
3980 (mips_store_struct_return): Delete function.
3981 (mips_fix_call_dummy): Delete function.
3982 (mips_push_return_address): Delete function.
3983 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3984 RA_REGNUM and T9_REGNUM.
3985 (mips_n32n64_push_dummy_call): Ditto for
3986 mips_n32n64_push_arguments.
3987 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3988 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3989
6a65450a
AC
39902003-05-31 Andrew Cagney <cagney@redhat.com>
3991
3992 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3993 "dummy_addr" to "bp_addr".
3994 * infcall.c (call_function_by_hand): Pass "funaddr" to
3995 gdbarch_push_dummy_call.
3996 * gdbarch.h, gdbarch.c: Re-generate.
3997 * i386-tdep.c (i386_push_dummy_call): Update.
3998 * arm-tdep.c (arm_push_dummy_call): Update.
3999 * d10v-tdep.c (d10v_push_dummy_call): Update.
4000
c4f35dd8
MK
40012003-05-31 Mark Kettenis <kettenis@gnu.org>
4002
4003 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4004 variable declarations.
4005 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4006 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4007 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4008 x86_64_init_frame_pc, x86_64_init_frame_pc,
4009 x86_64_function_has_prologue): Remove prototypes.
4010 (X86_64_NUM_GREGS): New define.
4011 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4012 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4013 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4014 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4015 XMM1_REGNUM): Remove defines.
4016 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4017 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4018 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4019 X86_64_XMM1_REGNUM): New defines.
4020 (struct x86_64_register_info): Renamed from `struct
4021 register_info'. Remove `size' member.
4022 (x86_64_register_info_table): Remove variable.
4023 (x86_64_register_info): New variable.
4024 (X86_64_NUM_REGS): New define.
4025 (X86_64_NUM_GREGS): Remove define.
4026 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4027 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4028 Remove variables.
4029 (x86_54_dwarf2_reg_to_regnum): Remove function.
4030 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4031 (x86_64_dwarf_reg_to_regnum): New function.
4032 (x86_64_register_name): Rewrite.
4033 (x86_64_register_raw_size): Remove function.
4034 (x86_64_register_byte_table): Remove variable.
4035 (x86_64_register_byte): Remove function.
4036 (x86_64_register_virtual_type): Remove function.
4037 (x86_64_register_type): New function.
4038 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4039 x86_64_register_convert_to_raw): Remove functions.
4040 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4041 (x86_64_use_struct_convention): Make static. Adjust for renamed
4042 defines.
4043 (x86_64_frame_init_saved_regs): Remove function.
4044 (x86_64_push_arguments): Make static. Change to accept a regcache
4045 as argument.
4046 (x86_64_store_return_value, x86_64_extract_return_value): Make
4047 static. Rewrite based on i386 counterparts.
4048 (x86_64_push_dummy_call): New function.
4049 (X86_64_NUM_SAVED_REGS): New define.
4050 (x86_64_register_number): Remove function.
4051 (x86_64_store_struct_return): Remove function.
4052 (x86_64_frameless_function_invocation,
4053 x86_64_function_has_prologue): Remove functions.
4054 (PROLOG_BUFSIZE): Remove define.
4055 (struct x86_64_frame_cache): New structure.
4056 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4057 x86_64_frame_cache, x86_64_frame_this_id,
4058 x86_64_frame_prev_register, x86_64_frame_p,
4059 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4060 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4061 functions.
4062 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4063 variables.
4064 (x86_64_skip_prologue): Rewrite in terms of
4065 x86_64_analyze_prologue.
4066 (x86_64_frame_base_address): New function.
4067 (x86_64_frame_base): New variable.
4068 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4069 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4070 set deprecated_fp_regnum, deprecated_register_size,
4071 deprecated_register_bytes, register_raw_size, register_byte,
4072 register_virtual_type, register_convertiable,
4073 register_convert_to_virtual, convert_to_raw,
4074 deprecated_get_saved_register, deprecated_target_read_fp,
4075 deprecated_push_arguments, deprecated_push_return_address,
4076 deprecated_pop_frame, deprecated_store_struct_return,
4077 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4078 frameless_function_invocation, deprecated_frame_saved_pc,
4079 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4080 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4081 deprecated_init_frame_pc and virtual_frame_pointer. Call
4082 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4083 and x86_64_frame_p. Call frame_base_set_default to register
4084 x86_64_frame_base.
4085 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4086 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4087 (_initialize_x86_64_tdep): Remove function.
4088 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4089 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4090 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4091 define.
4092 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4093 (x86_64_linux_sigcontext_addr): Rewrite.
4094 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4095 x86_64_linux_frame_saved_pc): Remove functions.
4096 (x86_64_linux_pc_in_sigtramp): Renamed from
4097 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4098 trampoline.
4099 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4100 Remove_functions.
4101 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4102 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4103 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4104 (x86_64_regmap): Rename to regmap.
4105 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4106 x86_64_num_gregs.
4107 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4108 x86_64_regmap.
4109 (x86_64_fxsave_offset): Remove function.
4110 (supply_fpregset): Simply call x86_64_supply_fxsave.
4111 (fill_fpregset): Simply call x86_64_fill_fxsave.
4112 (fetch_inferior_registers, store_inferior_registers): Avoid
4113 asignment in if-statement.
4114 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4115 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4116 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4117 (fetch_core_registers): Remove function.
4118 (linux_elf_core_fns): Remove.
4119 (offsetoff): Don't define.
4120 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4121 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4122 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4123 add core-regset.o.
4124 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4125 protection against multiple includes instead of NM_X86_64_h. Add
4126 various comments. Include "config/nm-linux.h". Don't include
4127 <signal.h>.
4128 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4129 GET_THREAD_SIGNALS): Remove defines.
4130 (x86_64_register_u_addr, kernel_u_size,
4131 lin_thread_get_thread_signals): Remove prototypes.
4132 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4133 [HAVE_LINK_H]: Don't include "solib.h".
4134 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4135 * config/i386/tm-x86-64linux.h: Fix comments.
4136 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4137 x86-64-tdep.o): Update dependencies.
4138
c25083af
AC
41392003-05-30 Andrew Cagney <cagney@redhat.com>
4140
c8f55a7b
AC
4141 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4142 Change parameter type to a "struct regcache *".
4143
c25083af
AC
4144 * gdbarch.sh: Regardless of the multi-arch level, always define
4145 the macro when not already defined.
4146 * gdbarch.h, gdbarch.c: Re-generate.
4147
fbe586ae
RH
41482003-05-30 Richard Henderson <rth@redhat.com>
4149
4150 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4151 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4152 (alpha_mdebug_frame_this_id): Likewise.
4153 (alpha_mdebug_frame_prev_register): Likewise.
4154 (alpha_mdebug_frame_base_address): Likewise.
4155 (alpha_mdebug_frame_locals_address): Likewise.
4156 (alpha_mdebug_frame_args_address): Likewise.
4157 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4158 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4159 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4160 loop increment.
4161 (alpha_heuristic_frame_this_id): Make static.
4162 (alpha_heuristic_frame_prev_register): Likewise.
4163 (alpha_heuristic_frame_base_address): Likewise.
4164 * alpha-tdep.h: Update.
4165
acd5c798
MK
41662003-05-30 Mark Kettenis <kettenis@gnu.org>
4167
4168 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4169 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4170 defenitions.
4171 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4172 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4173 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4174 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4175 I386_ST0_REGNUM): New defines.
4176 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4177 codestream_get): Remove define.
4178 (codestream_next_addr, condestream_addr, condestream_buf,
4179 codestream_off, codestream_cnt): Remove variables.
4180 (codestream_fill, codestream_seek, codestream_read): Remove
4181 functions.
4182 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4183 functionality.
4184 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4185 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4186 i386_frame_saved_pc, i386_saved_pc_after_call,
4187 i386_frame_num_args, i386_frame_init_saved_regs,
4188 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4189 i386_push_arguments): Remove functions.
4190 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4191 functionality. Use i386_analyze_prologue instead of
4192 i386_get_frame_setup.
4193 (I386_NUM_SAVED_REGS): New define.
4194 (struct i386_frame_cache): New structure.
4195 (i386_alloc_frame_cache, i386_analyze_struct_return,
4196 i386_skip_probe, i386_analyze_frame_setup,
4197 i386_analyze_register_saves, i386_analyze_prologue,
4198 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4199 i386_frame_prev_register, i386_sigtramp_frame_cache,
4200 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4201 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4202 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4203 New functions.
4204 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4205 New variables.
4206 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4207 I386_EAX_REGNUM and I386_EDX_REGNUM.
4208 (i386_extract_return_value, i386_store_return_value): Use
4209 I386_ST0_REGNUM where appropriate.
4210 (i386_extract_struct_value_address): Rewrite to use extract_address.
4211 (i386_svr4_pc_in_sigtramp): Add comment.
4212 (i386_svr4_sigcontext_addr): Rewrite.
4213 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4214 TDEP->sc_sp_offset.
4215 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4216 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4217 of new defines. Set push_dummy_call, don't set
4218 deprecated_push_arguments, deprecated_push_return_address,
4219 deprecated_pop_frame. Don't set parm_boundary. Don't set
4220 deprecated_frame_chain, deprecated_frame_saved_pc,
4221 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4222 save_dummy_frame_tos, unwind_pc. Call
4223 frame_unwind_append_predicate and frame_base_set_default. Don't
4224 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4225 Don't set frameless_function_invocation. Don't set
4226 deprecated_register_bytes, deprecated_register_size,
4227 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4228 * i386-linux-tdep.c: Fix formatting in some comments.
4229 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4230 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4231 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4232 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4233 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4234 redundant parentheses.
4235 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4236 (i386_linux_sigcontext_addr): Use it. Rewrite.
4237 (find_minsym_and_objfile): Change name of second argument.
4238 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4239 changed. Use frame_pc_unwind instead of
4240 DEPRECATED_SAVED_PC_AFTER_CALL.
4241 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4242 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4243 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4244 unwinder.
4245 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4246 "dummy-frame.h".
4247 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4248 (_initialize_i386_cygwin_tdep): New prototype.
4249 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4250 deprecated_frame_chain_valid.
4251 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4252 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4253 Rely on the SVR4 defaults.
4254 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4255 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4256
c89b70f1
AC
42572003-05-30 Andrew Cagney <cagney@redhat.com>
4258
4259 * infcall.c (call_function_by_hand): Always call
4260 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4261
85b32d22
RH
42622003-05-30 Richard Henderson <rth@redhat.com>
4263
c89b70f1
AC
4264 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4265 increment.
85b32d22 4266
bfe51b1e
JB
42672003-05-29 Jim Blandy <jimb@redhat.com>
4268
4269 Use gdbarch methods for solib stuff on PowerPC Linux.
4270 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4271 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4272 show through.
4273 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4274 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4275 giving the same effect as the #definitions above.
4276
1abf022c
AF
42772003-05-29 Adam Fedor <fedor@gnu.org>
4278
4279 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4280 (find_implementation_from_class): Replace it with the standard
4281 case i.e. do nothing.
4282
d2427a71
RH
42832003-05-29 Richard Henderson <rth@redhat.com>
4284
4285 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4286 (alpha_linux_sigtramp_offset): Use it. Make static.
4287 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4288 update for new frame model.
4289 * alpha-mdebug-tdep.c: New file.
4290 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4291 (alpha_osf1_init_abi): Install it.
4292 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4293 (linked_proc_desc_table): Remove.
4294 (alpha_frame_past_sigtramp_frame): Remove.
4295 (alpha_dynamic_sigtramp_offset): Remove.
4296 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4297 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4298 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4299 (push_sigtramp_desc): Remove.
4300 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4301 (alpha_cannot_store_register): Likewise.
4302 (alpha_sigcontext_addr): Remove.
4303 (alpha_find_saved_regs): Remove.
4304 (alpha_frame_init_saved_regs): Remove.
4305 (alpha_init_frame_pc_first): Remove.
4306 (read_next_frame_reg): Remove.
4307 (alpha_frame_saved_pc): Remove.
4308 (alpha_saved_pc_after_call): Remove.
4309 (temp_proc_desc, temp_saved_regs): Remove.
4310 (alpha_about_to_return): Remove.
4311 (cached_proc_desc): Remove.
4312 (alpha_frame_chain): Remove.
4313 (alpha_print_extra_frame_info): Remove.
4314 (alpha_init_extra_frame_info): Remove.
4315 (alpha_frame_locals_address): Remove.
4316 (alpha_frame_args_address): Remove.
4317 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4318 (alpha_push_dummy_frame): Remove.
4319 (alpha_pop_frame): Remove.
4320 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4321 (alpha_read_insn): New.
4322 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4323 for different insn encodings.
4324 (alpha_in_lenient_prologue): Remove.
4325 (struct alpha_sigtramp_unwind_cache): New.
4326 (alpha_sigtramp_frame_unwind_cache): New.
4327 (alpha_sigtramp_register_address): New.
4328 (alpha_sigtramp_frame_this_id): New.
4329 (alpha_sigtramp_frame_prev_register): New.
4330 (alpha_sigtramp_frame_unwind): New.
4331 (alpha_sigtramp_frame_p): New.
4332 (struct alpha_heuristic_unwind_cache): New.
4333 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4334 don't count nop insns that occur between functions.
4335 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4336 heuristic_proc_desc, but without the mdebug wrapping.
4337 (alpha_heuristic_frame_this_id): New.
4338 (alpha_heuristic_frame_prev_register): New.
4339 (alpha_heuristic_frame_unwind): New.
4340 (alpha_heuristic_frame_p): New.
4341 (alpha_heuristic_frame_base_address): New.
4342 (alpha_heuristic_frame_base): New.
4343 (alpha_unwind_dummy_id): New.
4344 (alpha_unwind_pc): New.
4345 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4346 frame related deprecated initializations; install replacements.
4347 (alpha_dump_tdep): Remove.
4348 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4349 (alpha_read_insn, alpha_after_prologue,
4350 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4351 alpha_heuristic_frame_prev_register,
4352 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4353 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4354 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4355 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4356
93ec1121
AC
43572003-05-29 Andrew Cagney <cagney@redhat.com>
4358
4359 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4360 dependant on the availability of ASSERT_FUNCTION.
4361 (ASSERT_FUNCTION): Do not define when there is no function name.
4362
98f08d3d
KB
43632003-05-29 Kevin Buettner <kevinb@redhat.com>
4364
4365 From Jimi X <jimix@watson.ibm.com>:
4366 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4367
0897f59b
JB
43682003-05-28 Jim Blandy <jimb@redhat.com>
4369
4370 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4371 argument to ptrace to int; the system headers should give it the
4372 right type, and pointers don't fit in ints on powerpc64-*-*.
4373
14898363
L
43742003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4375
4376 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4377 DW_TAG_catch_block.
4378
a7a48797
EZ
43792003-05-26 Elena Zannoni <ezannoni@redhat.com>
4380
4381 * stabsread.c (dbx_lookup_type): Make static.
4382 (read_type): Ditto.
4383 (add_undefined_type): Ditto.
4384 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4385 not export.
4386
f5479e9c
EZ
43872003-05-26 Elena Zannoni <ezannoni@redhat.com>
4388
4389 * hpread.c (hpread_has_name): Make static.
4390 (hpread_psymtab_to_symtab): Ditto.
4391 (file_exists): Ditto.
4392 (hpread_call_pxdb): Ditto.
4393 (hpread_pxdb_needed): Ditto.
4394 (hpread_quick_traverse): Ditto.
4395 (hpread_get_header): Ditto.
4396 (hpread_get_lntt): Ditto.
4397 (hpread_get_slt): Ditto.
4398 (class_of): Ditto.
4399
eb2e12d7
AS
44002003-05-25 Andreas Schwab <schwab@suse.de>
4401
78bf922a
AS
4402 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4403 stack_align and deprecated_extra_stack_alignment_needed.
4404 (m68k_stack_align): Delete.
4405
eb2e12d7
AS
4406 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4407 (m68k_register_virtual_size): Likewise.
4408 (altos_skip_prologue): Remove obsolete function.
4409 (isi_frame_num_args): Likewise.
4410 (news_frame_num_args): Likewise.
4411 (m68k_fix_call_dummy): Make static.
4412 (m68k_push_dummy_frame): Likewise.
4413 (m68k_pop_frame): Likewise.
4414 (m68k_skip_prologue): Likewise.
4415 (m68k_frame_init_saved_regs): Likewise.
4416 (m68k_saved_pc_after_call): Likewise.
4417 (m68k_get_longjmp_target): Make multi-arch.
4418 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4419 structure. Register m68k_get_longjmp_target if enabled.
4420 * m68k-tdep.h (struct gdbarch_tdep): Define.
4421 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4422
4423 * Makefile.in (config.status): Also depend on configure.tgt
4424 and configure.host.
4425 (m68klinux-tdep.o): Update dependencies.
4426 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4427 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4428 (M68K_LINUX_JB_PC): Define.
4429 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4430 and take additional parameter.
4431 (m68k_linux_sigtramp_saved_pc): Update.
4432 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4433 m68k_linux_pc_in_sigtramp, in_plt_section,
4434 find_solib_trampoline_target.
4435 * config/m68k/tm-linux.h: Don't include any tm headers.
4436 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4437 (JB_ELEMENT_SIZE): Likewise.
4438 (JB_PC): Likewise.
4439 (GET_LONGJMP_TARGET): Likewise.
4440 (IN_SIGTRAMP): Likewise.
4441 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4442
eb2c22dc
MK
44432003-05-25 Mark Kettenis <kettenis@gnu.org>
4444
4445 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4446 (sparc32_push_arguments): Re-implement by calling
4447 sparc32_do_push_arguments.
4448
44b7b84e
MK
44492003-05-25 Mark Kettenis <kettenis@gnu.org>
4450
4451 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4452 SPARC_O1_REGNUM): New defines.
4453 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4454 (sparc32_store_return_value): New function.
4455 (sparc_extract_struct_value_address): Rewrite to operate on a
4456 regcache.
4457 (sparc_gdbarch_init): Don't set
4458 deprecated_extract_struct_value_address. Set
4459 extract_struct_value_address instead. Don't set
4460 deprecated_extract_return_value and deprecated_store_return_value
4461 for 32-bit targets. Set extract_return_value and
4462 store_return_value instead.
4463 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4464 DEPRECTAED_EXTRACT_RETURN_VALUE,
4465 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4466 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4467 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4468 (sparc_store_return_value): Remove prototype.
4469 (sparc32_store_return_value): New prototype.
4470 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4471 Adjust prototypes.
4472
f6ad61e3
MK
44732003-05-24 Mark Kettenis <kettenis@gnu.org>
4474
4475 * sparcnbsd-tdep.c: Include "gdb_string.h".
4476
b276f1bb
AC
44772003-05-23 Andrew Cagney <cagney@redhat.com>
4478
4479 * p-valprint.c (pascal_val_print): Replace extract_address with
4480 the inline equivalent extract_unsigned_integer.
4481 * jv-valprint.c (java_value_print): Ditto.
4482 * ada-valprint.c (ada_val_print_1): Ditto.
4483 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4484
e76c5fcc
TR
44852003-05-23 Theodore A. Roth <troth@openavr.org>
4486
4487 * blockframe.c (frameless_look_for_prologue): Remove unused
4488 after_prologue variable.
4489
2cdd89cb
MK
44902003-05-23 Mark Kettenis <kettenis@gnu.org>
4491
4492 * blockframe.c (get_pc_function_start): Rewrite to avoid
4493 asignments in if-statements.
4494
182d43bc
EZ
44952003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4496
4497 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4498 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4499 files, don't relocate absolute symbols (and do use mst_abs).
4500
e8f3fcdd
AC
45012003-05-23 Andrew Cagney <cagney@redhat.com>
4502
4503 * objc-lang.c: Include "gdb_assert.h".
4504 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4505 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4506 (gdb_check, gdb_check_fatal): Delete functions.
4507 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4508 gdb_assert.
4509 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4510 * Makefile.in (objc-lang.o): Update dependencies.
4511
3c23e6fb
ILT
45122003-05-22 Ian Lance Taylor <ian@airs.com>
4513
4514 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4515 with fprintf_filtered, not fprintf_unfiltered.
4516
af1342ab
AC
45172003-05-22 Andrew Cagney <cagney@redhat.com>
4518
4519 * stack.c (frame_info): Inline extract_address, replacing it with
4520 extract_unsigned_integer.
4521 * findvar.c (unsigned_pointer_to_address): Ditto.
4522 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4523 * dwarf2expr.c (dwarf2_read_address): Ditto.
4524 * frame.c (frame_pc_unwind): Update comment.
4525 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4526
47e242ec
JJ
45272003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4528
4529 * infptrace.c (detach): Call print_sys_errmsg rather than
4530 perror_with_name to issue warning message when errno is non-zero
4531 after calling ptrace detach.
4532
e2ac8128
JB
45332003-05-21 J. Brobecker <brobecker@gnat.com>
4534
4535 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4536 macro definitions from here...
4537 * hppa-tdep.c: ...to there.
4538
92b3541e
KB
45392003-05-20 Kevin Buettner <kevinb@redhat.com>
4540
4541 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4542 register_ptrace_addr(). Fix all callers.
4543
55809acb
AS
45442003-05-21 Andreas Schwab <schwab@suse.de>
4545
4546 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4547 dependencies.
4548 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4549 end.
4550 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4551 (_initialize_m68k_linux_tdep): New function.
4552 (m68k_linux_frame_saved_pc): Make static.
4553 (m68k_linux_extract_return_value): Likewise.
4554 (m68k_linux_store_return_value): Likewise.
4555 (m68k_linux_extract_struct_value_address): Likewise.
4556 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4557 Remove.
4558 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4559 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4560 (DEPRECATED_FRAME_SAVED_PC): Remove.
4561
0fbc10f7
KW
45622003-05-20 Kris Warkentin <kewarken@qnx.com>
4563
4564 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4565 regset numbering rather than our own.
4566
58da2eb2
DC
45672003-05-19 David Carlton <carlton@bactrian.org>
4568
4569 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4570
1fcb5155
DC
45712003-05-19 David Carlton <carlton@bactrian.org>
4572
4573 Partial fix for PR c++/827.
4574 * cp-support.h: Include symtab.h.
4575 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4576 * cp-namespace.c: Update contributors.
4577 (cp_lookup_symbol_nonlocal): New.
4578 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4579 (lookup_symbol_file): Ditto.
4580 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4581 * block.h: Declare block_scope, block_using, block_global_block.
4582 * block.c (block_scope): New.
4583 (block_using, block_global_block): Ditto.
4584 * Makefile.in (cp_support_h): Depend on symtab_h.
4585 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4586
5f9a71c3
DC
45872003-05-19 David Carlton <carlton@bactrian.org>
4588
4589 * language.h (struct language_defn): Add 'la_value_of_this'
4590 and 'la_lookup_symbol_nonlocal' members.
4591 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4592 lookup_symbol_static, lookup_symbol_global,
4593 lookup_symbol_aux_block.
4594 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4595 if we should search fields of this and how to do static/global
4596 lookup.
4597 (lookup_symbol_aux_block): Make extern.
4598 (basic_lookup_symbol_nonlocal): New.
4599 (lookup_symbol_static, lookup_symbol_global): Ditto.
4600 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4601 'la_lookup_symbol_nonlocal' members.
4602 * c-lang.c (c_language_defn, cplus_language_defn)
4603 (asm_language_defn, minimal_language_defn): Ditto.
4604 * jv-lang.c (java_language_defn): Ditto.
4605 * language.c (unknown_language_defn, auto_language_defn)
4606 (local_language_defn): Ditto.
4607 * m2-lang.c (m2_language_defn): Ditto.
4608 * objc-lang.c (objc_language_defn): Ditto.
4609 * scm-lang.c (scm_language_defn): Ditto.
4610 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4611 * p-lang.c (pascal_language_defn): Ditto for both.
4612 * Makefile.in (f-lang.o): Depend on value_h.
4613 (p-lang.o): Ditto.
4614
89a9d1b1
DC
46152003-05-19 David Carlton <carlton@bactrian.org>
4616
4617 * block.h: Declare block_static_block.
4618 * block.c (block_static_block): New.
4619 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4620 lookup_symbol_aux_local, calling block_static_block instead.
4621 (lookup_symbol_aux_local): Delete 'static_block' argument.
4622
eed3f8ab
DC
46232003-05-19 David Carlton <carlton@bactrian.org>
4624
4625 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4626
a09d8bda
ML
46272003-05-19 Michal Ludvig <mludvig@suse.cz>
4628
4629 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4630 register numbers mapping.
4631
69636828
AF
46322003-05-18 Adam Fedor <fedor@gnu.org>
4633
4634 * symtab.c (completion_list_objc_symbol): New function.
4635 (make_symbol_completion_list): Use it to add ObjC symbols
4636 when looking though the list.
4637 (language_search_unquoted_string): New function.
4638 (make_file_symbol_completion_list): Use it.
4639
55baeb84
AS
46402003-05-18 Andreas Schwab <schwab@suse.de>
4641
d0b45d99
AS
4642 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4643 dependencies.
4644 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4645 as m68k_linux_extract_return_value.
4646 (DEPRECATED_STORE_RETURN_VALUE): Define as
4647 m68k_linux_store_return_value.
4648 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4649 m68k_linux_extract_struct_value_address.
4650 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4651 get_next_frame, get_frame_base, get_frame_pc.
4652 (m68k_linux_frame_saved_pc): Use get_frame_base.
4653 (m68k_linux_extract_return_value): New function.
4654 (m68k_linux_store_return_value): New function.
4655 (m68k_linux_extract_struct_value_address): New function.
4656 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4657
55baeb84
AS
4658 * c-exp.y (typebase): Remove duplicate occurence of
4659 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4660 of lookup_signed_typename.
55baeb84 4661
b6b08ebf
MK
46622003-05-18 Mark Kettenis <kettenis@gnu.org>
4663
4664 * dwarf2loc.c (find_location_expression): Change type of second
4665 argument to `size_t *'.
4666 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4667 for size variable.
4668
5ad1c190
DC
46692003-05-18 David Carlton <carlton@bactrian.org>
4670
4671 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4672 'linkage_name'. Add comment.
4673 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4674 'linkage_name'.
4675 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4676 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4677 (lookup_block_symbol): Ditto.
4678
b8b527c5
AC
46792003-05-16 Andrew Cagney <cagney@redhat.com>
4680
4681 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4682 * gdbarch.h, gdbarch.c: Re-generate.
4683 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4684 * TODO (REGISTER_BYTES): Delete reference.
4685 * alpha-tdep.c (alpha_gdbarch_init): Update.
4686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4687 * x86-64-tdep.c (x86_64_init_abi): Update.
4688 * vax-tdep.c (vax_gdbarch_init): Update.
4689 * v850-tdep.c (v850_gdbarch_init): Update.
4690 * sparc-tdep.c (sparc_gdbarch_init): Update.
4691 * sh-tdep.c (sh_gdbarch_init): Update.
4692 * s390-tdep.c (s390_gdbarch_init): Update.
4693 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4694 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4695 (ns32k_gdbarch_init_32382): Update.
4696 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4697 * mcore-tdep.c (mcore_gdbarch_init): Update.
4698 * m68k-tdep.c (m68k_gdbarch_init): Update.
4699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4700 * ia64-tdep.c (ia64_gdbarch_init): Update.
4701 * i386-tdep.c (i386_gdbarch_init): Update.
4702 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4703 * hppa-tdep.c (hppa_gdbarch_init): Update.
4704 * h8300-tdep.c (h8300_gdbarch_init): Update.
4705 * frv-tdep.c (frv_gdbarch_init): Update.
4706 * cris-tdep.c (cris_gdbarch_init): Update.
4707 * avr-tdep.c (avr_gdbarch_init): Update.
4708 * arm-tdep.c (arm_gdbarch_init): Update.
4709 * sparc-tdep.c (sparc_pop_frame): Update.
4710 * rs6000-tdep.c (rs6000_pop_frame): Update.
4711 * remote.c (init_remote_state): Update.
4712 (remote_prepare_to_store): Update.
4713 * remote-vx.c (vx_prepare_to_store): Update.
4714 * remote-sds.c (sds_fetch_registers): Update.
4715 (sds_prepare_to_store): Update.
4716 * remote-array.c: Update.
4717 * regcache.c (init_legacy_regcache_descr): Update.
4718 (init_regcache_descr): Update.
4719 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4720 (mips_o64_extract_return_value): Update.
4721 * irix5-nat.c (fetch_core_registers): Update.
4722 * irix4-nat.c (fetch_core_registers): Update.
4723 * i386-tdep.h: Update.
4724 * hppa-tdep.c (pa_do_registers_info): Update.
4725 (pa_do_strcat_registers_info): Update.
4726 * cris-tdep.c (cris_register_bytes_ok): Update.
4727 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4728 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4729 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4730 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4731 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4732 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4733 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4734 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4735 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4736 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4737 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4738 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4739 (REGISTER_BYTES_OK): Update.
4740 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4741 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4742
ee2842e2
ILT
47432003-05-16 Ian Lance Taylor <ian@airs.com>
4744
4745 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4746 (vax_print_insn, print_insn_arg): Remove static functions.
4747 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4748 print_insn_vax from opcodes library.
4749 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4750
973177d3
AC
47512003-05-15 Andrew Cagney <cagney@redhat.com>
4752
aaab4dba
AC
4753 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4754 * target.h (memory_breakpoint_from_pc): Delete declaration.
4755 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4756 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4757 * monitor.c (monitor_insert_breakpoint): Use
4758 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4759 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4760 * gdbarch.h, gdbarch.c: Re-generate.
4761 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4762 (sparc_gdbarch_init): Set breakpoint_from_pc to
4763 sparc_breakpoint_from_pc.
4764 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4765 (BREAKPOINT_FROM_PC): Define.
4766 (sparc_breakpoint_from_pc): Declare.
4767 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4768 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4769 (BREAKPOINT_FROM_PC): Define.
4770 (BREAKPOINT): Delete macro.
4771 * target.h: Update comment.
4772 * s390-tdep.c (s390_gdbarch_init): Update comments.
4773 * remote.c: Update comments.
4774 * remote-mips.c: Update comments.
4775 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4776 * mem-break.c: Update comment.
4777 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4778 (ia64_memory_insert_breakpoint): Update.
4779 * config/sparc/tm-sparc.h: Update comment.
4780 * config/pa/tm-hppa64.h: Update comment.
4781 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4782 (rs6000_breakpoint_from_pc): Update.
4783 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4784 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4785 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4786 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4787 (mips_breakpoint_from_pc): Update.
4788 (mips_dump_tdep): Update.
4789
e06963ff
AC
4790 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4791 * minsyms.c (lookup_minimal_symbol): Inline
4792 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4793
973177d3
AC
4794 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4795 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4796 * p-lang.c (pascal_printstr): Ditto.
4797 * objc-lang.c (objc_printstr): Ditto.
4798 * m2-lang.c (m2_printstr): Ditto.
4799 * jv-valprint.c (java_print_value_fields): Ditto.
4800 * f-lang.c (f_printstr): Ditto.
4801 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4802 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4803 for repeat_count_threshold.
4804 * Makefile.in (cp-valprint.o): Update dependencies.
4805
5ea2bd7f 48062003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4807
5ea2bd7f
JJ
4808 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4809 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4810 they start with mov r2,r12. Support skipping over indirect stores
4811 of the input registers. Upon hitting a non-nop branch instruction
4812 or predicated instruction, bail out by setting lim_pc to the current
4813 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4814 beyond our calculated value and we have trust_limit set,
4815 use the lim_pc value.
4816
cc8c88f3
AC
48172003-05-15 Andrew Cagney <cagney@redhat.com>
4818
4819 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4820 generic_find_dummy_frame.
4821 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4822 (deprecated_generic_find_dummy_frame): Update.
4823 (deprecated_read_register_dummy): Update.
4824 * frame.c (deprecated_generic_get_saved_register): Update.
4825
909cd28e
TR
48262003-05-15 Theodore A. Roth <troth@openavr.org>
4827
4828 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4829 (avr_gdbarch_init): Set breakpoint_from_pc method.
4830
b923b08d
AC
48312003-05-15 Andrew Cagney <cagney@redhat.com>
4832
4833 * regcache.c (build_regcache): Set deprecated_register_valid
4834 directly.
4835 (deprecated_grub_regcache_for_register_valid): Delete function.
4836 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4837 declaration.
4838
ae2f03ac 48392003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
4840
4841 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
4842 * symtab.c (lookup_symbol_aux): Delete calls to
4843 lookup_symbol_aux_minsyms.
4844 (lookup_symbol_aux_minsyms): Comment out function and
4845 prototype. Delete lookup by mangled name.
ae2f03ac 4846
18ec9831
KB
48472003-05-14 Kevin Buettner <kevinb@redhat.com>
4848
4849 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4850 correctly indicate an empty stack and ``stack_allocated'' to the
4851 indicate the number of elements initially allocated.
4852 (dwarf_expr_grow_stack): Simplify method for computing new
4853 stack size. Don't loop infinitely if ``stack_len'' is zero.
4854 (execute_stack_op): Move ``ctx->in_reg'' initialization
4855 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4856 be used in conjuction with DW_OP_piece. Revise error message
4857 accordingly.
4858
de18ac1f
TR
48592003-05-14 Theodore A. Roth <troth@openavr.org>
4860
4861 * MAINTAINERS: Update my email address.
4862 * avr-tdep.c: Ditto.
4863
176620f1
EZ
48642003-05-14 Elena Zannoni <ezannoni@redhat.com>
4865
4866 * symtab.h (enum domain_enum): Rename from namespace_enum.
4867 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4868 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4869 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4870 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4871 TYPES_NAMESPACE, METHODS_NAMESPACE.
4872 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4873 (struct symbol, struct partial_symbol): Rename field
4874 'namespace_enum namespace' to 'domain_enum domain'.
4875 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4876 Delete old define kludge for namespace.
4877
4878 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4879 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4880 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4881 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4882 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4883 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4884 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4885 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4886 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4887 occurrences of the above.
4888
b7f31508
ILT
48892003-05-14 Ian Lance Taylor <ian@airs.com>
4890
4891 * Makefile.in (install-only): Use $(SHELL) when running
4892 mkinstalldirs.
4893
2fdbdd39
ILT
48942003-05-13 Ian Lance Taylor <ian@airs.com>
4895
a208d82c
ILT
4896 * MAINTAINERS (write after approval): Add myself.
4897
2fdbdd39
ILT
4898 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4899 second and third arguments.
4900 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4901 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4902
fbd9dcd3
AC
49032003-05-13 Andrew Cagney <cagney@redhat.com>
4904
4905 * defs.h (store_address): Delete declaration.
4906 findvar.c (store_address): Delete function.
4907 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4908 store_unsigned_integer.
4909 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4910 * v850-tdep.c (v850_push_arguments): Ditto.
4911 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4912 * sh-tdep.c (sh64_get_saved_register): Ditto.
4913 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4914 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4915 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4916 (mips_get_saved_register): Ditto.
4917 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4918 (find_func_descr, ia64_push_arguments): Ditto.
4919 * i386-tdep.c (i386_push_arguments): Ditto.
4920 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4921 * frv-tdep.c (frv_push_arguments): Ditto.
4922 * frame.c (legacy_saved_regs_prev_register): Ditto.
4923 (deprecated_generic_get_saved_register): Ditto.
4924 * findvar.c (unsigned_address_to_pointer): Ditto.
4925 * dwarf2read.c (dwarf2_const_value): Ditto.
4926 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4927 * alpha-tdep.c (alpha_push_arguments): Ditto.
4928
6760f9e6
JB
49292003-05-12 J. Brobecker <brobecker@gnat.com>
4930
4931 * NEWS: Mention that the hppa-hpux port has been partially
4932 multiarched (32bit ABIT only, so far).
4933
30e221b4
AC
49342003-05-11 Andrew Cagney <cagney@redhat.com>
4935
4936 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4937 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4938 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4939 sim/testsuite/sim/arm/misaligned2.ms, and
4940 sim/testsuite/sim/arm/misaligned3.ms.
4941 * disasm.h (struct ui_file): Add opaque struct declaration.
4942 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4943 * frame.h (struct ui_file): Ditto.
4944
dea7f9ba
MK
49452003-05-11 Mark Kettenis <kettenis@gnu.org>
4946
4947 * value.h: Pretty print.
4948
01986c48
MK
49492003-05-10 Mark Kettenis <kettenis@gnu.org>
4950
4951 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4952
123a958e
AC
49532003-05-08 Andrew Cagney <cagney@redhat.com>
4954
4955 * regcache.h (max_register_size): Delete declaration.
4956 * regcache.c (max_register_size): Delete function.
4957 (struct regcache_descr): Delete field "max_register_size".
4958 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4959 registers fit in MAX_REGISTER_SIZE.
4960 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4961 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4962 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4963 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4964 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4965 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4966 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4967 * dve3900-rom.c, hppa-tdep.c: Ditto.
4968
eb294659
DC
49692003-05-08 David Carlton <carlton@math.stanford.edu>
4970
4971 * valops.c (push_word): Fix typo.
4972
d9d9c31f
AC
49732003-05-08 Andrew Cagney <cagney@redhat.com>
4974
4975 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4976 * gdbarch.h: Re-generate.
4977 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4978 (legacy_max_register_raw_size): Delete declaration.
4979 * regcache.c (legacy_max_register_raw_size): Delete function.
4980 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4981 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4982 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4983 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4984 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4985 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4986 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4987 * findvar.c, dwarf2cfi.c: Ditto.
4988
22540ece
AC
49892003-05-08 Andrew Cagney <cagney@redhat.com>
4990
4991 * mips-tdep.c (read_signed_register): New function, moved to here
4992 from "regcache.c".
4993 (read_signed_register_pid): Ditto.
4994 * regcache.c (read_signed_register_pid): Delete function, moved to
4995 "mips-tdep.c".
4996 (read_signed_register): Ditto.
4997 * regcache.h (read_signed_register): Delete declaration.
4998 (read_signed_register_pid): Delete declaration.
4999
0c92afe8
AC
50002003-05-08 Andrew Cagney <cagney@redhat.com>
5001
5002 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5003 * gdbarch.h: Re-generate.
5004 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5005 (legacy_max_register_virtual_size): Delete declaration.
5006 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5007 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5008 * tracepoint.c (memrange_sortmerge): Ditto.
5009 * sparc-tdep.c (sparc_print_registers): Ditto.
5010 * regcache.c (legacy_max_register_virtual_size): Delete function.
5011
6037b830
JB
50122002-05-08 J. Brobecker <brobecker@gnat.com>
5013
5014 * fork-child.c (escape_bang_in_quoted_argument): New function.
5015 (fork_inferior): Escape '!' characters in quoted arguments
5016 only when needed.
5017
5d62c8b1
JB
50182003-05-08 J. Brobecker <brobecker@gnat.com>
5019
5020 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5021 the language of the CU is not currently supported by GDB.
5022
20a0e81d
JB
50232003-05-08 J. Brobecker <brobecker@gnat.com>
5024
5025 * defs.h (language): Add language_minimal enum value.
5026 * c-lang.c (minimal_language_defn): New language definition.
5027 (_initialize_c_language): Add the new minimal language to the list
5028 of languages known to GDB.
5029
710ee10a
KB
50302003-05-08 Kevin Buettner <kevinb@redhat.com>
5031
5032 * frame.c (get_frame_type): Don't attempt to lazily initialize
5033 frame's unwinder for legacy frames.
5034
1750fa04
AC
50352003-05-07 Andrew Cagney <cagney@redhat.com>
5036
5037 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5038 and "regcache" parameters.
5039 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5040
ddf9f258 50412003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5042
5043 * dwarf2read.c (dwarf_decode_lines): Only use output of
5044 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5045 the current address.
5046
87767c29
AC
50472003-05-07 Andrew Cagney <cagney@redhat.com>
5048
5049 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5050 code.
5051
5e7b2f39
JB
50522003-05-07 Jim Blandy <jimb@redhat.com>
5053
5054 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5055 'maint info symtabs' and 'maint info psymtabs'.
5056 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5057 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5058 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5059 Declarations updated.
5060 * maint.c (maintenance_list_command): Delete.
5061 (_initialize_maint_cmds): Update calls to add_cmd.
5062 * gdbcmd.h (maintenancelistlist): Delete declaration.
5063 * cli/cli-cmds.c (maintenancelistlist): Delete.
5064 (init_cmd_lists): Don't initialize it.
5065 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5066
f6684c31
AC
50672003-05-07 Andrew Cagney <cagney@redhat.com>
5068
5069 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5070 "regcache".
5071 (d10v_print_registers_info): Update.
5072 (d10v_dmap_register, d10v_imap_register): Delete functions.
5073 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5074 and "imap_register".
5075 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5076 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5077 * arch-utils.c (generic_remote_translate_xfer_address): Add
5078 "regcache" and "gdbarch" parameters.
5079 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5080 parameter. Change class to multi-arch.
5081 * gdbarch.h, gdbarch.c: Re-generate.
5082 * remote.c (remote_xfer_memory): Use
5083 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5084
e4846b08
JJ
50852003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5086
5087 * infrun.c (prev_pc): Move declaration ahead of proceed().
5088 (proceed): Refresh prev_pc value before resuming.
5089 (stop_stepping): Remove code to refresh prev_pc.
5090
6b71b8ac
KW
50912003-05-06 Kris Warkentin <kewarken@qnx.com>
5092
5093 * nto-tdep.c: Removed stray comment.
5094
47979a4b
KW
50952003-05-06 Kris Warkentin <kewarken@qnx.com>
5096
5097 * i386-nto-tdep.c: Fix old K&R function definitions.
5098 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5099 Also change add_show_from_set() call to add_setshow_cmd().
5100 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5101
00905d52
AC
51022003-05-05 Andrew Cagney <cagney@redhat.com>
5103
5104 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5105 (fprint_dummy_frames): New function.
5106 (maintenance_print_dummy_frames): New function.
5107 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5108 * frame.c (fprint_frame_id): Make global.
5109 * frame.h (fprint_frame_id): Declare.
5110 * Makefile.in (dummy-frame.o): Update dependencies.
5111
b1e29e33
AC
51122003-05-05 Andrew Cagney <cagney@redhat.com>
5113
5114 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5115 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5116 SIZEOF_CALL_DUMMY_WORDS.
5117 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5118 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5119 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5120 CALL_DUMMY_BREAKPOINT_OFFSET.
5121 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5122 CALL_DUMMY_START_OFFSET.
5123 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5124 * gdbarch.h, gdbarch.c: Re-generate.
5125 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5126 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5127 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5128 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5129 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5130 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5131 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5132 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5133 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5134 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5135 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5136 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5137 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5138 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5139 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5140
51412003-05-05 Kris Warkentin <kewarken@qnx.com>
5142
5143 * configure.tgt: Add i[3456]86-*-nto*.
5144 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5145 * nto-tdep.c: New file. Neutrino target support routines.
5146 * nto-tdep.h: New file. Neutrino target header.
5147 * config/tm-qnxnto.h: New file.
5148 * config/i386/i386nto.mt: New file.
5149 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5150
0ce3d317
AC
51512003-05-04 Andrew Cagney <cagney@redhat.com>
5152
5153 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5154 (load_infrun_state): Ditto.
5155 (struct thread_info): Drop "prev_func_name" field.
5156 * thread.c (load_infrun_state): Update.
5157 (save_infrun_state): Update.
5158 * infrun.c (prev_func_name): Delete variable.
5159 (init_wait_for_inferior): Do not clear prev_func_name.
5160 (stop_stepping, keep_going, context_switch): Do not swap
5161 prev_func_name.
5162 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5163 instead of PC_IN_SIGTRAMP.
5164
46654a5b
AC
51652003-05-04 Andrew Cagney <cagney@redhat.com>
5166
5167 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5168 REGISTER_BYTE with register_offset_hack.
5169 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5170 that REGISTER_BYTE is consistent with the regcache.
5171 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5172 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5173
14b08c1b
MK
51742003-05-04 Mark Kettenis <kettenis@gnu.org>
5175
04c8243f
MK
5176 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5177 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5178
14b08c1b
MK
5179 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5180
c7a11e01
JB
51812003-05-03 J. Brobecker <brobecker@gnat.com>
5182
5183 From Thierry Schneider <tpschneider1@yahoo.com>
5184 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5185 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5186 (mi-cmd-symbol.o): Add rule.
5187
7043d8dc
AC
51882003-05-03 Andrew Cagney <cagney@redhat.com>
5189
5190 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5191 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5192 * gdbarch.h, gdbarch.c: Re-generate.
5193 * d10v-tdep.c (d10v_push_dummy_code): New function.
5194 (d10v_gdbarch_init): Set push_dummy_code.
5195 * infcall.c (legacy_push_dummy_code): New function.
5196 (generic_push_dummy_code): New function.
5197 (push_dummy_code): New function.
5198 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5199 instead of dummy_addr, to push_dummy_call. Move call to
5200 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5201 switch.
5202 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5203
92bf2b80
AC
52042003-05-03 Andrew Cagney <cagney@redhat.com>
5205
5206 * disasm.h (print_insn): Declare.
5207 * disasm.c (init_gdb_disassemble_info): New function.
5208 (gdb_disassembly): Call init_gdb_disassemble_info.
5209 (gdb_print_insn): New function.
5210 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5211 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5212 * mcore-tdep.c: Include "disasm.h"
5213 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5214 * d10v-tdep.c: Include "disasm.h".
5215 (display_trace): Call gdb_print_insn, instead of print_insn.
5216 (print_insn): Delete function.
5217 * printcmd.c: Include "disasm.h".
5218 (print_insn): Delete function.
5219 (print_formatted): Call gdb_print_insn, instead of print_insn.
5220 * Makefile.in (printcmd.o): Update dependencies.
5221 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5222
27d94c49
AC
52232003-05-02 Andrew Cagney <cagney@redhat.com>
5224
82de1e5b
AC
5225 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5226 PC_REGNUM, re-indent.
5227 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5228 PC_REGNUM isn't set.
5229
27d94c49
AC
5230 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5231 * gdbarch.h, gdbarch.c: Re-generate.
5232 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5233 register_virtual_size, pc_regnum, or register_bytes.
5234 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5235 (d10v_register_type): Use D10V_PC_REGNUM.
5236 (d10v_print_registers_info, d10v_read_pc): Ditto.
5237 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5238 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5239
a9c0dc7f
DC
52402003-05-02 David Carlton <carlton@bactrian.org>
5241
5242 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5243 the name with mstrsave.
5244
e33d66ec
EZ
52452003-05-02 Elena Zannoni <ezannoni@redhat.com>
5246
5247 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5248 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5249 (host_charset_name, target_charset_name): New vars for use by
5250 set/show commands.
5251 (host_charset_enum, target_charset_enum): New enums for set/show
5252 commands.
5253 (set_charset_sfunc, set_host_charset_sfunc,
5254 set_target_charset_sfunc): New functions.
5255 (set_host_charset, set_target_charset): Make static.
5256 (list_charsets, set_host_charset_command,
5257 set_target_charset_command): Delete functions.
5258 (show_charset_command): Rewrite as....
5259 (show_charset): Hook this up with the set/show command mechanism.
5260 (_initialize_charset): Change names of charsets to match the
5261 set/show enums. Use host_charset_name and target_charset_name.
5262 Use set/show mechanism for charset, host-charset, target-charset
5263 commands. Do not make 'show host-charset' and 'show
5264 target-charset' be aliases of 'show charset'.
5265
5266 * charset.h (set_host_charset, set_target_charset): Don't export,
5267 they are not used outside the file.
5268
2b6fd0d8
AC
52692003-05-01 Andrew Cagney <cagney@redhat.com>
5270
5271 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5272 (gdb_disassembly): Make "di" non static, always initialize and
5273 cleanup. Always use dis_asm_read_memory.
5274 (gdb_dis_asm_read_memory): Delete function.
5275
6ae2f580
AC
52762003-05-01 Andrew Cagney <cagney@redhat.com>
5277
5278 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5279 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5280
810ecf9f
AC
52812003-04-30 Andrew Cagney <cagney@redhat.com>
5282
5283 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5284 "tm_print_insn_info".
5285 (TARGET_PRINT_INSN_INFO): Delete macro.
5286 (dis_asm_read_memory): Delete function declaration.
5287 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5288 (tm_print_insn_info): Delete variable definition.
5289 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5290 * gdbarch.h, gdbarch.c: Re-generate.
5291 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5292 "deprecated_tm_print_insn_info".
5293 * mcore-tdep.c (mcore_dump_insn): Ditto.
5294 * mips-tdep.c (mips_gdbarch_init): Ditto.
5295 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5296 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5297 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5298 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5299 instead of TARGET_PRINT_INSN_INFO, add comment.
5300 * s390-tdep.c (s390_get_frame_info): Instead of
5301 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5302 (s390_check_function_end, s390_is_sigreturn): Ditto.
5303 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5304 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5305 * disasm.c: Include "gdbcore.h".
5306 (_initialize_disasm): New function, initialize
5307 "deprecated_tm_print_insn_info".
5308 (deprecated_tm_print_insn_info): New variable.
5309 (dis_asm_read_memory): Moved from "corefile.c", made static.
5310 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5311 * Makefile.in (disasm.o): Update dependencies.
5312
07020390
AC
53132003-04-30 Andrew Cagney <cagney@redhat.com>
5314
5315 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5316
a9fa03de
AF
53172003-04-29 Adam Fedor <fedor@gnu.org>
5318
5319 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5320 * infcall.c (find_function_addr): Make non-static.
5321 * infcall.h (find_function_addr): Declare.
5322 * Makefile.in (eval.o): Update dependencies.
5323
1bae87b9
AF
53242003-04-28 Adam Fedor <fedor@gnu.org>
5325
5326 * symtab.c (symbol_find_demangled_name): Check for and demangle
5327 ObjC symbols.
5328 (symbol_init_demangled_name): Init for language_objc as well.
5329
0ba6dca9
AC
53302003-04-28 Andrew Cagney <cagney@redhat.com>
5331
5332 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5333 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5334 * gdbarch.h, gdbarch.c: Re-generate.
5335 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5336 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5337 * inferior.h (deprecated_read_fp): Rename read_fp.
5338 (generic_target_read_fp): Delete declaration.
5339 * regcache.c (generic_target_read_fp): Delete function.
5340 (deprecated_read_fp): Replace read_fp, use
5341 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5342 * d10v-tdep.c (d10v_read_fp): Delete function.
5343 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5344
5345 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5346 deprecated_target_read_fp to generic_target_read_fp.
5347 * sh-tdep.c (sh_gdbarch_init): Ditto.
5348 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5350 * frv-tdep.c (frv_gdbarch_init): Ditto.
5351
5352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5353 deprecated_fp_regnum.
5354 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5355 * vax-tdep.c (vax_gdbarch_init): Ditto.
5356 * v850-tdep.c (v850_gdbarch_init): Ditto.
5357 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5358 * sh-tdep.c (sh_gdbarch_init): Ditto.
5359 * s390-tdep.c (s390_gdbarch_init): Ditto.
5360 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5361 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5362 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5363 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5365 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5366 * i386-tdep.c (i386_gdbarch_init): Ditto.
5367 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5368 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5369 * frv-tdep.c (frv_gdbarch_init): Ditto.
5370 * cris-tdep.c (cris_gdbarch_init): Ditto.
5371 * avr-tdep.c (avr_gdbarch_init): Ditto.
5372 * arm-tdep.c (arm_gdbarch_init): Ditto.
5373 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5374
5375 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5376 * v850-tdep.c (v850_gdbarch_init): Ditto.
5377 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5378 * sh-tdep.c (sh_gdbarch_init): Ditto.
5379 * s390-tdep.c (s390_gdbarch_init): Ditto.
5380 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5381 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5382 * mips-tdep.c (mips_gdbarch_init): Ditto.
5383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5384 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5385 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5386 * frv-tdep.c (frv_gdbarch_init): Ditto.
5387 * avr-tdep.c (avr_gdbarch_init): Ditto.
5388 * arm-tdep.c (arm_gdbarch_init): Ditto.
5389
5390 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5391 DEPRECATED_FP_REGNUM.
5392 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5393 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5394 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5395 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5396 (sparc32_register_virtual_type): Ditto.
5397 * sh-tdep.c (sh64_frame_chain): Ditto.
5398 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5399 (sh_nofp_frame_init_saved_regs): Ditto.
5400 (sh64_nofp_frame_init_saved_regs): Ditto.
5401 (sh_fp_frame_init_saved_regs): Ditto.
5402 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5403 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5404 * procfs.c (procfs_fetch_registers): Ditto.
5405 (procfs_store_registers): Ditto.
5406 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5407 (store_inferior_registers, fetch_core_registers): Ditto.
5408 (fetch_kcore_registers, clear_regs): Ditto.
5409 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5410 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5411 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5412 * nlm/i386.c (do_status): Ditto.
5413 * mipsv4-nat.c (supply_gregset): Ditto.
5414 * mips-tdep.c: Ditto for comments.
5415 * mips-nat.c (fetch_inferior_registers): Ditto.
5416 (store_inferior_registers, fetch_core_registers): Ditto.
5417 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5418 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5419 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5420 (i386_do_pop_frame, i386_register_type): Ditto.
5421 * hppa-tdep.c (hppa_frame_chain): Ditto.
5422 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5423 (hppa_pop_frame, hppa_read_fp): Ditto.
5424 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5425 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5426 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5427 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5428 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5429 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5430 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5431 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5432 * blockframe.c: Ditto for comments.
5433 * arch-utils.h: Ditto for comments.
5434 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5435 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5436 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5437 * alpha-tdep.h: Ditto for comments.
5438 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5439 (alpha_cannot_store_register): Ditto.
5440 (alpha_push_dummy_frame): Ditto.
5441 * alpha-nat.c (supply_gregset): Ditto.
5442
5443 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5444 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5445 * config/sparc/tm-sparc.h: Update comment.
5446
5447 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5448 deprecated_read_fp instead of TARGET_READ_FP.
5449 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5450 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5451 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5452 deprecated_read_fp instead of read_fp.
5453 * s390-tdep.c (s390_push_arguments): Ditto.
5454 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5455 * frame.h: Ditto in comments.
5456 * frame.c (legacy_get_prev_frame): Ditto.
5457 * dummy-frame.c (dummy_frame_this_id): Ditto.
5458 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5459
d7a27068
AC
54602003-04-28 Andrew Cagney <cagney@redhat.com>
5461
5462 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5463 * gdbarch.h, gdbarch.c: Re-generate.
5464 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5465 * vax-tdep.c (_initialize_vax_tdep): Update.
5466 * v850-tdep.c (_initialize_v850_tdep): Update.
5467 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5468 * s390-tdep.c (_initialize_s390_tdep): Update.
5469 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5470 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5471 * mips-tdep.c (_initialize_mips_tdep): Update.
5472 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5473 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5474 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5475 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5476 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5477 * frv-tdep.c (_initialize_frv_tdep): Update.
5478 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5479 (_initialize_cris_tdep): Update.
5480 * arch-utils.c (legacy_print_insn): Update.
5481 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5482
d2630e69
AF
54832003-04-26 Adam Fedor <fedor@gnu.org>
5484
5485 * linespec.c (decode_objc): New function to decode ObjC calls
5486 (decode_line_1): Check for ObjC calls (using decode_objc)
5487 * Makefile (linespec.o): Update dependencies.
5488
3086aeae
DJ
54892003-04-26 Daniel Jacobowitz <drow@mvista.com>
5490
5491 * breakpoint.h (struct breakpoint_ops): New.
5492 (struct breakpoint): Add ops member.
5493
5494 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5495 (mention): Use new breakpoint ops member.
5496 (set_raw_breakpoint): Initialize ops field to NULL.
5497 (print_exception_catchpoint, print_one_exception_catchpoint)
5498 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5499 (gnu_v3_exception_catchpoint_ops): New.
5500 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5501
1fbec6c3
AF
55022003-04-25 Adam Fedor <fedor@gnu.org>
5503
5504 * Makefile.in (COMMON_OBS): Add objc-lang.o
5505
0ef21242
AC
55062003-04-25 Andrew Cagney <cagney@redhat.com>
5507
5508 * d10v-tdep.c (print_insn): Delete function.
5509 (display_trace): Use TARGET_PRINT_INSN.
5510 (_initialize_d10v_tdep): Do not set tm_print_insn.
5511 (d10v_gdbarch_init): Set print_insn.
5512
f75493ed
AC
55132003-04-25 Andrew Cagney <cagney@redhat.com>
5514
5515 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5516 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5517 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5518 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5519 (nr_dmap_regs, a0_regnum): ... new functions.
5520 (d10v_print_registers_info): Use a0_regnum, use register_size.
5521 (d10v_register_byte): Delete function.
5522 (d10v_register_raw_size): Delete function.
5523 (d10v_register_type): Use a0_regnum.
5524 (d10v_print_registers_info): Use a0_regnum.
5525 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5526 (d10v_gdbarch_init): Do not set register_byte or
5527 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5528 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5529 extract_address.
5530 (trace_command): Use XCALLOC.
5531 (print_insn): Delete reference to tm_print_insn.
5532 (saved_regs_unwinder): Use store_unsigned_integer instead of
5533 store_address.
5534 * frame.h (FRAME_OBSTACK_CALLOC): Define
5535
2202b100
DC
55362003-04-25 David Carlton <carlton@bactrian.org>
5537
5538 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5539
4e45ca2e
AF
55402003-04-24 Adam Fedor <fedor@gnu.org>
5541
5542 * objc-lang.c: Include "valprint.h"
5543 * Makefile.in (objc-lang.o): Update dependencies.
5544
93de3e7f
AF
55452003-04-24 Adam Fedor <fedor@gnu.org>
5546
8ffd9b1b 5547 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5548 architecture dependant compilation and mark as unimplemented
5549 (until they get put in the gdbarch vector).
5550
0f20eeea
DC
55512003-04-23 David Carlton <carlton@bactrian.org>
5552
5553 * cp-support.c (cp_find_first_component): Accept 'operator' in
5554 more locations.
5555
74cfe982
AC
55562003-04-23 Andrew Cagney <cagney@redhat.com>
5557
5558 * infcall.c (call_function_by_hand): Eliminate redundant
5559 indentation. Move "saved_async" and "old_cleanups" to where they
5560 are needed.
8ffd9b1b 5561
52557533
AC
55622003-04-23 Andrew Cagney <cagney@redhat.com>
5563
5564 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5565 and "buffer". Move the "name" code to where it is needed.
5566
158775de
AC
55672003-04-23 Andrew Cagney <cagney@redhat.com>
5568
5569 * infcall.c (call_function_by_hand): Move variables "start_sp",
5570 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5571 code to ON_STACK switch branch.
8ffd9b1b 5572
ebc7896c
AC
55732003-04-23 Andrew Cagney <cagney@redhat.com>
5574
5575 * infcall.c (call_function_by_hand): Make declaration of "i",
5576 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5577 lint.
5578
d727590f
AC
55792003-04-23 Andrew Cagney <cagney@redhat.com>
5580
5581 * infcall.c (call_function_by_hand): Delete variable
5582 "n_method_args". Localize "param_type"'s declaration to the loop
5583 that it is used. Reinstate code assigning to said variable -
5584 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5585 Rationalize code using "param_type".
5586
d585e13a
AC
55872003-04-22 Andrew Cagney <cagney@redhat.com>
5588
5589 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5590 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5591 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5592 to DEPRECATED_PUSH_RETURN_ADDRESS.
5593
051caad9
KB
55942003-04-22 Kevin Buettner <kevinb@redhat.com>
5595
5596 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5597 on the DWARF2 register number prior to fetching a register.
5598
77296879
JB
55992003-04-22 J. Brobecker <brobecker@gnat.com>
5600
5601 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5602 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5603 this macro was always set to 0.
77296879
JB
5604 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5605 considering the fact that this macro was always set to 0.
5606 * hppa-tdep.h (hppa_store_return_value): Likewise.
5607 (hppa_extract_return_value): Likewise.
5608
4252f1df
JB
56092003-04-22 J. Brobecker <brobecker@gnat.com>
5610
5611 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5612 the hppa-pro target only.
5613
14604c6b
JB
56142003-04-21 J. Brobecker <brobecker@gnat.com>
5615
5616 Ongoing multi-arch conversion effort for HP/UX:
5617 * config/pa/tm-hppa.h: Move all macro that are no longer
5618 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5619 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5620
77eb01d1
JB
56212003-04-21 J. Brobecker <brobecker@gnat.com>
5622
5623 * config/pa/tm-hppa.h: Obsolete a section that was only used
5624 for hppa-pro.
5625
61995b3b
JB
56262003-04-21 J. Brobecker <brobecker@gnat.com>
5627
5628 Ongoing multi-arch conversion for HP/UX.
5629 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5630 if already defined (allows hppa64 to stay non-multiarched for now).
5631 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5632
4aa79dcc
AC
56332003-04-21 Andrew Cagney <cagney@redhat.com>
5634
5635 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5636
0f751ff2
AC
56372003-04-21 Andrew Cagney <cagney@redhat.com>
5638
5639 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5640 "i386_num_mmx_regs".
5641
04714b91
AC
56422003-04-21 Andrew Cagney <cagney@redhat.com>
5643
5644 * infcall.c: New file.
5645 * infcall.h: New file.
5646 * valarith.c: Include "infcall.h".
5647 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5648 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5649 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5650 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5651 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5652 (SFILES): Add "infcall.c"
5653 (COMMON_OBS): Add "infcall.o".
5654 (infcall.o): Specify dependencies.
5655 * value.h (call_function_by_hand): Delete declaration.
5656 * inferior.h (run_stack_dummy): Delete declaration.
5657 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5658 (run_stack_dummy): Move to "infcall.c", merged into
5659 call_function_by_hand.
5660 * valops.c (call_function_by_hand): Moved to "infcall.c".
5661 (find_function_addr, value_arg_coerce): Ditto.
5662 (unwindonsignal_p, coerce_float_to_double): Ditto.
5663 (_initialize_valops): Move "set/show coerce-float-to-double", and
5664 "set/show unwindonsignal" commands to "infcall.c".
5665 * v850-tdep.c, target.h: Update comments.
5666 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5667 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5668 (sh64_init_extra_frame_info): Update comments.
5669 * mn10300-tdep.c: Update comments.
5670 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5671 * config/sparc/tm-sparc.h: Update comments.
5672 * breakpoint.h: Update comments.
5673 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5674 * arm-tdep.c: Update comment.
5675
f9d3c2a8
MK
56762003-04-19 Mark Kettenis <kettenis@gnu.org>
5677
c40e1eab
MK
5678 * i386-tdep.c (i386_num_register_names): New variable.
5679 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5680 (MM0_REGNUM): Remove redundant parentheses in define.
5681 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5682 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5683 i386_mxcsr_regnum_p): Remove redundant parentheses.
5684 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5685
94ea66b3
MK
5686 * i386-tdep.c (i386_extract_return_value,
5687 i386_store_return_value): Correct check for availability of
5688 floating-point registers.
5689
54299a1d
MK
5690 * i386-tdep.c (i386_frame_num_args): Remove function.
5691 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5692
c86c27af
MK
5693 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5694 mmx_regnum_to_fp_regnum. Adjust all callers.
5695
f9d3c2a8
MK
5696 * i386-tdep.c (i386_get_longjmp_target): Use
5697 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5698 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5699 extract_address.
5700
94ba74a9
MK
57012003-04-19 Mark Kettenis <kettenis@gnu.org>
5702
5703 * core-regset.c: Update comments to reflect reality. Re-order
5704 includes.
5705 (fetch_core_registers): Use switch instead of if. Remove
5706 redundant prototype.
5707
4074e13c
JB
57082003-04-18 Jim Blandy <jimb@redhat.com>
5709
5710 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5711 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5712
e3ab4aba
RH
57132003-04-17 Richard Henderson <rth@redhat.com>
5714
5715 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5716
627bf7c1
EZ
57172003-04-17 Michael Snyder <msnyder@redhat.com>
5718 Karen Bennet <bennet@redhat.com>
5719
5720 Committed by Elena Zannoni <ezannoni@redhat.com>
5721 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5722
514621a9
EZ
57232003-04-17 Elena Zannoni <ezannoni@redhat.com>
5724
5725 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5726 value if the return type is void.
514621a9 5727
b4acd559
JJ
57282003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5729
5730 * thread-db.c: Reindented.
8ffd9b1b 5731
530b167e 57322003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5733
5734 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5735 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5736 as types.
5737
0a48e7e8
MS
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
8ffd9b1b 5761
ab9fe00e
KB
57622003-04-16 Kevin Buettner <kevinb@redhat.com>
5763
610a3745 5764 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5765 the size of ``long double'' to 16, instead of 8.
5766
e64a344c
MK
57672003-04-16 Mark Kettenis <kettenis@gnu.org>
5768
5769 * i386-linux-nat.c: Add some whitespace to make things more
5770 readable.
5771 (fetch_register, store_register, fetch_inferior_registers,
5772 store_inferior_registers): Get rid of assignment in if-statement.
5773 (store_register): Fix typo in error message.
5774
25d41031
AC
57752003-04-16 Andrew Cagney <cagney@redhat.com>
5776
5777 * utils.c (xmmalloc): Always allocate something, matches
5778 libiberty/xmalloc's semantics.
5779 (xmrealloc, xmcalloc): Ditto.
5780
c50901fd
AC
57812003-04-16 Andrew Cagney <cagney@redhat.com>
5782
5783 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5784 update comments.
5785 (get_frame_type): Initialize unwind and type when needed.
5786 (get_frame_id, frame_register_unwind): Ditto.
5787
f81824a9
AC
57882003-04-16 Andrew Cagney <cagney@redhat.com>
5789
5790 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5791 obsolete.
5792 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5793 * sparcl-stub.c: Obsolete file.
5794 * config/sparc/tm-sparclet.h: Obsolete file.
5795 * sparclet-stub.c: Obsolete file.
5796 * sparclet-rom.c: Obsolete file.
5797 * sparcl-tdep.c: Obsolete file.
5798 * config/sparc/tm-sparclite.h: Obsolete file.
5799 * config/sparc/sparclite.mt: Obsolete file.
5800 * config/sparc/sparclet.mt: Obsolete file.
5801 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5802 sparc86x-*-* obsolete.
5803
9219021c
DC
58042003-04-15 David Carlton <carlton@math.stanford.edu>
5805
5806 * Makefile.in (SFILES): Add cp-namespace.c.
5807 (COMMON_OBS): Add cp-namespace.o.
5808 (block.o): Depend on gdb_obstack_h and cp_support_h.
5809 (buildsym.o): Depend on cp_support_h.
5810 (cp-namespace.o): New.
5811 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5812 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5813 (dwarf2read.o): Depend on cp_support_h.
5814 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5815 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5816 processing_current_namespace.
5817 (read_namespace): Update processing_current_namespace; check for
5818 anonymous namespaces.
5819 (dwarf2_name): New function.
5820 (dwarf2_extension): Ditto.
5821 * cp-support.h: Update copyright, contributors.
5822 Add inclusion guards.
5823 Add opaque declaration for structs obstack, block, symbol.
5824 (struct using_direct): New struct.
5825 Add declarations for cp_find_first_component,
5826 cp_entire_prefix_len, processing_has_namespace_info,
5827 processing_current_namespace, cp_is_anonymous,
5828 cp_add_using_directive, cp_initialize_namespace,
5829 cp_finalize_namespace, cp_set_block_scope,
5830 cp_scan_for_anonymous_namespaces.
5831 * cp-namespace.c: New file.
5832 * cp-support.c: Update copyright.
5833 Include ctype.h, gdb_assert.h, gdbcmd.h.
5834 New variable maint_cplus_cmd_list.
5835 (cp_find_first_component): New function.
5836 (cp_entire_prefix_len, maint_cplus_command)
5837 (first_component_command, _initialize_cp_support): Ditto.
5838 * buildsym.c: Include cp-support.h.
5839 New variable using_list.
5840 (add_symbol_to_list): Check for anonymous namespaces.
5841 (finish_block): Set block's scope.
5842 (start_symtab): Initialize C++ namespace support.
5843 (end_symtab): Finalize C++ namespace support.
5844 * block.h: Add opaque declarations for structs
5845 block_namespace_info, using_direct, and obstack.
5846 Add declarations for block_set_scope and block_set_using.
5847 (struct block): Add 'language_specific' member.
5848 (BLOCK_NAMESPACE): New macro.
5849 * block.c: Include gdb_obstack.h and cp-support.h.
5850 (struct block_namespace_info): New struct.
5851 (block_set_scope): New function.
5852 (block_set_using, block_initialize_namespace): Ditto.
5853
d5a921c9
KB
58542003-04-14 Kevin Buettner <kevinb@redhat.com>
5855
5856 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5857 (locate_base): Return early if there aren't any link map offsets.
5858 (svr4_solib_create_inferior_hook): Warn if shared library support
5859 is unavailable.
5860
d2a52b27
DC
58612003-04-14 David Carlton <carlton@math.stanford.edu>
5862
5863 * symtab.c (symbol_set_names): Add prefix when storing Java names
5864 in hash table. Fix for PR java/1039.
5865
980cae7a
DC
58662003-04-14 David Carlton <carlton@math.stanford.edu>
5867
5868 * symtab.c (symbol_set_names): Rename 'name' arg to
5869 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5870 * symtab.h: Change 'name' argument in declaration of
5871 symbol_set_names to 'linkage_name'.
5872 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5873
e227b13c
AC
58742003-04-14 Andrew Cagney <cagney@redhat.com>
5875
5876 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5877 return the fully sign-extended register value.
5878 (get_frame_pointer): Ditto.
5879 (mips_pop_frame): Initialize "proc_desc" after checking for a
5880 dummy frame.
5881
36712a20
AC
58822003-04-14 Andrew Cagney <cagney@redhat.com>
5883
5884 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5885 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5886 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5887 (mips_push_register): Delete function.
5888 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5889 PUSH_FP_REGNUM.
5890
44ea7b70
JB
58912003-04-14 Jim Blandy <jimb@redhat.com>
5892
5893 * symmisc.c: #include "gdb_regex.h".
5894 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5895 functions.
5896 * maint.c (maintenance_list_command): New function.
5897 (_initialize_maint_cmds): Register the above as commands.
5898 * symtab.h (maintenance_list_symtabs,
5899 maintenance_list_psymtabs): New declarations.
5900 * cli/cli-cmds.c (maintenancelistlist): New variable.
5901 (init_cmd_lists): Initialize it.
5902 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5903 * gdbcmd.h (maintenancelistlist): New declaration.
5904 * Makefile.in (symmisc.o): Update dependencies.
5905
2d0c7962
EZ
59062003-04-14 Elena Zannoni <ezannoni@redhat.com>
5907
5908 * s390-nat.c: Include asm/types.h for addr_t.
5909
1947a811
CV
59102003-04-14 Corinna Vinschen <vinschen@redhat.com>
5911
5912 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5913 actually incoming type.
5914
adb616d7
AC
59152003-04-13 Andrew Cagney <cagney@redhat.com>
5916
5917 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5918 get_next_frame and get_frame_saved_regs.
5919
9b5e151c
AC
59202003-04-13 Andrew Cagney <cagney@redhat.com>
5921
5922 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5923 of gdbarch_num_regs.
5924
ef6e7e13
AC
59252003-04-13 Andrew Cagney <cagney@redhat.com>
5926
5927 * frame.h: Mention what replaced what in "struct frame_info".
5928 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5929 deprecated_update_frame_base_hack and
5930 deprecated_update_frame_pc_hack.
5931 * hppa-tdep.c: Ditto.
5932
61fbb938
DJ
59332003-04-13 Daniel Jacobowitz <drow@mvista.com>
5934
5935 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5936 to read_reg and update its comment. Remove regnum member.
5937 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5938 Don't call read_reg when setting in_reg. Call read_reg to get
5939 the frame base if it's in a register. Return the register number
5940 on the stack instead of in the context. Remove extra arguments
5941 to read_reg.
5942 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5943 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5944 the register number on the expression stack.
5945 (needs_frame_read_reg): Remove extra arguments.
5946
0d53c4c4
DJ
59472003-04-13 Daniel Jacobowitz <drow@mvista.com>
5948
5949 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5950 made non-static.
5951 (execute_stack_op): All callers updated.
5952 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5953 * dwarf2loc.c (find_location_expression): New function.
5954 (dwarf_expr_frame_base): Call it.
5955 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5956 (dwarf2_tracepoint_var_ref): New function, broken out from
5957 locexpr_tracepoint_var_ref.
5958 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5959 Make static.
5960 (loclist_read_variable, loclist_read_needs_frame): New functions.
5961 (loclist_describe_location, loclist_tracepoint_var_ref): New
5962 functions.
5963 (dwarf2_loclist_funcs): New struct location_funcs.
5964 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5965 (struct dwarf2_locexpr_baton): Add comments.
5966 (dwarf2_loclist_funcs): New extern.
5967 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5968 base_address and base_known.
5969 (dwarf_loc_buffer): New variable.
5970 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5971 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5972 (dwarf2_has_info): Initialize dwarf_loc_offset.
5973 (dwarf2_build_psymtabs): Read in .debug_loc.
5974 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5975 DWARF_LOC_SIZE.
5976 (psymtab_to_symtab_1): Likewise. Move base address calculation
5977 here, from...
5978 (dwarf2_get_pc_bounds): ... here. Use the base address from
5979 cu_header.
5980 (dwarf2_symbol_mark_computed): Handle location lists.
5981
6aca59a3
DJ
59822003-04-13 Daniel Jacobowitz <drow@mvista.com>
5983
5984 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5985 if the linkage name demangled successfully.
5986
aca1fcd0
MK
59872003-04-13 Mark Kettenis <kettenis@gnu.org>
5988
97095916
MK
5989 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5990 disassmbly_flavour): Removed.
5991
aca1fcd0
MK
5992 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5993
562a961f
MK
59942003-04-13 Mark Kettenis <kettenis@gnu.org>
5995
5996 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5997
bd013d54
AC
59982003-04-12 Andrew Cagney <cagney@redhat.com>
5999
6000 * frame.h (struct frame_info): Move definition from here ...
6001 * frame.c (struct frame_info): ... to here.
6002
167ef8b1
AC
60032003-04-12 Andrew Cagney <cagney@redhat.com>
6004
6005 * gdbthread.h (save_infrun_state): Delete parameter
6006 "prev_func_start".
6007 (struct thread_info): Delete field "prev_func_start".
6008 (load_infrun_state): Ditto.
6009 * thread.c (load_infrun_state, save_infrun_state): Update.
6010 * infrun.c (prev_func_start): Delete variable.
6011 (context_switch, init_wait_for_inferior): Update.
6012 (stop_stepping, keep_going): Update.
6013
da3331ec
AC
60142003-04-12 Andrew Cagney <cagney@redhat.com>
6015
6016 * gdbarch.sh: Add missing opaque declarations.
6017 * gdbarch.h: Regnerate.
6018 * symtab.h: Add missing opaque declarations.
6019 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6020 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6021 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6022 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6023 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6024 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6025 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6026 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6027 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6028 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6029 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6030 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6031 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6032
18adea3f
AC
60332003-04-11 Andrew Cagney <cagney@redhat.com>
6034
6035 * frame.c (get_frame_id): Return this frame's "id".
6036 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6037 function start.
6038 (legacy_saved_regs_this_id): Replace function body with
6039 internal-error.
6040 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6041 FRAME_OBSTACK_ZALLOC.
6042 (create_new_frame): Mark the frame ID as valid.
6043
2252e863
AO
60442003-04-11 Alexandre Oliva <aoliva@redhat.com>
6045
6046 * Makefile.in (libbfd_h): Added missing setting.
6047 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6048 according to the selected ABI.
6049
a8245ab8
JJ
60502003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6051
6052 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6053
6913c89a
AC
60542003-04-11 Andrew Cagney <cagney@redhat.com>
6055
6056 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6057 SAVED_PC_AFTER_CALL.
6058 * gdbarch.h, gdbarch.c: Regenerate.
6059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6060 * x86-64-tdep.c (x86_64_init_abi): Update.
6061 * vax-tdep.c (vax_gdbarch_init): Update.
6062 * v850-tdep.c (v850_gdbarch_init): Update.
6063 * sparc-tdep.c (sparc_gdbarch_init): Update.
6064 * sh-tdep.c (sh_gdbarch_init): Update.
6065 * s390-tdep.c (s390_gdbarch_init): Update.
6066 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6067 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6069 * mips-tdep.c (mips_gdbarch_init): Update.
6070 * mcore-tdep.c (mcore_gdbarch_init): Update.
6071 * m68k-tdep.c (m68k_gdbarch_init): Update.
6072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6073 * ia64-tdep.c (ia64_gdbarch_init): Update.
6074 (ia64_saved_pc_after_call): Update declaration.
6075 * i386ly-tdep.c (i386lynx_init_abi): Update.
6076 * i386-tdep.c (i386_gdbarch_init): Update.
6077 * hppa-tdep.c (hppa_gdbarch_init): Update.
6078 * h8300-tdep.c (h8300_gdbarch_init): Update.
6079 * frv-tdep.c (frv_gdbarch_init): Update.
6080 * cris-tdep.c (cris_gdbarch_init): Update.
6081 * avr-tdep.c (avr_gdbarch_init): Update.
6082 * arm-tdep.c (arm_gdbarch_init): Update.
6083 * alpha-tdep.c (alpha_gdbarch_init): Update.
6084 * ns32knbsd-nat.c (frame_num_args): Update.
6085 * ns32k-tdep.c (umax_frame_num_args): Update.
6086 * mips-tdep.c (mips_init_frame_pc_first): Update.
6087 * infrun.c (step_over_function): Update.
6088 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6089 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6090 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6091 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6092 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6093 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6094 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6095 * arch-utils.c (init_frame_pc_default): Update.
6096 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6097 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6098 declaration.
8ffd9b1b 6099
38edeab8
AC
61002003-04-11 Andrew Cagney <cagney@redhat.com>
6101
6102 * i387-tdep.c: Update copyright.
6103 (i387_to_double): Delete function.
6104 (double_to_i387): Delete function.
6105
81f8a206
AC
61062003-04-10 Andrew Cagney <cagney@redhat.com>
6107
6108 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6109 frame's function's address. Simplify.
6110 (d10v_frame_unwind_cache): Check that the frame's function is
6111 non-zero.
6112
6e691f7a
JB
61132003-04-10 Jim Blandy <jimb@redhat.com>
6114
6115 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6116 call to set_gdbarch_deprecated_push_arguments.
6117
7f78e237
AC
61182003-04-10 Andrew Cagney <cagney@redhat.com>
6119
6120 * frame.c (fprint_frame_id): New function.
6121 (fprint_frame_type, fprint_frame): New function.
6122 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6123 (create_sentinel_frame, get_frame_id): Ditto.
6124 (frame_id_p, frame_id_eq): Ditto.
6125 (frame_id_inner, create_new_frame): Ditto.
6126 (legacy_get_prev_frame, get_prev_frame): Ditto.
6127 (deprecated_update_frame_pc_hack): Ditto.
6128 (frame_register_unwind): Ditto.
6129 (deprecated_update_frame_base_hack): Ditto.
6130
f870b49b
CV
61312003-04-10 Corinna Vinschen <vinschen@redhat.com>
6132
6133 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6134 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6135 frame_chain function.
6136 * Makefile.in: Add dependencies due to above change.
6137
7c86889b
CV
61382003-04-10 Corinna Vinschen <vinschen@redhat.com>
6139
6140 * blockframe.c (legacy_frame_chain_valid): Move call to
6141 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6142 inside_entry_file.
6143
d0a55772
AC
61442003-04-09 Andrew Cagney <cagney@redhat.com>
6145
6146 * frame.h (struct frame_id): Replace "pc" and "base" with
6147 "stack_addr" and "code_addr". Update comments.
6148 (frame_id_build): Update parameter names and comment.
6149 (struct frame_info): Replace "id_p" and "id" with "this_id".
6150 * dummy-frame.c (dummy_frame_this_id): Update.
6151 * breakpoint.c (print_one_breakpoint): Update.
6152 * frame.c (get_frame_id): Update.
6153 (get_frame_base, frame_id_build): Update.
6154 (create_sentinel_frame, legacy_get_prev_frame): Update.
6155 (deprecated_update_frame_base_hack): Update.
6156 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6157 (frame_id_inner): Ditto.
6158
ac16bf07
AC
61592003-04-09 Andrew Cagney <cagney@redhat.com>
6160
6161 * defs.h (gdb_print_host_address): Make "addr" parameter a
6162 pointer constant.
6163 * utils.c (gdb_print_host_address): Update.
6164
366cfc9e
KB
61652003-04-09 Kevin Buettner <kevinb@redhat.com>
6166
6167 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6168 register number for R0 is 0.
6169
cd983b5c
JB
61702003-04-09 J. Brobecker <brobecker@gnat.com>
6171
6172 * frame.h (struct gdbarch): Add opaque structure definition
6173 to avoid a compilation warning on LynxOS 4.0.
6174
d1340264
AC
61752003-04-09 Andrew Cagney <cagney@redhat.com>
6176
6177 * frame.h (struct frame_info): Delete field "pc". Replace
6178 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6179 structure.
6180 * frame.c (frame_pc_unwind): Update.
6181 (create_sentinel_frame): Do not set "pc".
6182 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6183 (get_frame_pc): Call frame_pc_unwind.
6184 (deprecated_update_frame_pc_hack): Update.
6185 (create_new_frame): Use "pc" not "->pc".
6186
90a6fffb
AC
61872003-04-09 Andrew Cagney <cagney@redhat.com>
6188
6189 * frame.c (get_frame_id): Eliminate code updating "frame".
6190 (legacy_get_prev_frame): Ditto.
6191 (get_frame_base): Return id.base directly.
6192 (deprecated_update_frame_base_hack): Update "id.base".
6193 * frame.h (struct frame_info): Delete field "frame".
6194
2fbce691
AC
61952003-04-09 Andrew Cagney <cagney@redhat.com>
6196
6197 * NEWS: Mention that the "Sequent family" is obsolete.
6198 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6199 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6200 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6201 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6202 * config/i386/tm-ptx4.h: Obsolete file.
6203 * config/i386/tm-ptx.h: Obsolete file.
6204 * symm-tdep.c: Obsolete file.
6205 * config/i386/symmetry.mt: Obsolete file.
6206 * config/i386/tm-symmetry.h: Obsolete file.
6207 * symm-nat.c: Obsolete file.
6208 * config/i386/nm-symmetry.h: Obsolete file.
6209 * config/i386/xm-symmetry.h: Obsolete file.
6210 * config/i386/symmetry.mh: Obsolete file.
6211 * config/i386/nm-ptx4.h: Obsolete file.
6212 * config/i386/ptx4.mh: Obsolete file.
6213 * config/i386/ptx.mt: Obsolete file.
6214 * config/i386/ptx.mh: Obsolete file.
6215 * config/i386/xm-ptx4.h: Obsolete file.
6216 * config/i386/xm-ptx.h: Obsolete file.
6217
78c43945
AC
62182003-04-09 Andrew Cagney <cagney@redhat.com>
6219
6220 Obsolete mips*-*-mach3*.
6221 * NEWS: Mention that mips*-*-mach3* is obsolete.
6222 * m3-nat.c: Obsolete file.
6223 * config/nm-m3.h: Obsolete file.
6224 * config/mips/tm-mipsm3.h: Obsolete file.
6225 * config/mips/mipsm3.mt: Obsolete file.
6226 * config/mips/mipsm3.mh: Obsolete file.
6227 * config/mips/xm-mipsm3.h: Obsolete file.
6228 * mipsm3-nat.c: Obsolete file.
6229 * configure.host: Obsolete mips-dec-mach3*.
6230 * configure.tgt: Obsolete mips*-*-mach3*.
6231
f1908289
AC
62322003-04-09 Andrew Cagney <cagney@redhat.com>
6233
6234 * doublest.h: Update copyright.
6235 (deprecated_store_floating, deprecated_extract_floating): Rename
6236 store_floating and extract_floating. Update comments.
6237 * doublest.c: Update copyright.
6238 (extract_floating_by_length): Replace extract_floating.
6239 (store_floating_by_length): Replace store_floating.
6240 (deprecated_extract_floating): New function.
6241 (deprecated_store_floating): New function.
6242 (extract_typed_floating): Call extract_floating_by_length.
6243 (store_typed_floating): Call store_floating_by_length.
6244 * x86-64-tdep.c (x86_64_store_return_value): Update.
6245 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6246 (sh64_extract_return_value): Update.
6247 (sh_sh4_register_convert_to_virtual): Update.
6248 (sh_sh64_register_convert_to_virtual): Update.
6249 (sh_sh4_register_convert_to_raw): Update.
6250 (sh_sh64_register_convert_to_raw): Update.
6251 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6252 (rs6000_register_convert_to_raw): Update.
6253 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6254 (ia64_register_convert_to_raw): Update.
6255 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6256 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6257 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6258 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6259 (alpha_register_convert_to_raw): Update.
6260
4443bd83
AC
62612003-04-08 Andrew Cagney <cagney@redhat.com>
6262
6263 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6264 * gdbarch.h, gdbarch.c: Re-generate.
6265 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6266 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6267 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6268 conditionally, use frame_pc_unwind as an alternative. Add
6269 comments.
6270 * arch-utils.c (init_frame_pc_default): Only call
6271 SAVED_PC_AFTER_CALL when available.
6272
c0236d92
EZ
62732003-04-08 Elena Zannoni <ezannoni@redhat.com>
6274
fbe586ae 6275 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6276 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6277 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6278 (start_remote): Ditto.
6279 (handle_inferior_event): Ditto.
6280 (save_inferior_status): Ditto.
6281 (restore_inferior_status): Ditto.
6282 * infcmd.c (attach_command): Ditto.
6283 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6284 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6285 * alpha-tdep.c (heuristic_proc_start): Ditto.
6286 * mips-tdep.c (heuristic_proc_start): Ditto.
6287 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6288 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6289 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6290 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6291 * remote-vx.c (vx_create_inferior): Ditto.
6292
62932003-04-08 Elena Zannoni <ezannoni@redhat.com>
6294
6295 * infrun.c (stop_soon_quietly): Make it an enum, to better
6296 override the default behavior of handle_inferior_event.
6297 (clear_proceed_status): Update uses of stop_soon_quietly to
6298 reflect that it is now an enum.
6299 (start_remote): Ditto.
6300 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6301 is set to handle the new GNU/Linux kernel behavior for
6302 attach/sigstop. Update uses of stop_soon_quietly.
6303 * inferior.h (enum stop_kind): New enum.
6304 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6305 Reset normal handle_inferior_event behavior, afterwards.
6306 * fork-child.c (startup_inferior): Update.
6307 * alpha-tdep.c (heuristic_proc_start): Update.
6308 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6309 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6310 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6311 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6312 * remote-vx.c (vx_create_inferior): Update.
6313 * mips-tdep.c (heuristic_proc_start): Update.
6314
1211bce3
EZ
63152003-04-07 Elena Zannoni <ezannoni@redhat.com>
6316
6317 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6318 be freed more than once, causing wild memory corruptions.
1211bce3 6319 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6320 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6321 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6322 with the "core" target.
1211bce3 6323
f0ef6b29
KB
63242003-04-07 Kevin Buettner <kevinb@redhat.com>
6325
6326 * mips-tdep.c (mips_print_fp_register): New function, created from
6327 do_fp_register_row(). Registers are now (also) printed as hex.
6328 Only one register is printed per row.
6329 (mips_print_register, do_fp_register_row): Print floating point
6330 registers with mips_print_fp_register().
6331
8cf71652
AC
63322003-04-06 Andrew Cagney <cagney@redhat.com>
6333
5e488a7b
AC
6334 * valprint.h (inspect_it): Add extern declaration.
6335 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6336 (selectors_info, classes_info): Ditto.
6337 (find_objc_msgcall): Fix indentation.
6338 (objc_printstr): Delete extern declarations.
6339
8cf71652
AC
6340 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6341
e6ba3bc9
AC
63422003-04-06 Andrew Cagney <cagney@redhat.com>
6343
6344 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6345 Update comment.
6346 * frame.c (legacy_saved_regs_this_id): Update.
6347 (legacy_get_prev_frame): Update.
6348 * xstormy16-tdep.c: Update comment.
6349 * sparc-tdep.c (sparc_frame_chain): Update comment.
6350 * blockframe.c (legacy_frame_chain_valid): Update.
6351
55e1d7e7
AC
63522003-04-06 Andrew Cagney <cagney@redhat.com>
6353
996179ee
AC
6354 * valprint.c (val_print_type_code_int): Delete #ifdef
6355 PRINT_TYPELESS_INTEGER code.
6356
55e1d7e7
AC
6357 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6358 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6359 multi-arch definition.
6360 * gdbarch.h: Re-generate.
6361
43bd9a9e
AC
63622003-04-05 Andrew Cagney <cagney@redhat.com>
6363
6364 Eliminate FRAME_FIND_SAVED_REGS.
6365 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6366 Change FSR parameter to a pointer.
6367 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6368 Assume FSR parameter is a pointer.
6369 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6370 Make fsr a pointer.
6371 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6372 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6373 saved_regs a pointer.
6374 (hppa_frame_saved_pc): Ditto.
6375 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6376 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6377 pointer.
6378 (restore_pc_queue): Make fsr a pointer.
6379 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6380 (hppa_frame_chain): Make saved_regs a pointer, call
6381 hppa_frame_init_saved_regs.
6382 * sparc-tdep.c: Include "gdb_assert.h".
6383 (sparc_frame_find_saved_regs): Replace internal_error with
6384 gdb_assert.
6385 * remote-vxsparc.c (vx_read_register): Delete reference to
6386 FRAME_FIND_SAVED_REGS.
6387 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6388 * gdbarch.h: Regenerate.
6389 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6390 (deprecated_get_frame_saved_regs): Delete declaration.
6391 (struct frame_saved_regs): Delete definition.
6392 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6393 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6394 (hppa_frame_find_saved_regs): Delete declaration.
6395 (FRAME_FIND_SAVED_REGS): Delete macro.
6396 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6397 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6398 FRAME_FIND_SAVED_REGS in comment.
6399
be41e9f4
AC
64002003-04-05 Andrew Cagney <cagney@redhat.com>
6401
6402 * frame.c (frame_func_unwind, get_frame_func): New functions.
6403 * frame.h (get_frame_func, frame_func_unwind): Declare.
6404 (struct frame_info): Add field "prev_func" for caching the
6405 previous frame's function address.
6406 * arm-tdep.c (arm_frameless_function_invocation): Combine
6407 get_pc_function_start and get_frame_pc into get_frame_func.
6408 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6409 (sh64_nofp_frame_init_saved_regs): Ditto.
6410 * s390-tdep.c (s390_function_start): Ditto.
6411 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6412 (rs6000_frameless_function_invocation): Ditto.
6413 (rs6000_frame_saved_pc): Ditto.
6414 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6415 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6416 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6417 (i386_frame_init_saved_regs): Ditto.
6418 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6419 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6420 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6421 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6422 * blockframe.c (frameless_look_for_prologue): Ditto.
6423
a01dd7cc
AC
64242003-04-05 Andrew Cagney <cagney@redhat.com>
6425
6426 * frame.c (legacy_get_prev_frame): Link prev to next at the
6427 function start. Update comments.
6428
5e5592e6
AC
64292003-04-05 Andrew Cagney <cagney@redhat.com>
6430
6431 * frame.c (get_frame_id): Update comment.
6432 (legacy_get_prev_frame): Update comment.
6433 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6434 * gdbarch.h: Regenerate.
6435 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6436 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6437
6fba5002
AC
64382003-04-05 Andrew Cagney <cagney@redhat.com>
6439
6440 * stack.c (print_frame_info): Use get_frame_pc.
6441
7df05f2b
AC
64422003-04-04 Andrew Cagney <cagney@redhat.com>
6443
6444 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6445 the frame's type from the unwinder.
6446 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6447 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6448 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6449 (get_frame_base_address): Use get_frame_type.
6450 (get_frame_locals_address, get_frame_args_address): Ditto.
6451 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6452 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6453 (struct frame_info): Add comment explaining why the frame contains
6454 a "type" field.
6455 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6456 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6457 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6458 NORMAL_FRAME.
6459 * frame-unwind.h: Include "frame.h".
6460 (struct frame_unwind): Add "type" field.
6461 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6462
11889732
AC
64632003-04-04 Andrew Cagney <cagney@redhat.com>
6464
6465 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6466 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6467 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6468 get_frame_base.
6469 (d10v_unwind_dummy_id): Use frame_id_build.
6470 * frame.c (find_frame_sal): Use get_frame_pc.
6471 (create_new_frame): Use deprecated_update_frame_pc_hack and
6472 deprecated_update_frame_base_hack.
6473 (create_sentinel_frame): Add comment about ->pc going away.
6474 (get_prev_frame): Add comment about ->pc going away.
6475 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6476 frame_id_build, deprecated_update_frame_pc_hack and
6477 deprecated_update_frame_base_hack.
6478 (select_frame): Use get_frame_pc.
6479 (legacy_saved_regs_this_id): Use frame_id_build.
6480
50c46a0d
EZ
64812003-04-04 Elena Zannoni <ezannoni@redhat.com>
6482
fbe586ae
RH
6483 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6484 signed integer case.
6485 (classify_argument): Handle enumerations and references.
50c46a0d 6486
50bbdbd9
AC
64872003-04-04 Andrew Cagney <cagney@redhat.com>
6488
6489 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6490 ID to NULL.
6491
36018d2e
AF
64922003-04-01 Adam Fedor <fedor@gnu.org>
6493
6494 * gdb/objc-lang.c (selectors_info): Replace calls to
6495 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6496 SYMBOL_NATURAL_NAME.
6497 (classes_info, find_methods): Likewise.
6498
35cec841
KB
64992003-04-03 Kevin Buettner <kevinb@redhat.com>
6500
6501 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6502 ``mach'' to the value determined by bfd_default_set_arch_mach().
6503
43136899
BR
65042003-04-02 Bob Rossi <bob_rossi@cox.net>
6505
6506 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6507 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6508 (mi-cmd-file.o): Update dependencies.
6509
040b99fd
KB
65102003-04-01 Kevin Buettner <kevinb@redhat.com>
6511
6512 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6513 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6514
9a3d7dfd
AF
65152003-04-01 Adam Fedor <fedor@gnu.org>
6516
6517 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6518 * language.h (struct language_defn): Add la_demangle.
6519 (language_demangle): Declare.
6520 * language.c (language_demangle): New function.
6521 (unk_lang_demangle): Likewise.
6522 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6523 Add ukn_lang_demangle.
9a3d7dfd 6524 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6525 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6526 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6527 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6528 * jv-lang.c (java_demangle): New function
6529 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6530 * objc-lang.c (objc_demangle): Add options argument
6531 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6532 * maint.c (maintenance_demangle): Replace switch with
6533 call to language_demangle.
6534 * utils.c (fprintf_symbol_filtered): Likewise.
6535
5e074003
AC
65362003-04-01 Andrew Cagney <cagney@redhat.com>
6537
6538 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6539 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6540 PRINT_TYPELESS_INTEGER.
6541 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6542 PUSH_RETURN_ADDRESS.
6543
270cb5d6
AC
65442003-04-01 Andrew Cagney <cagney@redhat.com>
6545
6546 * Makefile.in (d10v-tdep.o): Update dependencies.
6547 * d10v-tdep.c: Include "frame-base.h".
6548 (d10v_frame_unwind): Make constant.
6549 (d10v_frame_base_address): New function.
6550 (d10v_frame_base): New variable.
6551 (d10v_gdbarch_init): Set frame_base default.
6552 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6553 comment for base.
6554 (d10v_frame_unwind_cache): Set and use "prev_sp".
6555 (d10v_frame_this_id): Use the previous frame's inner most stack
6556 address and this frame's func address for the frame ID. Use
6557 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6558
6bfb3e36
AC
65592003-04-01 Andrew Cagney <cagney@redhat.com>
6560
6561 * frame.h (get_frame_locals_address, get_frame_args_address):
6562 Refer to the base address, instead of the address of the first
6563 local or parameter.
8ffd9b1b 6564
da62e633
AC
65652003-04-01 Andrew Cagney <cagney@redhat.com>
6566
6567 Add frame debug info addresses:
6568 * frame-base.c: New file.
6569 * frame-base.h: New file.
6570 * frame.h (struct frame_base): Add opaque declaration.
6571 (get_frame_base): Update comment.
6572 (get_frame_base_address): Declare.
6573 (get_frame_locals_address): Declare.
6574 (get_frame_args_address): Declare.
6575 (struct frame_info): Add "base" and "base_cache". Update
6576 comments on the unwinder.
6577 * frame.c: Include "frame-base.h".
6578 (get_frame_locals_address): New function.
6579 (get_frame_base_address): New function.
6580 (get_frame_args_address): New function.
6581 * findvar.c (read_var_value): Use get_frame_locals_address and
6582 get_frame_args_address.
6583 * stack.c (frame_info): Use get_frame_locals_address and
6584 get_frame_args_address.
6585 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6586 moved to "frame-base.c".
6587 * printcmd.c (print_frame_nameless_args): Ditto.
6588 * symtab.h (address_class): Update comments.
6589 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6590 get_frame_base_address.
6591 * dwarf2expr.c (execute_stack_op): Ditto.
6592 * Makefile.in (frame_base_h): Define.
6593 (frame.o): Update dependencies.
6594 (frame-base.o): Add dependencies.
6595 (SFILES): Add frame-base.c.
6596 (COMMON_OBS): Add frame-base.o.
6597
3d30e9c2
AC
65982003-04-01 Andrew Cagney <cagney@redhat.com>
6599
6600 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6601 CALL_DUMMY_LENGTH): Ditto.
6602 * gdbarch.c: Re-generate.
6603 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6604 (CALL_DUMMY_LENGTH): Delete macro.
6605 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6606 * arm-tdep.c (arm_gdbarch_init): Ditto.
6607 * avr-tdep.c (avr_gdbarch_init): Ditto.
6608 * cris-tdep.c (cris_gdbarch_init): Ditto.
6609 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6610 * frv-tdep.c (frv_gdbarch_init): Ditto.
6611 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6612 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6613 * i386-tdep.c (i386_gdbarch_init): Ditto.
6614 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6616 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6617 * mips-tdep.c (mips_gdbarch_init): Ditto.
6618 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6620 * s390-tdep.c (s390_gdbarch_init): Ditto.
6621 * sh-tdep.c (sh_gdbarch_init): Ditto.
6622 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6623 * v850-tdep.c (v850_gdbarch_init): Ditto.
6624 * vax-tdep.c (vax_gdbarch_init): Ditto.
6625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6626
ce0c7262
CV
66272003-04-01 Corinna Vinschen <vinschen@redhat.com>
6628
6629 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6630
73dd234f
AC
66312003-04-01 Andrew Cagney <cagney@redhat.com>
6632
6633 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6634 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6635 * gdbarch.h, gdbarch.c: Re-generate.
6636 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6637 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6638 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6639 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6640 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6641 * infcmd.c (run_stack_dummy): Simplify assuming
6642 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6643 * infrun.c (handle_inferior_event): Ditto.
6644 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6645 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6646 * arm-tdep.c (arm_gdbarch_init): Ditto.
6647 * avr-tdep.c (avr_gdbarch_init): Ditto.
6648 * cris-tdep.c (cris_gdbarch_init): Ditto.
6649 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6650 * frv-tdep.c (frv_gdbarch_init): Ditto.
6651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6652 * i386-tdep.c (i386_gdbarch_init): Ditto.
6653 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6655 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6656 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6657 * mips-tdep.c (mips_gdbarch_init): Ditto.
6658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6659 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6660 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6661 * s390-tdep.c (s390_gdbarch_init): Ditto.
6662 * sh-tdep.c (sh_gdbarch_init): Ditto.
6663 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6664 * v850-tdep.c (v850_gdbarch_init): Ditto.
6665 * vax-tdep.c (vax_gdbarch_init): Ditto.
6666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6667
97606a13
DJ
66682003-04-01 Daniel Jacobowitz <drow@mvista.com>
6669
6670 * symfile.c (symfile_relocate_debug_section): Update call to
6671 bfd_simple_get_relocated_section_contents.
6672
e8ab51f7
AC
66732003-03-31 Andrew Cagney <cagney@redhat.com>
6674
6675 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6676 * gdbarch.h, gdbarch.c: Regenerate.
6677 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6678 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6679 available.
6680 * frame.h (generic_fix_call_dummy): Delete declaration.
6681 * dummy-frame.h: Update comment.
6682 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6684 fix_call_dummy.
6685 * sh-tdep.c (sh_gdbarch_init): Ditto.
6686 * s390-tdep.c (s390_gdbarch_init): Ditto.
6687 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6688 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6690 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6691 * i386-tdep.c (i386_gdbarch_init): Ditto.
6692 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6693 * frv-tdep.c (frv_gdbarch_init): Ditto.
6694 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6695 * cris-tdep.c (cris_gdbarch_init): Ditto.
6696 * avr-tdep.c (avr_gdbarch_init): Ditto.
6697 * arm-tdep.c (arm_gdbarch_init): Ditto.
6698
018d1b48
JB
66992003-03-31 J. Brobecker <brobecker@gnat.com>
6700
6701 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6702 (INIT_FRAME_AP): Likewise.
6703 (EXTRA_FRAME_INFO): Likewise.
6704
e9a2674e
AC
67052003-03-31 Andrew Cagney <cagney@redhat.com>
6706
6707 * gdbarch.sh: Include "symfile.h".
6708 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6709 * gdbarch.h, gdbarch.c: Re-generate.
6710 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6712 call_dummy_address, the default is at entry_point_address.
6713 * v850-tdep.c (v850_gdbarch_init): Ditto.
6714 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6715 * sh-tdep.c (sh_gdbarch_init): Ditto.
6716 * s390-tdep.c (s390_gdbarch_init): Ditto.
6717 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6718 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6719 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6720 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6721 * i386-tdep.c (i386_gdbarch_init): Ditto.
6722 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6723 * frv-tdep.c (frv_gdbarch_init): Ditto.
6724 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6725 * cris-tdep.c (cris_gdbarch_init): Ditto.
6726 * arm-tdep.c (arm_gdbarch_init): Ditto.
6727
e8a8712a
AC
67282003-03-31 Andrew Cagney <cagney@redhat.com>
6729
6730 * gdbarch.sh (CALL_DUMMY_P): Delete.
6731 * gdbarch.h, gdbarch.c: Re-generate.
6732 * inferior.h (CALL_DUMMY_P): Delete macro.
6733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6734 * vax-tdep.c (vax_gdbarch_init): Update.
6735 * v850-tdep.c (v850_gdbarch_init): Update.
6736 * sparc-tdep.c (sparc_gdbarch_init): Update.
6737 * sh-tdep.c (sh_gdbarch_init): Update.
6738 * s390-tdep.c (s390_gdbarch_init): Update.
6739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6740 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6741 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6742 * mips-tdep.c (mips_gdbarch_init): Update.
6743 * mcore-tdep.c (mcore_gdbarch_init): Update.
6744 * m68k-tdep.c (m68k_gdbarch_init): Update.
6745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6746 * ia64-tdep.c (ia64_gdbarch_init): Update.
6747 * i386-tdep.c (i386_gdbarch_init): Update.
6748 * h8300-tdep.c (h8300_gdbarch_init): Update.
6749 * frv-tdep.c (frv_gdbarch_init): Update.
6750 * d10v-tdep.c (d10v_gdbarch_init): Update.
6751 * cris-tdep.c (cris_gdbarch_init): Update.
6752 * breakpoint.c (deprecated_frame_in_dummy): Update.
6753 * avr-tdep.c (avr_gdbarch_init): Update.
6754 * alpha-tdep.c (alpha_gdbarch_init): Update.
6755 * arm-tdep.c (arm_gdbarch_init): Update.
6756 * dummy-frame.c (dummy_frame_this_id): Update comments.
6757 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6758 * frame.c (legacy_get_prev_frame): Ditto.
6759 * valops.c (call_function_by_hand): Delete function.
6760 (hand_function_call): Rename to call_function_by_hand
6761
ed234cf8
AC
67622003-03-30 Andrew Cagney <cagney@redhat.com>
6763
6764 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6765 * value.h (struct value): Update comment.
ed234cf8 6766
06c77151
AC
67672003-03-30 Andrew Cagney <cagney@redhat.com>
6768
6c2b5168
AC
6769 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6770 D10V_FP_REGNUM.
6771 (d10v_gdbarch_init): Do not set fp_regnum.
6772
06c77151
AC
6773 * frame.c (get_frame_base): Force ID initialization.
6774 (get_prev_frame): Move computation of the frame ID from here ...
6775 (get_frame_id): ... to here.
6776 (legacy_get_prev_frame): Mark the frame ID as valid.
6777 * frame.h (struct frame_info): Add field "id_p".
6778
97a1a11c
MK
67792003-03-30 Mark Kettenis <kettenis@gnu.org>
6780
6781 * i386-tdep.c (i386_store_struct_return): Removed.
6782 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6783
6c0e89ed
AC
67842003-03-30 Andrew Cagney <cagney@redhat.com>
6785
6786 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6787 * gdbarch.h, gdbarch.c: Regenerate.
6788 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6789 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6790 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6791 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6792 * i386-tdep.c (i386_gdbarch_init): Ditto.
6793 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6794 * cris-tdep.c (cris_gdbarch_init): Ditto.
6795 * vax-tdep.c (vax_gdbarch_init): Ditto.
6796 * s390-tdep.c (s390_gdbarch_init): Ditto.
6797 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6798 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6799 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6800 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6801 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6802 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6803 * sparc-tdep.c (sparc_gdbarch_init): Update.
6804 * sh-tdep.c (sh_gdbarch_init): Update.
6805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6806 * mips-tdep.c (mips_gdbarch_init): Update.
6807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6808 * ia64-tdep.c (ia64_gdbarch_init): Update.
6809 * frv-tdep.c (frv_gdbarch_init): Update.
6810 * avr-tdep.c (avr_gdbarch_init): Update.
6811 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6812 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6813 instead of when push_dummy_call is not available.
8ffd9b1b 6814
f7dd6af2
AC
68152003-03-30 Andrew Cagney <cagney@redhat.com>
6816
6817 * infttrace.c: Include "gdbthread.h".
6818 (parent_attach_all): Fix function signature.
6819 (call_ptrace): Update call.
6820 * Makefile.in (infttrace.o): Update dependencies.
6821
28f617b3
AC
68222003-03-30 Andrew Cagney <cagney@redhat.com>
6823
6824 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6825 PUSH_RETURN_ADDRESS.
6826 * gdbarch.h, gdbarch.c: Regenerate.
6827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6828 * x86-64-tdep.c (x86_64_init_abi): Update.
6829 * v850-tdep.c (v850_gdbarch_init): Update.
6830 * sparc-tdep.c (sparc_gdbarch_init): Update.
6831 * sh-tdep.c (sh_gdbarch_init): Update.
6832 * s390-tdep.c (s390_gdbarch_init): Update.
6833 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6834 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6835 * mips-tdep.c (mips_gdbarch_init): Update.
6836 * mcore-tdep.c (mcore_gdbarch_init): Update.
6837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6838 * ia64-tdep.c (ia64_gdbarch_init): Update.
6839 * i386-tdep.c (i386_gdbarch_init): Update.
6840 * h8300-tdep.c (h8300_gdbarch_init): Update.
6841 * frv-tdep.c (frv_gdbarch_init): Update.
6842 * cris-tdep.c (cris_gdbarch_init): Update.
6843 * avr-tdep.c (avr_gdbarch_init): Update.
6844 * arm-tdep.c (arm_gdbarch_init): Update.
6845 * valops.c (hand_function_call): Update.
6846
4d628cd7
AC
68472003-03-29 Andrew Cagney <cagney@redhat.com>
6848
6849 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6850 sizeof_call_dummy_words.
6851 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6852 define.
6853 * gdbarch.h: Regenerate.
8ffd9b1b 6854
65e82032
AC
68552003-03-29 Andrew Cagney <cagney@redhat.com>
6856
6857 * infttrace.h: New file.
6858 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6859 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6860 (hpread_read_doc_function_type): Detect an initialized type1.
6861 (hpread_quick_traverse): Initialize mod_name_string.
6862 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6863 (som_solib_get_solib_by_pc): Declare.
6864 (so_lib_thread_start_addr): Declare.
6865 (no_shared_libraries): Declare.
6866 * somread.c (init_import_symbols): Make static. Add forward
6867 declaration.
6868 * config/pa/nm-hppah.h: Include "infttrace.h" for
6869 parent_attach_all.
6870 (hppa_insert_hw_watchpoint): Declare.
6871 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6872 * hppah-nat.c: Include "gdb_string.h".
6873 (parent_attach_all): Delete extern declaration, moved to
6874 "infttrace.h".
6875 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6876 int.
6877 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6878 * Makefile.in (infttrace_h): Define.
6879 (hpread.o): Update dependencies.
6880 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6881 * hppa-hpux-tdep.c: Include "gdb_string.h".
6882 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6883 * infrun.c (handle_inferior_event): Always initialize
6884 stepped_after_stopped_by_watchpoint. Add default and remove
6885 fallthrough in switch statement.
6886 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6887 parameter to int.
6888 (hppa_remove_hw_watchpoint): Ditto.
6889
2c3bbe77
AC
68902003-03-29 Andrew Cagney <cagney@redhat.com>
6891
6892 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6893 offset.
6894
2dd604e7
RE
68952003-03-29 Richard Earnshaw <rearnsha@arm.com>
6896
6897 * arm-tdep.c (arm_push_arguments): Delete.
6898 (struct stack_item): New type.
6899 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6900 (arm_store_struct_return): Delte.
6901 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6902 arm_push_arguments or arm_store_struct_return.
6903
e8933a55
AC
69042003-03-28 Andrew Cagney <cagney@redhat.com>
6905
6906 * Makefile.in (d10v-tdep.o): Update dependencies.
6907 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6908 * d10v-tdep.c: Include "remote.h".
6909 (target_resume_hook): Delete extern declaration.
6910 (target_wait_loop_hook): Ditto.
6911 (tdisassemble_command): Eliminate assignment in "if" conditional.
6912 (d10v_ts2_register_sim_regno): Eliminate call to
6913 legacy_register_sim_regno.
6914 (d10v_ts3_register_sim_regno): Ditto.
6915
6949171e
JJ
69162003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6917
6918 * thread.c: Reindented.
6919 * lin-lwp.c: Ditto.
6920 * linux-proc.c: Ditto.
6921
98c7071f
BR
69222003-03-28 Bob Rossi <bob_rossi@cox.net>
6923
fbe586ae 6924 * MAINTAINERS (write after approval): Add myself.
98c7071f 6925
5edc9ca6
TR
69262003-03-27 Theodore A. Roth <troth@openavr.org>
6927
6928 * objc-exp.y: Add missing semi-colons.
6929
378bfd1b
AC
69302003-03-27 Andrew Cagney <cagney@redhat.com>
6931
6932 * regcache.c (write_sp): Delete function and references.
6933 * inferior.h (write_sp): Delete declaration.
6934 * valops.c (hand_function_call): Replace write_sp with
6935 TARGET_WRITE_SP.
6936 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6937 (sparc_pop_frame): Ditto.
8ffd9b1b 6938
56056df7
AC
69392003-03-27 Andrew Cagney <cagney@redhat.com>
6940
6941 * NEWS: Mention removal of support for hppa*-*-bsd* and
6942 hppa*-*-osf* natives, and hppa*-*-pro* target.
6943 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6944 * config/pa/xm-pa.h: Obsolete file.
6945 * config/pa/xm-hppab.h: Obsolete file.
6946 * config/pa/nm-hppab.h: Obsolete file.
6947 * config/pa/tm-hppab.h: Obsolete file.
6948 * config/pa/tm-hppao.h: Obsolete file.
6949 * config/pa/nm-hppao.h: Obsolete file.
6950 * config/pa/tm-pro.h: Obsolete file.
6951 * config/pa/hppaosf.mt: Obsolete file.
6952 * config/pa/hppaosf.mh: Obsolete file.
6953 * config/pa/hppapro.mt: Obsolete file.
6954 * config/pa/hppabsd.mt: Obsolete file.
6955 * config/pa/hppabsd.mh: Obsolete file.
6956 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6957 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6958 hppa*-*-osf*.
6959
5873a88d
AC
69602003-03-27 Andrew Cagney <cagney@redhat.com>
6961
6962 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6963 push_arguments. Don't set push_return_address or write_sp.
6964 (d10v_push_dummy_call): Replace d10v_push_arguments.
6965 (d10v_push_return_address, d10v_write_sp): Delete function,
6966 handled by push_dummy_call.
6967
b81774d8
AC
69682003-03-26 Andrew Cagney <cagney@redhat.com>
6969
6970 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6971 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6972 regcache and dummy_addr parameters.
6973 * gdbarch.h, gdbarch.c: Re-generate.
6974 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6975 available; assume it will handle stack alignment and return
6976 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6977 legacy_push_arguments.
6978 (legacy_push_arguments): Rename default_push_arguments.
6979 * value.h (legacy_push_arguments): Rename default_push_arguments.
6980 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6981 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6982 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6983 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6984 * config/i386/tm-symmetry.h: Update.
6985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6986 * x86-64-tdep.c (x86_64_init_abi): Update.
6987 * v850-tdep.c (v850_gdbarch_init): Update.
6988 * sparc-tdep.c (sparc_gdbarch_init): Update.
6989 * sh-tdep.c (sh_gdbarch_init): Update.
6990 * s390-tdep.c (s390_gdbarch_init): Update.
6991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6992 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6993 * mips-tdep.c (mips_gdbarch_init): Update.
6994 * mcore-tdep.c (mcore_gdbarch_init): Update.
6995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6996 * ia64-tdep.c (ia64_gdbarch_init): Update.
6997 * i386-tdep.c (i386_gdbarch_init): Update.
6998 * hppa-tdep.c (hppa_gdbarch_init): Update.
6999 * h8300-tdep.c (h8300_gdbarch_init): Update.
7000 * frv-tdep.c (frv_gdbarch_init): Update.
7001 * d10v-tdep.c (d10v_gdbarch_init): Update.
7002 * cris-tdep.c (cris_gdbarch_init): Update.
7003 * avr-tdep.c (avr_gdbarch_init): Update.
7004 * arm-tdep.c (arm_gdbarch_init): Update.
7005 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7006 * alpha-tdep.c (alpha_gdbarch_init): Update.
7007
f541410f
DJ
70082003-03-26 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * signals/signals.c (do_target_signal_to_host): Correct realtime
7011 signal range test.
7012
69f567ae
DJ
70132003-03-26 Daniel Jacobowitz <drow@mvista.com>
7014
7015 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7016 (struct sal_chain, map_catch_names): Remove.
7017 (catch_exception_command_1): Don't call
7018 handle_gnu_4_16_catch_command.
7019
d5d14a5a
DJ
70202003-03-26 Daniel Jacobowitz <drow@mvista.com>
7021
7022 From Mark Dettinger <dettinge@de.ibm.com>:
7023 * dwarf2cfi.c (read_2u): Increment pointer by two.
7024
bdd73e22
DJ
70252003-03-26 Daniel Jacobowitz <drow@mvista.com>
7026
7027 * signals/signals.c: Fix typos in last change.
7028
960cb555
DJ
70292003-03-26 Daniel Jacobowitz <drow@mvista.com>
7030
7031 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7032 not already defined. Use __SIGRTMIN if available.
7033 (target_signal_from_host): Remove SIGRTMIN block.
7034 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7035 the signal is within the realtime range.
7036
f636b87d
AF
70372003-03-25 Adam Fedor <fedor@gnu.org>
7038
7039 * Makefile.in (infrun.o): Add $(language_h)
7040 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7041 for language specific trampolines.
7042 * language.h (struct language_defn): Add skip_trampoline.
7043 (skip_language_trampoline): Declare.
7044 * language.c (unk_lang_trampoline, skip_language_trampoline):
7045 New functions.
7046 (unknown_language_defn, auto_language_defn, local_language_defn):
7047 Add ukn_lang_trampoline.
7048 * ada-lang.c (ada_language_defn): Add NULL for language
7049 specific skip_trampoline.
7050 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7051 scm-lang.c: Likewise.
7052 * objc-lang.c (objc_skip_trampoline): New function.
7053 (objc_language_defn): Add objc_skip_trampoline.
7054
28f617b3 70552003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7056
7057 * frame.c (get_prev_frame): Delay validating a frame's ID -
7058 non-NULL, didn't go backwards - until an attempt to unwind it to
7059 the previous frame.
7060
f933a9c5
AC
70612003-03-25 Andrew Cagney <cagney@redhat.com>
7062
7063 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7064 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7065 * gdbarch.h, gdbarch.c: Re-generate.
7066 * config/sparc/tm-sparc.h
7067 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7068 * sparc-tdep.c (sparc_gdbarch_init): Set
7069 deprecated_extra_stack_alignment_needed.
7070 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7072 extra_stack_alignment_needed.
7073 * v850-tdep.c (v850_gdbarch_init): Ditto.
7074 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7075 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7076 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7077 * cris-tdep.c (cris_gdbarch_init): Ditto.
7078 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7080
4183d812
AC
70812003-03-25 Andrew Cagney <cagney@redhat.com>
7082
7083 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7084 STORE_STRUCT_RETURN.
7085 * gdbarch.h, gdbarch.c: Regenerate.
7086 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7087 (d10v_push_arguments): Set the struct return register.
7088 (d10v_gdbarch_init): Update.
7089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7090 * x86-64-tdep.c (x86_64_init_abi): Update.
7091 * vax-tdep.c (vax_gdbarch_init): Update.
7092 * v850-tdep.c (v850_gdbarch_init): Update.
7093 * sparc-tdep.c (sparc_gdbarch_init): Update.
7094 * sh-tdep.c (sh_gdbarch_init): Update.
7095 * s390-tdep.c (s390_gdbarch_init): Update.
7096 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7097 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7098 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7099 * mips-tdep.c (mips_gdbarch_init): Update.
7100 * mcore-tdep.c (mcore_gdbarch_init): Update.
7101 * m68k-tdep.c (m68k_gdbarch_init): Update.
7102 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7103 * ia64-tdep.c (ia64_gdbarch_init): Update.
7104 * i386-tdep.c (i386_gdbarch_init): Update.
7105 * hppa-tdep.c (hppa_gdbarch_init): Update.
7106 * h8300-tdep.c (h8300_gdbarch_init): Update.
7107 * frv-tdep.c (frv_gdbarch_init): Update.
7108 * cris-tdep.c (cris_gdbarch_init): Update.
7109 * avr-tdep.c (avr_gdbarch_init): Update.
7110 * arm-tdep.c (arm_gdbarch_init): Update.
7111 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7112
1bf6d5cc
AC
71132003-03-25 Andrew Cagney <cagney@redhat.com>
7114
7115 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7116 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7117 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7118 * gdbarch.h, gdbarch.c: Regenerate.
7119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7120 call_dummy_stack_adjust_p.
7121 * vax-tdep.c (vax_gdbarch_init): Ditto.
7122 * v850-tdep.c (v850_gdbarch_init): Ditto.
7123 * sh-tdep.c (sh_gdbarch_init): Ditto.
7124 * s390-tdep.c (s390_gdbarch_init): Ditto.
7125 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7126 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7128 * mips-tdep.c (mips_gdbarch_init): Ditto.
7129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7130 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7132 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7133 * i386-tdep.c (i386_gdbarch_init): Ditto.
7134 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7135 * frv-tdep.c (frv_gdbarch_init): Ditto.
7136 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7137 * cris-tdep.c (cris_gdbarch_init): Ditto.
7138 * avr-tdep.c (avr_gdbarch_init): Ditto.
7139 * arm-tdep.c (arm_gdbarch_init): Ditto.
7140 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7141 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7142 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7143 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7144 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7145 call_dummy_stack_adjust_p.
7146 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7147 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7148 * sparc-tdep.c (sparc32_push_arguments): Update.
7149 * valops.c (hand_function_call): Update.
7150
71c08af0
CV
71512003-03-25 Corinna Vinschen <vinschen@redhat.com>
7152
7153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7154 set_gdbarch_char_signed.
7155
30757f90
RE
71562003-03-25 Richard Earnshaw <rearnsha@arm.com>
7157
7158 PR cli/548
7159 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7160
03d48a7d
RE
71612003-03-25 Richard Earnshaw <rearnsha@arm.com>
7162
7163 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7164 (_initialize_arm_tdep): Don't set tm_print_insn.
7165
2cf6873c
AF
71662003-03-24 Adam Fedor <fedor@gnu.org>
7167
7168 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7169 * objc-lang.h: Add multiple inclusion protection.
7170 (start_msglist, add_msglist, end_msglist): Additional declarations.
7171
17c0759e
RE
71722003-03-24 Richard Earnshaw <rearnsha@arm.com>
7173
7174 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7175 value was renamed to ARM_FLOAT_SOFT_FPA.
7176
618ce49f
AC
71772003-03-23 Andrew Cagney <cagney@redhat.com>
7178
7179 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7180 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7181 * gdbarch.h, gdbarch.c: Regenerate.
7182 * valops.c (hand_function_call): Update.
7183 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7184 * frame.c (legacy_saved_regs_this_id): Update.
7185 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7186 * dummy-frame.h: Update.
7187 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7188 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7189 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7190 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7191 * config/m68k/tm-sun3.h: Update.
7192 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7194 * x86-64-tdep.c (x86_64_init_abi): Update.
7195 * vax-tdep.c (vax_gdbarch_init): Update.
7196 * v850-tdep.c (v850_gdbarch_init): Update.
7197 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7198 * sh-tdep.c (sh_gdbarch_init): Update.
7199 * s390-tdep.c (s390_gdbarch_init): Update.
7200 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7201 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7202 (frame_get_saved_regs): Update.
7203 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7204 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7205 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7206 * mips-tdep.c (mips_gdbarch_init): Update.
7207 * mcore-tdep.c (mcore_gdbarch_init): Update.
7208 * m68k-tdep.c (m68k_gdbarch_init): Update.
7209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7210 * ia64-tdep.c (ia64_gdbarch_init): Update.
7211 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7212 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7213 (i386_interix_back_one_frame): Update.
7214 * hppa-tdep.c (hppa_gdbarch_init): Update.
7215 (hppa_init_extra_frame_info): Update.
7216 * h8300-tdep.c (h8300_gdbarch_init): Update.
7217 * frv-tdep.c (frv_gdbarch_init): Update.
7218 * cris-tdep.c (cris_gdbarch_init): Update.
7219 * avr-tdep.c (avr_gdbarch_init): Update.
7220 * arm-tdep.c (arm_gdbarch_init): Update.
7221 * alpha-tdep.c (alpha_gdbarch_init): Update.
7222
fd50bc42
RE
72232003-03-22 Richard Earnshaw <rearnsha@arm.com>
7224
7225 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7226 (arm_get_fp_model): Declare.
7227 * arm-tdep.c (fp_model_strings): New string array.
7228 (arm_fp_model, current_fp_model): New variables.
7229 (arm_get_fp_model): New function.
7230 (arm_set_fp): New function.
7231 (set_fp_model_sfunc): New function.
7232 (show_fp_model): New function.
7233 (_initialize_arm_tdep): Add new command to set/show the FPU.
7234 (arm_extract_return_value): Use arm_get_fp_model.
7235 (arm_store_return_value): Likewise.
7236 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7237 to initialize the floating-point data types.
7238 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7239 model is FPA.
7240
26304000
RE
72412003-03-22 Richard Earnshaw <rearnsha@arm.com>
7242
7243 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7244 the current setting of each value.
7245 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7246 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7247 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7248 commands and add new version as subcommands of "set/show arm".
7249
afd7eef0
RE
72502003-03-22 Richard Earnshaw <rearnsha@arm.com>
7251
7252 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7253 (set_arm_command, show_arm_command): New functions.
7254 (_initialize_arm_tdep): Add them.
7255 (num_disassembly_options): Renamed from num_flavor_options.
7256 (valid_disassembly_styles): Renamed from valid_flavors.
7257 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7258 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7259 set_disassembly_flavor_sfunc.
7260 (set_disassembly_style): Renamed from set_disassembly_flavor.
7261 (arm_othernames): Updated.
7262 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7263 command. Add "set/show arm disassembly" commands. Deprecate
7264 "othernames" command.
7265
299a7944
RE
72662003-03-22 Richard Earnshaw <rearnsha@arm.com>
7267
7268 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7269 (arm-tdep.o): Depend on elf_arm_h.
7270
c1dac9e6
RE
72712003-03-22 Richard Earnshaw <rearnsha@arm.com>
7272
7273 * Makefile.in (coff_internal_h): Define.
7274 (arm-tdep.o): Update dependencies.
7275
2702d96c
RE
72762003-03-22 Richard Earnshaw <rearnsha@arm.com>
7277
7278 * arm-tdep.c (prologue_cache): Delete.
7279 (check_prologue_cache, save_prologue_cache): Delete.
7280 (arm_scan_prologue): Don't check or update the prologue_cache.
7281 (arm_gdb_arch_init): Don't initialize it.
7282 (_initialize_arm_tdep): Likewise.
7283
27d5d74b
SC
72842003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7285
7286 * MAINTAINERS (tui): Maintainer of tui code.
7287
1762d96d
CV
72882003-03-21 Corinna Vinschen <vinschen@redhat.com>
7289
7290 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7291 (i386-cygwin-tdep.o): Add dependencies.
7292 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7293 * i386-cygwin-tdep.c: New file.
7294 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7295 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7296
4c2e2391
AC
72972003-03-20 Andrew Cagney <cagney@redhat.com>
7298
f20d38b7
AC
7299 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7300 (handle_inferior_event): Remove code calling
7301 DYNAMIC_TRAMPOLINE_NEXTPC.
7302
0022b738
AC
7303 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7304 already has a full path.
7305
864dbc90
AC
7306 * main.c (gdb_main): Return 1.
7307 (captured_main): Call error to report an invalid interpreter.
7308
4c2e2391
AC
7309 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7310 * alpha-osf1-tdep.c: Include "gdb_string.h".
7311
5ef7553b
JB
73122003-03-19 J. Brobecker <brobecker@gnat.com>
7313
7314 Continuing work to convert the hppa targets to multiarch partial.
7315
7316 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7317 method, now that hppa_push_dummy_frame has a conformant prototype.
7318 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7319 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7320 for the switch to multiarch partial.
7321
7bde8967
KB
73222003-03-19 Kevin Buettner <kevinb@redhat.com>
7323
7324 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7325 when iss is issNull.
7326
b006a9e9
KB
73272003-03-18 Kevin Buettner <kevinb@redhat.com>
7328
7329 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7330 NUM_REGS bounds check.
7331
5e2e9765
KB
73322003-03-18 Kevin Buettner <kevinb@redhat.com>
7333
7334 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7335 * mips-tdep.c (gdb_assert.h): Include.
7336 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7337 (mips_register_name): Handle integer registers explicitly. Add
7338 bounds checking.
7339 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7340 (mips_lsi33k_reg_names): Don't list integer registers; they're
7341 handled by mips_register_name() now.
7342 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7343 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7344 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7345 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7346 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7347
a2867626
AC
73482003-03-18 Andrew Cagney <cagney@redhat.com>
7349
7350 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7351 a void pointer.
7352 * gdbtypes.h (print_scalar_formatted): Update declaration.
7353 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7354
06600e06
JB
73552003-03-18 J. Brobecker <brobecker@gnat.com>
7356
7357 * infrun.c (observer.h): Add #include.
7358 (normal_stop): Add call to observer_notify_normal_stop.
7359 * Makefile.in (infrun.o): Add dependency on observer.h.
7360
7daf4f5b
JB
73612003-03-18 J. Brobecker <brobecker@gnat.com>
7362
7363 Continuing work to convert the hppa targets to multiarch partial.
7364 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7365 parameter. Reformat comment.
7366 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7367 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7368 to match new profile.
7369
3371ccc0
JB
73702003-03-18 J. Brobecker <brobecker@gnat.com>
7371
7372 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7373 appear to be working in any case.
7374
4fbe891e
JB
73752003-03-18 J. Brobecker <brobecker@gnat.com>
7376
7377 * observer.c (observer_test_first_observer): New static variable.
7378 (observer_test_second_observer): Likewise.
7379 (observer_test_third_observer): Likewise.
7380 (observer_test_first_notification_function): New static function.
7381 (observer_test_second_notification_function): Likewise.
7382 (observer_test_third_notification_function): Likewise.
7383
a7ff40e7
JB
73842003-03-17 J. Brobecker <brobecker@gnat.com>
7385
7386 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7387 * somsolib.c (gdb_assert.h): Likewise.
7388 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7389 (somsolib.o): Likewise.
7390
26ca4152
AC
73912003-03-17 Andrew Cagney <cagney@redhat.com>
7392
7393 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7394 BFD. Simplify setting of di.endian.
7395
0a613259
AC
73962003-03-17 Andrew Cagney <cagney@redhat.com>
7397
7398 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7399 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7400
7401 From Elena Zannoni <ezannoni@redhat.com>
7402 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7403 vector and floating-point parameters.
7404 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7405 convention.
7406 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7407
1132738f
FN
74082003-03-17 Fernando Nasser <fnasser@redhat.com>
7409
7410 * MAINTAINERS: Remove my name from several maintainership roles.
7411
6dc42492
AC
74122003-03-17 Andrew Cagney <cagney@redhat.com>
7413
7414 Fix frame off-by-one bug.
7415 * frame-unwind.h (frame_this_id_ftype): Replace
7416 frame_unwind_id_ftype.
7417 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7418 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7419 with "prev_register".
7420 * frame-unwind.c (frame_unwind_find_by_pc): Return
7421 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7422 comment.
7423 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7424 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7425 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7426 (dummy_frame_unwind): Update.
7427 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7428 sentinel_frame_register_unwind.
7429 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7430 (sentinel_frame_unwinder): Update.
7431 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7432 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7433 * frame.c (create_sentinel_frame): Update. Initialize
7434 "prologue_cache" instead of "unwind_cache".
7435 (frame_register_unwind): Call this frame's prev_register with the
7436 next frame and this frame's prologue cache.
7437 (get_prev_frame): Simplify. Always call prev frame's this_id with
7438 this frame and prev frame's prologue cache. Document that this
7439 call is shifted one to the left when compared to the
7440 frame_register_unwind call.
7441 (legacy_saved_regs_prev_register): Replace
7442 frame_saved_regs_register_unwind.
7443 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7444 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7445 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7446 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7447 (d10v_frame_unwind): Update.
7448 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7449 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7450 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7451 "saved_regs" with "this_saved_regs".
7452
efd710d6
AC
74532003-03-16 Andrew Cagney <cagney@redhat.com>
7454
7455 * frame.c (frame_pop): Don't call target_store_registers. Fix
7456 problem reported by Mark Kettenis.
7457
4e259f09
MK
74582003-03-16 Mark Kettenis <kettenis@gnu.org>
7459
7460 * i386-tdep.c (i386_register_type): Renamed from
7461 i386_register_virtual_type. Adjust function signature.
7462 (i386_gdbarch_init): Set register_type instead of
7463 deprecated_max_register_raw_size,
7464 deprecated_max_register_virtual_size and register_virtual_type.
7465
055bb976
AC
74662003-03-14 Andrew Cagney <cagney@redhat.com>
7467
7468 * frame.c (get_prev_frame): When a legacy frame, always call
7469 legacy_get_prev_frame. Simplify unwind code using assumption that
7470 the unwinder is new.
7471 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7472 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7473 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7474
ac2adee5
AC
74752003-03-14 Andrew Cagney <cagney@redhat.com>
7476
7477 * frame.c (get_saved_register): Delete function.
7478 * frame.h (get_saved_register): Delete declaration.
7479 * xstormy16-tdep.c: Update comment.
7480 * regcache.h: Update comments.
7481 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7482 get_saved_register and extract_address, use
7483 frame_read_unsigned_register.
7484 (sparc_frame_saved_pc): Ditto.
7485 (sparc_get_saved_register): Instead of get_saved_register, use
7486 frame_register.
7487 (sparc_pop_frame): Ditto.
7488 * findvar.c: Update comments.
7489 (value_of_register): Call frame_register instead of
7490 get_saved_register.
7491 (value_from_register): Ditto.
7492 * config/sparc/tm-sparc.h: Update comment.
7493 * breakpoint.c: Update comment.
7494
129c1cd6
AC
74952003-03-14 Andrew Cagney <cagney@redhat.com>
7496
7497 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7498 GET_SAVED_REGISTER.
7499 * gdbarch.h, gdbarch.c: Re-generate.
7500 * frame.h: Update comments.
7501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7502 * x86-64-tdep.c (x86_64_init_abi): Update.
7503 * sparc-tdep.c (sparc_gdbarch_init): Update.
7504 * sh-tdep.c (sh_gdbarch_init): Update.
7505 * mips-tdep.c (mips_gdbarch_init): Update.
7506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7507 * cris-tdep.c (cris_gdbarch_init): Update.
7508 * ia64-tdep.c (ia64_gdbarch_init): Update.
7509 * frame.c (frame_register): Update.
7510 (get_saved_register): Update.
7511 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7512
749b82f6
AC
75132003-03-13 Andrew Cagney <cagney@redhat.com>
7514
7515 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7516 * gdbarch.h, gdbarch.c: Regenerate.
7517 * valops.c (hand_function_call): Update comment.
7518 * stack.c (return_command): Update comment.
7519 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7520 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7522 * x86-64-tdep.c (x86_64_init_abi): Update.
7523 * vax-tdep.c (vax_gdbarch_init): Update.
7524 * v850-tdep.c (v850_gdbarch_init): Update.
7525 * sparc-tdep.c (sparc_gdbarch_init): Update.
7526 * sh-tdep.c (sh_gdbarch_init): Update.
7527 * s390-tdep.c (s390_gdbarch_init): Update.
7528 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7529 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7530 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7531 * mips-tdep.c (mips_gdbarch_init): Update.
7532 * mcore-tdep.c (mcore_gdbarch_init): Update.
7533 * m68k-tdep.c (m68k_gdbarch_init): Update.
7534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7535 * ia64-tdep.c (ia64_gdbarch_init): Update.
7536 * i386-tdep.c (i386_gdbarch_init): Update.
7537 * hppa-tdep.c (hppa_gdbarch_init): Update.
7538 * h8300-tdep.c (h8300_gdbarch_init): Update.
7539 * frv-tdep.c (frv_gdbarch_init): Update.
7540 * cris-tdep.c (cris_gdbarch_init): Update.
7541 * avr-tdep.c (avr_gdbarch_init): Update.
7542 * arm-tdep.c (arm_gdbarch_init): Update.
7543 * alpha-tdep.c (alpha_gdbarch_init): Update.
7544
1594fa56
AC
75452003-03-13 Andrew Cagney <cagney@redhat.com>
7546
7547 * frame.c (legacy_frame_p): New function.
7548 (get_prev_frame): Use legacy_frame_p.
7549 * frame.h (legacy_frame_p): Declare.
7550
7717fda3
V
75512003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7552
fbe586ae 7553 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7554 listing corrected.
7555
0c67cbe9
V
75562003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7557
fbe586ae 7558 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7559
03febf99
AC
75602003-03-12 Andrew Cagney <cagney@redhat.com>
7561
7562 * frame.c (get_prev_frame): Rename the frame parameter to
7563 "this_frame".
7564 (get_next_frame, legacy_get_prev_frame): Ditto.
7565
0a1e1ca1
AC
75662003-03-12 Andrew Cagney <cagney@redhat.com>
7567
7568 * frame.c (get_current_frame): Check target_has_registers before
7569 checking target_has_stack.
7570 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7571 instead of deprecated_selected_frame.
7572 * findvar.c (value_of_register): Pass "frame", not
7573 deprecated_selected_frame, to value_of_builtin_reg.
7574
a66a9c23
AC
75752003-03-12 Andrew Cagney <cagney@redhat.com>
7576
7577 * regcache.c (regcache_cooked_write_signed): New function.
7578 (regcache_cooked_write_unsigned): New function.
7579 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7580 (regcache_cooked_read_signed): Fix regnum in range assertion.
7581 * regcache.h (regcache_cooked_write_signed): Declare.
7582 (regcache_cooked_write_unsigned): Declare.
7583
8bedc050
AC
75842003-03-12 Andrew Cagney <cagney@redhat.com>
7585
7586 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7587 * gdbarch.h, gdbarch.c: Re-generate.
7588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7589 * x86-64-tdep.h: Update.
7590 * x86-64-tdep.c (x86_64_init_abi): Update.
7591 * v850-tdep.c (v850_gdbarch_init): Update.
7592 * sparc-tdep.c (sparc_gdbarch_init): Update.
7593 * sh-tdep.c (sh_gdbarch_init): Update.
7594 * s390-tdep.c (s390_gdbarch_init): Update.
7595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7596 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7597 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7598 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7599 * mips-tdep.c (mips_gdbarch_init): Update.
7600 * mcore-tdep.c (mcore_gdbarch_init): Update.
7601 * m68k-tdep.c (m68k_gdbarch_init): Update.
7602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7603 * ia64-tdep.c (ia64_gdbarch_init): Update.
7604 * i386-tdep.c (i386_gdbarch_init): Update.
7605 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7606 * hppa-tdep.c (hppa_gdbarch_init): Update.
7607 * h8300-tdep.c (h8300_gdbarch_init): Update.
7608 * frv-tdep.c (frv_gdbarch_init): Update.
7609 * cris-tdep.c (cris_gdbarch_init): Update.
7610 * avr-tdep.c (avr_gdbarch_init): Update.
7611 * arm-tdep.c (arm_gdbarch_init): Update.
7612 * alpha-tdep.c (alpha_gdbarch_init): Update.
7613 * sh-tdep.c (sh_init_extra_frame_info): Update.
7614 (sh64_init_extra_frame_info): Update.
7615 * ns32knbsd-nat.c (frame_num_args): Update.
7616 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7617 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7618 (xstormy16_frame_chain_valid): Update.
7619 * vax-tdep.c (vax_saved_pc_after_call): Update.
7620 * v850-tdep.c (v850_frame_chain): Update.
7621 (v850_pop_frame): Update.
7622 (v850_init_extra_frame_info): Update.
7623 * sparc-tdep.c (setup_arbitrary_frame): Update.
7624 * ns32k-tdep.c (umax_frame_num_args): Update.
7625 * s390-tdep.c (s390_pop_frame_regular): Update.
7626 * mn10300-tdep.c (mn10300_frame_chain): Update.
7627 (mn10300_pop_frame_regular): Update.
7628 (mn10300_init_extra_frame_info): Update.
7629 * mips-tdep.c (mips_init_frame_pc_first): Update.
7630 (mips_frame_chain): Update.
7631 (mips_pop_frame): Update.
7632 * mcore-tdep.c (mcore_frame_chain): Update.
7633 (mcore_pop_frame): Update.
7634 (mcore_init_extra_frame_info): Update.
7635 * arch-utils.c (init_frame_pc_default): Update.
7636 * m68k-tdep.c (isi_frame_num_args): Update.
7637 (delta68_frame_num_args): Update.
7638 (news_frame_num_args): Update.
7639 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7640 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7641 (alpha_frame_chain): Update.
7642 (alpha_pop_frame): Update.
7643 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7644 (hppa_init_extra_frame_info): Update.
7645 (hppa_frame_chain): Update.
7646 (hppa_frame_chain_valid): Update.
7647 * cris-tdep.c (cris_init_extra_frame_info): Update.
7648 * avr-tdep.c (avr_init_extra_frame_info): Update.
7649 * arm-tdep.c (arm_frame_chain_valid): Update.
7650 (arm_init_extra_frame_info): Update.
7651 (arm_pop_frame): Update.
7652 * frame.c (frame_pc_unwind): Update.
7653 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7654 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7655 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7656 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7657 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7658 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7659
7a25a7c1
AC
76602003-03-12 Andrew Cagney <cagney@redhat.com>
7661
7662 Eliminate the need for POP_FRAME.
7663 * frame.c (do_frame_unwind_register): New function.
7664 (frame_pop): When no POP_FRAME, pop the frame using register
7665 unwind and a scratch regcache.
7666 (frame_saved_regs_pop): Delete function.
7667 (trad_frame_unwinder): Update.
7668 * d10v-tdep.c (d10v_frame_pop): Delete function.
7669 (d10v_frame_unwind): Update.
7670 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7671 (sentinel_frame_unwinder): Update.
7672 * dummy-frame.c (dummy_frame_pop): Delete function.
7673 (dummy_frame_unwind): Update.
7674 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7675 (struct frame_unwind): Update.
7676
2f38ef89
KB
76772003-03-11 Kevin Buettner <kevinb@redhat.com>
7678
7679 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7680 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7681 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7682 Do range checks on register number obtained from debugging info.
7683 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7684 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7685 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7686 mapping function.
7687 (do_fp_register_row): Fix typo which caused double type to be
7688 used when attempting to unpack a float.
7689
552f4abf
JB
76902003-03-11 J. Brobecker <brobecker@gnat.com>
7691
7692 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7693
e0d2ae16
AC
76942003-03-11 Andrew Cagney <cagney@redhat.com>
7695
7696 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7697 frame. Problem found by Corinna Vinschen.
7698
ddbfdd06
PM
76992003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7700
7701 * doublest.c (floatformat_from_length): Accept also
7702 the real size of 'long double' type.
7703
088b2ddc 77042003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7705
088b2ddc 7706 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7707 * breakpoint.c (bpstat_copy): Copy the command lines as well
7708 as the old value, to match what is freed in bpstat_clear.
7709
f56f77c1
DC
77102003-03-10 David Carlton <carlton@math.stanford.edu>
7711
7712 * minsyms.c (add_minsym_to_hash_table): Replace
7713 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7714 (compare_minimal_symbols, compact_minimal_symbols)
7715 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7716 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7717 of DEPRECATED_SYMBOL_MATCHES_NAME.
7718 (lookup_minimal_symbol_solib_trampoline): Ditto.
7719
5602984a
AC
77202003-03-10 Andrew Cagney <cagney@redhat.com>
7721
7722 * regcache.h (regcache_cooked_read_ftype): Define.
7723 (regcache_save, regcache_restore): Add a cooked_read parameter.
7724 * regcache.c (regcache_save, regcache_restore): Update.
7725 (do_cooked_read): New function.
7726 (regcache_cpy): Pass do_cooked_read to regcache_save and
7727 regcache_restore.
7728
8bedc050
AC
77292003-03-10 Andrew Cagney <cagney@redhat.com>
7730
7731 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7732 * gdbarch.h, gdbarch.c: Re-generate.
7733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7734 * x86-64-tdep.h: Update.
7735 * x86-64-tdep.c (x86_64_init_abi): Update.
7736 * v850-tdep.c (v850_gdbarch_init): Update.
7737 * sparc-tdep.c (sparc_gdbarch_init): Update.
7738 * sh-tdep.c (sh_gdbarch_init): Update.
7739 * s390-tdep.c (s390_gdbarch_init): Update.
7740 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7741 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7742 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7743 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7744 * mips-tdep.c (mips_gdbarch_init): Update.
7745 * mcore-tdep.c (mcore_gdbarch_init): Update.
7746 * m68k-tdep.c (m68k_gdbarch_init): Update.
7747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7748 * ia64-tdep.c (ia64_gdbarch_init): Update.
7749 * i386-tdep.c (i386_gdbarch_init): Update.
7750 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7751 * hppa-tdep.c (hppa_gdbarch_init): Update.
7752 * h8300-tdep.c (h8300_gdbarch_init): Update.
7753 * frv-tdep.c (frv_gdbarch_init): Update.
7754 * cris-tdep.c (cris_gdbarch_init): Update.
7755 * avr-tdep.c (avr_gdbarch_init): Update.
7756 * arm-tdep.c (arm_gdbarch_init): Update.
7757 * alpha-tdep.c (alpha_gdbarch_init): Update.
7758 * sh-tdep.c (sh_init_extra_frame_info): Update.
7759 (sh64_init_extra_frame_info): Update.
7760 * ns32knbsd-nat.c (frame_num_args): Update.
7761 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7762 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7763 (xstormy16_frame_chain_valid): Update.
7764 * vax-tdep.c (vax_saved_pc_after_call): Update.
7765 * v850-tdep.c (v850_frame_chain): Update.
7766 (v850_pop_frame): Update.
7767 (v850_init_extra_frame_info): Update.
7768 * sparc-tdep.c (setup_arbitrary_frame): Update.
7769 * ns32k-tdep.c (umax_frame_num_args): Update.
7770 * s390-tdep.c (s390_pop_frame_regular): Update.
7771 * mn10300-tdep.c (mn10300_frame_chain): Update.
7772 (mn10300_pop_frame_regular): Update.
7773 (mn10300_init_extra_frame_info): Update.
7774 * mips-tdep.c (mips_init_frame_pc_first): Update.
7775 (mips_frame_chain): Update.
7776 (mips_pop_frame): Update.
7777 * mcore-tdep.c (mcore_frame_chain): Update.
7778 (mcore_pop_frame): Update.
7779 (mcore_init_extra_frame_info): Update.
7780 * arch-utils.c (init_frame_pc_default): Update.
7781 * m68k-tdep.c (isi_frame_num_args): Update.
7782 (delta68_frame_num_args): Update.
7783 (news_frame_num_args): Update.
7784 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7785 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7786 (alpha_frame_chain): Update.
7787 (alpha_pop_frame): Update.
7788 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7789 (hppa_init_extra_frame_info): Update.
7790 (hppa_frame_chain): Update.
7791 (hppa_frame_chain_valid): Update.
7792 * cris-tdep.c (cris_init_extra_frame_info): Update.
7793 * avr-tdep.c (avr_init_extra_frame_info): Update.
7794 * arm-tdep.c (arm_frame_chain_valid): Update.
7795 (arm_init_extra_frame_info): Update.
7796 (arm_pop_frame): Update.
7797 * frame.c (frame_pc_unwind): Update.
7798 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7799 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7800 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7801 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7802 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7803 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7804
12cc2063
AC
78052003-03-10 Andrew Cagney <cagney@redhat.com>
7806
7807 * gdbarch.sh (gdbarch_unwind_pc): New method.
7808 * gdbarch.h, gdbarch.c: Regenerate.
7809 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7810 but use read_pc and FRAME_SAVED_PC as fall backs.
7811 (frame_saved_regs_pc_unwind): Delete function.
7812 (trad_frame_unwinder): Update.
7813 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7814 (struct frame_unwind): Update.
7815 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7816 (dummy_frame_unwind): Update.
7817 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7818 (sentinel_frame_unwinder): Update.
7819 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7820 (d10v_frame_unwind): Update.
7821 (d10v_unwind_pc): New function.
7822 (d10v_gdbarch_init): Set unwind_pc.
7823
ef840a37
AC
78242003-03-10 Andrew Cagney <cagney@redhat.com>
7825
a2ce2e56
AC
7826 * gdbarch.h: Re-generate.
7827
ef840a37
AC
7828 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7829 PC.
7830 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7831 the PC register.
7832
08f3424b
MK
78332003-03-08 Mark Kettenis <kettenis@gnu.org>
7834
7835 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7836
1248ede2
AC
78372003-03-08 Andrew Cagney <cagney@redhat.com>
7838
7839 * cli-out.c: Update copyright.
7840 (cli_out_data): Define typedef. Use instead of ui_out_data.
7841
f49bacc8
AC
78422003-03-08 Andrew Cagney <cagney@redhat.com>
7843
7844 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7845 the result.
7846
9b05f993
AC
78472003-03-07 Andrew Cagney <cagney@redhat.com>
7848
7849 * gdbarch.sh: Don't generate two macro definitions when an
7850 undefined macro taking no arguments.
7851 * gdbarch.h: Regenerate.
8ffd9b1b 7852
166f4c7b
ML
78532002-03-07 Michal Ludvig <mludvig@suse.cz>
7854
7855 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7856 (x86_64_unwind_dummy_id): New functions.
7857 (x86_64_init_abi): Register these two new functions.
7858
6d686a84
ML
78592003-03-07 Michal Ludvig <mludvig@suse.cz>
7860
7861 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7862 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
7863 separate function.
7864 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7865
6314f104
AC
78662003-03-05 Andrew Cagney <cagney@redhat.com>
7867
7868 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7869 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7870 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7871 to use unwind_dummy_id when a dummy frame.
7872 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7873 predicate.
7874 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 7875
ceea5145
AC
78762003-03-05 Andrew Cagney <cagney@redhat.com>
7877
7878 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7879 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7880 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7881 values.
7882
0d843116
AC
78832003-03-05 Andrew Cagney <cagney@redhat.com>
7884
7885 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7886 (struct d10v_unwind_cache): Delete field "frameless". Replace
7887 "next_addr" with "sp_offset". Add "r11_offset".
7888 (d10v_frame_unwind_cache): Update.
7889 (prologue_find_regs): Update. When "mv r11, sp", save the
7890 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7891 RN was saved in r11_offset.
7892
b2579786
AC
78932003-03-05 Andrew Cagney <cagney@redhat.com>
7894
7895 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7896 cached PC value in the next frame.
7897
218e5956
AC
78982003-03-05 Andrew Cagney <cagney@redhat.com>
7899
7900 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7901 "id_unwind_cache" with "id".
7902 (frame_id_unwind): Delete declaration.
7903 * frame.c (frame_id_unwind): Delete function.
7904 (get_prev_frame): Call the frame id unwind method directly. Store
7905 the returned next frame's ID value in NEXT_FRAME. Note that there
7906 is a problem with the wrong unwind ID being called with the wrong
7907 unwind cache.
7908
ed363b1b
DJ
79092003-03-05 Daniel Jacobowitz <drow@mvista.com>
7910
7911 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7912
fe1f4a5e
DJ
79132003-03-05 James Ingham <jingham@apple.com>
7914 Daniel Jacobowitz <drow@mvista.com>
7915
7916 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7917 (auto_cp_abi): New variable.
7918 (current_cp_abi, num_cp_abis): Make static.
7919 (CP_ABI_MAX): Define.
7920 (cp_abis): Turn into an array.
7921 (value_virtual_fn_field): Fix formatting.
7922 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7923 takes a pointer.
7924 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7925 (list_cp_abis, _initialize_cp_abi): New functions.
7926 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7927 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7928 switch_to_cp_abi. Update prototype for register_cp_abi.
7929 * Makefile.in (cp-abi.o): Update dependencies.
7930 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7931 instead of switch_to_cp_abi.
7932 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7933 register_cp_abi.
7934 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7935 register_cp_abi.
7936 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7937
e4adbba9
DJ
79382003-03-05 Daniel Jacobowitz <drow@mvista.com>
7939
7940 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7941 * dwarf2loc.c: Include "regcache.h".
7942 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7943 register_size.
7944 * Makefile.in (dwarf2loc.o): Update dependencies.
7945
91ccbfc1
TR
79462003-03-04 Theodore A. Roth <troth@openavr.org>
7947
7948 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7949 number of io registers reported by remote target is not a multiple of
7950 step.
7951
3d4e8fd2
DC
79522003-03-04 David Carlton <carlton@math.stanford.edu>
7953
7954 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7955 (lookup_symbol_aux_psymtabs): Update call to
7956 lookup_partial_symbol.
7957 (lookup_transparent_type, find_main_psymtab)
7958 (make_symbol_overload_list): Ditto.
7959
ed42d87b
KH
79602003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7961
7962 * MAINTAINERS (Write after approval): Update my email address.
7963
a0ed5532
AC
79642003-03-03 Andrew Cagney <cagney@redhat.com>
7965
7966 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7967 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7968 predicate. Replace MAX_REGISTER_RAW_SIZE.
7969 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7970 MAX_REGISTER_VIRTUAL_SIZE.
7971 * regcache.c (legacy_max_register_raw_size): New function.
7972 (legacy_max_register_virtual_size): New function.
7973 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7974 (MAX_REGISTER_RAW_SIZE): Define.
7975 (legacy_max_register_raw_size): Declare.
7976 (legacy_max_register_virtual_size): Declare.
7977 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7978 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7979 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7980 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7981 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7982 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7983 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7984 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7985 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7987 * vax-tdep.c (vax_gdbarch_init): Update.
7988 * v850-tdep.c (v850_gdbarch_init): Update.
7989 * sparc-tdep.c (sparc_gdbarch_init): Update.
7990 * sh-tdep.c (sh_gdbarch_init): Update.
7991 * s390-tdep.c (s390_gdbarch_init): Update.
7992 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7993 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7994 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7995 * mips-tdep.c (mips_gdbarch_init): Update.
7996 * mcore-tdep.c (mcore_gdbarch_init): Update.
7997 * m68k-tdep.c (m68k_gdbarch_init): Update.
7998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7999 * ia64-tdep.c (ia64_gdbarch_init): Update.
8000 * i386-tdep.c (i386_gdbarch_init): Update.
8001 * hppa-tdep.c (hppa_gdbarch_init): Update.
8002 * h8300-tdep.c (h8300_gdbarch_init): Update.
8003 * frv-tdep.c (frv_gdbarch_init): Update.
8004 * cris-tdep.c (cris_gdbarch_init): Update.
8005 * avr-tdep.c (avr_gdbarch_init): Update.
8006 * arm-tdep.c (arm_gdbarch_init): Update.
8007 * alpha-tdep.c (alpha_gdbarch_init): Update.
8008 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8009 max_register_raw_size or max_register_virtual_size.
8010
8e437497
DC
80112003-03-03 David Carlton <carlton@math.stanford.edu>
8012
8013 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8014 SYMBOL_MATCHES_NAME, add comment.
8015 (SYMBOL_MATCHES_NATURAL_NAME): New.
8016 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8017 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8018 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8019 * symtab.c (lookup_partial_symbol): Use
8020 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8021 unhelpful comment.
8022 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8023 SYMBOL_MATCHES_NAME.
8024 Fix for PR c++/33.
8025
25120b0d
DC
80262003-03-03 David Carlton <carlton@math.stanford.edu>
8027
8028 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8029 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8030 by regexp matching against SYMBOL_NATURAL_NAME.
8031
78a11fb4
DC
80322003-03-03 David Carlton <carlton@math.stanford.edu>
8033
8034 * linespec.c (find_method): Extract code into collect_methods.
8035 (collect_methods): New.
8036
645dd519
MK
80372003-03-02 Mark Kettenis <kettenis@gnu.org>
8038
b4700d91
MK
8039 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8040 get_frame_base.
8041
645dd519
MK
8042 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8043 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8044
0aa7e1aa
SC
80452003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8046
8ffd9b1b 8047 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8048 and not regnum when summing the size of all registers up to regnum.
8049
f30ee0bc
AC
80502003-03-01 Andrew Cagney <cagney@redhat.com>
8051
8052 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8053 FRAME_INIT_SAVED_REGS.
8054 * gdbarch.h, gdbarch.c: Regenerate.
8055 * stack.c (frame_info): Update.
8056 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8057 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8058 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8059 * ns32k-tdep.c (ns32k_pop_frame): Update.
8060 * mips-tdep.c (mips_pop_frame): Update.
8061 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8062 * ia64-tdep.c (ia64_frame_chain): Update.
8063 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8064 (ia64_frameless_function_invocation): Update.
8065 (ia64_init_extra_frame_info): Update.
8066 (ia64_pop_frame_regular): Update.
8067 * frame.h (struct frame_info): Update comment.
8068 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8069 * frame.c (frame_saved_regs_register_unwind): Update.
8070 (frame_saved_regs_register_unwind): Update.
8071 (deprecated_generic_get_saved_register): Update.
8072 * cris-tdep.c: Update comment.
8073 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8074 Rename macro.
8075 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8076 * x86-64-tdep.c (x86_64_init_abi): Update.
8077 * vax-tdep.c (vax_gdbarch_init): Update.
8078 * v850-tdep.c (v850_gdbarch_init): Update.
8079 * sparc-tdep.c (sparc_gdbarch_init): Update.
8080 * sh-tdep.c (sh_gdbarch_init): Update.
8081 * s390-tdep.c (s390_gdbarch_init): Update.
8082 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8083 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8084 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8085 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8086 * mips-tdep.c (mips_gdbarch_init): Update.
8087 * mcore-tdep.c (mcore_gdbarch_init): Update.
8088 * m68k-tdep.c (m68k_gdbarch_init): Update.
8089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8090 * ia64-tdep.c (ia64_gdbarch_init): Update.
8091 * i386-tdep.c (i386_gdbarch_init): Update.
8092 * frv-tdep.c (frv_gdbarch_init): Update.
8093 * avr-tdep.c (avr_gdbarch_init): Update.
8094 * arm-tdep.c (arm_gdbarch_init): Update.
8095 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8096
42fa7c0f
AC
80972003-03-01 Andrew Cagney <cagney@redhat.com>
8098
8099 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8100 option enum and switch. When no windows, set the interpreter to
8101 INTERP_CONSOLE.
8ffd9b1b 8102
49c7e338
AC
81032003-03-01 Andrew Cagney <cagney@redhat.com>
8104
8105 * main.c (captured_main): Replace magic option characters with an
8106 enum.
8107
e9582e71
AC
81082003-03-01 Andrew Cagney <cagney@redhat.com>
8109
8110 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8111 INIT_EXTRA_FRAME_INFO.
8112 * gdbarch.h, gdbarch.c: Regenerate.
8113 * arm-tdep.c: Update comments.
8114 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8115 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8116 * frame.h, avr-tdep.c: Ditto.
8117 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8118 (create_new_frame, legacy_get_prev_frame): Ditto.
8119 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8120 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8122 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8123 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8124 * v850-tdep.c (v850_gdbarch_init): Ditto.
8125 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8126 * sh-tdep.c (sh_gdbarch_init): Ditto.
8127 * s390-tdep.c (s390_gdbarch_init): Ditto.
8128 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8129 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8130 * mips-tdep.c (mips_gdbarch_init): Ditto.
8131 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8134 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8135 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8137 * frv-tdep.c (frv_gdbarch_init): Ditto.
8138 * cris-tdep.c (cris_gdbarch_init): Ditto.
8139 * avr-tdep.c (avr_gdbarch_init): Ditto.
8140 * arm-tdep.c (arm_gdbarch_init): Ditto.
8141 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8142 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8143
35cac7cf
AC
81442003-03-01 Andrew Cagney <cagney@redhat.com>
8145
8146 * gdbarch.sh (register_type): New function with predicate.
8147 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8148 * gdbarch.h, gdbarch.c: Re-generate.
8149 * arch-utils.c (generic_register_byte): Use generic_register_size.
8150 (generic_register_size): When available, use
8151 gdbarch_register_type.
8152 * regcache.c (init_regcache_descr): When available, initialize the
8153 register type array using gdbarch_register_type. If the
8154 architecture supplies gdbarch_register_type, do not use the legacy
8155 regcache layout.
8156 * d10v-tdep.c (d10v_register_type): Replace
8157 d10v_register_virtual_type.
8158 (d10v_gdbarch_init): Set register_type instead of
8159 register_virtual_type.
8160
7b83296f
AC
81612003-03-01 Andrew Cagney <cagney@redhat.com>
8162
8163 * Makefile.in (ax-gdb.o): Update dependencies.
8164 * ax-gdb.c: Include "regcache.h".
8165 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8166 * findvar.c (value_of_register): Ditto.
8167 * infcmd.c (default_print_registers_info): Ditto.
8168
eadc1c87
MK
81692003-03-01 Mark Kettenis <kettenis@gnu.org>
8170
8171 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8172 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8173
14143612
MK
81742003-03-01 Mark Kettenis <kettenis@gnu.org>
8175
8176 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8177 of STREQ.
8178
a55cc764
DJ
81792003-02-28 Daniel Jacobowitz <drow@mvista.com>
8180
8181 * Makefile.in (dwarf2loc.o): Update dependencies.
8182 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8183 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8184 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8185 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8186 (locexpr_tracepoint_var_ref): New function.
8187 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8188
08a617da
AC
81892003-02-28 Andrew Cagney <cagney@redhat.com>
8190
8191 * regcache.c (register_size): New function.
8192 * regcache.h (register_size): Declare
8193 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8194 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8195
4224873a
DC
81962003-02-28 David Carlton <carlton@math.stanford.edu>
8197
8198 * linespec.c (decode_compound): Extract code into find_method.
8199 (find_method): New.
8200
ccdc5d7f
JB
82012003-02-28 J. Brobecker <brobecker@gnat.com>
8202
8203 * Makefile.in: Add rules to build and link in observer.o.
8204
974e8ced
JB
82052003-02-27 J. Brobecker <brobecker@gnat.com>
8206
8207 * observer.c: Minor comments edits.
8208
7a28f973
JB
82092003-02-27 J. Brobecker <brobecker@gnat.com>
8210
8211 * observer.h, observer.c: New file.
8212
27cddce2
AC
82132003-02-27 Andrew Cagney <cagney@redhat.com>
8214
8215 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8216
b94a41a1
SC
82172003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8218
8219 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8220 (M6812_OP_STS_EXT): Likewise.
8221 (m6811_prologue): Use the above to recognize prologue.
8222 (m6812_prologue): Likewise.
8223
c8be8951
DC
82242003-02-27 David Carlton <carlton@math.stanford.edu>
8225
8226 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8227 SYMBOL_PRINT_NAME.
8228 (compare_psymbols): Ditto.
8229 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8230
d05bb1fc
MS
82312003-02-27 Michael Snyder <msnyder@redhat.com>
8232
4e845cd3
MS
8233 * f-lang.c (build_fortran_types): New function.
8234 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8235 * doublest.c (extract_floating): Fix warning text.
8236
f3824013
AC
82372003-02-27 Andrew Cagney <cagney@redhat.com>
8238
8239 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8240 predicate. Replaces PUSH_DUMMY_FRAME.
8241 * gdbarch.h, gdbarch.c: Regnerate.
8242 * valops.c (hand_function_call): Update. Call
8243 generic_push_dummy_frame directly.
8244 * vax-tdep.c (vax_gdbarch_init): Update.
8245 * sparc-tdep.c (sparc_gdbarch_init): Update.
8246 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8247 * m68k-tdep.c (m68k_gdbarch_init): Update.
8248 * hppa-tdep.c (hppa_gdbarch_init): Update.
8249 * alpha-tdep.c (alpha_gdbarch_init): Update.
8250 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8251 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8252 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8254 push_dummy_frame to generic_push_dummy_frame.
8255 * v850-tdep.c (v850_gdbarch_init): Ditto.
8256 * sh-tdep.c (sh_gdbarch_init): Ditto.
8257 * s390-tdep.c (s390_gdbarch_init): Ditto.
8258 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8259 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8260 * mips-tdep.c (mips_gdbarch_init): Ditto.
8261 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8263 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8264 * i386-tdep.c (i386_gdbarch_init): Ditto.
8265 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8266 * frv-tdep.c (frv_gdbarch_init): Ditto.
8267 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8268 * cris-tdep.c (cris_gdbarch_init): Ditto.
8269 * avr-tdep.c (avr_gdbarch_init): Ditto.
8270 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8271
ad188201
KB
82722003-02-26 Kevin Buettner <kevinb@redhat.com>
8273
8274 * mips-tdep.c (show_mips_abi): New function.
8275 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8276 command ``show mips abi''.
8277
6b37567a 82782003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8279
6b37567a 8280 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8281 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8282 more sline entries have been seen for the function.
8283
d3e0a5bf
MC
82842003-02-26 Michael Chastain <mec@shout.net>
8285
8286 * configure: Regenerate with autoconf 000227.
8287
18972eea
MC
82882003-02-26 Michael Chastain <mec@shout.net>
8289
8290 Close PR build/660.
8291 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8292 for old libc5/glibc.
8293 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8294
0bbde931
KW
82952003-02-26 Kris Warkentin <kewarken@qnx.com>
8296
8297 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8298 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8299
27ca5dad
MC
83002003-02-26 Michael Chastain <mec@shout.net>
8301
8302 * configure.in: New variable HAVE_UINTPTR_T.
8303 * configure, config.in: Regenerated.
8304
6f88d630
DJ
83052003-02-26 Daniel Jacobowitz <drow@mvista.com>
8306
8307 Fix PR build/1097.
8308 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8309
b14185ce
AC
83102003-02-25 Andrew Cagney <cagney@redhat.com>
8311
8312 * frame.c (get_prev_frame): Add comment on check for
8313 inside_entry_func. Only check for inside_entry_file when not a
8314 dummy and not a sentinel. Check that the new frame is not inner
8315 to the old frame.
8316
ac2bd0a9
AC
83172003-02-25 Andrew Cagney <cagney@redhat.com>
8318
8319 * frame.c (frame_debug): New variable.
8320 (_initialize_frame): Add "set/show debug frame" command.
8321 (get_prev_frame): When frame_debug, print reason why unwind
8322 failed.
8323
b18a0fd2
MC
83242003-02-25 Michael Chastain <mec@shout.net>
8325
8326 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8327 to avoid uintptr_t definition problems.
8328
22abf04a
DC
83292003-02-25 David Carlton <carlton@math.stanford.edu>
8330
8331 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8332 (SYMBOL_LINKAGE_NAME): Ditto.
8333 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8334 SYMBOL_LINKAGE_NAME.
8335 (struct general_symbol_info): Expand comment.
8336 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8337 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8338 (SYMBOL_MATCHES_REGEXP): Ditto.
8339 * symtab.c (symbol_natural_name): New function.
8340 * objfiles.h: Replace all uses of SYMBOL_NAME by
8341 DEPRECATED_SYMBOL_NAME.
8342 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8343 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8344 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8345 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8346 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8347 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8348 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8349 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8350 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8351 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8352 * ada-exp.y: Ditto.
8353 * ada-exp.y: Update copyright.
8354 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8355 * cp-valprint.c: Ditto.
8356
1a5848f6
JJ
83572003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8358
8359 * infptrace.c (detach): Do not flag error if ptrace detach fails
8360 and errno is set to ESRCH.
8361
7343d46a
AC
83622003-02-24 Andrew Cagney <cagney@redhat.com>
8363
8364 * infptrace.c (udot_info): Change type of udot_off to long. Use
8365 paddr when printing udot_off's value.
8366
49fa1dc2
DC
83672003-02-24 David Carlton <carlton@math.stanford.edu>
8368
8369 * symtab.c (make_symbol_overload_list): Only read in partial
8370 symtabs containing a matching partial symbol.
8371
0fe19209
DC
83722003-02-24 David Carlton <carlton@math.stanford.edu>
8373
8374 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8375 do the comparison, not strcmp.
8376 * symfile.c (compare_psymbols): Ditto.
8377 * defs.h: Declare strcmp_iw_ordered.
8378 * utils.c (strcmp_iw_ordered): New function.
8379
8e3ee7b5
JB
83802003-02-24 Jim Blandy <jimb@redhat.com>
8381
8382 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8383 support, shared libs): Remove my name from here, to better reflect
8384 reality.
8385
7df1a324
KW
83862003-02-24 Kris Warkentin <kewarken@qnx.com>
8387
8388 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8389 (target_ops): Add to_have_continuable_watchpoint.
8390 * target.c (update_current_target): Add INHERIT line for
8391 to_have_continuable_watchpoint.
8392 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8393 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8394 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8395 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8396
d1c76907
EZ
83972003-02-24 Elena Zannoni <ezannoni@redhat.com>
8398
8399 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8400 maintainership.
8401
2610b0bf
KW
84022003-02-24 Kris Warkentin <kewarken@qnx.com>
8403
f46169db
KW
8404 * solib.c (solib_open): Call target defined search function after
8405 failing with solib-search-path.
8406 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8407 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8408
9a3c34fe
KW
84092003-02-24 Kris Warkentin <kewarken@qnx.com>
8410
f46169db 8411 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8412
2417dd25
SC
84132003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8414
8415 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8416
b631436b
SC
84172003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8418
8419 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8420 (m68hc11_add_reggroups): New function.
8421 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8422 (m68hc11_gdbarch_init): Install the reggroups.
8423 (_initialize_m68hc11_tdep): Initialize them.
8424
0aa8c1e4
JW
84252003-02-21 James E Wilson <wilson@tuliptree.org>
8426
8427 * MAINTAINERS: Update my email address.
8428
50ceaba5
DC
84292003-02-21 David Carlton <carlton@math.stanford.edu>
8430
8431 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8432
4c2df51b
DJ
84332003-02-21 Daniel Jacobowitz <drow@mvista.com>
8434
8435 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8436 * symtab.h: Add opaque declarations of struct axs_value and
8437 struct agent_expr.
8438 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8439 (struct location_funcs): New type.
8440 (struct symbol): Add "loc" to aux_value.
8441 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8442 * dwarf2read.c: Include "dwarf2expr.h".
8443 (dwarf2_symbol_mark_computed): New function.
8444 (read_func_scope): Use it.
8445 (var_decode_location): New function.
8446 (new_symbol): Use it.
8447 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8448
8449 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8450 (dwarf2expr_h, dwarf2loc_h): New variables.
8451 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8452 (dwarf2expr.o, dwarf2loc.o): New rules.
8453 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8454 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8455 LOC_COMPUTED_ARG.
8456 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8457 * m2-exp.y (yylex): Likewise.
8458 * printcmd.c (address_info, print_frame_args): Likewise.
8459 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8460 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8461 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8462 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8463 * symtab.c (lookup_block_symbol): Likewise.
8464
5784d15e
AF
84652003-02-20 Adam Fedor <fedor@gnu.org>
8466
8467 * symtab.h: Remove objc_specific struct
8468 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8469 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8470 Have language_objc use cplus_specific struct.
8471
d4cad8db
TT
84722003-02-20 Tom Tromey <tromey@redhat.com>
8473
8474 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8475 TYPE_NAME, when printing a String value. PR java/1075.
8476
2f9a90b4
AF
84772003-02-20 Adam Fedor <fedor@gnu.org>
8478
d38074a8 8479 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8480 * objc-lang.c (find_methods): Make static.
2f9a90b4 8481
6f17862b
CF
84822003-02-20 Christopher Faylor <cgf@redhat.com>
8483
8484 * win32-nat.c (get_image_name): Check return value from
8485 ReadProcessMemory.
8486 (child_xfer_memory): Ditto.
8487
715d1656
AO
84882003-02-20 Alexandre Oliva <aoliva@redhat.com>
8489
8490 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8491 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8492 '${exec_prefix}' (in addition to the expansion thereof) as
8493 relocatable.
8494 * configure: Rebuilt.
8495
b1262a02
DC
84962003-02-20 David Carlton <carlton@math.stanford.edu>
8497
8498 * symtab.c (search_symbols): Revert the search_symbols part of my
8499 2002-12-23 patch. Add comment.
8500
7134143f
DJ
85012002-02-20 Daniel Jacobowitz <drow@mvista.com>
8502
8503 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8504 * dbxread.c (elfstab_build_psymtabs): Don't call
8505 install_minimal_symbols.
8506 (stabsect_build_psymtabs): Likewise.
8507 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8508 earlier.
8509 * somread.c (som_symfile_read): Call install_minimal_symbols
8510 and do_cleanups earlier.
8511 * nlmread.c (nlm_symfile_read): Likewise.
8512 * mdebugread.c (elfmdebug_build_psymtabs): Call
8513 install_minimal_symbols and make appropriate cleanups.
8514
cf466558
KB
85152003-02-20 Kevin Buettner <kevinb@redhat.com>
8516
8517 * solib.c (reload_shared_libraries): New function.
8518 (_initialize_solib): Add callbacks for ``set solib-search-path''
8519 and ``set solib-absolute-prefix''.
8520
de5ad195
DC
85212003-02-20 David Carlton <carlton@math.stanford.edu>
8522
8523 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8524 expand comment.
8525 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8526 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8527 * ada-typeprint.c (ada_typedef_print): Ditto.
8528 * ax-gdb.c (gen_var_ref): Ditto.
8529 * breakpoint.c (print_one_breakpoint): Ditto.
8530 * buildsym.c (finish_block): Ditto.
8531 * c-valprint.c (c_val_print): Ditto.
8532 * expprint.c (print_subexp): Ditto.
8533 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8534 * infcmd.c (jump_command): Ditto.
8535 * linespec.c (decode_line_2, decode_compound): Ditto.
8536 * maint.c (maintenance_translate_address): Ditto.
8537 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8538 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8539 Ditto.
8ffd9b1b
AJ
8540 * p-valprint.c (pascal_val_print): Ditto.
8541 * stabsread.c (define_symbol): Ditto.
de5ad195 8542 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8543 (print_frame_arg_vars, return_command): Ditto.
8544 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8545 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8546 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8547 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8548 (rbreak_command): Ditto.
8549 * tracepoint.c (tracepoints_info): Ditto.
8550 * typeprint.c (typedef_print): Ditto.
8551 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8552 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8553 * ada-typeprint.c: Update Copyright.
8554 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8555 * tracepoint.c, cli/cli-cmds.c: Ditto.
8556
f796e4be
KB
85572003-02-20 Kevin Buettner <kevinb@redhat.com>
8558
8559 * frame.c (generic_unwind_get_saved_register): Make non-static.
8560 * frame.h (generic_unwind_get_saved_register): Declare.
8561 * mips-tdep.c (read_next_frame_reg): Fetch register from
8562 current regcache when frame is NULL.
8563 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8564 that must be NULL.
8565 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8566 instead of frame_register_unwind().
8567
836cc9f4
AC
85682003-02-20 Andrew Cagney <ac131313@redhat.com>
8569
8570 * remote-sim.c (gdbsim_insert_breakpoint)
8571 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8572 code.
8573
501eef12
AC
85742003-02-20 Andrew Cagney <ac131313@redhat.com>
8575
8576 * remote.c (_initialize_remote): Add commands "set/show remote
8577 hardware-watchpoint-limit" and "set/show remote
8578 hardware-breakpoint-limit".
8579 (remote_hw_watchpoint_limit): Initialize to -1.
8580 (remote_hw_breakpoint_limit): Ditto.
8581 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8582
1b6bc7e0
CF
85832003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8584
8585 * coff-pe-read.c: New file - support reading of minimal symbols from a
8586 portable executable using the export table.
8587 * coff-pe-read.h: New file.
8588 * coffread.c: Include coff-pe-read.h.
8589 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8590 debugging symbols found.
8591 * Makefile.in (SFILES): Add coff-pe-read.o.
8592 (coff_pe_read_h): Define.
8593 (COMMON_OBS): Add coff-pe-read.o.
8594 (coffread.o): Add coff_pe_read_h dependency.
8595 (coff-pe-read.o): New target.
8596
fe898f56
DC
85972003-02-19 David Carlton <carlton@math.stanford.edu>
8598
8599 * Makefile.in (SFILES): Add block.c.
8600 (block_h): New.
8601 (COMMON_OBS): Add block.o.
8602 (block.o): New.
8603 (x86-64-tdep.o): Add $(block_h).
8604 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8605 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8606 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8607 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8608 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8609 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8610 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8611 * value.h: Add opaque declaration for struct block.
8612 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8613 * ada-lang.h: Ditto.
8614 * x86-64-tdep.c: #include "block.h"
8615 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8616 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8617 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8618 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8619 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8620 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8621 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8622 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8623 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8624 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8625 * symtab.c (block_function): Ditto.
8626 (contained_in): Ditto.
8627 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8628 block.h. Add opaque declaration for struct block.
8629 * symtab.h: Move block_function and contained_in declarations to
8630 block.h. Add opaque declarations for struct block, struct
8631 blockvector.
8632 (struct block): Move to block.h.
8633 (struct blockvector): Ditto.
8634 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8635 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8636 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8637 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8638 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8639 Ditto.
8640 * block.c: New file.
8641 * block.h: New file.
8642
173345b5
TR
86432003-02-19 Theodore A. Roth <troth@openavr.org>
8644
8645 * avr-tdep.c (avr_extract_return_value): Remove function.
8646 (avr_store_return_value): Remove function.
8647 (avr_extract_struct_value_address): Remove function.
8648 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8649
338ef23d
AC
86502003-02-19 Andrew Cagney <ac131313@redhat.com>
8651
8652 * rs6000-tdep.c: Include "gdb_assert.h".
8653 (registers_e500): Add "acc" and "spefscr".
8654 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8655 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8656 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8657 really is "r0".
8658 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8659
5412f5f3
KS
86602003-02-18 Keith Seitz <keiths@redhat.com>
8661
8662 * Makefile.in: Add gdbtk-interps.c.
8663
881324eb
KB
86642003-02-18 Kevin Buettner <kevinb@redhat.com>
8665
8666 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8667 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8668
6a2f5abf
AC
86692003-02-18 Andrew Cagney <cagney@redhat.com>
8670
8671 * symtab.h (struct objfile): Add opaque declaration.
8672
54c7009d
EZ
86732003-02-18 Elena Zannoni <ezannoni@redhat.com>
8674
8675 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8676 * dbxread.c (process_one_symbol): Use last_function_start rather
8677 than function_start_offset to find the real beginning of the
8678 current function. The latter is just the text section offset on
8679 some systems, the former is always the real function start.
54c7009d 8680
7ee6d7eb
AC
86812003-02-17 Andrew Cagney <cagney@redhat.com>
8682
8683 * configure.in: Revert ${target} != ${host}.
8684
2846da9b
AC
86852003-02-17 Andrew Cagney <ac131313@redhat.com>
8686
8687 * configure.in (Makefile): Use the test ${target} != ${host},
8688 instead of the absence of the "nm.h" file, to determine of the
8689 configuration non-native.
8690 * configure: Regenerate.
8ffd9b1b 8691
3b27aeea
EZ
86922003-02-14 Elena Zannoni <ezannoni@redhat.com>
8693
fbe586ae 8694 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8695
8696 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8697 conditionalize tui_active test.
8698 (lookup_cmd_1): Ditto.
8699
b0b1c2c0
MK
87002003-02-14 Mark Kettenis <kettenis@gnu.org>
8701
8702 * configure.in: Add check for _etext.
8703 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8704 available.
8705 * config.in, configure: regenerated.
8706
8f05cde5
DJ
87072003-02-14 Daniel Jacobowitz <drow@mvista.com>
8708
8709 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8710
021e7609
AC
87112003-02-14 Andrew Cagney <ac131313@redhat.com>
8712
8713 * main.c (tui_version): Delete variable.
8714 (captured_main): When --tui, set interpreter_p to "tui" instead of
8715 enabling tui_version.
8716 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8717 tui_version.
8718 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8719 * cli/cli-cmds.c (disassemble_command): Ditto.
8720 * defs.h (tui_version): Delete declaration.
8721 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8722 (tui-interp.o): Add rules.
8723 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8724
e325dcec
CF
87252003-02-14 Christopher Faylor <cgf@redhat.com>
8726
36ffb041 8727 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8728 just-loaded dll.
8729
c4f90d87
JM
87302003-02-12 Jason Molenda (jmolenda@apple.com)
8731
fbe586ae
RH
8732 * symmisc.c (print_objfile_statistics): Include information about
8733 the number of psymtabs and symtabs in each object file.
c4f90d87 8734
e46e5ccd
KS
87352003-02-13 Keith R Seitz <keiths@redhat.com>
8736
8737 * main.h (struct captured_main_args): Add interpreter_p.
8738 * main.c (captured_main): Initialize interpreter_p from context.
8739 * gdb.c (main): Set interpreter_p argument.
8740 * Makefile.in (gdb.o): Add dependency for interps.h.
8741
fe97fe9c
AC
87422003-02-12 Andrew Cagney <ac131313@redhat.com>
8743
8744 * event-top.c (cli_command_loop): Delete declaration.
8745 (_initialize_event_loop): Delete function setting event_loop_hook.
8746 * event-top.h (cli_command_loop): Declare. Update copyright.
8747 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8748 * interps.c (current_interp_command_loop): When event_loop_p, call
8749 cli_command_loop.
8750
1cdac4ef
AC
87512003-02-12 Andrew Cagney <ac131313@redhat.com>
8752
8753 * interps.h (interp_command_loop_ftype): Change return type to
8754 void.
8755
48037ead
ML
87562003-02-12 Michal Ludvig <mludvig@suse.cz>
8757
8758 * x86-64-tdep.c (x86_64_extract_return_value)
8759 (x86_64_store_return_value): Use regcache instead of regbuf.
8760 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8761 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8762
033afc63
AC
87632003-02-11 Andrew Cagney <ac131313@redhat.com>
8764
8765 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8766 * aclocal.m4: Regenerate.
8767 * configure: Regenerate.
8768
8769 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8770 TCL_LD_SEARCH_FLAGS.
8771
40d02bca
ML
87722003-02-10 Michal Ludvig <mludvig@suse.cz>
8773
8774 * dwarf2cfi.c: Reindented.
8775
11308a41
AC
87762003-02-09 Andrew Cagney <ac131313@redhat.com>
8777
8778 * interps.c (clear_interpreter_hooks): Convert function definition
8779 to ISO C.
8780
e1c1c0f6
DC
87812003-02-07 David Carlton <carlton@math.stanford.edu>
8782
8783 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8784
ab5d3da6
KB
87852003-02-07 Kevin Buettner <kevinb@redhat.com>
8786
8787 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8788 (struct type): ...to here.
8789 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8790 field.
8791 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8792 (replace_type): Set length on all type variants for a given type.
8793
b8a92b82
AC
87942003-02-07 Andrew Cagney <ac131313@redhat.com>
8795
8796 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8797 <sys/stat.h>.
8798 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8799
5cb316ef
AC
88002003-02-06 Andrew Cagney <ac131313@redhat.com>
8801
2555fe1a
AC
8802 * Makefile.in (symm-nat.o): Update dependencies.
8803 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8804 (lynx-nat.o, ia64-linux-nat.): Ditto.
8805 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8806 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8807 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8808
44270758
AC
8809 * Makefile.in (inflow_h): Define.
8810 (procfs.o, inflow.o, procfs.o): Update dependencies.
8811 * inftarg.c (child_stop): Delete extern declaration of
8812 inferior_process_group. Include "inflow.h".
8813 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8814 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8815 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8816 (our_process_group, inferior_process_group): Extern declarations.
8817
df8f7274
AC
8818 * procfs.c: Include "gdb_assert.h".
8819
5cb316ef
AC
8820 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8821 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8822 * jv-typeprint.c (java_type_print_base): Ditto.
8823 * typeprint.c (typedef_print): Eliminate STREQ.
8824 * cli/cli-script.c (define_command, define_command): Ditto.
8825 * main.c (captured_main): Ditto.
8826 * values.c (lookup_internalvar): Ditto.
8827 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8828 within `if' conditional.
8829 * linespec.c (decode_line_2): Ditto.
8830 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8831 (bfd_openw_with_cleanup): Ditto.
8832
2a28ccea
MK
88332003-02-07 Mark Kettenis <kettenis@gnu.org>
8834
8835 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8836 legacy_extract_return_value and store_return_value to
8837 legacy_return_value.
8838
786b8124
CF
88392003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8840
8841 * win32-nat.c (get_relocated_section_addrs): New function. Find
8842 section load addresses for symbol handling in relocated DLLs.
8843 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8844
b871e4ec
FF
88452003-02-05 Fred Fish <fnf@intrinsity.com>
8846
8847 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8848 '=' and '!='.
8849 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8850 with '&' and '=='.
8851 (angel_RDI_info): Ditto.
8852 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8853 with '&' and '!='.
8854 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8855
4389a95a 88562003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
8857 Keith Seitz <keiths@redhat.com>
8858 Elena Zannoni <ezannoni@redhat.com>
8859 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
8860
8861 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8862 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8863 (SUBDIR_MI_OBS): Add "mi-interp.o".
8864 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8865 (SFILES): Add "interps.c".
8866 (COMMON_OBS): Add "interps.o".
8867 (interps_h, mi_main_h): Define.
8868 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8869 (mi-main.o, main.o, event-top.o): Update dependencies.
8870 * cli/cli-interp.c: New file.
8871 * interps.h, interps.c: New files.
8872 * top.c: (gdb_init): Don't install the default interpreter, handed
8873 by captured_main.
8874 * main.c: Include "interps.h".
8875 (interpreter_p): Note that it should malloc'ed.
8876 (captured_command_loop): Call current_interp_command_loop.
8877 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8878 xfree and xstrdup when updating interpreter_p. Install the
8879 default interpreter. Add hack to stop mi1's copyright notice
8880 being encoded.
8881 * event-top.h (gdb_setup_readline): Declare.
8882 (gdb_disable_readline): Declare.
8883 * event-top.c: Include "interps.h".
8884 (display_gdb_prompt): Call current_interp_display_prompt_p.
8885 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8886 gdb_stdlog, and gdb_stdtarg.
8887 (_initialize_event_loop): Don't call gdb_setup_readline.
8888 * cli-out.c (cli_out_set_stream): New function.
8889 * cli-out.h (cli_out_set_stream): Declare.
8890
ff3b5810
MK
88912003-02-06 Mark Kettenis <kettenis@gnu.org>
8892
8893 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8894 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8895 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8896 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8897 config/i386/i386v42mp.mt: Removed.
8898
5b729aa5
MK
88992003-02-05 Mark Kettenis <kettenis@gnu.org>
8900
8901 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8902 GDB_OSABI_SOLARIS.
8903
8cc15142
MC
89042003-02-05 Michael Chastain <mec@shout.net>
8905
8906 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8907 2.12.1 and earlier versions.
8908
5aa5d4b9
AC
89092003-02-05 Andrew Cagney <ac131313@redhat.com>
8910
8911 Remove orphaned hosts, targets and files.
8912 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8913 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8914 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8915 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8916 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8917 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8918 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8919 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8920 * config/sparc/tm-sp64sim.h: Delete.
8921 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8922 hosts.
8923 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8924 mips*-dec-mach3* targets.
8925
b68767c1
MC
89262003-02-04 Michael Chastain <mec@shout.net>
8927
8928 * NEWS: Fix typo: sepcifying -> specifying.
8929
5ae7ca1d
MC
89302003-02-04 Michael Chastain <mec@shout.net>
8931
8932 * dwarfread.c: Add documentation on the state of dwarf-1,
8933 looking towards obsoletion.
8934
d08a4280
MC
89352003-02-03 Michael Chastain <mec@shout.net>
8936
8937 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8938 gdb/testsuite/gdb.c++/pr-1023.exp.
8939
e9be73e4
AC
89402003-02-04 Andrew Cagney <ac131313@redhat.com>
8941
8942 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8943 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8944
8945 * utils.c (init_page_info): Delete reference to MPW in comments.
8946 * main.c (captured_main): Delete #ifdef MPW.
8947
05d57f6f
AC
89482003-02-04 Andrew Cagney <ac131313@redhat.com>
8949
8ffd9b1b 8950 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
8951 * monitor.c (monitor_expect): Obsolete reference to m32r.
8952 * configure.tgt: Mark m32r-*-elf* as obsolete.
8953 * MAINTAINERS: Mark m32k as obsolete.
8954 * m32r-rom.c: Obsolete file.
8955 * config/m32r/m32r.mt: Obsolete file.
8956 * config/m32r/tm-m32r.h: Obsolete file.
8957 * m32r-stub.c: Obsolete file.
8958 * m32r-tdep.c: Obsolete file.
8959
8b0e5691
AC
89602003-02-04 Andrew Cagney <ac131313@redhat.com>
8961
8962 * NEWS: Mention that the z8k-zilog-none is obsolete.
8963 * MAINTAINERS: Mark z8k as obsolete.
8964 * configure.tgt: Obsolete the z8k-*-coff* target.
8965 * config/z8k/z8k.mt: Obsolete file.
8966 * config/z8k/tm-z8k.h: Obsolete file.
8967 * z8k-tdep.c: Obsolete file.
8968
67f16606
AC
89692003-02-04 Andrew Cagney <ac131313@redhat.com>
8970
8971 * NEWS: Mention that the mn10200-elf is obsolete.
8972 * configure.tgt: Obsolete mn10200-*-* target.
8973 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8974 mention that the mn10200 is obsolete.
8975 * breakpoint.h: Ditto.
8976 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8977 * config/mn10200/mn10200.mt: Obsolete file.
8978 * config/mn10200/tm-mn10200.h: Obsolete file.
8979 * mn10200-tdep.c: Obsolete file.
8980
fd2299bd
AC
89812003-02-04 Andrew Cagney <ac131313@redhat.com>
8982
8983 * MAINTAINERS: Mark h8500 as obsolete.
8984 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8985 * findvar.c (value_from_register): Ditto.
8986 * h8500-tdep.c: Mark file as obsolete.
8987 * config/h8500/h8500.mt: Ditto.
8988 * config/h8500/tm-h8500.h: Ditto.
8989 * NEWS: Mention that h8500 is obsolete.
8990
eb9a305d
DC
89912003-02-04 David Carlton <carlton@math.stanford.edu>
8992
8993 * objfiles.c (allocate_objfile): Always set name. Add comment at
8994 start of function.
8995 * jv-lang.c (get_dynamics_objfile): Add comment.
8996
406fc7fb
DC
89972003-02-04 David Carlton <carlton@math.stanford.edu>
8998
8999 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9000 * printcmd.c (build_address_symbolic): Replace uses of
9001 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9002 SYMBOL_NAME, and asm_demangle.
9003 Update copyright.
9004
93d91629
DC
90052003-02-04 David Carlton <carlton@math.stanford.edu>
9006
9007 * linespec.c (decode_compound): Extract code into
9008 lookup_prefix_sym.
9009 (lookup_prefix_sym): New function.
9010
1c5cb38e
DC
90112003-02-04 David Carlton <carlton@math.stanford.edu>
9012
9013 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9014 FLOAT_COERCION_BADNESS.
9015 * gdbtypes.c (rank_one_type): Replace all uses of
9016 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9017
0cf824c9
JB
90182003-02-04 Jim Blandy <jimb@redhat.com>
9019
9020 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9021 section, let dwarf_macinfo_section point to it, not
9022 dwarf_loc_section.
9023
a2d356b0
DJ
90242003-02-04 Daniel Jacobowitz <drow@mvista.com>
9025
9026 Pointed out by Anton Blanchard <anton@samba.org>.
9027 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9028 (ppc_linux_at_sigtramp_return_path): Use it.
9029
2de7ced7
DJ
90302003-02-04 Daniel Jacobowitz <drow@mvista.com>
9031
9032 * defs.h (streq): Add prototype.
9033 * utils.c (streq): New function.
9034
9035 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9036 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9037 * mdebugread.c (new_symbol): Likewise.
9038 * stabsread.c (define_symbol): Likewise.
9039 * coffread.c (process_coff_symbol): Likewise.
9040 * dwarfread.c (new_symbol): Likewise.
9041
9042 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9043 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9044 here.
9045 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9046 SYMBOL_INIT_DEMANGLED_NAME.
9047 * objfiles.c: Include "hashtab.h".
9048 (allocate_objfile): Call htab_set_functions_ex for the
9049 demangled_names_hash.
9050 (free_objfile): Call htab_delete for the demangled_names_hash.
9051 * objfiles.h (struct htab): Add declaration.
9052 (struct objfile): Add demangled_names_hash.
9053 * symfile.c: Include "hashtab.h".
9054 (reread_symbols): Call htab_delete for the demangled_names_hash.
9055 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9056 SYMBOL_NAME in the bcache.
9057 * symtab.c: Include "hashtab.h". Update comments.
9058 (create_demangled_names_hash, symbol_set_names): New functions.
9059 (symbol_find_demangled_name): New function, broken out from
9060 symbol_init_demangled_names.
9061 (symbol_init_demangled_names): Use it.
9062 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9063 (SYMBOL_SET_NAMES): New macro.
9064 (symbol_set_names): Add prototype.
9065
15831452
JB
90662003-02-03 Jim Blandy <jimb@redhat.com>
9067
9068 Use a single, consistent representation for an empty minimal
9069 symbol table in an objfile.
9070 * objfiles.c (terminate_minimal_symbol_table): New function.
9071 (allocate_objfile): Call it.
9072 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9073 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9074 non-NULL.
15831452
JB
9075 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9076 objfile has minimal symbols, compare minimal_symbol_count to zero,
9077 instead of comparing msymbols with NULL.
9078 * objfiles.c (have_minimal_symbols): Same.
9079 * solib-sunos.c (solib_add_common_symbols): Call
9080 terminate_minimal_symbol_table.
9081 * symfile.c (reread_symbols): Same.
8ffd9b1b 9082
ffc65945
KB
90832003-02-03 Kevin Buettner <kevinb@redhat.com>
9084
9085 * s390-tdep.c (s390_address_class_type_flags)
9086 (s390_address_class_type_flags_to_name)
9087 (s390_address_class_name_to_type_flags): New functions.
9088 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9089 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9090
f211c6d4
MS
90912003-02-03 Michael Snyder <msnyder@redhat.com>
9092
9093 * arm-tdep.c: Fix spell-o in comment.
9094
659b0389
ML
90952003-02-03 Michal Ludvig <mludvig@suse.cz>
9096
9097 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9098 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9099 error messages to contain BFD filename.
659b0389 9100
3b31d625
EZ
91012003-02-02 Elena Zannoni <ezannoni@redhat.com>
9102
997b089a 9103 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9104 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9105 (do_mixed_source_and_assembly): Use
9106 make_cleanup_ui_out_tuple_begin_end and
9107 make_cleanup_ui_out_tuple_begin_end.
9108 (do_mixed_source_and_assembly): Ditto.
9109 * thread.c (do_captured_list_thread_ids): Ditto.
9110 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9111 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9112 ui_out_tuple_end): Delete prototypes.
9113 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9114 ui_out_list_end, ui_out_tuple_end): Delete.
9115
9116 From Kevin Buettner <kevinb@redhat.com>:
9117 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9118 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9119 (do_cleanup_table_end): New functions.
9120 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9121 Use cleanups to invoke_ui_out_tuple_end().
9122 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9123 * cli/cli-setshow.c (cmd_show_list): Use
9124 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9125
5b181d62
AC
91262003-02-02 Andrew Cagney <ac131313@redhat.com>
9127
9128 * frame.c (frame_unwind_register): New function.
9129 (frame_unwind_unsigned_register): Use.
9130 (frame_unwind_signed_register): Use.
9131 (frame_read_register): New function.
9132 * frame.h (frame_unwind_register): Declare.
9133 (frame_read_register): Declare.
9134
9135 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9136 and frame_unwind_register instead of read_memory, write_register
9137 and deprecated_write_register_bytes.
9138
5f601589
AC
91392003-02-02 Andrew Cagney <ac131313@redhat.com>
9140
9141 * frame.h: Note that namelen can be negative.
9142 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9143 NAME's length.
9144
9145 * NEWS: Mention that the d10v's `regs' command is deprecated.
9146 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9147 (d10v_print_registers_info): New function.
9148 (show_regs): Call d10v_print_registers_info.
9149 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9150
6a3fe0a4
MK
91512003-02-02 Mark Kettenis <kettenis@gnu.org>
9152
9153 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9154 lost in the previous patch.
9155
075559bc
AC
91562003-02-01 Andrew Cagney <ac131313@redhat.com>
9157
9158 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9159 * stack.c (print_frame_info_base): Output complete FRAME tuple
9160 for synthesized frames.
075559bc 9161
6789195b
AC
91622003-02-02 Andrew Cagney <ac131313@redhat.com>
9163
9164 * mips-nat.c (zerobuf): Delete.
9165 (fetch_inferior_registers): Alloc local zerobuf.
9166 (fetch_core_registers): Alloc local zerobuf.
9167 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9168 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9169 * thread-db.c (thread_db_store_registers): Ditto.
9170 * sh-tdep.c (sh_do_register): Ditto.
9171 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9172 * remote-sim.c (gdbsim_store_register): Ditto.
9173 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9174 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9175 * monitor.c (monitor_supply_register): Ditto.
9176 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9177 * mips-nat.c (fetch_inferior_registers): Ditto.
9178 * m68klinux-nat.c (fetch_register): Ditto.
9179 * lynx-nat.c (fetch_inferior_registers): Ditto.
9180 (fetch_inferior_registers): Ditto.
9181 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9182 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9183 (hpux_thread_store_registers): Ditto.
9184 * hppah-nat.c (fetch_register): Ditto.
9185 * hppab-nat.c (fetch_register): Ditto.
9186 * hppa-tdep.c (pa_register_look_aside): Ditto.
9187 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9188 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9189
e669114a
AC
91902003-02-01 Andrew Cagney <ac131313@redhat.com>
9191
9192 * gdbarch.sh: Explictly specify all method levels. When a
9193 variable with an empty level, provide a non-multi-arch default.
9194 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9195 * gdbarch.h: Re-generate.
9196 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9197 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9198
9a043c1d
AC
91992003-02-01 Andrew Cagney <ac131313@redhat.com>
9200
9201 * defs.h (host_pointer_to_address): Delete declaration.
9202 (address_to_host_pointer): Delete declaration.
9203 * utils.c (host_pointer_to_address): Delete function.
9204 (address_to_host_pointer): Delete function.
9205 * procfs.c (procfs_address_to_host_pointer): New function.
9206 * procfs.c (proc_set_watchpoint): Use.
9207 (procfs_can_use_hw_breakpoint): Update comments.
9208 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9209 (som_solib_add): Use.
9210 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9211 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9212
7ca9f392
AC
92132003-02-01 Andrew Cagney <ac131313@redhat.com>
9214
94bbfd30
AC
9215 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9216 strlen d_name.
9217
7ca9f392
AC
9218 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9219 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9220 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9221 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9222 (define_symbol): Update.
9223 * symfile.c (generic_load): Remove references to nindy.
9224 * symtab.c: Remove references to nindy.
9225
31a85ea2
AC
92262003-02-01 Andrew Cagney <ac131313@redhat.com>
9227
9228 * infcmd.c (print_float_info): Delete code conditional on
9229 FLOAT_INFO.
9230 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9231 * config/m68k/nm-apollo68b.h: Ditto.
9232 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9233 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9234 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9235
f6e85fc8
MK
92362003-02-01 Mark Kettenis <kettenis@gnu.org>
9237
6015b6a0
MK
9238 * config/i386/tm-i386os9k.h: Removed.
9239
f7a30bdf
MK
9240 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9241 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9242 they're identical to i[3456]86-*-sysv* now.
9243 * config/i386/i386v32.mh: Removed.
9244 * config/i386/xm-i386v32.h: Removed.
9245 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9246
28d52111
MK
9247 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9248
4d3f6bce
MK
9249 * config/i386/i386dgux.mh: Removed.
9250 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9251
f6e85fc8
MK
9252 * configure.in: Fix typo.
9253 * configure: Regenerated.
9254
53955967
DC
92552003-01-31 David Carlton <carlton@math.stanford.edu>
9256
9257 * dwarf2read.c (dwarf2_locate_sections): Set
9258 dwarf_ranges_section.
9259
b1364885
AC
92602003-01-31 Andrew Cagney <ac131313@redhat.com>
9261
8dbb1c65
AC
9262 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9263 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9264
8731e58e
AC
9265 * utils.c: Re-indent.
9266
b1364885
AC
9267 * config/djgpp/fnchange.lst: Delete nindy files.
9268 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9269 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9270 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9271 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9272 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9273 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9274 * Makefile.in (init.c): Remove nindy references.
9275 (saber_gdb): Delete rule.
9276 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9277 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9278 and a68v-nat.c.
9279 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9280 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9281 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9282 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9283 nindy-share/stop.h.
9284 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9285 * saber.suppress: Delete file.
9286
086df311
DJ
92872003-01-31 Daniel Jacobowitz <drow@mvista.com>
9288
9289 * dbxread.c (stabs_data): New static variable.
9290 (fill_symbuf): Support an in-memory buffer for stabs data.
9291 (stabs_seek): New function.
9292 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9293 (read_ofile_symtab): Use stabs_seek.
9294 (elfstab_build_psymtabs): Take an asection* instead of
9295 an offset and size. Relocate the stabs data if necessary.
9296 Save the section* for dbx_psymtab_to_symtab.
9297 * dwarf2read.c: Add section variables for each debug section.
9298 (dwarf2_locate_sections): Fill them in.
9299 (dwarf2_read_section): Take an asection* argument.
9300 Relocate the section contents if necessary.
9301 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9302 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9303 it to dwarf2_read_section.
9304 (dwarf2_build_frame_info): Update callers.
9305 * elfread.c (elf_symfile_read): Update call to
9306 elfstab_build_psymtabs.
9307 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9308 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9309 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9310 * symfile.c (symfile_dummy_outputs): New function.
9311 (symfile_relocate_debug_section): New function.
9312 * symfile.h (symfile_relocate_debug_section): Add prototype.
9313
87d1b352
RH
93142003-01-31 Richard Henderson <rth@redhat.com>
9315
9316 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9317 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9318 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9319 * alpha-tdep.c (alpha_register_name): Add "unique".
9320 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9321 (ALPHA_UNIQUE_REGNUM): New.
9322 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9323
c48861fb
AC
93242003-01-31 Andrew Cagney <ac131313@redhat.com>
9325
9326 * README: Remove reference to Ericsson 1800 monitor.
9327 * Makefile.in (remote-es.o): Delete rule.
9328 (ALLDEPFILES): Delete remote-es.c.
9329 * remote-es.c: Delete file.
9330 * config/m68k/es1800.mt: Delete file.
9331 * config/djgpp/fnchange.lst: Update.
9332 * configure.tgt: Delete m68*-ericsson-* target.
9333
d764a824
AF
93342003-01-31 Adam Fedor <fedor@gnu.org>
9335
9336 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9337 Remove duplicate/shadowing variable of same name.
9338
fe36c4f4
JB
93392003-01-30 Jim Blandy <jimb@redhat.com>
9340
9341 * symfile.c (find_separate_debug_file): Assert that the objfile's
9342 directory name we compute ends with a slash, and then assume that
9343 that's so everywhere we use it.
9344
cb741690
DJ
93452003-01-30 Daniel Jacobowitz <drow@mvista.com>
9346
9347 * valops.c (value_assign): Flush frame cache after stores to memory
9348 also.
9349
96ee5227
AC
93502003-01-30 Andrew Cagney <ac131313@redhat.com>
9351
9352 * Makefile.in (mon960-rom.o): Delete rule.
9353 * mon960-rom.c: Delete file.
9354
7f6104a9
AC
93552003-01-30 Andrew Cagney <ac131313@redhat.com>
9356
9357 * d10v-tdep.c: Include "frame-unwind.h".
9358 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9359 list.
9360 (next_addr, uses_frame): Delete.
9361 (struct d10v_unwind_cache): Define.
9362 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9363 Use info instead of next_addr and uses_frame globals.
9364 (d10v_frame_init_saved_regs): Delete function.
9365 (d10v_init_extra_frame_info): Delete function.
9366 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9367 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9368 init_frame_pc or frame_saved_pc.
9369 (d10v_pop_frame): Delete function.
9370 (do_d10v_pop_frame): Delete function.
9371 (d10v_frame_chain): Delete function.
9372 (d10v_frame_chain_valid): Delete function.
9373 (d10v_frame_pc_unwind): New function.
9374 (d10v_frame_id_unwind): New function.
9375 (saved_regs_unwinder): New function.
9376 (d10v_frame_register_unwind): New function.
9377 (d10v_frame_pop): New function.
9378 (d10v_frame_unwind): New variable.
9379 (d10v_frame_p): New function.
9380 (d10v_frame_saved_pc): Delete function.
9381 * Makefile.in (d10v-tdep.o): Update dependencies.
9382
cad2e848
JB
93832003-01-30 J. Brobecker <brobecker@gnat.com>
9384
9385 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9386 causing some regressions due to a change in the default value
9387 for this macro.
9388
af34e669
DJ
93892003-01-29 Richard Henderson <rth@redhat.com>
9390 Elena Zannoni <ezannoni@redhat.com>
9391 Daniel Jacobowitz <drow@mvista.com>
9392
9393 Fix PR gdb/961.
8ffd9b1b 9394 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9395 variables.
9396 (RANGES_SECTION): New.
9397 (dwarf_ranges_buffer): New variable.
9398 (struct comp_unit_head): Add member "die".
9399 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9400 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9401 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9402 (dwarf2_locate_sections): Likewise.
9403 (dwarf2_build_psymtabs): Read .debug_ranges.
9404 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9405 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9406 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9407 Look for DW_AT_ranges and return the bounding box.
9408
baa93fa6
CF
94092003-01-29 Brian Ford <ford@vss.fsi.com>
9410
9411 * win32-nat.c (cygwin_pid): Removed as unused.
9412 (child_attach): Try fall back to Cygwin pid.
9413
c63f977f
JB
94142003-01-29 Jim Blandy <jimb@redhat.com>
9415
9416 * objfiles.h (struct objfile): Doc fix.
9417
d62d1979
AC
94182003-01-29 Andrew Cagney <ac131313@redhat.com>
9419
9420 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9421 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9422 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9423 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9424 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9425 (FRAME_SAVED_PC): Change to a function with predicate.
9426 * gdbarch.h, gdbarch.c: Re-generate.
9427
1ae18a04
AC
94282003-01-28 Andrew Cagney <ac131313@redhat.com>
9429
52287340
AC
9430 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9431
1ae18a04
AC
9432 * complaints.c (complain): Delete function.
9433 * complaints.h (struct deprecated_complaint): Delete definition.
9434 (complain): Delete declaration.
9435
f2c16bd6
KB
94362003-01-28 Kevin Buettner <kevinb@redhat.com>
9437
9438 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9439 dummy frames.
9440
a94dd1fd
AC
94412003-01-27 Andrew Cagney <ac131313@redhat.com>
9442
9443 * sentinel-frame.h, sentinel-frame.c: New files.
9444 * Makefile.in (frame.o): Update dependencies.
9445 (SFILES): Add sentinel-frame.c.
9446 (sentinel_frame_h): Define.
9447 (COMMON_OBS): Add sentinel-frame.o.
9448 (sentinel-frame.o): Specify dependencies.
9449 * frame.c: Include "sentinel-frame.h".
9450 (frame_register_unwind): Rewrite assuming that there is always a a
9451 ->next frame.
9452 (frame_register, generic_unwind_get_saved_register): Ditto.
9453 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9454 (create_sentinel_frame, unwind_to_current_frame): New functions.
9455 (get_current_frame): Rewrite using create_sentinel_frame and
9456 unwind_to_current_frame. When possible, always create a frame.
9457 (create_new_frame): Set next to the sentinel frame.
9458 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9459 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9460 ID cache when necessary.
9461 (frame_saved_regs_id_unwind): Use frame_relative_level.
9462 (deprecated_generic_get_saved_register): Use frame_relative_level,
9463 get_frame_saved_regs, get_frame_pc, get_frame_base and
9464 get_next_frame.
9465 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9466 frame_register.
9467
5378adc4
DJ
94682003-01-27 Daniel Jacobowitz <drow@mvista.com>
9469
9470 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9471
51ee2ddc
DJ
94722003-01-27 Daniel Jacobowitz <drow@mvista.com>
9473
9474 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9475 (maintenance_set_profile_cmd): Use error () instead of warning ().
9476
d9feb4e7
DJ
94772003-01-27 Daniel Jacobowitz <drow@mvista.com>
9478
9479 * configure.in: Check that -pg works if using --enable-profiling.
9480 Check for monstartup and _mcleanup regardless of --enable-profiling.
9481 * maint.c: Check for monstartup and _mcleanup before using them.
9482 * config.in: Regenerated.
9483 * configure: Regenerated.
9484
2d188dd3
NC
94852003-01-24 Nick Clifton <nickc@redhat.com>
9486
9487 * Add sh2e support:
9488
9489 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9490
9491 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9492 (sh2e_show_regs): New.
9493 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9494 * config/sh/tm-sh.h: Added sh2e to comments.
9495
cb3c37b2
JB
94962003-01-23 Jim Blandy <jimb@redhat.com>
9497
9498 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9499 symbols found)" message here; we haven't checked for a separate
9500 debug info file yet, so we don't know yet.
9501 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9502 we've looked everywhere. Also, there's no need to print a special
9503 message when we're loading the separate debug info file: the one
9504 symbol_file_add prints is fine.
9505
5b5d99cf
JB
95062003-01-23 Alexander Larsson <alexl@redhat.com>
9507 Jim Blandy <jimb@redhat.com>
9508
9509 Add support for executables whose debug info has been separated
9510 out into a separate file, leaving only a link behind.
9511 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9512 and separate_debug_objfile_backlink.
9513 (put_objfile_before): New declaration.
9514 * symfile.c: #include "filenames.h".
9515 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9516 debug info in a separate file, read that, too. Save the addrs
9517 argument, so we can use it again to read the separated debug info;
9518 syms_from_objfile modifies the table we pass it.
9519 (reread_symbols): After re-reading an objfile, call
9520 reread_separate_symbols to refresh its separate debug info
9521 objfile, if it has one.
9522 (reread_separate_symbols, find_separate_debug_file,
9523 get_debug_link_info, separate_debug_file_exists): New functions.
9524 (debug_file_directory): New global var.
9525 (_initialize_symfile): Initialize debug_file_directory, and
9526 provide the new `set debug-file-directory' command to let the user
9527 change it.
9528 * objfiles.c (free_objfile): If this objfile has its debug info in
9529 a separate objfile, free that one too. If this is itself a
9530 separate debug info objfile, clear our parent's backlink.
9531 (put_objfile_before): New function.
9532 * utils.c (gnu_debuglink_crc32): New function.
9533 * defs.h (gnu_debuglink_crc32): New declaration.
9534 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9535 * configure.in: Handle --with-separate-debug-dir config option.
9536 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9537 * acconfig.h (DEBUGDIR): New macro.
9538 * configure, aclocal.m4, config.in: Regenerated.
9539
7e8580c1
JB
95402003-01-22 Jim Blandy <jimb@redhat.com>
9541
7904e09f
JB
9542 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9543 like the old symbol_file_add, but taking new arguments: you can
9544 now pass in either a `struct section_addr_info' list to say where
9545 each section is loaded, or a `struct section_offsets' table. Pass
9546 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9547 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9548 with the appropriate quiescent values for the new arguments.
9549
7e8580c1
JB
9550 * symfile.c: #include "gdb_assert.h".
9551 (syms_from_objfile): Add the ability to pass in a section offset
9552 table directly, as an alternative to the section_addr_info table.
9553 Document arguments better.
9554 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9555 * symfile.h (syms_from_objfile): Update declaration.
9556 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9557 syms_from_objfile.
9558 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9559
d28f9cdf
DJ
95602003-01-22 Daniel Jacobowitz <drow@mvista.com>
9561
9562 Original patch by Tom Tromey <tromey@cygnus.com> and
9563 Jason Molenda <jmolenda@apple.com>.
9564 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9565 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9566 * NEWS: Mention profiling.
9567 * configure.in (--enable-gdbtk): Fix typo.
9568 (--enable-profiling): New. Set PROFILE_CFLAGS.
9569 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9570 Fill in function.
9571 (profiling_state): New variable.
9572 (mcleanup_wrapper): New function.
9573 (_initialize_maint): Remove NOTYET, fix call to
9574 add_setshow_boolean_cmd for "maint set profile".
9575 * configure: Regenerated.
9576
df21e465
MH
95772003-01-21 Martin M. Hunt <hunt@redhat.com>
9578
9579 * Makefile.in (install-gdbtk): Install PNG images too.
9580
73c1f219
AC
95812003-01-21 Andrew Cagney <ac131313@redhat.com>
9582
9583 * exec.c (text_start): Delete global variable.
9584 (exec_file_attach): Make text_start local to the function.
9585 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9586 * valops.c (hand_function_call): Delete code that handles
9587 BEFORE_TEXT_END and AFTER_TEXT_END.
9588 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9589 of CALL_DUMMY_LOCATION.
9590 * gdbarch.c: Regenerate.
9591 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9592 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9593 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9594 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9595 (text_end): Delete extern declaration.
9596
eb4f72c5
AC
95972003-01-21 Andrew Cagney <ac131313@redhat.com>
9598
9599 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9600 * blockframe.c (backtrace_below_main): Move to "frame.c".
9601 (frame_chain_valid): Delete check for backtrace_below_main.
9602 (_initialize_blockframe): Delete initialization, move ``set
9603 backtrace-below-main'' command to "frame.c".
9604 (do_flush_frames_sfunc): Delete function.
9605 * frame.c: Include "command.h" and "gdbcmd.h".
9606 (frame_type_from_pc): New function.
9607 (create_new_frame): Use frame_type_from_pc.
9608 (legacy_get_prev_frame): New function.
9609 (get_prev_frame): Rewrite. When an old style frame, call
9610 legacy_get_prev_frame. Otherwize, unwind the PC first.
9611 (_initialize_frame): Add ``set backtrace-below-main'' command.
9612 * Makefile.in (frame.o): Update dependencies.
9613
778ce8cc
AC
96142003-01-19 Andrew Cagney <ac131313@redhat.com>
9615
9616 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9617 DEPRECATED_REGISTERS_INFO.
9618
01c193c8
AC
96192003-01-19 Andrew Cagney <ac131313@redhat.com>
9620
9621 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9622 Maintainers'. Update `Various Maintainers'.
9623
dedc2a2b
AC
96242003-01-19 Andrew Cagney <ac131313@redhat.com>
9625
9626 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9627 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9628 Suppress actual parameters when `-'.
9629 * gdbarch.h, gdbarch.c: Regenerate.
9630
b7261c70
AC
96312003-01-19 Andrew Cagney <ac131313@redhat.com>
9632
9633 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9634 code handling dummy frames.
9635
dbe9fe58
AC
96362003-01-19 Andrew Cagney <ac131313@redhat.com>
9637
9638 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9639 (struct frame_unwind): Add field pop.
9640 * frame.h (frame_pop): Declare.
9641 * frame.c (frame_saved_regs_pop): New function.
9642 (trad_frame_unwinder): Add frame_saved_regs_pop.
9643 (frame_pop): New function.
9644 * dummy-frame.c (dummy_frame_pop): New function.
9645 (discard_innermost_dummy): New function.
9646 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9647 (dummy_frame_unwind): Add dummy_frame_pop.
9648 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9649 * valops.c (hand_function_call): Ditto.
9650 * stack.c (return_command): Ditto.
9651
570b8f7c
AC
96522003-01-18 Andrew Cagney <ac131313@redhat.com>
9653
9654 * cris-tdep.c: Fix function declaration indentation.
9655 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9656 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9657 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9658 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9659 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9660 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9661
96622003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9663
9664 * README (Unpacking and Installation -- quick overview):
9665 Warn against ".../gdb-5.3/gdb/configure".
9666
494cca16
AC
96672003-01-18 Andrew Cagney <ac131313@redhat.com>
9668
9669 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9670 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9671 (struct frame_unwind): Declare opaque.
9672 (dummy_frame_p): Declare function.
9673 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9674 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9675 * dummy-frame.c: Include "frame-unwind.h".
9676 (dummy_frame_p): New function.
9677 (dummy_frame_unwind): New variable.
9678 * frame.c: Include "frame-unwind.h".
9679 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9680 to use the new unwind field.
9681 (set_unwind_by_pc): Delete function.
9682 (create_new_frame, get_prev_frame): Set unwind field using
9683 frame_unwind_find_by_pc.
9684 (trad_frame_unwind, trad_frame_unwinder): New variables.
9685 * frame.h (trad_frame_unwind): Declare variable.
9686 (frame_id_unwind_ftype): Delete declaration.
9687 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9688 (struct frame_unwind): Declare opaque.
9689 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9690 register_unwind with a single unwind pointer.
9691 * frame-unwind.h, frame-unwind.c: New files.
9692 * Makefile.in (SFILES): Add frame-unwind.c.
9693 (frame_unwind_h): Define.
9694 (COMMON_OBS): Add frame-unwind.o.
9695 (frame-unwind.o): Specify dependencies.
9696 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9697
4efb68b1
AC
96982003-01-18 Andrew Cagney <ac131313@redhat.com>
9699
9700 * ada-valprint.c: Eliminate PTR.
9701 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9702 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9703 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9704 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9705 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9706 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9707 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9708
a84d24ee
AC
97092003-01-17 Andrew Cagney <ac131313@redhat.com>
9710
762f08a3
AC
9711 * main.c (captured_main): Don't use PTR.
9712 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9713 * gdbtypes.c (lookup_primitive_typename): Ditto.
9714 (lookup_struct_elt_type): Ditto.
9715 * f-valprint.c (info_common_command): Ditto.
9716 (list_all_visible_commons): Ditto.
9717 * jv-typeprint.c (java_type_print_base): Ditto.
9718
a84d24ee
AC
9719 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9720 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9721 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9722 i386-interix-nat.c and i386-interix-tdep.c. Rename
9723 m68klinux-nat.c and m68klinux-tdep.c. Rename
9724 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9725 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9726 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9727 * main.c (captured_main): Use xfree, not free.
9728
c170fb60
AC
97292003-01-16 Andrew Cagney <ac131313@redhat.com>
9730
9731 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9732 ID back using a parameter.
9733 * frame.c (frame_id_unwind): Update call.
9734 (frame_saved_regs_id_unwind): Update.
9735 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9736 * dummy-frame.h (struct frame_id): Add opaque declaration.
9737 (dummy_frame_id_unwind): Update declaration.
9738
867f3898
AC
97392003-01-15 Andrew Cagney <ac131313@redhat.com>
9740
9741 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9742
40622be8 97432003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9744
40622be8 9745 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9746
ae66c1fc
EZ
97472003-01-14 Elena Zannoni <ezannoni@redhat.com>
9748
997b089a 9749 Fix PR gdb/898
ae66c1fc
EZ
9750 * breakpoint.c (until_break_command): Add new argument. Use it to
9751 decide whether to stop only at the current frame or not.
9752 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9753 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9754 call.
9755 (advance_command): New function.
9756 (_initialize_infcmd): Update help string for 'until' command.
9757 Add new 'advance' command.
9758
a04257e6
DC
97592003-01-14 David Carlton <carlton@math.stanford.edu>
9760
9761 * linespec.c (decode_line_1): Normalize comments.
9762 (set_flags): Ditto.
9763 (locate_first_half): Ditto.
9764 (decode_compound): Ditto.
9765 (symtab_from_filename): Ditto.
9766 (decode_all_digits): Ditto.
9767 (decode_dollar): Ditto.
9768 (find_methods): Ditto.
9769 (find_toplevel_char): Ditto.
9770
1bac305b
AC
97712003-01-13 Andrew Cagney <ac131313@redhat.com>
9772
9773 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9774 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9775 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9776 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9777 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9778 * language.c, language.h, m32r-tdep.c: Update copyright.
9779 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9780 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9781 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9782 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9783 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9784 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9785
25caa7a8
EZ
97862003-01-13 Elena Zannoni <ezannoni@redhat.com>
9787
9788 * stabsread.h (process_later, resolve_cfront_continuation):
9789 Obsolete.
9790 Update copyright years.
9791 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9792 Update copyright year.
9793 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9794 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9795 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9796 Update copyright year.
9797 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9798 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9799 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9800 (parse_partial_symbols): Obsolete cfront support.
9801 * stabsread.c
9802 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9803 macros.
9804 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9805 read_cfront_baseclasses, read_cfront_member_functions,
9806 resolve_cfront_continuation,read_cfront_static_fields,
9807 copy_cfront_struct_fields): Obsolete functions.
9808 (define_symbol, read_one_struct_field): Obsolete cfront support.
9809 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9810 Update Copyright year.
9811
7789c6f5
EZ
98122003-01-13 Elena Zannoni <ezannoni@redhat.com>
9813
9814 * stack.c (print_frame_info, print_stack_frame_base_stub,
9815 print_stack_frame_base, show_and_print_stack_frame_stub,
9816 show_and_print_stack_frame, print_only_stack_frame_stub,
9817 print_only_stack_frame): Delete functions.
9818 (print_stack_frame_stub): Call print_frame_info instead of
9819 print_frame_info_base.
9820 (print_frame_info_base): Rename to print_frame_info.
9821 (backtrace_command_1): Call print_frame_info, instead of
9822 print_frame_info_base.
9823 (current_frame_command): Call print_stack_frame, instead of
9824 print_only_stack_frame.
9825 (frame_command): Call print_stack_frame, instead of
9826 show_and_print_stack_frame.
9827 (up_command): Ditto.
9828 (down_command): Ditto.
9829 * frame.h (print_only_stack_frame): Delete prototype.
9830 * infrun.c (normal_stop): Call print_stack_frame, instead of
9831 show_and_print_stack_frame.
9832 * thread.c (info_threads_command): Call print_stack_frame, instead
9833 of print_only_stack_frame.
9834
3f5a3016
AC
98352003-01-13 Andrew Cagney <ac131313@redhat.com>
9836
d99ba314
AC
9837 * README (Graphical interface to GDB): Update URL. Point at
9838 gdb/links/.
9839
3f5a3016
AC
9840 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9841 version match.
9842
083ae935
DJ
98432003-01-13 Daniel Jacobowitz <drow@mvista.com>
9844
9845 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9846 lines.
9847
5365276c
DJ
98482003-01-13 Daniel Jacobowitz <drow@mvista.com>
9849
9850 * thread-db.c (attach_thread): Prototype.
9851 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9852 thread information (ti), and valid flags (th_valid, ti_valid).
9853 (attach_thread): Move target_pid_to_str call to after the thread
9854 is added to GDB's list. Initialize the cache.
9855 (thread_get_info_callback, thread_db_map_id2thr)
9856 (thread_db_get_info): New functions.
9857 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9858 (thread_db_store_registers, thread_db_thread_alive)
9859 (thread_db_get_thread_local_address): Use them.
9860 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9861 of calling error() for threads in unknown state.
9862
9863 (clear_lwpid_callback): New function.
9864 (thread_db_resume): Use it to clear the cache.
9865
9fc30b6b
DJ
98662003-01-13 Daniel Jacobowitz <drow@mvista.com>
9867
9868 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9869 (resume_callback): Remove dead code.
9870
8f871025
AC
98712003-01-13 Andrew Cagney <ac131313@redhat.com>
9872
9873 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9874 predicate.
9875 * gdbarch.h, gdbarch.c: Regenerate.
9876 * stack.c (frame_info): Only initialize the saved registers when
9877 FRAME_INIT_SAVED_REGS_P.
9878 * frame.c (frame_saved_regs_register_unwind): Assert
9879 FRAME_INIT_SAVED_REGS_P.
9880 (deprecated_generic_get_saved_register): Ditto.
9881
3f565f1e
DJ
98822003-01-13 Daniel Jacobowitz <drow@mvista.com>
9883
9884 * source.c (openp): Squelch warning about "filename".
9885
072b1022
DJ
98862003-01-13 Daniel Jacobowitz <drow@mvista.com>
9887
9888 * source.c (openp): If the file does not exist don't necessarily
9889 search the path.
9890
973ccf8b
DJ
98912003-01-13 Daniel Jacobowitz <drow@mvista.com>
9892
9893 Fix PR gdb/872.
9894 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9895 (integer_types_same_name_p): New function.
9896 (rank_one_type): Use it.
9897 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9898
030292b7
DJ
98992003-01-13 Daniel Jacobowitz <drow@mvista.com>
9900
9901 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9902 variables.
9903 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9904 * configure.in: Add --with-sysroot.
9905 * configure: Regenerated.
9906 * main.c (gdb_sysroot): New variable.
9907 (captured_main): Initialize gdb_sysroot.
9908 * defs.h (gdb_sysroot): New extern declaration.
9909 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9910
afb5d334
MC
99112003-01-12 Michael Chastain <mec@shout.net>
9912
9913 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9914
751ceeb4
MC
99152003-01-12 Michael Chastain <mec@shout.net>
9916
9917 * top.c (print_gdb_version): Bump copyright year to 2003.
9918
94cd26f8
DC
99192003-01-12 David Carlton <carlton@bactrian.org>
9920
9921 * linespec.c (symtab_from_filename): Rename variable 's' to
9922 'file_symtab'.
9923
1ce79225
AC
99242003-01-12 Andrew Cagney <ac131313@redhat.com>
9925
9926 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9927 dummy frame.
9928 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9929
fa1fd571
AC
99302003-01-12 Andrew Cagney <ac131313@redhat.com>
9931
9932 * d10v-tdep.c: Include "gdb_assert.h".
9933 (d10v_store_return_value): Rewrite to match current interface.
9934 (d10v_extract_struct_value_address): Ditto.
9935 (d10v_extract_return_value): Ditto.
9936 (d10v_gdbarch_init): Set store_restore_value,
9937 extract_struct_value_address and extract_return_value.
9938
68b8d23e
JB
99392003-01-12 J. Brobecker <brobecker@gnat.com>
9940
9941 * hpread.c (set_namestring): New procedure replacing the
9942 SET_NAMESTRING macro.
9943 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9944 by calls to set_namestring.
9945
99462003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
9947
9948 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9949 a compilation warning.
9950 (hpread_process_one_debug_symbol): Likewise.
9951
88d262ca
DC
99522003-01-10 David Carlton <carlton@math.stanford.edu>
9953
9954 * linespec.c (decode_line_1): Rename variable 's' to
9955 'file_symtab'.
9956 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9957 (decode_dollar): Ditto.
9958 (decode_variable): Ditto.
9959 (symbol_found): Ditto.
9960
86669319
MC
99612003-01-09 Michael Chastain <mec@shout.net>
9962
9963 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9964
616a9dc4
CV
99652003-01-07 Corinna Vinschen <vinschen@redhat.com>
9966
9967 * win32-nat.c (set_process_privilege): New function.
9968 (child_attach): Call set_process_privilege() to enable the
9969 SE_DEBUG_NAME user privilege if available in process token.
9970
3269bcfa
JB
99712003-01-10 J. Brobecker <brobecker@gnat.com>
9972
9973 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9974 compilation error in the previous revision.
9975
2b0ee454
DC
99762003-01-09 David Carlton <carlton@math.stanford.edu>
9977
9978 * linespec.c: Update copyright.
9979
b3ba1b44
DJ
99802003-01-09 Daniel Jacobowitz <drow@mvista.com>
9981
9982 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9983 than inferior_ptid.
9984 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9985
4ef3f3be
AC
99862003-01-09 Andrew Cagney <ac131313@redhat.com>
9987
479ab5a0
AC
9988 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9989 Update comments.
9990 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9991 (frame_saved_regs_zalloc): Update.
9992 (frame_saved_regs_register_unwind): Update.
9993 (create_new_frame): Update.
9994 (get_prev_frame): Update.
9995 (frame_extra_info_zalloc): Update.
9996 (deprecated_get_frame_saved_regs): Update.
9997 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9998 * cris-tdep.c: Update comment.
9999
bde58177
AC
10000 * somsolib.h: Fix function indentation.
10001 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10002 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10003 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10004 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10005 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10006
4ef3f3be
AC
10007 * infrun.c (follow_fork): Use ISO C definition.
10008 * expprint.c (print_subexp): Use xfree instead of free.
10009 * charset.c: Include "gdb_string.h" instead of <string.h>.
10010 (register_iconv_charsets): Use ISO C definition.
10011 (host_charset, target_charset): Ditto.
10012 * Makefile.in (charset.o): Update dependencies.
10013 (mi-cmd-env.o): Update dependencies.
10014
1c615f7a
AC
100152003-01-08 Andrew Cagney <cagney@redhat.com>
10016
10017 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10018 get_frame_base.
10019
c9a1dc08
AC
100202003-01-08 Andrew Cagney <ac131313@redhat.com>
10021
10022 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10023 build directories. Save edited gdb output in Mbuild.log. If a
10024 build fails, remove any final GDB executable.
10025
dbad9d94
AC
100262003-01-08 Andrew Cagney <ac131313@redhat.com>
10027
10028 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10029 replacing hex constants with function names and stripping leading
10030 file name directory prefixes.
10031
8d357cca
AC
100322003-01-08 Andrew Cagney <cagney@redhat.com>
10033
10034 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10035 get_frame_base.
10036
bca02a8a
DC
100372003-01-08 David Carlton <carlton@math.stanford.edu>
10038
10039 * linespec.c (decode_line_1): Move code into decode_variable.
10040 (decode_variable): New function.
10041
7f8ab3a0
AC
100422003-01-08 Andrew Cagney <ac131313@redhat.com>
10043
10044 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10045
7b5849cc
AC
100462003-01-08 Andrew Cagney <cagney@redhat.com>
10047
10048 * cris-tdep.c (cris_frame_init_saved_regs): Use
10049 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10050 saved_regs buffer.
10051 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10052 (sh64_nofp_frame_init_saved_regs): Ditto.
10053 (sh_fp_frame_init_saved_regs): Ditto.
10054 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10055 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10056 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10057 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10058
72a5efb3
DJ
100592003-01-08 Daniel Jacobowitz <drow@mvista.com>
10060
10061 * minsyms.c (lookup_minimal_symbol): Update comment.
10062 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10063 (lookup_minimal_symbol_solib_trampoline): Likewise.
10064
11c02a10
AC
100652003-01-08 Andrew Cagney <cagney@redhat.com>
10066
aab3ea25
AC
10067 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10068 frame_relative_level.
10069
da50a4b7
AC
10070 * alpha-tdep.c: Use get_frame_extra_info.
10071 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10072 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10073 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10074 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10075
11c02a10
AC
10076 * alpha-tdep.c: Use get_next_frame.
10077 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10078 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10079 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10080 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10081 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10082 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10083 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10084
1e2330ba
AC
100852003-01-07 Andrew Cagney <cagney@redhat.com>
10086
10087 * alpha-tdep.c: Use get_frame_base.
10088 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10089 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10090 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10091 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10092 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10093 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10094 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10095 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10096
2d75187b
AC
100972003-01-07 Andrew Cagney <cagney@redhat.com>
10098
10099 * frame.c (deprecated_get_frame_context): New function.
10100 (deprecated_set_frame_context): New function.
10101 * frame.h (deprecated_get_frame_context): Declare.
10102 (deprecated_set_frame_context): Declare.
10103 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10104 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10105
483d36b2
AC
101062003-01-07 Andrew Cagney <cagney@redhat.com>
10107
10108 * frame.c (deprecated_set_frame_next_hack): New function.
10109 (deprecated_set_frame_prev_hack): New function.
10110 * frame.h (deprecated_set_frame_next_hack): Declare.
10111 (deprecated_set_frame_prev_hack): Declare.
10112 * mcore-tdep.c (analyze_dummy_frame): Use
10113 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10114 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10115
14e91ac5
DC
101162003-01-07 David Carlton <carlton@math.stanford.edu>
10117
10118 * linespec.c (decode_line_1): Move code into decode_dollar.
10119 (decode_dollar): New function.
10120
b0c6b05c
AC
101212003-01-07 Andrew Cagney <cagney@redhat.com>
10122
10123 * arm-tdep.c (arm_init_extra_frame_info): Use
10124 deprecated_update_frame_base_hack.
10125 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10126 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10127 (fix_frame_pointer): Ditto.
10128 (mn10300_analyze_prologue): Ditto.
10129
a00a19e9
AC
101302003-01-07 Andrew Cagney <cagney@redhat.com>
10131
10132 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10133 extra_info using frame_extra_info_zalloc.
10134 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10135 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10136 (sh64_init_extra_frame_info): Ditto.
10137 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10138 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10139 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10140 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10141 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10142 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10143 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10144 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10145 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10146 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10147 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10148 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10149
10150 * mn10300-tdep.c (analyze_dummy_frame): Use
10151 deprecated_set_frame_extra_info_hack.
10152 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10153
1fb4c65b
JB
101542003-01-07 J. Brobecker <brobecker@gnat.com>
10155
10156 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10157 class is not scText. These do not define "real" procedures.
10158 (parse_partial_symbols): Likewise.
10159
9fe7d6bf
MS
101602003-01-06 Michael Snyder <msnyder@redhat.com>
10161
10162 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10163
f6c609c4
AC
101642003-01-06 Andrew Cagney <ac131313@redhat.com>
10165
10166 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10167 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10168 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10169 deprecated_frame_xmalloc_with_cleanup.
10170 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10171 deprecated_frame_xmalloc.
10172 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10173 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10174
d995ff4b
AC
101752003-01-06 Andrew Cagney <cagney@redhat.com>
10176
84dc46cb
AC
10177 * x86-64-linux-tdep.c: Include "osabi.h".
10178 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10179
d995ff4b
AC
10180 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10181
66140c26
AC
101822003-01-06 Andrew Cagney <cagney@redhat.com>
10183
10184 * MAINTAINERS (Target Instruction Set Architectures): Update
10185 arm-elf. Can be built with -Werror, has been multiarched.
10186
10187 * value.h (unpack_long): Make buffer parameter constant.
10188 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10189 * scm-lang.h (scm_parse): Ditto.
10190 * defs.h (extract_typed_address, extract_address): Ditto.
10191 (extract_long_unsigned_integer): Ditto.
10192 * inferior.h (unsigned_pointer_to_address): Ditto.
10193 (signed_pointer_to_address): Ditto.
10194 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10195 * gdbarch.h, gdbarch.c: Regenerate.
10196 * findvar.c (extract_long_unsigned_integer): Update.
10197 (extract_address): Update.
10198 (extract_typed_address): Update.
10199 (unsigned_pointer_to_address): Update.
10200 * values.c (unpack_long): Update.
10201 (unpack_double): Update.
10202 (unpack_pointer): Update.
10203 (unpack_field_as_long): Update.
10204 * d10v-tdep.c (d10v_pointer_to_address): Update.
10205 * avr-tdep.c (avr_pointer_to_address): Update.
10206 * scm-lang.c (scm_unpack): Update.
10207 * findvar.c (signed_pointer_to_address): Update.
10208
b089b3da
ML
102092003-01-06 Michal Ludvig <mludvig@suse.cz>
10210
8ffd9b1b 10211 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10212 since it is in i386-tdep.c.
10213
aff87235
JB
102142003-01-06 J. Brobecker <brobecker@gnat.com>
10215
10216 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10217 failure introduced in the previous change.
10218
34f5e845
MC
102192003-01-05 Michael Chastain <mec@shout.net>
10220
10221 * README: Remove references to deleted remote-*.c files:
10222 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10223 remote-nrom.c, remote-os9k.c, remote-udi.c.
10224
28bcfd30
MK
102252003-01-05 Mark Kettenis <kettenis@gnu.org>
10226
10227 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10228 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10229 i386_get_longjmp_target.
10230
15a5b3ee
AC
102312003-01-05 Andrew Cagney <ac131313@redhat.com>
10232
10233 * arm-tdep.c (prologue_cache): Change to a pointer.
10234 (_initialize_arm_tdep): Allocate prologue_cache.
10235 (check_prologue_cache): Update.
10236 (save_prologue_cache): Update.
10237 (arm_gdbarch_init): Update.
10238
c263362b
DJ
102392003-01-04 Daniel Jacobowitz <drow@mvista.com>
10240
10241 * stabsread.c (update_method_name_from_physname): Call complaint()
10242 instead of error.
10243
51603483
DJ
102442003-01-04 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10247 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10248 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10249
10250 * blockframe.c: Include "gdbcmd.h" and "command.h".
10251 (backtrace_below_main): New variable.
10252 (file_frame_chain_valid, func_frame_chain_valid)
10253 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10254 (generic_func_frame_chain_valid): Remove functions.
10255 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10256 (_initialize_blockframe): New function.
10257 * Makefile.in (blockframe.o): Update dependencies.
10258 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10259 comment. Call frame_chain_valid ().
10260 * frame.h: Remove old prototypes. Add prototype for
10261 frame_chain_valid and update comments to match.
10262 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10263 Remove old comment.
10264 * gdbarch.h: Regenerated.
10265 * gdbarch.c: Regenerated.
10266
10267 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10268 set_gdbarch_frame_chain_valid.
10269 * avr-tdep.c (avr_gdbarch_init): Likewise.
10270 * cris-tdep.c (cris_gdbarch_init): Likewise.
10271 * frv-tdep.c (frv_gdbarch_init): Likewise.
10272 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10273 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10274 (i386_nw_init_abi): Likewise.
10275 (i386_gdbarch_init): Likewise.
10276 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10278 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10279 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10280 * mips-tdep.c (mips_gdbarch_init): Likewise.
10281 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10282 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10283 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10284 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10285 * s390-tdep.c (s390_gdbarch_init): Likewise.
10286 * sh-tdep.c (sh_gdbarch_init): Likewise.
10287 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10288 * v850-tdep.c (v850_gdbarch_init): Likewise.
10289 * vax-tdep.c (vax_gdbarch_init): Likewise.
10290 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10291
10292 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10293 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10294 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10295 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10296 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10297 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10298 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10299 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10300
b00a8037
DJ
103012002-01-04 Daniel Jacobowitz <drow@mvista.com>
10302
10303 * Makefile.in (acconfig_h): Remove incorrect macro.
10304 (config_h): Define.
10305 (osabi.o): Update dependencies.
10306 * configure.tgt: Set gdb_osabi based on target triplet.
10307 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10308 * configure: Regenerated.
10309 * config.in: Regenerated.
10310 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10311 (GDB_OSABI_DEFAULT): Define if not already defined.
10312 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10313 (set_osabi_string): New variables.
10314 (gdbarch_register_osabi): Add new OS ABI to
10315 gdb_osabi_available_names.
10316 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10317 (set_osabi, show_osabi): New functions.
10318 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10319
4be87837
DJ
103202003-01-04 Daniel Jacobowitz <drow@mvista.com>
10321
10322 * arch-utils.c (gdbarch_info_init): Set osabi to
10323 GDB_OSABI_UNINITIALIZED.
10324 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10325 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10326 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10327 * gdbarch.c: Regenerated.
10328 * gdbarch.h: Regenerated.
10329 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10330 there's no BFD.
10331 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10332 * osabi.h (enum gdb_osabi): Move to defs.h.
10333 (gdbarch_init_osabi): Update prototype.
10334 * defs.h (enum gdb_osabi): Moved here.
10335 * Makefile.in: Update dependencies.
10336
10337 * alpha-tdep.h: Don't include "osabi.h".
10338 (struct gdbarch_tdep): Remove osabi member.
10339 * alpha-tdep.c: Include "osabi.h".
10340 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10341 iterate over arches. Update call to gdbarch_init_osabi.
10342 (alpha_dump_tdep): Don't dump osabi.
10343 * alpha-linux-tdep.c: Include "osabi.h".
10344 * alpha-osf1-tdep.c: Include "osabi.h".
10345 * alphafbsd-tdep.c: Include "osabi.h".
10346 * alphanbsd-tdep.c: Include "osabi.h".
10347
10348 * arm-tdep.h: Don't include "osabi.h".
10349 (struct gdbarch_tdep): Remove osabi member.
10350 * arm-tdep.c: Include "osabi.h".
10351 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10352 iterate over arches. Update call to gdbarch_init_osabi.
10353 (arm_dump_tdep): Don't dump osabi.
10354 * arm-linux-tdep.c: Include "osabi.h".
10355 * armnbsd-tdep.c: Include "osabi.h".
10356
10357 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10358 Update call to gdbarch_init_osabi.
10359
10360 * i386-tdep.h: Don't include "osabi.h".
10361 (struct gdbarch_tdep): Remove osabi member.
10362 * i386-tdep.c: Include "osabi.h".
10363 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10364 iterate over arches. Update call to gdbarch_init_osabi.
10365 (i386_dump_tdep): Don't dump osabi.
10366 * i386-linux-tdep.c: Include "osabi.h".
10367 * i386-sol2-tdep.c: Include "osabi.h".
10368 * i386bsd-tdep.c: Include "osabi.h".
10369 * i386gnu-tdep.c: Include "osabi.h".
10370 * i386ly-tdep.c: Include "osabi.h".
10371 * i386nbsd-tdep.c: Include "osabi.h".
10372 * i386obsd-tdep.c: Include "osabi.h".
10373
10374 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10375 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10376 check osabi when iterating over arches. Update call to
10377 gdbarch_init_osabi.
10378 (mips_dump_tdep): Don't dump osabi.
10379
10380 * ns32k-tdep.h: Don't include "osabi.h".
10381 (struct gdbarch_tdep): Remove.
10382 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10383 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10384 allocate tdep. Update call to gdbarch_init_osabi.
10385 (ns32k_dump_tdep): Remove.
10386 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10387 * ns32knbsd-tdep.c: Include "osabi.h".
10388
10389 * ppc-tdep.h: Don't include "osabi.h".
10390 (struct gdbarch_tdep): Remove osabi member.
10391 * rs6000-tdep.c: Include "osabi.h".
10392 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10393 osabi when iterating over arches. Update call to
10394 gdbarch_init_osabi.
10395 (rs6000_dump_tdep): Don't dump osabi.
10396 * ppc-linux-tdep.c: Include "osabi.h".
10397 * ppcnbsd-tdep.c: Include "osabi.h".
10398
10399 * sh-tdep.h: Don't include "osabi.h".
10400 (struct gdbarch_tdep): Remove osabi member.
10401 * sh-tdep.c: Include "osabi.h".
10402 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10403 iterate over arches. Update call to gdbarch_init_osabi.
10404 (sh_dump_tdep): Don't dump osabi.
10405 * shnbsd-tdep.c: Include "osabi.h".
10406
10407 * sparc-tdep.c: Include "osabi.h".
10408 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10409 iterate over arches. Update call to gdbarch_init_osabi.
10410 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10411 tdep structure.
10412
10413 * vax-tdep.h: Don't include "osabi.h".
10414 (struct gdbarch_tdep): Remove.
10415 * vax-tdep.c: Include "osabi.h".
10416 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10417 iterate over arches. Don't allocate tdep. Update call
10418 to gdbarch_init_osabi.
10419 (vax_dump_tdep): Remove.
10420 (_initialize_vax_tdep): Update call to gdbarch_register.
10421
a881cf8e
DJ
104222003-01-04 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10425 entirely.
10426 (breakpoint_re_set_one): Don't fetch the value for a disabled
10427 watchpoint.
10428
1e698235
DJ
104292003-01-04 Daniel Jacobowitz <drow@mvista.com>
10430
10431 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10432 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10433 (COERCE_FLOAT_TO_DOUBLE): Remove.
10434 * gdbarch.c: Regenerate.
10435 * gdbarch.h: Regenerate.
10436 * Makefile.in: Remove value_h from gdbarch_h.
10437 * valops.c (coerce_float_to_double): New variable.
10438 (default_coerce_float_to_double): Remove.
10439 (standard_coerce_float_to_double): Remove.
10440 (value_arg_coerce): Use coerce_float_to_double.
10441 (_initialize_valops): Add "set coerce-float-to-double".
10442 * value.h (default_coerce_float_to_double): Remove prototype.
10443 (standard_coerce_float_to_double): Remove prototype.
10444
10445 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10446 prototyped.
10447 * mdebugread.c (parse_symbol): Likewise.
10448 * stabsread.c (define_symbol): Mark all functions as prototyped.
10449
10450 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10451 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10452 set_gdbarch_coerce_float_to_double.
10453 * arm-tdep.c (arm_gdbarch_init): Likewise.
10454 * frv-tdep.c (frv_gdbarch_init): Likewise.
10455 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10456 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10457 * mips-tdep.c (mips_gdbarch_init): Likewise.
10458 (mips_coerce_float_to_double): Remove.
10459 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10460 (rs6000_coerce_float_to_double): Remove.
10461 * s390-tdep.c (s390_gdbarch_init): Likewise.
10462 * sh-tdep.c (sh_gdbarch_init): Likewise.
10463 (sh_coerce_float_to_double): Remove.
10464 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10465 (sparc_coerce_float_to_double): Remove.
10466 * v850-tdep.c (v850_gdbarch_init): Likewise.
10467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10468 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10469 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10470 (hppa_coerce_float_to_double): Remove prototype.
10471 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10472
f436a26a
DJ
104732003-01-04 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10476
248f8055
DJ
104772003-01-04 Daniel Jacobowitz <drow@mvista.com>
10478
10479 Suggested by Stewart Brown <sb24@avaya.com>:
10480 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10481 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10482 (c_type_print_varspec_suffix): Likewise.
10483
72cfdc76
MK
104842003-01-04 Mark Kettenis <kettenis@gnu.org>
10485
bfd260bb
MK
10486 * configure.in: Don't set and AC_SUBST SUBDIRS.
10487 * configure: Regenerated.
10488
72cfdc76
MK
10489 * configure.in: Remove code dealing with shared libraries.
10490 * Makefile.in: Remove HLDFLAGS and HLDENV.
10491 * configure: Regenerated.
10492
c8b8a898
AC
104932003-01-04 Andrew Cagney <ac131313@redhat.com>
10494
10495 * frame.c (deprecated_frame_xmalloc): New function.
10496 (deprecated_set_frame_saved_regs_hack): New function.
10497 (deprecated_set_frame_extra_info_hack): New function.
10498 * frame.h (deprecated_frame_xmalloc): Declare.
10499 (deprecated_set_frame_saved_regs_hack): Declare.
10500 (deprecated_set_frame_extra_info_hack): Declare.
10501
14abd0fb
MK
105022003-01-04 Mark Kettenis <kettenis@gnu.org>
10503
8ee53726
MK
10504 * configure.in: Move code that provides the --enable-gdbtk option
10505 right after the code that handles the --enable-tui option, and
10506 polish it somewhat.
10507 * configure: Regenerated.
10508
14abd0fb
MK
10509 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10510 AC_CHECK_FUNCS and remove the old check for pread64.
10511 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10512 * acconfig.h (_GNU_SOURCE): Add.
10513 (HAVE_PREAD64): Remove.
10514 * configure, aclocal.m4, config.in: Regenerated.
10515
b2fb4676
AC
105162003-01-03 Andrew Cagney <ac131313@redhat.com>
10517
10518 * alpha-tdep.c: Use get_frame_saved_regs.
10519 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10520 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10521 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10522 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10523 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10524
8dcde887
MK
105252003-01-03 Mark Kettenis <kettenis@gnu.org>
10526
10527 * configure.in: Remove all use of the SUBDIRS variable; add
10528 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10529 code providing the --enable-multi-ice option, and move it right in
10530 front of the code that checks whether gdbserver is supported.
10531 Polish that too.
10532 * configure: Regenerated.
10533 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10534 @SUBDIRS@.
10535
8ccd593b
AC
105362003-01-03 Andrew Cagney <cagney@redhat.com>
10537
10538 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10539 * avr-tdep.c, cris-tdep.c: Ditto.
10540 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10541 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10542
91151a06
MK
105432003-01-03 Mark Kettenis <kettenis@gnu.org>
10544
10545 * configure.in: Remove --enable-netrom option.
10546 * configure: Regenerated.
10547
8fe84d01
MK
105482003-01-03 Mark Kettenis <kettenis@gnu.org>
10549
10550 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10551 declaration for `struct re_pattern_buffer' instead.
10552 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10553
f0394be6
JB
105542003-01-03 J. Brobecker <brobecker@gnat.com>
10555
10556 * mdebugread.c (parse_symbol): Count until the stEnd matching
10557 the structure name.
10558
27e9bf90
MK
105592003-01-02 Mark Kettenis <kettenis@gnu.org>
10560
93d331ba
MK
10561 * configure.in: Remove --with-cpu option.
10562 subscripts. Remove evil changequotes here.
10563 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10564 * config.in, configure: Regenerated.
8ffd9b1b 10565
27e9bf90
MK
10566 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10567 * configure.in: Cleanup section that sources GDB and BFD configure
10568 subscripts. Remove evil changequotes here.
10569 * config.in, configure: Regenerated.
10570
50abf9e5
AC
105712003-01-02 Andrew Cagney <ac131313@redhat.com>
10572
10573 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10574 frame accessor methods.
10575 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10576 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10577 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10578 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10579 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10580 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10581 * z8k-tdep.c: Ditto.
8ffd9b1b 10582
287c1a40
MK
105832003-01-02 Mark Kettenis <kettenis@gnu.org>
10584
f5dbc56d
MK
10585 * configure.in: Remove UI_OUT configuration code.
10586 * ada-lang.c: Update assuming UI_OUT is always true.
10587 * Makefile.in (UIOUT_CFLAGS): Remove.
10588 * configure: Regenerated.
10589 * TODO: Remove blurb about elimination of -DUI_OUT.
10590
627af7ea
MK
10591 * configure.in: Move code that provides the --enable-gdbcli,
10592 --enable-gdbmi options right before the code that handles the
10593 --enable-tui option. Polish a bit.
10594 * configure: Regenerated.
10595
06825bd1
MK
10596 * configure.in: Rewrite check for GNU regex and the
10597 --without-included regex option, and move it into the "Checks for
10598 library functions" section. This makes us use the system regex
10599 again by default on systems with version 2 of the GNU C library.
10600 This was apparently broken.
10601 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10602 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10603 * config.in, configure: Regenerated.
10604
287c1a40
MK
10605 * configure.in: Move code that provides the --enable-tui option
10606 before the "Checks for libraries" section. Polish the code
10607 somewhat and set need_curses to yes if we build the TUI. Rewrite
10608 code that looks for a library providing termcap functionality to
10609 match more closely what's done in the Readline library, and move
10610 it into to the "Checks for libraries" section.
10611 * configure: Regenerated.
10612 * Makefile.in (TERMCAP): Remove variable.
10613 * config/i386/go32.mh (TERMCAP): Remove variable.
10614
684e56bf
AC
106152003-01-02 Andrew Cagney <ac131313@redhat.com>
10616
10617 * MAINTAINERS: Mention gdb_mbuild.sh.
10618 * gdb_mbuild.sh: Rewrite.
10619
e1ea1d75
MK
106202003-01-02 Mark Kettenis <kettenis@gnu.org>
10621
10622 * configure.in: Fix typo in last change.
10623 * config.in, configure: Regenerated.
10624
1b831c93
AC
106252003-01-02 Andrew Cagney <ac131313@redhat.com>
10626
10627 * valarith.c (value_binop): Delete obsolete code and comments.
10628 * configure.host: Ditto.
10629 * buildsym.h (make_blockvector): Ditto.
10630 * buildsym.c (make_blockvector): Ditto.
10631 * defs.h (enum language): Ditto.
10632 (chill_demangle): Ditto.
10633 * elfread.c (elf_symtab_read): Ditto.
10634 * dwarfread.c (CHILL_PRODUCER): Ditto.
10635 (set_cu_language): Ditto.
10636 (handle_producer): Ditto.
10637 * expprint.c (print_subexp): Ditto.
10638 * gdbtypes.c (chill_varying_type): Ditto.
10639 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10640 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10641 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10642 (chill_varying_type): Ditto.
10643 * language.h (_LANG_chill): Ditto.
10644 * language.c (binop_result_type, integral_type): Ditto.
10645 (character_type, string_type, structured_type): Ditto.
10646 (lang_bool_type, binop_type_check): Ditto.
10647 * stabsread.h (os9k_stabs): Ditto.
10648 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10649 (define_symbol, read_type, read_struct_fields): Ditto.
10650 (read_array_type, read_enum_type, read_huge_number): Ditto.
10651 (read_range_type, start_stabs): Ditto.
10652 * symfile.c (init_filename_language_table): Ditto.
10653 (add_psymbol_with_dem_name_to_list): Ditto.
10654 * symtab.c (symbol_init_language_specific): Ditto.
10655 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10656 * symtab.h (struct general_symbol_info): Ditto.
10657 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10658 * typeprint.c (typedef_print): Ditto.
10659 * utils.c (fprintf_symbol_filtered): Ditto.
10660 * valops.c (value_cast, search_struct_field, value_slice): Delete
10661 obsolete code.
10662 (varying_to_slice): Delete function.
10663 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10664 (varying_to_slice): Delete declaration.
10665 * MAINTAINERS: Update.
10666
8bb2c122
MK
106672003-01-02 Mark Kettenis <kettenis@gnu.org>
10668
97bf5e38
MK
10669 * configure.in: Reorganize "Checks for library functions section"
10670 a bit. Remove check for `btowc' and `isascii' functions.
10671 * configure: Regenerated.
10672
5ee754fc
MK
10673 * acconfig.h (_MSE_INT_H): Remove.
10674 * configure.in: Create "Checks for header files" section, and move
10675 appropriate tests there. Don't check for objlist.h, wchar.h,
10676 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10677 misdetection fix. Also add "Checks for types", "Checks for
10678 compiler characteristics" and "Checks for library functions"
10679 sections.
10680 * config.in, configure: Regenerated.
10681
8bb2c122
MK
10682 * configure.in: Create "Checks for programs" section, and move
10683 appropriate tests there.
10684
9a156167
MK
106852003-01-01 Mark Kettenis <kettenis@gnu.org>
10686
10687 * configure.in: Create "Checks for libraries" section, and move
10688 appropriate tests there. Cleanup check for wctype in libw. Use
10689 AC_SEARCH_LIBS to see whether we need libsocket.
10690 * configure: Regenerated.
10691
a80e2bcb 10692For older changes see ChangeLog-2002
c906108c
SS
10693\f
10694Local Variables:
10695mode: change-log
10696left-margin: 8
10697fill-column: 74
10698version-control: never
10699End: